@stealthscale/component-disclosure 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +429 -0
- package/dist/cyclonedx/bom.json +1 -0
- package/dist/index.d.ts +919 -0
- package/dist/index.js +2072 -0
- package/dist/recipe-BdO9ZFWU.js +708 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/theme.d.ts +12 -0
- package/dist/theme.js +23 -0
- package/package.json +81 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,919 @@
|
|
|
1
|
+
import { ComponentProps, ReactElement } from "react";
|
|
2
|
+
import "@stealthscale/theme/authoring";
|
|
3
|
+
import * as collapsible from "@zag-js/collapsible";
|
|
4
|
+
import * as menu from "@zag-js/menu";
|
|
5
|
+
import * as popover from "@zag-js/popover";
|
|
6
|
+
import * as tabs from "@zag-js/tabs";
|
|
7
|
+
import * as tooltip from "@zag-js/tooltip";
|
|
8
|
+
//#region src/collapsible/content.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Draws the block at the room the root states.
|
|
11
|
+
*/
|
|
12
|
+
declare const Shown$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
13
|
+
/**
|
|
14
|
+
* Describes what the content takes.
|
|
15
|
+
*/
|
|
16
|
+
type ContentProps$4 = ComponentProps<typeof Shown$1>;
|
|
17
|
+
/**
|
|
18
|
+
* Appears and goes as the trigger is pressed.
|
|
19
|
+
*
|
|
20
|
+
* @param props - Everything a styled div takes.
|
|
21
|
+
* @returns The block, measured and named by the machine.
|
|
22
|
+
*/
|
|
23
|
+
declare function Content$4(props: ContentProps$4): ReactElement;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/collapsible/indicator.d.ts
|
|
26
|
+
/**
|
|
27
|
+
* Draws the mark at the box the root states.
|
|
28
|
+
*/
|
|
29
|
+
declare const Turned$1: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
30
|
+
/**
|
|
31
|
+
* Describes what the indicator takes.
|
|
32
|
+
*/
|
|
33
|
+
type IndicatorProps$3 = ComponentProps<typeof Turned$1>;
|
|
34
|
+
/**
|
|
35
|
+
* Turns half a revolution while the block is open.
|
|
36
|
+
*
|
|
37
|
+
* @param props - Everything a styled span takes.
|
|
38
|
+
* @returns The mark, turned to whichever way the machine is.
|
|
39
|
+
*/
|
|
40
|
+
declare function Indicator$3(props: IndicatorProps$3): ReactElement;
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/collapsible/machine.d.ts
|
|
43
|
+
/**
|
|
44
|
+
* Describes what a caller sets on the machine, less the id it is given.
|
|
45
|
+
*/
|
|
46
|
+
type CollapsibleOptions = Partial<collapsible.Props>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/collapsible/root.d.ts
|
|
49
|
+
/**
|
|
50
|
+
* Draws the frame and sets the variants every part below it reads.
|
|
51
|
+
*/
|
|
52
|
+
declare const Framed$4: import("@stealthscale/theme").StyledComponent<"div", {
|
|
53
|
+
readonly motion?: "fade" | "none" | "slide";
|
|
54
|
+
readonly size?: import("@stealthscale/theme/authoring").Scale;
|
|
55
|
+
readonly variant?: "outline" | "plain" | "subtle" | "surface";
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Describes what the root takes: the machine's options, the recipe's variants, and the element's.
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* The element's own `id` and `dir` are left out, because the machine states both. It builds every
|
|
62
|
+
* ARIA reference from the id, and it reads the direction to decide which way the block opens.
|
|
63
|
+
*/
|
|
64
|
+
interface RootProps$4 extends CollapsibleOptions, Omit<ComponentProps<typeof Framed$4>, "dir" | "id"> {}
|
|
65
|
+
/**
|
|
66
|
+
* Shows and hides the block beneath a control.
|
|
67
|
+
*
|
|
68
|
+
* @param props - The machine's options, the recipe's variants and the element's props together.
|
|
69
|
+
* @returns The frame, holding the parts, under the running machine.
|
|
70
|
+
*/
|
|
71
|
+
declare function Root$4(props: RootProps$4): ReactElement;
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/collapsible/trigger.d.ts
|
|
74
|
+
/**
|
|
75
|
+
* Draws the control at the size the root states.
|
|
76
|
+
*/
|
|
77
|
+
declare const Pressed$4: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
78
|
+
/**
|
|
79
|
+
* Describes what the trigger takes.
|
|
80
|
+
*/
|
|
81
|
+
type TriggerProps$4 = ComponentProps<typeof Pressed$4>;
|
|
82
|
+
/**
|
|
83
|
+
* Shows the block where it is hidden, and hides it where it is shown.
|
|
84
|
+
*
|
|
85
|
+
* @param props - Everything a styled button takes.
|
|
86
|
+
* @returns The control, carrying what the machine says it does.
|
|
87
|
+
*/
|
|
88
|
+
declare function Trigger$4(props: TriggerProps$4): ReactElement;
|
|
89
|
+
declare namespace index_d_exports {
|
|
90
|
+
export { Content$4 as Content, ContentProps$4 as ContentProps, Indicator$3 as Indicator, IndicatorProps$3 as IndicatorProps, Root$4 as Root, RootProps$4 as RootProps, Trigger$4 as Trigger, TriggerProps$4 as TriggerProps };
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region src/menu/arrow-tip.d.ts
|
|
94
|
+
/**
|
|
95
|
+
* Draws the square at the look the root states.
|
|
96
|
+
*/
|
|
97
|
+
declare const Tipped: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
98
|
+
/**
|
|
99
|
+
* Describes what the square takes.
|
|
100
|
+
*/
|
|
101
|
+
type ArrowTipProps$2 = ComponentProps<typeof Tipped>;
|
|
102
|
+
/**
|
|
103
|
+
* Gives the point its shape.
|
|
104
|
+
*
|
|
105
|
+
* @param props - Everything a styled div takes.
|
|
106
|
+
* @returns The square, carrying the place the machine measured.
|
|
107
|
+
*/
|
|
108
|
+
declare function ArrowTip$2(props: ArrowTipProps$2): ReactElement;
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/menu/arrow.d.ts
|
|
111
|
+
/**
|
|
112
|
+
* Draws the point at the size the root states.
|
|
113
|
+
*/
|
|
114
|
+
declare const Pointed: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
115
|
+
/**
|
|
116
|
+
* Describes what the point takes.
|
|
117
|
+
*/
|
|
118
|
+
type ArrowProps$2 = ComponentProps<typeof Pointed>;
|
|
119
|
+
/**
|
|
120
|
+
* Points from the panel back at the control.
|
|
121
|
+
*
|
|
122
|
+
* @param props - Everything a styled div takes.
|
|
123
|
+
* @returns The point, carrying the place the machine measured.
|
|
124
|
+
*/
|
|
125
|
+
declare function Arrow$2(props: ArrowProps$2): ReactElement;
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region src/menu/content.d.ts
|
|
128
|
+
/**
|
|
129
|
+
* Draws the panel at the size the root states.
|
|
130
|
+
*/
|
|
131
|
+
declare const Drawn$10: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
132
|
+
/**
|
|
133
|
+
* Describes what the panel takes.
|
|
134
|
+
*/
|
|
135
|
+
type ContentProps$3 = ComponentProps<typeof Drawn$10>;
|
|
136
|
+
/**
|
|
137
|
+
* Shows the rows of the menu.
|
|
138
|
+
*
|
|
139
|
+
* @param props - Everything a styled div takes.
|
|
140
|
+
* @returns The panel, carrying what the machine writes onto it.
|
|
141
|
+
*/
|
|
142
|
+
declare function Content$3(props: ContentProps$3): ReactElement;
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region src/menu/context-trigger.d.ts
|
|
145
|
+
/**
|
|
146
|
+
* Draws the region at the size the root states.
|
|
147
|
+
*/
|
|
148
|
+
declare const Held: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
149
|
+
/**
|
|
150
|
+
* Describes what the region takes.
|
|
151
|
+
*/
|
|
152
|
+
interface ContextTriggerProps extends ComponentProps<typeof Held> {
|
|
153
|
+
/**
|
|
154
|
+
* The value that identifies this region, for a menu opened from more than one.
|
|
155
|
+
*/
|
|
156
|
+
readonly value?: string | undefined;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Opens the menu where the pointer is.
|
|
160
|
+
*
|
|
161
|
+
* @param props - The name of this region, and everything a styled div takes.
|
|
162
|
+
* @returns The region, carrying what the machine writes onto it.
|
|
163
|
+
*/
|
|
164
|
+
declare function ContextTrigger({ value, ...rest }: ContextTriggerProps): ReactElement;
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/menu/indicator.d.ts
|
|
167
|
+
/**
|
|
168
|
+
* Draws the mark at the size the root states.
|
|
169
|
+
*/
|
|
170
|
+
declare const Marked$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
171
|
+
/**
|
|
172
|
+
* Describes what the mark takes.
|
|
173
|
+
*/
|
|
174
|
+
type IndicatorProps$2 = ComponentProps<typeof Marked$1>;
|
|
175
|
+
/**
|
|
176
|
+
* Says whether the menu is open.
|
|
177
|
+
*
|
|
178
|
+
* @param props - Everything a styled div takes.
|
|
179
|
+
* @returns The mark, carrying the open state.
|
|
180
|
+
*/
|
|
181
|
+
declare function Indicator$2(props: IndicatorProps$2): ReactElement;
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/menu/item-group-label.d.ts
|
|
184
|
+
/**
|
|
185
|
+
* Draws the heading at the size the root states.
|
|
186
|
+
*/
|
|
187
|
+
declare const Titled: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
188
|
+
/**
|
|
189
|
+
* Describes what the heading takes.
|
|
190
|
+
*/
|
|
191
|
+
interface ItemGroupLabelProps extends ComponentProps<typeof Titled> {
|
|
192
|
+
/**
|
|
193
|
+
* Ties the heading to the set it names.
|
|
194
|
+
*/
|
|
195
|
+
readonly value: string;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Says what the rows below it have in common.
|
|
199
|
+
*
|
|
200
|
+
* @param props - The name the set shares, beside everything a styled div takes.
|
|
201
|
+
* @returns The heading, carrying what the machine writes onto it.
|
|
202
|
+
*/
|
|
203
|
+
declare function ItemGroupLabel({ value, ...rest }: ItemGroupLabelProps): ReactElement;
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region src/menu/item-group.d.ts
|
|
206
|
+
/**
|
|
207
|
+
* Draws the set at the size the root states.
|
|
208
|
+
*/
|
|
209
|
+
declare const Grouped: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
210
|
+
/**
|
|
211
|
+
* Describes what a set takes.
|
|
212
|
+
*/
|
|
213
|
+
interface ItemGroupProps extends ComponentProps<typeof Grouped> {
|
|
214
|
+
/**
|
|
215
|
+
* Ties the set to the label that names it.
|
|
216
|
+
*/
|
|
217
|
+
readonly value: string;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Groups the rows that belong together.
|
|
221
|
+
*
|
|
222
|
+
* @param props - The name the label shares, beside everything a styled div takes.
|
|
223
|
+
* @returns The set, carrying what the machine writes onto it.
|
|
224
|
+
*/
|
|
225
|
+
declare function ItemGroup({ value, ...rest }: ItemGroupProps): ReactElement;
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region src/menu/item-indicator.d.ts
|
|
228
|
+
/**
|
|
229
|
+
* Draws the mark at the size the root states.
|
|
230
|
+
*/
|
|
231
|
+
declare const Marked: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
232
|
+
/**
|
|
233
|
+
* Describes what the mark takes.
|
|
234
|
+
*/
|
|
235
|
+
type ItemIndicatorProps = ComponentProps<typeof Marked>;
|
|
236
|
+
/**
|
|
237
|
+
* Says the row is on.
|
|
238
|
+
*
|
|
239
|
+
* @param props - Everything a styled span takes.
|
|
240
|
+
* @returns The mark, carrying the row's state.
|
|
241
|
+
*/
|
|
242
|
+
declare function ItemIndicator(props: ItemIndicatorProps): ReactElement;
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region src/menu/item-text.d.ts
|
|
245
|
+
/**
|
|
246
|
+
* Draws the words at the size the root states.
|
|
247
|
+
*/
|
|
248
|
+
declare const Worded: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
249
|
+
/**
|
|
250
|
+
* Describes what the words take.
|
|
251
|
+
*/
|
|
252
|
+
type ItemTextProps = ComponentProps<typeof Worded>;
|
|
253
|
+
/**
|
|
254
|
+
* Says what the row offers.
|
|
255
|
+
*
|
|
256
|
+
* @param props - Everything a styled span takes.
|
|
257
|
+
* @returns The words, carrying the row's state.
|
|
258
|
+
*/
|
|
259
|
+
declare function ItemText(props: ItemTextProps): ReactElement;
|
|
260
|
+
//#endregion
|
|
261
|
+
//#region src/menu/tone.d.ts
|
|
262
|
+
/**
|
|
263
|
+
* States what a row of a menu is for, which decides the ink it is drawn in.
|
|
264
|
+
*
|
|
265
|
+
* @remarks
|
|
266
|
+
* This is a prop rather than an axis of the recipe, because a slot recipe resolves its variants
|
|
267
|
+
* once at the root and a menu draws one row in a different ink from the rest. The row writes it
|
|
268
|
+
* as a data attribute and the recipe's base styles it, which is the hook a theme extends to add
|
|
269
|
+
* another.
|
|
270
|
+
*/
|
|
271
|
+
/**
|
|
272
|
+
* Selects what a row is for.
|
|
273
|
+
*
|
|
274
|
+
* @remarks
|
|
275
|
+
* A row that undoes something is the one case a menu draws differently, and colour is a second
|
|
276
|
+
* reading of what its words already say rather than the only one.
|
|
277
|
+
*/
|
|
278
|
+
type Tone = "critical";
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region src/menu/item.d.ts
|
|
281
|
+
/**
|
|
282
|
+
* Draws the row at the size the root states.
|
|
283
|
+
*/
|
|
284
|
+
declare const Chosen$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
285
|
+
/**
|
|
286
|
+
* Describes what a row takes.
|
|
287
|
+
*/
|
|
288
|
+
interface ItemProps extends Omit<ComponentProps<typeof Chosen$1>, "onSelect"> {
|
|
289
|
+
/**
|
|
290
|
+
* Whether choosing the row closes the menu, which it does unless the row says otherwise.
|
|
291
|
+
*/
|
|
292
|
+
readonly closeOnSelect?: boolean | undefined;
|
|
293
|
+
/**
|
|
294
|
+
* Whether a reader can choose the row at all.
|
|
295
|
+
*/
|
|
296
|
+
readonly disabled?: boolean | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* The purpose of the row, which decides the ink it is drawn in.
|
|
299
|
+
*/
|
|
300
|
+
readonly tone?: Tone | undefined;
|
|
301
|
+
/**
|
|
302
|
+
* The value the machine identifies the row by and reports when the reader chooses it.
|
|
303
|
+
*/
|
|
304
|
+
readonly value: string;
|
|
305
|
+
/**
|
|
306
|
+
* The words typeahead matches the row on, where they differ from what it shows.
|
|
307
|
+
*/
|
|
308
|
+
readonly valueText?: string | undefined;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Offers one thing a reader can choose.
|
|
312
|
+
*
|
|
313
|
+
* @param props - The row's name and purpose, beside everything a styled div takes.
|
|
314
|
+
* @returns The row, carrying what the machine writes onto it.
|
|
315
|
+
*/
|
|
316
|
+
declare function Item({ closeOnSelect, disabled, tone, value, valueText, ...rest }: ItemProps): ReactElement;
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region src/menu/option-item.d.ts
|
|
319
|
+
/**
|
|
320
|
+
* Draws the row at the size the root states, in the same slot as a plain row.
|
|
321
|
+
*/
|
|
322
|
+
declare const Chosen: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
323
|
+
/**
|
|
324
|
+
* Describes what a row carrying a choice takes.
|
|
325
|
+
*/
|
|
326
|
+
interface OptionItemProps extends Omit<ComponentProps<typeof Chosen>, "onSelect"> {
|
|
327
|
+
/**
|
|
328
|
+
* Whether the row is on.
|
|
329
|
+
*/
|
|
330
|
+
readonly checked: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Whether choosing the row closes the menu, which it does unless the row says otherwise.
|
|
333
|
+
*/
|
|
334
|
+
readonly closeOnSelect?: boolean | undefined;
|
|
335
|
+
/**
|
|
336
|
+
* Whether a reader can choose the row at all.
|
|
337
|
+
*/
|
|
338
|
+
readonly disabled?: boolean | undefined;
|
|
339
|
+
/**
|
|
340
|
+
* Tells the caller the reader turned the row on or off.
|
|
341
|
+
*/
|
|
342
|
+
readonly onCheckedChange?: ((checked: boolean) => void) | undefined;
|
|
343
|
+
/**
|
|
344
|
+
* The purpose of the row, which decides the ink it is drawn in.
|
|
345
|
+
*/
|
|
346
|
+
readonly tone?: Tone | undefined;
|
|
347
|
+
/**
|
|
348
|
+
* Whether the row stands on its own or is one of a set.
|
|
349
|
+
*/
|
|
350
|
+
readonly type: "checkbox" | "radio";
|
|
351
|
+
/**
|
|
352
|
+
* The value the machine identifies the row by and reports when the reader chooses it.
|
|
353
|
+
*/
|
|
354
|
+
readonly value: string;
|
|
355
|
+
/**
|
|
356
|
+
* The words typeahead matches the row on, where they differ from what it shows.
|
|
357
|
+
*/
|
|
358
|
+
readonly valueText?: string | undefined;
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Offers one thing a reader can turn on.
|
|
362
|
+
*
|
|
363
|
+
* @param props - The choice the row carries, beside everything a styled div takes.
|
|
364
|
+
* @returns The row, carrying what the machine writes onto it.
|
|
365
|
+
*/
|
|
366
|
+
declare function OptionItem({ checked, closeOnSelect, disabled, onCheckedChange, tone, type, value, valueText, ...rest }: OptionItemProps): ReactElement;
|
|
367
|
+
//#endregion
|
|
368
|
+
//#region src/menu/positioner.d.ts
|
|
369
|
+
/**
|
|
370
|
+
* Draws the box at the size the root states.
|
|
371
|
+
*/
|
|
372
|
+
declare const Placed$2: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
373
|
+
/**
|
|
374
|
+
* Describes what the box takes.
|
|
375
|
+
*/
|
|
376
|
+
type PositionerProps$2 = ComponentProps<typeof Placed$2>;
|
|
377
|
+
/**
|
|
378
|
+
* Places the panel against the control.
|
|
379
|
+
*
|
|
380
|
+
* @param props - Everything a styled div takes.
|
|
381
|
+
* @returns The box, carrying the position the machine measured.
|
|
382
|
+
*/
|
|
383
|
+
declare function Positioner$2(props: PositionerProps$2): ReactElement;
|
|
384
|
+
//#endregion
|
|
385
|
+
//#region src/menu/machine.d.ts
|
|
386
|
+
/**
|
|
387
|
+
* Describes what a caller sets on the machine, every setting of it optional.
|
|
388
|
+
*/
|
|
389
|
+
type MenuOptions = Partial<menu.Props>;
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region src/menu/root.d.ts
|
|
392
|
+
/**
|
|
393
|
+
* Draws the element that sets the variants every part below it reads, and no box.
|
|
394
|
+
*/
|
|
395
|
+
declare const Framed$3: import("@stealthscale/theme").StyledComponent<"div", {
|
|
396
|
+
readonly highlight?: import("@stealthscale/theme/authoring").Highlight;
|
|
397
|
+
readonly inset?: boolean;
|
|
398
|
+
readonly size?: import("@stealthscale/theme/authoring").Scale;
|
|
399
|
+
readonly variant?: "elevated" | "glass" | "surface";
|
|
400
|
+
}>;
|
|
401
|
+
/**
|
|
402
|
+
* Describes what the root takes: the machine's settings, the recipe's variants, and the element's.
|
|
403
|
+
*
|
|
404
|
+
* @remarks
|
|
405
|
+
* The element's own `id` and `dir` are left out, because the machine states both. It names every
|
|
406
|
+
* part from the id, and it reads the direction to decide which side a submenu opens on. The
|
|
407
|
+
* element's `onSelect` is left out too: a div reports a text selection under that name, and the
|
|
408
|
+
* machine reports the row the reader chose.
|
|
409
|
+
*/
|
|
410
|
+
interface RootProps$3 extends MenuOptions, Omit<ComponentProps<typeof Framed$3>, "dir" | "id" | "onSelect"> {}
|
|
411
|
+
/**
|
|
412
|
+
* Opens a list of things a reader chooses from, beside the control that opens it.
|
|
413
|
+
*
|
|
414
|
+
* @param props - The machine's settings, the recipe's variants and the element's props together.
|
|
415
|
+
* @returns The parts, under the running machine.
|
|
416
|
+
*/
|
|
417
|
+
declare function Root$3(props: RootProps$3): ReactElement;
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region src/menu/separator.d.ts
|
|
420
|
+
/**
|
|
421
|
+
* Draws the line at the size the root states.
|
|
422
|
+
*/
|
|
423
|
+
declare const Ruled: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
424
|
+
/**
|
|
425
|
+
* Describes what the line takes.
|
|
426
|
+
*/
|
|
427
|
+
type SeparatorProps = ComponentProps<typeof Ruled>;
|
|
428
|
+
/**
|
|
429
|
+
* Breaks the rows into sets.
|
|
430
|
+
*
|
|
431
|
+
* @param props - Everything a styled div takes.
|
|
432
|
+
* @returns The line, carrying what the machine writes onto it.
|
|
433
|
+
*/
|
|
434
|
+
declare function Separator(props: SeparatorProps): ReactElement;
|
|
435
|
+
//#endregion
|
|
436
|
+
//#region src/menu/trigger-item.d.ts
|
|
437
|
+
/**
|
|
438
|
+
* Draws the row at the size the root states.
|
|
439
|
+
*/
|
|
440
|
+
declare const Pressed$3: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
441
|
+
/**
|
|
442
|
+
* Describes what the row takes.
|
|
443
|
+
*/
|
|
444
|
+
type TriggerItemProps = ComponentProps<typeof Pressed$3>;
|
|
445
|
+
/**
|
|
446
|
+
* Opens a submenu from a row of the menu above it.
|
|
447
|
+
*
|
|
448
|
+
* @param props - Everything a styled button takes.
|
|
449
|
+
* @returns The row, carrying what both machines write onto it.
|
|
450
|
+
* @throws {@link Error} Where the menu it belongs to opens from no other menu.
|
|
451
|
+
*/
|
|
452
|
+
declare function TriggerItem(props: TriggerItemProps): ReactElement;
|
|
453
|
+
//#endregion
|
|
454
|
+
//#region src/menu/trigger.d.ts
|
|
455
|
+
/**
|
|
456
|
+
* Draws the control at the size the root states.
|
|
457
|
+
*/
|
|
458
|
+
declare const Pressed$2: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
459
|
+
/**
|
|
460
|
+
* Describes what the control takes.
|
|
461
|
+
*/
|
|
462
|
+
interface TriggerProps$3 extends ComponentProps<typeof Pressed$2> {
|
|
463
|
+
/**
|
|
464
|
+
* The value that identifies this control, for a menu opened from more than one.
|
|
465
|
+
*/
|
|
466
|
+
readonly value?: string | undefined;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Opens the menu.
|
|
470
|
+
*
|
|
471
|
+
* @param props - The name of this control, and everything a styled button takes.
|
|
472
|
+
* @returns The control, carrying what the machine writes onto it.
|
|
473
|
+
*/
|
|
474
|
+
declare function Trigger$3({ value, ...rest }: TriggerProps$3): ReactElement;
|
|
475
|
+
declare namespace index_d_exports$1 {
|
|
476
|
+
export { Arrow$2 as Arrow, ArrowProps$2 as ArrowProps, ArrowTip$2 as ArrowTip, ArrowTipProps$2 as ArrowTipProps, Content$3 as Content, ContentProps$3 as ContentProps, ContextTrigger, ContextTriggerProps, Indicator$2 as Indicator, IndicatorProps$2 as IndicatorProps, Item, ItemGroup, ItemGroupLabel, ItemGroupLabelProps, ItemGroupProps, ItemIndicator, ItemIndicatorProps, ItemProps, ItemText, ItemTextProps, OptionItem, OptionItemProps, Positioner$2 as Positioner, PositionerProps$2 as PositionerProps, Root$3 as Root, RootProps$3 as RootProps, Separator, SeparatorProps, Tone, Trigger$3 as Trigger, TriggerItem, TriggerItemProps, TriggerProps$3 as TriggerProps };
|
|
477
|
+
}
|
|
478
|
+
//#endregion
|
|
479
|
+
//#region src/popover/anchor.d.ts
|
|
480
|
+
/**
|
|
481
|
+
* Draws the part at the size the root states.
|
|
482
|
+
*/
|
|
483
|
+
declare const Drawn$9: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
484
|
+
/**
|
|
485
|
+
* Describes what the part takes.
|
|
486
|
+
*/
|
|
487
|
+
type AnchorProps = ComponentProps<typeof Drawn$9>;
|
|
488
|
+
/**
|
|
489
|
+
* Marks what the panel is positioned against, where that is not the control.
|
|
490
|
+
*
|
|
491
|
+
* @param props - Everything a styled div takes.
|
|
492
|
+
* @returns The part, carrying what the machine writes onto it.
|
|
493
|
+
*/
|
|
494
|
+
declare function Anchor(props: AnchorProps): ReactElement;
|
|
495
|
+
//#endregion
|
|
496
|
+
//#region src/popover/arrow-tip.d.ts
|
|
497
|
+
/**
|
|
498
|
+
* Draws the part at the size the root states.
|
|
499
|
+
*/
|
|
500
|
+
declare const Drawn$8: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
501
|
+
/**
|
|
502
|
+
* Describes what the part takes.
|
|
503
|
+
*/
|
|
504
|
+
type ArrowTipProps$1 = ComponentProps<typeof Drawn$8>;
|
|
505
|
+
/**
|
|
506
|
+
* Draws the turned square inside the point.
|
|
507
|
+
*
|
|
508
|
+
* @param props - Everything a styled div takes.
|
|
509
|
+
* @returns The part, carrying what the machine writes onto it.
|
|
510
|
+
*/
|
|
511
|
+
declare function ArrowTip$1(props: ArrowTipProps$1): ReactElement;
|
|
512
|
+
//#endregion
|
|
513
|
+
//#region src/popover/arrow.d.ts
|
|
514
|
+
/**
|
|
515
|
+
* Draws the part at the size the root states.
|
|
516
|
+
*/
|
|
517
|
+
declare const Drawn$7: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
518
|
+
/**
|
|
519
|
+
* Describes what the part takes.
|
|
520
|
+
*/
|
|
521
|
+
type ArrowProps$1 = ComponentProps<typeof Drawn$7>;
|
|
522
|
+
/**
|
|
523
|
+
* Draws the point that ties the panel to its control.
|
|
524
|
+
*
|
|
525
|
+
* @param props - Everything a styled div takes.
|
|
526
|
+
* @returns The part, carrying what the machine writes onto it.
|
|
527
|
+
*/
|
|
528
|
+
declare function Arrow$1(props: ArrowProps$1): ReactElement;
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region src/popover/close-trigger.d.ts
|
|
531
|
+
/**
|
|
532
|
+
* Draws the part at the size the root states.
|
|
533
|
+
*/
|
|
534
|
+
declare const Drawn$6: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
535
|
+
/**
|
|
536
|
+
* Describes what the part takes.
|
|
537
|
+
*/
|
|
538
|
+
type CloseTriggerProps = ComponentProps<typeof Drawn$6>;
|
|
539
|
+
/**
|
|
540
|
+
* Draws the control that shuts the panel.
|
|
541
|
+
*
|
|
542
|
+
* @param props - Everything a styled button takes.
|
|
543
|
+
* @returns The part, carrying what the machine writes onto it.
|
|
544
|
+
*/
|
|
545
|
+
declare function CloseTrigger(props: CloseTriggerProps): ReactElement;
|
|
546
|
+
//#endregion
|
|
547
|
+
//#region src/popover/content.d.ts
|
|
548
|
+
/**
|
|
549
|
+
* Draws the part at the size the root states.
|
|
550
|
+
*/
|
|
551
|
+
declare const Drawn$5: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
552
|
+
/**
|
|
553
|
+
* Describes what the part takes.
|
|
554
|
+
*/
|
|
555
|
+
type ContentProps$2 = ComponentProps<typeof Drawn$5>;
|
|
556
|
+
/**
|
|
557
|
+
* Draws the panel itself.
|
|
558
|
+
*
|
|
559
|
+
* @param props - Everything a styled div takes.
|
|
560
|
+
* @returns The part, carrying what the machine writes onto it.
|
|
561
|
+
*/
|
|
562
|
+
declare function Content$2(props: ContentProps$2): ReactElement;
|
|
563
|
+
//#endregion
|
|
564
|
+
//#region src/popover/description.d.ts
|
|
565
|
+
/**
|
|
566
|
+
* Draws the part at the size the root states.
|
|
567
|
+
*/
|
|
568
|
+
declare const Drawn$4: import("@stealthscale/theme").StyledComponent<"p", {}>;
|
|
569
|
+
/**
|
|
570
|
+
* Describes what the part takes.
|
|
571
|
+
*/
|
|
572
|
+
type DescriptionProps = ComponentProps<typeof Drawn$4>;
|
|
573
|
+
/**
|
|
574
|
+
* Draws the paragraph the panel is described by.
|
|
575
|
+
*
|
|
576
|
+
* @param props - Everything a styled p takes.
|
|
577
|
+
* @returns The part, carrying what the machine writes onto it.
|
|
578
|
+
*/
|
|
579
|
+
declare function Description(props: DescriptionProps): ReactElement;
|
|
580
|
+
//#endregion
|
|
581
|
+
//#region src/popover/indicator.d.ts
|
|
582
|
+
/**
|
|
583
|
+
* Draws the part at the size the root states.
|
|
584
|
+
*/
|
|
585
|
+
declare const Drawn$3: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
586
|
+
/**
|
|
587
|
+
* Describes what the part takes.
|
|
588
|
+
*/
|
|
589
|
+
type IndicatorProps$1 = ComponentProps<typeof Drawn$3>;
|
|
590
|
+
/**
|
|
591
|
+
* Draws the mark that turns as the panel opens.
|
|
592
|
+
*
|
|
593
|
+
* @param props - Everything a styled span takes.
|
|
594
|
+
* @returns The part, carrying what the machine writes onto it.
|
|
595
|
+
*/
|
|
596
|
+
declare function Indicator$1(props: IndicatorProps$1): ReactElement;
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region src/popover/positioner.d.ts
|
|
599
|
+
/**
|
|
600
|
+
* Draws the part at the size the root states.
|
|
601
|
+
*/
|
|
602
|
+
declare const Drawn$2: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
603
|
+
/**
|
|
604
|
+
* Describes what the part takes.
|
|
605
|
+
*/
|
|
606
|
+
type PositionerProps$1 = ComponentProps<typeof Drawn$2>;
|
|
607
|
+
/**
|
|
608
|
+
* Draws the box that holds the panel in place beside its control.
|
|
609
|
+
*
|
|
610
|
+
* @param props - Everything a styled div takes.
|
|
611
|
+
* @returns The part, carrying what the machine writes onto it.
|
|
612
|
+
*/
|
|
613
|
+
declare function Positioner$1(props: PositionerProps$1): ReactElement;
|
|
614
|
+
//#endregion
|
|
615
|
+
//#region src/popover/machine.d.ts
|
|
616
|
+
/**
|
|
617
|
+
* Describes what a caller sets on the machine, every setting of it optional.
|
|
618
|
+
*/
|
|
619
|
+
type PopoverOptions = Partial<popover.Props>;
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region src/popover/root.d.ts
|
|
622
|
+
/**
|
|
623
|
+
* Draws the element that sets the variants every part below it reads, and no box.
|
|
624
|
+
*/
|
|
625
|
+
declare const Framed$2: import("@stealthscale/theme").StyledComponent<"div", {
|
|
626
|
+
readonly size?: "lg" | "md" | "sm" | "xl" | "xs";
|
|
627
|
+
readonly variant?: "elevated" | "glass" | "surface";
|
|
628
|
+
}>;
|
|
629
|
+
/**
|
|
630
|
+
* Describes what the root takes: the machine's settings, the recipe's variants, and the element's.
|
|
631
|
+
*
|
|
632
|
+
* @remarks
|
|
633
|
+
* The element's own `id` and `dir` are left out, because the machine states both. It names every
|
|
634
|
+
* part from the id, and it reads the direction to decide which side the panel opens on.
|
|
635
|
+
*/
|
|
636
|
+
interface RootProps$2 extends Omit<ComponentProps<typeof Framed$2>, "dir" | "id">, PopoverOptions {}
|
|
637
|
+
/**
|
|
638
|
+
* Opens a panel beside a control.
|
|
639
|
+
*
|
|
640
|
+
* @param props - The machine's settings, the recipe's variants and the element's props together.
|
|
641
|
+
* @returns The parts, under the running machine.
|
|
642
|
+
*/
|
|
643
|
+
declare function Root$2(props: RootProps$2): ReactElement;
|
|
644
|
+
//#endregion
|
|
645
|
+
//#region src/popover/title.d.ts
|
|
646
|
+
/**
|
|
647
|
+
* Draws the part at the size the root states.
|
|
648
|
+
*/
|
|
649
|
+
declare const Drawn$1: import("@stealthscale/theme").StyledComponent<"h2", {}>;
|
|
650
|
+
/**
|
|
651
|
+
* Describes what the part takes.
|
|
652
|
+
*/
|
|
653
|
+
type TitleProps = ComponentProps<typeof Drawn$1>;
|
|
654
|
+
/**
|
|
655
|
+
* Draws the heading the panel is announced by.
|
|
656
|
+
*
|
|
657
|
+
* @param props - Everything a styled h2 takes.
|
|
658
|
+
* @returns The part, carrying what the machine writes onto it.
|
|
659
|
+
*/
|
|
660
|
+
declare function Title(props: TitleProps): ReactElement;
|
|
661
|
+
//#endregion
|
|
662
|
+
//#region src/popover/trigger.d.ts
|
|
663
|
+
/**
|
|
664
|
+
* Draws the part at the size the root states.
|
|
665
|
+
*/
|
|
666
|
+
declare const Drawn: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
667
|
+
/**
|
|
668
|
+
* Describes what the part takes.
|
|
669
|
+
*/
|
|
670
|
+
type TriggerProps$2 = ComponentProps<typeof Drawn>;
|
|
671
|
+
/**
|
|
672
|
+
* Draws the control that opens the panel.
|
|
673
|
+
*
|
|
674
|
+
* @param props - Everything a styled button takes.
|
|
675
|
+
* @returns The part, carrying what the machine writes onto it.
|
|
676
|
+
*/
|
|
677
|
+
declare function Trigger$2(props: TriggerProps$2): ReactElement;
|
|
678
|
+
declare namespace index_d_exports$2 {
|
|
679
|
+
export { Anchor, AnchorProps, Arrow$1 as Arrow, ArrowProps$1 as ArrowProps, ArrowTip$1 as ArrowTip, ArrowTipProps$1 as ArrowTipProps, CloseTrigger, CloseTriggerProps, Content$2 as Content, ContentProps$2 as ContentProps, Description, DescriptionProps, Indicator$1 as Indicator, IndicatorProps$1 as IndicatorProps, Positioner$1 as Positioner, PositionerProps$1 as PositionerProps, Root$2 as Root, RootProps$2 as RootProps, Title, TitleProps, Trigger$2 as Trigger, TriggerProps$2 as TriggerProps };
|
|
680
|
+
}
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region src/tabs/content.d.ts
|
|
683
|
+
/**
|
|
684
|
+
* Draws the panel at the room the root states.
|
|
685
|
+
*/
|
|
686
|
+
declare const Shown: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
687
|
+
/**
|
|
688
|
+
* Describes what a panel takes.
|
|
689
|
+
*/
|
|
690
|
+
interface ContentProps$1 extends ComponentProps<typeof Shown> {
|
|
691
|
+
/**
|
|
692
|
+
* Says which control shows this panel.
|
|
693
|
+
*/
|
|
694
|
+
readonly value: string;
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* Appears while the control it names is the one in force.
|
|
698
|
+
*
|
|
699
|
+
* @param props - The control it names, and everything a styled div takes.
|
|
700
|
+
* @returns The panel, named and hidden by the machine.
|
|
701
|
+
*/
|
|
702
|
+
declare function Content$1({ value, ...rest }: ContentProps$1): ReactElement;
|
|
703
|
+
//#endregion
|
|
704
|
+
//#region src/tabs/indicator.d.ts
|
|
705
|
+
/**
|
|
706
|
+
* Draws the bar at the thickness the look states.
|
|
707
|
+
*/
|
|
708
|
+
declare const Bar: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
709
|
+
/**
|
|
710
|
+
* Describes what the bar takes.
|
|
711
|
+
*/
|
|
712
|
+
type IndicatorProps = ComponentProps<typeof Bar>;
|
|
713
|
+
/**
|
|
714
|
+
* Moves to whichever control is in force.
|
|
715
|
+
*
|
|
716
|
+
* @param props - Everything a styled div takes.
|
|
717
|
+
* @returns The bar, positioned by the machine.
|
|
718
|
+
*/
|
|
719
|
+
declare function Indicator(props: IndicatorProps): ReactElement;
|
|
720
|
+
//#endregion
|
|
721
|
+
//#region src/tabs/list.d.ts
|
|
722
|
+
/**
|
|
723
|
+
* Draws the strip, which turns into a column where the set runs down.
|
|
724
|
+
*/
|
|
725
|
+
declare const Strip: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
726
|
+
/**
|
|
727
|
+
* Describes what the strip takes.
|
|
728
|
+
*/
|
|
729
|
+
type ListProps = ComponentProps<typeof Strip>;
|
|
730
|
+
/**
|
|
731
|
+
* Draws the controls in a row, with the bar that marks the one in force.
|
|
732
|
+
*
|
|
733
|
+
* @param props - Everything a styled div takes.
|
|
734
|
+
* @returns The strip, carrying its role and its orientation.
|
|
735
|
+
*/
|
|
736
|
+
declare function List(props: ListProps): ReactElement;
|
|
737
|
+
//#endregion
|
|
738
|
+
//#region src/tabs/machine.d.ts
|
|
739
|
+
/**
|
|
740
|
+
* Describes what a caller sets on the machine, every setting of it optional.
|
|
741
|
+
*/
|
|
742
|
+
type TabsOptions = Partial<tabs.Props>;
|
|
743
|
+
//#endregion
|
|
744
|
+
//#region src/tabs/root.d.ts
|
|
745
|
+
/**
|
|
746
|
+
* Draws the frame and sets the variants every part below it reads.
|
|
747
|
+
*/
|
|
748
|
+
declare const Framed$1: import("@stealthscale/theme").StyledComponent<"div", {
|
|
749
|
+
readonly fitted?: boolean;
|
|
750
|
+
readonly justify?: import("@stealthscale/theme/authoring").Justify;
|
|
751
|
+
readonly size?: import("@stealthscale/theme/authoring").Scale;
|
|
752
|
+
readonly variant?: "enclosed" | "line" | "plain" | "subtle";
|
|
753
|
+
}>;
|
|
754
|
+
/**
|
|
755
|
+
* Describes what the root takes: the machine's options, the recipe's variants, and the element's.
|
|
756
|
+
*
|
|
757
|
+
* @remarks
|
|
758
|
+
* The element's own `id` and `dir` are left out, because the machine states both. It builds every
|
|
759
|
+
* ARIA reference from the id, and it reads the direction to decide which arrow key moves which
|
|
760
|
+
* way.
|
|
761
|
+
*/
|
|
762
|
+
interface RootProps$1 extends Omit<ComponentProps<typeof Framed$1>, "defaultValue" | "dir" | "id" | "onChange" | "value">, TabsOptions {}
|
|
763
|
+
/**
|
|
764
|
+
* Shows one panel at a time, chosen from a strip of controls.
|
|
765
|
+
*
|
|
766
|
+
* @param props - The machine's options, the recipe's variants and the element's props together.
|
|
767
|
+
* @returns The frame, holding the parts, under the running machine.
|
|
768
|
+
*/
|
|
769
|
+
declare function Root$1(props: RootProps$1): ReactElement;
|
|
770
|
+
//#endregion
|
|
771
|
+
//#region src/tabs/trigger.d.ts
|
|
772
|
+
/**
|
|
773
|
+
* Draws the control at the size the root states.
|
|
774
|
+
*/
|
|
775
|
+
declare const Pressed$1: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
776
|
+
/**
|
|
777
|
+
* Describes what a control takes.
|
|
778
|
+
*/
|
|
779
|
+
interface TriggerProps$1 extends ComponentProps<typeof Pressed$1> {
|
|
780
|
+
/**
|
|
781
|
+
* Whether a person can reach it at all.
|
|
782
|
+
*/
|
|
783
|
+
readonly disabled?: boolean | undefined;
|
|
784
|
+
/**
|
|
785
|
+
* Says which panel this control shows.
|
|
786
|
+
*/
|
|
787
|
+
readonly value: string;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Shows the panel it names.
|
|
791
|
+
*
|
|
792
|
+
* @param props - The panel it names, and everything a styled button takes.
|
|
793
|
+
* @returns The control, carrying its role and its selection.
|
|
794
|
+
*/
|
|
795
|
+
declare function Trigger$1({ disabled, value, ...rest }: TriggerProps$1): ReactElement;
|
|
796
|
+
declare namespace index_d_exports$3 {
|
|
797
|
+
export { Content$1 as Content, ContentProps$1 as ContentProps, Indicator, IndicatorProps, List, ListProps, Root$1 as Root, RootProps$1 as RootProps, Trigger$1 as Trigger, TriggerProps$1 as TriggerProps };
|
|
798
|
+
}
|
|
799
|
+
//#endregion
|
|
800
|
+
//#region src/tooltip/arrow-tip.d.ts
|
|
801
|
+
/**
|
|
802
|
+
* Draws the shape the arrow shows.
|
|
803
|
+
*/
|
|
804
|
+
declare const Turned: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
805
|
+
/**
|
|
806
|
+
* Describes what the tip takes.
|
|
807
|
+
*/
|
|
808
|
+
type ArrowTipProps = ComponentProps<typeof Turned>;
|
|
809
|
+
/**
|
|
810
|
+
* Shows one corner past the edge of the box.
|
|
811
|
+
*
|
|
812
|
+
* @param props - Everything a styled div takes.
|
|
813
|
+
* @returns The tip, turned by the machine.
|
|
814
|
+
*/
|
|
815
|
+
declare function ArrowTip(props: ArrowTipProps): ReactElement;
|
|
816
|
+
//#endregion
|
|
817
|
+
//#region src/tooltip/arrow.d.ts
|
|
818
|
+
/**
|
|
819
|
+
* Draws the outer element the machine places.
|
|
820
|
+
*/
|
|
821
|
+
declare const Placed$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
822
|
+
/**
|
|
823
|
+
* Describes what the arrow takes.
|
|
824
|
+
*/
|
|
825
|
+
type ArrowProps = ComponentProps<typeof Placed$1>;
|
|
826
|
+
/**
|
|
827
|
+
* Points from the box back at the control.
|
|
828
|
+
*
|
|
829
|
+
* @param props - Everything a styled div takes.
|
|
830
|
+
* @returns The arrow, placed by the machine.
|
|
831
|
+
*/
|
|
832
|
+
declare function Arrow(props: ArrowProps): ReactElement;
|
|
833
|
+
//#endregion
|
|
834
|
+
//#region src/tooltip/content.d.ts
|
|
835
|
+
/**
|
|
836
|
+
* Draws the box at the size the root states.
|
|
837
|
+
*/
|
|
838
|
+
declare const Boxed: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
839
|
+
/**
|
|
840
|
+
* Describes what the box takes.
|
|
841
|
+
*/
|
|
842
|
+
type ContentProps = ComponentProps<typeof Boxed>;
|
|
843
|
+
/**
|
|
844
|
+
* Appears beside the control while a pointer rests on it.
|
|
845
|
+
*
|
|
846
|
+
* @param props - The recipe's variants, and everything a styled div takes.
|
|
847
|
+
* @returns The box, named and placed by the machine.
|
|
848
|
+
*/
|
|
849
|
+
declare function Content(props: ContentProps): ReactElement;
|
|
850
|
+
//#endregion
|
|
851
|
+
//#region src/tooltip/positioner.d.ts
|
|
852
|
+
/**
|
|
853
|
+
* Draws the box the machine positions.
|
|
854
|
+
*/
|
|
855
|
+
declare const Placed: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
856
|
+
/**
|
|
857
|
+
* Describes what the positioner takes.
|
|
858
|
+
*/
|
|
859
|
+
type PositionerProps = ComponentProps<typeof Placed>;
|
|
860
|
+
/**
|
|
861
|
+
* Draws the box wherever the machine measured room for it.
|
|
862
|
+
*
|
|
863
|
+
* @param props - Everything a styled div takes.
|
|
864
|
+
* @returns The box, positioned by the machine.
|
|
865
|
+
*/
|
|
866
|
+
declare function Positioner(props: PositionerProps): ReactElement;
|
|
867
|
+
//#endregion
|
|
868
|
+
//#region src/tooltip/machine.d.ts
|
|
869
|
+
/**
|
|
870
|
+
* Describes what a caller sets on the machine, every setting of it optional.
|
|
871
|
+
*/
|
|
872
|
+
type TooltipOptions = Partial<tooltip.Props>;
|
|
873
|
+
//#endregion
|
|
874
|
+
//#region src/tooltip/root.d.ts
|
|
875
|
+
/**
|
|
876
|
+
* Draws the element that sets the variants every part below it reads, and no box.
|
|
877
|
+
*/
|
|
878
|
+
declare const Framed: import("@stealthscale/theme").StyledComponent<"div", {
|
|
879
|
+
readonly size?: import("@stealthscale/theme/authoring").Scale;
|
|
880
|
+
readonly variant?: "inverted" | "surface";
|
|
881
|
+
}>;
|
|
882
|
+
/**
|
|
883
|
+
* Describes what the root takes: the machine's settings, the recipe's variants, and the element's.
|
|
884
|
+
*
|
|
885
|
+
* @remarks
|
|
886
|
+
* The element's own `id` and `dir` are left out, because the machine states both. It names the
|
|
887
|
+
* box from the id so the control can point at it, and it reads the direction to decide which side
|
|
888
|
+
* the box opens on.
|
|
889
|
+
*/
|
|
890
|
+
interface RootProps extends Omit<ComponentProps<typeof Framed>, "dir" | "id">, TooltipOptions {}
|
|
891
|
+
/**
|
|
892
|
+
* Shows a short label beside whatever a pointer rests on.
|
|
893
|
+
*
|
|
894
|
+
* @param props - The machine's settings, the recipe's variants and the element's props together.
|
|
895
|
+
* @returns The parts, under the running machine.
|
|
896
|
+
*/
|
|
897
|
+
declare function Root(props: RootProps): ReactElement;
|
|
898
|
+
//#endregion
|
|
899
|
+
//#region src/tooltip/trigger.d.ts
|
|
900
|
+
/**
|
|
901
|
+
* Draws the control, styled by whatever the caller drew rather than by this recipe.
|
|
902
|
+
*/
|
|
903
|
+
declare const Pressed: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
904
|
+
/**
|
|
905
|
+
* Describes what the control takes.
|
|
906
|
+
*/
|
|
907
|
+
type TriggerProps = ComponentProps<typeof Pressed>;
|
|
908
|
+
/**
|
|
909
|
+
* Opens the box as a pointer rests on it or focus reaches it.
|
|
910
|
+
*
|
|
911
|
+
* @param props - Everything a styled button takes.
|
|
912
|
+
* @returns The control, carrying what the machine needs to open the box.
|
|
913
|
+
*/
|
|
914
|
+
declare function Trigger(props: TriggerProps): ReactElement;
|
|
915
|
+
declare namespace index_d_exports$4 {
|
|
916
|
+
export { Arrow, ArrowProps, ArrowTip, ArrowTipProps, Content, ContentProps, Positioner, PositionerProps, Root, RootProps, Trigger, TriggerProps };
|
|
917
|
+
}
|
|
918
|
+
//#endregion
|
|
919
|
+
export { index_d_exports as Collapsible, index_d_exports$1 as Menu, index_d_exports$2 as Popover, index_d_exports$3 as Tabs, index_d_exports$4 as Tooltip };
|