@stealthscale/component-collections 0.0.1 → 0.1.1
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.
- package/README.md +684 -4
- package/dist/cyclonedx/bom.json +1 -1
- package/dist/index.d.ts +2148 -1
- package/dist/index.js +5697 -6
- package/dist/recipe-C1oaF8pO.js +2212 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/theme.d.ts +3 -4
- package/dist/theme.js +15 -5
- package/package.json +48 -24
package/dist/index.d.ts
CHANGED
|
@@ -1 +1,2148 @@
|
|
|
1
|
-
|
|
1
|
+
import { GridCollection, GridCollection as GridCollection$1, ListCollection, ListCollection as ListCollection$1, TreeCollection, TreeNode } from "@zag-js/collection";
|
|
2
|
+
import { ComponentProps, ReactElement, ReactNode, Ref } from "react";
|
|
3
|
+
import * as listbox from "@zag-js/listbox";
|
|
4
|
+
import { ButtonProps } from "@stealthscale/component-actions";
|
|
5
|
+
import * as treeView from "@zag-js/tree-view";
|
|
6
|
+
import { NodeState } from "@zag-js/tree-view";
|
|
7
|
+
//#region src/collection/collection.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* Describes what a collection is built from: the rows, and how to read a row's words and value.
|
|
10
|
+
*
|
|
11
|
+
* @typeParam Row - What one row holds.
|
|
12
|
+
*/
|
|
13
|
+
interface CollectionOptions<Row> {
|
|
14
|
+
/**
|
|
15
|
+
* Decides whether a row survives what has been typed.
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* Given the row's own words, the text typed and the row itself, so a caller can match on more
|
|
19
|
+
* than the words a reader sees. Left out, a row survives on its words alone.
|
|
20
|
+
*/
|
|
21
|
+
filter?: ((words: string, typed: string, row: Row) => boolean) | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Reads whether a row can be picked.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
* A row that cannot be picked is still drawn and still read out, because a reader who cannot
|
|
27
|
+
* see it has no way to learn the option exists. The arrows pass over it and a press does
|
|
28
|
+
* nothing. Left out, every row can be picked.
|
|
29
|
+
*/
|
|
30
|
+
isItemDisabled?: ((row: Row) => boolean) | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Reads the words a row is drawn and announced by.
|
|
33
|
+
*/
|
|
34
|
+
itemToString: (row: Row) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Reads the value a row is chosen by.
|
|
37
|
+
*/
|
|
38
|
+
itemToValue: (row: Row) => string;
|
|
39
|
+
/**
|
|
40
|
+
* Every row, in the order they are drawn.
|
|
41
|
+
*/
|
|
42
|
+
rows: readonly Row[];
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Describes what the hook answers: the rows left, and how to narrow them.
|
|
46
|
+
*
|
|
47
|
+
* @typeParam Row - What one row holds.
|
|
48
|
+
*/
|
|
49
|
+
interface Collection<Row> {
|
|
50
|
+
/**
|
|
51
|
+
* The rows that survive what has been typed, in the order they were given.
|
|
52
|
+
*/
|
|
53
|
+
collection: ListCollection$1<Row>;
|
|
54
|
+
/**
|
|
55
|
+
* Narrows the rows to what matches, or restores every row where nothing has been typed.
|
|
56
|
+
*/
|
|
57
|
+
narrow: (typed: string) => void;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Keeps the rows and the text typed, and answers what is left of them.
|
|
61
|
+
*
|
|
62
|
+
* @typeParam Row - What one row holds.
|
|
63
|
+
* @param options - The rows, how to read one, and how to match one.
|
|
64
|
+
* @returns The rows left and how to narrow them.
|
|
65
|
+
*/
|
|
66
|
+
export declare function useListCollection<Row>(options: CollectionOptions<Row>): Collection<Row>;
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/collection/filter.d.ts
|
|
69
|
+
/**
|
|
70
|
+
* Builds the test a list is narrowed by, folded the way the locale in force folds text.
|
|
71
|
+
*
|
|
72
|
+
* @remarks
|
|
73
|
+
* A reader typing `cafe` means to find `Café`, and one typing in lower case means to find a row
|
|
74
|
+
* that is capitalised. Both fall out of the collator the locale supplies rather than out of a
|
|
75
|
+
* comparison this package writes, so a locale that folds differently is answered without a
|
|
76
|
+
* second implementation.
|
|
77
|
+
*/
|
|
78
|
+
/**
|
|
79
|
+
* Describes the tests a filter offers, each taking the text to search and the text typed.
|
|
80
|
+
*/
|
|
81
|
+
interface Filter {
|
|
82
|
+
/**
|
|
83
|
+
* Returns true where the text holds the typed text anywhere in it.
|
|
84
|
+
*/
|
|
85
|
+
contains: (haystack: string, needle: string) => boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Returns true where the text ends with the typed text.
|
|
88
|
+
*/
|
|
89
|
+
endsWith: (haystack: string, needle: string) => boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Returns true where the text opens with the typed text.
|
|
92
|
+
*/
|
|
93
|
+
startsWith: (haystack: string, needle: string) => boolean;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Describes how strictly a filter tells two strings apart.
|
|
97
|
+
*/
|
|
98
|
+
interface FilterOptions {
|
|
99
|
+
/**
|
|
100
|
+
* The locale whose folding rules apply. The document's own unless you state one.
|
|
101
|
+
*/
|
|
102
|
+
locale?: string | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* How much difference counts. `base` folds case and accents together, which is what a reader
|
|
105
|
+
* typing quickly expects. Default: `base`.
|
|
106
|
+
*/
|
|
107
|
+
sensitivity?: "accent" | "base" | "case" | "variant" | undefined;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Answers the tests a list is narrowed by.
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* The collator behind these is expensive to build and cheap to call, so it is built once per
|
|
114
|
+
* locale and sensitivity rather than on every keystroke.
|
|
115
|
+
* @param options - The locale and how strictly it tells two strings apart.
|
|
116
|
+
* @returns The three tests, each folded by that locale.
|
|
117
|
+
*/
|
|
118
|
+
export declare function useFilter(options?: FilterOptions): Filter;
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/collection/grid.d.ts
|
|
121
|
+
/**
|
|
122
|
+
* Describes what a grid of rows is built from.
|
|
123
|
+
*
|
|
124
|
+
* @typeParam Row - What one tile holds.
|
|
125
|
+
*/
|
|
126
|
+
interface GridOptions<Row> {
|
|
127
|
+
/**
|
|
128
|
+
* How many columns the tiles are laid out in.
|
|
129
|
+
*/
|
|
130
|
+
columnCount: number;
|
|
131
|
+
/**
|
|
132
|
+
* Reads the words a tile is drawn and announced by.
|
|
133
|
+
*/
|
|
134
|
+
itemToString: (row: Row) => string;
|
|
135
|
+
/**
|
|
136
|
+
* Reads the value a tile is chosen by.
|
|
137
|
+
*/
|
|
138
|
+
itemToValue: (row: Row) => string;
|
|
139
|
+
/**
|
|
140
|
+
* Every tile, in the order they are drawn.
|
|
141
|
+
*/
|
|
142
|
+
rows: readonly Row[];
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Describes what the hook answers: the tiles, knowing where each one's neighbours are.
|
|
146
|
+
*
|
|
147
|
+
* @typeParam Row - What one tile holds.
|
|
148
|
+
*/
|
|
149
|
+
interface Grid<Row> {
|
|
150
|
+
/**
|
|
151
|
+
* The tiles, in the order they were given, knowing where each one's neighbours are.
|
|
152
|
+
*/
|
|
153
|
+
collection: GridCollection$1<Row>;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Builds a collection the arrows cross in two directions.
|
|
157
|
+
*
|
|
158
|
+
* @typeParam Row - What one tile holds.
|
|
159
|
+
* @param options - The tiles, how to read one, and how many columns they run in.
|
|
160
|
+
* @returns The collection, rebuilt when the tiles or the count of columns change.
|
|
161
|
+
*/
|
|
162
|
+
export declare function useGridCollection<Row>(options: GridOptions<Row>): Grid<Row>;
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/data-list/item-label.d.ts
|
|
165
|
+
/**
|
|
166
|
+
* Renders the label `dt`, a row that places a mark or a control beside the words.
|
|
167
|
+
*/
|
|
168
|
+
declare const ItemLabel: import("@stealthscale/theme").StyledComponent<"dt", {}>;
|
|
169
|
+
/**
|
|
170
|
+
* Describes the props of `ItemLabel`.
|
|
171
|
+
*/
|
|
172
|
+
type ItemLabelProps = ComponentProps<typeof ItemLabel>;
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/data-list/item-value.d.ts
|
|
175
|
+
/**
|
|
176
|
+
* Renders the value `dd`, a wrapping row with no indent.
|
|
177
|
+
*/
|
|
178
|
+
declare const ItemValue: import("@stealthscale/theme").StyledComponent<"dd", {}>;
|
|
179
|
+
/**
|
|
180
|
+
* Describes the props of `ItemValue`.
|
|
181
|
+
*/
|
|
182
|
+
type ItemValueProps = ComponentProps<typeof ItemValue>;
|
|
183
|
+
//#endregion
|
|
184
|
+
//#region src/data-list/item.d.ts
|
|
185
|
+
/**
|
|
186
|
+
* Renders the item `div`.
|
|
187
|
+
*/
|
|
188
|
+
declare const Item$4: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
189
|
+
/**
|
|
190
|
+
* Describes the props of `Item`.
|
|
191
|
+
*/
|
|
192
|
+
type ItemProps$4 = ComponentProps<typeof Item$4>;
|
|
193
|
+
//#endregion
|
|
194
|
+
//#region src/data-list/root.d.ts
|
|
195
|
+
/**
|
|
196
|
+
* Renders the root `dl` with the list's variants.
|
|
197
|
+
*/
|
|
198
|
+
declare const Root$6: import("@stealthscale/theme").StyledComponent<"dl", {
|
|
199
|
+
readonly divided?: boolean | undefined;
|
|
200
|
+
readonly orientation?: "horizontal" | "vertical" | undefined;
|
|
201
|
+
readonly size?: "lg" | "md" | "sm" | undefined;
|
|
202
|
+
readonly variant?: "bold" | "subtle" | undefined;
|
|
203
|
+
}>;
|
|
204
|
+
/**
|
|
205
|
+
* Describes the props of `Root`.
|
|
206
|
+
*/
|
|
207
|
+
type RootProps$6 = ComponentProps<typeof Root$6>;
|
|
208
|
+
declare namespace index_d_exports {
|
|
209
|
+
export { Item$4 as Item, ItemLabel, ItemLabelProps, ItemProps$4 as ItemProps, ItemValue, ItemValueProps, Root$6 as Root, RootProps$6 as RootProps };
|
|
210
|
+
}
|
|
211
|
+
//#endregion
|
|
212
|
+
//#region src/listbox/content.d.ts
|
|
213
|
+
/**
|
|
214
|
+
* Renders the `div` with the listbox's content class, which the scroll area's root takes.
|
|
215
|
+
*/
|
|
216
|
+
declare const Listed: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
217
|
+
/**
|
|
218
|
+
* Describes the props of the content: the props of the `div` with `role="listbox"`, without `as`,
|
|
219
|
+
* because another element in the viewport's place would drop the scroll area.
|
|
220
|
+
*/
|
|
221
|
+
type ContentProps$2 = Omit<ComponentProps<typeof Listed>, "as">;
|
|
222
|
+
/**
|
|
223
|
+
* Renders the scroll area with the machine's content props on its viewport.
|
|
224
|
+
*
|
|
225
|
+
* @param props - Attributes and children of the element with `role="listbox"`, merged over the
|
|
226
|
+
* machine's.
|
|
227
|
+
* @returns The scroll area's root.
|
|
228
|
+
*/
|
|
229
|
+
declare function Content$2({ children, ...rest }: ContentProps$2): ReactElement;
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region src/listbox/empty.d.ts
|
|
232
|
+
/**
|
|
233
|
+
* Renders the `span` with the listbox's empty class.
|
|
234
|
+
*/
|
|
235
|
+
declare const Nothing: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
236
|
+
/**
|
|
237
|
+
* Describes the props of the empty text: the props of a `span`.
|
|
238
|
+
*/
|
|
239
|
+
type EmptyProps$1 = ComponentProps<typeof Nothing>;
|
|
240
|
+
/**
|
|
241
|
+
* Renders the empty text while the collection has no rows.
|
|
242
|
+
*
|
|
243
|
+
* @param props - Attributes and children of the `span` element.
|
|
244
|
+
* @returns The `span` element, or `null` while the collection has rows.
|
|
245
|
+
*/
|
|
246
|
+
declare function Empty$1(props: EmptyProps$1): null | ReactElement;
|
|
247
|
+
//#endregion
|
|
248
|
+
//#region src/listbox/frame.d.ts
|
|
249
|
+
/**
|
|
250
|
+
* Renders the `div` with the listbox's frame class.
|
|
251
|
+
*/
|
|
252
|
+
declare const Frame: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
253
|
+
/**
|
|
254
|
+
* Describes the props of the frame: the props of a `div`.
|
|
255
|
+
*/
|
|
256
|
+
type FrameProps = ComponentProps<typeof Frame>;
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/listbox/input.d.ts
|
|
259
|
+
/**
|
|
260
|
+
* Renders the `input` with the listbox's input class.
|
|
261
|
+
*/
|
|
262
|
+
declare const Typed: import("@stealthscale/theme").StyledComponent<"input", {}>;
|
|
263
|
+
/**
|
|
264
|
+
* Describes the props of the field: its value, the clear control and the props of an `input`.
|
|
265
|
+
*/
|
|
266
|
+
interface InputProps extends Omit<ComponentProps<typeof Typed>, "defaultValue" | "value"> {
|
|
267
|
+
/**
|
|
268
|
+
* Whether the first row of the filtered list is highlighted while the field has text.
|
|
269
|
+
*/
|
|
270
|
+
readonly autoHighlight?: boolean | undefined;
|
|
271
|
+
/**
|
|
272
|
+
* Icon of the clear control. The control renders only when an icon is given.
|
|
273
|
+
*/
|
|
274
|
+
readonly clearIndicator?: ReactNode | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* Accessible name of the clear control.
|
|
277
|
+
*/
|
|
278
|
+
readonly clearLabel?: string | undefined;
|
|
279
|
+
/**
|
|
280
|
+
* Initial text of an uncontrolled field.
|
|
281
|
+
*/
|
|
282
|
+
readonly defaultValue?: string | undefined;
|
|
283
|
+
/**
|
|
284
|
+
* Called with the field's text on every change.
|
|
285
|
+
*/
|
|
286
|
+
readonly onValueChange?: ((value: string) => void) | undefined;
|
|
287
|
+
/**
|
|
288
|
+
* Text of a controlled field.
|
|
289
|
+
*/
|
|
290
|
+
readonly value?: string | undefined;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Renders the field with the machine's input props, and the clear control while it has text.
|
|
294
|
+
*
|
|
295
|
+
* @param props - The value, the clear control's icon and name, and the props of an `input`.
|
|
296
|
+
* @returns The control `div` that contains the field and the clear control.
|
|
297
|
+
*/
|
|
298
|
+
declare function Input({ autoHighlight, clearIndicator, clearLabel, defaultValue, onChange, onValueChange, value, ...rest }: InputProps): ReactElement;
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region src/listbox/item-checkbox.d.ts
|
|
301
|
+
/**
|
|
302
|
+
* Renders the `span` with the listbox's item checkbox class, hidden from assistive technology.
|
|
303
|
+
*/
|
|
304
|
+
declare const ItemCheckbox: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
305
|
+
/**
|
|
306
|
+
* Describes the props of a row's checkbox: the props of a `span`.
|
|
307
|
+
*/
|
|
308
|
+
type ItemCheckboxProps = ComponentProps<typeof ItemCheckbox>;
|
|
309
|
+
//#endregion
|
|
310
|
+
//#region src/listbox/item-description.d.ts
|
|
311
|
+
/**
|
|
312
|
+
* Renders the `span` with the listbox's item description class, in the tertiary ink and one size
|
|
313
|
+
* smaller than the row's text.
|
|
314
|
+
*/
|
|
315
|
+
declare const ItemDescription: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
316
|
+
/**
|
|
317
|
+
* Describes the props of a row's description: the props of a `span`.
|
|
318
|
+
*/
|
|
319
|
+
type ItemDescriptionProps = ComponentProps<typeof ItemDescription>;
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region src/listbox/item-group-label.d.ts
|
|
322
|
+
/**
|
|
323
|
+
* Renders the `span` with the listbox's item group label class.
|
|
324
|
+
*/
|
|
325
|
+
declare const Headed: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
326
|
+
/**
|
|
327
|
+
* Describes the props of a group label: its group's identifier and the props of a `span`.
|
|
328
|
+
*/
|
|
329
|
+
interface ItemGroupLabelProps extends ComponentProps<typeof Headed> {
|
|
330
|
+
/**
|
|
331
|
+
* Identifier of the group the label names.
|
|
332
|
+
*/
|
|
333
|
+
readonly htmlFor: string;
|
|
334
|
+
}
|
|
335
|
+
/**
|
|
336
|
+
* Renders a group label with the machine's item group label props.
|
|
337
|
+
*
|
|
338
|
+
* @param props - The group's identifier, and the attributes and children of the `span` element.
|
|
339
|
+
* @returns The `span` element the group's `aria-labelledby` references.
|
|
340
|
+
*/
|
|
341
|
+
declare function ItemGroupLabel({ htmlFor, ...rest }: ItemGroupLabelProps): ReactElement;
|
|
342
|
+
//#endregion
|
|
343
|
+
//#region src/listbox/item-group.d.ts
|
|
344
|
+
/**
|
|
345
|
+
* Renders the `div` with the listbox's item group class.
|
|
346
|
+
*/
|
|
347
|
+
declare const Gathered: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
348
|
+
/**
|
|
349
|
+
* Describes the props of a group: its identifier and the props of a `div`.
|
|
350
|
+
*/
|
|
351
|
+
interface ItemGroupProps extends Omit<ComponentProps<typeof Gathered>, "id"> {
|
|
352
|
+
/**
|
|
353
|
+
* Identifier the group and its label share.
|
|
354
|
+
*/
|
|
355
|
+
readonly id: string;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Renders a group with the machine's item group props.
|
|
359
|
+
*
|
|
360
|
+
* @param props - The identifier, and the attributes and children of the `div` element.
|
|
361
|
+
* @returns The `div` element with `role="group"`.
|
|
362
|
+
*/
|
|
363
|
+
declare function ItemGroup({ id, ...rest }: ItemGroupProps): ReactElement;
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region src/listbox/machine.d.ts
|
|
366
|
+
/**
|
|
367
|
+
* Describes one item of a collection as the parts receive it.
|
|
368
|
+
*
|
|
369
|
+
* @remarks
|
|
370
|
+
* The machine types an item as `any`. The parts take `unknown` and pass it back unchanged, so
|
|
371
|
+
* `any` stays in the machine's types.
|
|
372
|
+
*/
|
|
373
|
+
type ListboxItem = unknown;
|
|
374
|
+
/**
|
|
375
|
+
* Describes the machine options the root takes. `collection` is required and `id` is optional.
|
|
376
|
+
*/
|
|
377
|
+
type ListboxOptions = {
|
|
378
|
+
/**
|
|
379
|
+
* Base of every element identifier the machine generates. React generates one when the caller
|
|
380
|
+
* states none.
|
|
381
|
+
*/
|
|
382
|
+
id?: string | undefined;
|
|
383
|
+
} & Omit<listbox.Props, "id">;
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region src/listbox/item-indicator.d.ts
|
|
386
|
+
/**
|
|
387
|
+
* Renders the `span` with the listbox's item indicator class, hidden from assistive technology.
|
|
388
|
+
*/
|
|
389
|
+
declare const Marked: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
390
|
+
/**
|
|
391
|
+
* Describes the props of a row's mark: its collection item and the props of a `span`.
|
|
392
|
+
*/
|
|
393
|
+
interface ItemIndicatorProps$1 extends ComponentProps<typeof Marked> {
|
|
394
|
+
/**
|
|
395
|
+
* Collection item the mark belongs to.
|
|
396
|
+
*/
|
|
397
|
+
readonly item: ListboxItem;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Renders a row's mark with the machine's indicator props, without `hidden`.
|
|
401
|
+
*
|
|
402
|
+
* @param props - The collection item, and the attributes and children of the `span` element.
|
|
403
|
+
* @returns The `span` element, visible while the row is selected.
|
|
404
|
+
*/
|
|
405
|
+
declare function ItemIndicator$1({ item, ...rest }: ItemIndicatorProps$1): ReactElement;
|
|
406
|
+
//#endregion
|
|
407
|
+
//#region src/listbox/item-lines.d.ts
|
|
408
|
+
/**
|
|
409
|
+
* Renders the `span` with the listbox's item lines class.
|
|
410
|
+
*/
|
|
411
|
+
declare const ItemLines: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
412
|
+
/**
|
|
413
|
+
* Describes the props of a row's lines: the props of a `span`.
|
|
414
|
+
*/
|
|
415
|
+
type ItemLinesProps = ComponentProps<typeof ItemLines>;
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region src/listbox/item-text.d.ts
|
|
418
|
+
/**
|
|
419
|
+
* Renders the `span` with the listbox's item text class.
|
|
420
|
+
*/
|
|
421
|
+
declare const Named$2: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
422
|
+
/**
|
|
423
|
+
* Describes the props of a row's text: its collection item and the props of a `span`.
|
|
424
|
+
*/
|
|
425
|
+
interface ItemTextProps$1 extends ComponentProps<typeof Named$2> {
|
|
426
|
+
/**
|
|
427
|
+
* Collection item the text belongs to.
|
|
428
|
+
*/
|
|
429
|
+
readonly item: ListboxItem;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Renders a row's text with the machine's item text props.
|
|
433
|
+
*
|
|
434
|
+
* @param props - The collection item, and the attributes and children of the `span` element.
|
|
435
|
+
* @returns The `span` element.
|
|
436
|
+
*/
|
|
437
|
+
declare function ItemText$1({ item, ...rest }: ItemTextProps$1): ReactElement;
|
|
438
|
+
//#endregion
|
|
439
|
+
//#region src/listbox/item.d.ts
|
|
440
|
+
/**
|
|
441
|
+
* Renders the `div` with the listbox's item class.
|
|
442
|
+
*/
|
|
443
|
+
declare const Offered: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
444
|
+
/**
|
|
445
|
+
* Describes the props of a row: its collection item and the props of a `div`.
|
|
446
|
+
*/
|
|
447
|
+
interface ItemProps$3 extends ComponentProps<typeof Offered> {
|
|
448
|
+
/**
|
|
449
|
+
* Collection item the row renders.
|
|
450
|
+
*/
|
|
451
|
+
readonly item: ListboxItem;
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* Renders a row with the machine's item props.
|
|
455
|
+
*
|
|
456
|
+
* @param props - The collection item, and the attributes and children of the `div` element.
|
|
457
|
+
* @returns The `div` element with `role="option"`.
|
|
458
|
+
*/
|
|
459
|
+
declare function Item$3({ item, ...rest }: ItemProps$3): ReactElement;
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region src/listbox/label.d.ts
|
|
462
|
+
/**
|
|
463
|
+
* Renders the `span` with the listbox's label class.
|
|
464
|
+
*/
|
|
465
|
+
declare const Named$1: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
466
|
+
/**
|
|
467
|
+
* Describes the props of the label: the props of a `span`.
|
|
468
|
+
*/
|
|
469
|
+
type LabelProps$1 = ComponentProps<typeof Named$1>;
|
|
470
|
+
/**
|
|
471
|
+
* Renders the label with the machine's label props.
|
|
472
|
+
*
|
|
473
|
+
* @param props - Attributes and children of the `span` element, merged over the machine's.
|
|
474
|
+
* @returns The `span` element the list's `aria-labelledby` references.
|
|
475
|
+
*/
|
|
476
|
+
declare function Label$1(props: LabelProps$1): ReactElement;
|
|
477
|
+
//#endregion
|
|
478
|
+
//#region src/listbox/root.d.ts
|
|
479
|
+
/**
|
|
480
|
+
* Renders the root `div` with the recipe's variants.
|
|
481
|
+
*/
|
|
482
|
+
declare const Framed$2: import("@stealthscale/theme").StyledComponent<"div", {
|
|
483
|
+
readonly columns?: import("@stealthscale/theme/authoring").Count | undefined;
|
|
484
|
+
readonly effect?: "glow" | undefined;
|
|
485
|
+
readonly highlight?: import("@stealthscale/theme/authoring").Highlight | undefined;
|
|
486
|
+
readonly orientation?: "horizontal" | "vertical" | undefined;
|
|
487
|
+
readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
488
|
+
readonly radius?: "l1" | "l2" | "l3" | undefined;
|
|
489
|
+
readonly selected?: "none" | "plain" | "solid" | "subtle" | undefined;
|
|
490
|
+
readonly size?: "lg" | "md" | "sm" | undefined;
|
|
491
|
+
readonly variant?: "plain" | "surface" | undefined;
|
|
492
|
+
}>;
|
|
493
|
+
/**
|
|
494
|
+
* Describes the props that set how every row renders its selection.
|
|
495
|
+
*/
|
|
496
|
+
interface RowShape {
|
|
497
|
+
/**
|
|
498
|
+
* Whether every row renders a checkbox at its start.
|
|
499
|
+
*/
|
|
500
|
+
readonly boxed?: boolean | undefined;
|
|
501
|
+
/**
|
|
502
|
+
* Mark a selected row renders, in its checkbox or at its end.
|
|
503
|
+
*/
|
|
504
|
+
readonly mark?: ReactNode | undefined;
|
|
505
|
+
/**
|
|
506
|
+
* Mark the select-all checkbox renders while part of the list is selected.
|
|
507
|
+
*/
|
|
508
|
+
readonly mixedMark?: ReactNode | undefined;
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Describes the props of the root: the machine's options, the recipe's variants, `RowShape` and
|
|
512
|
+
* the props of a `div`.
|
|
513
|
+
*
|
|
514
|
+
* @remarks
|
|
515
|
+
* The element's props of the same names as the machine's options are left out, so no prop has
|
|
516
|
+
* two types.
|
|
517
|
+
*/
|
|
518
|
+
interface RootProps$5 extends ListboxOptions, Omit<ComponentProps<typeof Framed$2>, keyof ListboxOptions | keyof RowShape>, RowShape {}
|
|
519
|
+
/**
|
|
520
|
+
* Renders the listbox and provides the machine's api, `boxed`, the marks and the window slot to
|
|
521
|
+
* its parts.
|
|
522
|
+
*
|
|
523
|
+
* @param props - The machine's options, the recipe's variants, `boxed`, the marks and the props of
|
|
524
|
+
* a `div`.
|
|
525
|
+
* @returns The root `div`.
|
|
526
|
+
*/
|
|
527
|
+
declare function Root$5({ boxed, id, mark, mixedMark, scrollToIndexFn, selected, ...props }: RootProps$5): ReactElement;
|
|
528
|
+
//#endregion
|
|
529
|
+
//#region src/listbox/select-all.d.ts
|
|
530
|
+
/**
|
|
531
|
+
* Renders the `button` with the listbox's select-all class.
|
|
532
|
+
*/
|
|
533
|
+
declare const Whole: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
534
|
+
/**
|
|
535
|
+
* Describes the props of the select-all row: the props of a `button`.
|
|
536
|
+
*/
|
|
537
|
+
type SelectAllProps = ComponentProps<typeof Whole>;
|
|
538
|
+
/**
|
|
539
|
+
* Renders the select-all row.
|
|
540
|
+
*
|
|
541
|
+
* @param props - The row's text as children, and the props of a `button`.
|
|
542
|
+
* @returns The `button` element with `aria-pressed` and `data-state`.
|
|
543
|
+
*/
|
|
544
|
+
declare function SelectAll({ children, onClick, ...rest }: SelectAllProps): ReactElement;
|
|
545
|
+
//#endregion
|
|
546
|
+
//#region src/listbox/value-text.d.ts
|
|
547
|
+
/**
|
|
548
|
+
* Renders the `span` with the listbox's value text class.
|
|
549
|
+
*/
|
|
550
|
+
declare const Chosen: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
551
|
+
/**
|
|
552
|
+
* Describes the props of the value text: a placeholder and the props of a `span`.
|
|
553
|
+
*/
|
|
554
|
+
interface ValueTextProps extends ComponentProps<typeof Chosen> {
|
|
555
|
+
/**
|
|
556
|
+
* Text rendered while nothing is selected.
|
|
557
|
+
*/
|
|
558
|
+
readonly placeholder?: ReactNode;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Renders the selected rows' text, or the placeholder while nothing is selected.
|
|
562
|
+
*
|
|
563
|
+
* @remarks
|
|
564
|
+
* Children render in place of both. The placeholder renders only while `valueAsString` is empty.
|
|
565
|
+
* @param props - The placeholder, and the attributes and children of the `span` element.
|
|
566
|
+
* @returns The `span` element.
|
|
567
|
+
*/
|
|
568
|
+
declare function ValueText({ children, placeholder, ...rest }: ValueTextProps): ReactElement;
|
|
569
|
+
//#endregion
|
|
570
|
+
//#region src/listbox/window.d.ts
|
|
571
|
+
/**
|
|
572
|
+
* Describes the rows of the collection to render.
|
|
573
|
+
*/
|
|
574
|
+
interface Range {
|
|
575
|
+
/**
|
|
576
|
+
* Index of the first row to render.
|
|
577
|
+
*/
|
|
578
|
+
first: number;
|
|
579
|
+
/**
|
|
580
|
+
* Index one past the last row to render, so the pair slices the collection.
|
|
581
|
+
*/
|
|
582
|
+
last: number;
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Describes the props of a window.
|
|
586
|
+
*/
|
|
587
|
+
interface WindowProps {
|
|
588
|
+
/**
|
|
589
|
+
* Renders the rows between the two indexes.
|
|
590
|
+
*/
|
|
591
|
+
readonly children: (range: Range) => ReactNode;
|
|
592
|
+
/**
|
|
593
|
+
* Number of rows in the collection.
|
|
594
|
+
*/
|
|
595
|
+
readonly count: number;
|
|
596
|
+
/**
|
|
597
|
+
* Number of rows rendered beyond each end of the viewport. Defaults to 4.
|
|
598
|
+
*/
|
|
599
|
+
readonly overscan?: number | undefined;
|
|
600
|
+
/**
|
|
601
|
+
* Height of one row in pixels. The window measures the first rendered row when the caller states
|
|
602
|
+
* none.
|
|
603
|
+
*/
|
|
604
|
+
readonly rowHeight?: number | undefined;
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* Renders the rows in or near the viewport, and passes the machine a function that scrolls to any
|
|
608
|
+
* row.
|
|
609
|
+
*
|
|
610
|
+
* @param props - The row count, the row height, the overscan and the row renderer.
|
|
611
|
+
* @returns The outer element, as tall as every row, that contains the rendered rows.
|
|
612
|
+
*/
|
|
613
|
+
declare function Window({ children, count, overscan, rowHeight }: WindowProps): ReactElement;
|
|
614
|
+
//#endregion
|
|
615
|
+
//#region src/listbox/row.d.ts
|
|
616
|
+
/**
|
|
617
|
+
* Describes the props of a ready-made row: a description, an icon and the props of an item.
|
|
618
|
+
*/
|
|
619
|
+
interface RowProps$1 extends ItemProps$3 {
|
|
620
|
+
/**
|
|
621
|
+
* Description rendered under the row's text.
|
|
622
|
+
*/
|
|
623
|
+
readonly description?: ReactNode | undefined;
|
|
624
|
+
/**
|
|
625
|
+
* Icon rendered before the row's text.
|
|
626
|
+
*/
|
|
627
|
+
readonly icon?: ReactNode | undefined;
|
|
628
|
+
}
|
|
629
|
+
/**
|
|
630
|
+
* Renders one row with the checkbox or end mark the root states.
|
|
631
|
+
*
|
|
632
|
+
* @param props - The collection item, the text as children, an icon, a description and the props
|
|
633
|
+
* of an item.
|
|
634
|
+
* @returns The item `div` with `role="option"`.
|
|
635
|
+
*/
|
|
636
|
+
declare function Row$2({ children, description, icon, item, ...rest }: RowProps$1): ReactElement;
|
|
637
|
+
//#endregion
|
|
638
|
+
//#region src/listbox/simple.d.ts
|
|
639
|
+
/**
|
|
640
|
+
* Describes the filter field above the rows.
|
|
641
|
+
*/
|
|
642
|
+
interface Narrowing {
|
|
643
|
+
/**
|
|
644
|
+
* Icon of the clear control. The control renders only when an icon is given.
|
|
645
|
+
*/
|
|
646
|
+
readonly clearIndicator?: ReactNode | undefined;
|
|
647
|
+
/**
|
|
648
|
+
* Accessible name of the clear control.
|
|
649
|
+
*/
|
|
650
|
+
readonly clearLabel?: string | undefined;
|
|
651
|
+
/**
|
|
652
|
+
* Called with the field's text on every change. The caller passes back a filtered collection.
|
|
653
|
+
*/
|
|
654
|
+
readonly onNarrow: (typed: string) => void;
|
|
655
|
+
/**
|
|
656
|
+
* Placeholder of the field.
|
|
657
|
+
*/
|
|
658
|
+
readonly placeholder?: string | undefined;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Describes the props of a whole listbox: the root's props and the parts it renders.
|
|
662
|
+
*
|
|
663
|
+
* @typeParam Row - Type of one collection item.
|
|
664
|
+
*/
|
|
665
|
+
interface SimpleProps$1<Row> extends Omit<RootProps$5, "children" | "collection"> {
|
|
666
|
+
/**
|
|
667
|
+
* Rows in render order.
|
|
668
|
+
*/
|
|
669
|
+
readonly collection: ListCollection$1<Row>;
|
|
670
|
+
/**
|
|
671
|
+
* Returns the description rendered under a row's text.
|
|
672
|
+
*/
|
|
673
|
+
readonly description?: ((row: Row) => ReactNode) | undefined;
|
|
674
|
+
/**
|
|
675
|
+
* Text rendered while the collection is empty.
|
|
676
|
+
*/
|
|
677
|
+
readonly empty?: ReactNode | undefined;
|
|
678
|
+
/**
|
|
679
|
+
* Returns the key of the group a row belongs to.
|
|
680
|
+
*/
|
|
681
|
+
readonly groupBy?: ((row: Row) => string) | undefined;
|
|
682
|
+
/**
|
|
683
|
+
* Returns the label of a group from its key. Defaults to the key.
|
|
684
|
+
*/
|
|
685
|
+
readonly groupLabel?: ((under: string) => ReactNode) | undefined;
|
|
686
|
+
/**
|
|
687
|
+
* Returns the icon rendered before a row's text.
|
|
688
|
+
*/
|
|
689
|
+
readonly icon?: ((row: Row) => ReactNode) | undefined;
|
|
690
|
+
/**
|
|
691
|
+
* Label rendered above the list.
|
|
692
|
+
*/
|
|
693
|
+
readonly label?: ReactNode | undefined;
|
|
694
|
+
/**
|
|
695
|
+
* Filter field rendered above the rows.
|
|
696
|
+
*/
|
|
697
|
+
readonly narrowing?: Narrowing | undefined;
|
|
698
|
+
/**
|
|
699
|
+
* Text of the select-all row rendered above the rows.
|
|
700
|
+
*/
|
|
701
|
+
readonly selectAll?: ReactNode | undefined;
|
|
702
|
+
/**
|
|
703
|
+
* Placeholder of the summary rendered under the list, which shows the selected rows' text.
|
|
704
|
+
*/
|
|
705
|
+
readonly summary?: string | undefined;
|
|
706
|
+
/**
|
|
707
|
+
* Height of the list in rows. A list with a height renders only the rows in or near its
|
|
708
|
+
* viewport.
|
|
709
|
+
*/
|
|
710
|
+
readonly tall?: number | undefined;
|
|
711
|
+
}
|
|
712
|
+
/**
|
|
713
|
+
* Renders a whole listbox from props.
|
|
714
|
+
*
|
|
715
|
+
* @remarks
|
|
716
|
+
* The field, the select-all row and the empty text render in the frame, outside the element with
|
|
717
|
+
* `role="listbox"`, which allows only options and groups. The rows scroll inside that element, so
|
|
718
|
+
* the field and the select-all row stay in place. The label and the summary render outside the
|
|
719
|
+
* frame.
|
|
720
|
+
* @typeParam Row - Type of one collection item.
|
|
721
|
+
* @param props - The collection, the row renderers and the parts above and below the rows.
|
|
722
|
+
* @returns The listbox.
|
|
723
|
+
*/
|
|
724
|
+
declare function Simple$1<Row>(props: SimpleProps$1<Row>): ReactElement;
|
|
725
|
+
declare namespace index_d_exports$1 {
|
|
726
|
+
export { Content$2 as Content, ContentProps$2 as ContentProps, Empty$1 as Empty, EmptyProps$1 as EmptyProps, Frame, FrameProps, Input, InputProps, Item$3 as Item, ItemCheckbox, ItemCheckboxProps, ItemDescription, ItemDescriptionProps, ItemGroup, ItemGroupLabel, ItemGroupLabelProps, ItemGroupProps, ItemIndicator$1 as ItemIndicator, ItemIndicatorProps$1 as ItemIndicatorProps, ItemLines, ItemLinesProps, ItemProps$3 as ItemProps, ItemText$1 as ItemText, ItemTextProps$1 as ItemTextProps, Label$1 as Label, LabelProps$1 as LabelProps, ListboxItem, Narrowing, Range, Root$5 as Root, RootProps$5 as RootProps, Row$2 as Row, RowProps$1 as RowProps, RowShape, SelectAll, SelectAllProps, Simple$1 as Simple, SimpleProps$1 as SimpleProps, ValueText, ValueTextProps, Window, WindowProps };
|
|
727
|
+
}
|
|
728
|
+
//#endregion
|
|
729
|
+
//#region src/sortable/board.d.ts
|
|
730
|
+
/**
|
|
731
|
+
* Renders the board's `div` with the recipe's board class.
|
|
732
|
+
*/
|
|
733
|
+
declare const Box$6: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
734
|
+
/**
|
|
735
|
+
* Describes the props of the board: the props of a `div`, whose children are the lists.
|
|
736
|
+
*/
|
|
737
|
+
type BoardProps = ComponentProps<typeof Box$6>;
|
|
738
|
+
/**
|
|
739
|
+
* Renders the board's lists in a row inside a scroll area that scrolls sideways.
|
|
740
|
+
*
|
|
741
|
+
* @param props - The props of a `div`, whose children are the lists.
|
|
742
|
+
*/
|
|
743
|
+
declare function Board({ children, ...props }: BoardProps): ReactElement;
|
|
744
|
+
//#endregion
|
|
745
|
+
//#region src/sortable/empty.d.ts
|
|
746
|
+
/**
|
|
747
|
+
* Renders the message's `div` with the recipe's empty class.
|
|
748
|
+
*/
|
|
749
|
+
declare const Box$5: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
750
|
+
/**
|
|
751
|
+
* Describes the props of the message: the props of a `div`.
|
|
752
|
+
*/
|
|
753
|
+
type EmptyProps = ComponentProps<typeof Box$5>;
|
|
754
|
+
/**
|
|
755
|
+
* Renders the message while the list it is in has no item, and nothing otherwise.
|
|
756
|
+
*
|
|
757
|
+
* @param props - The props of a `div`, whose children are the message.
|
|
758
|
+
*/
|
|
759
|
+
declare function Empty(props: EmptyProps): null | ReactElement;
|
|
760
|
+
//#endregion
|
|
761
|
+
//#region src/sortable/handle.d.ts
|
|
762
|
+
/**
|
|
763
|
+
* Describes the props of the handle: the props of the actions `Button`, whose children are the
|
|
764
|
+
* glyph.
|
|
765
|
+
*/
|
|
766
|
+
type HandleProps = Omit<ButtonProps, "aria-label" | "shape">;
|
|
767
|
+
/**
|
|
768
|
+
* Renders the handle of the row it is in, or an inert empty box of its size for a disabled row.
|
|
769
|
+
*
|
|
770
|
+
* @param props - The props of the actions `Button`, whose children are the glyph.
|
|
771
|
+
*/
|
|
772
|
+
declare function Handle(props: HandleProps): ReactElement;
|
|
773
|
+
//#endregion
|
|
774
|
+
//#region src/sortable/item-content.d.ts
|
|
775
|
+
/**
|
|
776
|
+
* Renders the content's `div` with the recipe's item content class.
|
|
777
|
+
*/
|
|
778
|
+
declare const ItemContent: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
779
|
+
/**
|
|
780
|
+
* Describes the props of a row's content: the props of a `div`.
|
|
781
|
+
*/
|
|
782
|
+
type ItemContentProps = ComponentProps<typeof ItemContent>;
|
|
783
|
+
//#endregion
|
|
784
|
+
//#region src/sortable/item.d.ts
|
|
785
|
+
/**
|
|
786
|
+
* Renders the row's `li` with the recipe's item class.
|
|
787
|
+
*/
|
|
788
|
+
declare const Box$4: import("@stealthscale/theme").StyledComponent<"li", {}>;
|
|
789
|
+
/**
|
|
790
|
+
* Describes the props of a row: its id, place, name and state, and the props of an `li`.
|
|
791
|
+
*/
|
|
792
|
+
interface ItemProps$2 extends ComponentProps<typeof Box$4> {
|
|
793
|
+
/**
|
|
794
|
+
* Whether the row keeps its place. Off unless stated.
|
|
795
|
+
*/
|
|
796
|
+
readonly disabled?: boolean | undefined;
|
|
797
|
+
/**
|
|
798
|
+
* Index of the row in its list.
|
|
799
|
+
*/
|
|
800
|
+
readonly index: number;
|
|
801
|
+
/**
|
|
802
|
+
* Name of the row, which names its handle and the announcements.
|
|
803
|
+
*/
|
|
804
|
+
readonly label: string;
|
|
805
|
+
/**
|
|
806
|
+
* Id of the row's item.
|
|
807
|
+
*/
|
|
808
|
+
readonly value: string;
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* Renders a row dnd-kit sorts and registers its name with the root.
|
|
812
|
+
*
|
|
813
|
+
* @param props - The row's id, index, name and state, and the props of an `li`.
|
|
814
|
+
*/
|
|
815
|
+
declare function Item$2({ disabled, index, label, value, ...props }: ItemProps$2): ReactElement;
|
|
816
|
+
//#endregion
|
|
817
|
+
//#region src/sortable/items.d.ts
|
|
818
|
+
/**
|
|
819
|
+
* Renders the `ul` with the recipe's items class.
|
|
820
|
+
*/
|
|
821
|
+
declare const Box$3: import("@stealthscale/theme").StyledComponent<"ul", {}>;
|
|
822
|
+
/**
|
|
823
|
+
* Describes the props of the rows: the props of a `ul`.
|
|
824
|
+
*/
|
|
825
|
+
type ItemsProps = ComponentProps<typeof Box$3>;
|
|
826
|
+
/**
|
|
827
|
+
* Renders the `ul` of a list's rows, named by the list's name inside a list.
|
|
828
|
+
*
|
|
829
|
+
* @param props - The props of a `ul`, whose `aria-label` names the one list of an array.
|
|
830
|
+
*/
|
|
831
|
+
declare function Items(props: ItemsProps): ReactElement;
|
|
832
|
+
//#endregion
|
|
833
|
+
//#region src/sortable/list.d.ts
|
|
834
|
+
/**
|
|
835
|
+
* Renders the list's `div` with the recipe's list class.
|
|
836
|
+
*/
|
|
837
|
+
declare const Box$2: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
838
|
+
/**
|
|
839
|
+
* Describes the props of a list: its id, its name, its limit and the props of a `div`.
|
|
840
|
+
*/
|
|
841
|
+
interface ListProps extends ComponentProps<typeof Box$2> {
|
|
842
|
+
/**
|
|
843
|
+
* Name of the list, which names its rows and the announcements.
|
|
844
|
+
*/
|
|
845
|
+
readonly label?: string | undefined;
|
|
846
|
+
/**
|
|
847
|
+
* Most items the list takes from other lists. No limit unless stated.
|
|
848
|
+
*/
|
|
849
|
+
readonly limit?: number | undefined;
|
|
850
|
+
/**
|
|
851
|
+
* Id of the list, its key in the items' record.
|
|
852
|
+
*/
|
|
853
|
+
readonly value: string;
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* Renders a list as a drop target and registers it with the root.
|
|
857
|
+
*
|
|
858
|
+
* @param props - The list's id, name and limit, and the props of a `div`.
|
|
859
|
+
*/
|
|
860
|
+
declare function List({ label, limit, value, ...props }: ListProps): ReactElement;
|
|
861
|
+
//#endregion
|
|
862
|
+
//#region src/sortable/moves.d.ts
|
|
863
|
+
/**
|
|
864
|
+
* Reads and rewrites a sortable kit's items: an array for one list, or a record of lists keyed by
|
|
865
|
+
* their ids, the two shapes `@dnd-kit/helpers`' `move` takes.
|
|
866
|
+
*
|
|
867
|
+
* @remarks
|
|
868
|
+
* A list's id is its key in the record, and the one list of an array has no id. An item's place
|
|
869
|
+
* is its list and its index in it. A move into another list is refused while that list is at its
|
|
870
|
+
* limit, not counting the item itself, and while the caller's rule refuses the move from the list
|
|
871
|
+
* the item was picked up from. A move within one list is never refused.
|
|
872
|
+
*/
|
|
873
|
+
/**
|
|
874
|
+
* Describes an item the kit moves.
|
|
875
|
+
*/
|
|
876
|
+
interface SortableItem {
|
|
877
|
+
/**
|
|
878
|
+
* Id of the item, unique across every list of the kit and different from every list's id.
|
|
879
|
+
*/
|
|
880
|
+
readonly id: string;
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Describes a kit's items: one list as an array, or a board's lists as a record keyed by their ids.
|
|
884
|
+
*
|
|
885
|
+
* @typeParam T - One item.
|
|
886
|
+
*/
|
|
887
|
+
type SortableItems<T extends SortableItem = SortableItem> = Record<string, T[]> | T[];
|
|
888
|
+
/**
|
|
889
|
+
* Describes one item of the items a kit renders.
|
|
890
|
+
*
|
|
891
|
+
* @typeParam Items - The kit's items.
|
|
892
|
+
*/
|
|
893
|
+
type ItemOf<Items> = Items extends Array<infer T> ? T : Items extends Record<string, Array<infer T>> ? T : never;
|
|
894
|
+
/**
|
|
895
|
+
* Describes where an item is.
|
|
896
|
+
*/
|
|
897
|
+
interface SortablePlace {
|
|
898
|
+
/**
|
|
899
|
+
* Index of the item in its list.
|
|
900
|
+
*/
|
|
901
|
+
readonly index: number;
|
|
902
|
+
/**
|
|
903
|
+
* Id of the list, or undefined for the one list of an array.
|
|
904
|
+
*/
|
|
905
|
+
readonly list?: string | undefined;
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* Describes a move a person made: the item and the places before and after it.
|
|
909
|
+
*/
|
|
910
|
+
interface SortableMove {
|
|
911
|
+
/**
|
|
912
|
+
* Place the item left.
|
|
913
|
+
*/
|
|
914
|
+
readonly from: SortablePlace;
|
|
915
|
+
/**
|
|
916
|
+
* Id of the item.
|
|
917
|
+
*/
|
|
918
|
+
readonly id: string;
|
|
919
|
+
/**
|
|
920
|
+
* Place the item took.
|
|
921
|
+
*/
|
|
922
|
+
readonly to: SortablePlace;
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* Describes why a list refuses an item: it is at its limit, or the caller's rule refuses the move.
|
|
926
|
+
*/
|
|
927
|
+
type SortableRefusal = "full" | "refused";
|
|
928
|
+
//#endregion
|
|
929
|
+
//#region src/sortable/words.d.ts
|
|
930
|
+
/**
|
|
931
|
+
* Writes the words a sortable kit gives a screen reader, each a prop with an English default.
|
|
932
|
+
*
|
|
933
|
+
* @remarks
|
|
934
|
+
* A handle is named by its item, so a list of handles is not a list of identical names, and it
|
|
935
|
+
* states a role description in the caller's words over dnd-kit's English "draggable". The
|
|
936
|
+
* instructions a handle is described by name the keys, because nothing about a focused button
|
|
937
|
+
* shows that Space lifts it. Each announcement names the item, its position of the list's count
|
|
938
|
+
* and, on a board, the list, because a position alone does not name the list it is in.
|
|
939
|
+
*/
|
|
940
|
+
/**
|
|
941
|
+
* Describes where an announcement puts an item.
|
|
942
|
+
*/
|
|
943
|
+
interface SortableAnnouncement {
|
|
944
|
+
/**
|
|
945
|
+
* Number of items in the list the item is in.
|
|
946
|
+
*/
|
|
947
|
+
readonly count: number;
|
|
948
|
+
/**
|
|
949
|
+
* Name of the item.
|
|
950
|
+
*/
|
|
951
|
+
readonly item: string;
|
|
952
|
+
/**
|
|
953
|
+
* Name of the list, or undefined for the one list of an array.
|
|
954
|
+
*/
|
|
955
|
+
readonly list?: string | undefined;
|
|
956
|
+
/**
|
|
957
|
+
* Position of the item in the list, from 1.
|
|
958
|
+
*/
|
|
959
|
+
readonly position: number;
|
|
960
|
+
}
|
|
961
|
+
/**
|
|
962
|
+
* Describes a list that refuses an item.
|
|
963
|
+
*/
|
|
964
|
+
interface SortableRefused {
|
|
965
|
+
/**
|
|
966
|
+
* Name of the item.
|
|
967
|
+
*/
|
|
968
|
+
readonly item: string;
|
|
969
|
+
/**
|
|
970
|
+
* Most items the list takes, or undefined for a list the caller's rule refuses.
|
|
971
|
+
*/
|
|
972
|
+
readonly limit?: number | undefined;
|
|
973
|
+
/**
|
|
974
|
+
* Name of the list.
|
|
975
|
+
*/
|
|
976
|
+
readonly list: string;
|
|
977
|
+
}
|
|
978
|
+
/**
|
|
979
|
+
* Describes the words of a sortable kit, each with an English default.
|
|
980
|
+
*/
|
|
981
|
+
interface SortableWords {
|
|
982
|
+
/**
|
|
983
|
+
* Writes the announcement of a drag that was cancelled, with the place the item went back to.
|
|
984
|
+
*/
|
|
985
|
+
readonly cancelledLabel?: ((at: SortableAnnouncement) => string) | undefined;
|
|
986
|
+
/**
|
|
987
|
+
* Writes the announcement of a drop, with the place the item took.
|
|
988
|
+
*/
|
|
989
|
+
readonly droppedLabel?: ((at: SortableAnnouncement) => string) | undefined;
|
|
990
|
+
/**
|
|
991
|
+
* Writes the announcement of a list at its limit refusing the item.
|
|
992
|
+
*/
|
|
993
|
+
readonly fullLabel?: ((refused: SortableRefused) => string) | undefined;
|
|
994
|
+
/**
|
|
995
|
+
* Writes the name of an item's handle from the item's name.
|
|
996
|
+
*/
|
|
997
|
+
readonly handleLabel?: ((item: string) => string) | undefined;
|
|
998
|
+
/**
|
|
999
|
+
* Instructions every handle is described by.
|
|
1000
|
+
*/
|
|
1001
|
+
readonly instructions?: string | undefined;
|
|
1002
|
+
/**
|
|
1003
|
+
* Writes the announcement of an item picked up, with the place it left.
|
|
1004
|
+
*/
|
|
1005
|
+
readonly liftedLabel?: ((at: SortableAnnouncement) => string) | undefined;
|
|
1006
|
+
/**
|
|
1007
|
+
* Writes the announcement of an item moved during a drag, with the place it would take.
|
|
1008
|
+
*/
|
|
1009
|
+
readonly movedLabel?: ((at: SortableAnnouncement) => string) | undefined;
|
|
1010
|
+
/**
|
|
1011
|
+
* Writes the announcement of the caller's rule refusing the item a list.
|
|
1012
|
+
*/
|
|
1013
|
+
readonly refusedLabel?: ((refused: SortableRefused) => string) | undefined;
|
|
1014
|
+
/**
|
|
1015
|
+
* Role description every handle states in place of "button".
|
|
1016
|
+
*/
|
|
1017
|
+
readonly roleDescription?: string | undefined;
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Describes the words with every default applied.
|
|
1021
|
+
*/
|
|
1022
|
+
type Words = Required<{ [Key in keyof SortableWords]: NonNullable<SortableWords[Key]>; }>;
|
|
1023
|
+
//#endregion
|
|
1024
|
+
//#region src/sortable/state.d.ts
|
|
1025
|
+
/**
|
|
1026
|
+
* Describes what a list of a board registers with the root.
|
|
1027
|
+
*/
|
|
1028
|
+
interface ListEntry {
|
|
1029
|
+
/**
|
|
1030
|
+
* Name of the list, which the announcements name it by.
|
|
1031
|
+
*/
|
|
1032
|
+
readonly label?: string | undefined;
|
|
1033
|
+
/**
|
|
1034
|
+
* Most items the list takes.
|
|
1035
|
+
*/
|
|
1036
|
+
readonly limit?: number | undefined;
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* Describes the root's state as its parts read it.
|
|
1040
|
+
*/
|
|
1041
|
+
interface RootState {
|
|
1042
|
+
/**
|
|
1043
|
+
* ID of the element whose text is the instructions every handle is described by.
|
|
1044
|
+
*/
|
|
1045
|
+
readonly instructionsId: string;
|
|
1046
|
+
/**
|
|
1047
|
+
* Items the kit renders.
|
|
1048
|
+
*/
|
|
1049
|
+
readonly items: SortableItems;
|
|
1050
|
+
/**
|
|
1051
|
+
* Registry of the board's lists by their ids.
|
|
1052
|
+
*/
|
|
1053
|
+
readonly lists: Map<string, ListEntry>;
|
|
1054
|
+
/**
|
|
1055
|
+
* Moves an item to a place without a drag, and returns whether the move was taken.
|
|
1056
|
+
*/
|
|
1057
|
+
readonly move: (id: string, to: SortablePlace) => boolean;
|
|
1058
|
+
/**
|
|
1059
|
+
* Registry of the items' names by their ids.
|
|
1060
|
+
*/
|
|
1061
|
+
readonly names: Map<string, string>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Id of the list that refuses the dragged item, or undefined while none does.
|
|
1064
|
+
*/
|
|
1065
|
+
readonly refusing?: string | undefined;
|
|
1066
|
+
/**
|
|
1067
|
+
* Words of the kit, with every default applied.
|
|
1068
|
+
*/
|
|
1069
|
+
readonly words: Words;
|
|
1070
|
+
}
|
|
1071
|
+
/**
|
|
1072
|
+
* Returns the root's move without a drag, for a path that needs no dragging movement.
|
|
1073
|
+
*
|
|
1074
|
+
* @remarks
|
|
1075
|
+
* `move(id, { index, list })` moves an item to an index of a list, its own list when the place
|
|
1076
|
+
* names none, and returns whether the list took it. A list at its limit and a list the root's
|
|
1077
|
+
* rule refuses take no item. The move reports as a drop does and is announced.
|
|
1078
|
+
*/
|
|
1079
|
+
declare function useMove(): RootState["move"];
|
|
1080
|
+
//#endregion
|
|
1081
|
+
//#region src/sortable/root.d.ts
|
|
1082
|
+
/**
|
|
1083
|
+
* Renders the root `div` with the recipe's variants.
|
|
1084
|
+
*/
|
|
1085
|
+
declare const Box$1: import("@stealthscale/theme").StyledComponent<"div", {
|
|
1086
|
+
readonly variant?: "card" | "plain" | undefined;
|
|
1087
|
+
}>;
|
|
1088
|
+
/**
|
|
1089
|
+
* Describes what the root hands a render function among its children.
|
|
1090
|
+
*/
|
|
1091
|
+
interface SortableApi {
|
|
1092
|
+
/**
|
|
1093
|
+
* Moves an item to a place without a drag, and returns whether its list took it.
|
|
1094
|
+
*/
|
|
1095
|
+
readonly move: RootState["move"];
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Describes the props of the root: the items, the callbacks, the rule, the words and the props of
|
|
1099
|
+
* a `div`.
|
|
1100
|
+
*
|
|
1101
|
+
* @typeParam Items - The kit's items: an array for one list, or a record of lists by their ids.
|
|
1102
|
+
*/
|
|
1103
|
+
interface RootProps$4<Items extends SortableItems> extends Omit<ComponentProps<typeof Box$1>, "children">, SortableWords {
|
|
1104
|
+
/**
|
|
1105
|
+
* Returns whether an item may move from the list it was picked up from into another list. Every
|
|
1106
|
+
* move is allowed unless stated.
|
|
1107
|
+
*/
|
|
1108
|
+
readonly canMove?: ((item: ItemOf<Items>, from: string, to: string) => boolean) | undefined;
|
|
1109
|
+
/**
|
|
1110
|
+
* Lists and rows of the kit, or a function that renders them from the root's move without a
|
|
1111
|
+
* drag.
|
|
1112
|
+
*/
|
|
1113
|
+
readonly children?: ((api: SortableApi) => ReactNode) | ReactNode;
|
|
1114
|
+
/**
|
|
1115
|
+
* Items the lists render, controlled.
|
|
1116
|
+
*/
|
|
1117
|
+
readonly items: Items;
|
|
1118
|
+
/**
|
|
1119
|
+
* Called once with each finished move, from the place the item left to the place it took.
|
|
1120
|
+
*/
|
|
1121
|
+
readonly onItemMove?: ((move: SortableMove) => void) | undefined;
|
|
1122
|
+
/**
|
|
1123
|
+
* Called with the items to render after a change.
|
|
1124
|
+
*/
|
|
1125
|
+
readonly onItemsChange?: ((items: Items) => void) | undefined;
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Renders dnd-kit's provider and the root `div` around the kit's lists and rows.
|
|
1129
|
+
*
|
|
1130
|
+
* @typeParam Items - The kit's items.
|
|
1131
|
+
* @param props - The items, the callbacks, the rule, the words and the props of a `div`.
|
|
1132
|
+
*/
|
|
1133
|
+
declare function Root$4<Items extends SortableItems>(props: RootProps$4<Items>): ReactElement;
|
|
1134
|
+
declare namespace index_d_exports$2 {
|
|
1135
|
+
export { Board, BoardProps, Empty, EmptyProps, Handle, HandleProps, Item$2 as Item, ItemContent, ItemContentProps, ItemOf, ItemProps$2 as ItemProps, Items, ItemsProps, List, ListProps, Root$4 as Root, RootProps$4 as RootProps, SortableAnnouncement, SortableApi, SortableItem, SortableItems, SortableMove, SortablePlace, SortableRefusal, SortableRefused, SortableWords, useMove };
|
|
1136
|
+
}
|
|
1137
|
+
//#endregion
|
|
1138
|
+
//#region src/status-matrix/states.d.ts
|
|
1139
|
+
/**
|
|
1140
|
+
* Palettes a state renders in: the four statuses and `neutral` for a crossing that does not apply.
|
|
1141
|
+
*/
|
|
1142
|
+
type MatrixTone = "error" | "info" | "neutral" | "success" | "warning";
|
|
1143
|
+
/**
|
|
1144
|
+
* Describes one state of the caller's vocabulary.
|
|
1145
|
+
*/
|
|
1146
|
+
interface MatrixState {
|
|
1147
|
+
/**
|
|
1148
|
+
* Text of the state in the legend, and the accessible name of a crossing without `cellLabel`.
|
|
1149
|
+
*/
|
|
1150
|
+
readonly label: string;
|
|
1151
|
+
/**
|
|
1152
|
+
* Mark rendered in the cell. Defaults to a filled dot. Two states with one tone need a mark each,
|
|
1153
|
+
* or they render alike.
|
|
1154
|
+
*/
|
|
1155
|
+
readonly mark?: ReactNode | undefined;
|
|
1156
|
+
/**
|
|
1157
|
+
* Palette of the mark, and the rank the rollup reads.
|
|
1158
|
+
*/
|
|
1159
|
+
readonly tone: MatrixTone;
|
|
1160
|
+
}
|
|
1161
|
+
/**
|
|
1162
|
+
* Describes one heading on either axis.
|
|
1163
|
+
*/
|
|
1164
|
+
interface MatrixHeading {
|
|
1165
|
+
/**
|
|
1166
|
+
* Section a row is grouped under, as both its key and its heading. Read on rows only. Sections
|
|
1167
|
+
* render only when every row has one.
|
|
1168
|
+
*/
|
|
1169
|
+
readonly group?: string | undefined;
|
|
1170
|
+
/**
|
|
1171
|
+
* Identifier of the row or the column in the cells.
|
|
1172
|
+
*/
|
|
1173
|
+
readonly id: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Content of the row header or the column header.
|
|
1176
|
+
*/
|
|
1177
|
+
readonly label: ReactNode;
|
|
1178
|
+
}
|
|
1179
|
+
/**
|
|
1180
|
+
* Describes one measured crossing.
|
|
1181
|
+
*/
|
|
1182
|
+
interface MatrixCell {
|
|
1183
|
+
/**
|
|
1184
|
+
* Identifier of the column.
|
|
1185
|
+
*/
|
|
1186
|
+
readonly column: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* Identifier of the row.
|
|
1189
|
+
*/
|
|
1190
|
+
readonly row: string;
|
|
1191
|
+
/**
|
|
1192
|
+
* Key of the state in the matrix's vocabulary.
|
|
1193
|
+
*/
|
|
1194
|
+
readonly state: string;
|
|
1195
|
+
}
|
|
1196
|
+
//#endregion
|
|
1197
|
+
//#region src/table/body.d.ts
|
|
1198
|
+
/**
|
|
1199
|
+
* Renders the `tbody` with the table's body class.
|
|
1200
|
+
*/
|
|
1201
|
+
declare const Body: import("@stealthscale/theme").StyledComponent<"tbody", {}>;
|
|
1202
|
+
/**
|
|
1203
|
+
* Describes the props of a body: the props of a `tbody`.
|
|
1204
|
+
*/
|
|
1205
|
+
type BodyProps = ComponentProps<typeof Body>;
|
|
1206
|
+
//#endregion
|
|
1207
|
+
//#region src/table/caption.d.ts
|
|
1208
|
+
/**
|
|
1209
|
+
* Renders the `caption` with the table's caption class.
|
|
1210
|
+
*/
|
|
1211
|
+
declare const Caption: import("@stealthscale/theme").StyledComponent<"caption", {}>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Describes the props of the caption: the props of a `caption`.
|
|
1214
|
+
*/
|
|
1215
|
+
type CaptionProps = ComponentProps<typeof Caption>;
|
|
1216
|
+
//#endregion
|
|
1217
|
+
//#region src/table/cell.d.ts
|
|
1218
|
+
/**
|
|
1219
|
+
* Renders the `td` with the table's cell class.
|
|
1220
|
+
*/
|
|
1221
|
+
declare const Cell: import("@stealthscale/theme").StyledComponent<"td", {}>;
|
|
1222
|
+
/**
|
|
1223
|
+
* Describes the props of a cell: the props of a `td`.
|
|
1224
|
+
*/
|
|
1225
|
+
type CellProps = ComponentProps<typeof Cell>;
|
|
1226
|
+
//#endregion
|
|
1227
|
+
//#region src/table/column-group.d.ts
|
|
1228
|
+
/**
|
|
1229
|
+
* Renders the `colgroup` with the table's column group class.
|
|
1230
|
+
*/
|
|
1231
|
+
declare const ColumnGroup: import("@stealthscale/theme").StyledComponent<"colgroup", {}>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Describes the props of the column group: the props of a `colgroup`.
|
|
1234
|
+
*/
|
|
1235
|
+
type ColumnGroupProps = ComponentProps<typeof ColumnGroup>;
|
|
1236
|
+
//#endregion
|
|
1237
|
+
//#region src/table/column-header.d.ts
|
|
1238
|
+
/**
|
|
1239
|
+
* Renders the `th` with the table's column header class and `scope="col"`.
|
|
1240
|
+
*/
|
|
1241
|
+
declare const ColumnHeader: import("@stealthscale/theme").StyledComponent<"th", {}>;
|
|
1242
|
+
/**
|
|
1243
|
+
* Describes the props of a column header: the props of a `th`.
|
|
1244
|
+
*/
|
|
1245
|
+
type ColumnHeaderProps = ComponentProps<typeof ColumnHeader>;
|
|
1246
|
+
//#endregion
|
|
1247
|
+
//#region src/table/column.d.ts
|
|
1248
|
+
/**
|
|
1249
|
+
* Renders the `col` with the table's column class.
|
|
1250
|
+
*/
|
|
1251
|
+
declare const Column$1: import("@stealthscale/theme").StyledComponent<"col", {}>;
|
|
1252
|
+
/**
|
|
1253
|
+
* Describes the props of a column: the props of a `col`.
|
|
1254
|
+
*/
|
|
1255
|
+
type ColumnProps = ComponentProps<typeof Column$1>;
|
|
1256
|
+
//#endregion
|
|
1257
|
+
//#region src/table/footer.d.ts
|
|
1258
|
+
/**
|
|
1259
|
+
* Renders the `tfoot` with the table's footer class.
|
|
1260
|
+
*/
|
|
1261
|
+
declare const Footer: import("@stealthscale/theme").StyledComponent<"tfoot", {}>;
|
|
1262
|
+
/**
|
|
1263
|
+
* Describes the props of the footer: the props of a `tfoot`.
|
|
1264
|
+
*/
|
|
1265
|
+
type FooterProps = ComponentProps<typeof Footer>;
|
|
1266
|
+
//#endregion
|
|
1267
|
+
//#region src/table/header.d.ts
|
|
1268
|
+
/**
|
|
1269
|
+
* Renders the `thead` with the table's header class.
|
|
1270
|
+
*/
|
|
1271
|
+
declare const Header: import("@stealthscale/theme").StyledComponent<"thead", {}>;
|
|
1272
|
+
/**
|
|
1273
|
+
* Describes the props of the header: the props of a `thead`.
|
|
1274
|
+
*/
|
|
1275
|
+
type HeaderProps = ComponentProps<typeof Header>;
|
|
1276
|
+
//#endregion
|
|
1277
|
+
//#region src/table/root.d.ts
|
|
1278
|
+
/**
|
|
1279
|
+
* Renders the `table` with the table's root class.
|
|
1280
|
+
*/
|
|
1281
|
+
declare const Root$3: import("@stealthscale/theme").StyledComponent<"table", {}>;
|
|
1282
|
+
/**
|
|
1283
|
+
* Describes the props of the table: the props of a `table`.
|
|
1284
|
+
*/
|
|
1285
|
+
type RootProps$3 = ComponentProps<typeof Root$3>;
|
|
1286
|
+
//#endregion
|
|
1287
|
+
//#region src/table/row-header.d.ts
|
|
1288
|
+
/**
|
|
1289
|
+
* Renders the `th` with the table's row header class and `scope="row"`.
|
|
1290
|
+
*/
|
|
1291
|
+
declare const RowHeader: import("@stealthscale/theme").StyledComponent<"th", {}>;
|
|
1292
|
+
/**
|
|
1293
|
+
* Describes the props of a row header: the props of a `th`.
|
|
1294
|
+
*/
|
|
1295
|
+
type RowHeaderProps = ComponentProps<typeof RowHeader>;
|
|
1296
|
+
//#endregion
|
|
1297
|
+
//#region src/table/row.d.ts
|
|
1298
|
+
/**
|
|
1299
|
+
* Renders the `tr` with the table's row class.
|
|
1300
|
+
*/
|
|
1301
|
+
declare const Row$1: import("@stealthscale/theme").StyledComponent<"tr", {}>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Describes the props of a row: the props of a `tr`.
|
|
1304
|
+
*/
|
|
1305
|
+
type RowProps = ComponentProps<typeof Row$1>;
|
|
1306
|
+
//#endregion
|
|
1307
|
+
//#region src/table/scroller.d.ts
|
|
1308
|
+
/**
|
|
1309
|
+
* Renders the `div` with the recipe's variants.
|
|
1310
|
+
*/
|
|
1311
|
+
declare const Box: import("@stealthscale/theme").StyledComponent<"div", {
|
|
1312
|
+
readonly align?: "center" | "end" | "start" | undefined;
|
|
1313
|
+
readonly interactive?: boolean | undefined;
|
|
1314
|
+
readonly layout?: "auto" | "fixed" | undefined;
|
|
1315
|
+
readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
1316
|
+
readonly radius?: "l1" | "l2" | "l3" | undefined;
|
|
1317
|
+
readonly rules?: "all" | "none" | "rows" | undefined;
|
|
1318
|
+
readonly size?: "lg" | "md" | "sm" | undefined;
|
|
1319
|
+
readonly stickyHeader?: boolean | undefined;
|
|
1320
|
+
readonly stickyColumn?: boolean | undefined;
|
|
1321
|
+
readonly banded?: boolean | undefined;
|
|
1322
|
+
readonly striped?: boolean | undefined;
|
|
1323
|
+
readonly variant?: "plain" | "surface" | undefined;
|
|
1324
|
+
}>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Describes the props of the scroller: whether the viewport takes a tab stop, the recipe's
|
|
1327
|
+
* variants and the props of a `div`.
|
|
1328
|
+
*/
|
|
1329
|
+
interface ScrollerProps extends ComponentProps<typeof Box> {
|
|
1330
|
+
/**
|
|
1331
|
+
* Whether the viewport is a region with a tab stop while the table overflows. `false` keeps it
|
|
1332
|
+
* out of the tab order, for a table whose cells take focus. `true` unless stated.
|
|
1333
|
+
*/
|
|
1334
|
+
readonly focusable?: boolean | undefined;
|
|
1335
|
+
/**
|
|
1336
|
+
* Ref of the scroll area's viewport, the element that scrolls.
|
|
1337
|
+
*/
|
|
1338
|
+
readonly viewportRef?: Ref<HTMLDivElement> | undefined;
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Renders the scroller around a scroll area whose viewport takes the region's name.
|
|
1342
|
+
*
|
|
1343
|
+
* @param props - Whether the viewport takes a tab stop, the viewport's ref, the recipe's variants
|
|
1344
|
+
* and the props of a `div`, whose `aria-label` and `aria-labelledby` name the viewport.
|
|
1345
|
+
* @returns The `div` element.
|
|
1346
|
+
*/
|
|
1347
|
+
declare function Scroller({ "aria-label": label, "aria-labelledby": labelledBy, children, focusable, viewportRef, ...rest }: ScrollerProps): ReactElement;
|
|
1348
|
+
//#endregion
|
|
1349
|
+
//#region src/table/sorter.d.ts
|
|
1350
|
+
/**
|
|
1351
|
+
* Renders the `button` with the table's sorter class and `type="button"`.
|
|
1352
|
+
*/
|
|
1353
|
+
declare const Sorter: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
1354
|
+
/**
|
|
1355
|
+
* Describes the props of the sorter: the props of a `button`.
|
|
1356
|
+
*/
|
|
1357
|
+
type SorterProps = ComponentProps<typeof Sorter>;
|
|
1358
|
+
//#endregion
|
|
1359
|
+
//#region src/status-matrix/status-matrix.d.ts
|
|
1360
|
+
/**
|
|
1361
|
+
* Describes the props of the matrix: the axes, the cells, the vocabulary and the scroller's props.
|
|
1362
|
+
*
|
|
1363
|
+
* @remarks
|
|
1364
|
+
* The scroller's `columns`, the CSS multi-column property, is left out, so `columns` names the
|
|
1365
|
+
* matrix's columns.
|
|
1366
|
+
*/
|
|
1367
|
+
interface StatusMatrixProps extends Omit<ScrollerProps, "children" | "columns"> {
|
|
1368
|
+
/**
|
|
1369
|
+
* Caption rendered under the grid, and the accessible name of the table and the scroller.
|
|
1370
|
+
*/
|
|
1371
|
+
readonly caption?: ReactNode | undefined;
|
|
1372
|
+
/**
|
|
1373
|
+
* Returns a crossing's accessible name. Defaults to the state's label. A matrix with
|
|
1374
|
+
* `onSelectCell` needs it, because every button in a column would otherwise share one name.
|
|
1375
|
+
*/
|
|
1376
|
+
readonly cellLabel?: ((state: MatrixState, row: MatrixHeading, column: MatrixHeading) => string) | undefined;
|
|
1377
|
+
/**
|
|
1378
|
+
* Measured crossings. A pair without a cell renders `unmeasured`, and the later of two cells for
|
|
1379
|
+
* one pair applies.
|
|
1380
|
+
*/
|
|
1381
|
+
readonly cells: readonly MatrixCell[];
|
|
1382
|
+
/**
|
|
1383
|
+
* Headings across the top.
|
|
1384
|
+
*/
|
|
1385
|
+
readonly columns: readonly MatrixHeading[];
|
|
1386
|
+
/**
|
|
1387
|
+
* Content of the header cell over the row names.
|
|
1388
|
+
*/
|
|
1389
|
+
readonly corner?: ReactNode | undefined;
|
|
1390
|
+
/**
|
|
1391
|
+
* Content of a full-width row rendered while `rows` is empty.
|
|
1392
|
+
*/
|
|
1393
|
+
readonly empty?: ReactNode | undefined;
|
|
1394
|
+
/**
|
|
1395
|
+
* Accessible name of the legend. The legend renders only with it.
|
|
1396
|
+
*/
|
|
1397
|
+
readonly legend?: string | undefined;
|
|
1398
|
+
/**
|
|
1399
|
+
* Called with the row, the column and the cell of a pressed crossing. The cell is undefined for
|
|
1400
|
+
* a pair without one. Setting it renders every crossing as a button.
|
|
1401
|
+
*/
|
|
1402
|
+
readonly onSelectCell?: ((row: string, column: string, cell: MatrixCell | undefined) => void) | undefined;
|
|
1403
|
+
/**
|
|
1404
|
+
* Header of the last column, which renders each row's worst state. The column renders only with
|
|
1405
|
+
* it.
|
|
1406
|
+
*/
|
|
1407
|
+
readonly rollup?: ReactNode | undefined;
|
|
1408
|
+
/**
|
|
1409
|
+
* Headings down the side, one per row.
|
|
1410
|
+
*/
|
|
1411
|
+
readonly rows: readonly MatrixHeading[];
|
|
1412
|
+
/**
|
|
1413
|
+
* Vocabulary of states, keyed by the names the cells use. Two states with one tone need a mark
|
|
1414
|
+
* each, or they render alike.
|
|
1415
|
+
*/
|
|
1416
|
+
readonly states: Readonly<Record<string, MatrixState>>;
|
|
1417
|
+
/**
|
|
1418
|
+
* State of a pair without a cell, listed last in the legend.
|
|
1419
|
+
*/
|
|
1420
|
+
readonly unmeasured: MatrixState;
|
|
1421
|
+
}
|
|
1422
|
+
/**
|
|
1423
|
+
* Renders the state of one set of items against another, with a mark at every crossing.
|
|
1424
|
+
*
|
|
1425
|
+
* @param props - The axes, the cells, the vocabulary and the scroller's props.
|
|
1426
|
+
* @returns The scroller with the table inside it, over the legend.
|
|
1427
|
+
*/
|
|
1428
|
+
export declare function StatusMatrix(props: StatusMatrixProps): ReactElement;
|
|
1429
|
+
//#endregion
|
|
1430
|
+
//#region src/swipe-actions/action.d.ts
|
|
1431
|
+
/**
|
|
1432
|
+
* Describes the props of an action: the props of the actions `Button`.
|
|
1433
|
+
*/
|
|
1434
|
+
type ActionProps = ButtonProps;
|
|
1435
|
+
/**
|
|
1436
|
+
* Renders an action that closes its row before it runs `onClick`.
|
|
1437
|
+
*
|
|
1438
|
+
* @param props - The props of the actions `Button`.
|
|
1439
|
+
* @returns The `button` element.
|
|
1440
|
+
*/
|
|
1441
|
+
declare function Action({ onClick, ...props }: ActionProps): ReactElement;
|
|
1442
|
+
//#endregion
|
|
1443
|
+
//#region src/swipe-actions/actions.d.ts
|
|
1444
|
+
/**
|
|
1445
|
+
* Renders the actions `div` with the recipe's actions class.
|
|
1446
|
+
*/
|
|
1447
|
+
declare const Panel: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
1448
|
+
/**
|
|
1449
|
+
* Describes the props of the actions: the props of a `div` without `ref`, which the row keeps.
|
|
1450
|
+
*/
|
|
1451
|
+
type ActionsProps = Omit<ComponentProps<typeof Panel>, "ref">;
|
|
1452
|
+
/**
|
|
1453
|
+
* Renders the actions with the focus and key handlers merged over the caller's.
|
|
1454
|
+
*
|
|
1455
|
+
* @param props - The props of a `div`.
|
|
1456
|
+
* @returns The `div` element.
|
|
1457
|
+
*/
|
|
1458
|
+
declare function Actions(props: ActionsProps): ReactElement;
|
|
1459
|
+
//#endregion
|
|
1460
|
+
//#region src/swipe-actions/content.d.ts
|
|
1461
|
+
/**
|
|
1462
|
+
* Renders the content `div` with the recipe's content class.
|
|
1463
|
+
*/
|
|
1464
|
+
declare const Moving: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
1465
|
+
/**
|
|
1466
|
+
* Describes the props of the content: the props of a `div`.
|
|
1467
|
+
*/
|
|
1468
|
+
type ContentProps$1 = ComponentProps<typeof Moving>;
|
|
1469
|
+
/**
|
|
1470
|
+
* Renders the content with the drag and wheel handlers merged over the caller's.
|
|
1471
|
+
*
|
|
1472
|
+
* @param props - The props of a `div`.
|
|
1473
|
+
* @returns The `div` element.
|
|
1474
|
+
*/
|
|
1475
|
+
declare function Content$1(props: ContentProps$1): ReactElement;
|
|
1476
|
+
//#endregion
|
|
1477
|
+
//#region src/swipe-actions/root.d.ts
|
|
1478
|
+
/**
|
|
1479
|
+
* Renders the root `div` with the recipe's variants.
|
|
1480
|
+
*/
|
|
1481
|
+
declare const Row: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
1482
|
+
/**
|
|
1483
|
+
* Describes the props of the root: the props of a `div` without `ref`, which the root keeps.
|
|
1484
|
+
*/
|
|
1485
|
+
type RootProps$2 = Omit<ComponentProps<typeof Row>, "ref">;
|
|
1486
|
+
/**
|
|
1487
|
+
* Renders the row and provides its state to the parts.
|
|
1488
|
+
*
|
|
1489
|
+
* @param props - The props of a `div`.
|
|
1490
|
+
* @returns The `div` element inside the state provider.
|
|
1491
|
+
*/
|
|
1492
|
+
declare function Root$2({ style, ...props }: RootProps$2): ReactElement;
|
|
1493
|
+
//#endregion
|
|
1494
|
+
//#region src/swipe-actions/settle.d.ts
|
|
1495
|
+
/**
|
|
1496
|
+
* Decides where a released swipe settles.
|
|
1497
|
+
*/
|
|
1498
|
+
/**
|
|
1499
|
+
* Returns whether a released swipe leaves the actions open: at or past half their width it stays
|
|
1500
|
+
* open, and short of half it closes.
|
|
1501
|
+
*
|
|
1502
|
+
* @param revealed - The width of the actions the swipe revealed, in pixels.
|
|
1503
|
+
* @param width - The width of the actions, in pixels.
|
|
1504
|
+
* @returns `open` or `closed`. A row without actions, 0px wide, always closes.
|
|
1505
|
+
*/
|
|
1506
|
+
declare function settleSwipe(revealed: number, width: number): "closed" | "open";
|
|
1507
|
+
declare namespace index_d_exports$3 {
|
|
1508
|
+
export { Action, ActionProps, Actions, ActionsProps, Content$1 as Content, ContentProps$1 as ContentProps, Root$2 as Root, RootProps$2 as RootProps, settleSwipe };
|
|
1509
|
+
}
|
|
1510
|
+
//#endregion
|
|
1511
|
+
//#region src/table/columns.d.ts
|
|
1512
|
+
/**
|
|
1513
|
+
* Describes a column that renders values.
|
|
1514
|
+
*
|
|
1515
|
+
* @typeParam Row - Type of one record.
|
|
1516
|
+
*/
|
|
1517
|
+
interface Leaf<Row> {
|
|
1518
|
+
/**
|
|
1519
|
+
* Returns the column's value for a record. Defaults to the record's property named `key`.
|
|
1520
|
+
*/
|
|
1521
|
+
readonly cell?: ((row: Row) => ReactNode) | undefined;
|
|
1522
|
+
/**
|
|
1523
|
+
* Key of the column, and the property its value is read from without `cell`.
|
|
1524
|
+
*/
|
|
1525
|
+
readonly key: string;
|
|
1526
|
+
/**
|
|
1527
|
+
* Header of the column.
|
|
1528
|
+
*/
|
|
1529
|
+
readonly label: ReactNode;
|
|
1530
|
+
/**
|
|
1531
|
+
* Whether the column contains figures, aligned to the end in tabular figures.
|
|
1532
|
+
*/
|
|
1533
|
+
readonly numeric?: boolean | undefined;
|
|
1534
|
+
/**
|
|
1535
|
+
* Whether the column's cells render as row headers.
|
|
1536
|
+
*/
|
|
1537
|
+
readonly rowHeader?: boolean | undefined;
|
|
1538
|
+
/**
|
|
1539
|
+
* Sort direction, on the column the table is sorted by.
|
|
1540
|
+
*/
|
|
1541
|
+
readonly sorted?: "ascending" | "descending" | undefined;
|
|
1542
|
+
/**
|
|
1543
|
+
* Accessible name of the column's sort button. A column without it does not sort.
|
|
1544
|
+
*/
|
|
1545
|
+
readonly sortLabel?: string | undefined;
|
|
1546
|
+
/**
|
|
1547
|
+
* Width of the column, as a CSS length or percentage.
|
|
1548
|
+
*/
|
|
1549
|
+
readonly width?: string | undefined;
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
* Describes a header that spans the columns under it.
|
|
1553
|
+
*
|
|
1554
|
+
* @typeParam Row - Type of one record.
|
|
1555
|
+
*/
|
|
1556
|
+
interface Branch<Row> {
|
|
1557
|
+
/**
|
|
1558
|
+
* Columns the header spans.
|
|
1559
|
+
*/
|
|
1560
|
+
readonly columns: ReadonlyArray<Column<Row>>;
|
|
1561
|
+
/**
|
|
1562
|
+
* Text of the spanning header.
|
|
1563
|
+
*/
|
|
1564
|
+
readonly label: ReactNode;
|
|
1565
|
+
}
|
|
1566
|
+
/**
|
|
1567
|
+
* Describes a column: a leaf that renders values, or a branch that spans columns.
|
|
1568
|
+
*
|
|
1569
|
+
* @typeParam Row - Type of one record.
|
|
1570
|
+
*/
|
|
1571
|
+
type Column<Row> = Branch<Row> | Leaf<Row>;
|
|
1572
|
+
/**
|
|
1573
|
+
* Describes one header cell with its spans.
|
|
1574
|
+
*
|
|
1575
|
+
* @typeParam Row - Type of one record.
|
|
1576
|
+
*/
|
|
1577
|
+
interface Named<Row> {
|
|
1578
|
+
/**
|
|
1579
|
+
* Number of columns the header spans.
|
|
1580
|
+
*/
|
|
1581
|
+
readonly colSpan: number;
|
|
1582
|
+
/**
|
|
1583
|
+
* Leaf the header belongs to, for a header over one column.
|
|
1584
|
+
*/
|
|
1585
|
+
readonly column?: Leaf<Row> | undefined;
|
|
1586
|
+
/**
|
|
1587
|
+
* Key of the header: the leaf's key, or the key of the first leaf a branch spans.
|
|
1588
|
+
*/
|
|
1589
|
+
readonly key: string;
|
|
1590
|
+
/**
|
|
1591
|
+
* Text of the header.
|
|
1592
|
+
*/
|
|
1593
|
+
readonly label: ReactNode;
|
|
1594
|
+
/**
|
|
1595
|
+
* Number of header rows the header spans.
|
|
1596
|
+
*/
|
|
1597
|
+
readonly rowSpan: number;
|
|
1598
|
+
}
|
|
1599
|
+
//#endregion
|
|
1600
|
+
//#region src/table/simple.d.ts
|
|
1601
|
+
/**
|
|
1602
|
+
* Describes the props of a whole table: the scroller's props, the columns and the rows.
|
|
1603
|
+
*
|
|
1604
|
+
* @remarks
|
|
1605
|
+
* The scroller's `columns`, the CSS multi-column property, is left out, so `columns` names the
|
|
1606
|
+
* table's columns.
|
|
1607
|
+
* @typeParam Row - Type of one record.
|
|
1608
|
+
*/
|
|
1609
|
+
interface SimpleProps<Row> extends Omit<ScrollerProps, "columns"> {
|
|
1610
|
+
/**
|
|
1611
|
+
* Caption rendered under the table, and the accessible name of the table and the scroller.
|
|
1612
|
+
*/
|
|
1613
|
+
readonly caption?: ReactNode | undefined;
|
|
1614
|
+
/**
|
|
1615
|
+
* Columns in render order. A branch spans the columns under it.
|
|
1616
|
+
*/
|
|
1617
|
+
readonly columns: ReadonlyArray<Column<Row>>;
|
|
1618
|
+
/**
|
|
1619
|
+
* Content of a full-width row rendered while `rows` is empty.
|
|
1620
|
+
*/
|
|
1621
|
+
readonly empty?: ReactNode | undefined;
|
|
1622
|
+
/**
|
|
1623
|
+
* Returns the key of the section a record belongs to.
|
|
1624
|
+
*/
|
|
1625
|
+
readonly groupBy?: ((row: Row) => string) | undefined;
|
|
1626
|
+
/**
|
|
1627
|
+
* Returns a section's heading from its key. Defaults to the key.
|
|
1628
|
+
*/
|
|
1629
|
+
readonly groupLabel?: ((under: string) => ReactNode) | undefined;
|
|
1630
|
+
/**
|
|
1631
|
+
* Called with the column key on a press of a sort button.
|
|
1632
|
+
*/
|
|
1633
|
+
readonly onSort?: ((key: string) => void) | undefined;
|
|
1634
|
+
/**
|
|
1635
|
+
* Records in render order.
|
|
1636
|
+
*/
|
|
1637
|
+
readonly rows: readonly Row[];
|
|
1638
|
+
/**
|
|
1639
|
+
* Returns the React key of a record.
|
|
1640
|
+
*/
|
|
1641
|
+
readonly rowToKey: (row: Row) => string;
|
|
1642
|
+
/**
|
|
1643
|
+
* Returns the total row's content for a leaf column. Branches are never passed.
|
|
1644
|
+
*/
|
|
1645
|
+
readonly total?: ((column: Leaf<Row>) => ReactNode) | undefined;
|
|
1646
|
+
}
|
|
1647
|
+
/**
|
|
1648
|
+
* Renders a whole table from a list of columns and a list of rows.
|
|
1649
|
+
*
|
|
1650
|
+
* @remarks
|
|
1651
|
+
* The scroller's region takes its name from the caption, or from `aria-label` where the caller
|
|
1652
|
+
* passes one, so a table whose caption repeats the title of the section around it can name its
|
|
1653
|
+
* region apart from the section.
|
|
1654
|
+
* @typeParam Row - Type of one record.
|
|
1655
|
+
* @param props - The columns, the rows, the table's options and the scroller's props.
|
|
1656
|
+
* @returns The scroller with the table inside it.
|
|
1657
|
+
*/
|
|
1658
|
+
declare function Simple<Row>(props: SimpleProps<Row>): ReactElement;
|
|
1659
|
+
declare namespace index_d_exports$4 {
|
|
1660
|
+
export { Body, BodyProps, Branch, Caption, CaptionProps, Cell, CellProps, Column$1 as Column, ColumnGroup, ColumnGroupProps, ColumnHeader, ColumnHeaderProps, Column as ColumnOf, ColumnProps, Footer, FooterProps, Header, HeaderProps, Leaf, Named, Root$3 as Root, RootProps$3 as RootProps, Row$1 as Row, RowHeader, RowHeaderProps, RowProps, Scroller, ScrollerProps, Simple, SimpleProps, Sorter, SorterProps };
|
|
1661
|
+
}
|
|
1662
|
+
//#endregion
|
|
1663
|
+
//#region src/timeline/connector.d.ts
|
|
1664
|
+
/**
|
|
1665
|
+
* Renders the connector `div` in the root's middle column.
|
|
1666
|
+
*/
|
|
1667
|
+
declare const Connector: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
1668
|
+
/**
|
|
1669
|
+
* Describes the props of `Connector`.
|
|
1670
|
+
*/
|
|
1671
|
+
type ConnectorProps = ComponentProps<typeof Connector>;
|
|
1672
|
+
//#endregion
|
|
1673
|
+
//#region src/timeline/content.d.ts
|
|
1674
|
+
/**
|
|
1675
|
+
* Renders the content `div`, a column of a title and a description.
|
|
1676
|
+
*/
|
|
1677
|
+
declare const Content: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
1678
|
+
/**
|
|
1679
|
+
* Describes the props of `Content`.
|
|
1680
|
+
*/
|
|
1681
|
+
type ContentProps = ComponentProps<typeof Content>;
|
|
1682
|
+
//#endregion
|
|
1683
|
+
//#region src/timeline/description.d.ts
|
|
1684
|
+
/**
|
|
1685
|
+
* Renders the description `div`.
|
|
1686
|
+
*/
|
|
1687
|
+
declare const Description: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
1688
|
+
/**
|
|
1689
|
+
* Describes the props of `Description`.
|
|
1690
|
+
*/
|
|
1691
|
+
type DescriptionProps = ComponentProps<typeof Description>;
|
|
1692
|
+
//#endregion
|
|
1693
|
+
//#region src/timeline/indicator.d.ts
|
|
1694
|
+
/**
|
|
1695
|
+
* Renders the indicator `span`, hidden from screen readers.
|
|
1696
|
+
*/
|
|
1697
|
+
declare const Indicator: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
1698
|
+
/**
|
|
1699
|
+
* Describes the props of `Indicator`.
|
|
1700
|
+
*/
|
|
1701
|
+
type IndicatorProps = ComponentProps<typeof Indicator>;
|
|
1702
|
+
//#endregion
|
|
1703
|
+
//#region src/timeline/item.d.ts
|
|
1704
|
+
/**
|
|
1705
|
+
* Renders the item `li`, a subgrid row across the root's three columns.
|
|
1706
|
+
*/
|
|
1707
|
+
declare const Item$1: import("@stealthscale/theme").StyledComponent<"li", {}>;
|
|
1708
|
+
/**
|
|
1709
|
+
* Describes the props of `Item`.
|
|
1710
|
+
*/
|
|
1711
|
+
type ItemProps$1 = ComponentProps<typeof Item$1>;
|
|
1712
|
+
//#endregion
|
|
1713
|
+
//#region src/timeline/root.d.ts
|
|
1714
|
+
/**
|
|
1715
|
+
* Renders the root `ol` with the timeline's variants.
|
|
1716
|
+
*/
|
|
1717
|
+
declare const Root$1: import("@stealthscale/theme").StyledComponent<"ol", {
|
|
1718
|
+
readonly ongoing?: boolean | undefined;
|
|
1719
|
+
readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
1720
|
+
readonly rail?: "center" | "end" | "start" | undefined;
|
|
1721
|
+
readonly size?: "lg" | "md" | "sm" | "xl" | undefined;
|
|
1722
|
+
readonly variant?: "outline" | "plain" | "solid" | "subtle" | undefined;
|
|
1723
|
+
}>;
|
|
1724
|
+
/**
|
|
1725
|
+
* Describes the props of `Root`.
|
|
1726
|
+
*/
|
|
1727
|
+
type RootProps$1 = ComponentProps<typeof Root$1>;
|
|
1728
|
+
//#endregion
|
|
1729
|
+
//#region src/timeline/title.d.ts
|
|
1730
|
+
/**
|
|
1731
|
+
* Renders the title `div`, as tall as the indicator and centred on it on one line.
|
|
1732
|
+
*/
|
|
1733
|
+
declare const Title: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
1734
|
+
/**
|
|
1735
|
+
* Describes the props of `Title`.
|
|
1736
|
+
*/
|
|
1737
|
+
type TitleProps = ComponentProps<typeof Title>;
|
|
1738
|
+
declare namespace index_d_exports$5 {
|
|
1739
|
+
export { Connector, ConnectorProps, Content, ContentProps, Description, DescriptionProps, Indicator, IndicatorProps, Item$1 as Item, ItemProps$1 as ItemProps, Root$1 as Root, RootProps$1 as RootProps, Title, TitleProps };
|
|
1740
|
+
}
|
|
1741
|
+
//#endregion
|
|
1742
|
+
//#region src/transfer/transfer.d.ts
|
|
1743
|
+
/**
|
|
1744
|
+
* Renders the root `div` that lays out the two sides and the controls, and provides the variants.
|
|
1745
|
+
*/
|
|
1746
|
+
declare const Framed$1: import("@stealthscale/theme").StyledComponent<"div", {
|
|
1747
|
+
readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
1748
|
+
readonly size?: "lg" | "md" | "sm" | undefined;
|
|
1749
|
+
}>;
|
|
1750
|
+
/**
|
|
1751
|
+
* Describes the props of a transfer.
|
|
1752
|
+
*
|
|
1753
|
+
* @typeParam Row - Type of one row.
|
|
1754
|
+
*/
|
|
1755
|
+
interface TransferProps<Row> {
|
|
1756
|
+
/**
|
|
1757
|
+
* Values of the moved rows on first render, when `value` is not set.
|
|
1758
|
+
*/
|
|
1759
|
+
readonly defaultValue?: readonly string[] | undefined;
|
|
1760
|
+
/**
|
|
1761
|
+
* Returns a row's second line.
|
|
1762
|
+
*/
|
|
1763
|
+
readonly description?: ((row: Row) => ReactNode) | undefined;
|
|
1764
|
+
/**
|
|
1765
|
+
* Accessible name of the control that moves checked rows back.
|
|
1766
|
+
*/
|
|
1767
|
+
readonly giveBackLabel: string;
|
|
1768
|
+
/**
|
|
1769
|
+
* Content of the control that moves checked rows back.
|
|
1770
|
+
*/
|
|
1771
|
+
readonly giveBackMark: ReactNode;
|
|
1772
|
+
/**
|
|
1773
|
+
* Returns a row's text.
|
|
1774
|
+
*/
|
|
1775
|
+
readonly itemToString: (row: Row) => string;
|
|
1776
|
+
/**
|
|
1777
|
+
* Returns a row's value.
|
|
1778
|
+
*/
|
|
1779
|
+
readonly itemToValue: (row: Row) => string;
|
|
1780
|
+
/**
|
|
1781
|
+
* Mark of a checked row's checkbox.
|
|
1782
|
+
*/
|
|
1783
|
+
readonly mark?: ReactNode | undefined;
|
|
1784
|
+
/**
|
|
1785
|
+
* Content rendered on a side with no rows.
|
|
1786
|
+
*/
|
|
1787
|
+
readonly nothing?: ReactNode | undefined;
|
|
1788
|
+
/**
|
|
1789
|
+
* Label of the list rows are moved from.
|
|
1790
|
+
*/
|
|
1791
|
+
readonly offeredTitle: ReactNode;
|
|
1792
|
+
/**
|
|
1793
|
+
* Called with the values of the moved rows after each move.
|
|
1794
|
+
*/
|
|
1795
|
+
readonly onValueChange?: ((taken: readonly string[]) => void) | undefined;
|
|
1796
|
+
/**
|
|
1797
|
+
* Palette the checkboxes and fills of both lists read.
|
|
1798
|
+
*/
|
|
1799
|
+
readonly palette?: ComponentProps<typeof Framed$1>["palette"];
|
|
1800
|
+
/**
|
|
1801
|
+
* Every row, on either side.
|
|
1802
|
+
*/
|
|
1803
|
+
readonly rows: readonly Row[];
|
|
1804
|
+
/**
|
|
1805
|
+
* Size of the gap between the parts and of the controls.
|
|
1806
|
+
*/
|
|
1807
|
+
readonly size?: ComponentProps<typeof Framed$1>["size"];
|
|
1808
|
+
/**
|
|
1809
|
+
* Accessible name of the control that moves checked rows across.
|
|
1810
|
+
*/
|
|
1811
|
+
readonly takeLabel: string;
|
|
1812
|
+
/**
|
|
1813
|
+
* Content of the control that moves checked rows across.
|
|
1814
|
+
*/
|
|
1815
|
+
readonly takeMark: ReactNode;
|
|
1816
|
+
/**
|
|
1817
|
+
* Label of the list rows are moved to.
|
|
1818
|
+
*/
|
|
1819
|
+
readonly takenTitle: ReactNode;
|
|
1820
|
+
/**
|
|
1821
|
+
* Values of the moved rows, when the caller controls them.
|
|
1822
|
+
*/
|
|
1823
|
+
readonly value?: readonly string[] | undefined;
|
|
1824
|
+
}
|
|
1825
|
+
/**
|
|
1826
|
+
* Renders two lists and the controls that move checked rows between them.
|
|
1827
|
+
*
|
|
1828
|
+
* @typeParam Row - Type of one row.
|
|
1829
|
+
* @param props - The rows, the moved values, the labels, the marks and the variants.
|
|
1830
|
+
* @returns The root `div` with both sides and the controls.
|
|
1831
|
+
*/
|
|
1832
|
+
export declare function Transfer<Row>({ description, giveBackLabel, giveBackMark, mark, nothing, offeredTitle, palette, rows, size, takeLabel, takeMark, takenTitle, ...options }: TransferProps<Row>): ReactElement;
|
|
1833
|
+
//#endregion
|
|
1834
|
+
//#region src/tree-view/branch-control.d.ts
|
|
1835
|
+
/**
|
|
1836
|
+
* Renders the `div` with the tree view's branch control class.
|
|
1837
|
+
*/
|
|
1838
|
+
declare const Controlled: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
1839
|
+
/**
|
|
1840
|
+
* Describes the props of a branch's row: the props of a `div`.
|
|
1841
|
+
*/
|
|
1842
|
+
type BranchControlProps = ComponentProps<typeof Controlled>;
|
|
1843
|
+
/**
|
|
1844
|
+
* Renders a branch's row with the machine's props and the tree semantics merged over the caller's.
|
|
1845
|
+
*
|
|
1846
|
+
* @param props - The props of a `div`.
|
|
1847
|
+
* @returns The `div` element.
|
|
1848
|
+
*/
|
|
1849
|
+
declare function BranchControl(props: BranchControlProps): ReactElement;
|
|
1850
|
+
//#endregion
|
|
1851
|
+
//#region src/tree-view/branch-indent-guide.d.ts
|
|
1852
|
+
/**
|
|
1853
|
+
* Renders the `div` with the tree view's branch indent guide class.
|
|
1854
|
+
*/
|
|
1855
|
+
declare const Guided: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
1856
|
+
/**
|
|
1857
|
+
* Describes the props of an indent guide: the props of a `div`.
|
|
1858
|
+
*/
|
|
1859
|
+
type BranchIndentGuideProps = ComponentProps<typeof Guided>;
|
|
1860
|
+
/**
|
|
1861
|
+
* Renders the guide with the machine's props merged over the caller's.
|
|
1862
|
+
*
|
|
1863
|
+
* @param props - The props of a `div`.
|
|
1864
|
+
* @returns The `div` element.
|
|
1865
|
+
*/
|
|
1866
|
+
declare function BranchIndentGuide(props: BranchIndentGuideProps): ReactElement;
|
|
1867
|
+
//#endregion
|
|
1868
|
+
//#region src/tree-view/branch-indicator.d.ts
|
|
1869
|
+
/**
|
|
1870
|
+
* Renders the `span` with the tree view's branch indicator class.
|
|
1871
|
+
*/
|
|
1872
|
+
declare const Indicated$1: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
1873
|
+
/**
|
|
1874
|
+
* Describes the props of a branch indicator: the props of a `span`.
|
|
1875
|
+
*/
|
|
1876
|
+
type BranchIndicatorProps = ComponentProps<typeof Indicated$1>;
|
|
1877
|
+
/**
|
|
1878
|
+
* Renders the indicator with the machine's props merged over the caller's.
|
|
1879
|
+
*
|
|
1880
|
+
* @param props - The props of a `span`, with the glyph as children.
|
|
1881
|
+
* @returns The `span` element.
|
|
1882
|
+
*/
|
|
1883
|
+
declare function BranchIndicator(props: BranchIndicatorProps): ReactElement;
|
|
1884
|
+
//#endregion
|
|
1885
|
+
//#region src/tree-view/branch-text.d.ts
|
|
1886
|
+
/**
|
|
1887
|
+
* Renders the `span` with the tree view's branch text class.
|
|
1888
|
+
*/
|
|
1889
|
+
declare const Texted$1: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
1890
|
+
/**
|
|
1891
|
+
* Describes the props of a branch's text: the props of a `span`.
|
|
1892
|
+
*/
|
|
1893
|
+
type BranchTextProps = ComponentProps<typeof Texted$1>;
|
|
1894
|
+
/**
|
|
1895
|
+
* Renders the text with the machine's props merged over the caller's.
|
|
1896
|
+
*
|
|
1897
|
+
* @param props - The props of a `span`.
|
|
1898
|
+
* @returns The `span` element.
|
|
1899
|
+
*/
|
|
1900
|
+
declare function BranchText(props: BranchTextProps): ReactElement;
|
|
1901
|
+
//#endregion
|
|
1902
|
+
//#region src/tree-view/branch-trigger.d.ts
|
|
1903
|
+
/**
|
|
1904
|
+
* Renders the `span` with the tree view's branch trigger class.
|
|
1905
|
+
*/
|
|
1906
|
+
declare const Triggered: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
1907
|
+
/**
|
|
1908
|
+
* Describes the props of a branch trigger: the props of a `span`.
|
|
1909
|
+
*/
|
|
1910
|
+
type BranchTriggerProps = ComponentProps<typeof Triggered>;
|
|
1911
|
+
/**
|
|
1912
|
+
* Renders the trigger with the machine's props, less its role, merged over the caller's.
|
|
1913
|
+
*
|
|
1914
|
+
* @param props - The props of a `span`.
|
|
1915
|
+
* @returns The `span` element.
|
|
1916
|
+
*/
|
|
1917
|
+
declare function BranchTrigger(props: BranchTriggerProps): ReactElement;
|
|
1918
|
+
//#endregion
|
|
1919
|
+
//#region src/tree-view/details.d.ts
|
|
1920
|
+
/**
|
|
1921
|
+
* Describes a node as the render function receives it: the node, its place and its state.
|
|
1922
|
+
*
|
|
1923
|
+
* @typeParam Node - Type of the collection's nodes.
|
|
1924
|
+
*/
|
|
1925
|
+
interface NodeDetails<Node> {
|
|
1926
|
+
/**
|
|
1927
|
+
* Positions of the node and of each ancestor among their siblings, from the top.
|
|
1928
|
+
*/
|
|
1929
|
+
readonly indexPath: readonly number[];
|
|
1930
|
+
/**
|
|
1931
|
+
* The node, as the collection stores it.
|
|
1932
|
+
*/
|
|
1933
|
+
readonly node: Node;
|
|
1934
|
+
/**
|
|
1935
|
+
* State of the node: whether it is a branch, expanded, selected, checked, disabled, loading,
|
|
1936
|
+
* being renamed, and its depth.
|
|
1937
|
+
*/
|
|
1938
|
+
readonly nodeState: NodeState;
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* Describes the function that renders a node's row: `TreeView.BranchControl` for a branch and
|
|
1942
|
+
* `TreeView.Item` for an item.
|
|
1943
|
+
*
|
|
1944
|
+
* @typeParam Node - Type of the collection's nodes.
|
|
1945
|
+
*/
|
|
1946
|
+
type NodeRender<Node> = (details: NodeDetails<Node>) => ReactNode;
|
|
1947
|
+
//#endregion
|
|
1948
|
+
//#region src/tree-view/item-indicator.d.ts
|
|
1949
|
+
/**
|
|
1950
|
+
* Renders the `span` with the tree view's item indicator class.
|
|
1951
|
+
*/
|
|
1952
|
+
declare const Indicated: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
1953
|
+
/**
|
|
1954
|
+
* Describes the props of an item indicator: the props of a `span`.
|
|
1955
|
+
*/
|
|
1956
|
+
type ItemIndicatorProps = ComponentProps<typeof Indicated>;
|
|
1957
|
+
/**
|
|
1958
|
+
* Renders the indicator with the machine's props merged over the caller's.
|
|
1959
|
+
*
|
|
1960
|
+
* @param props - The props of a `span`, with the glyph as children.
|
|
1961
|
+
* @returns The `span` element.
|
|
1962
|
+
*/
|
|
1963
|
+
declare function ItemIndicator(props: ItemIndicatorProps): ReactElement;
|
|
1964
|
+
//#endregion
|
|
1965
|
+
//#region src/tree-view/item-text.d.ts
|
|
1966
|
+
/**
|
|
1967
|
+
* Renders the `span` with the tree view's item text class.
|
|
1968
|
+
*/
|
|
1969
|
+
declare const Texted: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
1970
|
+
/**
|
|
1971
|
+
* Describes the props of an item's text: the props of a `span`.
|
|
1972
|
+
*/
|
|
1973
|
+
type ItemTextProps = ComponentProps<typeof Texted>;
|
|
1974
|
+
/**
|
|
1975
|
+
* Renders the text with the machine's props merged over the caller's.
|
|
1976
|
+
*
|
|
1977
|
+
* @param props - The props of a `span`.
|
|
1978
|
+
* @returns The `span` element.
|
|
1979
|
+
*/
|
|
1980
|
+
declare function ItemText(props: ItemTextProps): ReactElement;
|
|
1981
|
+
//#endregion
|
|
1982
|
+
//#region src/tree-view/item.d.ts
|
|
1983
|
+
/**
|
|
1984
|
+
* Renders the `div` with the tree view's item class.
|
|
1985
|
+
*/
|
|
1986
|
+
declare const Itemed: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
1987
|
+
/**
|
|
1988
|
+
* Describes the props of an item's row: the address it opens and the props of a `div`.
|
|
1989
|
+
*/
|
|
1990
|
+
interface ItemProps extends ComponentProps<typeof Itemed> {
|
|
1991
|
+
/**
|
|
1992
|
+
* Address the item opens. The row renders an `a` while it is set.
|
|
1993
|
+
*/
|
|
1994
|
+
readonly href?: string | undefined;
|
|
1995
|
+
}
|
|
1996
|
+
/**
|
|
1997
|
+
* Renders an item's row with the machine's props and the tree semantics merged over the caller's.
|
|
1998
|
+
*
|
|
1999
|
+
* @param props - The address and the props of a `div`.
|
|
2000
|
+
* @returns The `div` element, or an `a` with an address.
|
|
2001
|
+
*/
|
|
2002
|
+
declare function Item(props: ItemProps): ReactElement;
|
|
2003
|
+
//#endregion
|
|
2004
|
+
//#region src/tree-view/label.d.ts
|
|
2005
|
+
/**
|
|
2006
|
+
* Renders the `div` with the tree view's label class.
|
|
2007
|
+
*/
|
|
2008
|
+
declare const Labelled: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
2009
|
+
/**
|
|
2010
|
+
* Describes the props of the label: the props of a `div`.
|
|
2011
|
+
*/
|
|
2012
|
+
type LabelProps = ComponentProps<typeof Labelled>;
|
|
2013
|
+
/**
|
|
2014
|
+
* Renders the label with the machine's label props merged over the caller's.
|
|
2015
|
+
*
|
|
2016
|
+
* @param props - The props of a `div`.
|
|
2017
|
+
* @returns The `div` element.
|
|
2018
|
+
*/
|
|
2019
|
+
declare function Label(props: LabelProps): ReactElement;
|
|
2020
|
+
//#endregion
|
|
2021
|
+
//#region src/tree-view/node-checkbox.d.ts
|
|
2022
|
+
/**
|
|
2023
|
+
* Renders the `span` with the tree view's node checkbox class.
|
|
2024
|
+
*/
|
|
2025
|
+
declare const Boxed: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
2026
|
+
/**
|
|
2027
|
+
* Describes the props of a node checkbox: the props of a `span`.
|
|
2028
|
+
*/
|
|
2029
|
+
type NodeCheckboxProps = ComponentProps<typeof Boxed>;
|
|
2030
|
+
/**
|
|
2031
|
+
* Renders the box with the machine's props, less its role and focus, merged over the caller's.
|
|
2032
|
+
*
|
|
2033
|
+
* @param props - The props of a `span`, with the glyph as children.
|
|
2034
|
+
* @returns The `span` element.
|
|
2035
|
+
*/
|
|
2036
|
+
declare function NodeCheckbox(props: NodeCheckboxProps): ReactElement;
|
|
2037
|
+
//#endregion
|
|
2038
|
+
//#region src/tree-view/node-rename-input.d.ts
|
|
2039
|
+
/**
|
|
2040
|
+
* Renders the `input` with the tree view's node rename input class.
|
|
2041
|
+
*/
|
|
2042
|
+
declare const Renamed: import("@stealthscale/theme").StyledComponent<"input", {}>;
|
|
2043
|
+
/**
|
|
2044
|
+
* Describes the props of the rename input: its accessible name and the props of an `input`.
|
|
2045
|
+
*/
|
|
2046
|
+
interface NodeRenameInputProps extends ComponentProps<typeof Renamed> {
|
|
2047
|
+
/**
|
|
2048
|
+
* Accessible name of the field, "Rename" unless the caller passes another.
|
|
2049
|
+
*/
|
|
2050
|
+
readonly label?: string | undefined;
|
|
2051
|
+
}
|
|
2052
|
+
/**
|
|
2053
|
+
* Renders the field with the machine's props merged over the caller's.
|
|
2054
|
+
*
|
|
2055
|
+
* @param props - The field's name and the props of an `input`.
|
|
2056
|
+
* @returns The `input` element.
|
|
2057
|
+
*/
|
|
2058
|
+
declare function NodeRenameInput({ label, ...rest }: NodeRenameInputProps): ReactElement;
|
|
2059
|
+
//#endregion
|
|
2060
|
+
//#region src/tree-view/nodes.d.ts
|
|
2061
|
+
/**
|
|
2062
|
+
* Describes the props of the nodes: the function that renders a row and the indent guide.
|
|
2063
|
+
*
|
|
2064
|
+
* @typeParam Node - Type of the collection's nodes.
|
|
2065
|
+
*/
|
|
2066
|
+
interface NodesProps<Node> {
|
|
2067
|
+
/**
|
|
2068
|
+
* Element each branch's group of children renders first, such as `TreeView.BranchIndentGuide`.
|
|
2069
|
+
*/
|
|
2070
|
+
readonly indentGuide?: ReactNode;
|
|
2071
|
+
/**
|
|
2072
|
+
* Returns a node's row: `TreeView.BranchControl` for a branch and `TreeView.Item` for an item.
|
|
2073
|
+
*/
|
|
2074
|
+
readonly render: NodeRender<Node>;
|
|
2075
|
+
}
|
|
2076
|
+
/**
|
|
2077
|
+
* Renders the top-level nodes, each with the nodes under it.
|
|
2078
|
+
*
|
|
2079
|
+
* @typeParam Node - Type of the collection's nodes.
|
|
2080
|
+
* @param props - The render function and the indent guide.
|
|
2081
|
+
* @returns A fragment of one subtree per top-level node.
|
|
2082
|
+
*/
|
|
2083
|
+
declare function Nodes<Node>({ indentGuide, render }: NodesProps<Node>): ReactElement;
|
|
2084
|
+
//#endregion
|
|
2085
|
+
//#region src/tree-view/machine.d.ts
|
|
2086
|
+
/**
|
|
2087
|
+
* Describes the machine settings a caller can pass to the root, all optional.
|
|
2088
|
+
*
|
|
2089
|
+
* @remarks
|
|
2090
|
+
* `translations` is left out, because a component's words are props: the tree takes its name from
|
|
2091
|
+
* `TreeView.Label` or `aria-label`, and the rename input takes its own `label`.
|
|
2092
|
+
*/
|
|
2093
|
+
type TreeViewOptions = Omit<Partial<treeView.Props>, "translations">;
|
|
2094
|
+
//#endregion
|
|
2095
|
+
//#region src/tree-view/root.d.ts
|
|
2096
|
+
/**
|
|
2097
|
+
* Renders the `div` that provides the recipe's variants.
|
|
2098
|
+
*/
|
|
2099
|
+
declare const Framed: import("@stealthscale/theme").StyledComponent<"div", {
|
|
2100
|
+
readonly effect?: "glow" | undefined;
|
|
2101
|
+
readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
2102
|
+
readonly selected?: "plain" | "solid" | "subtle" | undefined;
|
|
2103
|
+
readonly size?: "lg" | "md" | "sm" | undefined;
|
|
2104
|
+
}>;
|
|
2105
|
+
/**
|
|
2106
|
+
* Describes the props of the root: the machine's options, whether rows are checked, the recipe's
|
|
2107
|
+
* variants and the props of a `div`.
|
|
2108
|
+
*
|
|
2109
|
+
* @remarks
|
|
2110
|
+
* The element's `dir` and `id` are left out, because the machine takes both.
|
|
2111
|
+
*/
|
|
2112
|
+
interface RootProps extends Omit<ComponentProps<typeof Framed>, "dir" | "id">, TreeViewOptions {
|
|
2113
|
+
/**
|
|
2114
|
+
* Whether every row has a check, which Space and a press on `TreeView.NodeCheckbox` toggle.
|
|
2115
|
+
* A branch is checked while every node under it is, and partly checked while some are.
|
|
2116
|
+
*/
|
|
2117
|
+
readonly checkable?: boolean | undefined;
|
|
2118
|
+
}
|
|
2119
|
+
/**
|
|
2120
|
+
* Renders the root and provides the running machine to the parts.
|
|
2121
|
+
*
|
|
2122
|
+
* @param props - The machine's options, `checkable`, the recipe's variants and the props of a
|
|
2123
|
+
* `div`.
|
|
2124
|
+
* @returns The `div` element inside the providers.
|
|
2125
|
+
*/
|
|
2126
|
+
declare function Root({ checkable, ...props }: RootProps): ReactElement;
|
|
2127
|
+
//#endregion
|
|
2128
|
+
//#region src/tree-view/tree.d.ts
|
|
2129
|
+
/**
|
|
2130
|
+
* Renders the `div` with the tree view's tree class.
|
|
2131
|
+
*/
|
|
2132
|
+
declare const Treed: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
2133
|
+
/**
|
|
2134
|
+
* Describes the props of the tree: the props of a `div`.
|
|
2135
|
+
*/
|
|
2136
|
+
type TreeProps = ComponentProps<typeof Treed>;
|
|
2137
|
+
/**
|
|
2138
|
+
* Renders the tree with the machine's tree props merged over the caller's.
|
|
2139
|
+
*
|
|
2140
|
+
* @param props - The props of a `div`, `aria-label` among them.
|
|
2141
|
+
* @returns The `div` element.
|
|
2142
|
+
*/
|
|
2143
|
+
declare function Tree(props: TreeProps): ReactElement;
|
|
2144
|
+
declare namespace index_d_exports$6 {
|
|
2145
|
+
export { BranchControl, BranchControlProps, BranchIndentGuide, BranchIndentGuideProps, BranchIndicator, BranchIndicatorProps, BranchText, BranchTextProps, BranchTrigger, BranchTriggerProps, Item, ItemIndicator, ItemIndicatorProps, ItemProps, ItemText, ItemTextProps, Label, LabelProps, NodeCheckbox, NodeCheckboxProps, NodeDetails, NodeRenameInput, NodeRenameInputProps, NodeRender, Nodes, NodesProps, Root, RootProps, Tree, TreeProps };
|
|
2146
|
+
}
|
|
2147
|
+
//#endregion
|
|
2148
|
+
export { type Collection, type CollectionOptions, index_d_exports as DataList, type Filter, type FilterOptions, type Grid, type GridCollection, type GridOptions, type ListCollection, index_d_exports$1 as Listbox, type MatrixCell, type MatrixHeading, type MatrixState, type MatrixTone, index_d_exports$2 as Sortable, type StatusMatrixProps, index_d_exports$3 as SwipeActions, index_d_exports$4 as Table, index_d_exports$5 as Timeline, type TransferProps, TreeCollection, type TreeNode, index_d_exports$6 as TreeView };
|