@stealthscale/component-feedback 0.1.0 → 0.2.2
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 +514 -37
- package/dist/cyclonedx/bom.json +1 -1
- package/dist/index.d.ts +716 -60
- package/dist/index.js +1741 -92
- package/dist/recipe-CX1gSsN7.js +1290 -0
- package/dist/theme.d.ts +3 -4
- package/dist/theme.js +37 -16
- package/package.json +36 -23
- package/dist/recipe-0Xo90j3-.js +0 -162
package/dist/index.d.ts
CHANGED
|
@@ -1,142 +1,798 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Palette, SERIES } from "@stealthscale/theme/authoring";
|
|
2
|
+
import { ComponentProps, JSX, ReactElement, ReactNode } from "react";
|
|
3
|
+
import * as progress from "@zag-js/progress";
|
|
4
|
+
import * as toast from "@zag-js/toast";
|
|
5
|
+
import { createStore as createToaster } from "@zag-js/toast";
|
|
6
|
+
//#region src/alert/aside.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Renders a flex div at the inline end, sized to its content.
|
|
9
|
+
*/
|
|
10
|
+
declare const Aside: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
11
|
+
/**
|
|
12
|
+
* Describes the props of Alert.Aside: the props of a div element.
|
|
13
|
+
*/
|
|
14
|
+
type AsideProps = ComponentProps<typeof Aside>;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/alert/close-trigger.d.ts
|
|
17
|
+
/**
|
|
18
|
+
* Button with the close trigger slot classes and `type="button"`.
|
|
19
|
+
*/
|
|
20
|
+
declare const Styled: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
21
|
+
/**
|
|
22
|
+
* Describes the props of Alert.CloseTrigger: the accessible name and the props of a button.
|
|
23
|
+
*/
|
|
24
|
+
interface CloseTriggerProps$1 extends ComponentProps<typeof Styled> {
|
|
25
|
+
/**
|
|
26
|
+
* Accessible name of the button. Defaults to `Dismiss`.
|
|
27
|
+
*/
|
|
28
|
+
readonly label?: string | undefined;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Renders a square button in the alert's ink, named by `label`.
|
|
32
|
+
*/
|
|
33
|
+
declare function CloseTrigger$1({ label, ...rest }: CloseTriggerProps$1): ReactElement;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/alert/content.d.ts
|
|
36
|
+
/**
|
|
37
|
+
* Renders the flex container of the title and the description.
|
|
38
|
+
*/
|
|
39
|
+
declare const Content$2: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
40
|
+
/**
|
|
41
|
+
* Describes the props of Alert.Content: the props of a div element.
|
|
42
|
+
*/
|
|
43
|
+
type ContentProps$2 = ComponentProps<typeof Content$2>;
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/alert/description.d.ts
|
|
46
|
+
/**
|
|
47
|
+
* Renders a span in the root's ink.
|
|
48
|
+
*/
|
|
49
|
+
declare const Description$2: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
50
|
+
/**
|
|
51
|
+
* Describes the props of Alert.Description: the props of a span element.
|
|
52
|
+
*/
|
|
53
|
+
type DescriptionProps$2 = ComponentProps<typeof Description$2>;
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region src/alert/indicator.d.ts
|
|
56
|
+
/**
|
|
57
|
+
* Renders a div on the icon scale, hidden from the accessibility tree by default.
|
|
58
|
+
*/
|
|
59
|
+
declare const Indicator$2: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
60
|
+
/**
|
|
61
|
+
* Describes the props of Alert.Indicator: the props of a div element.
|
|
62
|
+
*/
|
|
63
|
+
type IndicatorProps$2 = ComponentProps<typeof Indicator$2>;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/alert/live.d.ts
|
|
66
|
+
/**
|
|
67
|
+
* Defines the announcement levels of the alert and the ARIA attributes of each.
|
|
68
|
+
*/
|
|
69
|
+
/**
|
|
70
|
+
* Announcement level of an alert.
|
|
71
|
+
*/
|
|
72
|
+
type Live = "assertive" | "off" | "polite";
|
|
73
|
+
/**
|
|
74
|
+
* Every announcement level, quietest first.
|
|
75
|
+
*/
|
|
76
|
+
declare const LIVES: readonly Live[];
|
|
77
|
+
//#endregion
|
|
78
|
+
//#region src/alert/root.d.ts
|
|
79
|
+
/**
|
|
80
|
+
* Div with the root slot classes that provides the variants.
|
|
81
|
+
*/
|
|
82
|
+
declare const Framed$1: import("@stealthscale/theme").StyledComponent<"div", {
|
|
83
|
+
readonly edge?: "bottom" | "end" | "top" | undefined;
|
|
84
|
+
readonly layout?: "inline" | "stacked" | undefined;
|
|
85
|
+
readonly motion?: "fade" | "reveal" | "rise" | undefined;
|
|
86
|
+
readonly radius?: import("@stealthscale/theme/authoring").Corner | undefined;
|
|
87
|
+
readonly size?: "lg" | "md" | "sm" | undefined;
|
|
88
|
+
readonly status?: "error" | "info" | "neutral" | "success" | "warning" | undefined;
|
|
89
|
+
readonly variant?: import("@stealthscale/theme/authoring").Flat | undefined;
|
|
90
|
+
}>;
|
|
91
|
+
/**
|
|
92
|
+
* Describes the props of Alert.Root: the announcement level, the recipe's variants and the props
|
|
93
|
+
* of a div element.
|
|
94
|
+
*/
|
|
95
|
+
interface RootProps$5 extends ComponentProps<typeof Framed$1> {
|
|
96
|
+
/**
|
|
97
|
+
* Announcement level, which sets the role. Defaults to `polite`.
|
|
98
|
+
*/
|
|
99
|
+
readonly live?: Live | undefined;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Renders a div with the role of its announcement level.
|
|
103
|
+
*
|
|
104
|
+
* @remarks
|
|
105
|
+
* The role comes before the caller's props, so a `role` prop overrides it.
|
|
106
|
+
*/
|
|
107
|
+
declare function Root$6({ live, ...rest }: RootProps$5): ReactElement;
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/alert/title.d.ts
|
|
110
|
+
/**
|
|
111
|
+
* Renders a span at medium weight.
|
|
112
|
+
*/
|
|
113
|
+
declare const Title$2: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
114
|
+
/**
|
|
115
|
+
* Describes the props of Alert.Title: the props of a span element.
|
|
116
|
+
*/
|
|
117
|
+
type TitleProps$2 = ComponentProps<typeof Title$2>;
|
|
118
|
+
declare namespace index_d_exports {
|
|
119
|
+
export { Aside, AsideProps, CloseTrigger$1 as CloseTrigger, CloseTriggerProps$1 as CloseTriggerProps, Content$2 as Content, ContentProps$2 as ContentProps, Description$2 as Description, DescriptionProps$2 as DescriptionProps, Indicator$2 as Indicator, IndicatorProps$2 as IndicatorProps, LIVES, Live, Root$6 as Root, RootProps$5 as RootProps, Title$2 as Title, TitleProps$2 as TitleProps };
|
|
120
|
+
}
|
|
121
|
+
//#endregion
|
|
2
122
|
//#region src/empty-state/content.d.ts
|
|
3
123
|
/**
|
|
4
|
-
*
|
|
124
|
+
* Renders a centred flex column with the gap of the root's size.
|
|
5
125
|
*/
|
|
6
|
-
declare const Content: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
126
|
+
declare const Content$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
7
127
|
/**
|
|
8
|
-
* Describes
|
|
128
|
+
* Describes the props of EmptyState.Content: the props of a div element.
|
|
9
129
|
*/
|
|
10
|
-
type ContentProps = ComponentProps<typeof Content>;
|
|
130
|
+
type ContentProps$1 = ComponentProps<typeof Content$1>;
|
|
11
131
|
//#endregion
|
|
12
132
|
//#region src/empty-state/description.d.ts
|
|
13
133
|
/**
|
|
14
|
-
*
|
|
134
|
+
* Renders a paragraph in the muted ink at `body.sm`, at every size of the root.
|
|
15
135
|
*/
|
|
16
|
-
declare const Description: import("@stealthscale/theme").StyledComponent<"p", {}>;
|
|
136
|
+
declare const Description$1: import("@stealthscale/theme").StyledComponent<"p", {}>;
|
|
17
137
|
/**
|
|
18
|
-
* Describes
|
|
138
|
+
* Describes the props of EmptyState.Description: the props of a paragraph element.
|
|
19
139
|
*/
|
|
20
|
-
type DescriptionProps = ComponentProps<typeof Description>;
|
|
140
|
+
type DescriptionProps$1 = ComponentProps<typeof Description$1>;
|
|
21
141
|
//#endregion
|
|
22
142
|
//#region src/empty-state/indicator.d.ts
|
|
23
143
|
/**
|
|
24
|
-
*
|
|
144
|
+
* Renders a div in the muted ink, hidden from the accessibility tree by default.
|
|
25
145
|
*/
|
|
26
|
-
declare const Indicator: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
146
|
+
declare const Indicator$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
27
147
|
/**
|
|
28
|
-
* Describes
|
|
148
|
+
* Describes the props of EmptyState.Indicator: the props of a div element.
|
|
29
149
|
*/
|
|
30
|
-
type IndicatorProps = ComponentProps<typeof Indicator>;
|
|
150
|
+
type IndicatorProps$1 = ComponentProps<typeof Indicator$1>;
|
|
31
151
|
//#endregion
|
|
32
152
|
//#region src/empty-state/root.d.ts
|
|
33
153
|
/**
|
|
34
|
-
*
|
|
154
|
+
* Renders a div and provides the size to the parts inside it.
|
|
35
155
|
*/
|
|
36
|
-
declare const Root: import("@stealthscale/theme").StyledComponent<"div", {
|
|
37
|
-
readonly size?: "
|
|
156
|
+
declare const Root$5: import("@stealthscale/theme").StyledComponent<"div", {
|
|
157
|
+
readonly size?: "lg" | "md" | "sm" | undefined;
|
|
38
158
|
}>;
|
|
39
159
|
/**
|
|
40
|
-
* Describes
|
|
160
|
+
* Describes the props of EmptyState.Root: the recipe's size and the props of a div element.
|
|
41
161
|
*/
|
|
42
|
-
type RootProps = ComponentProps<typeof Root>;
|
|
162
|
+
type RootProps$4 = ComponentProps<typeof Root$5>;
|
|
43
163
|
//#endregion
|
|
44
164
|
//#region src/empty-state/title.d.ts
|
|
45
165
|
/**
|
|
46
|
-
*
|
|
166
|
+
* Renders a semibold heading at the text style of the root's size.
|
|
47
167
|
*/
|
|
48
|
-
declare const Title: import("@stealthscale/theme").StyledComponent<"h2", {}>;
|
|
168
|
+
declare const Title$1: import("@stealthscale/theme").StyledComponent<"h2", {}>;
|
|
49
169
|
/**
|
|
50
|
-
* Describes
|
|
170
|
+
* Describes the props of EmptyState.Title: the props of a heading element.
|
|
51
171
|
*/
|
|
52
|
-
type TitleProps = ComponentProps<typeof Title>;
|
|
53
|
-
declare namespace index_d_exports {
|
|
54
|
-
export { Content, ContentProps, Description, DescriptionProps, Indicator, IndicatorProps, Root, RootProps, Title, TitleProps };
|
|
172
|
+
type TitleProps$1 = ComponentProps<typeof Title$1>;
|
|
173
|
+
declare namespace index_d_exports$1 {
|
|
174
|
+
export { Content$1 as Content, ContentProps$1 as ContentProps, Description$1 as Description, DescriptionProps$1 as DescriptionProps, Indicator$1 as Indicator, IndicatorProps$1 as IndicatorProps, Root$5 as Root, RootProps$4 as RootProps, Title$1 as Title, TitleProps$1 as TitleProps };
|
|
175
|
+
}
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/loader/loader.d.ts
|
|
178
|
+
/**
|
|
179
|
+
* Renders the loader's root: an inline row with words, an inline grid over content.
|
|
180
|
+
*/
|
|
181
|
+
declare const Root$4: import("@stealthscale/theme").StyledComponent<"span", {
|
|
182
|
+
readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
183
|
+
readonly scrim?: "glass" | "none" | "veil" | undefined;
|
|
184
|
+
}>;
|
|
185
|
+
/**
|
|
186
|
+
* Selects the side of the words the spinner is rendered on.
|
|
187
|
+
*/
|
|
188
|
+
type LoaderPlacement = "end" | "start";
|
|
189
|
+
/**
|
|
190
|
+
* Describes the props of `Loader`: the root's props and variants, and what it renders while
|
|
191
|
+
* loading.
|
|
192
|
+
*/
|
|
193
|
+
interface LoaderProps extends Omit<ComponentProps<typeof Root$4>, "children" | "scrim"> {
|
|
194
|
+
/**
|
|
195
|
+
* The content the loader covers while loading, rendered unchanged when it is not.
|
|
196
|
+
*/
|
|
197
|
+
readonly children?: ReactNode;
|
|
198
|
+
/**
|
|
199
|
+
* The text screen readers read in place of the hidden children. Defaults to `Loading`.
|
|
200
|
+
*/
|
|
201
|
+
readonly label?: string | undefined;
|
|
202
|
+
/**
|
|
203
|
+
* Whether the loader is shown. Defaults to `true`.
|
|
204
|
+
*/
|
|
205
|
+
readonly loading?: boolean | undefined;
|
|
206
|
+
/**
|
|
207
|
+
* The side of the words the spinner is rendered on. Defaults to `start`.
|
|
208
|
+
*/
|
|
209
|
+
readonly placement?: LoaderPlacement | undefined;
|
|
210
|
+
/**
|
|
211
|
+
* The indicator to render in place of the default spinner.
|
|
212
|
+
*/
|
|
213
|
+
readonly spinner?: ReactNode;
|
|
214
|
+
/**
|
|
215
|
+
* The words rendered beside the spinner, in place of the children.
|
|
216
|
+
*/
|
|
217
|
+
readonly text?: ReactNode;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Renders the spinner beside `text`, or over the hidden children, while `loading` is true.
|
|
221
|
+
*/
|
|
222
|
+
export declare function Loader({ children, label, loading, placement, spinner, text, ...rest }: LoaderProps): ReactNode;
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region src/loader/overlay.d.ts
|
|
225
|
+
/**
|
|
226
|
+
* Renders the overlay `div` with the recipe's `overlay` slot.
|
|
227
|
+
*/
|
|
228
|
+
declare const Overlay: import("@stealthscale/theme").StyledComponent<"div", {
|
|
229
|
+
readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
230
|
+
readonly scrim?: "glass" | "none" | "veil" | undefined;
|
|
231
|
+
}>;
|
|
232
|
+
/**
|
|
233
|
+
* Describes the props of `LoaderOverlay`: the `scrim` axis and the props of a `div`.
|
|
234
|
+
*/
|
|
235
|
+
type LoaderOverlayProps = Omit<ComponentProps<typeof Overlay>, "palette">;
|
|
236
|
+
/**
|
|
237
|
+
* Renders the overlay `div`, veiled by default.
|
|
238
|
+
*/
|
|
239
|
+
export declare const LoaderOverlay: (props: LoaderOverlayProps) => JSX.Element;
|
|
240
|
+
//#endregion
|
|
241
|
+
//#region src/progress/machine.d.ts
|
|
242
|
+
/**
|
|
243
|
+
* Machine settings a caller passes to the root, `id` included, all optional.
|
|
244
|
+
*
|
|
245
|
+
* @remarks
|
|
246
|
+
* `translations` is omitted, because a component's words are props with English defaults.
|
|
247
|
+
* `orientation` is omitted, because the recipe styles a horizontal track only.
|
|
248
|
+
*/
|
|
249
|
+
type ProgressOptions = Omit<Partial<progress.Props>, "orientation" | "translations">;
|
|
250
|
+
//#endregion
|
|
251
|
+
//#region src/progress/root.d.ts
|
|
252
|
+
/**
|
|
253
|
+
* Renders the root `div` and provides the variants to the parts.
|
|
254
|
+
*/
|
|
255
|
+
declare const Gridded$1: import("@stealthscale/theme").StyledComponent<"div", {
|
|
256
|
+
readonly animated?: boolean | undefined;
|
|
257
|
+
readonly effect?: "glow" | "pulse" | undefined;
|
|
258
|
+
readonly layout?: "inline" | "stacked" | undefined;
|
|
259
|
+
readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
260
|
+
readonly shape?: "full" | "rounded" | "square" | undefined;
|
|
261
|
+
readonly size?: "lg" | "md" | "sm" | "xl" | "xs" | undefined;
|
|
262
|
+
readonly striped?: boolean | undefined;
|
|
263
|
+
readonly variant?: "outline" | "subtle" | undefined;
|
|
264
|
+
}>;
|
|
265
|
+
/**
|
|
266
|
+
* Describes the props of `Root`: the machine settings, the variants and the `div` props.
|
|
267
|
+
*/
|
|
268
|
+
interface RootProps$3 extends Omit<ComponentProps<typeof Gridded$1>, "defaultValue" | "dir" | "id">, ProgressOptions {}
|
|
269
|
+
/**
|
|
270
|
+
* Renders the bar and provides the machine's API and the label's state to its parts.
|
|
271
|
+
*
|
|
272
|
+
* @param props - The machine settings, the recipe's variants and the `div` props.
|
|
273
|
+
* @returns The `div` element.
|
|
274
|
+
*/
|
|
275
|
+
declare function Root$3(props: RootProps$3): ReactElement;
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region src/meter/root.d.ts
|
|
278
|
+
/**
|
|
279
|
+
* Describes the props of the root: the progress bar's props without those of work under way, and
|
|
280
|
+
* the measured value.
|
|
281
|
+
*
|
|
282
|
+
* @remarks
|
|
283
|
+
* `min` is 0 and `max` 100 by default, and `formatOptions` formats the value as a percent unless
|
|
284
|
+
* it states another style.
|
|
285
|
+
*/
|
|
286
|
+
interface RootProps$2 extends Omit<RootProps$3, "animated" | "defaultValue" | "effect" | "onValueChange" | "striped" | "value"> {
|
|
287
|
+
/**
|
|
288
|
+
* The measured value, between `min` and `max`.
|
|
289
|
+
*/
|
|
290
|
+
readonly value: number;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Renders the progress bar's root inside the meter's role.
|
|
294
|
+
*
|
|
295
|
+
* @param props - The value, its range and format, the recipe's variants and the props of a `div`.
|
|
296
|
+
* @returns The root `div` inside the role's provider.
|
|
297
|
+
*/
|
|
298
|
+
declare function Root$2(props: RootProps$2): ReactElement;
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region src/progress/label.d.ts
|
|
301
|
+
/**
|
|
302
|
+
* Renders the label `span`.
|
|
303
|
+
*/
|
|
304
|
+
declare const Named$1: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
305
|
+
/**
|
|
306
|
+
* Describes the props of `Label`.
|
|
307
|
+
*/
|
|
308
|
+
type LabelProps$1 = ComponentProps<typeof Named$1>;
|
|
309
|
+
/**
|
|
310
|
+
* Renders the label with the machine's ID.
|
|
311
|
+
*
|
|
312
|
+
* @param props - The `span` element's props.
|
|
313
|
+
* @returns The `span` element.
|
|
314
|
+
*/
|
|
315
|
+
declare function Label$1(props: LabelProps$1): ReactElement;
|
|
316
|
+
//#endregion
|
|
317
|
+
//#region src/progress/marker.d.ts
|
|
318
|
+
/**
|
|
319
|
+
* Renders the marker `div`.
|
|
320
|
+
*/
|
|
321
|
+
declare const Marked: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
322
|
+
/**
|
|
323
|
+
* Describes the props of `Marker`: the value it marks and the props of a `div`.
|
|
324
|
+
*/
|
|
325
|
+
interface MarkerProps extends ComponentProps<typeof Marked> {
|
|
326
|
+
/**
|
|
327
|
+
* Value the marker is placed at, in the units of `min` and `max`.
|
|
328
|
+
*/
|
|
329
|
+
readonly value: number;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* Renders the marker at its value's share of the range.
|
|
333
|
+
*
|
|
334
|
+
* @param props - The value and the props of a `div`.
|
|
335
|
+
* @returns The `div` element.
|
|
336
|
+
*/
|
|
337
|
+
declare function Marker({ style, value, ...props }: MarkerProps): ReactElement;
|
|
338
|
+
//#endregion
|
|
339
|
+
//#region src/progress/range.d.ts
|
|
340
|
+
/**
|
|
341
|
+
* Renders the range `div`.
|
|
342
|
+
*/
|
|
343
|
+
declare const Filled$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
344
|
+
/**
|
|
345
|
+
* Describes the props of `Range`.
|
|
346
|
+
*/
|
|
347
|
+
type RangeProps$1 = ComponentProps<typeof Filled$1>;
|
|
348
|
+
/**
|
|
349
|
+
* Renders the range with the machine's width and state.
|
|
350
|
+
*
|
|
351
|
+
* @param props - The `div` element's props.
|
|
352
|
+
* @returns The `div` element.
|
|
353
|
+
*/
|
|
354
|
+
declare function Range$1(props: RangeProps$1): ReactElement;
|
|
355
|
+
//#endregion
|
|
356
|
+
//#region src/progress/segment.d.ts
|
|
357
|
+
/**
|
|
358
|
+
* Renders the segment `span`.
|
|
359
|
+
*/
|
|
360
|
+
declare const Filled: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
361
|
+
/**
|
|
362
|
+
* Describes the color a segment states: one of the theme's series colors or a palette.
|
|
363
|
+
*/
|
|
364
|
+
type SegmentColor = `series.${(typeof SERIES)[number]}` | Palette;
|
|
365
|
+
/**
|
|
366
|
+
* Describes the props of `Segment`: its value, its color and the props of a `span`.
|
|
367
|
+
*
|
|
368
|
+
* @remarks
|
|
369
|
+
* The span's props leave out `color`, the style prop, because the segment takes `color` as the
|
|
370
|
+
* color it fills in.
|
|
371
|
+
*/
|
|
372
|
+
interface SegmentProps extends Omit<ComponentProps<typeof Filled>, "color"> {
|
|
373
|
+
/**
|
|
374
|
+
* Color the segment fills in: a series color, or a palette's solid. The series color at the
|
|
375
|
+
* segment's place unless stated.
|
|
376
|
+
*/
|
|
377
|
+
readonly color?: SegmentColor | undefined;
|
|
378
|
+
/**
|
|
379
|
+
* Amount the segment stands for, in the units of `min` and `max`.
|
|
380
|
+
*/
|
|
381
|
+
readonly value: number;
|
|
382
|
+
}
|
|
383
|
+
/**
|
|
384
|
+
* Renders the segment at its value's share of the range, in its color.
|
|
385
|
+
*
|
|
386
|
+
* @param props - The value, the color and the props of a `span`.
|
|
387
|
+
* @returns The `span` element.
|
|
388
|
+
*/
|
|
389
|
+
declare function Segment({ color, style, value, ...props }: SegmentProps): ReactElement;
|
|
390
|
+
//#endregion
|
|
391
|
+
//#region src/progress/track.d.ts
|
|
392
|
+
/**
|
|
393
|
+
* Renders the track `div`.
|
|
394
|
+
*/
|
|
395
|
+
declare const Tracked: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
396
|
+
/**
|
|
397
|
+
* Describes the props of `Track`.
|
|
398
|
+
*/
|
|
399
|
+
type TrackProps$1 = ComponentProps<typeof Tracked>;
|
|
400
|
+
/**
|
|
401
|
+
* Renders the track in its root's role, named by the label once it renders.
|
|
402
|
+
*
|
|
403
|
+
* @param props - The `div` element's props.
|
|
404
|
+
* @returns The `div` element.
|
|
405
|
+
*/
|
|
406
|
+
declare function Track$1(props: TrackProps$1): ReactElement;
|
|
407
|
+
//#endregion
|
|
408
|
+
//#region src/progress/value-text.d.ts
|
|
409
|
+
/**
|
|
410
|
+
* Renders the value `span`.
|
|
411
|
+
*/
|
|
412
|
+
declare const Valued$1: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
413
|
+
/**
|
|
414
|
+
* Describes the props of `ValueText`.
|
|
415
|
+
*/
|
|
416
|
+
type ValueTextProps$1 = ComponentProps<typeof Valued$1>;
|
|
417
|
+
/**
|
|
418
|
+
* Renders the children, or the formatted value.
|
|
419
|
+
*
|
|
420
|
+
* @param props - The `span` element's props.
|
|
421
|
+
* @returns The `span` element.
|
|
422
|
+
*/
|
|
423
|
+
declare function ValueText$1({ children, ...rest }: ValueTextProps$1): ReactElement;
|
|
424
|
+
declare namespace index_d_exports$2 {
|
|
425
|
+
export { Label$1 as Label, LabelProps$1 as LabelProps, Marker, MarkerProps, Range$1 as Range, RangeProps$1 as RangeProps, Root$2 as Root, RootProps$2 as RootProps, Segment, SegmentColor, SegmentProps, Track$1 as Track, TrackProps$1 as TrackProps, ValueText$1 as ValueText, ValueTextProps$1 as ValueTextProps };
|
|
426
|
+
}
|
|
427
|
+
//#endregion
|
|
428
|
+
//#region src/progress-circle/circle.d.ts
|
|
429
|
+
/**
|
|
430
|
+
* Renders the ring `svg`.
|
|
431
|
+
*/
|
|
432
|
+
declare const Ring: import("@stealthscale/theme").StyledComponent<"svg", {}>;
|
|
433
|
+
/**
|
|
434
|
+
* Describes the props of `Circle`: the props of an `svg`.
|
|
435
|
+
*/
|
|
436
|
+
type CircleProps = ComponentProps<typeof Ring>;
|
|
437
|
+
/**
|
|
438
|
+
* Renders the ring with the machine's progress bar props, named by the label once it renders.
|
|
439
|
+
*
|
|
440
|
+
* @param props - The `svg` element's props and its circles.
|
|
441
|
+
* @returns The `svg` element.
|
|
442
|
+
*/
|
|
443
|
+
declare function Circle(props: CircleProps): ReactElement;
|
|
444
|
+
//#endregion
|
|
445
|
+
//#region src/progress-circle/label.d.ts
|
|
446
|
+
/**
|
|
447
|
+
* Renders the label `span`.
|
|
448
|
+
*/
|
|
449
|
+
declare const Named: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
450
|
+
/**
|
|
451
|
+
* Describes the props of `Label`: the props of a `span`.
|
|
452
|
+
*/
|
|
453
|
+
type LabelProps = ComponentProps<typeof Named>;
|
|
454
|
+
/**
|
|
455
|
+
* Renders the label with the machine's ID.
|
|
456
|
+
*
|
|
457
|
+
* @param props - The `span` element's props.
|
|
458
|
+
* @returns The `span` element.
|
|
459
|
+
*/
|
|
460
|
+
declare function Label(props: LabelProps): ReactElement;
|
|
461
|
+
//#endregion
|
|
462
|
+
//#region src/progress-circle/range.d.ts
|
|
463
|
+
/**
|
|
464
|
+
* Renders the range `circle`.
|
|
465
|
+
*/
|
|
466
|
+
declare const Arc: import("@stealthscale/theme").StyledComponent<"circle", {}>;
|
|
467
|
+
/**
|
|
468
|
+
* Describes the props of `Range`: the props of a `circle`.
|
|
469
|
+
*/
|
|
470
|
+
type RangeProps = ComponentProps<typeof Arc>;
|
|
471
|
+
/**
|
|
472
|
+
* Renders the range with the machine's geometry and state.
|
|
473
|
+
*
|
|
474
|
+
* @param props - The `circle` element's props.
|
|
475
|
+
* @returns The `circle` element.
|
|
476
|
+
*/
|
|
477
|
+
declare function Range(props: RangeProps): ReactElement;
|
|
478
|
+
//#endregion
|
|
479
|
+
//#region src/progress-circle/root.d.ts
|
|
480
|
+
/**
|
|
481
|
+
* Renders the root `div` and provides the variants to the parts.
|
|
482
|
+
*/
|
|
483
|
+
declare const Gridded: import("@stealthscale/theme").StyledComponent<"div", {
|
|
484
|
+
readonly layout?: "inline" | "stacked" | undefined;
|
|
485
|
+
readonly palette?: "accent" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
486
|
+
readonly shape?: "full" | "square" | undefined;
|
|
487
|
+
readonly size?: "lg" | "md" | "sm" | "xl" | "xs" | undefined;
|
|
488
|
+
readonly variant?: "outline" | "subtle" | undefined;
|
|
489
|
+
}>;
|
|
490
|
+
/**
|
|
491
|
+
* Describes the props of `Root`: the machine settings, the variants and the `div` props.
|
|
492
|
+
*/
|
|
493
|
+
interface RootProps$1 extends Omit<ComponentProps<typeof Gridded>, "defaultValue" | "dir" | "id">, ProgressOptions {}
|
|
494
|
+
/**
|
|
495
|
+
* Renders the ring's grid and provides the machine's API and the label's state to its parts.
|
|
496
|
+
*
|
|
497
|
+
* @param props - The machine settings, the recipe's variants and the `div` props.
|
|
498
|
+
* @returns The `div` element.
|
|
499
|
+
*/
|
|
500
|
+
declare function Root$1(props: RootProps$1): ReactElement;
|
|
501
|
+
//#endregion
|
|
502
|
+
//#region src/progress-circle/track.d.ts
|
|
503
|
+
/**
|
|
504
|
+
* Renders the track `circle`.
|
|
505
|
+
*/
|
|
506
|
+
declare const Whole: import("@stealthscale/theme").StyledComponent<"circle", {}>;
|
|
507
|
+
/**
|
|
508
|
+
* Describes the props of `Track`: the props of a `circle`.
|
|
509
|
+
*/
|
|
510
|
+
type TrackProps = ComponentProps<typeof Whole>;
|
|
511
|
+
/**
|
|
512
|
+
* Renders the track with the machine's geometry.
|
|
513
|
+
*
|
|
514
|
+
* @param props - The `circle` element's props.
|
|
515
|
+
* @returns The `circle` element.
|
|
516
|
+
*/
|
|
517
|
+
declare function Track(props: TrackProps): ReactElement;
|
|
518
|
+
//#endregion
|
|
519
|
+
//#region src/progress-circle/value-text.d.ts
|
|
520
|
+
/**
|
|
521
|
+
* Renders the value `span`.
|
|
522
|
+
*/
|
|
523
|
+
declare const Valued: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
524
|
+
/**
|
|
525
|
+
* Describes the props of `ValueText`: the props of a `span`.
|
|
526
|
+
*/
|
|
527
|
+
type ValueTextProps = ComponentProps<typeof Valued>;
|
|
528
|
+
/**
|
|
529
|
+
* Renders the children, or the formatted value.
|
|
530
|
+
*
|
|
531
|
+
* @param props - The `span` element's props.
|
|
532
|
+
* @returns The `span` element.
|
|
533
|
+
*/
|
|
534
|
+
declare function ValueText({ children, ...rest }: ValueTextProps): ReactElement;
|
|
535
|
+
declare namespace index_d_exports$4 {
|
|
536
|
+
export { Circle, CircleProps, Label, LabelProps, Range, RangeProps, Root$1 as Root, RootProps$1 as RootProps, Track, TrackProps, ValueText, ValueTextProps };
|
|
537
|
+
}
|
|
538
|
+
declare namespace index_d_exports$3 {
|
|
539
|
+
export { Label$1 as Label, LabelProps$1 as LabelProps, Marker, MarkerProps, Range$1 as Range, RangeProps$1 as RangeProps, Root$3 as Root, RootProps$3 as RootProps, Segment, SegmentColor, SegmentProps, Track$1 as Track, TrackProps$1 as TrackProps, ValueText$1 as ValueText, ValueTextProps$1 as ValueTextProps };
|
|
55
540
|
}
|
|
56
541
|
//#endregion
|
|
57
542
|
//#region src/skeleton-text/context.d.ts
|
|
58
543
|
/**
|
|
59
|
-
* Binds the skeleton
|
|
544
|
+
* Binds the skeleton text recipe to React.
|
|
60
545
|
*
|
|
61
546
|
* @remarks
|
|
62
|
-
*
|
|
63
|
-
* the binding needs the runtime.
|
|
547
|
+
* The binding is a separate module from the recipe, because an application's compiler imports the
|
|
548
|
+
* recipe at build time and the binding needs the React runtime.
|
|
64
549
|
*/
|
|
65
550
|
/**
|
|
66
|
-
*
|
|
551
|
+
* Factory for the column and the provider that sets its props for descendants.
|
|
67
552
|
*/
|
|
68
|
-
declare const PropsProvider$1: import("react").Provider<import("@stealthscale/theme").DataAttrs & Partial<{}>>, withContext$1: <Tag extends import("react").ElementType>(Component: Tag, options?: import("@stealthscale/theme").JsxFactoryOptions<import("@stealthscale/theme").ComponentProps<Tag> & Partial<{}
|
|
553
|
+
declare const PropsProvider$1: import("react").Provider<import("@stealthscale/theme").DataAttrs & Partial<{}>>, withContext$1: <Tag extends import("react").ElementType>(Component: Tag, options?: import("@stealthscale/theme").JsxFactoryOptions<import("@stealthscale/theme").ComponentProps<Tag> & Partial<{}>, string> | undefined) => import("@stealthscale/theme").StyledComponent<Tag, {}>;
|
|
69
554
|
//#endregion
|
|
70
555
|
//#region src/skeleton/skeleton.d.ts
|
|
71
556
|
/**
|
|
72
|
-
*
|
|
557
|
+
* Renders a div that takes the box of the content it wraps.
|
|
73
558
|
*/
|
|
74
559
|
export declare const Skeleton: import("@stealthscale/theme").StyledComponent<"div", {
|
|
75
|
-
readonly loading?: boolean;
|
|
76
|
-
readonly motion?: "none" | "pulse" | "shimmer";
|
|
77
|
-
readonly radius?: import("@stealthscale/theme/authoring").Corner;
|
|
560
|
+
readonly loading?: boolean | undefined;
|
|
561
|
+
readonly motion?: "none" | "pulse" | "shimmer" | undefined;
|
|
562
|
+
readonly radius?: import("@stealthscale/theme/authoring").Corner | undefined;
|
|
78
563
|
}>;
|
|
79
564
|
/**
|
|
80
|
-
* Describes
|
|
81
|
-
* takes.
|
|
565
|
+
* Describes the props of Skeleton: the recipe's variants and the props of a div element.
|
|
82
566
|
*/
|
|
83
567
|
type SkeletonProps = ComponentProps<typeof Skeleton>;
|
|
84
568
|
//#endregion
|
|
85
569
|
//#region src/skeleton-text/skeleton-text.d.ts
|
|
86
570
|
/**
|
|
87
|
-
*
|
|
571
|
+
* Div with the skeleton text classes.
|
|
88
572
|
*/
|
|
89
573
|
declare const Column: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
90
574
|
/**
|
|
91
|
-
* Describes
|
|
575
|
+
* Describes the props of SkeletonText: the line count, the bar variants and the props of a div.
|
|
92
576
|
*/
|
|
93
577
|
interface SkeletonTextProps extends ComponentProps<typeof Column> {
|
|
94
578
|
/**
|
|
95
|
-
*
|
|
579
|
+
* Number of bars. Defaults to 3, and a value below 1 renders one bar.
|
|
96
580
|
*/
|
|
97
581
|
readonly lines?: number | undefined;
|
|
98
582
|
/**
|
|
99
|
-
*
|
|
583
|
+
* Animation of every bar. The skeleton recipe's default applies when absent.
|
|
100
584
|
*/
|
|
101
585
|
readonly motion?: SkeletonProps["motion"] | undefined;
|
|
102
586
|
/**
|
|
103
|
-
*
|
|
587
|
+
* Corner radius of every bar. The skeleton recipe's default applies when absent.
|
|
104
588
|
*/
|
|
105
589
|
readonly radius?: SkeletonProps["radius"] | undefined;
|
|
106
590
|
}
|
|
107
591
|
/**
|
|
108
|
-
*
|
|
592
|
+
* Renders a column of `Skeleton` bars, one per line.
|
|
109
593
|
*
|
|
110
|
-
* @
|
|
111
|
-
*
|
|
594
|
+
* @remarks
|
|
595
|
+
* `motion` and `radius` are left out of the bar props when undefined, because an explicit
|
|
596
|
+
* `undefined` overrides the value an enclosing `SkeletonPropsProvider` sets.
|
|
112
597
|
*/
|
|
113
598
|
export declare function SkeletonText({ lines, motion, radius, ...rest }: SkeletonTextProps): ReactElement;
|
|
114
599
|
//#endregion
|
|
115
600
|
//#region src/skeleton/context.d.ts
|
|
116
601
|
/**
|
|
117
|
-
* Binds the skeleton
|
|
602
|
+
* Binds the skeleton recipe to React.
|
|
118
603
|
*
|
|
119
604
|
* @remarks
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
* every compiler configuration that reads it.
|
|
605
|
+
* The binding is a separate module from the recipe, because an application's compiler imports the
|
|
606
|
+
* recipe at build time and the binding needs the React runtime.
|
|
123
607
|
*/
|
|
124
608
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
609
|
+
* Factory for the skeleton and the skeleton text bars, and the provider that sets their variants
|
|
610
|
+
* for descendants.
|
|
127
611
|
*/
|
|
128
612
|
declare const PropsProvider: import("react").Provider<import("@stealthscale/theme").DataAttrs & Partial<{
|
|
129
|
-
readonly loading?: boolean;
|
|
130
|
-
readonly motion?: "none" | "pulse" | "shimmer";
|
|
131
|
-
readonly radius?: import("@stealthscale/theme/authoring").Corner;
|
|
613
|
+
readonly loading?: boolean | undefined;
|
|
614
|
+
readonly motion?: "none" | "pulse" | "shimmer" | undefined;
|
|
615
|
+
readonly radius?: import("@stealthscale/theme/authoring").Corner | undefined;
|
|
132
616
|
}>>, withContext: <Tag extends import("react").ElementType>(Component: Tag, options?: import("@stealthscale/theme").JsxFactoryOptions<import("@stealthscale/theme").ComponentProps<Tag> & Partial<{
|
|
133
|
-
readonly loading?: boolean;
|
|
134
|
-
readonly motion?: "none" | "pulse" | "shimmer";
|
|
135
|
-
readonly radius?: import("@stealthscale/theme/authoring").Corner;
|
|
136
|
-
}
|
|
137
|
-
readonly loading?: boolean;
|
|
138
|
-
readonly motion?: "none" | "pulse" | "shimmer";
|
|
139
|
-
readonly radius?: import("@stealthscale/theme/authoring").Corner;
|
|
617
|
+
readonly loading?: boolean | undefined;
|
|
618
|
+
readonly motion?: "none" | "pulse" | "shimmer" | undefined;
|
|
619
|
+
readonly radius?: import("@stealthscale/theme/authoring").Corner | undefined;
|
|
620
|
+
}>, string> | undefined) => import("@stealthscale/theme").StyledComponent<Tag, {
|
|
621
|
+
readonly loading?: boolean | undefined;
|
|
622
|
+
readonly motion?: "none" | "pulse" | "shimmer" | undefined;
|
|
623
|
+
readonly radius?: import("@stealthscale/theme/authoring").Corner | undefined;
|
|
624
|
+
}>;
|
|
625
|
+
//#endregion
|
|
626
|
+
//#region src/spinner/spinner.d.ts
|
|
627
|
+
/**
|
|
628
|
+
* Renders a `span` styled by the spinner recipe.
|
|
629
|
+
*/
|
|
630
|
+
export declare const Spinner: import("@stealthscale/theme").StyledComponent<"span", {
|
|
631
|
+
readonly effect?: "glow" | "pulse" | undefined;
|
|
632
|
+
readonly palette?: "accent" | "current" | "error" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning" | undefined;
|
|
633
|
+
readonly size?: "2xl" | "3xl" | "4xl" | "inherit" | "lg" | "md" | "sm" | "xl" | "xs" | undefined;
|
|
634
|
+
readonly stroke?: "control" | "hairline" | "heavy" | "indicator" | undefined;
|
|
635
|
+
readonly track?: boolean | undefined;
|
|
140
636
|
}>;
|
|
637
|
+
/**
|
|
638
|
+
* Combines the recipe's variants with the props of a `span`.
|
|
639
|
+
*/
|
|
640
|
+
type SpinnerProps = ComponentProps<typeof Spinner>;
|
|
641
|
+
//#endregion
|
|
642
|
+
//#region src/toast/action-trigger.d.ts
|
|
643
|
+
/**
|
|
644
|
+
* Renders the `button` with the toast's action trigger class.
|
|
645
|
+
*/
|
|
646
|
+
declare const Drawn$4: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
647
|
+
/**
|
|
648
|
+
* Describes the props of the action trigger: the props of a `button`.
|
|
649
|
+
*/
|
|
650
|
+
type ActionTriggerProps = ComponentProps<typeof Drawn$4>;
|
|
651
|
+
/**
|
|
652
|
+
* Renders the action trigger with the machine's props merged over the caller's.
|
|
653
|
+
*
|
|
654
|
+
* @param props - The props of a `button`.
|
|
655
|
+
* @returns The `button` element.
|
|
656
|
+
*/
|
|
657
|
+
declare function ActionTrigger(props: ActionTriggerProps): ReactElement;
|
|
658
|
+
//#endregion
|
|
659
|
+
//#region src/toast/close-trigger.d.ts
|
|
660
|
+
/**
|
|
661
|
+
* Renders the `button` with the toast's close trigger class.
|
|
662
|
+
*/
|
|
663
|
+
declare const Drawn$3: import("@stealthscale/theme").StyledComponent<"button", {}>;
|
|
664
|
+
/**
|
|
665
|
+
* Describes the props of the close trigger: the props of a `button`.
|
|
666
|
+
*/
|
|
667
|
+
type CloseTriggerProps = ComponentProps<typeof Drawn$3>;
|
|
668
|
+
/**
|
|
669
|
+
* Renders the close trigger with the machine's props merged over the caller's.
|
|
670
|
+
*
|
|
671
|
+
* @param props - The props of a `button`.
|
|
672
|
+
* @returns The `button` element.
|
|
673
|
+
*/
|
|
674
|
+
declare function CloseTrigger(props: CloseTriggerProps): ReactElement;
|
|
675
|
+
//#endregion
|
|
676
|
+
//#region src/toast/content.d.ts
|
|
677
|
+
/**
|
|
678
|
+
* Renders the column of the title and the description.
|
|
679
|
+
*/
|
|
680
|
+
declare const Content: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
681
|
+
/**
|
|
682
|
+
* Describes the props of Toast.Content: the props of a `div`.
|
|
683
|
+
*/
|
|
684
|
+
type ContentProps = ComponentProps<typeof Content>;
|
|
685
|
+
//#endregion
|
|
686
|
+
//#region src/toast/description.d.ts
|
|
687
|
+
/**
|
|
688
|
+
* Renders the `div` with the toast's description class.
|
|
689
|
+
*/
|
|
690
|
+
declare const Drawn$2: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
691
|
+
/**
|
|
692
|
+
* Describes the props of the description: the props of a `div`.
|
|
693
|
+
*/
|
|
694
|
+
type DescriptionProps = ComponentProps<typeof Drawn$2>;
|
|
695
|
+
/**
|
|
696
|
+
* Renders the description with the machine's description props merged over the caller's.
|
|
697
|
+
*
|
|
698
|
+
* @param props - The props of a `div`.
|
|
699
|
+
* @returns The `div` element.
|
|
700
|
+
*/
|
|
701
|
+
declare function Description(props: DescriptionProps): ReactElement;
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region src/toast/indicator.d.ts
|
|
704
|
+
/**
|
|
705
|
+
* Renders a `span` hidden from the accessibility tree by default.
|
|
706
|
+
*/
|
|
707
|
+
declare const Indicator: import("@stealthscale/theme").StyledComponent<"span", {}>;
|
|
708
|
+
/**
|
|
709
|
+
* Describes the props of Toast.Indicator: the props of a `span`.
|
|
710
|
+
*/
|
|
711
|
+
type IndicatorProps = ComponentProps<typeof Indicator>;
|
|
712
|
+
//#endregion
|
|
713
|
+
//#region src/toast/machine.d.ts
|
|
714
|
+
/**
|
|
715
|
+
* Describes the store an application raises toasts into.
|
|
716
|
+
*/
|
|
717
|
+
type Toaster = toast.Store;
|
|
718
|
+
/**
|
|
719
|
+
* Describes one toast as the toaster holds it: its id, type, title, description, duration and
|
|
720
|
+
* action.
|
|
721
|
+
*/
|
|
722
|
+
type ToastOptions = toast.Options<ReactNode>;
|
|
723
|
+
//#endregion
|
|
724
|
+
//#region src/toast/region.d.ts
|
|
725
|
+
/**
|
|
726
|
+
* Renders the `div` that provides the recipe's variants.
|
|
727
|
+
*/
|
|
728
|
+
declare const Framed: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
729
|
+
/**
|
|
730
|
+
* Describes the props of the region: the toaster, the landmark's name, the text direction, the
|
|
731
|
+
* render function and the props of a `div`.
|
|
732
|
+
*/
|
|
733
|
+
interface RegionProps extends Omit<ComponentProps<typeof Framed>, "children" | "dir"> {
|
|
734
|
+
/**
|
|
735
|
+
* Renders one toast, which the region wraps in the toast's own machine.
|
|
736
|
+
*/
|
|
737
|
+
readonly children: (toast: ToastOptions) => ReactNode;
|
|
738
|
+
/**
|
|
739
|
+
* The text direction, which mirrors the start and end placements.
|
|
740
|
+
*/
|
|
741
|
+
readonly dir?: "ltr" | "rtl" | undefined;
|
|
742
|
+
/**
|
|
743
|
+
* The landmark's name, before the placement and the hotkey. `Notifications` by default.
|
|
744
|
+
*/
|
|
745
|
+
readonly label?: string | undefined;
|
|
746
|
+
/**
|
|
747
|
+
* The store the region renders the toasts of.
|
|
748
|
+
*/
|
|
749
|
+
readonly toaster: Toaster;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* Renders the region with the group machine's props merged over the caller's, and each toast.
|
|
753
|
+
*
|
|
754
|
+
* @param props - The toaster, the name, the direction, the render function and the props of a
|
|
755
|
+
* `div`.
|
|
756
|
+
* @returns The `div` element.
|
|
757
|
+
*/
|
|
758
|
+
declare function Region({ children, dir, label, toaster, ...props }: RegionProps): ReactElement;
|
|
759
|
+
//#endregion
|
|
760
|
+
//#region src/toast/root.d.ts
|
|
761
|
+
/**
|
|
762
|
+
* Renders the `div` with the toast's root class.
|
|
763
|
+
*/
|
|
764
|
+
declare const Drawn$1: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
765
|
+
/**
|
|
766
|
+
* Describes the props of the root: the props of a `div`.
|
|
767
|
+
*/
|
|
768
|
+
type RootProps = ComponentProps<typeof Drawn$1>;
|
|
769
|
+
/**
|
|
770
|
+
* Renders the toast with the machine's root props merged over the caller's, between the machine's
|
|
771
|
+
* two empty elements.
|
|
772
|
+
*
|
|
773
|
+
* @param props - The props of a `div`.
|
|
774
|
+
* @returns The `div` element.
|
|
775
|
+
*/
|
|
776
|
+
declare function Root({ children, ...props }: RootProps): ReactElement;
|
|
777
|
+
//#endregion
|
|
778
|
+
//#region src/toast/title.d.ts
|
|
779
|
+
/**
|
|
780
|
+
* Renders the `div` with the toast's title class.
|
|
781
|
+
*/
|
|
782
|
+
declare const Drawn: import("@stealthscale/theme").StyledComponent<"div", {}>;
|
|
783
|
+
/**
|
|
784
|
+
* Describes the props of the title: the props of a `div`.
|
|
785
|
+
*/
|
|
786
|
+
type TitleProps = ComponentProps<typeof Drawn>;
|
|
787
|
+
/**
|
|
788
|
+
* Renders the title with the machine's title props merged over the caller's.
|
|
789
|
+
*
|
|
790
|
+
* @param props - The props of a `div`.
|
|
791
|
+
* @returns The `div` element.
|
|
792
|
+
*/
|
|
793
|
+
declare function Title(props: TitleProps): ReactElement;
|
|
794
|
+
declare namespace index_d_exports$5 {
|
|
795
|
+
export { ActionTrigger, ActionTriggerProps, CloseTrigger, CloseTriggerProps, Content, ContentProps, Description, DescriptionProps, Indicator, IndicatorProps, Region, RegionProps, Root, RootProps, Title, TitleProps, ToastOptions, Toaster, createToaster };
|
|
796
|
+
}
|
|
141
797
|
//#endregion
|
|
142
|
-
export { index_d_exports as EmptyState, type SkeletonProps, PropsProvider as SkeletonPropsProvider, type SkeletonTextProps, PropsProvider$1 as SkeletonTextPropsProvider };
|
|
798
|
+
export { index_d_exports as Alert, index_d_exports$1 as EmptyState, type LoaderOverlayProps, type LoaderPlacement, type LoaderProps, index_d_exports$2 as Meter, index_d_exports$3 as Progress, index_d_exports$4 as ProgressCircle, type SkeletonProps, PropsProvider as SkeletonPropsProvider, type SkeletonTextProps, PropsProvider$1 as SkeletonTextPropsProvider, type SpinnerProps, index_d_exports$5 as Toast };
|