@platned/ui 0.9.8 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -107,23 +107,24 @@ declare function AvatarBlock({ children, title, description, className }: Avatar
107
107
 
108
108
  type InputSize = 'lg' | 'md' | 'sm';
109
109
  interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
110
- label?: string;
111
- description?: string;
112
- /** Red border + message shown below the input. Also sets `aria-invalid`. */
113
- error?: string;
114
- /** Neutral helper text shown below the input (hidden when error is set) */
115
- hint?: string;
116
110
  size?: InputSize;
111
+ /** Red border and `aria-invalid`. Inside a `Field`, a `FieldError` with a message sets this. */
112
+ invalid?: boolean;
117
113
  leadingIcon?: ReactNode;
118
114
  trailingIcon?: ReactNode;
119
115
  /** Interactive trailing slot (e.g. a show/hide password button) — unlike
120
116
  * `trailingIcon` it receives pointer events. */
121
117
  trailingAction?: ReactNode;
122
118
  }
119
+ /**
120
+ * A text input with optional icons. Bare from 0.10.0: it has no label, hint or error of its
121
+ * own. Put it in a `Field` with a `FieldLabel` (and `FieldHint` / `FieldError`), or give it
122
+ * an `aria-label`. `className` sets the layout of the whole control, icons included.
123
+ */
123
124
  declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
124
125
  /**
125
- * The bare `<input>` with the field wiring applied and no label/message chrome — for
126
- * `InputGroup` and any composition that supplies its own `Field`.
126
+ * The plain `<input>` element with the field wiring and no icon slots — for `InputGroup` and
127
+ * compositions that place their own adornments. `Input` is built on it.
127
128
  */
128
129
  interface InputControlProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
129
130
  size?: InputSize;
@@ -167,6 +168,7 @@ interface FieldContextValue {
167
168
  descriptionId: string;
168
169
  errorId: string;
169
170
  hintId: string;
171
+ /** Whether a `FieldDescription` / `FieldError` / `FieldHint` is showing. The parts report it. */
170
172
  hasDescription: boolean;
171
173
  hasError: boolean;
172
174
  hasHint: boolean;
@@ -174,7 +176,10 @@ interface FieldContextValue {
174
176
  required: boolean;
175
177
  disabled: boolean;
176
178
  size: InputSize;
179
+ /** Used by the message parts to tell the field they are showing. Returns the unregister. */
180
+ register: (part: FieldPart) => () => void;
177
181
  }
182
+ type FieldPart = 'description' | 'error' | 'hint';
178
183
  declare function useFieldContext(): FieldContextValue | null;
179
184
  /**
180
185
  * Props for the control itself. Spread onto the `<input>`/`<select>`/`<textarea>`.
@@ -195,34 +200,54 @@ interface FieldProps extends HTMLAttributes<HTMLDivElement> {
195
200
  children: ReactNode;
196
201
  /** Supply to control the id yourself; otherwise one is generated. */
197
202
  id?: string;
203
+ /** Default: the enclosing container's control size, else `md`. */
198
204
  size?: InputSize;
205
+ /** Marks the control invalid without a message. A `FieldError` with a message does this by itself. */
199
206
  invalid?: boolean;
200
207
  required?: boolean;
201
208
  disabled?: boolean;
202
209
  /** `horizontal` puts the label beside the control — for switches and checkboxes. */
203
210
  orientation?: FieldOrientation;
204
- /** Set when a `FieldDescription` is rendered. Inferred by the wrapped controls. */
205
- hasDescription?: boolean;
206
- hasError?: boolean;
207
- hasHint?: boolean;
208
211
  }
209
- declare function Field({ children, id, size, invalid, required, disabled, orientation, hasDescription, hasError, hasHint, className, ...rest }: FieldProps): react.JSX.Element;
212
+ /**
213
+ * One form field: a label, a control and its messages, wired for assistive tech.
214
+ *
215
+ * From 0.10.0 this is the only place a field's text lives. The controls (`Input`, `Textarea`,
216
+ * `Select`, `NativeSelect`, `TagInput`, `DatePicker`) are bare, the way shadcn/ui, Chakra and
217
+ * Fluent split them, and the form decides which message to show:
218
+ *
219
+ * ```tsx
220
+ * <Field required>
221
+ * <FieldLabel>Email</FieldLabel>
222
+ * <Input type="email" value={email} onChange={…} />
223
+ * <FieldHint>We send the invite here.</FieldHint>
224
+ * <FieldError>{error}</FieldError>
225
+ * </Field>
226
+ * ```
227
+ *
228
+ * The parts report themselves, so there are no flags to keep in step: a `FieldError` with a
229
+ * message marks the control `aria-invalid` and describes it, an empty one renders nothing, and
230
+ * a `FieldHint` steps aside while an error shows.
231
+ */
232
+ declare function Field({ children, id, size: sizeProp, invalid, required, disabled, orientation, className, ...rest }: FieldProps): react.JSX.Element;
210
233
  interface FieldLabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
211
234
  children: ReactNode;
212
235
  }
213
236
  declare function FieldLabel({ children, className, htmlFor, ...rest }: FieldLabelProps): react.JSX.Element;
214
237
  interface FieldTextProps extends HTMLAttributes<HTMLParagraphElement> {
215
- children: ReactNode;
238
+ children?: ReactNode;
216
239
  }
217
- /** Persistent guidance, shown above the control and announced with it. */
218
- declare function FieldDescription({ children, className, ...rest }: FieldTextProps): react.JSX.Element;
240
+ /** Persistent guidance, shown above the control and announced with it. Renders nothing when empty. */
241
+ declare function FieldDescription({ children, className, ...rest }: FieldTextProps): react.JSX.Element | null;
219
242
  /**
220
- * Validation message. `role="alert"` because an error that appears after submit —
221
- * asynchronously, without focus moving — is otherwise never announced at all.
243
+ * Validation message. Renders nothing when empty, so `<FieldError>{error}</FieldError>` can
244
+ * always be rendered; with a message it marks the control invalid and describes it.
245
+ * `role="alert"` because an error that appears after submit — asynchronously, without focus
246
+ * moving — is otherwise never announced at all.
222
247
  */
223
- declare function FieldError({ children, className, ...rest }: FieldTextProps): react.JSX.Element;
224
- /** Neutral helper text. Suppressed while an error is showing, so the two never stack. */
225
- declare function FieldHint({ children, className, ...rest }: FieldTextProps): react.JSX.Element;
248
+ declare function FieldError({ children, className, ...rest }: FieldTextProps): react.JSX.Element | null;
249
+ /** Neutral helper text below the control. Hidden while a `FieldError` shows, so the two never stack. */
250
+ declare function FieldHint({ children, className, ...rest }: FieldTextProps): react.JSX.Element | null;
226
251
  interface FieldGroupProps extends HTMLAttributes<HTMLDivElement> {
227
252
  children: ReactNode;
228
253
  }
@@ -260,20 +285,19 @@ declare function ControlSizeProvider({ size, children }: ControlSizeProviderProp
260
285
  declare function useControlSize(explicit?: InputSize): InputSize;
261
286
 
262
287
  interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
263
- label?: string;
264
- description?: string;
265
- /** Red border + message shown below the control. Also sets `aria-invalid`. */
266
- error?: string;
267
- hint?: string;
268
- size?: InputSize;
269
- }
270
- declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
271
- interface TextareaControlProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
272
288
  size?: InputSize;
289
+ /** Red border and `aria-invalid`. Inside a `Field`, a `FieldError` with a message sets this. */
273
290
  invalid?: boolean;
274
291
  }
275
- /** The bare `<textarea>` with field wiring, for compositions that supply their own `Field`. */
276
- declare const TextareaControl: react.ForwardRefExoticComponent<TextareaControlProps & react.RefAttributes<HTMLTextAreaElement>>;
292
+ /**
293
+ * A multi-line text input. Bare from 0.10.0: no label, hint or error of its own. Put it in a
294
+ * `Field` with a `FieldLabel` (and `FieldHint` / `FieldError`), or give it an `aria-label`.
295
+ */
296
+ declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
297
+ /** @deprecated Since 0.10.0 `Textarea` is the bare control. Use `Textarea`. */
298
+ declare const TextareaControl: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
299
+ /** @deprecated Since 0.10.0. Use `TextareaProps`. */
300
+ type TextareaControlProps = TextareaProps;
277
301
 
278
302
  interface SelectOption {
279
303
  value: string;
@@ -284,7 +308,7 @@ interface SelectOptionGroup {
284
308
  label: string;
285
309
  options: SelectOption[];
286
310
  }
287
- interface SelectControlProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'defaultValue' | 'onChange' | 'children' | 'type'> {
311
+ interface SelectProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'defaultValue' | 'onChange' | 'children' | 'type'> {
288
312
  /** Flat options, or groups which render as a labelled `role="group"`. */
289
313
  options: (SelectOption | SelectOptionGroup)[];
290
314
  value?: string | null;
@@ -297,21 +321,11 @@ interface SelectControlProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement
297
321
  */
298
322
  name?: string;
299
323
  size?: InputSize;
324
+ /** Red border and `aria-invalid`. Inside a `Field`, a `FieldError` with a message sets this. */
300
325
  invalid?: boolean;
301
- placeholder?: string;
302
- }
303
- /**
304
- * The bare trigger and its listbox, with field wiring and no label/message chrome — for
305
- * `Select` and any composition that supplies its own `Field`.
306
- */
307
- declare const SelectControl: react.ForwardRefExoticComponent<SelectControlProps & react.RefAttributes<HTMLButtonElement>>;
308
- interface SelectProps extends SelectControlProps {
309
- label?: string;
310
- description?: string;
311
- /** Red border + message shown below the control. Also sets `aria-invalid`. */
312
- error?: string;
313
- hint?: string;
326
+ /** Blocks submit while empty (with `name`). Inside a `Field`, `Field required` sets this. */
314
327
  required?: boolean;
328
+ placeholder?: string;
315
329
  }
316
330
  /**
317
331
  * Single-select dropdown: a trigger and a portalled listbox.
@@ -337,10 +351,17 @@ interface SelectProps extends SelectControlProps {
337
351
  * every consumer's test suite.
338
352
  *
339
353
  * For a list long enough to need filtering, use `Combobox`.
354
+ *
355
+ * Bare from 0.10.0: no label, hint or error of its own. Put it in a `Field` with a
356
+ * `FieldLabel`, or give it an `aria-label`.
340
357
  */
341
358
  declare const Select: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
359
+ /** @deprecated Since 0.10.0 `Select` is the bare control. Use `Select`. */
360
+ declare const SelectControl: react.ForwardRefExoticComponent<SelectProps & react.RefAttributes<HTMLButtonElement>>;
361
+ /** @deprecated Since 0.10.0. Use `SelectProps`. */
362
+ type SelectControlProps = SelectProps;
342
363
 
343
- interface NativeSelectControlProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size' | 'children'> {
364
+ interface NativeSelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size' | 'children'> {
344
365
  /**
345
366
  * Flat options, or groups, which render as `<optgroup>`. The same types as `Select`, so
346
367
  * moving a field between the two is a rename. Pass `children` instead for hand-written
@@ -349,6 +370,7 @@ interface NativeSelectControlProps extends Omit<SelectHTMLAttributes<HTMLSelectE
349
370
  options?: (SelectOption | SelectOptionGroup)[];
350
371
  children?: ReactNode;
351
372
  size?: InputSize;
373
+ /** Red border and `aria-invalid`. Inside a `Field`, a `FieldError` with a message sets this. */
352
374
  invalid?: boolean;
353
375
  /**
354
376
  * A first, disabled `<option value="">`, shown in the muted placeholder colour while it is
@@ -359,20 +381,7 @@ interface NativeSelectControlProps extends Omit<SelectHTMLAttributes<HTMLSelectE
359
381
  placeholder?: string;
360
382
  }
361
383
  /**
362
- * The bare native `<select>` with field wiring and no label/message chrome, for `NativeSelect`
363
- * and any composition that supplies its own `Field`, e.g. a label with markup in it.
364
- */
365
- declare const NativeSelectControl: react.ForwardRefExoticComponent<NativeSelectControlProps & react.RefAttributes<HTMLSelectElement>>;
366
- interface NativeSelectProps extends NativeSelectControlProps {
367
- label?: string;
368
- description?: string;
369
- /** Red border + message shown below the control. Also sets `aria-invalid`. */
370
- error?: string;
371
- hint?: string;
372
- required?: boolean;
373
- }
374
- /**
375
- * A single-select field on the browser's own `<select>`, styled like `Select`.
384
+ * A single-select control on the browser's own `<select>`, styled like `Select`.
376
385
  *
377
386
  * Use it for form fields, and anywhere on a phone: the OS draws the picker (the iOS wheel, the
378
387
  * Android sheet), it is fast with long lists, and it submits and validates as any form control
@@ -382,18 +391,20 @@ interface NativeSelectProps extends NativeSelectControlProps {
382
391
  *
383
392
  * `onChange` is the native event (`event.target.value`), not `onValueChange`. The trade is
384
393
  * the one every native select makes: the open list can't be styled.
394
+ *
395
+ * Bare from 0.10.0: no label, hint or error of its own. Put it in a `Field` with a
396
+ * `FieldLabel`, or give it an `aria-label`.
385
397
  */
386
398
  declare const NativeSelect: react.ForwardRefExoticComponent<NativeSelectProps & react.RefAttributes<HTMLSelectElement>>;
399
+ /** @deprecated Since 0.10.0 `NativeSelect` is the bare control. Use `NativeSelect`. */
400
+ declare const NativeSelectControl: react.ForwardRefExoticComponent<NativeSelectProps & react.RefAttributes<HTMLSelectElement>>;
401
+ /** @deprecated Since 0.10.0. Use `NativeSelectProps`. */
402
+ type NativeSelectControlProps = NativeSelectProps;
387
403
 
388
404
  interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'value' | 'defaultValue'> {
389
- label?: string;
390
- /** Guidance above the control. A `ReactNode` from 0.9.8, e.g. with a link. */
391
- description?: ReactNode;
392
- /** Red border + message shown below the control. Also sets `aria-invalid`. */
393
- error?: string;
394
- /** Help below the control. A `ReactNode` from 0.9.8, e.g. with a button. */
395
- hint?: ReactNode;
396
405
  size?: InputSize;
406
+ /** Red border and `aria-invalid`. Inside a `Field`, a `FieldError` with a message sets this. */
407
+ invalid?: boolean;
397
408
  /** The selected date as an ISO `YYYY-MM-DD` string, `''` for none. Controlled. */
398
409
  value?: string;
399
410
  /** Initial ISO date when uncontrolled. */
@@ -431,6 +442,8 @@ interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 's
431
442
  * closes the popover and returns focus to the trigger; Escape closes it without a change.
432
443
  * - The month and year selects (`captionLayout="dropdown"`, the default) reach a far-away date
433
444
  * in two choices instead of a PageUp per month.
445
+ * - Bare from 0.10.0: no label, hint or error of its own. Put it in a `Field` with a
446
+ * `FieldLabel`, or give it an `aria-label`. The calendar dialog takes its name from either.
434
447
  * - A real, invisible `<input type="date">` keeps the old contract: it carries `name`, `value`,
435
448
  * `min`, `max` and `required` for forms and native validation, the forwarded ref points at
436
449
  * it, and `onChange` receives its genuine change event. When validation focuses it, focus is
@@ -720,11 +733,9 @@ type TagInputParseResult = {
720
733
  error: string;
721
734
  };
722
735
  interface TagInputProps {
723
- label?: string;
724
- hint?: string;
725
- /** An error from outside (e.g. the server). Takes precedence over a parse error. */
726
- error?: string;
727
736
  placeholder?: string;
737
+ /** Red border and `aria-invalid`. Inside a `Field`, a `FieldError` with a message sets this. */
738
+ invalid?: boolean;
728
739
  disabled?: boolean;
729
740
  required?: boolean;
730
741
  /** The committed chips, controlled. */
@@ -742,7 +753,13 @@ interface TagInputProps {
742
753
  maxTags?: number;
743
754
  /** Told whenever rejected text is sitting in the field, so a form can block saving. */
744
755
  onInvalidChange?: (invalid: boolean) => void;
745
- id?: string;
756
+ /**
757
+ * Why the text in the field was rejected (`parse`'s error, or the `maxTags` limit), and
758
+ * `null` once it is fixed or cleared. Show it in the `FieldError`: the control has no
759
+ * message of its own from 0.10.0.
760
+ */
761
+ onParseError?: (error: string | null) => void;
762
+ 'aria-label'?: string;
746
763
  className?: string;
747
764
  }
748
765
  /**
@@ -757,10 +774,10 @@ interface TagInputProps {
757
774
  * the last chip. Duplicates are ignored. A token `parse` rejects stays in the field with its error
758
775
  * rather than being dropped, so nothing the user typed silently disappears.
759
776
  *
760
- * Wired through `Field` like the other text fields: the label names the input, and the error or
761
- * hint describes it.
777
+ * Bare from 0.10.0, like the other text fields: no label, hint or error of its own. Put it in
778
+ * a `Field` with a `FieldLabel`, and show `onParseError`'s message in its `FieldError`.
762
779
  */
763
- declare function TagInput({ label, hint, error, required, disabled, id, className, ...rest }: TagInputProps): react.JSX.Element;
780
+ declare function TagInput(props: TagInputProps): react.JSX.Element;
764
781
 
765
782
  declare function FormCard({ children, className, }: {
766
783
  children: ReactNode;
@@ -941,47 +958,46 @@ interface SegmentedControlProps {
941
958
  */
942
959
  declare function SegmentedControl({ options, value: valueProp, defaultValue, onValueChange, label, className, }: SegmentedControlProps): react.JSX.Element;
943
960
 
944
- /** The values a `DynamicForm` holds, by field name. */
945
- type DynamicFormValues = Record<string, unknown>;
961
+ /** The values a `Form` holds, by field name. */
962
+ type FormValues = Record<string, unknown>;
946
963
  /**
947
- * What `onSubmit` returns. `ok: false` keeps the form open with what it typed and shows
948
- * `fieldErrors` against their fields (keys are field names, or `list.0.item` paths for a row of
949
- * a `list` field) and `error` above the form. Extra properties are ignored, so a result such as
950
- * `{ ok: true, company }` or `{ ok: false, error, fieldErrors, blockers }` can be returned as is.
951
- * Returning nothing counts as success.
964
+ * What `onSubmit` returns: whether the save went through. Only `ok` is read. On `ok: true` the
965
+ * form takes the saved values as its new starting point (no longer dirty); on `ok: false` it
966
+ * stays as it is, with what was typed. The form shows no save error itself: anything the save
967
+ * refuses is the page's to show, in a toast or an alert outside the form. Extra properties are
968
+ * ignored, so a result such as `{ ok: false, error }` can be returned as is. Returning nothing
969
+ * counts as success.
952
970
  */
953
- type DynamicFormResult = {
954
- ok: true;
955
- } | {
956
- ok: false;
957
- error?: string | null;
958
- fieldErrors?: Record<string, string | undefined>;
971
+ type FormResult = {
972
+ ok: boolean;
959
973
  };
960
- /** Field messages by name (or `list.0.item` path). `undefined` means "no message". */
961
- type DynamicFormErrors = Record<string, string | undefined>;
974
+ /** Field messages by name (or `list.0.item` path). `undefined` means "no message". Client-side only. */
975
+ type FormErrors = Record<string, string | undefined>;
962
976
  /** `large` spans both columns of the `grid` layout. Ignored by `stack` and `inline`. */
963
- type DynamicFormFieldSize = 'medium' | 'large';
977
+ type FormFieldSize = 'medium' | 'large';
964
978
  /**
965
979
  * `grid`: two columns from `sm` up, grouped into sections (record forms).
966
980
  * `stack`: one column (sign-in and other narrow forms).
967
981
  * `inline`: a wrapping row of controls with no sections (filter toolbars).
968
982
  */
969
- type DynamicFormLayout = 'grid' | 'stack' | 'inline';
983
+ type FormLayout = 'grid' | 'stack' | 'inline';
970
984
  /** `submit`: on the submit button. `change`: on every change, debounced for typing (filters). */
971
- type DynamicFormSubmitOn = 'submit' | 'change';
985
+ type FormSubmitOn = 'submit' | 'change';
972
986
  /** What the form reports to `onStateChange` and to an `actions` render function. */
973
- interface DynamicFormState {
987
+ interface FormState {
974
988
  /** `onSubmit` is running. */
975
989
  pending: boolean;
976
990
  /** The values differ from the ones the form started with, or last saved. */
977
991
  dirty: boolean;
978
992
  /** No field on the form (on the current step, with `steps`) has a validation error. */
979
993
  valid: boolean;
994
+ /** A field's `check` is running. The form can't be submitted until it answers. */
995
+ checking: boolean;
980
996
  /** Index of the current step, with `steps`. Otherwise `0`. */
981
997
  step: number;
982
998
  }
983
999
  /** Handed to a `custom` field's `render` and to a field's `onValueChange`. */
984
- interface DynamicFormFieldContext<V extends object = DynamicFormValues> {
1000
+ interface FormFieldContext<V extends object = FormValues> {
985
1001
  /** The field's name, or its `list.0.item` path inside a `list` row. */
986
1002
  name: string;
987
1003
  value: unknown;
@@ -1000,7 +1016,7 @@ interface DynamicFormFieldContext<V extends object = DynamicFormValues> {
1000
1016
  pending: boolean;
1001
1017
  }
1002
1018
  type Maybe<V, T> = T | ((values: V) => T);
1003
- interface DynamicFormFieldBase<V extends object = DynamicFormValues> {
1019
+ interface FormFieldBase<V extends object = FormValues> {
1004
1020
  /** The key in the form's values. */
1005
1021
  name: string;
1006
1022
  label: string;
@@ -1016,7 +1032,7 @@ interface DynamicFormFieldBase<V extends object = DynamicFormValues> {
1016
1032
  /** Shown and focusable but not editable, with no dimming. Choice fields show their label as text. */
1017
1033
  readOnly?: Maybe<V, boolean>;
1018
1034
  /** Default `medium`. */
1019
- size?: DynamicFormFieldSize;
1035
+ size?: FormFieldSize;
1020
1036
  /** Heading of the section the field is in. Fields with none go before the first section. */
1021
1037
  section?: string;
1022
1038
  /** Id of the step the field is on, with `steps`. */
@@ -1024,21 +1040,32 @@ interface DynamicFormFieldBase<V extends object = DynamicFormValues> {
1024
1040
  /** Leave the field out while this returns true. Its value is kept and still submitted. */
1025
1041
  hidden?: (values: V) => boolean;
1026
1042
  /** Called after the value changes, e.g. to reset a field that depends on this one. */
1027
- onValueChange?: (value: unknown, ctx: DynamicFormFieldContext<V>) => void;
1043
+ onValueChange?: (value: unknown, ctx: FormFieldContext<V>) => void;
1044
+ /**
1045
+ * An asynchronous check, e.g. "is this username free?". Resolve with the message to show, or
1046
+ * nothing when the value is fine. It runs once typing pauses (`checkDelay`), only for a value
1047
+ * that is filled in, passes the form's other checks and differs from the one the form started
1048
+ * with; an answer for an older value is ignored, and `signal` aborts when the value changes.
1049
+ * While it runs the field says "Checking…" and the form can't be submitted. A failing check
1050
+ * shows its message like any validation message. A check that throws blocks nothing.
1051
+ */
1052
+ check?: (value: unknown, values: V, signal: AbortSignal) => Promise<string | null | undefined | void>;
1053
+ /** Pause after the last change before `check` runs, in ms. Default 400. */
1054
+ checkDelay?: number;
1028
1055
  /** Layout only: a width on a filter toolbar, a column placement. */
1029
1056
  className?: string;
1030
1057
  }
1031
- type DynamicFormTextType = 'text' | 'email' | 'tel' | 'url' | 'number' | 'currency' | 'password' | 'search';
1058
+ type FormTextType = 'text' | 'email' | 'tel' | 'url' | 'number' | 'currency' | 'password' | 'search';
1032
1059
  /** A single-line text field. Its value is a string, `number` and `currency` included. */
1033
- interface DynamicFormTextField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1034
- type: DynamicFormTextType;
1060
+ interface FormTextField<V extends object = FormValues> extends FormFieldBase<V> {
1061
+ type: FormTextType;
1035
1062
  placeholder?: string;
1036
1063
  autoComplete?: string;
1037
1064
  maxLength?: number;
1038
1065
  /** Rewrites what is typed before it is stored, e.g. `(v) => v.toUpperCase()`. */
1039
1066
  transform?: (value: string) => string;
1040
1067
  }
1041
- interface DynamicFormTextareaField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1068
+ interface FormTextareaField<V extends object = FormValues> extends FormFieldBase<V> {
1042
1069
  type: 'textarea';
1043
1070
  rows?: number;
1044
1071
  placeholder?: string;
@@ -1046,14 +1073,18 @@ interface DynamicFormTextareaField<V extends object = DynamicFormValues> extends
1046
1073
  transform?: (value: string) => string;
1047
1074
  }
1048
1075
  /** Value: the option's value, or `null` for none. */
1049
- interface DynamicFormSelectField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1076
+ interface FormSelectField<V extends object = FormValues> extends FormFieldBase<V> {
1050
1077
  type: 'select';
1078
+ /** The options are being fetched (see `useDependentOptions`): the control shows "Loading…" and is disabled. */
1079
+ loading?: boolean;
1051
1080
  options: Maybe<V, (SelectOption | SelectOptionGroup)[]>;
1052
1081
  placeholder?: string;
1053
1082
  }
1054
1083
  /** Value: the option's value, or `null` for none. */
1055
- interface DynamicFormComboboxField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1084
+ interface FormComboboxField<V extends object = FormValues> extends FormFieldBase<V> {
1056
1085
  type: 'combobox';
1086
+ /** The options are being fetched (see `useDependentOptions`): the control shows "Loading…" and is disabled. */
1087
+ loading?: boolean;
1057
1088
  options: Maybe<V, ComboboxOption[]>;
1058
1089
  placeholder?: string;
1059
1090
  emptyMessage?: ReactNode;
@@ -1061,7 +1092,7 @@ interface DynamicFormComboboxField<V extends object = DynamicFormValues> extends
1061
1092
  clearable?: boolean;
1062
1093
  }
1063
1094
  /** Value: an ISO 3166-1 alpha-2 code, or `null`. */
1064
- interface DynamicFormCountryField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1095
+ interface FormCountryField<V extends object = FormValues> extends FormFieldBase<V> {
1065
1096
  type: 'country';
1066
1097
  countries?: readonly string[];
1067
1098
  locale?: string;
@@ -1069,57 +1100,57 @@ interface DynamicFormCountryField<V extends object = DynamicFormValues> extends
1069
1100
  placeholder?: string;
1070
1101
  }
1071
1102
  /** Value: an IANA zone name, or `null`. */
1072
- interface DynamicFormTimeZoneField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1103
+ interface FormTimeZoneField<V extends object = FormValues> extends FormFieldBase<V> {
1073
1104
  type: 'timezone';
1074
1105
  timeZones?: readonly string[];
1075
1106
  placeholder?: string;
1076
1107
  }
1077
1108
  /** Value: the chosen option's value, or `null`. */
1078
- interface DynamicFormRadioField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1109
+ interface FormRadioField<V extends object = FormValues> extends FormFieldBase<V> {
1079
1110
  type: 'radio';
1080
1111
  options: Maybe<V, readonly RadioGroupOption[]>;
1081
1112
  orientation?: 'vertical' | 'horizontal';
1082
1113
  }
1083
1114
  /** Value: the chosen option's value. */
1084
- interface DynamicFormSegmentedField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1115
+ interface FormSegmentedField<V extends object = FormValues> extends FormFieldBase<V> {
1085
1116
  type: 'segmented';
1086
1117
  options: Maybe<V, SegmentedControlOption[]>;
1087
1118
  }
1088
1119
  /** Value: an ISO `YYYY-MM-DD` string, `''` for none. */
1089
- interface DynamicFormDateField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1120
+ interface FormDateField<V extends object = FormValues> extends FormFieldBase<V> {
1090
1121
  type: 'date';
1091
1122
  min?: string;
1092
1123
  max?: string;
1093
1124
  placeholder?: string;
1094
1125
  }
1095
1126
  /** Value: a boolean. The label sits beside the control; `hint` is its supporting text. */
1096
- interface DynamicFormCheckField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1127
+ interface FormCheckField<V extends object = FormValues> extends FormFieldBase<V> {
1097
1128
  type: 'checkbox' | 'switch';
1098
1129
  }
1099
1130
  /**
1100
1131
  * Value: an array of rows, each an object holding the row's `fields`. Rows render as a line of
1101
1132
  * controls with a remove button; errors for a row's field use the path `name.index.field`.
1102
1133
  */
1103
- interface DynamicFormListField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1134
+ interface FormListField<V extends object = FormValues> extends FormFieldBase<V> {
1104
1135
  type: 'list';
1105
1136
  /** The controls of one row. `section`, `step` and `size` are ignored on them. */
1106
- fields: DynamicFormField[];
1137
+ fields: FormField[];
1107
1138
  /** The row the Add button appends. Omit together with `renderAdd` to offer no Add button. */
1108
- newItem?: () => DynamicFormValues;
1139
+ newItem?: () => FormValues;
1109
1140
  /** Label of the Add button. Default "Add". */
1110
1141
  addLabel?: string;
1111
1142
  /** Replaces the Add button, e.g. with a picker. Call `add` with the new row. */
1112
- renderAdd?: (add: (item: DynamicFormValues) => void, ctx: DynamicFormFieldContext<V>) => ReactNode;
1143
+ renderAdd?: (add: (item: FormValues) => void, ctx: FormFieldContext<V>) => ReactNode;
1113
1144
  /** Fewest rows: remove buttons are disabled at this count. */
1114
1145
  min?: number;
1115
1146
  /** Most rows: the Add button is disabled at this count. */
1116
1147
  max?: number;
1117
1148
  /** Stable key of a row. Default: its index. */
1118
- itemKey?: (item: DynamicFormValues, index: number) => string;
1149
+ itemKey?: (item: FormValues, index: number) => string;
1119
1150
  /** Accessible name of a row's remove button. Default "Remove row n". */
1120
- removeLabel?: (item: DynamicFormValues, index: number) => string;
1151
+ removeLabel?: (item: FormValues, index: number) => string;
1121
1152
  /** Whether a row may be removed. Default: always, subject to `min`. */
1122
- canRemove?: (item: DynamicFormValues, index: number) => boolean;
1153
+ canRemove?: (item: FormValues, index: number) => boolean;
1123
1154
  /** Content above the rows, e.g. column headings. */
1124
1155
  header?: ReactNode;
1125
1156
  /** Shown when there are no rows. */
@@ -1129,21 +1160,21 @@ interface DynamicFormListField<V extends object = DynamicFormValues> extends Dyn
1129
1160
  * Anything the other types do not cover. `render` gets the field's value, setter and error.
1130
1161
  * By default it is wrapped in the field chrome (label, hint, error); set `bare` to render it alone.
1131
1162
  */
1132
- interface DynamicFormCustomField<V extends object = DynamicFormValues> extends Omit<DynamicFormFieldBase<V>, 'label'> {
1163
+ interface FormCustomField<V extends object = FormValues> extends Omit<FormFieldBase<V>, 'label'> {
1133
1164
  type: 'custom';
1134
1165
  label?: string;
1135
- render: (ctx: DynamicFormFieldContext<V>) => ReactNode;
1166
+ render: (ctx: FormFieldContext<V>) => ReactNode;
1136
1167
  bare?: boolean;
1137
1168
  }
1138
- type DynamicFormField<V extends object = DynamicFormValues> = DynamicFormTextField<V> | DynamicFormTextareaField<V> | DynamicFormSelectField<V> | DynamicFormComboboxField<V> | DynamicFormCountryField<V> | DynamicFormTimeZoneField<V> | DynamicFormRadioField<V> | DynamicFormSegmentedField<V> | DynamicFormDateField<V> | DynamicFormCheckField<V> | DynamicFormListField<V> | DynamicFormCustomField<V>;
1139
- type DynamicFormFieldType = DynamicFormField['type'];
1140
- interface DynamicFormStep {
1169
+ type FormField<V extends object = FormValues> = FormTextField<V> | FormTextareaField<V> | FormSelectField<V> | FormComboboxField<V> | FormCountryField<V> | FormTimeZoneField<V> | FormRadioField<V> | FormSegmentedField<V> | FormDateField<V> | FormCheckField<V> | FormListField<V> | FormCustomField<V>;
1170
+ type FormFieldType = FormField['type'];
1171
+ interface FormStep {
1141
1172
  id: string;
1142
1173
  label: string;
1143
1174
  }
1144
1175
 
1145
1176
  /** Handed to an `actions` render function, for buttons of your own. */
1146
- interface DynamicFormActionsApi extends DynamicFormState {
1177
+ interface FormActionsApi extends FormState {
1147
1178
  /** Submits the form, as its submit button does (validation first). */
1148
1179
  submit: () => void;
1149
1180
  /** With `steps`: back one step. */
@@ -1151,9 +1182,9 @@ interface DynamicFormActionsApi extends DynamicFormState {
1151
1182
  /** With `steps`: whether the current step is the last. Otherwise `true`. */
1152
1183
  lastStep: boolean;
1153
1184
  }
1154
- interface DynamicFormProps<V extends object = DynamicFormValues> extends Omit<FormHTMLAttributes<HTMLFormElement>, 'onSubmit' | 'children' | 'title' | 'defaultValue'> {
1185
+ interface FormProps<V extends object = FormValues> extends Omit<FormHTMLAttributes<HTMLFormElement>, 'onSubmit' | 'children' | 'title' | 'defaultValue'> {
1155
1186
  /** The fields, in order. A field's `section` groups it under a heading. */
1156
- fields: DynamicFormField<V>[];
1187
+ fields: FormField<V>[];
1157
1188
  /** The form's accessible name. */
1158
1189
  title: string;
1159
1190
  /** Starting values when the form holds them itself. */
@@ -1163,35 +1194,41 @@ interface DynamicFormProps<V extends object = DynamicFormValues> extends Omit<Fo
1163
1194
  /** Every change, with the new values and the name of the field that changed. */
1164
1195
  onValuesChange?: (values: NoInfer<V>, name: string) => void;
1165
1196
  /**
1166
- * Saves the values. Return `{ ok: false, error?, fieldErrors? }` to refuse: the form stays as
1167
- * it is and shows the messages. While it runs the form is `pending`.
1197
+ * Saves the values, once every check passes. Disabled fields are left out. Return
1198
+ * `{ ok: false }` when the save is refused: the form keeps what was typed. Show why on the
1199
+ * page, in a toast or an alert outside the form: the form shows client-side messages only.
1200
+ * While it runs the form is `pending`. If it throws, the form stops being pending and the
1201
+ * error propagates.
1168
1202
  */
1169
- onSubmit?: (values: NoInfer<V>) => DynamicFormResult | void | Promise<DynamicFormResult | void>;
1203
+ onSubmit?: (values: NoInfer<V>) => FormResult | void | Promise<FormResult | void>;
1170
1204
  /**
1171
1205
  * Messages by field name (or `list.0.field` path), for values as they stand. A message shows
1172
1206
  * once its field has been visited or a submit was tried, and blocks the submit.
1173
1207
  */
1174
- validate?: (values: NoInfer<V>) => DynamicFormErrors;
1208
+ validate?: (values: NoInfer<V>) => FormErrors;
1175
1209
  /**
1176
1210
  * The message for an empty `required` field that `validate` leaves alone. Default
1177
1211
  * "<Label> is required." Pass `false` to leave required checks to `validate`.
1178
1212
  */
1179
- requiredMessage?: ((field: DynamicFormField<V>) => string) | false;
1180
- /** Messages from the page that win over everything else. `undefined` entries are ignored. */
1181
- errors?: DynamicFormErrors;
1213
+ requiredMessage?: ((field: FormField<V>) => string) | false;
1214
+ /**
1215
+ * Messages from the page that show at once and win over the form's own, e.g. a check the page
1216
+ * runs itself. `undefined` entries are ignored. Not for save errors: those go outside the form.
1217
+ */
1218
+ errors?: FormErrors;
1182
1219
  /**
1183
1220
  * When a validation message first shows. `blur` (default): once its field has been visited, or a
1184
1221
  * submit was tried. `submit`: only once a submit was tried, as sign-in screens do.
1185
1222
  */
1186
1223
  validateOn?: 'blur' | 'submit';
1187
1224
  /** Default `grid`. */
1188
- layout?: DynamicFormLayout;
1225
+ layout?: FormLayout;
1189
1226
  /** Default `submit`. `change` submits on every change, with typing debounced. */
1190
- submitOn?: DynamicFormSubmitOn;
1227
+ submitOn?: FormSubmitOn;
1191
1228
  /** Debounce for typing with `submitOn="change"`, in ms. Default 300. */
1192
1229
  debounce?: number;
1193
1230
  /** Shows one step at a time; fields name theirs with `step`. Next validates the step. */
1194
- steps?: DynamicFormStep[];
1231
+ steps?: FormStep[];
1195
1232
  /** Every field read-only, and no buttons. */
1196
1233
  readOnly?: boolean;
1197
1234
  /** Every field disabled. */
@@ -1209,31 +1246,131 @@ interface DynamicFormProps<V extends object = DynamicFormValues> extends Omit<Fo
1209
1246
  onCancel?: () => void;
1210
1247
  cancelLabel?: string;
1211
1248
  /** Replaces the default buttons. */
1212
- actions?: ReactNode | ((api: DynamicFormActionsApi) => ReactNode);
1249
+ actions?: ReactNode | ((api: FormActionsApi) => ReactNode);
1213
1250
  /** Default: shown unless `readOnly` or `submitOn="change"`. */
1214
1251
  showActions?: boolean;
1215
- /** Pending, dirty, valid and step, for buttons and guards outside the form. */
1216
- onStateChange?: (state: DynamicFormState) => void;
1252
+ /** Pending, dirty, valid, checking and step, for buttons and guards outside the form. */
1253
+ onStateChange?: (state: FormState) => void;
1217
1254
  /** Extra content after the fields, before the buttons. */
1218
1255
  children?: ReactNode;
1219
1256
  }
1220
1257
  /**
1221
- * A form described as data: give it fields and an `onSubmit`, and it holds the values, shows
1222
- * validation and save errors against the right fields, and tracks pending and dirty state.
1258
+ * A form described as data: give it fields and an `onSubmit`, and it holds the values, runs
1259
+ * every check that doesn't need a save, shows the messages against the right fields, and
1260
+ * tracks pending and dirty state.
1223
1261
  *
1224
1262
  * It covers record forms (`grid`, sections, one Save), narrow forms such as sign-in (`stack`),
1225
1263
  * filter toolbars (`inline` with `submitOn="change"`) and step-by-step flows (`steps`). For
1226
1264
  * the one odd field, use a `custom` field (any control, wired to the form's value and error),
1227
1265
  * or a `list` field for repeated rows, rather than building the whole form by hand.
1228
1266
  *
1229
- * Values are held in React state, never read back from the DOM, so a refused save leaves what
1230
- * was typed in place, and controls that post nothing to `FormData` (Combobox) still work.
1231
- * `onSubmit` returns `{ ok: false, error, fieldErrors }` to refuse; that is the only error
1232
- * channel the page needs. A field's message is the page's `errors[name]`, else the
1233
- * validation message once it is visited or a submit was tried, else the refusal for it, which
1234
- * clears when the field changes. `error` is shown above the form when no field shows one.
1235
- */
1236
- declare function DynamicForm<V extends object = DynamicFormValues>({ fields: fieldsProp, title, defaultValues, values: valuesProp, onValuesChange, onSubmit, validate, requiredMessage, errors: errorsProp, validateOn, layout, submitOn, debounce, steps, readOnly, disabled, size, submitLabel, pendingLabel, nextLabel, backLabel, onCancel, cancelLabel, actions, showActions, onStateChange, children, className, noValidate, ...formProps }: DynamicFormProps<V>): react.JSX.Element;
1267
+ * Where messages show:
1268
+ * - **In the form, under the field:** everything checkable without saving. `required`,
1269
+ * `validate` (cross-field rules such as a matching password, conditional requirements), a
1270
+ * field's async `check` (e.g. username availability), and the page's own `errors`. A message
1271
+ * shows once its field is visited or a submit is tried, and blocks the submit.
1272
+ * - **Outside the form:** anything the save itself refuses. `onSubmit` returns `{ ok: false }`
1273
+ * and the page shows why in a toast or an alert. The form keeps what was typed.
1274
+ *
1275
+ * The Save button looks disabled while a message or a check stands in the way, but it stays
1276
+ * focusable and pressing it shows what is wrong: a disabled look is a signal, not an
1277
+ * explanation. Values are held in React state, never read back from the DOM.
1278
+ */
1279
+ declare function Form<V extends object = FormValues>({ fields: fieldsProp, title, defaultValues, values: valuesProp, onValuesChange, onSubmit, validate, requiredMessage, errors: errorsProp, validateOn, layout, submitOn, debounce, steps, readOnly, disabled, size, submitLabel, pendingLabel, nextLabel, backLabel, onCancel, cancelLabel, actions, showActions, onStateChange, children, className, noValidate, ...formProps }: FormProps<V>): react.JSX.Element;
1280
+
1281
+ interface DependentOptions<T = SelectOption> {
1282
+ /** Choices for the parent's current value. Empty while loading, when the parent is empty, or if loading failed. */
1283
+ options: T[];
1284
+ /** True from the moment the parent value changes until `load` answers. */
1285
+ loading: boolean;
1286
+ }
1287
+ /**
1288
+ * Choices of a field that depend on another field's value, fetched asynchronously, e.g. the
1289
+ * departments of the chosen role. New in 0.10.0 (from Cleo's form work).
1290
+ *
1291
+ * Calls `load(parentValue)` every time the parent value changes and ignores answers that arrive
1292
+ * after the parent has changed again. An empty parent loads nothing. The options are tied to the
1293
+ * parent value they were loaded for, so a stale list is never shown for a new parent. A `load`
1294
+ * that fails gives no options.
1295
+ *
1296
+ * Pass `loading` to the `Form` select or combobox field, which then shows "Loading…".
1297
+ * Clearing the dependent field's own value when the parent changes is up to the form: do it in
1298
+ * the parent field's `onValueChange`.
1299
+ *
1300
+ * ```tsx
1301
+ * const { options, loading } = useDependentOptions(values.role ?? '', loadDepartments);
1302
+ * const fields = [
1303
+ * { type: 'select', name: 'role', label: 'Role', options: roles,
1304
+ * onValueChange: (_, ctx) => ctx.setField('department', null) },
1305
+ * { type: 'select', name: 'department', label: 'Department', options, loading,
1306
+ * disabled: (v) => !v.role },
1307
+ * ];
1308
+ * ```
1309
+ */
1310
+ declare function useDependentOptions<T = SelectOption>(parentValue: string, load: (parentValue: string) => Promise<T[]>): DependentOptions<T>;
1311
+
1312
+ /**
1313
+ * The 0.10.0 names of `Form` and its types, kept so code written against 0.10.0 still compiles.
1314
+ * 0.10.0 published the component as `SchemaForm`; 0.10.1 renamed it `Form`. These will be removed
1315
+ * in a later minor release.
1316
+ */
1317
+
1318
+ /** @deprecated Since 0.10.1. Use `Form`. */
1319
+ declare const SchemaForm: typeof Form;
1320
+ /** @deprecated Since 0.10.1. Use `FormProps`. */
1321
+ type SchemaFormProps<V extends object = FormValues> = FormProps<V>;
1322
+ /** @deprecated Since 0.10.1. Use `FormActionsApi`. */
1323
+ type SchemaFormActionsApi = FormActionsApi;
1324
+ /** @deprecated Since 0.10.1. Use `FormValues`. */
1325
+ type SchemaFormValues = FormValues;
1326
+ /** @deprecated Since 0.10.1. Use `FormResult`. */
1327
+ type SchemaFormResult = FormResult;
1328
+ /** @deprecated Since 0.10.1. Use `FormErrors`. */
1329
+ type SchemaFormErrors = FormErrors;
1330
+ /** @deprecated Since 0.10.1. Use `FormState`. */
1331
+ type SchemaFormState = FormState;
1332
+ /** @deprecated Since 0.10.1. Use `FormLayout`. */
1333
+ type SchemaFormLayout = FormLayout;
1334
+ /** @deprecated Since 0.10.1. Use `FormSubmitOn`. */
1335
+ type SchemaFormSubmitOn = FormSubmitOn;
1336
+ /** @deprecated Since 0.10.1. Use `FormStep`. */
1337
+ type SchemaFormStep = FormStep;
1338
+ /** @deprecated Since 0.10.1. Use `FormField`. */
1339
+ type SchemaFormField<V extends object = FormValues> = FormField<V>;
1340
+ /** @deprecated Since 0.10.1. Use `FormFieldType`. */
1341
+ type SchemaFormFieldType = FormFieldType;
1342
+ /** @deprecated Since 0.10.1. Use `FormFieldBase`. */
1343
+ type SchemaFormFieldBase<V extends object = FormValues> = FormFieldBase<V>;
1344
+ /** @deprecated Since 0.10.1. Use `FormFieldContext`. */
1345
+ type SchemaFormFieldContext<V extends object = FormValues> = FormFieldContext<V>;
1346
+ /** @deprecated Since 0.10.1. Use `FormFieldSize`. */
1347
+ type SchemaFormFieldSize = FormFieldSize;
1348
+ /** @deprecated Since 0.10.1. Use `FormTextType`. */
1349
+ type SchemaFormTextType = FormTextType;
1350
+ /** @deprecated Since 0.10.1. Use `FormTextField`. */
1351
+ type SchemaFormTextField<V extends object = FormValues> = FormTextField<V>;
1352
+ /** @deprecated Since 0.10.1. Use `FormTextareaField`. */
1353
+ type SchemaFormTextareaField<V extends object = FormValues> = FormTextareaField<V>;
1354
+ /** @deprecated Since 0.10.1. Use `FormSelectField`. */
1355
+ type SchemaFormSelectField<V extends object = FormValues> = FormSelectField<V>;
1356
+ /** @deprecated Since 0.10.1. Use `FormComboboxField`. */
1357
+ type SchemaFormComboboxField<V extends object = FormValues> = FormComboboxField<V>;
1358
+ /** @deprecated Since 0.10.1. Use `FormCountryField`. */
1359
+ type SchemaFormCountryField<V extends object = FormValues> = FormCountryField<V>;
1360
+ /** @deprecated Since 0.10.1. Use `FormTimeZoneField`. */
1361
+ type SchemaFormTimeZoneField<V extends object = FormValues> = FormTimeZoneField<V>;
1362
+ /** @deprecated Since 0.10.1. Use `FormRadioField`. */
1363
+ type SchemaFormRadioField<V extends object = FormValues> = FormRadioField<V>;
1364
+ /** @deprecated Since 0.10.1. Use `FormSegmentedField`. */
1365
+ type SchemaFormSegmentedField<V extends object = FormValues> = FormSegmentedField<V>;
1366
+ /** @deprecated Since 0.10.1. Use `FormDateField`. */
1367
+ type SchemaFormDateField<V extends object = FormValues> = FormDateField<V>;
1368
+ /** @deprecated Since 0.10.1. Use `FormCheckField`. */
1369
+ type SchemaFormCheckField<V extends object = FormValues> = FormCheckField<V>;
1370
+ /** @deprecated Since 0.10.1. Use `FormListField`. */
1371
+ type SchemaFormListField<V extends object = FormValues> = FormListField<V>;
1372
+ /** @deprecated Since 0.10.1. Use `FormCustomField`. */
1373
+ type SchemaFormCustomField<V extends object = FormValues> = FormCustomField<V>;
1237
1374
 
1238
1375
  type BadgeColor = 'gray' | 'red' | 'yellow' | 'lime' | 'green' | 'teal' | 'blue' | 'pink' | 'slate' | 'violet';
1239
1376
  /**
@@ -5690,4 +5827,4 @@ declare function ChatBubble({ sender, children, failed, className }: ChatBubbleP
5690
5827
 
5691
5828
  declare function AuroraBackdrop(): react.JSX.Element;
5692
5829
 
5693
- export { AIChatBar, type AIChatBarProps, AISuggestionChip, type AISuggestionChipProps, AccessibleIcon, type AccessibleIconProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, AiAvatar, type AiAvatarProps, AspectRatio, type AspectRatioProps, AuroraBackdrop, Avatar, AvatarBlock, type AvatarBlockProps, AvatarGroup, type AvatarGroupProps, type AvatarGroupSpacing, type AvatarImageProps, type AvatarInitialProps, type AvatarProps, type AvatarShape, type AvatarSize, BADGE_COLORS, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BarChartSeries, type BarChartSize, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupAlign, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_SEQUENCE, CHART_TONE, CHART_TRACK, COL_SPAN, COL_SPAN_BY_TIER, COUNTRY_CODES, Calendar, type CalendarMode, type CalendarProps, Card, CardAction, type CardActionProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterAlign, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, type CardRadius, type CardSize, CardTitle, type CardTitleProps, type CardTone, Carousel, CarouselControls, type CarouselControlsProps, type CarouselProps, CarouselSlide, type CarouselSlideProps, CarouselViewport, type CarouselViewportProps, ChartLegend, type ChartLegendItem, type ChartLegendOrientation, type ChartLegendProps, type ChartTone, ChatBubble, type ChatBubbleProps, type ChatBubbleSender, CheckIndicator, type CheckIndicatorProps, type CheckIndicatorStatus, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, type CheckedGroup, CheckedGroupList, type CheckedGroupListColumns, type CheckedGroupListProps, ChecklistRow, type ChecklistRowProps, type ChecklistRowState, type ChoiceCardBreakpoint, type ColSize, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandItem, type CommandProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, ContextMenuItems, ContextMenuLabel, type ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ContextMenuTriggerProps, ControlSizeProvider, type ControlSizeProviderProps, CopyButton, type CopyButtonProps, CountBadge, type CountBadgeProps, CountrySelect, type CountrySelectProps, DEFAULT_SCORE_THRESHOLDS, DatePicker, type DatePickerProps, type DateRange, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListProps, DetailGrid, type DetailGridColumns, type DetailGridProps, DetailItem, type DetailItemLayout, type DetailItemProps, type DetailItemSpan, DonutChart, type DonutChartProps, type DonutChartSize, type DonutSegment, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterAlign, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, type DrawerSide, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type MenuCheckboxItemProps as DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type MenuGroupProps as DropdownMenuGroupProps, DropdownMenuItem, type MenuItemProps as DropdownMenuItemProps, type MenuItemTone as DropdownMenuItemTone, DropdownMenuItems, DropdownMenuLabel, type MenuLabelProps as DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type MenuRadioGroupProps as DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type MenuRadioItemProps as DropdownMenuRadioItemProps, DropdownMenuSeparator, type MenuSeparatorProps as DropdownMenuSeparatorProps, DropdownMenuShortcut, type MenuShortcutProps as DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type MenuSubContentProps as DropdownMenuSubContentProps, type MenuSubProps as DropdownMenuSubProps, DropdownMenuSubTrigger, type MenuSubTriggerProps as DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, DynamicForm, type DynamicFormActionsApi, type DynamicFormCheckField, type DynamicFormComboboxField, type DynamicFormCountryField, type DynamicFormCustomField, type DynamicFormDateField, type DynamicFormErrors, type DynamicFormField, type DynamicFormFieldBase, type DynamicFormFieldContext, type DynamicFormFieldSize, type DynamicFormFieldType, type DynamicFormLayout, type DynamicFormListField, type DynamicFormProps, type DynamicFormRadioField, type DynamicFormResult, type DynamicFormSegmentedField, type DynamicFormSelectField, type DynamicFormState, type DynamicFormStep, type DynamicFormSubmitOn, type DynamicFormTextField, type DynamicFormTextType, type DynamicFormTextareaField, type DynamicFormTimeZoneField, type DynamicFormValues, EmailText, EmptyState, type EmptyStateProps, type EmptyStateSize, type EmptyStateVariant, EntityIconBadge, type EntityIconBadgeProps, type EntityIconBadgeSize, type EntityIconBadgeTone, ErrorBoundary, type ErrorBoundaryProps, EyebrowLabel, type EyebrowLabelProps, type EyebrowLabelVariant, FOCUS_RING, FOCUS_RING_INSET, Field, type FieldContextValue, FieldDescription, FieldError, FieldGroup, type FieldGroupProps, FieldHint, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldOrientation, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, type FieldTextProps, FileDropZone, type FileDropZoneProps, FileRow, type FileRowProps, FilterBar, type FilterBarProps, type FilterBarSize, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, FormCard, FormCardFooter, type FormCardFooterProps, FormCardHeader, type FormCardHeaderProps, type FullscreenStacking, FullscreenSurface, type FullscreenSurfaceProps, GRID_TIERS, Grid, type GridBreakpoint, type GridColumnCount, type GridProps, type GridTier, HEIGHT_CLASS, HEIGHT_PX, Heading, HoverCard, type HoverCardProps, IconButton, type IconButtonProps, type IconButtonVariant, IconTextRow, type IconTextRowProps, InlineAlert, type InlineAlertProps, type InlineAlertTone, Input, InputControl, type InputControlProps, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupAlign, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputOTP, type InputOTPMode, type InputOTPProps, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, Label, type LabelProps, LegendDot, type LegendDotProps, type LegendDotShape, type LegendDotSize, ListRow, type ListRowDensity, type ListRowDivider, type ListRowProps, Listbox, type ListboxGroup, type ListboxOption, type ListboxProps, type MenuItemDef, Menubar, MenubarCheckboxItem, MenubarContent, type MenubarContentProps, MenubarGroup, MenubarItem, MenubarItems, MenubarLabel, MenubarMenu, type MenubarMenuDef, type MenubarMenuProps, type MenubarProps, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type MenubarTriggerProps, MiniBarChart, type MiniBarChartOrientation, type MiniBarChartProps, type MiniBarChartSize, Modal, type ModalAlign, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterAlign, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, type ModalTone, ModalTrigger, type ModalTriggerProps, MultiSelectCard, type MultiSelectCardProps, type MultiSelectCardSize, NativeSelect, NativeSelectControl, type NativeSelectControlProps, type NativeSelectProps, NavGroupHeader, type NavGroupHeaderProps, NavItem, type NavItemDensity, type NavItemProps, type NavItemSize, type NavItemVariant, NavSubItem, type NavSubItemProps, NavigationMenu, NavigationMenuItem, type NavigationMenuItemProps, type NavigationMenuOrientation, type NavigationMenuProps, type NavigationMenuVariant, NoteConfirmModal, type NoteConfirmModalProps, NumberedList, type NumberedListGap, type NumberedListItem, type NumberedListProps, OVERLAY_SCRIM, PageHeading, type PageHeadingProps, type PageHeadingSize, PageToolbar, type PageToolbarProps, type PageToolbarSize, Pagination, PaginationBar, type PaginationBarProps, type PaginationProps, type PaginationType, PasswordInput, type PasswordInputProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, ProgressBarTone, type QuickAction, QuickActionsBar, type QuickActionsBarProps, Quote, ROLE_COMBO_OPTIONS, RadialGauge, type RadialGaugeProps, type RadialGaugeSize, Radio, RadioCards, RadioCardsItem, type RadioCardsItemProps, type RadioCardsProps, type RadioCardsSize, RadioGroup, type RadioGroupOption, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, Resizable, type ResizableDirection, ResizableHandle, type ResizableHandleProps, ResizablePanel, type ResizablePanelProps, type ResizableProps, type ResponsiveChoiceCardSize, RoleBadge, type RoleBadgeProps, type RoleBadgeTone, RoleComboBox, type RoleComboBoxProps, type RoleOption, SCROLLBAR_CLASSES, type ScoreDirection, type ScoreRampTone, type ScoreThresholds, type ScoreTone, ScoreValue, type ScoreValueProps, type ScoreValueSize, type ScoreValueTone, type ScoreValueWeight, ScoredRow, type ScoredRowAlign, type ScoredRowGap, type ScoredRowProps, Scrim, type ScrimProps, ScrollArea, type ScrollAreaAxis, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, type SectionProps, type SectionSize, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectControl, type SelectControlProps, type SelectOption, type SelectOptionGroup, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Sidebar, type SidebarContextValue, type SidebarLinkComponent, type SidebarLinkProps, type SidebarNavGroup, type SidebarNavItem, type SidebarProps, SidebarProvider, type SidebarProviderProps, type SidebarRenderState, SidebarSeparator, type SidebarSeparatorProps, SidebarTrigger, type SidebarTriggerProps, SidebarUserCard, type SidebarUserCardProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Slot, type SlotProps, type SpaceToken, Sparkline, type SparklineProps, type SparklineSize, type SparklineVariant, Spinner, type SpinnerProps, type SpinnerSize, StatNumber, type StatNumberProps, type StatNumberSize, type StatNumberWeight, StatTile, type StatTileProps, StatusBadge, type StatusBadgeProps, type StatusBadgeSize, StatusChip, type StatusChipProps, StatusDot, type StatusDotProps, type StatusDotTone, type StatusTone, type StepItem, type StepStatus, Stepper, type StepperAlign, type StepperCompactInfo, type StepperProps, type StepperSize, StepsList, type StepsListProps, Subheading, Subtitle, Switch, type SwitchProps, type SwitchSize, TIER_COLS, TIER_MIN_PX, type TabItem, Tabs, type TabsActivation, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsRootProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, TagInput, type TagInputParseResult, type TagInputProps, TagPill, type TagPillProps, type TagPillSize, type TagPillTone, Text, TextCode, TextEmphasis, TextLink, type TextLinkProps, type TextLinkTone, TextList, type TextListDensity, TextListItem, type TextListItemProps, type TextListProps, type TextListVariant, type TextProps, TextSmall, TextStrong, TextTiny, type TextTone, Textarea, TextareaControl, type TextareaControlProps, type TextareaProps, TileGrid, type TileGridBreakpoint, type TileGridColumns, type TileGridProps, TimeZoneSelect, type TimeZoneSelectProps, TitleHero, TitlePage, type ToastOptions, type ToastRecord, type ToastTone, Toaster, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, TrailChip, type TrailChipProps, type TreeItemState, TreeView, type TreeViewProps, type TreeViewSize, type TrendDirection, TrendLabel, type TrendLabelProps, type TrendLabelSize, type TrendLabelWeight, TypingIndicator, type TypingIndicatorProps, type UseFilePicker, type UseFilePickerOptions, type UseWidthTierOptions, type UseWidthTierResult, type UserAccountStatus, UserStatusPill, type UserStatusPillProps, VisuallyHidden, type VisuallyHiddenProps, WidgetFooter, type WidgetFooterProps, WidgetGrid, WidgetGridItem, type WidgetGridItemProps, type WidgetGridProps, WidgetGridRow, type WidgetGridRowProps, WidgetHeader, WidgetHeaderAccessoryProvider, type WidgetHeaderAccessoryProviderProps, type WidgetHeaderEyebrowVariant, type WidgetHeaderProps, type WidgetHeight, WidgetTitle, type WidgetTitleProps, type WidgetTitleSize, cn, colsFor, composeRefs, countryOptions, currentZoneName, filterNav, filterNavItems, formatFileSize, getScoreTone, nextTier, paginationRange, quantizeWidth, resolveChartColor, slotWidthPx, tabId, tabPanelId, tierForWidth, timeZoneOffset, timeZoneOptions, useControlSize, useElementWidth, useFieldContext, useFieldControl, useFilePicker, useOverlayDismiss, usePortalContainer, useSidebar, useToast, useWidgetHeaderAccessory, useWidthTier };
5830
+ export { AIChatBar, type AIChatBarProps, AISuggestionChip, type AISuggestionChipProps, AccessibleIcon, type AccessibleIconProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemDef, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionType, AiAvatar, type AiAvatarProps, AspectRatio, type AspectRatioProps, AuroraBackdrop, Avatar, AvatarBlock, type AvatarBlockProps, AvatarGroup, type AvatarGroupProps, type AvatarGroupSpacing, type AvatarImageProps, type AvatarInitialProps, type AvatarProps, type AvatarShape, type AvatarSize, BADGE_COLORS, Badge, type BadgeColor, type BadgeProps, type BadgeSize, type BadgeVariant, Banner, type BannerProps, type BannerVariant, BarChart, type BarChartOrientation, type BarChartProps, type BarChartSeries, type BarChartSize, Blockquote, type BlockquoteProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemDef, type BreadcrumbItemProps, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupAlign, type ButtonGroupItem, type ButtonGroupProps, type ButtonGroupVariant, type ButtonProps, type ButtonSize, type ButtonVariant, CHART_SEQUENCE, CHART_TONE, CHART_TRACK, COL_SPAN, COL_SPAN_BY_TIER, COUNTRY_CODES, Calendar, type CalendarMode, type CalendarProps, Card, CardAction, type CardActionProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterAlign, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, type CardRadius, type CardSize, CardTitle, type CardTitleProps, type CardTone, Carousel, CarouselControls, type CarouselControlsProps, type CarouselProps, CarouselSlide, type CarouselSlideProps, CarouselViewport, type CarouselViewportProps, ChartLegend, type ChartLegendItem, type ChartLegendOrientation, type ChartLegendProps, type ChartTone, ChatBubble, type ChatBubbleProps, type ChatBubbleSender, CheckIndicator, type CheckIndicatorProps, type CheckIndicatorStatus, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, type CheckedGroup, CheckedGroupList, type CheckedGroupListColumns, type CheckedGroupListProps, ChecklistRow, type ChecklistRowProps, type ChecklistRowState, type ChoiceCardBreakpoint, type ColSize, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, type ComboboxOption, type ComboboxProps, Command, type CommandItem, type CommandProps, ConfirmDialog, type ConfirmDialogProps, Container, type ContainerProps, type ContainerSize, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, type ContextMenuContentProps, ContextMenuGroup, ContextMenuItem, ContextMenuItems, ContextMenuLabel, type ContextMenuProps, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type ContextMenuTriggerProps, ControlSizeProvider, type ControlSizeProviderProps, CopyButton, type CopyButtonProps, CountBadge, type CountBadgeProps, CountrySelect, type CountrySelectProps, DEFAULT_SCORE_THRESHOLDS, DatePicker, type DatePickerProps, type DateRange, type DependentOptions, DescriptionItem, type DescriptionItemProps, DescriptionList, type DescriptionListProps, DetailGrid, type DetailGridColumns, type DetailGridProps, DetailItem, type DetailItemLayout, type DetailItemProps, type DetailItemSpan, DonutChart, type DonutChartProps, type DonutChartSize, type DonutSegment, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterAlign, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, type DrawerSide, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, DropdownMenuCheckboxItem, type MenuCheckboxItemProps as DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type MenuGroupProps as DropdownMenuGroupProps, DropdownMenuItem, type MenuItemProps as DropdownMenuItemProps, type MenuItemTone as DropdownMenuItemTone, DropdownMenuItems, DropdownMenuLabel, type MenuLabelProps as DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type MenuRadioGroupProps as DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type MenuRadioItemProps as DropdownMenuRadioItemProps, DropdownMenuSeparator, type MenuSeparatorProps as DropdownMenuSeparatorProps, DropdownMenuShortcut, type MenuShortcutProps as DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type MenuSubContentProps as DropdownMenuSubContentProps, type MenuSubProps as DropdownMenuSubProps, DropdownMenuSubTrigger, type MenuSubTriggerProps as DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmailText, EmptyState, type EmptyStateProps, type EmptyStateSize, type EmptyStateVariant, EntityIconBadge, type EntityIconBadgeProps, type EntityIconBadgeSize, type EntityIconBadgeTone, ErrorBoundary, type ErrorBoundaryProps, EyebrowLabel, type EyebrowLabelProps, type EyebrowLabelVariant, FOCUS_RING, FOCUS_RING_INSET, Field, type FieldContextValue, FieldDescription, FieldError, FieldGroup, type FieldGroupProps, FieldHint, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldOrientation, type FieldPart, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, type FieldSetProps, type FieldTextProps, FileDropZone, type FileDropZoneProps, FileRow, type FileRowProps, FilterBar, type FilterBarProps, type FilterBarSize, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, Form, type FormActionsApi, FormCard, FormCardFooter, type FormCardFooterProps, FormCardHeader, type FormCardHeaderProps, type FormCheckField, type FormComboboxField, type FormCountryField, type FormCustomField, type FormDateField, type FormErrors, type FormField, type FormFieldBase, type FormFieldContext, type FormFieldSize, type FormFieldType, type FormLayout, type FormListField, type FormProps, type FormRadioField, type FormResult, type FormSegmentedField, type FormSelectField, type FormState, type FormStep, type FormSubmitOn, type FormTextField, type FormTextType, type FormTextareaField, type FormTimeZoneField, type FormValues, type FullscreenStacking, FullscreenSurface, type FullscreenSurfaceProps, GRID_TIERS, Grid, type GridBreakpoint, type GridColumnCount, type GridProps, type GridTier, HEIGHT_CLASS, HEIGHT_PX, Heading, HoverCard, type HoverCardProps, IconButton, type IconButtonProps, type IconButtonVariant, IconTextRow, type IconTextRowProps, InlineAlert, type InlineAlertProps, type InlineAlertTone, Input, InputControl, type InputControlProps, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupAlign, InputGroupInput, type InputGroupInputProps, type InputGroupProps, InputGroupText, type InputGroupTextProps, InputOTP, type InputOTPMode, type InputOTPProps, type InputProps, type InputSize, Kbd, type KbdProps, type KbdSize, Label, type LabelProps, LegendDot, type LegendDotProps, type LegendDotShape, type LegendDotSize, ListRow, type ListRowDensity, type ListRowDivider, type ListRowProps, Listbox, type ListboxGroup, type ListboxOption, type ListboxProps, type MenuItemDef, Menubar, MenubarCheckboxItem, MenubarContent, type MenubarContentProps, MenubarGroup, MenubarItem, MenubarItems, MenubarLabel, MenubarMenu, type MenubarMenuDef, type MenubarMenuProps, type MenubarProps, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type MenubarTriggerProps, MiniBarChart, type MiniBarChartOrientation, type MiniBarChartProps, type MiniBarChartSize, Modal, type ModalAlign, ModalBody, type ModalBodyProps, ModalClose, type ModalCloseProps, ModalDescription, type ModalDescriptionProps, ModalFooter, type ModalFooterAlign, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalProps, type ModalSize, ModalTitle, type ModalTitleProps, type ModalTone, ModalTrigger, type ModalTriggerProps, MultiSelectCard, type MultiSelectCardProps, type MultiSelectCardSize, NativeSelect, NativeSelectControl, type NativeSelectControlProps, type NativeSelectProps, NavGroupHeader, type NavGroupHeaderProps, NavItem, type NavItemDensity, type NavItemProps, type NavItemSize, type NavItemVariant, NavSubItem, type NavSubItemProps, NavigationMenu, NavigationMenuItem, type NavigationMenuItemProps, type NavigationMenuOrientation, type NavigationMenuProps, type NavigationMenuVariant, NoteConfirmModal, type NoteConfirmModalProps, NumberedList, type NumberedListGap, type NumberedListItem, type NumberedListProps, OVERLAY_SCRIM, PageHeading, type PageHeadingProps, type PageHeadingSize, PageToolbar, type PageToolbarProps, type PageToolbarSize, Pagination, PaginationBar, type PaginationBarProps, type PaginationProps, type PaginationType, PasswordInput, type PasswordInputProps, Popover, PopoverAnchor, PopoverClose, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, PortalContainerProvider, type PortalProps, ProgressBarTone, type QuickAction, QuickActionsBar, type QuickActionsBarProps, Quote, ROLE_COMBO_OPTIONS, RadialGauge, type RadialGaugeProps, type RadialGaugeSize, Radio, RadioCards, RadioCardsItem, type RadioCardsItemProps, type RadioCardsProps, type RadioCardsSize, RadioGroup, type RadioGroupOption, type RadioGroupOrientation, type RadioGroupProps, type RadioProps, Resizable, type ResizableDirection, ResizableHandle, type ResizableHandleProps, ResizablePanel, type ResizablePanelProps, type ResizableProps, type ResponsiveChoiceCardSize, RoleBadge, type RoleBadgeProps, type RoleBadgeTone, RoleComboBox, type RoleComboBoxProps, type RoleOption, SCROLLBAR_CLASSES, SchemaForm, type SchemaFormActionsApi, type SchemaFormCheckField, type SchemaFormComboboxField, type SchemaFormCountryField, type SchemaFormCustomField, type SchemaFormDateField, type SchemaFormErrors, type SchemaFormField, type SchemaFormFieldBase, type SchemaFormFieldContext, type SchemaFormFieldSize, type SchemaFormFieldType, type SchemaFormLayout, type SchemaFormListField, type SchemaFormProps, type SchemaFormRadioField, type SchemaFormResult, type SchemaFormSegmentedField, type SchemaFormSelectField, type SchemaFormState, type SchemaFormStep, type SchemaFormSubmitOn, type SchemaFormTextField, type SchemaFormTextType, type SchemaFormTextareaField, type SchemaFormTimeZoneField, type SchemaFormValues, type ScoreDirection, type ScoreRampTone, type ScoreThresholds, type ScoreTone, ScoreValue, type ScoreValueProps, type ScoreValueSize, type ScoreValueTone, type ScoreValueWeight, ScoredRow, type ScoredRowAlign, type ScoredRowGap, type ScoredRowProps, Scrim, type ScrimProps, ScrollArea, type ScrollAreaAxis, type ScrollAreaProps, SearchInput, type SearchInputProps, Section, type SectionProps, type SectionSize, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, Select, SelectControl, type SelectControlProps, type SelectOption, type SelectOptionGroup, type SelectProps, Separator, type SeparatorOrientation, type SeparatorProps, Sidebar, type SidebarContextValue, type SidebarLinkComponent, type SidebarLinkProps, type SidebarNavGroup, type SidebarNavItem, type SidebarProps, SidebarProvider, type SidebarProviderProps, type SidebarRenderState, SidebarSeparator, type SidebarSeparatorProps, SidebarTrigger, type SidebarTriggerProps, SidebarUserCard, type SidebarUserCardProps, Skeleton, type SkeletonProps, type SkeletonShape, Slider, type SliderProps, Slot, type SlotProps, type SpaceToken, Sparkline, type SparklineProps, type SparklineSize, type SparklineVariant, Spinner, type SpinnerProps, type SpinnerSize, StatNumber, type StatNumberProps, type StatNumberSize, type StatNumberWeight, StatTile, type StatTileProps, StatusBadge, type StatusBadgeProps, type StatusBadgeSize, StatusChip, type StatusChipProps, StatusDot, type StatusDotProps, type StatusDotTone, type StatusTone, type StepItem, type StepStatus, Stepper, type StepperAlign, type StepperCompactInfo, type StepperProps, type StepperSize, StepsList, type StepsListProps, Subheading, Subtitle, Switch, type SwitchProps, type SwitchSize, TIER_COLS, TIER_MIN_PX, type TabItem, Tabs, type TabsActivation, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsOrientation, TabsPanel, type TabsPanelProps, type TabsProps, type TabsRootProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, TagInput, type TagInputParseResult, type TagInputProps, TagPill, type TagPillProps, type TagPillSize, type TagPillTone, Text, TextCode, TextEmphasis, TextLink, type TextLinkProps, type TextLinkTone, TextList, type TextListDensity, TextListItem, type TextListItemProps, type TextListProps, type TextListVariant, type TextProps, TextSmall, TextStrong, TextTiny, type TextTone, Textarea, TextareaControl, type TextareaControlProps, type TextareaProps, TileGrid, type TileGridBreakpoint, type TileGridColumns, type TileGridProps, TimeZoneSelect, type TimeZoneSelectProps, TitleHero, TitlePage, type ToastOptions, type ToastRecord, type ToastTone, Toaster, type ToasterPosition, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupOption, type ToggleGroupProps, type ToggleGroupType, type ToggleProps, type ToggleSize, type ToggleVariant, Tooltip, type TooltipProps, TrailChip, type TrailChipProps, type TreeItemState, TreeView, type TreeViewProps, type TreeViewSize, type TrendDirection, TrendLabel, type TrendLabelProps, type TrendLabelSize, type TrendLabelWeight, TypingIndicator, type TypingIndicatorProps, type UseFilePicker, type UseFilePickerOptions, type UseWidthTierOptions, type UseWidthTierResult, type UserAccountStatus, UserStatusPill, type UserStatusPillProps, VisuallyHidden, type VisuallyHiddenProps, WidgetFooter, type WidgetFooterProps, WidgetGrid, WidgetGridItem, type WidgetGridItemProps, type WidgetGridProps, WidgetGridRow, type WidgetGridRowProps, WidgetHeader, WidgetHeaderAccessoryProvider, type WidgetHeaderAccessoryProviderProps, type WidgetHeaderEyebrowVariant, type WidgetHeaderProps, type WidgetHeight, WidgetTitle, type WidgetTitleProps, type WidgetTitleSize, cn, colsFor, composeRefs, countryOptions, currentZoneName, filterNav, filterNavItems, formatFileSize, getScoreTone, nextTier, paginationRange, quantizeWidth, resolveChartColor, slotWidthPx, tabId, tabPanelId, tierForWidth, timeZoneOffset, timeZoneOptions, useControlSize, useDependentOptions, useElementWidth, useFieldContext, useFieldControl, useFilePicker, useOverlayDismiss, usePortalContainer, useSidebar, useToast, useWidgetHeaderAccessory, useWidthTier };