@flopay/ui 1.14.2 → 1.14.3
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 +5 -2
- package/dist/annotations/index.d.cts +174 -174
- package/dist/annotations/index.d.ts +174 -174
- package/dist/email/index.d.cts +38 -40
- package/dist/email/index.d.ts +38 -40
- package/dist/index.d.cts +206 -190
- package/dist/index.d.ts +206 -190
- package/dist/marketing/index.d.cts +76 -74
- package/dist/marketing/index.d.ts +76 -74
- package/package.json +5 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
|
-
import { ClassValue } from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ClassValue } from "clsx";
|
|
2
|
+
import { ButtonHTMLAttributes, ChangeEventHandler, ComponentType, HTMLAttributes, InputHTMLAttributes, LabelHTMLAttributes, ReactNode, Ref, RefObject } from "react";
|
|
3
|
+
//#region dist/.types/cn.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Merge class names, resolving conflicting Tailwind utilities (last wins).
|
|
7
6
|
* Mirrors the helper used across the FloPay frontends so consumers can extend
|
|
8
7
|
* any primitive's classes safely.
|
|
9
8
|
*/
|
|
10
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
11
|
-
|
|
9
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region dist/.types/components/badge.d.ts
|
|
12
12
|
type BadgeVariant = 'neutral' | 'success' | 'warning' | 'danger' | 'info';
|
|
13
13
|
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
/** Render a leading status dot. */
|
|
15
|
+
dot?: boolean;
|
|
16
|
+
/** Semantic color. `neutral` is the default outlined pill. */
|
|
17
|
+
variant?: BadgeVariant;
|
|
18
18
|
}
|
|
19
19
|
/** Pill badge — neutral by default, or a semantic variant, optionally with a dot. */
|
|
20
|
-
declare function Badge({ dot, variant, className, children, ...props }: BadgeProps): react.JSX.Element;
|
|
21
|
-
|
|
20
|
+
export declare function Badge({ dot, variant, className, children, ...props }: BadgeProps): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region dist/.types/components/block-list.d.ts
|
|
22
23
|
interface BlockListItem {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
id: string;
|
|
25
|
+
/** A locked item never moves, has no handle or controls, and nothing moves past it. */
|
|
26
|
+
locked?: boolean;
|
|
26
27
|
}
|
|
27
28
|
interface BlockListProps<T extends BlockListItem = BlockListItem> {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
/** The rows, in the order shown. Ids must be unique: rows are keyed by them. */
|
|
30
|
+
items: T[];
|
|
31
|
+
renderItem: (item: T) => ReactNode;
|
|
32
|
+
/** Called once per move or delete with a new array of the caller's own item objects. */
|
|
33
|
+
onChange: (nextItems: T[]) => void;
|
|
34
|
+
className?: string;
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
37
|
* A reorderable list of blocks. Each unlocked row has a drag handle (native HTML5 drag and drop)
|
|
@@ -50,62 +51,65 @@ interface BlockListProps<T extends BlockListItem = BlockListItem> {
|
|
|
50
51
|
* a delete the next unlocked row's Delete takes it (else the nearest one before). This happens only
|
|
51
52
|
* when focus was lost to `<body>` or left on a disabled button, never when it went elsewhere.
|
|
52
53
|
*/
|
|
53
|
-
declare function BlockList<T extends BlockListItem>({ items, renderItem, onChange, className
|
|
54
|
-
|
|
54
|
+
export declare function BlockList<T extends BlockListItem>({ items, renderItem, onChange, className }: BlockListProps<T>): import("react").JSX.Element;
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region dist/.types/components/button.d.ts
|
|
55
57
|
type ButtonVariant = 'primary' | 'secondary' | 'outline';
|
|
56
58
|
type ButtonSize = 'md' | 'sm';
|
|
57
59
|
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
variant?: ButtonVariant;
|
|
61
|
+
size?: ButtonSize;
|
|
60
62
|
}
|
|
61
|
-
declare function Button({ variant, size, className, type, ...props }: ButtonProps): react.JSX.Element;
|
|
62
|
-
|
|
63
|
+
export declare function Button({ variant, size, className, type, ...props }: ButtonProps): import("react").JSX.Element;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region dist/.types/components/card.d.ts
|
|
63
66
|
type CardPadding = 'none' | 'sm' | 'md' | 'lg';
|
|
64
67
|
interface CardProps extends HTMLAttributes<HTMLDivElement> {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
68
|
+
/** Inner padding. Defaults to `md` (28px); use `none` to supply your own. */
|
|
69
|
+
padding?: CardPadding;
|
|
70
|
+
/** Add pointer cursor + hover elevation (for clickable cards). */
|
|
71
|
+
interactive?: boolean;
|
|
69
72
|
}
|
|
70
73
|
/** Bordered surface card. Static by default; opt into hover with `interactive`. */
|
|
71
|
-
declare function Card({ padding, interactive, className, ...props }: CardProps): react.JSX.Element;
|
|
72
|
-
|
|
74
|
+
export declare function Card({ padding, interactive, className, ...props }: CardProps): import("react").JSX.Element;
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region dist/.types/components/checklist.d.ts
|
|
73
77
|
interface ChecklistProps {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
/** The `ChecklistRow`s (or any list items) of the list. */
|
|
79
|
+
children?: ReactNode;
|
|
80
|
+
className?: string;
|
|
77
81
|
}
|
|
78
82
|
interface ChecklistRowProps {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
className?: string;
|
|
93
|
-
children?: ReactNode;
|
|
94
|
-
}>;
|
|
95
|
-
/** Overrides the visually hidden state wording ("Done", "Not done"). */
|
|
96
|
-
statusLabels?: {
|
|
97
|
-
done?: string;
|
|
98
|
-
notDone?: string;
|
|
99
|
-
};
|
|
83
|
+
/** Text of the row. Always rendered. */
|
|
84
|
+
label: ReactNode;
|
|
85
|
+
/** Filled tick on the `success` token when true; an empty tick otherwise. */
|
|
86
|
+
done?: boolean;
|
|
87
|
+
/** Optional text on the right of the row. */
|
|
88
|
+
status?: ReactNode;
|
|
89
|
+
/** Shows an "Optional" tag next to the label. */
|
|
90
|
+
optional?: boolean;
|
|
91
|
+
/** Makes the whole row a single link. */
|
|
92
|
+
href?: string;
|
|
93
|
+
/** Component used for the link (default `a`), e.g. `next/link`. Receives `href`, `className` and the row content. */
|
|
94
|
+
linkAs?: ComponentType<{
|
|
95
|
+
href: string;
|
|
100
96
|
className?: string;
|
|
97
|
+
children?: ReactNode;
|
|
98
|
+
}>;
|
|
99
|
+
/** Overrides the visually hidden state wording ("Done", "Not done"). */
|
|
100
|
+
statusLabels?: {
|
|
101
|
+
done?: string;
|
|
102
|
+
notDone?: string;
|
|
103
|
+
};
|
|
104
|
+
className?: string;
|
|
101
105
|
}
|
|
102
106
|
interface ChecklistSkeletonProps {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
/** Number of placeholder rows. Defaults to 3. */
|
|
108
|
+
rows?: number;
|
|
109
|
+
className?: string;
|
|
106
110
|
}
|
|
107
111
|
/** A vertical tick list, e.g. a setup checklist. Its children are `ChecklistRow`s. */
|
|
108
|
-
declare function Checklist({ children, className }: ChecklistProps): react.JSX.Element;
|
|
112
|
+
export declare function Checklist({ children, className }: ChecklistProps): import("react").JSX.Element;
|
|
109
113
|
/**
|
|
110
114
|
* One row of a `Checklist`: a tick (filled on the `success` token when `done`, empty otherwise),
|
|
111
115
|
* the label, an optional neutral "Optional" `Badge` and optional `status` text on the right. The
|
|
@@ -114,44 +118,46 @@ declare function Checklist({ children, className }: ChecklistProps): react.JSX.E
|
|
|
114
118
|
* link, rendered as `<a>` or through `linkAs` (e.g. `next/link`) so the package never imports a
|
|
115
119
|
* router.
|
|
116
120
|
*/
|
|
117
|
-
declare function ChecklistRow({ label, done, status, optional, href, linkAs, statusLabels, className
|
|
121
|
+
export declare function ChecklistRow({ label, done, status, optional, href, linkAs, statusLabels, className }: ChecklistRowProps): import("react").JSX.Element;
|
|
118
122
|
/**
|
|
119
123
|
* Loading form of a `Checklist`: `rows` placeholder rows (3 by default) on the `bg-muted` token,
|
|
120
124
|
* inside a `role="status"` region named by visually hidden "Loading" text. The placeholders are
|
|
121
125
|
* hidden from assistive tech.
|
|
122
126
|
*/
|
|
123
|
-
declare function ChecklistSkeleton({ rows, className }: ChecklistSkeletonProps): react.JSX.Element;
|
|
124
|
-
|
|
127
|
+
export declare function ChecklistSkeleton({ rows, className }: ChecklistSkeletonProps): import("react").JSX.Element;
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region dist/.types/components/code-area.d.ts
|
|
125
130
|
interface CodeAreaProps {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
131
|
+
label: ReactNode;
|
|
132
|
+
hint?: ReactNode;
|
|
133
|
+
error?: ReactNode;
|
|
134
|
+
value?: string;
|
|
135
|
+
defaultValue?: string;
|
|
136
|
+
onChange?: ChangeEventHandler<HTMLTextAreaElement>;
|
|
137
|
+
/** Ref to the underlying textarea (the target a `VariablePicker` attaches to). */
|
|
138
|
+
ref?: Ref<HTMLTextAreaElement>;
|
|
139
|
+
id?: string;
|
|
140
|
+
name?: string;
|
|
141
|
+
className?: string;
|
|
137
142
|
}
|
|
138
143
|
/**
|
|
139
144
|
* Labelled monospace textarea for custom HTML / Liquid source. No editor dependency (CTO decision
|
|
140
145
|
* 1): spellcheck, autocapitalize, autocomplete and soft wrapping are off, and Tab keeps its normal
|
|
141
146
|
* job of moving focus, so the field never traps keyboard users.
|
|
142
147
|
*/
|
|
143
|
-
declare function CodeArea({ label, hint, error, value, defaultValue, onChange, ref, id, name, className
|
|
144
|
-
|
|
148
|
+
export declare function CodeArea({ label, hint, error, value, defaultValue, onChange, ref, id, name, className }: CodeAreaProps): import("react").JSX.Element;
|
|
149
|
+
//#endregion
|
|
150
|
+
//#region dist/.types/components/confirm-dialog.d.ts
|
|
145
151
|
interface ConfirmDialogProps {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
open: boolean;
|
|
153
|
+
title: ReactNode;
|
|
154
|
+
description: ReactNode;
|
|
155
|
+
confirmLabel: string;
|
|
156
|
+
cancelLabel: string;
|
|
157
|
+
onConfirm: () => void;
|
|
158
|
+
onCancel: () => void;
|
|
159
|
+
/** While true both buttons are disabled and the Escape / backdrop cancel paths are ignored. */
|
|
160
|
+
confirming?: boolean;
|
|
155
161
|
}
|
|
156
162
|
/**
|
|
157
163
|
* A confirm/cancel alert dialog (WAI-ARIA alertdialog pattern), rendered in place as a fixed backdrop
|
|
@@ -166,53 +172,57 @@ interface ConfirmDialogProps {
|
|
|
166
172
|
* dismissed; focus moves to the panel rather than dropping to the page. The wording is the caller's:
|
|
167
173
|
* `confirmLabel` and `cancelLabel` have no defaults.
|
|
168
174
|
*/
|
|
169
|
-
declare function ConfirmDialog({ open, ...props }: ConfirmDialogProps): react.JSX.Element | null;
|
|
170
|
-
|
|
175
|
+
export declare function ConfirmDialog({ open, ...props }: ConfirmDialogProps): import("react").JSX.Element | null;
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region dist/.types/components/container.d.ts
|
|
171
178
|
type ContainerProps = HTMLAttributes<HTMLDivElement>;
|
|
172
179
|
/** Centered, max-width content wrapper (var(--max-w)) with horizontal padding. */
|
|
173
|
-
declare function Container({ className, ...props }: ContainerProps): react.JSX.Element;
|
|
174
|
-
|
|
180
|
+
export declare function Container({ className, ...props }: ContainerProps): import("react").JSX.Element;
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region dist/.types/components/feedback.d.ts
|
|
175
183
|
interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
176
|
-
|
|
177
|
-
|
|
184
|
+
/** Wrap in a centered, padded block (for loading states in a panel). */
|
|
185
|
+
center?: boolean;
|
|
178
186
|
}
|
|
179
187
|
/** Brand-colored loading spinner. */
|
|
180
|
-
declare function Spinner({ center, className, ...props }: SpinnerProps): react.JSX.Element;
|
|
188
|
+
export declare function Spinner({ center, className, ...props }: SpinnerProps): import("react").JSX.Element;
|
|
181
189
|
interface EmptyStateProps {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
190
|
+
title: ReactNode;
|
|
191
|
+
description?: ReactNode;
|
|
192
|
+
/** Optional icon rendered in the circular badge above the title. */
|
|
193
|
+
icon?: ReactNode;
|
|
194
|
+
className?: string;
|
|
187
195
|
}
|
|
188
196
|
/** Centered "nothing here yet" placeholder for empty lists/tables. */
|
|
189
|
-
declare function EmptyState({ title, description, icon, className }: EmptyStateProps): react.JSX.Element;
|
|
190
|
-
|
|
197
|
+
export declare function EmptyState({ title, description, icon, className }: EmptyStateProps): import("react").JSX.Element;
|
|
198
|
+
//#endregion
|
|
199
|
+
//#region dist/.types/components/field.d.ts
|
|
191
200
|
type InputProps = InputHTMLAttributes<HTMLInputElement>;
|
|
192
201
|
/** Token-aligned text input (the `.field` look: border, surface, brand focus ring). */
|
|
193
|
-
declare function Input({ className, ...props }: InputProps): react.JSX.Element;
|
|
202
|
+
export declare function Input({ className, ...props }: InputProps): import("react").JSX.Element;
|
|
194
203
|
type LabelProps = LabelHTMLAttributes<HTMLLabelElement>;
|
|
195
|
-
declare function Label({ className, ...props }: LabelProps): react.JSX.Element;
|
|
204
|
+
export declare function Label({ className, ...props }: LabelProps): import("react").JSX.Element;
|
|
196
205
|
interface FieldProps {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
+
label?: ReactNode;
|
|
207
|
+
/** Helper text shown below the control (hidden when `error` is set). */
|
|
208
|
+
hint?: ReactNode;
|
|
209
|
+
/** Error text shown below the control (takes precedence over `hint`). */
|
|
210
|
+
error?: ReactNode;
|
|
211
|
+
/** `htmlFor` for the label, matching the control's id. */
|
|
212
|
+
htmlFor?: string;
|
|
213
|
+
className?: string;
|
|
214
|
+
children: ReactNode;
|
|
206
215
|
}
|
|
207
216
|
/** Labelled field wrapper: optional label above and hint/error below the control. */
|
|
208
|
-
declare function Field({ label, hint, error, htmlFor, className, children }: FieldProps): react.JSX.Element;
|
|
209
|
-
|
|
217
|
+
export declare function Field({ label, hint, error, htmlFor, className, children }: FieldProps): import("react").JSX.Element;
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region dist/.types/components/preview-frame.d.ts
|
|
210
220
|
interface PreviewFrameProps {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
221
|
+
/** HTML shown inside the isolated frame. */
|
|
222
|
+
html: string;
|
|
223
|
+
/** Accessible title of the iframe. */
|
|
224
|
+
title: string;
|
|
225
|
+
className?: string;
|
|
216
226
|
}
|
|
217
227
|
/**
|
|
218
228
|
* Container that previews client-authored email HTML in an iframe. The HTML goes in `srcdoc` and
|
|
@@ -220,78 +230,82 @@ interface PreviewFrameProps {
|
|
|
220
230
|
* same-origin access, so a preview can never reach the dashboard session. Size it through
|
|
221
231
|
* `className` on the container; the frame fills it.
|
|
222
232
|
*/
|
|
223
|
-
declare function PreviewFrame({ html, title, className }: PreviewFrameProps): react.JSX.Element;
|
|
224
|
-
|
|
233
|
+
export declare function PreviewFrame({ html, title, className }: PreviewFrameProps): import("react").JSX.Element;
|
|
234
|
+
//#endregion
|
|
235
|
+
//#region dist/.types/components/section.d.ts
|
|
225
236
|
type SectionProps = HTMLAttributes<HTMLElement>;
|
|
226
237
|
/** Vertical page section with max-width and standard padding. */
|
|
227
|
-
declare function Section({ className, ...props }: SectionProps): react.JSX.Element;
|
|
238
|
+
export declare function Section({ className, ...props }: SectionProps): import("react").JSX.Element;
|
|
228
239
|
interface SectionHeaderProps {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
240
|
+
/** Small eyebrow label above the title (brand colored). */
|
|
241
|
+
label?: ReactNode;
|
|
242
|
+
title: ReactNode;
|
|
243
|
+
description?: ReactNode;
|
|
244
|
+
className?: string;
|
|
234
245
|
}
|
|
235
246
|
/** Centered section heading: optional label, title, optional description. */
|
|
236
|
-
declare function SectionHeader({ label, title, description, className }: SectionHeaderProps): react.JSX.Element;
|
|
237
|
-
|
|
247
|
+
export declare function SectionHeader({ label, title, description, className }: SectionHeaderProps): import("react").JSX.Element;
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region dist/.types/components/select.d.ts
|
|
238
250
|
interface SelectOption {
|
|
239
|
-
|
|
240
|
-
|
|
251
|
+
value: string;
|
|
252
|
+
label: string;
|
|
241
253
|
}
|
|
242
254
|
interface SelectProps {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
255
|
+
id: string;
|
|
256
|
+
label: ReactNode;
|
|
257
|
+
/** The selected option's value. Controlled: the component keeps no state of its own. */
|
|
258
|
+
value: string;
|
|
259
|
+
options: SelectOption[];
|
|
260
|
+
/** Called with the chosen option's value (a string, not the change event). */
|
|
261
|
+
onChange: (value: string) => void;
|
|
262
|
+
disabled?: boolean;
|
|
263
|
+
name?: string;
|
|
252
264
|
}
|
|
253
265
|
/**
|
|
254
266
|
* Labelled native `<select>` in the `Field` pattern: a `field-group` wrapper, a `field-label`
|
|
255
267
|
* linked through `htmlFor`, then the select with the `.field` look plus `.field-select`. It stays
|
|
256
268
|
* a native control, so keyboard operation and the platform chevron come from the browser.
|
|
257
269
|
*/
|
|
258
|
-
declare function Select({ id, label, value, options, onChange, disabled, name }: SelectProps): react.JSX.Element;
|
|
259
|
-
|
|
270
|
+
export declare function Select({ id, label, value, options, onChange, disabled, name }: SelectProps): import("react").JSX.Element;
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region dist/.types/components/slot-text-field.d.ts
|
|
260
273
|
interface SlotTextFieldProps {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
label: ReactNode;
|
|
275
|
+
/** Helper text (hidden when `error` is set), as in `Field`. */
|
|
276
|
+
hint?: ReactNode;
|
|
277
|
+
/** Error text (takes precedence over `hint`), as in `Field`. */
|
|
278
|
+
error?: ReactNode;
|
|
279
|
+
/** Render a textarea instead of a single-line input. */
|
|
280
|
+
multiline?: boolean;
|
|
281
|
+
value?: string;
|
|
282
|
+
defaultValue?: string;
|
|
283
|
+
onChange?: ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement>;
|
|
284
|
+
/** Ref to the underlying input / textarea (the target a `VariablePicker` attaches to). */
|
|
285
|
+
ref?: Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
286
|
+
id?: string;
|
|
287
|
+
name?: string;
|
|
288
|
+
className?: string;
|
|
276
289
|
}
|
|
277
290
|
/**
|
|
278
291
|
* Labelled text field for an email slot, with a Bold / Italic / Link toolbar that writes only the
|
|
279
292
|
* Markdown-lite subset. Single-line by default; `multiline` renders a textarea. Typed text reaches
|
|
280
293
|
* `onChange` unchanged, and toolbar edits fire `onChange` too, so controlled parents stay in sync.
|
|
281
294
|
*/
|
|
282
|
-
declare function SlotTextField({ label, hint, error, multiline, value, defaultValue, onChange, ref, id, name, className
|
|
283
|
-
|
|
295
|
+
export declare function SlotTextField({ label, hint, error, multiline, value, defaultValue, onChange, ref, id, name, className }: SlotTextFieldProps): import("react").JSX.Element;
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region dist/.types/components/step-indicator.d.ts
|
|
284
298
|
type StepStatus = 'done' | 'current' | 'upcoming';
|
|
285
299
|
interface StepIndicatorStep {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
300
|
+
label: ReactNode;
|
|
301
|
+
/** Passed by the caller; the component never works the state out itself. */
|
|
302
|
+
status: StepStatus;
|
|
289
303
|
}
|
|
290
304
|
interface StepIndicatorProps {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
305
|
+
steps: StepIndicatorStep[];
|
|
306
|
+
/** Overrides the visually hidden state wording ("Done", "Current", "Upcoming"). */
|
|
307
|
+
statusLabels?: Partial<Record<StepStatus, string>>;
|
|
308
|
+
className?: string;
|
|
295
309
|
}
|
|
296
310
|
/**
|
|
297
311
|
* Wizard progress as an ordered list, one item per step in the given order. Each step's `status`
|
|
@@ -299,20 +313,21 @@ interface StepIndicatorProps {
|
|
|
299
313
|
* `aria-current="step"`, and every step says its state in visually hidden text ("Done",
|
|
300
314
|
* "Current", "Upcoming", or `statusLabels`), so the state is never conveyed by colour alone.
|
|
301
315
|
*/
|
|
302
|
-
declare function StepIndicator({ steps, statusLabels, className }: StepIndicatorProps): react.JSX.Element;
|
|
303
|
-
|
|
316
|
+
export declare function StepIndicator({ steps, statusLabels, className }: StepIndicatorProps): import("react").JSX.Element;
|
|
317
|
+
//#endregion
|
|
318
|
+
//#region dist/.types/components/switch.d.ts
|
|
304
319
|
interface SwitchProps {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
320
|
+
/** Accessible name of the switch. Always rendered; `labelHidden` only hides it visually. */
|
|
321
|
+
label: ReactNode;
|
|
322
|
+
labelHidden?: boolean;
|
|
323
|
+
checked?: boolean;
|
|
324
|
+
defaultChecked?: boolean;
|
|
325
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
326
|
+
disabled?: boolean;
|
|
327
|
+
loading?: boolean;
|
|
328
|
+
id?: string;
|
|
329
|
+
name?: string;
|
|
330
|
+
className?: string;
|
|
316
331
|
}
|
|
317
332
|
/**
|
|
318
333
|
* On/off switch: a native `<button role="switch">` (WAI-ARIA switch pattern), so Tab, Space and
|
|
@@ -323,16 +338,17 @@ interface SwitchProps {
|
|
|
323
338
|
* With `name`, a checked switch submits `name=on` in a form, as a checkbox does; like a disabled
|
|
324
339
|
* checkbox, a disabled switch submits nothing.
|
|
325
340
|
*/
|
|
326
|
-
declare function Switch({ label, labelHidden, checked, defaultChecked, onCheckedChange, disabled, loading, id, name, className
|
|
327
|
-
|
|
341
|
+
export declare function Switch({ label, labelHidden, checked, defaultChecked, onCheckedChange, disabled, loading, id, name, className }: SwitchProps): import("react").JSX.Element;
|
|
342
|
+
//#endregion
|
|
343
|
+
//#region dist/.types/components/variable-picker.d.ts
|
|
328
344
|
interface VariablePickerProps {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
345
|
+
variables: ReadonlyArray<{
|
|
346
|
+
name: string;
|
|
347
|
+
label: string;
|
|
348
|
+
}>;
|
|
349
|
+
/** The `SlotTextField` / `CodeArea` control the chosen `{{ name }}` token is inserted into. */
|
|
350
|
+
targetRef: RefObject<HTMLInputElement | HTMLTextAreaElement | null>;
|
|
351
|
+
className?: string;
|
|
336
352
|
}
|
|
337
353
|
/**
|
|
338
354
|
* "Insert variable" menu button (WAI-ARIA menu-button pattern) for a `SlotTextField` or `CodeArea`.
|
|
@@ -340,6 +356,6 @@ interface VariablePickerProps {
|
|
|
340
356
|
* target never had focus), fires the target's change handler and returns focus to the target with
|
|
341
357
|
* the cursor after the token. The variable list is a prop; the picker fetches nothing.
|
|
342
358
|
*/
|
|
343
|
-
declare function VariablePicker({ variables, targetRef, className }: VariablePickerProps): react.JSX.Element;
|
|
344
|
-
|
|
345
|
-
export {
|
|
359
|
+
export declare function VariablePicker({ variables, targetRef, className }: VariablePickerProps): import("react").JSX.Element;
|
|
360
|
+
//#endregion
|
|
361
|
+
export type { BadgeProps, BadgeVariant, BlockListItem, BlockListProps, ButtonProps, ButtonSize, ButtonVariant, CardPadding, CardProps, ChecklistProps, ChecklistRowProps, ChecklistSkeletonProps, CodeAreaProps, ConfirmDialogProps, ContainerProps, EmptyStateProps, FieldProps, InputProps, LabelProps, PreviewFrameProps, SectionHeaderProps, SectionProps, SelectOption, SelectProps, SlotTextFieldProps, SpinnerProps, StepIndicatorProps, StepIndicatorStep, StepStatus, SwitchProps, VariablePickerProps };
|