@capra/core 1.8.1 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/index.cjs +330 -92
  2. package/dist/index.d.cts +663 -639
  3. package/dist/index.d.mts +663 -639
  4. package/dist/index.mjs +317 -80
  5. package/dist/style.css +328 -167
  6. package/docs/core-alert--usage.md +2 -0
  7. package/docs/core-anchor--usage.md +2 -0
  8. package/docs/core-autocompletefield--usage.md +2 -0
  9. package/docs/core-badge--usage.md +2 -0
  10. package/docs/core-breadcrumbs--usage.md +2 -0
  11. package/docs/core-button--usage.md +2 -0
  12. package/docs/core-buttonlink--usage.md +2 -0
  13. package/docs/core-checkbox--usage.md +2 -0
  14. package/docs/core-collapse--usage.md +2 -0
  15. package/docs/core-datepickerfield--usage.md +2 -0
  16. package/docs/core-daterangepickerfield--usage.md +2 -0
  17. package/docs/core-divider--usage.md +2 -0
  18. package/docs/core-emptystate--usage.md +2 -0
  19. package/docs/core-helpertext--usage.md +2 -0
  20. package/docs/core-iconbutton--usage.md +2 -0
  21. package/docs/core-inputrow--usage.md +2 -0
  22. package/docs/core-label--usage.md +2 -0
  23. package/docs/core-link--usage.md +2 -0
  24. package/docs/core-listitem--usage.md +2 -0
  25. package/docs/core-menu--usage.md +2 -0
  26. package/docs/core-modal--usage.md +2 -0
  27. package/docs/core-pagination--usage.md +2 -0
  28. package/docs/core-pill--usage.md +2 -0
  29. package/docs/core-radio--usage.md +2 -0
  30. package/docs/core-radiogroup--usage.md +2 -0
  31. package/docs/core-radiotile--usage.md +2 -0
  32. package/docs/core-ribbon--usage.md +2 -0
  33. package/docs/core-skeleton--usage.md +1 -2
  34. package/docs/core-skeletongroup--usage.md +0 -1
  35. package/docs/core-spinner--usage.md +2 -0
  36. package/docs/core-switch--usage.md +2 -0
  37. package/docs/core-tabnav--usage.md +2 -0
  38. package/docs/core-tag--usage.md +2 -0
  39. package/docs/core-text--usage.md +2 -0
  40. package/docs/core-textarea--usage.md +2 -0
  41. package/docs/core-textinput--usage.md +2 -0
  42. package/docs/core-tooltip--usage.md +2 -0
  43. package/docs/core-topnav--usage.md +2 -0
  44. package/docs/core-tree--design.md +31 -0
  45. package/docs/core-tree--usage.md +102 -0
  46. package/docs/core-verticalnavigation--usage.md +2 -0
  47. package/docs/history-changelogs-capra-core--docs.md +35 -0
  48. package/docs/index.md +2 -0
  49. package/package.json +9 -10
package/dist/index.d.mts CHANGED
@@ -1,11 +1,14 @@
1
1
  import * as React$2 from "react";
2
2
  import React$1, { HTMLAttributeAnchorTarget, HTMLAttributeReferrerPolicy } from "react";
3
3
  import { SvgIcon } from "@capra/icons";
4
- import { BreadcrumbProps as BreadcrumbProps$1, BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, ComboBoxRenderProps, DatePickerProps, DateRangePickerProps, DateValue, DisclosureProps, Focusable, LinkProps as LinkProps$1, ListBoxItemProps, PopoverProps as PopoverProps$1, PressEvent, RouterProvider } from "react-aria-components";
4
+ import { BreadcrumbProps as BreadcrumbProps$1, BreadcrumbsProps as BreadcrumbsProps$1, ButtonProps as ButtonProps$1, ComboBoxRenderProps, DatePickerProps, DateRangePickerProps, DateValue, DisclosureProps, Focusable, Key, LinkProps as LinkProps$1, ListBoxItemProps, PopoverProps as PopoverProps$1, PressEvent, RouterProvider } from "react-aria-components";
5
5
  import { SvgLogo } from "@capra/icons/logos";
6
-
7
6
  //#region src/utils/stylingOverride.d.ts
8
7
  interface StylingOverrideProps {
8
+ /** Use `FORCE__className` instead. */
9
+ className?: never;
10
+ /** Inline styles are not supported; use component props or `FORCE__className`. */
11
+ style?: never;
9
12
  /**
10
13
  * 🚨 This prop is meant to be an escape hatch. 🚨
11
14
  *
@@ -17,9 +20,9 @@ interface StylingOverrideProps {
17
20
  }
18
21
  //#endregion
19
22
  //#region src/components/Alert/Alert.d.ts
20
- declare const layouts: readonly ["section", "compact", "inline"];
23
+ declare const layouts: readonly ['section', 'compact', 'inline'];
21
24
  type Layout = (typeof layouts)[number];
22
- declare const appearances$3: readonly ["info", "warning", "danger", "success"];
25
+ declare const appearances$3: readonly ['info', 'warning', 'danger', 'success'];
23
26
  type Appearance$3 = (typeof appearances$3)[number];
24
27
  type AlertProps = {
25
28
  /**
@@ -81,33 +84,26 @@ type AlertProps = {
81
84
  /**
82
85
  * Alerts are used to communicate important information to the user.
83
86
  */
84
- declare function Alert({
85
- appearance,
86
- layout,
87
- title,
88
- children,
89
- action,
90
- onDismiss,
91
- FORCE__className: classNameOverride,
92
- ...props
93
- }: AlertProps): React$2.JSX.Element | null;
87
+ declare function Alert({ appearance, layout, title, children, action, onDismiss, FORCE__className: classNameOverride, ...props }: AlertProps): React$2.JSX.Element | null;
94
88
  //#endregion
95
89
  //#region src/components/TextInput/TextInput.d.ts
96
- declare const appearances$2: readonly ["default", "danger", "warning"];
90
+ declare const appearances$2: readonly ['default', 'danger', 'warning'];
97
91
  type Appearance$2 = (typeof appearances$2)[number];
98
- declare const sizes$2: readonly ["sm", "md"];
92
+ declare const sizes$2: readonly ['sm', 'md'];
99
93
  type Size$3 = (typeof sizes$2)[number];
100
94
  type TextInputProps = {
101
95
  /** Appearance of the input.
102
96
  * @default 'default'
103
97
  */
104
- appearance?: Appearance$2; /** Content before the input (e.g. icon). */
98
+ appearance?: Appearance$2;
99
+ /** Content before the input (e.g. icon). */
105
100
  leadingSlot?: React$2.ReactNode;
106
101
  /**
107
102
  * Size of the input.
108
103
  * @default 'md'
109
104
  */
110
- size?: Size$3; /** Content after the input (e.g. icon or clear button). */
105
+ size?: Size$3;
106
+ /** Content after the input (e.g. icon or clear button). */
111
107
  trailingSlot?: React$2.ReactNode;
112
108
  } & StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<'input'>, 'className' | 'style' | 'size'>;
113
109
  /**
@@ -117,20 +113,25 @@ declare const TextInput: React$2.ForwardRefExoticComponent<{
117
113
  /** Appearance of the input.
118
114
  * @default 'default'
119
115
  */
120
- appearance?: Appearance$2; /** Content before the input (e.g. icon). */
116
+ appearance?: Appearance$2;
117
+ /** Content before the input (e.g. icon). */
121
118
  leadingSlot?: React$2.ReactNode;
122
119
  /**
123
120
  * Size of the input.
124
121
  * @default 'md'
125
122
  */
126
- size?: Size$3; /** Content after the input (e.g. icon or clear button). */
123
+ size?: Size$3;
124
+ /** Content after the input (e.g. icon or clear button). */
127
125
  trailingSlot?: React$2.ReactNode;
128
- } & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "style" | "size" | "className"> & React$2.RefAttributes<HTMLInputElement>>;
126
+ } & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "className" | "size" | "style"> & React$2.RefAttributes<HTMLInputElement>>;
129
127
  //#endregion
130
128
  //#region src/components/input-helpers/fieldLayout.d.ts
131
129
  type FieldLayoutProps = {
132
- /** Helper text below the field. Replaced by error message when status is error. Use for requirements, disclaimers. */helperText?: string; /** Label for the field. Required for accessibility; use aria-label if another element acts as label. */
133
- label?: string; /** Label and field layout: vertical (label above) or horizontal (label on leading side). Prefer vertical; use horizontal when space is limited. */
130
+ /** Helper text below the field. Replaced by error message when status is error. Use for requirements, disclaimers. */
131
+ helperText?: string;
132
+ /** Label for the field. Required for accessibility; use aria-label if another element acts as label. */
133
+ label?: string;
134
+ /** Label and field layout: vertical (label above) or horizontal (label on leading side). Prefer vertical; use horizontal when space is limited. */
134
135
  layout?: 'vertical' | 'horizontal';
135
136
  };
136
137
  //#endregion
@@ -142,13 +143,21 @@ type ChildrenOrFunction<T> = React$1.ReactNode | ((values: T & {
142
143
  defaultChildren: React$1.ReactNode | undefined;
143
144
  }) => React$1.ReactNode);
144
145
  type AutocompleteFieldProps = {
145
- /** Whether to show a clear button for the input. */canClear?: boolean; /** The children to render in the dropdown. */
146
- children?: ChildrenOrFunction<ComboBoxRenderProps>; /** A function that filters the items based on the input value. */
147
- itemFilter?: (textValue: string, inputValue: string) => boolean; /** A callback function that is called when the input value changes. */
148
- onChange?: (value: string) => void; /** A callback function that is called when the dropdown is opened or closed. */
149
- onOpenChange?: (isOpen: boolean) => void; /** The items to display in the dropdown. */
150
- items?: AutocompleteItem[]; /** The value of the input. */
151
- value?: AutocompleteItem['value']; /** Whether to automatically size the dropdown to the width of the input. Defaults to `true` */
146
+ /** Whether to show a clear button for the input. */
147
+ canClear?: boolean;
148
+ /** The children to render in the dropdown. */
149
+ children?: ChildrenOrFunction<ComboBoxRenderProps>;
150
+ /** A function that filters the items based on the input value. */
151
+ itemFilter?: (textValue: string, inputValue: string) => boolean;
152
+ /** A callback function that is called when the input value changes. */
153
+ onChange?: (value: string) => void;
154
+ /** A callback function that is called when the dropdown is opened or closed. */
155
+ onOpenChange?: (isOpen: boolean) => void;
156
+ /** The items to display in the dropdown. */
157
+ items?: AutocompleteItem[];
158
+ /** The value of the input. */
159
+ value?: AutocompleteItem['value'];
160
+ /** Whether to automatically size the dropdown to the width of the input. Defaults to `true` */
152
161
  shouldAutoSizeDropdown?: boolean;
153
162
  } & StylingOverrideProps & FieldLayoutProps & Omit<React$1.ComponentPropsWithoutRef<typeof TextInput>, 'value' | 'onChange'>;
154
163
  /**
@@ -159,27 +168,35 @@ declare function AutocompleteItem(props: ListBoxItemProps): React$1.JSX.Element;
159
168
  * AutocompleteField combines a text field with a suggestions list. Consumers can supply static `AutocompleteField.Item` children or an `items` collection with an optional default item renderer. The field allows custom values that are not in the list.
160
169
  */
161
170
  declare const AutocompleteField: ((props: {
162
- /** Whether to show a clear button for the input. */canClear?: boolean; /** The children to render in the dropdown. */
163
- children?: ChildrenOrFunction<ComboBoxRenderProps>; /** A function that filters the items based on the input value. */
164
- itemFilter?: (textValue: string, inputValue: string) => boolean; /** A callback function that is called when the input value changes. */
165
- onChange?: (value: string) => void; /** A callback function that is called when the dropdown is opened or closed. */
166
- onOpenChange?: (isOpen: boolean) => void; /** The items to display in the dropdown. */
167
- items?: AutocompleteItem[]; /** The value of the input. */
168
- value?: AutocompleteItem["value"]; /** Whether to automatically size the dropdown to the width of the input. Defaults to `true` */
171
+ /** Whether to show a clear button for the input. */
172
+ canClear?: boolean;
173
+ /** The children to render in the dropdown. */
174
+ children?: ChildrenOrFunction<ComboBoxRenderProps>;
175
+ /** A function that filters the items based on the input value. */
176
+ itemFilter?: (textValue: string, inputValue: string) => boolean;
177
+ /** A callback function that is called when the input value changes. */
178
+ onChange?: (value: string) => void;
179
+ /** A callback function that is called when the dropdown is opened or closed. */
180
+ onOpenChange?: (isOpen: boolean) => void;
181
+ /** The items to display in the dropdown. */
182
+ items?: AutocompleteItem[];
183
+ /** The value of the input. */
184
+ value?: AutocompleteItem['value'];
185
+ /** Whether to automatically size the dropdown to the width of the input. Defaults to `true` */
169
186
  shouldAutoSizeDropdown?: boolean;
170
187
  } & StylingOverrideProps & FieldLayoutProps & Omit<Omit<{
171
188
  appearance?: Appearance$2;
172
189
  leadingSlot?: React$1.ReactNode;
173
190
  size?: Size$3;
174
191
  trailingSlot?: React$1.ReactNode;
175
- } & StylingOverrideProps & Omit<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "style" | "size" | "className"> & React$1.RefAttributes<HTMLInputElement>, "ref">, "value" | "onChange"> & React$1.RefAttributes<HTMLInputElement>) => React$1.ReactElement) & {
192
+ } & StylingOverrideProps & Omit<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "className" | "size" | "style"> & React$1.RefAttributes<HTMLInputElement>, "ref">, "onChange" | "value"> & React$1.RefAttributes<HTMLInputElement>) => React$1.ReactElement) & {
176
193
  Item: typeof AutocompleteItem;
177
194
  };
178
195
  //#endregion
179
196
  //#region src/components/Text/Text.d.ts
180
197
  declare const variants$1: readonly ["body", "heading", "metric", "code", "body-xs-normal", "body-xs-semibold", "body-sm-normal", "body-sm-semibold", "body-md-normal", "body-md-semibold", "body-lg-normal", "body-lg-semibold", "heading-xs", "heading-sm", "heading-md", "heading-lg", "heading-xl", "metric-sm", "metric-md", "metric-lg", "metric-xl", "code"];
181
198
  type Variant$1 = (typeof variants$1)[number];
182
- declare const colors: readonly ["default", "primary", "secondary", "tertiary", "accent", "attention", "warning", "subtle", "success", "highlight"];
199
+ declare const colors: readonly ['default', 'primary', 'secondary', 'tertiary', 'accent', 'attention', 'warning', 'subtle', 'success', 'highlight'];
183
200
  type Color = (typeof colors)[number];
184
201
  type TextProps<As extends React$2.ElementType> = {
185
202
  /**
@@ -195,7 +212,7 @@ type TextProps<As extends React$2.ElementType> = {
195
212
  * The underlying element rendered by the component. Defaults to `span`.
196
213
  */
197
214
  as?: As;
198
- } & StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<As>, 'className'>;
215
+ } & StylingOverrideProps & React$2.ComponentPropsWithoutRef<As>;
199
216
  /**
200
217
  * Component for displaying text. The visual display can be controlled via
201
218
  * `variant`. The underlying HTML element can be controlled via the `as` prop,
@@ -210,47 +227,71 @@ declare const Text: <As extends React$2.ElementType = "span">(props: {
210
227
  * The text foreground color. Can be a theme color or inherited from the environment. Defaults to `inherit`.
211
228
  * @default inherit
212
229
  */
213
- color?: Color | "inherit";
230
+ color?: Color | 'inherit';
214
231
  /**
215
232
  * The underlying element rendered by the component. Defaults to `span`.
216
233
  */
217
234
  as?: As | undefined;
218
- } & StylingOverrideProps & Omit<React$2.PropsWithoutRef<React$2.ComponentProps<As>>, "className"> & React$2.RefAttributes<unknown>) => React$2.ReactElement;
235
+ } & StylingOverrideProps & React$2.PropsWithoutRef<React$2.ComponentProps<As>> & React$2.RefAttributes<unknown>) => React$2.ReactElement;
219
236
  //#endregion
220
237
  //#region src/components/Card/Card.d.ts
238
+ /**
239
+ * The base component for the card.
240
+ * @param className - Class overrides.
241
+ * @param props - The props for the card.
242
+ * @returns A card base component.
243
+ */
244
+ declare const CardRoot: ({ className, ...props }: React$2.ComponentProps<'div'>) => React$2.JSX.Element;
245
+ /**
246
+ * The header of the card.
247
+ * @param className - Class overrides.
248
+ * @param props - The props for the card header.
249
+ * @returns A card header component.
250
+ */
251
+ declare const CardHeader: ({ className, ...props }: React$2.ComponentProps<'div'>) => React$2.JSX.Element;
252
+ /**
253
+ * The title of the card.
254
+ * @param props - The props for the card title.
255
+ * @returns A card title component.
256
+ */
257
+ declare const CardTitle: ({ children, variant, ...props }: Omit<React$2.ComponentProps<typeof Text>, 'className'>) => React$2.JSX.Element;
258
+ /**
259
+ * The description of the card.
260
+ * @param props - The props for the card description.
261
+ * @returns A card description component.
262
+ */
263
+ declare const CardDescription: ({ children, ...props }: Omit<React$2.ComponentProps<typeof Text>, 'variant' | 'color' | 'className'>) => React$2.JSX.Element;
264
+ /**
265
+ * The actions container for the card header.
266
+ * @param className - Class overrides.
267
+ * @param props - The props for the card header actions container.
268
+ * @returns A card header actions container component.
269
+ */
270
+ declare const CardAction: ({ className, ...props }: React$2.ComponentProps<'div'>) => React$2.JSX.Element;
271
+ /**
272
+ * The content container for the card.
273
+ * @param className - Class overrides.
274
+ * @param props - The props for the card content container.
275
+ * @returns A card content container component.
276
+ */
277
+ declare const CardContent: ({ className, ...props }: React$2.ComponentProps<'div'>) => React$2.JSX.Element;
278
+ /**
279
+ * The footer container for the card.
280
+ * @param props - The props for the card footer container.
281
+ * @returns A card footer container component.
282
+ */
283
+ declare const CardFooter: ({ className, ...props }: React$2.ComponentProps<'div'>) => React$2.JSX.Element;
221
284
  /**
222
285
  * Compound card component exposing structural slots for header, title, description,
223
286
  * action, content, and footer so consumers can build consistent layouts.
224
287
  */
225
- declare const Card: (({
226
- className,
227
- ...props
228
- }: React$2.ComponentProps<"div">) => React$2.JSX.Element) & {
229
- Header: ({
230
- className,
231
- ...props
232
- }: React$2.ComponentProps<"div">) => React$2.JSX.Element;
233
- Title: ({
234
- children,
235
- variant,
236
- ...props
237
- }: Omit<React$2.ComponentProps<typeof Text>, "className">) => React$2.JSX.Element;
238
- Description: ({
239
- children,
240
- ...props
241
- }: Omit<React$2.ComponentProps<typeof Text>, "variant" | "color" | "className">) => React$2.JSX.Element;
242
- Action: ({
243
- className,
244
- ...props
245
- }: React$2.ComponentProps<"div">) => React$2.JSX.Element;
246
- Content: ({
247
- className,
248
- ...props
249
- }: React$2.ComponentProps<"div">) => React$2.JSX.Element;
250
- Footer: ({
251
- className,
252
- ...props
253
- }: React$2.ComponentProps<"div">) => React$2.JSX.Element;
288
+ declare const Card: typeof CardRoot & {
289
+ Header: typeof CardHeader;
290
+ Title: typeof CardTitle;
291
+ Description: typeof CardDescription;
292
+ Action: typeof CardAction;
293
+ Content: typeof CardContent;
294
+ Footer: typeof CardFooter;
254
295
  };
255
296
  //#endregion
256
297
  //#region src/utils/accessibleLabel.d.ts
@@ -295,60 +336,36 @@ type BadgeProps = {
295
336
  /**
296
337
  * Badges display an indicator/counter on an associated component.
297
338
  */
298
- declare function Badge({
299
- appearance,
300
- variant,
301
- count,
302
- showZero,
303
- overflowCount,
304
- FORCE__className,
305
- ...props
306
- }: BadgeProps): React$2.JSX.Element | null;
339
+ declare function Badge({ appearance, variant, count, showZero, overflowCount, FORCE__className, ...props }: BadgeProps): React$2.JSX.Element | null;
307
340
  /**
308
341
  * A convenience component allowing you to easily attach a badge to another component.
309
342
  */
310
- declare function BadgeLayout({
311
- children
312
- }: React$2.PropsWithChildren): React$2.JSX.Element;
343
+ declare function BadgeLayout({ children }: React$2.PropsWithChildren): React$2.JSX.Element;
313
344
  //#endregion
314
345
  //#region src/components/ListItem/ListItem.d.ts
315
346
  type ListItemProps<As extends React$2.ElementType> = {
316
347
  as?: As;
317
348
  } & Omit<React$2.ComponentPropsWithoutRef<As>, 'className'> & StylingOverrideProps;
318
- declare function ListItem<As extends React$2.ElementType = 'li'>({
319
- as: asComponent,
320
- children,
321
- FORCE__className: classNameOverride,
322
- ...props
323
- }: ListItemProps<As>): React$2.JSX.Element;
349
+ declare function ListItem<As extends React$2.ElementType = 'li'>({ as: asComponent, children, FORCE__className: classNameOverride, ...props }: ListItemProps<As>): React$2.JSX.Element;
324
350
  declare namespace ListItem {
325
- var Content: ({
326
- children,
327
- FORCE__className
328
- }: React$2.PropsWithChildren & StylingOverrideProps) => React$2.JSX.Element;
329
- var Label: ({
330
- children,
331
- id
332
- }: ListItemLabelProps) => React$2.JSX.Element;
333
- var Description: ({
334
- children
335
- }: React$2.PropsWithChildren) => React$2.JSX.Element;
336
- var Suffix: ({
337
- children
338
- }: React$2.PropsWithChildren) => React$2.JSX.Element;
339
- var Spacer: () => React$2.JSX.Element;
340
- var Leading: ({
341
- children,
342
- FORCE__className
343
- }: React$2.PropsWithChildren & StylingOverrideProps) => React$2.JSX.Element;
344
- var Trailing: ({
345
- children,
346
- FORCE__className
347
- }: React$2.PropsWithChildren & StylingOverrideProps) => React$2.JSX.Element;
351
+ export { Content };
352
+ export { Label$1 as Label };
353
+ export { Description };
354
+ export { Suffix };
355
+ export { Spacer };
356
+ export { Leading };
357
+ export { Trailing };
348
358
  }
359
+ declare const Leading: ({ children, FORCE__className }: React$2.PropsWithChildren & StylingOverrideProps) => React$2.JSX.Element;
360
+ declare const Trailing: ({ children, FORCE__className }: React$2.PropsWithChildren & StylingOverrideProps) => React$2.JSX.Element;
361
+ declare const Content: ({ children, FORCE__className }: React$2.PropsWithChildren & StylingOverrideProps) => React$2.JSX.Element;
349
362
  type ListItemLabelProps = React$2.PropsWithChildren & {
350
363
  id?: string;
351
364
  };
365
+ declare const Label$1: ({ children, id }: ListItemLabelProps) => React$2.JSX.Element;
366
+ declare const Suffix: ({ children }: React$2.PropsWithChildren) => React$2.JSX.Element;
367
+ declare const Description: ({ children }: React$2.PropsWithChildren) => React$2.JSX.Element;
368
+ declare const Spacer: () => React$2.JSX.Element;
352
369
  //#endregion
353
370
  //#region src/components/Pill/Pill.d.ts
354
371
  type PillAppearance = 'default' | 'info' | 'danger' | 'warning' | 'success' | 'highlight';
@@ -402,22 +419,19 @@ type PillProps = React$2.HTMLAttributes<HTMLDivElement> & {
402
419
  */
403
420
  inline?: boolean;
404
421
  } & StylingOverrideProps;
405
- declare const Pill: ({
406
- children,
407
- icon: overrideIcon,
408
- variant,
409
- appearance,
410
- inline,
411
- FORCE__className: classNameOverride,
412
- ...props
413
- }: PillProps) => React$2.JSX.Element;
422
+ declare const Pill: ({ children, icon: overrideIcon, variant, appearance, inline, FORCE__className: classNameOverride, ...props }: PillProps) => React$2.JSX.Element;
414
423
  //#endregion
415
424
  //#region src/components/RadioGroup/RadioGroup.d.ts
416
425
  type RadioGroupContextValue = {
417
- /** The name of the radio group, this will act as a default name if one is not provided to the child radio components. */name?: string; /** Whether the radios in the group are required */
418
- required?: boolean; /** Whether the radios in the group are disabled */
419
- disabled?: boolean; /** The current value of the radio group */
420
- value?: string | null; /** Callback when the value of the radio group changes */
426
+ /** The name of the radio group, this will act as a default name if one is not provided to the child radio components. */
427
+ name?: string;
428
+ /** Whether the radios in the group are required */
429
+ required?: boolean;
430
+ /** Whether the radios in the group are disabled */
431
+ disabled?: boolean;
432
+ /** The current value of the radio group */
433
+ value?: string | null;
434
+ /** Callback when the value of the radio group changes */
421
435
  onChange?(e: React$2.ChangeEvent<HTMLInputElement>): void;
422
436
  /**
423
437
  * Whether the radio buttons should be displayed vertically or horizontally
@@ -429,7 +443,7 @@ type RadioGroupProps = RadioGroupContextValue & StylingOverrideProps & Omit<Reac
429
443
  /**
430
444
  * A control wrapper for a group of radio buttons.
431
445
  */
432
- declare const RadioGroup: (props: RadioGroupContextValue & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref">, "onChange" | "className"> & React$2.RefAttributes<HTMLFieldSetElement>) => React$2.ReactElement;
446
+ declare const RadioGroup: (props: RadioGroupContextValue & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref">, "className" | "onChange"> & React$2.RefAttributes<HTMLFieldSetElement>) => React$2.ReactElement;
433
447
  //#endregion
434
448
  //#region src/components/Radio/Radio.d.ts
435
449
  type ChildrenLabel = {
@@ -440,10 +454,11 @@ type ChildrenLabel = {
440
454
  /**
441
455
  * Require either 'aria-label', 'aria-labelledby', or 'children' for accessibility
442
456
  */
443
- type LabelProps = AccessibleLabelProps | ChildrenLabel;
457
+ type LabelProps$1 = AccessibleLabelProps | ChildrenLabel;
444
458
  type RadioProps = {
445
- /** The value of the radio button. */value: string | null;
446
- } & Partial<RadioGroupContextValue> & LabelProps & StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<'input'>, 'className' | 'type'>;
459
+ /** The value of the radio button. */
460
+ value: string | null;
461
+ } & Partial<RadioGroupContextValue> & LabelProps$1 & StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<'input'>, 'className' | 'type'>;
447
462
  /**
448
463
  * A presentational radio button component. You will typically use this component within a RadioGroup component.
449
464
  */
@@ -490,9 +505,9 @@ type SwitchProps = AccessibleLabelProps & SwitchNativeProps & {
490
505
  declare const Switch: React$2.ForwardRefExoticComponent<SwitchProps & React$2.RefAttributes<HTMLInputElement>>;
491
506
  //#endregion
492
507
  //#region src/components/Tag/Tag.d.ts
493
- declare const tagColors: readonly ["default", "accent", "danger", "warning", "info", "success", "highlight", "brand", "amber", "blue", "bronze", "brown", "criblTeal", "crimson", "cyan", "gold", "grass", "green", "indigo", "iris", "jade", "lime", "mint", "orange", "pink", "plum", "purple", "red", "ruby", "sky", "teal", "tomato", "violet", "yellow"];
508
+ declare const tagColors: readonly ['default', 'accent', 'danger', 'warning', 'info', 'success', 'highlight', 'brand', 'amber', 'blue', 'bronze', 'brown', 'criblTeal', 'crimson', 'cyan', 'gold', 'grass', 'green', 'indigo', 'iris', 'jade', 'lime', 'mint', 'orange', 'pink', 'plum', 'purple', 'red', 'ruby', 'sky', 'teal', 'tomato', 'violet', 'yellow'];
494
509
  type TagColor = (typeof tagColors)[number];
495
- declare const tagSizes: readonly ["sm", "md"];
510
+ declare const tagSizes: readonly ['sm', 'md'];
496
511
  type TagSize = (typeof tagSizes)[number];
497
512
  type Draggable = {
498
513
  draggable: true;
@@ -532,25 +547,17 @@ type TagProps = DraggableProps & {
532
547
  /**
533
548
  * A tag component for displaying a label and an optional icon.
534
549
  */
535
- declare function Tag({
536
- draggable,
537
- color,
538
- icon: Icon,
539
- children,
540
- size,
541
- onDelete,
542
- onDragStart,
543
- onDragEnd,
544
- onHandleKeydown,
545
- FORCE__className: classNameOverride,
546
- ...props
547
- }: TagProps): React$2.JSX.Element;
550
+ declare function Tag({ draggable, color, icon: Icon, children, size, onDelete, onDragStart, onDragEnd, onHandleKeydown, FORCE__className: classNameOverride, ...props }: TagProps): React$2.JSX.Element;
548
551
  //#endregion
549
552
  //#region src/components/Checkbox/Checkbox.d.ts
550
553
  type CheckboxProps = {
551
- /** Whether the checkbox is in an indeterminate state. */indeterminate?: boolean; /** Controlled checked state. Use with onChange for controlled component. */
552
- checked?: boolean; /** Default checked state for uncontrolled component. */
553
- defaultChecked?: boolean; /** The label for the checkbox. */
554
+ /** Whether the checkbox is in an indeterminate state. */
555
+ indeterminate?: boolean;
556
+ /** Controlled checked state. Use with onChange for controlled component. */
557
+ checked?: boolean;
558
+ /** Default checked state for uncontrolled component. */
559
+ defaultChecked?: boolean;
560
+ /** The label for the checkbox. */
554
561
  children?: string | React$2.ReactNode;
555
562
  } & StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<'input'>, 'className' | 'type'>;
556
563
  /**
@@ -565,18 +572,25 @@ type CheckboxProps = {
565
572
  * <Checkbox checked={isChecked} onChange={handleChange}>Subscribe</Checkbox>
566
573
  */
567
574
  declare const Checkbox: React$2.ForwardRefExoticComponent<{
568
- /** Whether the checkbox is in an indeterminate state. */indeterminate?: boolean; /** Controlled checked state. Use with onChange for controlled component. */
569
- checked?: boolean; /** Default checked state for uncontrolled component. */
570
- defaultChecked?: boolean; /** The label for the checkbox. */
575
+ /** Whether the checkbox is in an indeterminate state. */
576
+ indeterminate?: boolean;
577
+ /** Controlled checked state. Use with onChange for controlled component. */
578
+ checked?: boolean;
579
+ /** Default checked state for uncontrolled component. */
580
+ defaultChecked?: boolean;
581
+ /** The label for the checkbox. */
571
582
  children?: string | React$2.ReactNode;
572
- } & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type" | "className"> & React$2.RefAttributes<HTMLInputElement>>;
583
+ } & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "className" | "type"> & React$2.RefAttributes<HTMLInputElement>>;
573
584
  //#endregion
574
585
  //#region src/components/Collapse/Collapse.d.ts
575
586
  /** Props forwarded to React Aria `Disclosure`; see https://reactaria.adobe.com/Disclosure */
576
587
  type CollapseDisclosureProps = Pick<DisclosureProps, 'id' | 'defaultExpanded' | 'isExpanded' | 'onExpandedChange' | 'isDisabled'>;
577
588
  type CollapseProps = StylingOverrideProps & CollapseDisclosureProps & {
578
- /** Plain string title rendered in the disclosure heading. */title: string; /** Trailing header region for actions (switches, buttons, etc.). */
579
- headerTrailingContentSlot?: React$2.ReactNode; /** Content of the disclosure panel. */
589
+ /** Plain string title rendered in the disclosure heading. */
590
+ title: string;
591
+ /** Trailing header region for actions (switches, buttons, etc.). */
592
+ headerTrailingContentSlot?: React$2.ReactNode;
593
+ /** Content of the disclosure panel. */
580
594
  children: React$2.ReactNode;
581
595
  };
582
596
  /**
@@ -586,8 +600,11 @@ type CollapseProps = StylingOverrideProps & CollapseDisclosureProps & {
586
600
  * (switches, buttons), and the panel body via **`children`**.
587
601
  */
588
602
  declare const Collapse: React$2.ForwardRefExoticComponent<StylingOverrideProps & CollapseDisclosureProps & {
589
- /** Plain string title rendered in the disclosure heading. */title: string; /** Trailing header region for actions (switches, buttons, etc.). */
590
- headerTrailingContentSlot?: React$2.ReactNode; /** Content of the disclosure panel. */
603
+ /** Plain string title rendered in the disclosure heading. */
604
+ title: string;
605
+ /** Trailing header region for actions (switches, buttons, etc.). */
606
+ headerTrailingContentSlot?: React$2.ReactNode;
607
+ /** Content of the disclosure panel. */
591
608
  children: React$2.ReactNode;
592
609
  } & React$2.RefAttributes<HTMLDivElement>>;
593
610
  //#endregion
@@ -603,26 +620,8 @@ type InputRowAddonProps = {
603
620
  */
604
621
  size?: Size$3;
605
622
  } & StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<'span'>, 'className'>;
606
- declare function InputRowAddon({
607
- children,
608
- size,
609
- FORCE__className: classNameOverride,
610
- ...rest
611
- }: InputRowAddonProps): React$2.JSX.Element;
612
- declare namespace InputRowAddon {
613
- var displayName: string;
614
- }
615
- declare function InputRowRoot({
616
- children,
617
- FORCE__className: classNameOverride,
618
- role: roleProp,
619
- 'aria-label': ariaLabel,
620
- 'aria-labelledby': ariaLabelledBy,
621
- ...rest
622
- }: InputRowProps): React$2.JSX.Element;
623
- declare namespace InputRowRoot {
624
- var displayName: string;
625
- }
623
+ declare function InputRowAddon({ children, size, FORCE__className: classNameOverride, ...rest }: InputRowAddonProps): React$2.JSX.Element;
624
+ declare function InputRowRoot({ children, FORCE__className: classNameOverride, role: roleProp, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...rest }: InputRowProps): React$2.JSX.Element;
626
625
  /**
627
626
  * Horizontal flex container for visually joining inputs and addons.
628
627
  */
@@ -632,7 +631,9 @@ declare const InputRow: typeof InputRowRoot & {
632
631
  //#endregion
633
632
  //#region src/components/TextField/TextField.d.ts
634
633
  type TextFieldProps = {
635
- /** Called with the new string value when the input changes. */onChange?: (value: string) => void; /** When true, shows a character count. */
634
+ /** Called with the new string value when the input changes. */
635
+ onChange?: (value: string) => void;
636
+ /** When true, shows a character count. */
636
637
  showCount?: boolean;
637
638
  value?: string | number | undefined;
638
639
  } & FieldLayoutProps & Omit<TextInputProps, 'onChange' | 'value'>;
@@ -640,10 +641,12 @@ type TextFieldProps = {
640
641
  * Single-line text field with optional label and helper text.
641
642
  */
642
643
  declare const TextField: React$2.ForwardRefExoticComponent<{
643
- /** Called with the new string value when the input changes. */onChange?: (value: string) => void; /** When true, shows a character count. */
644
+ /** Called with the new string value when the input changes. */
645
+ onChange?: (value: string) => void;
646
+ /** When true, shows a character count. */
644
647
  showCount?: boolean;
645
648
  value?: string | number | undefined;
646
- } & FieldLayoutProps & Omit<TextInputProps, "value" | "onChange"> & React$2.RefAttributes<HTMLInputElement>>;
649
+ } & FieldLayoutProps & Omit<TextInputProps, "onChange" | "value"> & React$2.RefAttributes<HTMLInputElement>>;
647
650
  //#endregion
648
651
  //#region src/components/PasswordField/PasswordField.d.ts
649
652
  type PasswordFieldProps = Omit<TextFieldProps, 'trailingSlot' | 'type'>;
@@ -655,9 +658,13 @@ declare const PasswordField: React$2.ForwardRefExoticComponent<PasswordFieldProp
655
658
  //#endregion
656
659
  //#region src/components/NumberField/NumberField.d.ts
657
660
  type NumberFieldProps = Omit<TextInputProps, 'type' | 'onChange' | 'min' | 'max' | 'step'> & {
658
- /** Called with the unformatted number value when the number changes. */onChange?: (value: number) => void; /** Locale-aware display and parsing for the displayed value (see https://react-aria.adobe.com/NumberField#format-options) */
659
- formatOptions?: Intl.NumberFormatOptions; /** Minimum value */
660
- min?: number; /** Maximum value */
661
+ /** Called with the unformatted number value when the number changes. */
662
+ onChange?: (value: number) => void;
663
+ /** Locale-aware display and parsing for the displayed value (see https://react-aria.adobe.com/NumberField#format-options) */
664
+ formatOptions?: Intl.NumberFormatOptions;
665
+ /** Minimum value */
666
+ min?: number;
667
+ /** Maximum value */
661
668
  max?: number;
662
669
  /**
663
670
  * Step increment. When omitted, defaults to `1` (same as native `input type="number"`).
@@ -667,10 +674,14 @@ type NumberFieldProps = Omit<TextInputProps, 'type' | 'onChange' | 'min' | 'max'
667
674
  /**
668
675
  * Number field built on React Aria `NumberField`, with custom increment/decrement controls (native spinners hidden).
669
676
  */
670
- declare const NumberField: React$2.ForwardRefExoticComponent<Omit<TextInputProps, "max" | "min" | "step" | "type" | "onChange"> & {
671
- /** Called with the unformatted number value when the number changes. */onChange?: (value: number) => void; /** Locale-aware display and parsing for the displayed value (see https://react-aria.adobe.com/NumberField#format-options) */
672
- formatOptions?: Intl.NumberFormatOptions; /** Minimum value */
673
- min?: number; /** Maximum value */
677
+ declare const NumberField: React$2.ForwardRefExoticComponent<Omit<TextInputProps, "max" | "min" | "onChange" | "step" | "type"> & {
678
+ /** Called with the unformatted number value when the number changes. */
679
+ onChange?: (value: number) => void;
680
+ /** Locale-aware display and parsing for the displayed value (see https://react-aria.adobe.com/NumberField#format-options) */
681
+ formatOptions?: Intl.NumberFormatOptions;
682
+ /** Minimum value */
683
+ min?: number;
684
+ /** Maximum value */
674
685
  max?: number;
675
686
  /**
676
687
  * Step increment. When omitted, defaults to `1` (same as native `input type="number"`).
@@ -680,23 +691,37 @@ declare const NumberField: React$2.ForwardRefExoticComponent<Omit<TextInputProps
680
691
  //#endregion
681
692
  //#region src/components/DatePickerField/DatePickerField.d.ts
682
693
  type DatePickerFieldProps<T extends DateValue = DateValue> = FieldLayoutProps & Pick<TextInputProps, 'appearance' | 'size' | 'leadingSlot' | 'placeholder'> & Pick<DatePickerProps<T>, 'value' | 'defaultValue' | 'onChange'> & {
683
- /** Smallest date/time unit shown in the field. Only `day` and `second` are supported. */granularity?: 'day' | 'second';
694
+ /** Smallest date/time unit shown in the field. Only `day` and `second` are supported. */
695
+ granularity?: 'day' | 'second';
684
696
  } & StylingOverrideProps & {
685
- /** When true, shows a clear control to the left of the calendar button while the field has a value. */canClear?: boolean; /** Disables the field. */
686
- disabled?: boolean; /** Optional id for the root; associates the label and field. */
687
- id?: string; /** Read-only field. */
688
- readOnly?: boolean; /** Required field. */
689
- required?: boolean; /** Invalid value; `appearance="danger"` also forces an invalid state for display. */
697
+ /** When true, shows a clear control to the left of the calendar button while the field has a value. */
698
+ canClear?: boolean;
699
+ /** Disables the field. */
700
+ disabled?: boolean;
701
+ /** Optional id for the root; associates the label and field. */
702
+ id?: string;
703
+ /** Read-only field. */
704
+ readOnly?: boolean;
705
+ /** Required field. */
706
+ required?: boolean;
707
+ /** Invalid value; `appearance="danger"` also forces an invalid state for display. */
690
708
  isInvalid?: boolean;
691
709
  };
692
- declare const DatePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProps & Pick<TextInputProps, "placeholder" | "size" | "appearance" | "leadingSlot"> & Pick<DatePickerProps<DateValue>, "value" | "onChange" | "defaultValue"> & {
693
- /** Smallest date/time unit shown in the field. Only `day` and `second` are supported. */granularity?: "day" | "second";
710
+ declare const DatePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProps & Pick<TextInputProps, "appearance" | "leadingSlot" | "placeholder" | "size"> & Pick<DatePickerProps<DateValue>, "defaultValue" | "onChange" | "value"> & {
711
+ /** Smallest date/time unit shown in the field. Only `day` and `second` are supported. */
712
+ granularity?: 'day' | 'second';
694
713
  } & StylingOverrideProps & {
695
- /** When true, shows a clear control to the left of the calendar button while the field has a value. */canClear?: boolean; /** Disables the field. */
696
- disabled?: boolean; /** Optional id for the root; associates the label and field. */
697
- id?: string; /** Read-only field. */
698
- readOnly?: boolean; /** Required field. */
699
- required?: boolean; /** Invalid value; `appearance="danger"` also forces an invalid state for display. */
714
+ /** When true, shows a clear control to the left of the calendar button while the field has a value. */
715
+ canClear?: boolean;
716
+ /** Disables the field. */
717
+ disabled?: boolean;
718
+ /** Optional id for the root; associates the label and field. */
719
+ id?: string;
720
+ /** Read-only field. */
721
+ readOnly?: boolean;
722
+ /** Required field. */
723
+ required?: boolean;
724
+ /** Invalid value; `appearance="danger"` also forces an invalid state for display. */
700
725
  isInvalid?: boolean;
701
726
  } & React$2.RefAttributes<HTMLDivElement>>;
702
727
  //#endregion
@@ -704,27 +729,43 @@ declare const DatePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProp
704
729
  /** Visible placeholders for empty start/end when the field is not focus-within. */
705
730
  type DateRangePickerFieldPlaceholder = readonly [string, string];
706
731
  type DateRangePickerFieldProps<T extends DateValue = DateValue> = FieldLayoutProps & Pick<TextInputProps, 'appearance' | 'size' | 'leadingSlot'> & {
707
- /** Placeholders for empty start and end, shown with a swap icon between them when the group is not focus-within. */placeholder?: DateRangePickerFieldPlaceholder;
732
+ /** Placeholders for empty start and end, shown with a swap icon between them when the group is not focus-within. */
733
+ placeholder?: DateRangePickerFieldPlaceholder;
708
734
  } & Pick<DateRangePickerProps<T>, 'value' | 'defaultValue' | 'onChange' | 'shouldCloseOnSelect'> & {
709
- /** Smallest date/time unit shown in the fields. Only `day` and `second` are supported. */granularity?: 'day' | 'second';
735
+ /** Smallest date/time unit shown in the fields. Only `day` and `second` are supported. */
736
+ granularity?: 'day' | 'second';
710
737
  } & StylingOverrideProps & {
711
- /** When true, shows a clear control to the left of the calendar button while the field has a value. */canClear?: boolean; /** Disables the field. */
712
- disabled?: boolean; /** Optional id for the root; associates the label and field. */
713
- id?: string; /** Read-only field. */
714
- readOnly?: boolean; /** Required field. */
715
- required?: boolean; /** Invalid value; `appearance="danger"` also forces an invalid state for display. */
738
+ /** When true, shows a clear control to the left of the calendar button while the field has a value. */
739
+ canClear?: boolean;
740
+ /** Disables the field. */
741
+ disabled?: boolean;
742
+ /** Optional id for the root; associates the label and field. */
743
+ id?: string;
744
+ /** Read-only field. */
745
+ readOnly?: boolean;
746
+ /** Required field. */
747
+ required?: boolean;
748
+ /** Invalid value; `appearance="danger"` also forces an invalid state for display. */
716
749
  isInvalid?: boolean;
717
750
  };
718
- declare const DateRangePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProps & Pick<TextInputProps, "size" | "appearance" | "leadingSlot"> & {
719
- /** Placeholders for empty start and end, shown with a swap icon between them when the group is not focus-within. */placeholder?: DateRangePickerFieldPlaceholder;
720
- } & Pick<DateRangePickerProps<DateValue>, "value" | "onChange" | "defaultValue" | "shouldCloseOnSelect"> & {
721
- /** Smallest date/time unit shown in the fields. Only `day` and `second` are supported. */granularity?: "day" | "second";
751
+ declare const DateRangePickerField: React$2.ForwardRefExoticComponent<FieldLayoutProps & Pick<TextInputProps, "appearance" | "leadingSlot" | "size"> & {
752
+ /** Placeholders for empty start and end, shown with a swap icon between them when the group is not focus-within. */
753
+ placeholder?: DateRangePickerFieldPlaceholder;
754
+ } & Pick<DateRangePickerProps<DateValue>, "defaultValue" | "onChange" | "shouldCloseOnSelect" | "value"> & {
755
+ /** Smallest date/time unit shown in the fields. Only `day` and `second` are supported. */
756
+ granularity?: 'day' | 'second';
722
757
  } & StylingOverrideProps & {
723
- /** When true, shows a clear control to the left of the calendar button while the field has a value. */canClear?: boolean; /** Disables the field. */
724
- disabled?: boolean; /** Optional id for the root; associates the label and field. */
725
- id?: string; /** Read-only field. */
726
- readOnly?: boolean; /** Required field. */
727
- required?: boolean; /** Invalid value; `appearance="danger"` also forces an invalid state for display. */
758
+ /** When true, shows a clear control to the left of the calendar button while the field has a value. */
759
+ canClear?: boolean;
760
+ /** Disables the field. */
761
+ disabled?: boolean;
762
+ /** Optional id for the root; associates the label and field. */
763
+ id?: string;
764
+ /** Read-only field. */
765
+ readOnly?: boolean;
766
+ /** Required field. */
767
+ required?: boolean;
768
+ /** Invalid value; `appearance="danger"` also forces an invalid state for display. */
728
769
  isInvalid?: boolean;
729
770
  } & React$2.RefAttributes<HTMLDivElement>>;
730
771
  //#endregion
@@ -751,8 +792,10 @@ type TextAreaProps = {
751
792
  * `true` grows with content; use `{ minRows, maxRows }` to clamp height.
752
793
  * When enabled, manual vertical resize is disabled (`resize: none`).
753
794
  */
754
- autoSize?: TextAreaAutoSize; /** When true, shows a character count. */
755
- showCount?: boolean; /** Called with the new string value when the input changes. */
795
+ autoSize?: TextAreaAutoSize;
796
+ /** When true, shows a character count. */
797
+ showCount?: boolean;
798
+ /** Called with the new string value when the input changes. */
756
799
  onChange?: (value: string) => void;
757
800
  } & FieldLayoutProps & StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<'textarea'>, 'className' | 'style' | 'size' | 'onChange'>;
758
801
  /**
@@ -774,28 +817,39 @@ declare const TextArea: React$2.ForwardRefExoticComponent<{
774
817
  * `true` grows with content; use `{ minRows, maxRows }` to clamp height.
775
818
  * When enabled, manual vertical resize is disabled (`resize: none`).
776
819
  */
777
- autoSize?: TextAreaAutoSize; /** When true, shows a character count. */
778
- showCount?: boolean; /** Called with the new string value when the input changes. */
820
+ autoSize?: TextAreaAutoSize;
821
+ /** When true, shows a character count. */
822
+ showCount?: boolean;
823
+ /** Called with the new string value when the input changes. */
779
824
  onChange?: (value: string) => void;
780
- } & FieldLayoutProps & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, "style" | "size" | "onChange" | "className"> & React$2.RefAttributes<HTMLTextAreaElement>>;
825
+ } & FieldLayoutProps & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">, "className" | "onChange" | "size" | "style"> & React$2.RefAttributes<HTMLTextAreaElement>>;
781
826
  //#endregion
782
827
  //#region src/components/Modal/Modal.d.ts
783
828
  type ModalSize = 'sm' | 'md' | 'lg';
784
829
  type ModalProps = React$2.PropsWithChildren<{
785
- /** Controlled open state */isOpen?: boolean; /** Called when open state changes */
786
- onIsOpenChange?: (open: boolean) => void; /** Modal title shown in the header */
787
- title?: React$2.ReactNode; /** Label for the confirm action button */
788
- confirmButtonText?: string; /** Label for the cancel action button. Pass `null` to hide the secondary button. */
830
+ /** Controlled open state */
831
+ isOpen?: boolean;
832
+ /** Called when open state changes */
833
+ onIsOpenChange?: (open: boolean) => void;
834
+ /** Modal title shown in the header */
835
+ title?: React$2.ReactNode;
836
+ /** Label for the confirm action button */
837
+ confirmButtonText?: string;
838
+ /** Label for the cancel action button. Pass `null` to hide the secondary button. */
789
839
  cancelButtonText?: string | null;
790
840
  /**
791
841
  * Called when the confirm action button is pressed.
792
842
  *
793
843
  * If the handler returns a promise, the button will display a pending state until the promise is fulfilled. The modal will close automatically when the promise is fulfilled **regardless of whether the promise is resolved or rejected**.
794
844
  */
795
- onConfirm?: () => void; /** Called when cancel/overlay dismiss is triggered */
796
- onClose?: () => void; /** Optional footer content (e.g. action buttons). If provided, it replaces the default footer in which case the primary and secondary buttons will not show. Pass `null` to completely hide all footers. */
797
- footer?: React$2.ReactNode; /** Width variant */
798
- size?: ModalSize; /** If false, remove the close button in the header and prevent `Esc` from closing the modal. Defaults to `true`. */
845
+ onConfirm?: () => void;
846
+ /** Called when cancel/overlay dismiss is triggered */
847
+ onClose?: () => void;
848
+ /** Optional footer content (e.g. action buttons). If provided, it replaces the default footer in which case the primary and secondary buttons will not show. Pass `null` to completely hide all footers. */
849
+ footer?: React$2.ReactNode;
850
+ /** Width variant */
851
+ size?: ModalSize;
852
+ /** If false, remove the close button in the header and prevent `Esc` from closing the modal. Defaults to `true`. */
799
853
  isDismissible?: boolean;
800
854
  /**
801
855
  * The container to mount the modal in. Defaults to `document.body`.
@@ -808,49 +862,32 @@ type ModalProps = React$2.PropsWithChildren<{
808
862
  type ModalCreateOptions = Omit<ConfirmationModalProps, 'appearance' | 'isOpen'>;
809
863
  /** Return value of Modal.create() */
810
864
  type ModalCreateResult = {
811
- /** Close the modal. Safe to call multiple times. */close: () => void; /** Promise that resolves when the modal has closed (after close is called or user dismisses). */
865
+ /** Close the modal. Safe to call multiple times. */
866
+ close: () => void;
867
+ /** Promise that resolves when the modal has closed (after close is called or user dismisses). */
812
868
  closed: Promise<void>;
813
869
  };
814
- declare const appearances$1: readonly ["default", "info", "danger", "warning", "success"];
870
+ declare const appearances$1: readonly ['default', 'info', 'danger', 'warning', 'success'];
815
871
  type Appearance$1 = (typeof appearances$1)[number];
816
872
  type ConfirmationModalProps = Omit<ModalProps, 'title' | 'footer' | 'size' | 'isDismissible' | 'FORCE__className'> & {
817
- /** Visual appearance of the confirmation modal */appearance?: Appearance$1; /** Modal title shown in the header */
818
- title: string; /** Confirmation content */
873
+ /** Visual appearance of the confirmation modal */
874
+ appearance?: Appearance$1;
875
+ /** Modal title shown in the header */
876
+ title: string;
877
+ /** Confirmation content */
819
878
  content?: React$2.ReactNode;
820
879
  };
821
- declare function ModalInner({
822
- children,
823
- isOpen: open,
824
- onIsOpenChange: onOpenChange,
825
- title,
826
- footer,
827
- size,
828
- isDismissible,
829
- FORCE__className,
830
- confirmButtonText,
831
- cancelButtonText,
832
- onClose,
833
- onConfirm,
834
- getContainer
835
- }: ModalProps): React$2.JSX.Element;
836
- declare function ModalFooterActions({
837
- children
838
- }: {
880
+ declare function ModalInner({ children, isOpen: open, onIsOpenChange: onOpenChange, title, footer, size, isDismissible, FORCE__className, confirmButtonText, cancelButtonText, onClose, onConfirm, getContainer }: ModalProps): React$2.JSX.Element;
881
+ declare function ModalFooterActions({ children }: {
839
882
  children: React$2.ReactNode;
840
883
  }): React$2.JSX.Element;
841
- declare function ModalExpandedFooterLayout({
842
- children
843
- }: {
884
+ declare function ModalExpandedFooterLayout({ children }: {
844
885
  children: React$2.ReactNode;
845
886
  }): React$2.JSX.Element;
846
- declare function ModalHeading({
847
- children
848
- }: {
887
+ declare function ModalHeading({ children }: {
849
888
  children: React$2.ReactNode;
850
889
  }): React$2.JSX.Element;
851
- declare function ModalExpandedTitleLayout({
852
- children
853
- }: {
890
+ declare function ModalExpandedTitleLayout({ children }: {
854
891
  children: React$2.ReactNode;
855
892
  }): React$2.JSX.Element;
856
893
  declare const Modal: typeof ModalInner & {
@@ -877,7 +914,8 @@ type DrawerProps = {
877
914
  * Called when the drawer should close: header dismiss, footer actions you wire up, scrim click (when a scrim is
878
915
  * shown), or Escape.
879
916
  */
880
- onClose?: (event?: React$2.MouseEvent | React$2.KeyboardEvent) => void; /** Called when the drawer open state changes (after render). */
917
+ onClose?: (event?: React$2.MouseEvent | React$2.KeyboardEvent) => void;
918
+ /** Called when the drawer open state changes (after render). */
881
919
  onOpenChange?: (isOpen: boolean) => void;
882
920
  /**
883
921
  * Which vertical edge the drawer attaches to (Capra does not support top/bottom drawers).
@@ -893,7 +931,8 @@ type DrawerProps = {
893
931
  * Header content: pass a string for a single heading, or compose with `Drawer.Heading`, optional
894
932
  * `Drawer.Description`, `Drawer.ExpandedTitleLayout`, and `Breadcrumbs` (same idea as `Modal`).
895
933
  */
896
- title?: React$2.ReactNode; /** Footer region, typically actions. */
934
+ title?: React$2.ReactNode;
935
+ /** Footer region, typically actions. */
897
936
  footer?: React$2.ReactNode;
898
937
  /**
899
938
  * Whether to show the dismiss control in the header.
@@ -917,41 +956,21 @@ type DrawerProps = {
917
956
  * props; structure is an implementation detail and may change across releases.
918
957
  */
919
958
  FORCE__className?: string;
920
- children?: React$2.ReactNode; /** Pass-through when no visible title is provided. */
959
+ children?: React$2.ReactNode;
960
+ /** Pass-through when no visible title is provided. */
921
961
  'aria-label'?: string;
922
962
  };
923
- declare function DrawerHeading({
924
- children,
925
- id: idProp
926
- }: {
963
+ declare function DrawerHeading({ children, id: idProp }: {
927
964
  children: React$2.ReactNode;
928
965
  id?: string;
929
966
  }): React$2.JSX.Element;
930
- declare function DrawerExpandedTitleLayout({
931
- children
932
- }: {
967
+ declare function DrawerExpandedTitleLayout({ children }: {
933
968
  children: React$2.ReactNode;
934
969
  }): React$2.JSX.Element;
935
- declare function DrawerDescription({
936
- children
937
- }: {
970
+ declare function DrawerDescription({ children }: {
938
971
  children: React$2.ReactNode;
939
972
  }): React$2.JSX.Element;
940
- declare function DrawerInner({
941
- isOpen,
942
- onClose,
943
- onOpenChange,
944
- placement,
945
- width,
946
- title,
947
- footer,
948
- closable,
949
- modal,
950
- getContainer,
951
- FORCE__className,
952
- children,
953
- 'aria-label': ariaLabel
954
- }: DrawerProps): React$2.ReactPortal | null;
973
+ declare function DrawerInner({ isOpen, onClose, onOpenChange, placement, width, title, footer, closable, modal, getContainer, FORCE__className, children, 'aria-label': ariaLabel }: DrawerProps): React$2.ReactPortal | null;
955
974
  /**
956
975
  * A side sheet aligned with Capra design: supports **modal** (scrim + scroll lock + focus trap) and **non-modal**
957
976
  * (parallel interaction with the main page) modes, and Ant Design–compatible props where applicable.
@@ -1017,18 +1036,12 @@ type PopoverProps = {
1017
1036
  /**
1018
1037
  * A popover component that renders a trigger and popover content.
1019
1038
  */
1020
- declare function Popover({
1021
- content,
1022
- children,
1023
- isOpen,
1024
- onOpenChange,
1025
- ...props
1026
- }: PopoverProps): React$2.JSX.Element;
1039
+ declare function Popover({ content, children, isOpen, onOpenChange, ...props }: PopoverProps): React$2.JSX.Element;
1027
1040
  //#endregion
1028
1041
  //#region src/components/Ribbon/Ribbon.d.ts
1029
- declare const ribbonColors: readonly ["teal", "green", "purple"];
1042
+ declare const ribbonColors: readonly ['teal', 'green', 'purple'];
1030
1043
  type RibbonColor = (typeof ribbonColors)[number];
1031
- declare const ribbonPositions: readonly ["left", "right"];
1044
+ declare const ribbonPositions: readonly ['left', 'right'];
1032
1045
  type RibbonPosition = (typeof ribbonPositions)[number];
1033
1046
  type RibbonProps = StylingOverrideProps & Omit<React$2.HTMLAttributes<HTMLDivElement>, 'className' | 'style'> & {
1034
1047
  /**
@@ -1059,15 +1072,7 @@ type RibbonProps = StylingOverrideProps & Omit<React$2.HTMLAttributes<HTMLDivEle
1059
1072
  * A ribbon component used to highlight new features that exist in a 'preview' state.
1060
1073
  * Ribbons communicate that users may encounter errors when using these features.
1061
1074
  */
1062
- declare const Ribbon: ({
1063
- children,
1064
- FORCE__className: classNameOverride,
1065
- color,
1066
- leadingIcon: LeadingIcon,
1067
- position,
1068
- trailingIcon: TrailingIcon,
1069
- ...props
1070
- }: RibbonProps) => React$2.JSX.Element;
1075
+ declare const Ribbon: ({ children, FORCE__className: classNameOverride, color, leadingIcon: LeadingIcon, position, trailingIcon: TrailingIcon, ...props }: RibbonProps) => React$2.JSX.Element;
1071
1076
  //#endregion
1072
1077
  //#region src/components/Anchor/Anchor.d.ts
1073
1078
  type AnchorProps<As extends React$2.ElementType> = {
@@ -1116,39 +1121,59 @@ declare const Anchor: <As extends React$2.ElementType = "a">(props: {
1116
1121
  } & StylingOverrideProps & Omit<React$2.PropsWithoutRef<React$2.ComponentProps<As>>, "className"> & React$2.RefAttributes<unknown>) => React$2.ReactElement;
1117
1122
  //#endregion
1118
1123
  //#region src/components/Button/Button.d.ts
1119
- declare const variants: readonly ["primary", "secondary", "tertiary"];
1124
+ declare const variants: readonly ['primary', 'secondary', 'tertiary'];
1120
1125
  type Variant = (typeof variants)[number];
1121
- declare const appearances: readonly ["default", "danger", "neutral"];
1126
+ declare const appearances: readonly ['default', 'danger', 'neutral'];
1122
1127
  type Appearance = (typeof appearances)[number];
1123
- declare const sizes$1: readonly ["xs", "sm", "md", "lg", "xl"];
1128
+ declare const sizes$1: readonly ['xs', 'sm', 'md', 'lg', 'xl'];
1124
1129
  type Size$2 = (typeof sizes$1)[number];
1125
1130
  type ButtonProps = {
1126
- /** The `label` for the button. */children: string; /** Which button style to use. Defaults to `secondary`. */
1127
- variant?: Variant; /** Appearance to apply to the button. Defaults to `default`. */
1128
- appearance?: Appearance; /** Size of the button. Defaults to `md`. */
1129
- size?: Size$2; /** Whether the button is disabled. */
1130
- disabled?: boolean; /** Whether the button is in a pending state. */
1131
- pending?: boolean; /** Icon to display before the button text. */
1132
- leadingIcon?: SvgIcon; /** Icon to display after the button text. */
1133
- trailingIcon?: SvgIcon; /** Whether to display the button as a block-level (full-width) component. Defaults to `false`. */
1134
- block?: boolean; /** Click handler for the button. */
1131
+ /** The `label` for the button. */
1132
+ children: string;
1133
+ /** Which button style to use. Defaults to `secondary`. */
1134
+ variant?: Variant;
1135
+ /** Appearance to apply to the button. Defaults to `default`. */
1136
+ appearance?: Appearance;
1137
+ /** Size of the button. Defaults to `md`. */
1138
+ size?: Size$2;
1139
+ /** Whether the button is disabled. */
1140
+ disabled?: boolean;
1141
+ /** Whether the button is in a pending state. */
1142
+ pending?: boolean;
1143
+ /** Icon to display before the button text. */
1144
+ leadingIcon?: SvgIcon;
1145
+ /** Icon to display after the button text. */
1146
+ trailingIcon?: SvgIcon;
1147
+ /** Whether to display the button as a block-level (full-width) component. Defaults to `false`. */
1148
+ block?: boolean;
1149
+ /** Click handler for the button. */
1135
1150
  onClick?: React$2.ComponentProps<'button'>['onClick'];
1136
1151
  } & StylingOverrideProps & Omit<ButtonProps$1, 'className' | 'isDisabled' | 'isPending' | 'onClick'>;
1137
1152
  /**
1138
1153
  * Primary interactive element displaying text and supporting leading and trailing icons.
1139
1154
  */
1140
1155
  declare const Button: (props: {
1141
- /** The `label` for the button. */children: string; /** Which button style to use. Defaults to `secondary`. */
1142
- variant?: Variant; /** Appearance to apply to the button. Defaults to `default`. */
1143
- appearance?: Appearance; /** Size of the button. Defaults to `md`. */
1144
- size?: Size$2; /** Whether the button is disabled. */
1145
- disabled?: boolean; /** Whether the button is in a pending state. */
1146
- pending?: boolean; /** Icon to display before the button text. */
1147
- leadingIcon?: SvgIcon; /** Icon to display after the button text. */
1148
- trailingIcon?: SvgIcon; /** Whether to display the button as a block-level (full-width) component. Defaults to `false`. */
1149
- block?: boolean; /** Click handler for the button. */
1150
- onClick?: React$2.ComponentProps<"button">["onClick"];
1151
- } & StylingOverrideProps & Omit<ButtonProps$1, "className" | "onClick" | "isDisabled" | "isPending"> & React$2.RefAttributes<HTMLButtonElement>) => React$2.ReactElement;
1156
+ /** The `label` for the button. */
1157
+ children: string;
1158
+ /** Which button style to use. Defaults to `secondary`. */
1159
+ variant?: Variant;
1160
+ /** Appearance to apply to the button. Defaults to `default`. */
1161
+ appearance?: Appearance;
1162
+ /** Size of the button. Defaults to `md`. */
1163
+ size?: Size$2;
1164
+ /** Whether the button is disabled. */
1165
+ disabled?: boolean;
1166
+ /** Whether the button is in a pending state. */
1167
+ pending?: boolean;
1168
+ /** Icon to display before the button text. */
1169
+ leadingIcon?: SvgIcon;
1170
+ /** Icon to display after the button text. */
1171
+ trailingIcon?: SvgIcon;
1172
+ /** Whether to display the button as a block-level (full-width) component. Defaults to `false`. */
1173
+ block?: boolean;
1174
+ /** Click handler for the button. */
1175
+ onClick?: React$2.ComponentProps<'button'>['onClick'];
1176
+ } & StylingOverrideProps & Omit<ButtonProps$1, "className" | "isDisabled" | "isPending" | "onClick"> & React$2.RefAttributes<HTMLButtonElement>) => React$2.ReactElement;
1152
1177
  //#endregion
1153
1178
  //#region src/utils/routing.d.ts
1154
1179
  /**
@@ -1181,57 +1206,93 @@ interface RoutedLinkProps {
1181
1206
  //#endregion
1182
1207
  //#region src/components/Link/ButtonLink.d.ts
1183
1208
  type ButtonLinkProps<As extends React$2.ElementType> = {
1184
- /** The `label` for the link. */children: string; /** Which visual style to use. Defaults to `secondary`. */
1185
- variant?: Variant; /** Appearance to apply to the link. Defaults to `default`. */
1186
- appearance?: Appearance; /** Size of the link. Defaults to `md`. */
1187
- size?: Size$2; /** Whether the link is disabled. */
1188
- disabled?: boolean; /** Whether the link is in a pending state. */
1189
- pending?: boolean; /** Icon to display before the link text. */
1190
- leadingIcon?: SvgIcon; /** Icon to display after the link text. */
1191
- trailingIcon?: SvgIcon; /** Whether to display the link as a block-level (full-width) component. Defaults to `false`. */
1192
- block?: boolean; /** The underlying element rendered by the component. Defaults to `a`. */
1209
+ /** The `label` for the link. */
1210
+ children: string;
1211
+ /** Which visual style to use. Defaults to `secondary`. */
1212
+ variant?: Variant;
1213
+ /** Appearance to apply to the link. Defaults to `default`. */
1214
+ appearance?: Appearance;
1215
+ /** Size of the link. Defaults to `md`. */
1216
+ size?: Size$2;
1217
+ /** Whether the link is disabled. */
1218
+ disabled?: boolean;
1219
+ /** Whether the link is in a pending state. */
1220
+ pending?: boolean;
1221
+ /** Icon to display before the link text. */
1222
+ leadingIcon?: SvgIcon;
1223
+ /** Icon to display after the link text. */
1224
+ trailingIcon?: SvgIcon;
1225
+ /** Whether to display the link as a block-level (full-width) component. Defaults to `false`. */
1226
+ block?: boolean;
1227
+ /** The underlying element rendered by the component. Defaults to `a`. */
1193
1228
  as?: As;
1194
1229
  } & RoutedLinkProps & StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<As>, 'className'>;
1195
1230
  /**
1196
1231
  * Primary interactive element displaying text and supporting leading and trailing icons.
1197
1232
  */
1198
1233
  declare const ButtonLink: <As extends React$2.ElementType = "a">(props: {
1199
- /** The `label` for the link. */children: string; /** Which visual style to use. Defaults to `secondary`. */
1200
- variant?: Variant; /** Appearance to apply to the link. Defaults to `default`. */
1201
- appearance?: Appearance; /** Size of the link. Defaults to `md`. */
1202
- size?: Size$2; /** Whether the link is disabled. */
1203
- disabled?: boolean; /** Whether the link is in a pending state. */
1204
- pending?: boolean; /** Icon to display before the link text. */
1205
- leadingIcon?: SvgIcon; /** Icon to display after the link text. */
1206
- trailingIcon?: SvgIcon; /** Whether to display the link as a block-level (full-width) component. Defaults to `false`. */
1207
- block?: boolean; /** The underlying element rendered by the component. Defaults to `a`. */
1234
+ /** The `label` for the link. */
1235
+ children: string;
1236
+ /** Which visual style to use. Defaults to `secondary`. */
1237
+ variant?: Variant;
1238
+ /** Appearance to apply to the link. Defaults to `default`. */
1239
+ appearance?: Appearance;
1240
+ /** Size of the link. Defaults to `md`. */
1241
+ size?: Size$2;
1242
+ /** Whether the link is disabled. */
1243
+ disabled?: boolean;
1244
+ /** Whether the link is in a pending state. */
1245
+ pending?: boolean;
1246
+ /** Icon to display before the link text. */
1247
+ leadingIcon?: SvgIcon;
1248
+ /** Icon to display after the link text. */
1249
+ trailingIcon?: SvgIcon;
1250
+ /** Whether to display the link as a block-level (full-width) component. Defaults to `false`. */
1251
+ block?: boolean;
1252
+ /** The underlying element rendered by the component. Defaults to `a`. */
1208
1253
  as?: As | undefined;
1209
1254
  } & RoutedLinkProps & StylingOverrideProps & Omit<React$2.PropsWithoutRef<React$2.ComponentProps<As>>, "className"> & React$2.RefAttributes<unknown>) => React$2.ReactElement;
1210
1255
  //#endregion
1211
1256
  //#region src/components/Button/IconButton.d.ts
1212
1257
  type IconButtonProps = {
1213
- /** Icon to display in the button. */icon: SvgIcon; /** Accessibility label to apply to the button. */
1214
- 'aria-label': string; /** Which button style to use. Defaults to `secondary`. */
1215
- variant?: Variant; /** Appearance to apply to the button. Defaults to `default`. */
1216
- appearance?: Appearance; /** Size of the button. Defaults to `md`. */
1217
- size?: Size$2; /** Whether the button is disabled. */
1218
- disabled?: boolean; /** Whether the button is in a pending state. */
1219
- pending?: boolean; /** Click handler for the button. */
1258
+ /** Icon to display in the button. */
1259
+ icon: SvgIcon;
1260
+ /** Accessibility label to apply to the button. */
1261
+ 'aria-label': string;
1262
+ /** Which button style to use. Defaults to `secondary`. */
1263
+ variant?: Variant;
1264
+ /** Appearance to apply to the button. Defaults to `default`. */
1265
+ appearance?: Appearance;
1266
+ /** Size of the button. Defaults to `md`. */
1267
+ size?: Size$2;
1268
+ /** Whether the button is disabled. */
1269
+ disabled?: boolean;
1270
+ /** Whether the button is in a pending state. */
1271
+ pending?: boolean;
1272
+ /** Click handler for the button. */
1220
1273
  onClick?: React$2.ComponentProps<'button'>['onClick'];
1221
1274
  } & StylingOverrideProps & Omit<ButtonProps$1, 'className' | 'isDisabled' | 'isPending' | 'onClick'>;
1222
1275
  /**
1223
1276
  * Interactive element displaying a single icon.
1224
1277
  */
1225
1278
  declare const IconButton: (props: {
1226
- /** Icon to display in the button. */icon: SvgIcon; /** Accessibility label to apply to the button. */
1227
- 'aria-label': string; /** Which button style to use. Defaults to `secondary`. */
1228
- variant?: Variant; /** Appearance to apply to the button. Defaults to `default`. */
1229
- appearance?: Appearance; /** Size of the button. Defaults to `md`. */
1230
- size?: Size$2; /** Whether the button is disabled. */
1231
- disabled?: boolean; /** Whether the button is in a pending state. */
1232
- pending?: boolean; /** Click handler for the button. */
1233
- onClick?: React$2.ComponentProps<"button">["onClick"];
1234
- } & StylingOverrideProps & Omit<ButtonProps$1, "className" | "onClick" | "isDisabled" | "isPending"> & React$2.RefAttributes<HTMLButtonElement>) => React$2.ReactElement;
1279
+ /** Icon to display in the button. */
1280
+ icon: SvgIcon;
1281
+ /** Accessibility label to apply to the button. */
1282
+ 'aria-label': string;
1283
+ /** Which button style to use. Defaults to `secondary`. */
1284
+ variant?: Variant;
1285
+ /** Appearance to apply to the button. Defaults to `default`. */
1286
+ appearance?: Appearance;
1287
+ /** Size of the button. Defaults to `md`. */
1288
+ size?: Size$2;
1289
+ /** Whether the button is disabled. */
1290
+ disabled?: boolean;
1291
+ /** Whether the button is in a pending state. */
1292
+ pending?: boolean;
1293
+ /** Click handler for the button. */
1294
+ onClick?: React$2.ComponentProps<'button'>['onClick'];
1295
+ } & StylingOverrideProps & Omit<ButtonProps$1, "className" | "isDisabled" | "isPending" | "onClick"> & React$2.RefAttributes<HTMLButtonElement>) => React$2.ReactElement;
1235
1296
  //#endregion
1236
1297
  //#region src/components/Link/Link.d.ts
1237
1298
  type LinkProps<As extends React$2.ElementType> = {
@@ -1267,7 +1328,7 @@ declare const Link: <As extends React$2.ElementType = "a">(props: {
1267
1328
  } & RoutedLinkProps & StylingOverrideProps & Omit<React$2.PropsWithoutRef<React$2.ComponentProps<As>>, "className"> & React$2.RefAttributes<unknown>) => React$2.ReactElement;
1268
1329
  //#endregion
1269
1330
  //#region src/components/VerticalNavigation/VerticalNavigation.d.ts
1270
- interface VerticalNavigationProps extends React$2.HTMLAttributes<HTMLElement>, StylingOverrideProps {
1331
+ type VerticalNavigationProps = React$2.HTMLAttributes<HTMLElement> & StylingOverrideProps & {
1271
1332
  /**
1272
1333
  * Controlled collapsed state.
1273
1334
  */
@@ -1281,7 +1342,7 @@ interface VerticalNavigationProps extends React$2.HTMLAttributes<HTMLElement>, S
1281
1342
  * @default false
1282
1343
  */
1283
1344
  defaultCollapsed?: boolean;
1284
- }
1345
+ };
1285
1346
  type VerticalNavigationItemBaseProps<As extends React$2.ElementType> = Omit<React$2.ComponentPropsWithoutRef<As>, 'className' | 'as' | 'href' | 'isActive' | 'isDisabled' | 'rightElement' | 'label'> & StylingOverrideProps & {
1286
1347
  /**
1287
1348
  * The component to use for the item. Default is either 'a' or 'button' based on the presence of the href prop.
@@ -1333,48 +1394,24 @@ type VerticalNavigationItemProps<As extends React$2.ElementType> = VerticalNavig
1333
1394
  * Can be a link (if href is provided) or a button.
1334
1395
  * Supports icons, active state, and 'subItem' variant for indentation.
1335
1396
  */
1336
- declare const Item: <As extends React$2.ElementType>({
1337
- as,
1338
- icon,
1339
- label,
1340
- isActive,
1341
- href,
1342
- FORCE__className,
1343
- isDisabled,
1344
- onClick,
1345
- variant,
1346
- rightElement,
1347
- ...props
1348
- }: VerticalNavigationItemProps<As>) => React$2.JSX.Element;
1349
- interface VerticalNavigationCollapseProps extends React$2.ButtonHTMLAttributes<HTMLButtonElement>, StylingOverrideProps {}
1397
+ declare const Item: <As extends React$2.ElementType>({ as, icon, label, isActive, href, FORCE__className, isDisabled, onClick, variant, rightElement, ...props }: VerticalNavigationItemProps<As>) => React$2.JSX.Element;
1398
+ type VerticalNavigationCollapseProps = React$2.ButtonHTMLAttributes<HTMLButtonElement> & StylingOverrideProps;
1350
1399
  /**
1351
1400
  * A toggle button to collapse/expand the navigation.
1352
1401
  * Should be placed within VerticalNavigation to control its state.
1353
1402
  */
1354
- declare const Collapse$1: ({
1355
- FORCE__className,
1356
- onClick,
1357
- ...props
1358
- }: VerticalNavigationCollapseProps) => React$2.JSX.Element;
1359
- interface VerticalNavigationItemListProps extends React$2.HTMLAttributes<HTMLUListElement>, StylingOverrideProps {}
1403
+ declare const Collapse$1: ({ FORCE__className, onClick, ...props }: VerticalNavigationCollapseProps) => React$2.JSX.Element;
1404
+ type VerticalNavigationItemListProps = React$2.HTMLAttributes<HTMLUListElement> & StylingOverrideProps;
1360
1405
  /**
1361
1406
  * Container for the primary list of navigation items.
1362
1407
  * Renders an unordered list with consistent spacing and layout.
1363
1408
  */
1364
- declare const ItemList: ({
1365
- children,
1366
- FORCE__className,
1367
- ...props
1368
- }: VerticalNavigationItemListProps) => React$2.JSX.Element;
1369
- interface VerticalNavigationFooterProps extends React$2.HTMLAttributes<HTMLUListElement>, StylingOverrideProps {}
1409
+ declare const ItemList: ({ children, FORCE__className, ...props }: VerticalNavigationItemListProps) => React$2.JSX.Element;
1410
+ type VerticalNavigationFooterProps = React$2.HTMLAttributes<HTMLUListElement> & StylingOverrideProps;
1370
1411
  /**
1371
1412
  * Secondary container for footer navigation actions such as settings or help.
1372
1413
  */
1373
- declare const Footer: ({
1374
- children,
1375
- FORCE__className,
1376
- ...props
1377
- }: VerticalNavigationFooterProps) => React$2.JSX.Element;
1414
+ declare const Footer: ({ children, FORCE__className, ...props }: VerticalNavigationFooterProps) => React$2.JSX.Element;
1378
1415
  interface VerticalNavigationComponent {
1379
1416
  (props: VerticalNavigationProps): JSX.Element;
1380
1417
  Item: typeof Item;
@@ -1390,54 +1427,50 @@ declare const VerticalNavigation: VerticalNavigationComponent;
1390
1427
  //#endregion
1391
1428
  //#region src/components/EmptyState/EmptyState.d.ts
1392
1429
  /** Valid illustration slugs for the EmptyState component. */
1393
- declare const illustrationSlugs: readonly ["EmptyFolder", "ArtSupplies", "EmptyBowl", "EmptySuitcase", "Envelope", "MissingSock", "PizzaBox", "PottedPlant", "Sandcastle"];
1430
+ declare const illustrationSlugs: readonly ['EmptyFolder', 'ArtSupplies', 'EmptyBowl', 'EmptySuitcase', 'Envelope', 'MissingSock', 'PizzaBox', 'PottedPlant', 'Sandcastle'];
1394
1431
  type EmptyStateIllustrationSlug = (typeof illustrationSlugs)[number];
1395
1432
  type EmptyStateProps = {
1396
- /** The illustration to display, identified by slug. Use theme to switch between light/dark variants when available. @default "EmptyFolder" */illustration?: EmptyStateIllustrationSlug; /** The theme for the illustration. Determines which variant to show when light/dark variants exist. @default "light" */
1397
- theme?: 'light' | 'dark'; /** The size of the empty state. `lg` is for large components or the whole pages. @default "md" */
1398
- size?: 'md' | 'lg'; /** The title to display in the empty state. */
1399
- title: string; /** The description to display in the empty state. Please do not skip this property without a good reason. */
1400
- description?: string; /** Generic use for adding a button or other action elements below the description. */
1433
+ /** The illustration to display, identified by slug. Use theme to switch between light/dark variants when available. @default "EmptyFolder" */
1434
+ illustration?: EmptyStateIllustrationSlug;
1435
+ /** The theme for the illustration. Determines which variant to show when light/dark variants exist. @default "light" */
1436
+ theme?: 'light' | 'dark';
1437
+ /** The size of the empty state. `lg` is for large components or the whole pages. @default "md" */
1438
+ size?: 'md' | 'lg';
1439
+ /** The title to display in the empty state. */
1440
+ title: string;
1441
+ /** The description to display in the empty state. Please do not skip this property without a good reason. */
1442
+ description?: string;
1443
+ /** Generic use for adding a button or other action elements below the description. */
1401
1444
  children?: React$1.ReactNode;
1402
1445
  } & StylingOverrideProps & React$1.HTMLAttributes<HTMLDivElement>;
1403
- /**
1404
- * The EmptyState component is used to display a message when there is no data to display.
1405
- * Illustrations are lazy-loaded and support light/dark themes via the theme prop.
1406
- * @example
1407
- * <EmptyState title="No data" description="There is no data to display" illustration="EmptyFolder" />
1408
- * <EmptyState title="No data" illustration="EmptyFolder" theme="dark" />
1409
- */
1410
- declare const EmptyState: {
1411
- (props: EmptyStateProps): React$1.JSX.Element;
1412
- displayName: string;
1413
- };
1446
+ declare function EmptyState(props: EmptyStateProps): React$1.JSX.Element;
1447
+ declare namespace EmptyState {
1448
+ var displayName: string;
1449
+ }
1414
1450
  //#endregion
1415
1451
  //#region src/components/Pagination/Pagination.d.ts
1416
1452
  type PaginationProps = {
1417
- /** Total number of data items. Used with `pageSize` to compute total pages. */total: number; /** Current page number (1-based). */
1418
- current: number; /** Number of items per page. Defaults to `10`. */
1419
- pageSize?: number; /** Callback when page changes. */
1420
- onChange?: (page: number, pageSize: number) => void; /** Whether the pagination is disabled. */
1421
- disabled?: boolean; /** Accessible name for the navigation. Required for accessibility. */
1453
+ /** Total number of data items. Used with `pageSize` to compute total pages. */
1454
+ total: number;
1455
+ /** Current page number (1-based). */
1456
+ current: number;
1457
+ /** Number of items per page. Defaults to `10`. */
1458
+ pageSize?: number;
1459
+ /** Callback when page changes. */
1460
+ onChange?: (page: number, pageSize: number) => void;
1461
+ /** Whether the pagination is disabled. */
1462
+ disabled?: boolean;
1463
+ /** Accessible name for the navigation. Required for accessibility. */
1422
1464
  'aria-label': string;
1423
1465
  } & StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<'nav'>, 'className' | 'aria-label' | 'onChange'>;
1424
1466
  /**
1425
1467
  * Pagination component for navigating through paged content.
1426
1468
  * Renders prev/next buttons and a page number input with total pages indicator.
1427
1469
  */
1428
- declare function Pagination({
1429
- total,
1430
- current,
1431
- pageSize,
1432
- onChange,
1433
- disabled,
1434
- 'aria-label': ariaLabel,
1435
- FORCE__className: classNameOverride,
1436
- ...props
1437
- }: PaginationProps): React$2.JSX.Element;
1470
+ declare function Pagination({ total, current, pageSize, onChange, disabled, 'aria-label': ariaLabel, FORCE__className: classNameOverride, ...props }: PaginationProps): React$2.JSX.Element;
1438
1471
  //#endregion
1439
1472
  //#region src/components/Breadcrumbs/Breadcrumbs.d.ts
1440
- declare const sizes: readonly ["sm", "md"];
1473
+ declare const sizes: readonly ['sm', 'md'];
1441
1474
  type Size$1 = (typeof sizes)[number];
1442
1475
  interface BreadcrumbsContextState {
1443
1476
  /** The size of the breadcrumbs. Defaults to `"md"`. */
@@ -1475,7 +1508,7 @@ type BreadcrumbProps = Omit<BreadcrumbProps$1, 'className' | 'children'> & Omit<
1475
1508
  * plus options from React Aria `Breadcrumb` / `Link`. Renders a trailing separator
1476
1509
  * for every item except the current page.
1477
1510
  */
1478
- declare const Breadcrumb: React$2.ForwardRefExoticComponent<Omit<BreadcrumbProps$1, "className" | "children"> & Omit<LinkProps$1, "className" | "children"> & {
1511
+ declare const Breadcrumb: React$2.ForwardRefExoticComponent<Omit<BreadcrumbProps$1, "children" | "className"> & Omit<LinkProps$1, "children" | "className"> & {
1479
1512
  children: React$2.ReactNode;
1480
1513
  separator?: React$2.ReactNode;
1481
1514
  } & React$2.RefAttributes<HTMLLIElement>>;
@@ -1483,29 +1516,19 @@ declare const Breadcrumb: React$2.ForwardRefExoticComponent<Omit<BreadcrumbProps
1483
1516
  //#region src/components/Spinner/Spinner.d.ts
1484
1517
  type Size = 'sm' | 'md' | 'lg';
1485
1518
  type SpinnerProps = {
1486
- /** The size of the Spinner. @default "md" */size?: Size; /** (optional) The title to display in the Spinner. */
1487
- title?: string; /** The content to display inside the Spinner. When provided, Spinner acts as a wrapper with overlay. */
1488
- children?: React$1.ReactNode; /** Whether the Spinner is visible. Only used when children are provided. @default true */
1519
+ /** The size of the Spinner. @default "md" */
1520
+ size?: Size;
1521
+ /** (optional) The title to display in the Spinner. */
1522
+ title?: string;
1523
+ /** The content to display inside the Spinner. When provided, Spinner acts as a wrapper with overlay. */
1524
+ children?: React$1.ReactNode;
1525
+ /** Whether the Spinner is visible. Only used when children are provided. @default true */
1489
1526
  isPending?: boolean;
1490
1527
  } & StylingOverrideProps & React$1.HTMLAttributes<HTMLDivElement>;
1491
- /**
1492
- * The Spinner component is used to display a loading state. It can be used in two modes:
1493
- *
1494
- * **Mode 1 - Standalone Spinner:**
1495
- * @example
1496
- * <Spinner title="Loading..." />
1497
- * <Spinner size="lg" />
1498
- *
1499
- * **Mode 2 - Wrapper with Overlay:**
1500
- * @example
1501
- * <Spinner isPending={isLoading}>
1502
- * <YourContent />
1503
- * </Spinner>
1504
- */
1505
- declare const Spinner: {
1506
- (props: SpinnerProps): React$1.JSX.Element;
1507
- displayName: string;
1508
- };
1528
+ declare function Spinner(props: SpinnerProps): React$1.JSX.Element;
1529
+ declare namespace Spinner {
1530
+ var displayName: string;
1531
+ }
1509
1532
  //#endregion
1510
1533
  //#region src/components/Divider/Divider.d.ts
1511
1534
  type DividerType = 'horizontal' | 'vertical';
@@ -1523,20 +1546,10 @@ type VerticalDividerProps = {
1523
1546
  children?: never;
1524
1547
  };
1525
1548
  type DividerProps = StylingOverrideProps & Omit<React$2.HTMLAttributes<HTMLHRElement & HTMLDivElement>, 'children'> & (HorizontalDividerProps | VerticalDividerProps);
1526
- /**
1527
- * Divider separates and groups content. Use horizontal dividers between sections;
1528
- * use vertical dividers between inline items. A horizontal divider can optionally
1529
- * display a label. Dividers are static and not keyboard focusable.
1530
- */
1531
- declare const Divider: {
1532
- ({
1533
- type,
1534
- children,
1535
- FORCE__className: classNameOverride,
1536
- ...restProps
1537
- }: DividerProps): React$2.JSX.Element;
1538
- displayName: string;
1539
- };
1549
+ declare function Divider({ type, children, FORCE__className: classNameOverride, ...restProps }: DividerProps): React$2.JSX.Element;
1550
+ declare namespace Divider {
1551
+ var displayName: string;
1552
+ }
1540
1553
  //#endregion
1541
1554
  //#region src/components/Skeleton/Skeleton.d.ts
1542
1555
  type SkeletonTitleProps = {
@@ -1579,37 +1592,29 @@ type SkeletonProps = {
1579
1592
  * (`title={false}` and `paragraph={false}`) children render inside the placeholder while loading.
1580
1593
  */
1581
1594
  children?: React$2.ReactNode;
1582
- } & StylingOverrideProps & Omit<React$2.HTMLAttributes<HTMLSpanElement>, 'children' | 'title' | 'paragraph'>;
1583
- /**
1584
- * A skeleton is a graphical placeholder, reserving physical space in the page for content in cases where a service or action may be slow to resolve. A skeleton can be considered as an alternative to the progress spinner in many situations.
1585
- *
1586
- * @example
1587
- * <Skeleton loading paragraph={{ rows: 4 }} />
1588
- *
1589
- * @example
1590
- * // Ant Design–style wrapper: skeleton while loading, then children.
1591
- * <Skeleton loading={isLoading}><Article /></Skeleton>
1592
- */
1593
- declare const Skeleton: {
1594
- (props: SkeletonProps): React$2.JSX.Element | null;
1595
- displayName: string;
1596
- };
1595
+ } & Omit<StylingOverrideProps, 'style'> & Omit<React$2.HTMLAttributes<HTMLSpanElement>, 'children' | 'title' | 'paragraph' | 'className'>;
1596
+ declare function Skeleton(props: SkeletonProps): React$2.JSX.Element | null;
1597
+ declare namespace Skeleton {
1598
+ var displayName: string;
1599
+ }
1597
1600
  //#endregion
1598
1601
  //#region src/components/Skeleton/SkeletonGroup.d.ts
1599
1602
  /** `dimension.component.{sm,md,lg}` via the same `--cds-dimension-component-*` vars as Button. */
1600
1603
  declare const SKELETON_SIZE: {
1601
- readonly sm: "var(--cds-dimension-component-sm)";
1602
- readonly md: "var(--cds-dimension-component-md)";
1603
- readonly lg: "var(--cds-dimension-component-lg)";
1604
+ readonly sm: 'var(--cds-dimension-component-sm)';
1605
+ readonly md: 'var(--cds-dimension-component-md)';
1606
+ readonly lg: 'var(--cds-dimension-component-lg)';
1604
1607
  };
1605
1608
  type SkeletonSize = keyof typeof SKELETON_SIZE;
1606
1609
  /** Ordered size keys (same keys as {@link SKELETON_SIZE}). */
1607
1610
  declare const SKELETON_SIZE_TOKENS: SkeletonSize[];
1608
1611
  type SkeletonElementProps = {
1609
- style?: React$2.CSSProperties; /** Preset dimensions from `dimension.component.*`; use `style` for custom width/height. */
1610
- size?: SkeletonSize; /** Show animation effect. @default false */
1612
+ style?: React$2.CSSProperties;
1613
+ /** Preset dimensions from `dimension.component.*`; use `style` for custom width/height. */
1614
+ size?: SkeletonSize;
1615
+ /** Show animation effect. @default false */
1611
1616
  active?: boolean;
1612
- } & StylingOverrideProps & Omit<React$2.HTMLAttributes<HTMLSpanElement>, 'children'>;
1617
+ } & Omit<StylingOverrideProps, 'style'> & Omit<React$2.HTMLAttributes<HTMLSpanElement>, 'children' | 'className' | 'style'>;
1613
1618
  type SkeletonGroupButtonProps = SkeletonElementProps & {
1614
1619
  block?: boolean;
1615
1620
  shape?: 'circle' | 'round' | 'square' | 'default';
@@ -1620,19 +1625,22 @@ type SkeletonGroupInputProps = SkeletonElementProps & {
1620
1625
  type SkeletonGroupNodeProps = SkeletonElementProps & {
1621
1626
  children?: React$2.ReactNode;
1622
1627
  };
1628
+ declare function SkeletonGroupButton(props: SkeletonGroupButtonProps): React$2.JSX.Element;
1629
+ declare namespace SkeletonGroupButton {
1630
+ var displayName: string;
1631
+ }
1632
+ declare function SkeletonGroupInput(props: SkeletonGroupInputProps): React$2.JSX.Element;
1633
+ declare namespace SkeletonGroupInput {
1634
+ var displayName: string;
1635
+ }
1636
+ declare function SkeletonGroupNode(props: SkeletonGroupNodeProps): React$2.JSX.Element;
1637
+ declare namespace SkeletonGroupNode {
1638
+ var displayName: string;
1639
+ }
1623
1640
  declare const SkeletonGroup: {
1624
- readonly Button: {
1625
- (props: SkeletonGroupButtonProps): React$2.JSX.Element;
1626
- displayName: string;
1627
- };
1628
- readonly Input: {
1629
- (props: SkeletonGroupInputProps): React$2.JSX.Element;
1630
- displayName: string;
1631
- };
1632
- readonly Node: {
1633
- (props: SkeletonGroupNodeProps): React$2.JSX.Element;
1634
- displayName: string;
1635
- };
1641
+ readonly Button: typeof SkeletonGroupButton;
1642
+ readonly Input: typeof SkeletonGroupInput;
1643
+ readonly Node: typeof SkeletonGroupNode;
1636
1644
  };
1637
1645
  //#endregion
1638
1646
  //#region src/components/VisuallyHidden/VisuallyHidden.d.ts
@@ -1643,15 +1651,12 @@ type VisuallyHiddenProps = React$1.ComponentPropsWithoutRef<'span'> & {
1643
1651
  * VisuallyHidden is a component that hides its children from the visual
1644
1652
  * rendering, but still makes them available to screen readers.
1645
1653
  */
1646
- declare const VisuallyHidden: ({
1647
- children,
1648
- ...props
1649
- }: VisuallyHiddenProps) => React$1.JSX.Element;
1654
+ declare const VisuallyHidden: ({ children, ...props }: VisuallyHiddenProps) => React$1.JSX.Element;
1650
1655
  //#endregion
1651
1656
  //#region src/components/Toast/Toast.d.ts
1652
- declare const toastTypes: readonly ["info", "success", "warning", "error"];
1657
+ declare const toastTypes: readonly ['info', 'success', 'warning', 'error'];
1653
1658
  type ToastType = (typeof toastTypes)[number];
1654
- declare const toastPositions: readonly ["top-right", "bottom-right"];
1659
+ declare const toastPositions: readonly ['top-right', 'bottom-right'];
1655
1660
  type ToastPosition = (typeof toastPositions)[number];
1656
1661
  type ToastOptions = {
1657
1662
  /**
@@ -1696,7 +1701,8 @@ type ToastAPI = {
1696
1701
  success: (content: React$2.ReactNode, options?: ToastOptions) => string;
1697
1702
  error: (content: React$2.ReactNode, options?: ToastOptions) => string;
1698
1703
  info: (content: React$2.ReactNode, options?: ToastOptions) => string;
1699
- warning: (content: React$2.ReactNode, options?: ToastOptions) => string; /** Remove a toast by id. */
1704
+ warning: (content: React$2.ReactNode, options?: ToastOptions) => string;
1705
+ /** Remove a toast by id. */
1700
1706
  destroy: (id: string) => void;
1701
1707
  };
1702
1708
  /**
@@ -1808,12 +1814,12 @@ type MenuSectionProps = StylingOverrideProps & Omit<React$2.HTMLAttributes<HTMLD
1808
1814
  */
1809
1815
  children?: React$2.ReactNode;
1810
1816
  };
1811
- interface MenuListProps extends StylingOverrideProps, React$2.HTMLAttributes<HTMLDivElement> {
1817
+ type MenuListProps = StylingOverrideProps & React$2.HTMLAttributes<HTMLDivElement> & {
1812
1818
  /**
1813
1819
  * Menu content. Use Menu.Item, Menu.Section, Menu.Header, Menu.Divider.
1814
1820
  */
1815
1821
  children?: React$2.ReactNode;
1816
- }
1822
+ };
1817
1823
  interface MenuSubmenuProps extends StylingOverrideProps {
1818
1824
  /**
1819
1825
  * Label for the parent row (trailing chevron indicates a nested panel).
@@ -1900,100 +1906,56 @@ interface MenuProps extends StylingOverrideProps {
1900
1906
  }
1901
1907
  /** Inset of the menu panel relative to the popover shell. */
1902
1908
  type MenuPanelPadding = NonNullable<MenuProps['panelPadding']>;
1903
- declare const Menu: {
1904
- ({
1905
- trigger,
1906
- children,
1907
- contentProps,
1908
- open,
1909
- onOpenChange,
1910
- itemHoverAppearance,
1911
- itemActiveAccentBar,
1912
- itemActiveLabelSemibold,
1913
- panelPadding,
1914
- popoverOffset,
1915
- trapFocus,
1916
- FORCE__className: classNameOverride
1917
- }: MenuProps): React$2.JSX.Element;
1909
+ declare const MenuHeader: {
1910
+ ({ id, label, FORCE__className: classNameOverride, children }: MenuHeaderProps): React$2.JSX.Element;
1911
+ displayName: string;
1912
+ };
1913
+ declare const MenuSection$1: {
1914
+ ({ children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, className, FORCE__className: classNameOverride, ...rest }: MenuSectionProps): React$2.JSX.Element;
1915
+ displayName: string;
1916
+ };
1917
+ declare const MenuItem$1: {
1918
+ <As extends React$2.ElementType = "a">({ as: Component, label, description, ariaLabel, href, disabled, active, variant, icon, indent: indentProp, shortcut, parent, onPress, onClick, FORCE__className, children, ...rest }: MenuItemProps<As>): React$2.JSX.Element;
1919
+ displayName: string;
1920
+ };
1921
+ declare const MenuDivider: {
1922
+ ({ FORCE__className: classNameOverride }: MenuDividerProps): React$2.JSX.Element;
1923
+ displayName: string;
1924
+ };
1925
+ /**
1926
+ * Menu.List — Layout only, no padding. Use inside a custom overlay when you are not using {@link Menu}.
1927
+ */
1928
+ declare const MenuList: {
1929
+ ({ children, FORCE__className: classNameOverride, ...rest }: MenuListProps): React$2.JSX.Element;
1930
+ displayName: string;
1931
+ };
1932
+ /**
1933
+ * Nested submenu for use inside {@link Menu}. Uses `AriaSubmenuTrigger` + `Popover` + `AriaMenu` so the flyout
1934
+ * positions to the side; the second child must not be `Menu` alone. Capra `Menu.Item` cannot be the trigger row.
1935
+ */
1936
+ declare const MenuSubmenu: {
1937
+ ({ label, children, itemHoverAppearance, itemActiveAccentBar, itemActiveLabelSemibold, delay, FORCE__className: classNameOverride }: MenuSubmenuProps): React$2.JSX.Element;
1918
1938
  displayName: string;
1919
- Item: {
1920
- <As extends React$2.ElementType = "a">({
1921
- as: Component,
1922
- label,
1923
- description,
1924
- ariaLabel,
1925
- href,
1926
- disabled,
1927
- active,
1928
- variant,
1929
- icon,
1930
- indent: indentProp,
1931
- shortcut,
1932
- parent,
1933
- onPress,
1934
- onClick,
1935
- FORCE__className,
1936
- children,
1937
- ...rest
1938
- }: MenuItemProps<As>): React$2.JSX.Element;
1939
- displayName: string;
1940
- };
1941
- Header: {
1942
- ({
1943
- id,
1944
- label,
1945
- FORCE__className: classNameOverride,
1946
- children
1947
- }: MenuHeaderProps): React$2.JSX.Element;
1948
- displayName: string;
1949
- };
1950
- Section: {
1951
- ({
1952
- children,
1953
- "aria-label": ariaLabel,
1954
- "aria-labelledby": ariaLabelledBy,
1955
- className,
1956
- FORCE__className: classNameOverride,
1957
- ...rest
1958
- }: MenuSectionProps): React$2.JSX.Element;
1959
- displayName: string;
1960
- };
1961
- Divider: {
1962
- ({
1963
- FORCE__className: classNameOverride
1964
- }: MenuDividerProps): React$2.JSX.Element;
1965
- displayName: string;
1966
- };
1967
- List: {
1968
- ({
1969
- children,
1970
- FORCE__className: classNameOverride,
1971
- ...rest
1972
- }: MenuListProps): React$2.JSX.Element;
1973
- displayName: string;
1974
- };
1975
- Submenu: {
1976
- ({
1977
- label,
1978
- children,
1979
- itemHoverAppearance,
1980
- itemActiveAccentBar,
1981
- itemActiveLabelSemibold,
1982
- delay,
1983
- FORCE__className: classNameOverride
1984
- }: MenuSubmenuProps): React$2.JSX.Element;
1985
- displayName: string;
1986
- };
1987
1939
  };
1940
+ declare function Menu({ trigger, children, contentProps, open, onOpenChange, itemHoverAppearance, itemActiveAccentBar, itemActiveLabelSemibold, panelPadding, popoverOffset, trapFocus, FORCE__className: classNameOverride }: MenuProps): React$2.JSX.Element;
1941
+ declare namespace Menu {
1942
+ var displayName: string;
1943
+ export { MenuItem$1 as Item };
1944
+ export { MenuHeader as Header };
1945
+ export { MenuSection$1 as Section };
1946
+ export { MenuDivider as Divider };
1947
+ export { MenuList as List };
1948
+ export { MenuSubmenu as Submenu };
1949
+ }
1988
1950
  /**
1989
1951
  * Apply to react-aria `Menu` when composing `SubmenuTrigger` yourself; prefer {@link Menu.Submenu} for correct behavior.
1990
1952
  */
1991
- declare const submenuPanelClassName: any;
1953
+ declare const submenuPanelClassName: string;
1992
1954
  //#endregion
1993
1955
  //#region src/components/TabNav/TabNav.d.ts
1994
- declare const tabNavPlacements: readonly ["horizontal", "vertical"];
1956
+ declare const tabNavPlacements: readonly ['horizontal', 'vertical'];
1995
1957
  type TabNavPlacement = (typeof tabNavPlacements)[number];
1996
- declare const tabNavItemVariants: readonly ["default", "dropdown"];
1958
+ declare const tabNavItemVariants: readonly ['default', 'dropdown'];
1997
1959
  type TabNavItemVariant = (typeof tabNavItemVariants)[number];
1998
1960
  interface TabNavSubItemType {
1999
1961
  /** Unique key for the sub-item. */
@@ -2079,26 +2041,10 @@ type TabNavProps = StylingOverrideProps & Omit<React$2.HTMLAttributes<HTMLDivEle
2079
2041
  */
2080
2042
  wrap?: boolean;
2081
2043
  };
2082
- /**
2083
- * TabNav provides a horizontal or vertical navigation styled as tabs.
2084
- * Tab items are links that redirect to URLs. With `subItems`, horizontal tabs open a dropdown menu; vertical tabs
2085
- * use an inline indented list (Tab Nav | Vertical in Figma).
2086
- */
2087
- declare const TabNav: {
2088
- ({
2089
- activeKey,
2090
- onTabClick,
2091
- items,
2092
- tabPlacement,
2093
- centered,
2094
- tabBarExtraSlot,
2095
- wrap,
2096
- FORCE__className: classNameOverride,
2097
- "aria-label": ariaLabel,
2098
- ...props
2099
- }: TabNavProps): React$2.JSX.Element;
2100
- displayName: string;
2101
- };
2044
+ declare function TabNav({ activeKey, onTabClick, items, tabPlacement, centered, tabBarExtraSlot, wrap, FORCE__className: classNameOverride, 'aria-label': ariaLabel, ...props }: TabNavProps): React$2.JSX.Element;
2045
+ declare namespace TabNav {
2046
+ var displayName: string;
2047
+ }
2102
2048
  //#endregion
2103
2049
  //#region src/components/TopNav/TopNav.d.ts
2104
2050
  type TopNavProps = StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<'header'>, 'className'> & {
@@ -2114,27 +2060,15 @@ type TopNavCenterProps = StylingOverrideProps & Omit<React$2.ComponentPropsWitho
2114
2060
  children?: React$2.ReactNode;
2115
2061
  };
2116
2062
  declare const Start: {
2117
- ({
2118
- children,
2119
- FORCE__className: classNameOverride,
2120
- ...props
2121
- }: TopNavStartProps): React$2.JSX.Element;
2063
+ ({ children, FORCE__className: classNameOverride, ...props }: TopNavStartProps): React$2.JSX.Element;
2122
2064
  displayName: string;
2123
2065
  };
2124
2066
  declare const Center: {
2125
- ({
2126
- children,
2127
- FORCE__className: classNameOverride,
2128
- ...props
2129
- }: TopNavCenterProps): React$2.JSX.Element;
2067
+ ({ children, FORCE__className: classNameOverride, ...props }: TopNavCenterProps): React$2.JSX.Element;
2130
2068
  displayName: string;
2131
2069
  };
2132
2070
  declare const End: {
2133
- ({
2134
- children,
2135
- FORCE__className: classNameOverride,
2136
- ...props
2137
- }: TopNavEndProps): React$2.JSX.Element;
2071
+ ({ children, FORCE__className: classNameOverride, ...props }: TopNavEndProps): React$2.JSX.Element;
2138
2072
  displayName: string;
2139
2073
  };
2140
2074
  declare const TopNavWithRef: (props: StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.HTMLAttributes<HTMLElement>, HTMLElement>, "ref">, "className"> & {
@@ -2154,7 +2088,7 @@ type TopNavComponent = typeof TopNavWithRef & {
2154
2088
  declare const TopNav: TopNavComponent;
2155
2089
  //#endregion
2156
2090
  //#region src/components/Tooltip/Tooltip.d.ts
2157
- declare const placements: readonly ["top", "bottom", "left", "right"];
2091
+ declare const placements: readonly ['top', 'bottom', 'left', 'right'];
2158
2092
  type Placement = (typeof placements)[number];
2159
2093
  type TooltipProps = {
2160
2094
  /**
@@ -2190,19 +2124,11 @@ type TooltipProps = {
2190
2124
  /**
2191
2125
  * A component to display additional information when hovering or focusing on an interactive element.
2192
2126
  */
2193
- declare function Tooltip({
2194
- children,
2195
- title,
2196
- shortcut,
2197
- getContainer,
2198
- placement,
2199
- isDisabled,
2200
- FORCE__className: classNameOverride,
2201
- ...props
2202
- }: TooltipProps): React$2.JSX.Element;
2127
+ declare function Tooltip({ children, title, shortcut, getContainer, placement, isDisabled, FORCE__className: classNameOverride, ...props }: TooltipProps): React$2.JSX.Element;
2203
2128
  type CustomTooltipTriggerChild = NonNullable<React$2.ComponentProps<typeof Focusable>['children']>;
2204
2129
  type CustomTooltipTriggerProps = {
2205
- /** A single element that receives focus and pointer events for the tooltip trigger. */children: CustomTooltipTriggerChild;
2130
+ /** A single element that receives focus and pointer events for the tooltip trigger. */
2131
+ children: CustomTooltipTriggerChild;
2206
2132
  };
2207
2133
  /**
2208
2134
  * Wraps a custom or third-party trigger so {@link Tooltip} can attach hover and focus behavior.
@@ -2211,4 +2137,102 @@ type CustomTooltipTriggerProps = {
2211
2137
  */
2212
2138
  declare const CustomTooltipTrigger: React$2.ForwardRefExoticComponent<CustomTooltipTriggerProps & React$2.RefAttributes<HTMLElement>>;
2213
2139
  //#endregion
2214
- export { Alert, type AlertProps, Anchor, type AnchorProps, AutocompleteField, type AutocompleteFieldProps, Badge, BadgeLayout, type BadgeProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonLink, type ButtonLinkProps, type ButtonProps, Card, Checkbox, type CheckboxProps, Collapse, type CollapseProps, CustomTooltipTrigger, type CustomTooltipTriggerProps, DatePickerField, type DatePickerFieldProps, DateRangePickerField, type DateRangePickerFieldPlaceholder, type DateRangePickerFieldProps, Divider, type DividerProps, type DividerType, Drawer, type DrawerPlacement, type DrawerProps, EmptyState, type EmptyStateProps, IconButton, type IconButtonProps, InputRow, type InputRowAddonProps, type InputRowProps, Link, type LinkProps, ListItem, type ListItemProps, Menu, type MenuDividerProps, type MenuHeaderProps, type MenuItemProps, type MenuListProps, type MenuPanelPadding, type MenuProps, type MenuSectionProps, type MenuSubmenuProps, Modal, type ModalProps, NumberField, type NumberFieldProps, Pagination, type PaginationProps, PasswordField, type PasswordFieldProps, Pill, type PillProps, Popover, type PopoverProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RadioTile, type RadioTileProps, Ribbon, type RibbonProps, type RoutedLinkProps, RouterProvider, SKELETON_SIZE, SKELETON_SIZE_TOKENS, Skeleton, type SkeletonElementProps, SkeletonGroup, type SkeletonGroupButtonProps, type SkeletonGroupInputProps, type SkeletonGroupNodeProps, type SkeletonParagraphProps, type SkeletonProps, type SkeletonSize, type SkeletonTitleProps, Spinner, type SpinnerProps, type StylingOverrideProps, Switch, type SwitchProps, TabNav, type TabNavItemType, type TabNavItemVariant, type TabNavPlacement, type TabNavProps, type TabNavSubItemType, Tag, type TagColor, type TagProps, Text, TextArea, type TextAreaAutoSize, type TextAreaProps, TextField, type TextFieldProps, type TextProps, Toast, type ToastOptions, type ToastPosition, type ToastType, Tooltip, type TooltipProps, TopNav, type TopNavCenterProps, type TopNavEndProps, type TopNavProps, type TopNavStartProps, VerticalNavigation, type VerticalNavigationCollapseProps, type VerticalNavigationFooterProps, type VerticalNavigationItemListProps, type VerticalNavigationItemProps, type VerticalNavigationProps, VisuallyHidden, type VisuallyHiddenProps, submenuPanelClassName, tagColors };
2140
+ //#region src/components/Tree/Tree.d.ts
2141
+ interface TreeItemType {
2142
+ /**
2143
+ * The unique key of the tree item.
2144
+ */
2145
+ key: Key;
2146
+ /**
2147
+ * The label of the tree item.
2148
+ */
2149
+ label: React$2.ReactNode;
2150
+ /**
2151
+ * The children of the tree item.
2152
+ */
2153
+ children?: TreeItemType[];
2154
+ /**
2155
+ * Whether the tree item is disabled.
2156
+ */
2157
+ isDisabled?: boolean;
2158
+ /**
2159
+ * The suffix of the tree item.
2160
+ */
2161
+ suffix?: React$2.ReactNode;
2162
+ /**
2163
+ * The trailing slot of the tree item.
2164
+ */
2165
+ trailingSlot?: React$2.ReactNode;
2166
+ }
2167
+ type TreeProps = StylingOverrideProps & {
2168
+ /**
2169
+ * Defines a string value that labels the current element.
2170
+ */
2171
+ 'aria-label'?: string;
2172
+ /**
2173
+ * Identifies the element (or elements) that labels the current element.
2174
+ */
2175
+ 'aria-labelledby'?: string;
2176
+ /**
2177
+ * Items to render in the tree.
2178
+ */
2179
+ items: TreeItemType[];
2180
+ /**
2181
+ * Handler that is called when a user performs an action on an item.
2182
+ */
2183
+ onAction?: (key: Key) => void;
2184
+ /**
2185
+ * The initial expanded keys when in uncontrolled mode.
2186
+ */
2187
+ defaultExpandedKeys?: Iterable<Key>;
2188
+ /**
2189
+ * The initial selected keys when in uncontrolled mode.
2190
+ */
2191
+ defaultSelectedKeys?: Iterable<Key>;
2192
+ /**
2193
+ * The currently expanded keys when in controlled mode.
2194
+ */
2195
+ expandedKeys?: Iterable<Key>;
2196
+ /**
2197
+ * Handler that is called when the expanded keys change.
2198
+ */
2199
+ onExpandedChange?: (keys: Set<Key>) => void;
2200
+ /**
2201
+ * Callback that is fired when the selection changes.
2202
+ */
2203
+ onSelectionChange?: (keys: Set<Key>) => void;
2204
+ /**
2205
+ * The currently selected keys when in controlled mode.
2206
+ */
2207
+ selectedKeys?: Iterable<Key>;
2208
+ /**
2209
+ * The selection mode of the tree.
2210
+ * @default 'multiple'
2211
+ */
2212
+ selectionMode?: 'none' | 'multiple';
2213
+ };
2214
+ /**
2215
+ * A hierarchical tree with cascading multi-select and Capra ListItem row layout.
2216
+ */
2217
+ declare function Tree({ FORCE__className: classNameOverride, items, selectionMode, defaultSelectedKeys, selectedKeys, onSelectionChange, expandedKeys, defaultExpandedKeys, ...props }: TreeProps): React$2.JSX.Element;
2218
+ //#endregion
2219
+ //#region src/components/input-helpers/Label.d.ts
2220
+ type LabelProps = {
2221
+ /** Text to display in the label. */
2222
+ children?: string;
2223
+ /** Whether the field the label is labeling is required (shows asterisk after label). */
2224
+ required?: boolean;
2225
+ /** Content after the label text. */
2226
+ trailingSlot?: React$2.ReactNode;
2227
+ } & StylingOverrideProps & Omit<React$2.ComponentPropsWithoutRef<'label'>, 'className' | 'style'>;
2228
+ /** Label text and optional required indicator for form fields, aligned with Capra field layouts. */
2229
+ declare const Label: React$2.ForwardRefExoticComponent<{
2230
+ /** Text to display in the label. */
2231
+ children?: string;
2232
+ /** Whether the field the label is labeling is required (shows asterisk after label). */
2233
+ required?: boolean;
2234
+ /** Content after the label text. */
2235
+ trailingSlot?: React$2.ReactNode;
2236
+ } & StylingOverrideProps & Omit<Omit<React$2.DetailedHTMLProps<React$2.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref">, "className" | "style"> & React$2.RefAttributes<HTMLLabelElement>>;
2237
+ //#endregion
2238
+ export { Alert, type AlertProps, Anchor, type AnchorProps, AutocompleteField, type AutocompleteFieldProps, Badge, BadgeLayout, type BadgeProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, Button, ButtonLink, type ButtonLinkProps, type ButtonProps, Card, Checkbox, type CheckboxProps, Collapse, type CollapseProps, CustomTooltipTrigger, type CustomTooltipTriggerProps, DatePickerField, type DatePickerFieldProps, DateRangePickerField, type DateRangePickerFieldPlaceholder, type DateRangePickerFieldProps, Divider, type DividerProps, type DividerType, Drawer, type DrawerPlacement, type DrawerProps, EmptyState, type EmptyStateProps, IconButton, type IconButtonProps, InputRow, type InputRowAddonProps, type InputRowProps, Label, type LabelProps, Link, type LinkProps, ListItem, type ListItemProps, Menu, type MenuDividerProps, type MenuHeaderProps, type MenuItemProps, type MenuListProps, type MenuPanelPadding, type MenuProps, type MenuSectionProps, type MenuSubmenuProps, Modal, type ModalProps, NumberField, type NumberFieldProps, Pagination, type PaginationProps, PasswordField, type PasswordFieldProps, Pill, type PillProps, Popover, type PopoverProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, RadioTile, type RadioTileProps, Ribbon, type RibbonProps, type RoutedLinkProps, RouterProvider, SKELETON_SIZE, SKELETON_SIZE_TOKENS, Skeleton, type SkeletonElementProps, SkeletonGroup, type SkeletonGroupButtonProps, type SkeletonGroupInputProps, type SkeletonGroupNodeProps, type SkeletonParagraphProps, type SkeletonProps, type SkeletonSize, type SkeletonTitleProps, Spinner, type SpinnerProps, type StylingOverrideProps, Switch, type SwitchProps, TabNav, type TabNavItemType, type TabNavItemVariant, type TabNavPlacement, type TabNavProps, type TabNavSubItemType, Tag, type TagColor, type TagProps, Text, TextArea, type TextAreaAutoSize, type TextAreaProps, TextField, type TextFieldProps, type TextProps, Toast, type ToastOptions, type ToastPosition, type ToastType, Tooltip, type TooltipProps, TopNav, type TopNavCenterProps, type TopNavEndProps, type TopNavProps, type TopNavStartProps, Tree, type TreeItemType, type TreeProps, VerticalNavigation, type VerticalNavigationCollapseProps, type VerticalNavigationFooterProps, type VerticalNavigationItemListProps, type VerticalNavigationItemProps, type VerticalNavigationProps, VisuallyHidden, type VisuallyHiddenProps, submenuPanelClassName, tagColors };