@platned/ui 0.9.6 → 0.9.8

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
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, HTMLAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes, ChangeEventHandler, RefObject, ReactElement, Ref, ComponentType, AnchorHTMLAttributes, RefAttributes, Component, ErrorInfo } from 'react';
2
+ import { ButtonHTMLAttributes, ReactNode, InputHTMLAttributes, HTMLAttributes, LabelHTMLAttributes, TextareaHTMLAttributes, SelectHTMLAttributes, ChangeEventHandler, RefObject, FormHTMLAttributes, ReactElement, Ref, ComponentType, AnchorHTMLAttributes, RefAttributes, Component, ErrorInfo } from 'react';
3
3
  import { ClassValue } from 'clsx';
4
4
  import { P as ProgressBarTone } from './data-table-JX-vnL0F.js';
5
5
  export { C as ColumnMobileRole, a as CreateSelectColumnOptions, D as DataTable, b as DataTableAlign, c as DataTableColumnAlign, d as DataTableColumnHeader, e as DataTableColumnHeaderProps, f as DataTableDensity, g as DataTableManual, h as DataTablePagination, i as DataTablePaginationProps, j as DataTableProps, k as DataTableRowLinkProps, l as DataTableSearchOptions, m as DataTableState, n as DataTableViewOptions, o as DataTableViewOptionsProps, p as ProgressBar, q as ProgressBarProps, r as ProgressBarSize, S as SELECT_COLUMN_ID, T as Table, s as TableBody, t as TableCaption, u as TableCaptionProps, v as TableCell, w as TableCellBadge, x as TableCellBadgeProps, y as TableCellLeadText, z as TableCellLeadTextProps, A as TableCellProgress, B as TableCellProgressProps, E as TableCellProps, F as TableCellSize, G as TableCellText, H as TableCellTextProps, I as TableDensity, J as TableFooter, K as TableHead, L as TableHeadProps, M as TableHeader, N as TableProps, O as TableRow, Q as TableRowProps, R as TableRowTone, U as TableSortDirection, V as createSelectColumn } from './data-table-JX-vnL0F.js';
@@ -387,10 +387,12 @@ declare const NativeSelect: react.ForwardRefExoticComponent<NativeSelectProps &
387
387
 
388
388
  interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'value' | 'defaultValue'> {
389
389
  label?: string;
390
- description?: string;
390
+ /** Guidance above the control. A `ReactNode` from 0.9.8, e.g. with a link. */
391
+ description?: ReactNode;
391
392
  /** Red border + message shown below the control. Also sets `aria-invalid`. */
392
393
  error?: string;
393
- hint?: string;
394
+ /** Help below the control. A `ReactNode` from 0.9.8, e.g. with a button. */
395
+ hint?: ReactNode;
394
396
  size?: InputSize;
395
397
  /** The selected date as an ISO `YYYY-MM-DD` string, `''` for none. Controlled. */
396
398
  value?: string;
@@ -783,6 +785,456 @@ interface FormCardFooterProps {
783
785
  }
784
786
  declare function FormCardFooter({ onSaveDraft, onBack, onContinue, continueLabel, continueIcon, backDisabled, continueDisabled, saveDraftDisabled, }: FormCardFooterProps): react.JSX.Element;
785
787
 
788
+ interface ComboboxOption<T = string> {
789
+ value: T;
790
+ label: string;
791
+ description?: string;
792
+ disabled?: boolean;
793
+ /** Optional group heading. Options sharing a group are rendered together. */
794
+ group?: string;
795
+ /**
796
+ * A leading glyph, e.g. a flag or an avatar. It is shown before the option's label in the
797
+ * list and, for the selected option, inside the field. Decorative: it is `aria-hidden`, so
798
+ * the label must say everything. New in 0.9.0.
799
+ */
800
+ icon?: ReactNode;
801
+ }
802
+ interface ComboboxProps<T extends string = string> {
803
+ options: ComboboxOption<T>[];
804
+ value?: T | null;
805
+ defaultValue?: T | null;
806
+ onValueChange?: (value: T | null) => void;
807
+ /** Accessible name. Required unless the combobox is inside a `Field` with a label. */
808
+ label?: string;
809
+ placeholder?: string;
810
+ size?: InputSize;
811
+ disabled?: boolean;
812
+ invalid?: boolean;
813
+ /** Allow clearing back to `null` by selecting the chosen option again. Default `true`. */
814
+ clearable?: boolean;
815
+ /** Override the filter. Default is a case-insensitive substring match on `label`. */
816
+ filter?: (option: ComboboxOption<T>, query: string) => boolean;
817
+ /** Shown when nothing matches. */
818
+ emptyMessage?: ReactNode;
819
+ /** Custom option rendering. Receives the option and whether it is selected. */
820
+ renderOption?: (option: ComboboxOption<T>, selected: boolean) => ReactNode;
821
+ className?: string;
822
+ }
823
+ /**
824
+ * Single-select combobox with a text filter — an autocomplete.
825
+ *
826
+ * Implements the ARIA 1.2 combobox pattern, which is specific about a few things that are
827
+ * easy to get wrong and were all wrong in the `RoleComboBox` this replaces:
828
+ *
829
+ * - **`role="combobox"` belongs on the text input**, not on a wrapping `<div>`. The div
830
+ * version means the state attributes sit on an element the user never focuses.
831
+ * - **`aria-activedescendant`, not focus, tracks the highlighted option.** Focus stays in
832
+ * the input the whole time — moving DOM focus into the list breaks typing. This is the
833
+ * one place a roving tabindex is the *wrong* answer, which is why this does not use
834
+ * `useRovingFocus`.
835
+ * - **`aria-controls` points at the listbox**, which therefore needs a stable id.
836
+ * - The listbox is portaled, so it is not clipped by a `Card` or a scrolling container.
837
+ *
838
+ * For a command palette — filter over *actions* rather than a value — use `Command`.
839
+ */
840
+ declare function Combobox<T extends string = string>({ options, value: valueProp, defaultValue, onValueChange, label, placeholder, size: sizeProp, disabled: disabledProp, invalid, clearable, filter, emptyMessage, renderOption, className, }: ComboboxProps<T>): react.JSX.Element;
841
+
842
+ type CheckControlSize = 'sm' | 'md';
843
+
844
+ type RadioGroupOrientation = 'vertical' | 'horizontal';
845
+ /** One radio as data: the `Radio` props it renders with. New in 0.8.0. */
846
+ interface RadioGroupOption {
847
+ value: string;
848
+ label: ReactNode;
849
+ description?: ReactNode;
850
+ disabled?: boolean;
851
+ }
852
+ interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
853
+ /** The parts: `Radio`s. Omit when passing `options`. */
854
+ children?: ReactNode;
855
+ /** The radios as data, each rendered as a `Radio`. New in 0.8.0. Use it or `children`. */
856
+ options?: readonly RadioGroupOption[];
857
+ value?: string;
858
+ defaultValue?: string;
859
+ onValueChange?: (value: string) => void;
860
+ /** Shared `name` for the underlying inputs. Generated when omitted. */
861
+ name?: string;
862
+ /** Names the group. Prefer wrapping in `FieldSet` + `FieldLegend` for a visible label. */
863
+ label?: string;
864
+ size?: CheckControlSize;
865
+ orientation?: RadioGroupOrientation;
866
+ disabled?: boolean;
867
+ invalid?: boolean;
868
+ required?: boolean;
869
+ }
870
+ /**
871
+ * Radio group. Matches the `Type=Radio` half of Figma's `Checkbox` set, and shares its
872
+ * geometry through `CheckControl`.
873
+ *
874
+ * Built on real `<input type="radio">` elements sharing a `name`, which is what buys the
875
+ * whole keyboard contract for free: arrow keys move *and* select, only the checked radio is
876
+ * in the tab sequence, and the group is announced as "2 of 4". A `div`-based
877
+ * `role="radiogroup"` has to reimplement all of that, and the version of this pattern the
878
+ * library already had — `SegmentedControl` before 0.4.0 — shipped with none of it.
879
+ *
880
+ * `role="radiogroup"` is still set explicitly rather than relying on a `<fieldset>`, so the
881
+ * group works with or without a visible legend.
882
+ */
883
+ declare const RadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>>;
884
+ interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'onChange' | 'checked'> {
885
+ value: string;
886
+ label?: ReactNode;
887
+ /** Second line under the label. Matches Figma's `Supporting text` axis. */
888
+ description?: ReactNode;
889
+ /**
890
+ * Standalone only (outside a `RadioGroup`): whether this radio is the selected one. Inside a
891
+ * group the group's `value` decides, and this is ignored. New in 0.9.5.
892
+ */
893
+ checked?: boolean;
894
+ /** Standalone only: called with `true` when the user selects this radio. New in 0.9.5. */
895
+ onCheckedChange?: (checked: boolean) => void;
896
+ /** Standalone only; a group sets it for its radios. New in 0.9.5. */
897
+ size?: CheckControlSize;
898
+ /** Standalone only; a group sets it for its radios. New in 0.9.5. */
899
+ invalid?: boolean;
900
+ className?: string;
901
+ }
902
+ /**
903
+ * One radio. Inside a `RadioGroup` it takes its name, value and state from the group.
904
+ *
905
+ * From 0.9.5 it also works **standalone**, for radios a group's wrapper cannot hold, such as one
906
+ * per row of a table ("Make this the default"). Give every radio of the set the same `name`,
907
+ * control `checked`, and handle `onCheckedChange`. Native radios that share a name are one group
908
+ * wherever they sit in the DOM, so arrow keys, the single tab stop and "2 of 4" still work. Name
909
+ * the set with the column header, and name each radio with `aria-label` when it has no `label`.
910
+ * This is MUI's standalone `Radio`; a `div role="radiogroup"` around a whole table would put the
911
+ * table's other controls inside the group.
912
+ */
913
+ declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
914
+
915
+ interface SegmentedControlOption {
916
+ value: string;
917
+ label: string;
918
+ disabled?: boolean;
919
+ }
920
+ interface SegmentedControlProps {
921
+ options: SegmentedControlOption[];
922
+ /** Controlled selection. Omit and pass `defaultValue` for uncontrolled. */
923
+ value?: string;
924
+ defaultValue?: string;
925
+ onValueChange?: (value: string) => void;
926
+ /** Names the group. Required by the APG when the control has no visible label. */
927
+ label?: string;
928
+ className?: string;
929
+ }
930
+ /**
931
+ * Single-select segmented toggle.
932
+ *
933
+ * Through 0.3.0 this had **no ARIA whatsoever** — the selected segment was distinguished
934
+ * only by `bg-default shadow-panel`, so a screen reader user could not tell which of the
935
+ * segments was active. It is single-select, so `radiogroup`/`radio` is the correct pattern
936
+ * rather than a row of `aria-pressed` buttons: it announces "2 of 3" and lets the arrow
937
+ * keys move between options, which a toggle-button group does not.
938
+ *
939
+ * `onChange` was also optional, so `<SegmentedControl options value />` rendered a control
940
+ * that looked interactive and silently did nothing.
941
+ */
942
+ declare function SegmentedControl({ options, value: valueProp, defaultValue, onValueChange, label, className, }: SegmentedControlProps): react.JSX.Element;
943
+
944
+ /** The values a `DynamicForm` holds, by field name. */
945
+ type DynamicFormValues = Record<string, unknown>;
946
+ /**
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.
952
+ */
953
+ type DynamicFormResult = {
954
+ ok: true;
955
+ } | {
956
+ ok: false;
957
+ error?: string | null;
958
+ fieldErrors?: Record<string, string | undefined>;
959
+ };
960
+ /** Field messages by name (or `list.0.item` path). `undefined` means "no message". */
961
+ type DynamicFormErrors = Record<string, string | undefined>;
962
+ /** `large` spans both columns of the `grid` layout. Ignored by `stack` and `inline`. */
963
+ type DynamicFormFieldSize = 'medium' | 'large';
964
+ /**
965
+ * `grid`: two columns from `sm` up, grouped into sections (record forms).
966
+ * `stack`: one column (sign-in and other narrow forms).
967
+ * `inline`: a wrapping row of controls with no sections (filter toolbars).
968
+ */
969
+ type DynamicFormLayout = 'grid' | 'stack' | 'inline';
970
+ /** `submit`: on the submit button. `change`: on every change, debounced for typing (filters). */
971
+ type DynamicFormSubmitOn = 'submit' | 'change';
972
+ /** What the form reports to `onStateChange` and to an `actions` render function. */
973
+ interface DynamicFormState {
974
+ /** `onSubmit` is running. */
975
+ pending: boolean;
976
+ /** The values differ from the ones the form started with, or last saved. */
977
+ dirty: boolean;
978
+ /** No field on the form (on the current step, with `steps`) has a validation error. */
979
+ valid: boolean;
980
+ /** Index of the current step, with `steps`. Otherwise `0`. */
981
+ step: number;
982
+ }
983
+ /** Handed to a `custom` field's `render` and to a field's `onValueChange`. */
984
+ interface DynamicFormFieldContext<V extends object = DynamicFormValues> {
985
+ /** The field's name, or its `list.0.item` path inside a `list` row. */
986
+ name: string;
987
+ value: unknown;
988
+ setValue: (value: unknown) => void;
989
+ /** All values. For a field inside a `list` row, the row's values. */
990
+ values: V;
991
+ /** Set another field, by name. Inside a `list` row, another field of the same row. */
992
+ setField: (name: string, value: unknown) => void;
993
+ /** The message to show, if any. */
994
+ error: string | undefined;
995
+ /** Mark the field as visited, so its validation message may show. */
996
+ touch: () => void;
997
+ disabled: boolean;
998
+ readOnly: boolean;
999
+ required: boolean;
1000
+ pending: boolean;
1001
+ }
1002
+ type Maybe<V, T> = T | ((values: V) => T);
1003
+ interface DynamicFormFieldBase<V extends object = DynamicFormValues> {
1004
+ /** The key in the form's values. */
1005
+ name: string;
1006
+ label: string;
1007
+ /** Keep the label for assistive tech only, e.g. on a filter toolbar. */
1008
+ hideLabel?: boolean;
1009
+ /** Help under the control, replaced by the error while there is one. */
1010
+ hint?: Maybe<V, ReactNode>;
1011
+ /** Shown at the end of the label row, e.g. a "Forgot password?" link. */
1012
+ labelAction?: ReactNode;
1013
+ required?: boolean;
1014
+ /** Shown but not editable or focusable, and dimmed. */
1015
+ disabled?: Maybe<V, boolean>;
1016
+ /** Shown and focusable but not editable, with no dimming. Choice fields show their label as text. */
1017
+ readOnly?: Maybe<V, boolean>;
1018
+ /** Default `medium`. */
1019
+ size?: DynamicFormFieldSize;
1020
+ /** Heading of the section the field is in. Fields with none go before the first section. */
1021
+ section?: string;
1022
+ /** Id of the step the field is on, with `steps`. */
1023
+ step?: string;
1024
+ /** Leave the field out while this returns true. Its value is kept and still submitted. */
1025
+ hidden?: (values: V) => boolean;
1026
+ /** Called after the value changes, e.g. to reset a field that depends on this one. */
1027
+ onValueChange?: (value: unknown, ctx: DynamicFormFieldContext<V>) => void;
1028
+ /** Layout only: a width on a filter toolbar, a column placement. */
1029
+ className?: string;
1030
+ }
1031
+ type DynamicFormTextType = 'text' | 'email' | 'tel' | 'url' | 'number' | 'currency' | 'password' | 'search';
1032
+ /** 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;
1035
+ placeholder?: string;
1036
+ autoComplete?: string;
1037
+ maxLength?: number;
1038
+ /** Rewrites what is typed before it is stored, e.g. `(v) => v.toUpperCase()`. */
1039
+ transform?: (value: string) => string;
1040
+ }
1041
+ interface DynamicFormTextareaField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1042
+ type: 'textarea';
1043
+ rows?: number;
1044
+ placeholder?: string;
1045
+ maxLength?: number;
1046
+ transform?: (value: string) => string;
1047
+ }
1048
+ /** Value: the option's value, or `null` for none. */
1049
+ interface DynamicFormSelectField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1050
+ type: 'select';
1051
+ options: Maybe<V, (SelectOption | SelectOptionGroup)[]>;
1052
+ placeholder?: string;
1053
+ }
1054
+ /** Value: the option's value, or `null` for none. */
1055
+ interface DynamicFormComboboxField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1056
+ type: 'combobox';
1057
+ options: Maybe<V, ComboboxOption[]>;
1058
+ placeholder?: string;
1059
+ emptyMessage?: ReactNode;
1060
+ /** Picking the chosen option again clears it. Default `true`. */
1061
+ clearable?: boolean;
1062
+ }
1063
+ /** Value: an ISO 3166-1 alpha-2 code, or `null`. */
1064
+ interface DynamicFormCountryField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1065
+ type: 'country';
1066
+ countries?: readonly string[];
1067
+ locale?: string;
1068
+ renderFlag?: (code: string) => ReactNode;
1069
+ placeholder?: string;
1070
+ }
1071
+ /** Value: an IANA zone name, or `null`. */
1072
+ interface DynamicFormTimeZoneField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1073
+ type: 'timezone';
1074
+ timeZones?: readonly string[];
1075
+ placeholder?: string;
1076
+ }
1077
+ /** Value: the chosen option's value, or `null`. */
1078
+ interface DynamicFormRadioField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1079
+ type: 'radio';
1080
+ options: Maybe<V, readonly RadioGroupOption[]>;
1081
+ orientation?: 'vertical' | 'horizontal';
1082
+ }
1083
+ /** Value: the chosen option's value. */
1084
+ interface DynamicFormSegmentedField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1085
+ type: 'segmented';
1086
+ options: Maybe<V, SegmentedControlOption[]>;
1087
+ }
1088
+ /** Value: an ISO `YYYY-MM-DD` string, `''` for none. */
1089
+ interface DynamicFormDateField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1090
+ type: 'date';
1091
+ min?: string;
1092
+ max?: string;
1093
+ placeholder?: string;
1094
+ }
1095
+ /** Value: a boolean. The label sits beside the control; `hint` is its supporting text. */
1096
+ interface DynamicFormCheckField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1097
+ type: 'checkbox' | 'switch';
1098
+ }
1099
+ /**
1100
+ * Value: an array of rows, each an object holding the row's `fields`. Rows render as a line of
1101
+ * controls with a remove button; errors for a row's field use the path `name.index.field`.
1102
+ */
1103
+ interface DynamicFormListField<V extends object = DynamicFormValues> extends DynamicFormFieldBase<V> {
1104
+ type: 'list';
1105
+ /** The controls of one row. `section`, `step` and `size` are ignored on them. */
1106
+ fields: DynamicFormField[];
1107
+ /** The row the Add button appends. Omit together with `renderAdd` to offer no Add button. */
1108
+ newItem?: () => DynamicFormValues;
1109
+ /** Label of the Add button. Default "Add". */
1110
+ addLabel?: string;
1111
+ /** 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;
1113
+ /** Fewest rows: remove buttons are disabled at this count. */
1114
+ min?: number;
1115
+ /** Most rows: the Add button is disabled at this count. */
1116
+ max?: number;
1117
+ /** Stable key of a row. Default: its index. */
1118
+ itemKey?: (item: DynamicFormValues, index: number) => string;
1119
+ /** Accessible name of a row's remove button. Default "Remove row n". */
1120
+ removeLabel?: (item: DynamicFormValues, index: number) => string;
1121
+ /** Whether a row may be removed. Default: always, subject to `min`. */
1122
+ canRemove?: (item: DynamicFormValues, index: number) => boolean;
1123
+ /** Content above the rows, e.g. column headings. */
1124
+ header?: ReactNode;
1125
+ /** Shown when there are no rows. */
1126
+ empty?: ReactNode;
1127
+ }
1128
+ /**
1129
+ * Anything the other types do not cover. `render` gets the field's value, setter and error.
1130
+ * By default it is wrapped in the field chrome (label, hint, error); set `bare` to render it alone.
1131
+ */
1132
+ interface DynamicFormCustomField<V extends object = DynamicFormValues> extends Omit<DynamicFormFieldBase<V>, 'label'> {
1133
+ type: 'custom';
1134
+ label?: string;
1135
+ render: (ctx: DynamicFormFieldContext<V>) => ReactNode;
1136
+ bare?: boolean;
1137
+ }
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 {
1141
+ id: string;
1142
+ label: string;
1143
+ }
1144
+
1145
+ /** Handed to an `actions` render function, for buttons of your own. */
1146
+ interface DynamicFormActionsApi extends DynamicFormState {
1147
+ /** Submits the form, as its submit button does (validation first). */
1148
+ submit: () => void;
1149
+ /** With `steps`: back one step. */
1150
+ back: () => void;
1151
+ /** With `steps`: whether the current step is the last. Otherwise `true`. */
1152
+ lastStep: boolean;
1153
+ }
1154
+ interface DynamicFormProps<V extends object = DynamicFormValues> extends Omit<FormHTMLAttributes<HTMLFormElement>, 'onSubmit' | 'children' | 'title' | 'defaultValue'> {
1155
+ /** The fields, in order. A field's `section` groups it under a heading. */
1156
+ fields: DynamicFormField<V>[];
1157
+ /** The form's accessible name. */
1158
+ title: string;
1159
+ /** Starting values when the form holds them itself. */
1160
+ defaultValues?: Partial<V>;
1161
+ /** Controlled values. Pair with `onValuesChange`. */
1162
+ values?: V;
1163
+ /** Every change, with the new values and the name of the field that changed. */
1164
+ onValuesChange?: (values: NoInfer<V>, name: string) => void;
1165
+ /**
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`.
1168
+ */
1169
+ onSubmit?: (values: NoInfer<V>) => DynamicFormResult | void | Promise<DynamicFormResult | void>;
1170
+ /**
1171
+ * Messages by field name (or `list.0.field` path), for values as they stand. A message shows
1172
+ * once its field has been visited or a submit was tried, and blocks the submit.
1173
+ */
1174
+ validate?: (values: NoInfer<V>) => DynamicFormErrors;
1175
+ /**
1176
+ * The message for an empty `required` field that `validate` leaves alone. Default
1177
+ * "<Label> is required." Pass `false` to leave required checks to `validate`.
1178
+ */
1179
+ requiredMessage?: ((field: DynamicFormField<V>) => string) | false;
1180
+ /** Messages from the page that win over everything else. `undefined` entries are ignored. */
1181
+ errors?: DynamicFormErrors;
1182
+ /**
1183
+ * When a validation message first shows. `blur` (default): once its field has been visited, or a
1184
+ * submit was tried. `submit`: only once a submit was tried, as sign-in screens do.
1185
+ */
1186
+ validateOn?: 'blur' | 'submit';
1187
+ /** Default `grid`. */
1188
+ layout?: DynamicFormLayout;
1189
+ /** Default `submit`. `change` submits on every change, with typing debounced. */
1190
+ submitOn?: DynamicFormSubmitOn;
1191
+ /** Debounce for typing with `submitOn="change"`, in ms. Default 300. */
1192
+ debounce?: number;
1193
+ /** Shows one step at a time; fields name theirs with `step`. Next validates the step. */
1194
+ steps?: DynamicFormStep[];
1195
+ /** Every field read-only, and no buttons. */
1196
+ readOnly?: boolean;
1197
+ /** Every field disabled. */
1198
+ disabled?: boolean;
1199
+ /** Control size for every field. */
1200
+ size?: InputSize;
1201
+ /** Default "Save". */
1202
+ submitLabel?: string;
1203
+ /** Read out while saving. Default "Saving". */
1204
+ pendingLabel?: string;
1205
+ /** Default "Next" and "Back", with `steps`. */
1206
+ nextLabel?: string;
1207
+ backLabel?: string;
1208
+ /** Shows a Cancel button that calls it. */
1209
+ onCancel?: () => void;
1210
+ cancelLabel?: string;
1211
+ /** Replaces the default buttons. */
1212
+ actions?: ReactNode | ((api: DynamicFormActionsApi) => ReactNode);
1213
+ /** Default: shown unless `readOnly` or `submitOn="change"`. */
1214
+ showActions?: boolean;
1215
+ /** Pending, dirty, valid and step, for buttons and guards outside the form. */
1216
+ onStateChange?: (state: DynamicFormState) => void;
1217
+ /** Extra content after the fields, before the buttons. */
1218
+ children?: ReactNode;
1219
+ }
1220
+ /**
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.
1223
+ *
1224
+ * It covers record forms (`grid`, sections, one Save), narrow forms such as sign-in (`stack`),
1225
+ * filter toolbars (`inline` with `submitOn="change"`) and step-by-step flows (`steps`). For
1226
+ * the one odd field, use a `custom` field (any control, wired to the form's value and error),
1227
+ * or a `list` field for repeated rows, rather than building the whole form by hand.
1228
+ *
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;
1237
+
786
1238
  type BadgeColor = 'gray' | 'red' | 'yellow' | 'lime' | 'green' | 'teal' | 'blue' | 'pink' | 'slate' | 'violet';
787
1239
  /**
788
1240
  * Every `BadgeColor`, in a stable order: the library's categorical palette. Index it to give
@@ -874,60 +1326,6 @@ interface RoleComboBoxProps {
874
1326
  */
875
1327
  declare function RoleComboBox({ value, onChange, options, label, size, disabled, className, }: RoleComboBoxProps): react.JSX.Element;
876
1328
 
877
- interface ComboboxOption<T = string> {
878
- value: T;
879
- label: string;
880
- description?: string;
881
- disabled?: boolean;
882
- /** Optional group heading. Options sharing a group are rendered together. */
883
- group?: string;
884
- /**
885
- * A leading glyph, e.g. a flag or an avatar. It is shown before the option's label in the
886
- * list and, for the selected option, inside the field. Decorative: it is `aria-hidden`, so
887
- * the label must say everything. New in 0.9.0.
888
- */
889
- icon?: ReactNode;
890
- }
891
- interface ComboboxProps<T extends string = string> {
892
- options: ComboboxOption<T>[];
893
- value?: T | null;
894
- defaultValue?: T | null;
895
- onValueChange?: (value: T | null) => void;
896
- /** Accessible name. Required unless the combobox is inside a `Field` with a label. */
897
- label?: string;
898
- placeholder?: string;
899
- size?: InputSize;
900
- disabled?: boolean;
901
- invalid?: boolean;
902
- /** Allow clearing back to `null` by selecting the chosen option again. Default `true`. */
903
- clearable?: boolean;
904
- /** Override the filter. Default is a case-insensitive substring match on `label`. */
905
- filter?: (option: ComboboxOption<T>, query: string) => boolean;
906
- /** Shown when nothing matches. */
907
- emptyMessage?: ReactNode;
908
- /** Custom option rendering. Receives the option and whether it is selected. */
909
- renderOption?: (option: ComboboxOption<T>, selected: boolean) => ReactNode;
910
- className?: string;
911
- }
912
- /**
913
- * Single-select combobox with a text filter — an autocomplete.
914
- *
915
- * Implements the ARIA 1.2 combobox pattern, which is specific about a few things that are
916
- * easy to get wrong and were all wrong in the `RoleComboBox` this replaces:
917
- *
918
- * - **`role="combobox"` belongs on the text input**, not on a wrapping `<div>`. The div
919
- * version means the state attributes sit on an element the user never focuses.
920
- * - **`aria-activedescendant`, not focus, tracks the highlighted option.** Focus stays in
921
- * the input the whole time — moving DOM focus into the list breaks typing. This is the
922
- * one place a roving tabindex is the *wrong* answer, which is why this does not use
923
- * `useRovingFocus`.
924
- * - **`aria-controls` points at the listbox**, which therefore needs a stable id.
925
- * - The listbox is portaled, so it is not clipped by a `Card` or a scrolling container.
926
- *
927
- * For a command palette — filter over *actions* rather than a value — use `Command`.
928
- */
929
- declare function Combobox<T extends string = string>({ options, value: valueProp, defaultValue, onValueChange, label, placeholder, size: sizeProp, disabled, invalid, clearable, filter, emptyMessage, renderOption, className, }: ComboboxProps<T>): react.JSX.Element;
930
-
931
1329
  declare const COUNTRY_CODES: readonly string[];
932
1330
  interface CountrySelectProps extends Omit<ComboboxProps<string>, 'options' | 'filter' | 'renderOption'> {
933
1331
  /** Restrict the list to these ISO 3166-1 alpha-2 codes. Default: every code. */
@@ -1210,8 +1608,6 @@ interface EntityIconBadgeProps {
1210
1608
  }
1211
1609
  declare function EntityIconBadge({ size, tone, shape, hue, bg, iconColor, children, className }: EntityIconBadgeProps): react.JSX.Element;
1212
1610
 
1213
- type CheckControlSize = 'sm' | 'md';
1214
-
1215
1611
  type CheckboxSize = CheckControlSize;
1216
1612
  interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'onChange' | 'checked'> {
1217
1613
  /** Controlled. Omit and pass `defaultChecked` for uncontrolled. */
@@ -1242,77 +1638,6 @@ interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'siz
1242
1638
  */
1243
1639
  declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<HTMLInputElement>>;
1244
1640
 
1245
- type RadioGroupOrientation = 'vertical' | 'horizontal';
1246
- /** One radio as data: the `Radio` props it renders with. New in 0.8.0. */
1247
- interface RadioGroupOption {
1248
- value: string;
1249
- label: ReactNode;
1250
- description?: ReactNode;
1251
- disabled?: boolean;
1252
- }
1253
- interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
1254
- /** The parts: `Radio`s. Omit when passing `options`. */
1255
- children?: ReactNode;
1256
- /** The radios as data, each rendered as a `Radio`. New in 0.8.0. Use it or `children`. */
1257
- options?: readonly RadioGroupOption[];
1258
- value?: string;
1259
- defaultValue?: string;
1260
- onValueChange?: (value: string) => void;
1261
- /** Shared `name` for the underlying inputs. Generated when omitted. */
1262
- name?: string;
1263
- /** Names the group. Prefer wrapping in `FieldSet` + `FieldLegend` for a visible label. */
1264
- label?: string;
1265
- size?: CheckControlSize;
1266
- orientation?: RadioGroupOrientation;
1267
- disabled?: boolean;
1268
- invalid?: boolean;
1269
- required?: boolean;
1270
- }
1271
- /**
1272
- * Radio group. Matches the `Type=Radio` half of Figma's `Checkbox` set, and shares its
1273
- * geometry through `CheckControl`.
1274
- *
1275
- * Built on real `<input type="radio">` elements sharing a `name`, which is what buys the
1276
- * whole keyboard contract for free: arrow keys move *and* select, only the checked radio is
1277
- * in the tab sequence, and the group is announced as "2 of 4". A `div`-based
1278
- * `role="radiogroup"` has to reimplement all of that, and the version of this pattern the
1279
- * library already had — `SegmentedControl` before 0.4.0 — shipped with none of it.
1280
- *
1281
- * `role="radiogroup"` is still set explicitly rather than relying on a `<fieldset>`, so the
1282
- * group works with or without a visible legend.
1283
- */
1284
- declare const RadioGroup: react.ForwardRefExoticComponent<RadioGroupProps & react.RefAttributes<HTMLDivElement>>;
1285
- interface RadioProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'onChange' | 'checked'> {
1286
- value: string;
1287
- label?: ReactNode;
1288
- /** Second line under the label. Matches Figma's `Supporting text` axis. */
1289
- description?: ReactNode;
1290
- /**
1291
- * Standalone only (outside a `RadioGroup`): whether this radio is the selected one. Inside a
1292
- * group the group's `value` decides, and this is ignored. New in 0.9.5.
1293
- */
1294
- checked?: boolean;
1295
- /** Standalone only: called with `true` when the user selects this radio. New in 0.9.5. */
1296
- onCheckedChange?: (checked: boolean) => void;
1297
- /** Standalone only; a group sets it for its radios. New in 0.9.5. */
1298
- size?: CheckControlSize;
1299
- /** Standalone only; a group sets it for its radios. New in 0.9.5. */
1300
- invalid?: boolean;
1301
- className?: string;
1302
- }
1303
- /**
1304
- * One radio. Inside a `RadioGroup` it takes its name, value and state from the group.
1305
- *
1306
- * From 0.9.5 it also works **standalone**, for radios a group's wrapper cannot hold, such as one
1307
- * per row of a table ("Make this the default"). Give every radio of the set the same `name`,
1308
- * control `checked`, and handle `onCheckedChange`. Native radios that share a name are one group
1309
- * wherever they sit in the DOM, so arrow keys, the single tab stop and "2 of 4" still work. Name
1310
- * the set with the column header, and name each radio with `aria-label` when it has no `label`.
1311
- * This is MUI's standalone `Radio`; a `div role="radiogroup"` around a whole table would put the
1312
- * table's other controls inside the group.
1313
- */
1314
- declare const Radio: react.ForwardRefExoticComponent<RadioProps & react.RefAttributes<HTMLInputElement>>;
1315
-
1316
1641
  /** `MultiSelectCard`'s sizes, so the single- and multi-select cards line up. `lg` from 0.9.0. */
1317
1642
  type RadioCardsSize = ChoiceCardSize;
1318
1643
  interface RadioCardsProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'defaultValue'> {
@@ -1404,35 +1729,6 @@ interface CheckboxGroupItemProps {
1404
1729
  }
1405
1730
  declare const CheckboxGroupItem: react.ForwardRefExoticComponent<CheckboxGroupItemProps & react.RefAttributes<HTMLInputElement>>;
1406
1731
 
1407
- interface SegmentedControlOption {
1408
- value: string;
1409
- label: string;
1410
- disabled?: boolean;
1411
- }
1412
- interface SegmentedControlProps {
1413
- options: SegmentedControlOption[];
1414
- /** Controlled selection. Omit and pass `defaultValue` for uncontrolled. */
1415
- value?: string;
1416
- defaultValue?: string;
1417
- onValueChange?: (value: string) => void;
1418
- /** Names the group. Required by the APG when the control has no visible label. */
1419
- label?: string;
1420
- className?: string;
1421
- }
1422
- /**
1423
- * Single-select segmented toggle.
1424
- *
1425
- * Through 0.3.0 this had **no ARIA whatsoever** — the selected segment was distinguished
1426
- * only by `bg-default shadow-panel`, so a screen reader user could not tell which of the
1427
- * segments was active. It is single-select, so `radiogroup`/`radio` is the correct pattern
1428
- * rather than a row of `aria-pressed` buttons: it announces "2 of 3" and lets the arrow
1429
- * keys move between options, which a toggle-button group does not.
1430
- *
1431
- * `onChange` was also optional, so `<SegmentedControl options value />` rendered a control
1432
- * that looked interactive and silently did nothing.
1433
- */
1434
- declare function SegmentedControl({ options, value: valueProp, defaultValue, onValueChange, label, className, }: SegmentedControlProps): react.JSX.Element;
1435
-
1436
1732
  interface SliderProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size' | 'onChange' | 'value'> {
1437
1733
  value?: number;
1438
1734
  defaultValue?: number;
@@ -3650,8 +3946,9 @@ interface SidebarTriggerProps extends Omit<IconButtonProps, 'aria-label' | 'chil
3650
3946
  }
3651
3947
  /**
3652
3948
  * The menu button that opens the sidebar's drawer below `md`. New in 0.9.6. Put it in the
3653
- * app header; it needs a `SidebarProvider` above both. Hidden from `md` up, where the
3654
- * sidebar is on the page.
3949
+ * app header, with a `SidebarProvider` above both. Hidden from `md` up, where the sidebar is
3950
+ * on the page. Outside a provider it renders nothing (0.9.7), so a header that is also used
3951
+ * on its own — in a test, a story — does not need one.
3655
3952
  */
3656
3953
  declare const SidebarTrigger: react.ForwardRefExoticComponent<SidebarTriggerProps & RefAttributes<HTMLButtonElement>>;
3657
3954
  interface NavTreeItem {
@@ -5393,4 +5690,4 @@ declare function ChatBubble({ sender, children, failed, className }: ChatBubbleP
5393
5690
 
5394
5691
  declare function AuroraBackdrop(): react.JSX.Element;
5395
5692
 
5396
- 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, 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 };
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 };