@nearform/quantum 1.5.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -3,17 +3,20 @@ import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  import * as React from 'react';
5
5
  import React__default from 'react';
6
+ import { IconType } from 'react-icons';
7
+ export { IconType } from 'react-icons';
6
8
  import { DayPicker } from 'react-day-picker';
7
9
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
10
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
8
11
  import * as LabelPrimitive from '@radix-ui/react-label';
9
- import { IconType } from 'react-icons';
10
- export { IconType } from 'react-icons';
11
12
  import * as DialogPrimitive from '@radix-ui/react-dialog';
12
13
  import * as PopoverPrimitive from '@radix-ui/react-popover';
13
14
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
14
15
  import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
15
16
  import * as SelectPrimitive from '@radix-ui/react-select';
16
- import * as SwitchPrimitives from '@radix-ui/react-switch';
17
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
18
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
19
+ import * as ToastPrimitive from '@radix-ui/react-toast';
17
20
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
18
21
  export * from 'react-icons/bs';
19
22
 
@@ -233,10 +236,22 @@ declare const _default: {
233
236
  };
234
237
  };
235
238
  feedback: {
236
- green: string;
237
- yellow: string;
238
- orange: string;
239
- red: string;
239
+ success: {
240
+ DEFAULT: string;
241
+ dark: string;
242
+ };
243
+ warning: {
244
+ DEFAULT: string;
245
+ dark: string;
246
+ };
247
+ danger: {
248
+ DEFAULT: string;
249
+ dark: string;
250
+ };
251
+ error: {
252
+ DEFAULT: string;
253
+ dark: string;
254
+ };
240
255
  };
241
256
  button: {
242
257
  primary: {
@@ -255,7 +270,7 @@ declare const _default: {
255
270
  dark: string;
256
271
  };
257
272
  selected: {
258
- DEFAILT: string;
273
+ DEFAULT: string;
259
274
  dark: string;
260
275
  };
261
276
  };
@@ -290,7 +305,7 @@ declare const _default: {
290
305
  dark: string;
291
306
  };
292
307
  selected: {
293
- DEFAILT: string;
308
+ DEFAULT: string;
294
309
  dark: string;
295
310
  };
296
311
  };
@@ -305,7 +320,7 @@ declare const _default: {
305
320
  dark: string;
306
321
  };
307
322
  selected: {
308
- DEFAILT: string;
323
+ DEFAULT: string;
309
324
  dark: string;
310
325
  };
311
326
  };
@@ -319,9 +334,10 @@ declare const _default: {
319
334
  };
320
335
  disabled: {
321
336
  DEFAULT: string;
337
+ dark: string;
322
338
  };
323
339
  selected: {
324
- DEFAILT: string;
340
+ DEFAULT: string;
325
341
  dark: string;
326
342
  };
327
343
  };
@@ -335,9 +351,10 @@ declare const _default: {
335
351
  };
336
352
  disabled: {
337
353
  DEFAULT: string;
354
+ dark: string;
338
355
  };
339
356
  selected: {
340
- DEFAILT: string;
357
+ DEFAULT: string;
341
358
  dark: string;
342
359
  };
343
360
  };
@@ -360,8 +377,102 @@ declare const AccordionHeader: React.ForwardRefExoticComponent<Omit<AccordionPri
360
377
  declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
361
378
  declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
362
379
 
380
+ declare const avatarVariants: (props?: ({
381
+ size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
382
+ shape?: "square" | "circle" | null | undefined;
383
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
384
+ interface AvatarProps extends Omit<React__default.ComponentPropsWithoutRef<'span'>, 'children' | 'onError'>, VariantProps<typeof avatarVariants> {
385
+ /**
386
+ * Image to show. Until it loads — and permanently, if it fails to load — the
387
+ * initials or the icon show in its place.
388
+ */
389
+ src?: string;
390
+ /** Who the avatar stands for: names it, and seeds the initials. */
391
+ name?: string;
392
+ /** Initials to render instead of the ones derived from `name`. */
393
+ initials?: string;
394
+ /** Accessible name to use instead of `name`, for the image and the fallback alike. */
395
+ alt?: string;
396
+ /** Icon to render instead of the default person glyph when there are no initials. */
397
+ icon?: React__default.ReactNode;
398
+ }
399
+ /**
400
+ * The image sits on top of the fallback rather than replacing it, so the
401
+ * initials cover the gap while it loads instead of the avatar flashing empty.
402
+ * Only one of the two is ever exposed to assistive technology: the `<img>`
403
+ * carries the accessible name whenever it is rendered, and the fallback layer
404
+ * is `aria-hidden` throughout.
405
+ */
406
+ declare const Avatar: React__default.ForwardRefExoticComponent<AvatarProps & React__default.RefAttributes<HTMLSpanElement>>;
407
+
408
+ declare const backLinkVariants: (props?: ({
409
+ size?: "sm" | "md" | null | undefined;
410
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
411
+ interface BackLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof backLinkVariants> {
412
+ }
413
+ declare const BackLink: React.ForwardRefExoticComponent<BackLinkProps & React.RefAttributes<HTMLAnchorElement>>;
414
+
415
+ declare const OpenSourceIcon: IconType;
416
+
417
+ declare const Breadcrumb: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
418
+ declare const BreadcrumbList: React.ForwardRefExoticComponent<React.OlHTMLAttributes<HTMLOListElement> & React.RefAttributes<HTMLOListElement>>;
419
+ declare const BreadcrumbItem: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
420
+ interface BreadcrumbLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
421
+ asChild?: boolean;
422
+ icon?: IconType;
423
+ }
424
+ declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement>>;
425
+ declare const BreadcrumbPage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
426
+ declare const BreadcrumbSeparator: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
427
+
428
+ /**
429
+ * Badge wears the same clothes as `Chip`: a 2px coloured border around a `-50`
430
+ * fill, with the text in near-black `foreground` rather than a tint of the
431
+ * hue. The two are siblings in the design file and share the fills exactly, so
432
+ * they share the tokens here too.
433
+ *
434
+ * Putting the colour in the border rather than the text is what makes the
435
+ * whole set comfortably accessible -- `foreground` on any of the `-50` fills
436
+ * is 16:1 or better, so there is no per-hue weight to tune and no ramp that
437
+ * has to be treated as a special case.
438
+ *
439
+ * Dark mode is not in the design file, so it is derived: the fill drops to the
440
+ * page background, the border takes the dark half of its descriptor, and the
441
+ * border goes on carrying the meaning. Tinting the fill instead would have
442
+ * been prettier and would have hidden the border in it -- `feedback-error` on
443
+ * `red-900` is 1.85:1, which would leave error and success telling themselves
444
+ * apart by fill alone.
445
+ */
446
+ declare const badgeVariants: (props?: ({
447
+ variant?: "default" | "disabled" | "info" | "success" | "warning" | "error" | "active" | null | undefined;
448
+ size?: "default" | "sm" | "lg" | null | undefined;
449
+ shape?: "circle" | "rounded" | null | undefined;
450
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
451
+ interface BadgeProps extends React__default.ComponentPropsWithoutRef<'span'>, VariantProps<typeof badgeVariants> {
452
+ /** Decorative icon shown before the text. */
453
+ icon?: React__default.ReactNode;
454
+ /** Shows a filled dot before the text, in the badge's own colour. */
455
+ dot?: boolean;
456
+ }
457
+ /**
458
+ * A badge labels the thing beside it -- a count, a status, a category. It is
459
+ * static: nothing about it responds to a click, and a badge that needs to be
460
+ * pressed or removed is a `Chip`. `disabled` is an appearance only, for a
461
+ * badge attached to a control that is itself disabled; it does not disable
462
+ * anything, because there is nothing here to disable.
463
+ *
464
+ * The text inside is the label, so it is left in the accessibility tree as
465
+ * ordinary content. A badge whose text does not say enough on its own -- a
466
+ * bare `3` -- takes an `aria-label`, and with it `role="img"`, which is what
467
+ * makes that label reach a screen reader at all: `aria-label` on a plain
468
+ * `<span>` has no role to name and most screen readers drop it. The badge
469
+ * never carries that role without a name to go in it, however the role
470
+ * arrived.
471
+ */
472
+ declare const Badge: React__default.ForwardRefExoticComponent<BadgeProps & React__default.RefAttributes<HTMLSpanElement>>;
473
+
363
474
  declare const buttonVariants: (props?: ({
364
- variant?: "primary" | "secondary" | "tertiary" | "success" | "danger" | null | undefined;
475
+ variant?: "success" | "primary" | "secondary" | "tertiary" | "danger" | null | undefined;
365
476
  size?: "sm" | "md" | "lg" | "xs" | null | undefined;
366
477
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
367
478
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -390,12 +501,162 @@ declare namespace Calendar {
390
501
  var displayName: string;
391
502
  }
392
503
 
393
- interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
394
- }
504
+ type CheckboxProps = React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>;
395
505
  declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
396
506
 
507
+ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
508
+
509
+ declare const cardVariants: (props?: ({
510
+ variant?: "outline" | "filled" | null | undefined;
511
+ interactive?: boolean | null | undefined;
512
+ selected?: boolean | null | undefined;
513
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
514
+ interface CardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {
515
+ }
516
+ declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
517
+ declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
518
+ declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
519
+ type CheckboxRootProps = React.ComponentPropsWithoutRef<typeof Checkbox>;
520
+ interface SelectableCardProps extends Omit<CheckboxRootProps, 'title' | 'children' | 'asChild'> {
521
+ title: React.ReactNode;
522
+ description?: React.ReactNode;
523
+ }
524
+ declare const SelectableCard: React.ForwardRefExoticComponent<SelectableCardProps & React.RefAttributes<HTMLButtonElement>>;
525
+ type SwitchRootProps$1 = React.ComponentPropsWithoutRef<typeof Switch>;
526
+ interface SwitchCardProps extends Omit<SwitchRootProps$1, 'children' | 'asChild'> {
527
+ label: React.ReactNode;
528
+ onRemove?: () => void;
529
+ removeLabel?: string;
530
+ }
531
+ declare const SwitchCard: React.ForwardRefExoticComponent<SwitchCardProps & React.RefAttributes<HTMLButtonElement>>;
532
+
533
+ interface ChoiceGroupFieldsetProps extends React.ComponentPropsWithoutRef<'fieldset'> {
534
+ /** The group's name, rendered as its `<legend>`. */
535
+ legend?: React.ReactNode;
536
+ /** Hint under the legend, reached through the fieldset's `aria-describedby`. */
537
+ description?: React.ReactNode;
538
+ /** Validation message under the options, reached the same way. */
539
+ error?: React.ReactNode;
540
+ /**
541
+ * Dims the legend along with the options. Deliberately not rendered as the
542
+ * `<fieldset disabled>` attribute, which the browser applies to every
543
+ * control inside the element with no way for one of them to opt back in: a
544
+ * group disabled that way could not leave a single option live, and an item
545
+ * that had asked to stay enabled would render as enabled and refuse to be
546
+ * clicked. Every control is given `disabled` in its own right instead.
547
+ */
548
+ disabled?: boolean;
549
+ }
550
+
551
+ interface CheckboxGroupContextValue {
552
+ /** The values of the boxes that are currently ticked. */
553
+ value: string[];
554
+ toggle: (value: string, checked: boolean) => void;
555
+ /** Shared by every box in the group, so the set submits as one field. */
556
+ name?: string;
557
+ }
558
+ /**
559
+ * The group's selection, for a `CheckboxGroupItem` to read. `null` outside a
560
+ * group, where an item is an ordinary checkbox that keeps its own state.
561
+ */
562
+ declare const useCheckboxGroup: () => CheckboxGroupContextValue | null;
563
+ interface CheckboxGroupProps extends Omit<ChoiceGroupFieldsetProps, 'defaultValue' | 'onChange'> {
564
+ /** Ticked values. Supply it for a controlled group, with `onValueChange`. */
565
+ value?: string[];
566
+ /** Ticked values at first render, for a group that keeps its own state. */
567
+ defaultValue?: string[];
568
+ onValueChange?: (value: string[]) => void;
569
+ /** Given to every box, so the group submits as one multi-valued field. */
570
+ name?: string;
571
+ /** Lays the options out in a column or in a wrapping row. */
572
+ orientation?: 'vertical' | 'horizontal';
573
+ /** Which side of its control each label sits on. */
574
+ labelPosition?: 'left' | 'right';
575
+ /**
576
+ * Marks the options invalid independently of `error`, and wins over it in
577
+ * both directions -- the same split `FormGroup` draws, for the same reason:
578
+ * `error` is what the group says, `invalid` is what it claims about itself.
579
+ */
580
+ invalid?: boolean;
581
+ }
582
+ /**
583
+ * A set of checkboxes that belong to one question.
584
+ *
585
+ * ```tsx
586
+ * <CheckboxGroup
587
+ * legend="How should we contact you?"
588
+ * description="Select all that apply"
589
+ * name="contact"
590
+ * defaultValue={['email']}
591
+ * >
592
+ * <CheckboxGroupItem value="email" label="Email" />
593
+ * <CheckboxGroupItem value="phone" label="Phone" description="Weekdays only" />
594
+ * </CheckboxGroup>
595
+ * ```
596
+ *
597
+ * The group owns the selection and the items read it, rather than each box
598
+ * holding a boolean of its own: "which of these are ticked" is one piece of
599
+ * state and one `onValueChange`, and a group that submits under one `name` is
600
+ * one field on the server too.
601
+ *
602
+ * There is no `required`. A checkbox group's rule is almost always "at least
603
+ * one", and HTML's `required` on a checkbox means that box in particular, so
604
+ * forwarding it to the options would demand every one of them; `aria-required`
605
+ * on each box says the same thing to a screen reader. The rule belongs to the
606
+ * form, and what it produces is an `error`.
607
+ */
608
+ declare const CheckboxGroup: React.ForwardRefExoticComponent<CheckboxGroupProps & React.RefAttributes<HTMLFieldSetElement>>;
609
+
610
+ interface CheckboxGroupItemProps extends Omit<CheckboxProps, 'checked' | 'defaultChecked' | 'value'> {
611
+ /** What this box contributes to the group's value when it is ticked. */
612
+ value: string;
613
+ label?: React.ReactNode;
614
+ /** Hint for this option alone, announced with the box it belongs to. */
615
+ description?: React.ReactNode;
616
+ }
617
+ /**
618
+ * One box in a `CheckboxGroup`, with the label and hint that belong to it.
619
+ *
620
+ * Whether it is ticked comes from the group, so `checked` is not a prop here;
621
+ * `onCheckedChange` still is, for the caller who wants to know about this one
622
+ * box as well as about the group. Rendered outside a group it is an ordinary
623
+ * uncontrolled checkbox that happens to come with its label wired up.
624
+ */
625
+ declare const CheckboxGroupItem: React.ForwardRefExoticComponent<CheckboxGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
626
+
627
+ interface CodeBlockProps extends React.HTMLAttributes<HTMLElement> {
628
+ label?: React.ReactNode;
629
+ language?: string;
630
+ }
631
+ declare const CodeBlock: React.ForwardRefExoticComponent<CodeBlockProps & React.RefAttributes<HTMLElement>>;
632
+
633
+ type DateInputInvalidReason = 'format' | 'range';
634
+ interface DateInputValueDetails {
635
+ text: string;
636
+ invalid: boolean;
637
+ reason: DateInputInvalidReason | null;
638
+ }
639
+ interface DateInputProps extends Omit<React.ComponentPropsWithoutRef<'input'>, 'size' | 'type' | 'value' | 'defaultValue' | 'min' | 'max'> {
640
+ value?: Date | null;
641
+ defaultValue?: Date | null;
642
+ onValueChange?: (date: Date | null, details: DateInputValueDetails) => void;
643
+ format?: string;
644
+ formatHint?: string;
645
+ min?: Date;
646
+ max?: Date;
647
+ variant?: 'primary' | 'error' | 'success';
648
+ size?: 'sm' | 'default' | 'lg';
649
+ formClassName?: string;
650
+ labelText?: string;
651
+ helpText?: string;
652
+ calendarLabel?: string;
653
+ invalidMessage?: string;
654
+ rangeMessage?: string;
655
+ }
656
+ declare const DateInput: React.ForwardRefExoticComponent<DateInputProps & React.RefAttributes<HTMLInputElement>>;
657
+
397
658
  declare const chipVariants: (props?: ({
398
- variant?: "default" | "success" | "warning" | "error" | "info" | null | undefined;
659
+ variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
399
660
  size?: "default" | "lg" | null | undefined;
400
661
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
401
662
  interface ChipProps extends React__default.ComponentPropsWithRef<'button'>, VariantProps<typeof chipVariants> {
@@ -422,12 +683,213 @@ type Props$1 = Omit<LabelProps, 'children' | 'align'> & VariantProps<typeof vert
422
683
  }>;
423
684
  declare const ControlLabel: React.FC<Props$1>;
424
685
 
686
+ /**
687
+ * A field is three things that have to agree with each other: a label, a
688
+ * control, and a message below it. Getting them to agree is entirely id
689
+ * plumbing -- the label's `htmlFor` has to match the control's `id`, the
690
+ * message's `id` has to appear in the control's `aria-describedby`, and the
691
+ * control has to be marked `aria-invalid` when the message is an error. That
692
+ * is what `FormGroup` does; the layout is the smaller half of the job.
693
+ *
694
+ * The plumbing is done by cloning the children rather than by having the
695
+ * children read a context, so the group works with anything that takes the
696
+ * props every form control already takes -- our `Input` and `Select`, a bare
697
+ * `<input>`, a control from somewhere else. The only requirement is that they
698
+ * are direct children, which is the arrangement the design file draws.
699
+ */
700
+ declare const formGroupVariants: (props?: ({
701
+ orientation?: "horizontal" | "vertical" | null | undefined;
702
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
703
+ interface FormGroupContextValue {
704
+ /** Shown by `FieldDescription` unless it is given children of its own. */
705
+ description?: React.ReactNode;
706
+ /** Shown by `FieldError` unless it is given children of its own. */
707
+ error?: React.ReactNode;
708
+ descriptionId: string;
709
+ errorId: string;
710
+ /** Whether a `FieldError` in this group has something to render. */
711
+ errorShown: boolean;
712
+ }
713
+ /**
714
+ * The group's messages and the ids they are published under. `null` outside a
715
+ * `FormGroup`, which is what lets `FieldError` and `FieldDescription` be
716
+ * rendered on their own.
717
+ *
718
+ * Useful for a control the group cannot reach -- one nested inside a wrapper
719
+ * of your own, say -- which can take `errorId` from here and put it in its own
720
+ * `aria-describedby`.
721
+ */
722
+ declare const useFormGroup: () => FormGroupContextValue | null;
723
+ type FieldMessageProps = React.ComponentPropsWithoutRef<'p'>;
724
+ /**
725
+ * The hint under the control. Takes its text from the group's `description`,
726
+ * or from its own children when you would rather write it inline.
727
+ *
728
+ * Stands down while the group's `FieldError` has something to say, so the two
729
+ * can be written side by side once and the field shows one message at a time
730
+ * rather than growing a second line as it is validated. The error is the more
731
+ * urgent of the two and it takes the place, not the space below it. A field
732
+ * that genuinely needs both messages at once wants a second element of its
733
+ * own rather than this one.
734
+ */
735
+ declare const FieldDescription: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
736
+ /**
737
+ * The validation message under the control, and the thing that puts the group
738
+ * in its error state: a `FormGroup` whose `error` is set marks its control
739
+ * `aria-invalid` whether or not a `FieldError` is there to render it.
740
+ *
741
+ * `role="alert"` is what announces a message that appears after the page has
742
+ * loaded -- an element carrying it is read out when it enters the DOM, and
743
+ * this one is not rendered at all until there is something to say. The
744
+ * `aria-describedby` link the group sets up covers the other direction: a
745
+ * message that was already on screen is read when focus reaches the control.
746
+ */
747
+ declare const FieldError: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
748
+ interface FormGroupProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'id'>, VariantProps<typeof formGroupVariants> {
749
+ /** Given to the control and to the label's `htmlFor`. Generated when omitted. */
750
+ controlId?: string;
751
+ /** Hint text, rendered wherever `<FieldDescription />` is placed. */
752
+ description?: React.ReactNode;
753
+ /**
754
+ * Validation message, rendered wherever `<FieldError />` is placed. Setting
755
+ * it marks the control invalid.
756
+ */
757
+ error?: React.ReactNode;
758
+ /**
759
+ * Marks the control invalid independently of `error`, and wins over it in
760
+ * both directions -- `invalid` alone flags a control with no message to
761
+ * show, and `invalid={false}` alongside an `error` renders the message
762
+ * without the flag. The two are deliberately separate: `error` is what the
763
+ * field says, `invalid` is what it claims about itself, and a field can
764
+ * reasonably carry a message it does not want treated as a validation
765
+ * failure. Leave it unset and the error decides.
766
+ */
767
+ invalid?: boolean;
768
+ /** Passed to the control, for the whole field to be disabled in one place. */
769
+ disabled?: boolean;
770
+ /** Passed to the control, for the whole field to be required in one place. */
771
+ required?: boolean;
772
+ }
773
+ /**
774
+ * Wraps a label, a control and its messages into one field, wiring them
775
+ * together and laying them out in either orientation.
776
+ *
777
+ * ```tsx
778
+ * <FormGroup orientation="vertical" error="Pick a date in the future">
779
+ * <Label>Start date</Label>
780
+ * <Input type="date" variant="error" onClear={clear} />
781
+ * <FieldError />
782
+ * </FormGroup>
783
+ * ```
784
+ *
785
+ * The label, the messages and the control are recognised by what they are, so
786
+ * they can be written in any order -- though writing them in the order they
787
+ * appear is what makes the vertical layout need no placement rules at all.
788
+ * Anything that is not a `Label`, a `FieldDescription` or a `FieldError` is
789
+ * taken to be the control; only the first one is wired, since an id can only
790
+ * belong to one element.
791
+ *
792
+ * Nothing is overwritten. A child that already has an `htmlFor`, an
793
+ * `aria-describedby`, a `disabled` or a `required` keeps it, and its own
794
+ * `className` is applied after the group's. A control that already has an `id`
795
+ * keeps that too, and the label and the messages are built around it --
796
+ * `controlId` is the one way to override it, since a group asked for a
797
+ * specific id has been asked by the only party above both of them.
798
+ *
799
+ * `aria-invalid="false"` is the single exception, because it is the only one
800
+ * of these that says nothing by being there: it is the attribute's default
801
+ * and reads identically to its absence. See the guard below.
802
+ */
803
+ declare const FormGroup: React.ForwardRefExoticComponent<FormGroupProps & React.RefAttributes<HTMLDivElement>>;
804
+
805
+ /**
806
+ * An icon button is a `Button` with the label taken out, so it takes its
807
+ * colours from `buttonVariants` rather than restating them. That import is
808
+ * the point rather than an economy: the two sit beside each other in a
809
+ * toolbar, so a variant that gained a hover state or a focus ring in one and
810
+ * not the other would be visible in the gap between them.
811
+ *
812
+ * `size: null` is how cva is told to skip a variant *and* its default, so
813
+ * `Button`'s padding and text sizes are left off entirely and the square
814
+ * below is the only thing setting the box.
815
+ *
816
+ * Which is the other half of the borrowing: a `Button`'s height is arithmetic
817
+ * -- padding plus line box plus border, with compound variants putting
818
+ * `secondary`'s 2px back -- and there is no line box here to add up, because
819
+ * there is no text. So the height is set outright, as `Input` sets its own,
820
+ * and `border-box` absorbs `secondary`'s border rather than a compound
821
+ * variant having to. The numbers are `Button`'s, measured: an icon button
822
+ * belongs in a row with one.
823
+ */
824
+ declare const iconButtonVariants: (props?: ({
825
+ size?: "sm" | "md" | "lg" | "xs" | null | undefined;
826
+ shape?: "circle" | "rounded" | null | undefined;
827
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
828
+ interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children' | 'title'>, VariantProps<typeof iconButtonVariants> {
829
+ /** The icon. It is the whole of the button's content. */
830
+ icon: React.ReactNode;
831
+ /**
832
+ * What the button does, in words -- "Close", "Add to basket", not "cross"
833
+ * or "plus". Required, because there is no text for a screen reader to fall
834
+ * back on.
835
+ */
836
+ label: string;
837
+ variant?: VariantProps<typeof buttonVariants>['variant'];
838
+ }
839
+ /**
840
+ * A button whose content is an icon and nothing else: the close on a dialog,
841
+ * the actions at the end of a table row, a toolbar.
842
+ *
843
+ * `label` is required and has no default, which is the one way this differs
844
+ * from every other prop here. An icon button with no accessible name is a
845
+ * control a screen reader announces as "button" and nothing more, and unlike
846
+ * a missing colour it is invisible to everyone who is not affected by it.
847
+ * There is no name that could be guessed from an icon, so the type asks for
848
+ * one rather than inventing it (WCAG 4.1.2).
849
+ *
850
+ * The icon is left out of the accessibility tree by `aria-label` itself,
851
+ * which replaces an element's contents when the name is computed, so the icon
852
+ * needs no `aria-hidden` of its own. What the icon must not carry is a
853
+ * `title`, which would put a browser tooltip on it that the button's own
854
+ * `Tooltip` did not put there. That one is unreachable from here: `icon` is a
855
+ * `ReactNode`, so there is nothing to type-check.
856
+ *
857
+ * `title` is off the button as well, which is the one prop of a `<button>`
858
+ * this component takes away. It is not that it competes for the name --
859
+ * `title` is the last resort in the naming order, behind both `aria-label`
860
+ * and the contents, so while there is a label it never wins. It is that every
861
+ * reason to reach for it here is already served by something better, and
862
+ * served properly: a tooltip is `Tooltip`, which is reachable by keyboard and
863
+ * by touch as a native one is not, and a name is `label`. What is left is a
864
+ * second tooltip doubling up with the first, and a name that appears out of
865
+ * nowhere in the one case where `label` resolved empty. Neither is worth a
866
+ * prop, so the type stops it at the point where it can still be changed
867
+ * cheaply.
868
+ *
869
+ * Only the type stops it. A `title` arriving through an untyped spread is
870
+ * passed to the element like any other attribute, because deleting an
871
+ * attribute a caller explicitly set is a worse surprise than rendering it.
872
+ *
873
+ * `type` defaults to `"button"`. A bare `<button>` inside a form is a submit
874
+ * button, and an icon button is most often a close or a remove -- the one
875
+ * place that default does the most damage.
876
+ */
877
+ declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps & React.RefAttributes<HTMLButtonElement>>;
878
+
425
879
  declare const formVariants: (props?: ({
426
- variant?: "primary" | "success" | "error" | null | undefined;
880
+ variant?: "success" | "error" | "primary" | null | undefined;
881
+ size?: "default" | "sm" | "lg" | null | undefined;
427
882
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
428
883
  type InputType = 'color' | 'date' | 'datetime-local' | 'email' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week' | (string & {});
429
- interface InputProps extends React__default.HTMLProps<HTMLInputElement> {
884
+ /**
885
+ * `size` is the field's height rather than the HTML attribute of that name,
886
+ * which is omitted. The attribute asks for a width in characters, and the
887
+ * `<input>` here is `flex-grow` inside the field, so it was already being
888
+ * overruled by the layout before it could mean anything.
889
+ */
890
+ interface InputProps extends Omit<React__default.HTMLProps<HTMLInputElement>, 'size'> {
430
891
  variant: 'primary' | 'error' | 'success';
892
+ size?: 'sm' | 'default' | 'lg';
431
893
  type: InputType;
432
894
  formClassName?: string;
433
895
  leftSideClassName?: string;
@@ -440,8 +902,6 @@ interface InputProps extends React__default.HTMLProps<HTMLInputElement> {
440
902
  }
441
903
  declare const Input: React__default.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React__default.RefAttributes<HTMLInputElement>>;
442
904
 
443
- declare const OpenSourceIcon: IconType;
444
-
445
905
  interface Props extends React__default.AnchorHTMLAttributes<HTMLAnchorElement> {
446
906
  selected?: boolean;
447
907
  icon?: IconType;
@@ -471,6 +931,19 @@ declare const ModalDescription: React.ForwardRefExoticComponent<Omit<DialogPrimi
471
931
  variant?: "form" | "default" | null | undefined;
472
932
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string> & React.RefAttributes<HTMLParagraphElement>>;
473
933
 
934
+ declare const pageHeaderVariants: (props?: ({
935
+ size?: "sm" | "md" | null | undefined;
936
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
937
+ interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof pageHeaderVariants> {
938
+ }
939
+ declare const PageHeader: React.ForwardRefExoticComponent<PageHeaderProps & React.RefAttributes<HTMLDivElement>>;
940
+ interface PageHeaderTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
941
+ asChild?: boolean;
942
+ count?: React.ReactNode;
943
+ }
944
+ declare const PageHeaderTitle: React.ForwardRefExoticComponent<PageHeaderTitleProps & React.RefAttributes<HTMLHeadingElement>>;
945
+ declare const PageHeaderActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
946
+
474
947
  declare const PaginationVariants: (props?: class_variance_authority_dist_types.ClassProp | undefined) => string;
475
948
  interface PaginationProps {
476
949
  currentPage: number;
@@ -486,9 +959,15 @@ interface PaginationProps extends React__default.ComponentPropsWithoutRef<'div'>
486
959
  }
487
960
  declare const Pagination: React__default.ForwardRefExoticComponent<PaginationProps & React__default.RefAttributes<HTMLDivElement>>;
488
961
 
489
- interface PasswordProps extends React__default.HTMLProps<HTMLInputElement> {
962
+ /**
963
+ * `size` is the field's height, and is passed through to the same variants
964
+ * `Input` uses so the two line up in a form. As there, it displaces the HTML
965
+ * attribute of that name, which the `flex-grow` input was overruling anyway.
966
+ */
967
+ interface PasswordProps extends Omit<React__default.HTMLProps<HTMLInputElement>, 'size'> {
490
968
  formClassName?: string;
491
969
  variant?: 'primary' | 'error' | 'success';
970
+ size?: 'sm' | 'default' | 'lg';
492
971
  toggleMask?: boolean;
493
972
  labelText?: string;
494
973
  helpText?: string;
@@ -521,11 +1000,60 @@ type PopoverFooterProps = React.PropsWithChildren<{
521
1000
  }>;
522
1001
  declare const PopoverFooter: React.FC<PopoverFooterProps>;
523
1002
 
524
- type RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
525
- declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1003
+ interface RadioGroupProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
1004
+ /** The group's name, rendered as its `<legend>`. */
1005
+ legend?: React.ReactNode;
1006
+ /** Hint under the legend, announced when focus enters the group. */
1007
+ description?: React.ReactNode;
1008
+ /** Validation message under the options, announced the same way. */
1009
+ error?: React.ReactNode;
1010
+ /**
1011
+ * Marks the options invalid independently of `error`, and wins over it in
1012
+ * both directions -- the same split `FormGroup` and `CheckboxGroup` draw.
1013
+ */
1014
+ invalid?: boolean;
1015
+ /** Which side of its control each label sits on. */
1016
+ labelPosition?: 'left' | 'right';
1017
+ /** Classes for the `<fieldset>` the group renders. */
1018
+ className?: string;
1019
+ }
1020
+ /**
1021
+ * A set of radios that belong to one question, of which exactly one can be
1022
+ * chosen.
1023
+ *
1024
+ * ```tsx
1025
+ * <RadioGroup legend="Delivery" defaultValue="standard" name="delivery">
1026
+ * <Radio value="standard" label="Standard" description="3-5 working days" />
1027
+ * <Radio value="express" label="Express" description="Next working day" />
1028
+ * </RadioGroup>
1029
+ * ```
1030
+ *
1031
+ * `orientation` now lays the options out as well as setting which arrow keys
1032
+ * move between them -- it used to do only the second, which meant a horizontal
1033
+ * group was a column you navigated with the left and right arrows. The two
1034
+ * were never independent in practice: a reader arrows in the direction the
1035
+ * options are drawn.
1036
+ *
1037
+ * `className` lands on the `<fieldset>`, which is the group's outermost
1038
+ * element and the one to size or space. Spacing between the options is
1039
+ * `orientation`'s job.
1040
+ */
1041
+ declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
526
1042
 
527
- type RadioGroupItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;
528
- declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1043
+ interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item> {
1044
+ label?: React.ReactNode;
1045
+ /** Hint for this option alone, announced with the radio it belongs to. */
1046
+ description?: React.ReactNode;
1047
+ }
1048
+ /**
1049
+ * One radio in a `RadioGroup`, with the label and hint that belong to it.
1050
+ *
1051
+ * Without a `label` it renders as the bare control it always has, for the
1052
+ * `ControlLabel` pairing the stories used to show; with one it brings its own
1053
+ * label, and the hint is wired to the control rather than left as text beside
1054
+ * it.
1055
+ */
1056
+ declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
529
1057
 
530
1058
  declare const Select: React.FC<SelectPrimitive.SelectProps>;
531
1059
  declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
@@ -543,6 +1071,84 @@ declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectPrimitive.
543
1071
  declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
544
1072
  declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
545
1073
 
1074
+ declare const SortAndShow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
1075
+ interface SortAndShowOption {
1076
+ value: string;
1077
+ label: React.ReactNode;
1078
+ disabled?: boolean;
1079
+ }
1080
+ interface SortAndShowControlProps extends Omit<React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root>, 'children'> {
1081
+ label: React.ReactNode;
1082
+ options: SortAndShowOption[];
1083
+ className?: string;
1084
+ }
1085
+ declare const SortAndShowControl: React.ForwardRefExoticComponent<SortAndShowControlProps & React.RefAttributes<HTMLButtonElement>>;
1086
+
1087
+ declare const splitButtonVariants: (props?: ({
1088
+ variant?: "primary" | "secondary" | null | undefined;
1089
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1090
+ declare const splitButtonSegmentVariants: (props?: ({
1091
+ variant?: "primary" | "secondary" | null | undefined;
1092
+ segment?: "action" | "trigger" | null | undefined;
1093
+ size?: "sm" | "md" | null | undefined;
1094
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1095
+ interface SplitButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof splitButtonVariants>, Pick<VariantProps<typeof splitButtonSegmentVariants>, 'size'> {
1096
+ label: React.ReactNode;
1097
+ children: React.ReactNode;
1098
+ menuLabel?: string;
1099
+ open?: boolean;
1100
+ defaultOpen?: boolean;
1101
+ onOpenChange?: (open: boolean) => void;
1102
+ align?: DropdownMenuPrimitive.DropdownMenuContentProps['align'];
1103
+ menuClassName?: string;
1104
+ }
1105
+ declare const SplitButton: React.ForwardRefExoticComponent<SplitButtonProps & React.RefAttributes<HTMLButtonElement>>;
1106
+ declare const SplitButtonItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1107
+ declare const SplitButtonSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1108
+
1109
+ declare const Stats: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDListElement> & React.RefAttributes<HTMLDListElement>>;
1110
+ interface StatProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
1111
+ label: React.ReactNode;
1112
+ value: React.ReactNode;
1113
+ icon?: IconType;
1114
+ }
1115
+ declare const Stat: React.ForwardRefExoticComponent<StatProps & React.RefAttributes<HTMLDivElement>>;
1116
+
1117
+ type StepStatus = 'complete' | 'current' | 'upcoming';
1118
+ interface StepperProps extends React.OlHTMLAttributes<HTMLOListElement> {
1119
+ currentStep?: number;
1120
+ }
1121
+ declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLOListElement>>;
1122
+ interface StepperItemProps extends Omit<React.LiHTMLAttributes<HTMLLIElement>, 'title'> {
1123
+ title: React.ReactNode;
1124
+ description?: React.ReactNode;
1125
+ }
1126
+ declare const StepperItem: React.ForwardRefExoticComponent<StepperItemProps & React.RefAttributes<HTMLLIElement>>;
1127
+ interface StepperNavProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
1128
+ currentStep: number;
1129
+ totalSteps: number;
1130
+ onStepChange?: (step: number) => void;
1131
+ indicator?: 'dots' | 'counter';
1132
+ label?: string;
1133
+ backLabel?: React.ReactNode;
1134
+ nextLabel?: React.ReactNode;
1135
+ stepLabel?: (step: number, total: number) => string;
1136
+ }
1137
+ declare const StepperNav: React.ForwardRefExoticComponent<StepperNavProps & React.RefAttributes<HTMLDivElement>>;
1138
+
1139
+ declare const Subnav: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
1140
+ interface SubnavHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
1141
+ asChild?: boolean;
1142
+ }
1143
+ declare const SubnavHeading: React.ForwardRefExoticComponent<SubnavHeadingProps & React.RefAttributes<HTMLHeadingElement>>;
1144
+ declare const SubnavList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
1145
+ declare const SubnavItem: React.ForwardRefExoticComponent<React.LiHTMLAttributes<HTMLLIElement> & React.RefAttributes<HTMLLIElement>>;
1146
+ interface SubnavLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
1147
+ asChild?: boolean;
1148
+ active?: boolean;
1149
+ }
1150
+ declare const SubnavLink: React.ForwardRefExoticComponent<SubnavLinkProps & React.RefAttributes<HTMLAnchorElement>>;
1151
+
546
1152
  interface StepProps {
547
1153
  selected: 'true' | 'false';
548
1154
  className?: string;
@@ -560,8 +1166,6 @@ interface StepsIndicatorProp {
560
1166
  }
561
1167
  declare const StepsIndicator: React.ForwardRefExoticComponent<StepsIndicatorProp & React.RefAttributes<HTMLDivElement>>;
562
1168
 
563
- declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
564
-
565
1169
  declare const tableBodyVariants: (props?: ({
566
1170
  variant?: "zebra" | null | undefined;
567
1171
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
@@ -579,8 +1183,21 @@ declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<
579
1183
  declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
580
1184
  declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
581
1185
 
1186
+ declare const tabsVariants: (props?: class_variance_authority_dist_types.ClassProp | undefined) => string;
1187
+ declare const tabsListVariants: (props?: class_variance_authority_dist_types.ClassProp | undefined) => string;
1188
+ declare const tabsTriggerVariants: (props?: ({
1189
+ size?: "sm" | "md" | null | undefined;
1190
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1191
+ declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1192
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1193
+ interface TabsTriggerProps extends React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>, VariantProps<typeof tabsTriggerVariants> {
1194
+ count?: React.ReactNode;
1195
+ }
1196
+ declare const TabsTrigger: React.ForwardRefExoticComponent<TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>;
1197
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1198
+
582
1199
  declare const textareaVariants: (props?: ({
583
- variant?: "disabled" | "primary" | "success" | "error" | null | undefined;
1200
+ variant?: "disabled" | "success" | "error" | "primary" | null | undefined;
584
1201
  defaultVariants?: "variant" | null | undefined;
585
1202
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
586
1203
  interface TextareaProps extends React__default.TextareaHTMLAttributes<HTMLTextAreaElement> {
@@ -591,6 +1208,44 @@ interface TextareaProps extends React__default.TextareaHTMLAttributes<HTMLTextAr
591
1208
  }
592
1209
  declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
593
1210
 
1211
+ declare const ToastProvider: React.FC<ToastPrimitive.ToastProviderProps>;
1212
+ declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
1213
+ declare const toastVariants: (props?: ({
1214
+ variant?: "info" | "success" | "warning" | "error" | null | undefined;
1215
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
1216
+ type ToastVariant = NonNullable<VariantProps<typeof toastVariants>['variant']>;
1217
+ interface ToastProps extends React.ComponentPropsWithoutRef<typeof ToastPrimitive.Root>, VariantProps<typeof toastVariants> {
1218
+ /** Replaces the variant's icon. Pass `null` to show no icon. */
1219
+ icon?: React.ReactNode;
1220
+ }
1221
+ declare const Toast: React.ForwardRefExoticComponent<ToastProps & React.RefAttributes<HTMLLIElement>>;
1222
+ declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1223
+ declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
1224
+ declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitive.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
1225
+ interface ToastCloseProps extends React.ComponentPropsWithoutRef<typeof ToastPrimitive.Close> {
1226
+ /** Accessible name for the close button. */
1227
+ label?: string;
1228
+ }
1229
+ declare const ToastClose: React.ForwardRefExoticComponent<ToastCloseProps & React.RefAttributes<HTMLButtonElement>>;
1230
+
1231
+ declare const ToggleList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLUListElement> & React.RefAttributes<HTMLUListElement>>;
1232
+ type SwitchRootProps = React.ComponentPropsWithoutRef<typeof Switch>;
1233
+ type ToggleListItemRemoveProps = {
1234
+ onRemove?: undefined;
1235
+ removeLabel?: undefined;
1236
+ } | {
1237
+ onRemove: () => void;
1238
+ label: string;
1239
+ removeLabel?: string;
1240
+ } | {
1241
+ onRemove: () => void;
1242
+ removeLabel: string;
1243
+ };
1244
+ type ToggleListItemProps = Omit<SwitchRootProps, 'children' | 'asChild'> & {
1245
+ label: React.ReactNode;
1246
+ } & ToggleListItemRemoveProps;
1247
+ declare const ToggleListItem: React.ForwardRefExoticComponent<ToggleListItemProps & React.RefAttributes<HTMLButtonElement>>;
1248
+
594
1249
  interface TooltipProps {
595
1250
  children?: React.ReactNode;
596
1251
  side?: TooltipPrimitive.TooltipContentProps['side'];
@@ -614,11 +1269,10 @@ declare const WebsiteFooter: React__default.ForwardRefExoticComponent<WebsiteFoo
614
1269
  interface FooterStatementProps extends React__default.ComponentPropsWithoutRef<'div'>, VariantProps<typeof footerStatementVariants> {
615
1270
  }
616
1271
  declare const FooterStatement: React__default.ForwardRefExoticComponent<FooterStatementProps & React__default.RefAttributes<HTMLDivElement>>;
617
- interface LinkRowProps extends React__default.ComponentPropsWithoutRef<'div'> {
618
- }
619
- declare const LinkRow: React__default.ForwardRefExoticComponent<LinkRowProps & React__default.RefAttributes<HTMLDivElement>>;
1272
+ type LinkRowProps = React__default.ComponentPropsWithoutRef<'div'>;
1273
+ declare const LinkRow: React__default.ForwardRefExoticComponent<Omit<React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
620
1274
  interface LinkColumnProps extends React__default.ComponentPropsWithoutRef<'div'>, VariantProps<typeof linkColumnVariants> {
621
1275
  }
622
1276
  declare const LinkColumn: React__default.ForwardRefExoticComponent<LinkColumnProps & React__default.RefAttributes<HTMLDivElement>>;
623
1277
 
624
- export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Checkbox, type CheckboxProps, Chip, type ChipProps, ControlLabel, FooterStatement, type FooterStatementProps, Input, type InputProps, Label, type LabelProps, Link, LinkColumn, type LinkColumnProps, LinkRow, type LinkRowProps, Modal, ModalClose, ModalCloseFooter, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, OpenSourceIcon, Pagination, Password, type PasswordProps, Popover, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, type PopoverProps, PopoverScrollArea, PopoverSeparator, PopoverTrigger, RadioGroupItem as Radio, RadioGroup, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, Step, type StepProps, StepsIndicator, type StepsIndicatorProp, Switch, Table, TableBody, type TableBodyProps, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow, Textarea, type TextareaProps, Tooltip, type TooltipProps, type TriggerProps, WebsiteFooter, type WebsiteFooterProps, buttonVariants, _default as colors, formVariants, textareaVariants };
1278
+ export { Accordion, AccordionContent, AccordionHeader, AccordionItem, AccordionTrigger, Avatar, type AvatarProps, BackLink, type BackLinkProps, Badge, type BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Calendar, type CalendarProps, Card, CardDescription, type CardProps, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupProps, type CheckboxProps, Chip, type ChipProps, CodeBlock, type CodeBlockProps, ControlLabel, DateInput, type DateInputInvalidReason, type DateInputProps, type DateInputValueDetails, FieldDescription, FieldError, type FieldMessageProps, FooterStatement, type FooterStatementProps, FormGroup, type FormGroupProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, Link, LinkColumn, type LinkColumnProps, LinkRow, type LinkRowProps, Modal, ModalClose, ModalCloseFooter, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, ModalTitle, ModalTrigger, OpenSourceIcon, PageHeader, PageHeaderActions, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, Password, type PasswordProps, Popover, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, type PopoverProps, PopoverScrollArea, PopoverSeparator, PopoverTrigger, RadioGroupItem as Radio, RadioGroup, type RadioGroupItemProps, type RadioGroupProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, SelectableCard, type SelectableCardProps, SortAndShow, SortAndShowControl, type SortAndShowControlProps, type SortAndShowOption, SplitButton, SplitButtonItem, type SplitButtonProps, SplitButtonSeparator, Stat, type StatProps, Stats, Step, type StepProps, type StepStatus, Stepper, StepperItem, type StepperItemProps, StepperNav, type StepperNavProps, type StepperProps, StepsIndicator, type StepsIndicatorProp, Subnav, SubnavHeading, type SubnavHeadingProps, SubnavItem, SubnavLink, type SubnavLinkProps, SubnavList, Switch, SwitchCard, type SwitchCardProps, Table, TableBody, type TableBodyProps, TableCaption, TableCell, TableFooter, TableHead, TableHeader, type TableProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, type ToastCloseProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, ToggleList, ToggleListItem, type ToggleListItemProps, Tooltip, type TooltipProps, type TriggerProps, WebsiteFooter, type WebsiteFooterProps, backLinkVariants, buttonVariants, cardVariants, _default as colors, formVariants, iconButtonVariants, pageHeaderVariants, splitButtonSegmentVariants, splitButtonVariants, tabsListVariants, tabsTriggerVariants, tabsVariants, textareaVariants, useCheckboxGroup, useFormGroup };