@discuss-ds/ui 0.40.1 → 0.41.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.
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +691 -580
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -6
- package/dist/index.d.ts +71 -6
- package/dist/index.js +663 -556
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -560,28 +560,67 @@ interface StepperProps extends Omit<React.HTMLAttributes<HTMLOListElement>, 'chi
|
|
|
560
560
|
*/
|
|
561
561
|
declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLOListElement>>;
|
|
562
562
|
|
|
563
|
+
/**
|
|
564
|
+
* `secondary` (default) is the builder's "Design rail": 64px wide, 36px squares, 16px icons. `primary` is the org rail ("Application navigation",
|
|
565
|
+
* hierarchy Primary): 72px wide, 40px squares, 24px icons, the selected square filled with primary and its caption in primary.
|
|
566
|
+
*/
|
|
567
|
+
type NavRailHierarchy = 'secondary' | 'primary';
|
|
563
568
|
interface NavRailProps extends React.HTMLAttributes<HTMLElement> {
|
|
564
569
|
/** Names the navigation for screen readers (e.g. "Builder panels"). */
|
|
565
570
|
'aria-label': string;
|
|
566
571
|
/** Pinned at the bottom of the rail (e.g. an account avatar). */
|
|
567
572
|
footer?: React.ReactNode;
|
|
573
|
+
/** A 64px band at the top with a border under it (e.g. the organization's `OrgMonogram`). */
|
|
574
|
+
header?: React.ReactNode;
|
|
575
|
+
hierarchy?: NavRailHierarchy;
|
|
568
576
|
}
|
|
569
577
|
/**
|
|
570
|
-
* A narrow vertical rail of `NavRailItem`s on the edge of the page
|
|
571
|
-
* a panel beside it shows (Figma "Design rail")
|
|
578
|
+
* A narrow vertical rail of `NavRailItem`s on the edge of the page, with a border on its right and items stacked from the top. The secondary rail switches
|
|
579
|
+
* what a panel beside it shows (Figma "Design rail"); the primary rail is the organization's navigation (Figma "Application navigation"). The consumer owns
|
|
580
|
+
* which item is selected.
|
|
572
581
|
*/
|
|
573
582
|
declare const NavRail: React.ForwardRefExoticComponent<NavRailProps & React.RefAttributes<HTMLElement>>;
|
|
574
583
|
interface NavRailItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
575
|
-
/** A 16px
|
|
584
|
+
/** A Phosphor icon: drawn at 16px on a secondary rail, 24px on a primary one. */
|
|
576
585
|
icon: React.ReactNode;
|
|
577
586
|
/** The caption under the icon. */
|
|
578
587
|
label: React.ReactNode;
|
|
579
588
|
/** The item whose view is showing: its icon sits on a filled square and its caption is darker (`aria-current`). */
|
|
580
589
|
selected?: boolean;
|
|
581
590
|
}
|
|
582
|
-
/** One item of a `NavRail`: an icon on a 36px
|
|
591
|
+
/** One item of a `NavRail`: an icon on a square (36px, or 40px on a primary rail) with its caption under it. */
|
|
583
592
|
declare const NavRailItem: React.ForwardRefExoticComponent<NavRailItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
584
593
|
|
|
594
|
+
interface ProjectSidebarProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
|
|
595
|
+
/** Names the navigation for screen readers (e.g. "Project"). */
|
|
596
|
+
'aria-label': string;
|
|
597
|
+
/** The project's name, shown in the header. */
|
|
598
|
+
project: React.ReactNode;
|
|
599
|
+
/** At the right of the header, e.g. a ghost icon `Button` that collapses the sidebar. */
|
|
600
|
+
action?: React.ReactNode;
|
|
601
|
+
/** A section label above the items (e.g. "Project"); it also names the list for screen readers. */
|
|
602
|
+
label?: React.ReactNode;
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* The project's navigation beside the page (Figma "Project navigation"): a 240px column on the surface with a border on its right, a 64px header with
|
|
606
|
+
* the project's name and an optional action (e.g. collapse), then its `SidebarNavItem`s stacked. The consumer owns which item is selected, and whether it shows.
|
|
607
|
+
*/
|
|
608
|
+
declare const ProjectSidebar: React.ForwardRefExoticComponent<ProjectSidebarProps & React.RefAttributes<HTMLElement>>;
|
|
609
|
+
|
|
610
|
+
interface SidebarNavItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
611
|
+
/** A 16px Phosphor icon. */
|
|
612
|
+
icon: React.ReactNode;
|
|
613
|
+
label: React.ReactNode;
|
|
614
|
+
/** The page that is showing: a filled row (`aria-current`). */
|
|
615
|
+
selected?: boolean;
|
|
616
|
+
/** The item opens a group of pages: a caret at the right edge. */
|
|
617
|
+
expandable?: boolean;
|
|
618
|
+
/** The group is open: the caret points up (`aria-expanded`). Only with `expandable`. */
|
|
619
|
+
expanded?: boolean;
|
|
620
|
+
}
|
|
621
|
+
/** One row of a `ProjectSidebar` (Figma "Secondary menu items"): a 16px icon, the label and, for a group, a caret; 32px high. */
|
|
622
|
+
declare const SidebarNavItem: React.ForwardRefExoticComponent<SidebarNavItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
623
|
+
|
|
585
624
|
declare const Dialog: React.FC<Dialog$1.DialogProps>;
|
|
586
625
|
declare const DialogTrigger: React.ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
587
626
|
declare const DialogClose: React.ForwardRefExoticComponent<Dialog$1.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -704,8 +743,10 @@ interface MediaInfoProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'tit
|
|
|
704
743
|
removeLabel?: string;
|
|
705
744
|
/** Larger name / details (the image preview uses these). */
|
|
706
745
|
large?: boolean;
|
|
746
|
+
/** Buttons on the name's line, at its right, e.g. a small ghost "more" button. */
|
|
747
|
+
actions?: React.ReactNode;
|
|
707
748
|
}
|
|
708
|
-
declare function MediaInfo({ name, details, onRemove, removeLabel, large, className, ...props }: MediaInfoProps): React.JSX.Element;
|
|
749
|
+
declare function MediaInfo({ name, details, onRemove, removeLabel, large, actions, className, ...props }: MediaInfoProps): React.JSX.Element;
|
|
709
750
|
interface ImagePreviewProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
710
751
|
/** The image (an `<img>`). The preview area is as tall as the image at full width, up to 336px. Leave empty for the fixed-height placeholder fill. */
|
|
711
752
|
children?: React.ReactNode;
|
|
@@ -737,6 +778,12 @@ interface VideoPlayerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 't
|
|
|
737
778
|
/** Initial time values for static previews (seconds). */
|
|
738
779
|
initialTime?: number;
|
|
739
780
|
initialDuration?: number;
|
|
781
|
+
/** `always` (default) keeps the control bar on screen; `hover` shows it only while the pointer is over the video or a control has keyboard focus. */
|
|
782
|
+
controls?: 'always' | 'hover';
|
|
783
|
+
/** Where the "more" (…) button sits: in the control bar (default) or as a small ghost button at the right of the name. */
|
|
784
|
+
moreIn?: 'controls' | 'info';
|
|
785
|
+
/** Laid over the top-left corner of the video, e.g. a `Tag` with the clip's sentiment. */
|
|
786
|
+
badge?: React.ReactNode;
|
|
740
787
|
}
|
|
741
788
|
declare const VideoPlayer: React.ForwardRefExoticComponent<VideoPlayerProps & React.RefAttributes<HTMLDivElement>>;
|
|
742
789
|
interface VolumeControlProps {
|
|
@@ -1463,4 +1510,22 @@ interface PaginationProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onCha
|
|
|
1463
1510
|
}
|
|
1464
1511
|
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
1465
1512
|
|
|
1466
|
-
|
|
1513
|
+
interface AvatarProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
1514
|
+
/** The person's photo. Without one, or if it fails to load, the initials show. */
|
|
1515
|
+
src?: string;
|
|
1516
|
+
/** Who it is (the image's alt text, and the accessible name of the initials). */
|
|
1517
|
+
name: string;
|
|
1518
|
+
/** Shown when there is no photo; defaults to the first letters of the first two words of `name`. */
|
|
1519
|
+
fallback?: string;
|
|
1520
|
+
}
|
|
1521
|
+
/** A person's picture (Figma "Avatar"): a 40px rounded square on orchid-200 with the photo covering it, or their initials. */
|
|
1522
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1523
|
+
|
|
1524
|
+
interface OrgMonogramProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
1525
|
+
/** The organization's initial(s). */
|
|
1526
|
+
children: React.ReactNode;
|
|
1527
|
+
}
|
|
1528
|
+
/** The organization's monogram (Figma "Org Monogram"), e.g. in a primary `NavRail`'s header: a 40px coral square with the initial in white. */
|
|
1529
|
+
declare const OrgMonogram: React.ForwardRefExoticComponent<OrgMonogramProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1530
|
+
|
|
1531
|
+
export { AIMiniAvatar, type AIMiniAvatarProps, AIResponseContainer, type AIResponseContainerProps, type AIStatus, type ActivitySection, type ActivityStat, ActivityStructure, type ActivityStructureProps, AskAiInput, type AskAiInputProps, AskAiToggle, type AskAiToggleProps, Avatar, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Calendar, type CalendarProps, ChatChoices, type ChatChoicesProps, ChatInput, type ChatInputProps, ChatOption, type ChatOptionActionProps, type ChatOptionCheckboxProps, type ChatOptionProps, type ChatOptionRadioProps, Checkbox, CheckboxField, type CheckboxFieldProps, type CheckboxProps, DataTable, type DataTableColumnDef, type DataTableColumnMeta, type DataTableInitialState, type DataTableProps, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuSelectableItemProps, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableTag, type EditableTagProps, Field, type FieldControlProps, type FieldProps, type FieldStatus, FileAttachment, type FileAttachmentProps, FileUploadItem, type FileUploadItemProps, FileUploadZone, type FileUploadZoneProps, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, FormItem, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, ImagePreview, type ImagePreviewProps, ImageThumbnails, type ImageThumbnailsProps, InlineEdit, type InlineEditMark, type InlineEditProps, Input, type InputProps, InputWithAction, type InputWithActionProps, Label, type LabelProps, MediaInfo, type MediaInfoProps, NavRail, type NavRailHierarchy, NavRailItem, type NavRailItemProps, type NavRailProps, NumberInput, type NumberInputProps, OpenEndAnswer, type OpenEndAnswerProps, OrgMonogram, type OrgMonogramProps, Pagination, type PaginationItemValue, type PaginationProps, Progress, type ProgressProps, ProjectSelector, type ProjectSelectorProps, ProjectSidebar, type ProjectSidebarProps, QuestionCard, type QuestionCheckboxOptionProps, QuestionEditorCard, type QuestionEditorCardProps, QuestionHeader, type QuestionHeaderProps, QuestionNavItem, type QuestionNavItemProps, QuestionNumberTag, type QuestionNumberTagProps, QuestionOption, QuestionOptionEditor, type QuestionOptionEditorProps, type QuestionOptionProps, QuestionOtherOption, type QuestionOtherOptionProps, type QuestionRadioOptionProps, type QuestionType, QuestionTypeIcon, type QuestionTypeIconProps, RadioGroup, RadioGroupFieldItem, type RadioGroupFieldItemProps, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RankItemData, RankList, type RankListProps, RatingScale, type RatingScaleProps, SearchBar, type SearchBarProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemProps, SelectTrigger, type SelectTriggerProps, SelectValue, SidebarNavItem, type SidebarNavItemProps, Slider, type SliderProps, StatCard, type StatCardProps, StatusTag, type StatusTagProps, Step, StepPath, type StepPathProps, type StepProps, type StepStatus, Stepper, type StepperOrientation, type StepperProps, type StepperStep, StimulusCard, type StimulusCardProps, Switch, type SwitchProps, TabItem, type TabItemProps, TabNavigation, TabNavigationContext, type TabNavigationProps, type TabNavigationVariant, Table, TableBody, TableCell, type TableCellProps, TableCellTwoLines, type TableCellTwoLinesProps, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, Tag, type TagProps, Textarea, type TextareaProps, TimeItem, type TimeItemProps, TimePicker, type TimePickerProps, type TimeValue, Timestamp, type TimestampProps, Toast, ToastAction, ToastInline, type ToastInlineProps, type ToastInlineVariant, type ToastProps, ToastProvider, type ToastVariant, ToastViewport, Toggle, type ToggleProps, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, TopicActivityRow, type TopicActivityRowProps, TopicCard, TopicCardMetaItem, type TopicCardMetaItemProps, type TopicCardProps, TopicCardTag, UserMessageBubble, type UserMessageBubbleProps, VideoPlayer, type VideoPlayerProps, VolumeControl, type VolumeControlProps, fieldSurfaceClasses, formatDateTime, getPaginationItems, useFormField };
|
package/dist/index.d.ts
CHANGED
|
@@ -560,28 +560,67 @@ interface StepperProps extends Omit<React.HTMLAttributes<HTMLOListElement>, 'chi
|
|
|
560
560
|
*/
|
|
561
561
|
declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLOListElement>>;
|
|
562
562
|
|
|
563
|
+
/**
|
|
564
|
+
* `secondary` (default) is the builder's "Design rail": 64px wide, 36px squares, 16px icons. `primary` is the org rail ("Application navigation",
|
|
565
|
+
* hierarchy Primary): 72px wide, 40px squares, 24px icons, the selected square filled with primary and its caption in primary.
|
|
566
|
+
*/
|
|
567
|
+
type NavRailHierarchy = 'secondary' | 'primary';
|
|
563
568
|
interface NavRailProps extends React.HTMLAttributes<HTMLElement> {
|
|
564
569
|
/** Names the navigation for screen readers (e.g. "Builder panels"). */
|
|
565
570
|
'aria-label': string;
|
|
566
571
|
/** Pinned at the bottom of the rail (e.g. an account avatar). */
|
|
567
572
|
footer?: React.ReactNode;
|
|
573
|
+
/** A 64px band at the top with a border under it (e.g. the organization's `OrgMonogram`). */
|
|
574
|
+
header?: React.ReactNode;
|
|
575
|
+
hierarchy?: NavRailHierarchy;
|
|
568
576
|
}
|
|
569
577
|
/**
|
|
570
|
-
* A narrow vertical rail of `NavRailItem`s on the edge of the page
|
|
571
|
-
* a panel beside it shows (Figma "Design rail")
|
|
578
|
+
* A narrow vertical rail of `NavRailItem`s on the edge of the page, with a border on its right and items stacked from the top. The secondary rail switches
|
|
579
|
+
* what a panel beside it shows (Figma "Design rail"); the primary rail is the organization's navigation (Figma "Application navigation"). The consumer owns
|
|
580
|
+
* which item is selected.
|
|
572
581
|
*/
|
|
573
582
|
declare const NavRail: React.ForwardRefExoticComponent<NavRailProps & React.RefAttributes<HTMLElement>>;
|
|
574
583
|
interface NavRailItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
575
|
-
/** A 16px
|
|
584
|
+
/** A Phosphor icon: drawn at 16px on a secondary rail, 24px on a primary one. */
|
|
576
585
|
icon: React.ReactNode;
|
|
577
586
|
/** The caption under the icon. */
|
|
578
587
|
label: React.ReactNode;
|
|
579
588
|
/** The item whose view is showing: its icon sits on a filled square and its caption is darker (`aria-current`). */
|
|
580
589
|
selected?: boolean;
|
|
581
590
|
}
|
|
582
|
-
/** One item of a `NavRail`: an icon on a 36px
|
|
591
|
+
/** One item of a `NavRail`: an icon on a square (36px, or 40px on a primary rail) with its caption under it. */
|
|
583
592
|
declare const NavRailItem: React.ForwardRefExoticComponent<NavRailItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
584
593
|
|
|
594
|
+
interface ProjectSidebarProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
|
|
595
|
+
/** Names the navigation for screen readers (e.g. "Project"). */
|
|
596
|
+
'aria-label': string;
|
|
597
|
+
/** The project's name, shown in the header. */
|
|
598
|
+
project: React.ReactNode;
|
|
599
|
+
/** At the right of the header, e.g. a ghost icon `Button` that collapses the sidebar. */
|
|
600
|
+
action?: React.ReactNode;
|
|
601
|
+
/** A section label above the items (e.g. "Project"); it also names the list for screen readers. */
|
|
602
|
+
label?: React.ReactNode;
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* The project's navigation beside the page (Figma "Project navigation"): a 240px column on the surface with a border on its right, a 64px header with
|
|
606
|
+
* the project's name and an optional action (e.g. collapse), then its `SidebarNavItem`s stacked. The consumer owns which item is selected, and whether it shows.
|
|
607
|
+
*/
|
|
608
|
+
declare const ProjectSidebar: React.ForwardRefExoticComponent<ProjectSidebarProps & React.RefAttributes<HTMLElement>>;
|
|
609
|
+
|
|
610
|
+
interface SidebarNavItemProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
611
|
+
/** A 16px Phosphor icon. */
|
|
612
|
+
icon: React.ReactNode;
|
|
613
|
+
label: React.ReactNode;
|
|
614
|
+
/** The page that is showing: a filled row (`aria-current`). */
|
|
615
|
+
selected?: boolean;
|
|
616
|
+
/** The item opens a group of pages: a caret at the right edge. */
|
|
617
|
+
expandable?: boolean;
|
|
618
|
+
/** The group is open: the caret points up (`aria-expanded`). Only with `expandable`. */
|
|
619
|
+
expanded?: boolean;
|
|
620
|
+
}
|
|
621
|
+
/** One row of a `ProjectSidebar` (Figma "Secondary menu items"): a 16px icon, the label and, for a group, a caret; 32px high. */
|
|
622
|
+
declare const SidebarNavItem: React.ForwardRefExoticComponent<SidebarNavItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
623
|
+
|
|
585
624
|
declare const Dialog: React.FC<Dialog$1.DialogProps>;
|
|
586
625
|
declare const DialogTrigger: React.ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
587
626
|
declare const DialogClose: React.ForwardRefExoticComponent<Dialog$1.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -704,8 +743,10 @@ interface MediaInfoProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'tit
|
|
|
704
743
|
removeLabel?: string;
|
|
705
744
|
/** Larger name / details (the image preview uses these). */
|
|
706
745
|
large?: boolean;
|
|
746
|
+
/** Buttons on the name's line, at its right, e.g. a small ghost "more" button. */
|
|
747
|
+
actions?: React.ReactNode;
|
|
707
748
|
}
|
|
708
|
-
declare function MediaInfo({ name, details, onRemove, removeLabel, large, className, ...props }: MediaInfoProps): React.JSX.Element;
|
|
749
|
+
declare function MediaInfo({ name, details, onRemove, removeLabel, large, actions, className, ...props }: MediaInfoProps): React.JSX.Element;
|
|
709
750
|
interface ImagePreviewProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
|
710
751
|
/** The image (an `<img>`). The preview area is as tall as the image at full width, up to 336px. Leave empty for the fixed-height placeholder fill. */
|
|
711
752
|
children?: React.ReactNode;
|
|
@@ -737,6 +778,12 @@ interface VideoPlayerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 't
|
|
|
737
778
|
/** Initial time values for static previews (seconds). */
|
|
738
779
|
initialTime?: number;
|
|
739
780
|
initialDuration?: number;
|
|
781
|
+
/** `always` (default) keeps the control bar on screen; `hover` shows it only while the pointer is over the video or a control has keyboard focus. */
|
|
782
|
+
controls?: 'always' | 'hover';
|
|
783
|
+
/** Where the "more" (…) button sits: in the control bar (default) or as a small ghost button at the right of the name. */
|
|
784
|
+
moreIn?: 'controls' | 'info';
|
|
785
|
+
/** Laid over the top-left corner of the video, e.g. a `Tag` with the clip's sentiment. */
|
|
786
|
+
badge?: React.ReactNode;
|
|
740
787
|
}
|
|
741
788
|
declare const VideoPlayer: React.ForwardRefExoticComponent<VideoPlayerProps & React.RefAttributes<HTMLDivElement>>;
|
|
742
789
|
interface VolumeControlProps {
|
|
@@ -1463,4 +1510,22 @@ interface PaginationProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onCha
|
|
|
1463
1510
|
}
|
|
1464
1511
|
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
1465
1512
|
|
|
1466
|
-
|
|
1513
|
+
interface AvatarProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'children'> {
|
|
1514
|
+
/** The person's photo. Without one, or if it fails to load, the initials show. */
|
|
1515
|
+
src?: string;
|
|
1516
|
+
/** Who it is (the image's alt text, and the accessible name of the initials). */
|
|
1517
|
+
name: string;
|
|
1518
|
+
/** Shown when there is no photo; defaults to the first letters of the first two words of `name`. */
|
|
1519
|
+
fallback?: string;
|
|
1520
|
+
}
|
|
1521
|
+
/** A person's picture (Figma "Avatar"): a 40px rounded square on orchid-200 with the photo covering it, or their initials. */
|
|
1522
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1523
|
+
|
|
1524
|
+
interface OrgMonogramProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
1525
|
+
/** The organization's initial(s). */
|
|
1526
|
+
children: React.ReactNode;
|
|
1527
|
+
}
|
|
1528
|
+
/** The organization's monogram (Figma "Org Monogram"), e.g. in a primary `NavRail`'s header: a 40px coral square with the initial in white. */
|
|
1529
|
+
declare const OrgMonogram: React.ForwardRefExoticComponent<OrgMonogramProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1530
|
+
|
|
1531
|
+
export { AIMiniAvatar, type AIMiniAvatarProps, AIResponseContainer, type AIResponseContainerProps, type AIStatus, type ActivitySection, type ActivityStat, ActivityStructure, type ActivityStructureProps, AskAiInput, type AskAiInputProps, AskAiToggle, type AskAiToggleProps, Avatar, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Calendar, type CalendarProps, ChatChoices, type ChatChoicesProps, ChatInput, type ChatInputProps, ChatOption, type ChatOptionActionProps, type ChatOptionCheckboxProps, type ChatOptionProps, type ChatOptionRadioProps, Checkbox, CheckboxField, type CheckboxFieldProps, type CheckboxProps, DataTable, type DataTableColumnDef, type DataTableColumnMeta, type DataTableInitialState, type DataTableProps, DatePicker, type DatePickerProps, DateTimePicker, type DateTimePickerProps, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuSelectableItemProps, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableTag, type EditableTagProps, Field, type FieldControlProps, type FieldProps, type FieldStatus, FileAttachment, type FileAttachmentProps, FileUploadItem, type FileUploadItemProps, FileUploadZone, type FileUploadZoneProps, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, FormItem, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, ImagePreview, type ImagePreviewProps, ImageThumbnails, type ImageThumbnailsProps, InlineEdit, type InlineEditMark, type InlineEditProps, Input, type InputProps, InputWithAction, type InputWithActionProps, Label, type LabelProps, MediaInfo, type MediaInfoProps, NavRail, type NavRailHierarchy, NavRailItem, type NavRailItemProps, type NavRailProps, NumberInput, type NumberInputProps, OpenEndAnswer, type OpenEndAnswerProps, OrgMonogram, type OrgMonogramProps, Pagination, type PaginationItemValue, type PaginationProps, Progress, type ProgressProps, ProjectSelector, type ProjectSelectorProps, ProjectSidebar, type ProjectSidebarProps, QuestionCard, type QuestionCheckboxOptionProps, QuestionEditorCard, type QuestionEditorCardProps, QuestionHeader, type QuestionHeaderProps, QuestionNavItem, type QuestionNavItemProps, QuestionNumberTag, type QuestionNumberTagProps, QuestionOption, QuestionOptionEditor, type QuestionOptionEditorProps, type QuestionOptionProps, QuestionOtherOption, type QuestionOtherOptionProps, type QuestionRadioOptionProps, type QuestionType, QuestionTypeIcon, type QuestionTypeIconProps, RadioGroup, RadioGroupFieldItem, type RadioGroupFieldItemProps, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RankItemData, RankList, type RankListProps, RatingScale, type RatingScaleProps, SearchBar, type SearchBarProps, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, type SelectItemProps, SelectTrigger, type SelectTriggerProps, SelectValue, SidebarNavItem, type SidebarNavItemProps, Slider, type SliderProps, StatCard, type StatCardProps, StatusTag, type StatusTagProps, Step, StepPath, type StepPathProps, type StepProps, type StepStatus, Stepper, type StepperOrientation, type StepperProps, type StepperStep, StimulusCard, type StimulusCardProps, Switch, type SwitchProps, TabItem, type TabItemProps, TabNavigation, TabNavigationContext, type TabNavigationProps, type TabNavigationVariant, Table, TableBody, TableCell, type TableCellProps, TableCellTwoLines, type TableCellTwoLinesProps, TableFooter, TableHead, type TableHeadProps, TableHeader, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, Tag, type TagProps, Textarea, type TextareaProps, TimeItem, type TimeItemProps, TimePicker, type TimePickerProps, type TimeValue, Timestamp, type TimestampProps, Toast, ToastAction, ToastInline, type ToastInlineProps, type ToastInlineVariant, type ToastProps, ToastProvider, type ToastVariant, ToastViewport, Toggle, type ToggleProps, Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger, TopicActivityRow, type TopicActivityRowProps, TopicCard, TopicCardMetaItem, type TopicCardMetaItemProps, type TopicCardProps, TopicCardTag, UserMessageBubble, type UserMessageBubbleProps, VideoPlayer, type VideoPlayerProps, VolumeControl, type VolumeControlProps, fieldSurfaceClasses, formatDateTime, getPaginationItems, useFormField };
|