@ag2/weave 0.5.0 → 0.6.0-direction-d.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/DIRECTION_D_PREVIEW.json +6 -0
- package/MATERIAL-SYMBOLS-LICENSE.txt +202 -0
- package/dist/components/activity-card/ActivityCard.d.ts +26 -0
- package/dist/components/activity-card/index.d.ts +1 -0
- package/dist/components/avatar/Avatar.css.d.ts +25 -0
- package/dist/components/avatar/Avatar.d.ts +2 -1
- package/dist/components/badge/Badge.css.d.ts +2 -0
- package/dist/components/badge/Badge.d.ts +1 -1
- package/dist/components/banner/Banner.d.ts +14 -0
- package/dist/components/banner/index.d.ts +1 -0
- package/dist/components/box/Box.css.d.ts +9 -0
- package/dist/components/box/Box.d.ts +1 -1
- package/dist/components/button/Button.css.d.ts +3 -1
- package/dist/components/button/Button.d.ts +1 -1
- package/dist/components/button-group/ButtonGroup.css.d.ts +2 -0
- package/dist/components/button-group/ButtonGroup.d.ts +16 -0
- package/dist/components/button-group/index.d.ts +1 -0
- package/dist/components/call/Call.css.d.ts +18 -0
- package/dist/components/call/Call.d.ts +45 -0
- package/dist/components/call/index.d.ts +1 -0
- package/dist/components/card/Card.css.d.ts +2 -0
- package/dist/components/card/Card.d.ts +32 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/components/chip/Chip.css.d.ts +3 -1
- package/dist/components/chip/Chip.d.ts +1 -1
- package/dist/components/composer/Composer.css.d.ts +5 -0
- package/dist/components/composer/Composer.d.ts +31 -0
- package/dist/components/composer/index.d.ts +1 -0
- package/dist/components/content-card/ContentCard.css.d.ts +3 -0
- package/dist/components/content-card/ContentCard.d.ts +37 -0
- package/dist/components/content-card/index.d.ts +1 -0
- package/dist/components/date-time/DateTime.d.ts +17 -0
- package/dist/components/date-time/index.d.ts +1 -0
- package/dist/components/dialog-frame/DialogFrame.css.d.ts +2 -0
- package/dist/components/dialog-frame/DialogFrame.d.ts +17 -0
- package/dist/components/dialog-frame/index.d.ts +1 -0
- package/dist/components/dock/Dock.css.d.ts +3 -0
- package/dist/components/dock/Dock.d.ts +10 -0
- package/dist/components/dock/index.d.ts +1 -0
- package/dist/components/file-attachment/FileAttachment.css.d.ts +1 -0
- package/dist/components/file-attachment/FileAttachment.d.ts +10 -0
- package/dist/components/file-attachment/index.d.ts +1 -0
- package/dist/components/floating-toolbar/FloatingToolbar.css.d.ts +1 -0
- package/dist/components/floating-toolbar/FloatingToolbar.d.ts +14 -0
- package/dist/components/floating-toolbar/index.d.ts +1 -0
- package/dist/components/folder-field/FolderField.d.ts +12 -0
- package/dist/components/folder-field/index.d.ts +1 -0
- package/dist/components/icon/Icons.d.ts +1 -1
- package/dist/components/icon-button/IconButton.css.d.ts +2 -0
- package/dist/components/icon-button/IconButton.d.ts +1 -1
- package/dist/components/identity/Identity.css.d.ts +32 -0
- package/dist/components/identity/Identity.d.ts +58 -0
- package/dist/components/identity/IdentityLists.d.ts +22 -0
- package/dist/components/identity/index.d.ts +2 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components/input/Input.css.d.ts +2 -0
- package/dist/components/input/Input.d.ts +1 -1
- package/dist/components/list-row/ListRow.css.d.ts +2 -0
- package/dist/components/list-row/ListRow.d.ts +11 -0
- package/dist/components/list-row/index.d.ts +1 -0
- package/dist/components/menu/MenuItem.css.d.ts +2 -0
- package/dist/components/menu/MenuItem.d.ts +1 -1
- package/dist/components/menu-button/MenuButton.css.d.ts +1 -0
- package/dist/components/menu-button/MenuButton.d.ts +31 -0
- package/dist/components/menu-button/index.d.ts +1 -0
- package/dist/components/motion/Motion.css.d.ts +3 -0
- package/dist/components/motion/Motion.d.ts +9 -0
- package/dist/components/motion/index.d.ts +1 -0
- package/dist/components/nav/Nav.css.d.ts +31 -0
- package/dist/components/nav/Nav.d.ts +52 -0
- package/dist/components/nav/index.d.ts +1 -0
- package/dist/components/page/Page.d.ts +1 -1
- package/dist/components/page/style.css.d.ts +2 -2
- package/dist/components/page-state/EmptyState.d.ts +12 -0
- package/dist/components/page-state/ErrorState.d.ts +9 -0
- package/dist/components/page-state/LoadingState.d.ts +5 -0
- package/dist/components/page-state/PageState.css.d.ts +3 -0
- package/dist/components/page-state/PageTitleHeader.d.ts +13 -0
- package/dist/components/page-state/index.d.ts +4 -0
- package/dist/components/password-input/PasswordInput.d.ts +7 -0
- package/dist/components/password-input/index.d.ts +1 -0
- package/dist/components/person-avatar/PersonAvatar.d.ts +6 -0
- package/dist/components/person-avatar/index.d.ts +1 -0
- package/dist/components/pill/Pill.d.ts +11 -0
- package/dist/components/pill/index.d.ts +1 -0
- package/dist/components/pop-out/PopOut.css.d.ts +1 -0
- package/dist/components/power/Power.css.d.ts +1 -0
- package/dist/components/power/Power.d.ts +24 -0
- package/dist/components/power/index.d.ts +1 -0
- package/dist/components/presence/Presence.css.d.ts +39 -0
- package/dist/components/presence/Presence.d.ts +20 -0
- package/dist/components/presence/index.d.ts +1 -0
- package/dist/components/progress-bar/ProgressBar.css.d.ts +2 -0
- package/dist/components/progress-bar/ProgressBar.d.ts +1 -1
- package/dist/components/scroll/Scroll.d.ts +1 -1
- package/dist/components/select/Select.css.d.ts +3 -0
- package/dist/components/select/Select.d.ts +21 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/sequence-card/SequenceCard.d.ts +2 -2
- package/dist/components/sequence-card/style.css.d.ts +18 -2
- package/dist/components/settings-shell/SettingsShell.css.d.ts +6 -0
- package/dist/components/settings-shell/SettingsShell.d.ts +31 -0
- package/dist/components/settings-shell/index.d.ts +1 -0
- package/dist/components/sidebar/Sidebar.css.d.ts +2 -2
- package/dist/components/sidebar/SidebarItem.d.ts +2 -1
- package/dist/components/skeleton/Skeleton.css.d.ts +28 -0
- package/dist/components/skeleton/Skeleton.d.ts +10 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/spinner/Spinner.css.d.ts +5 -0
- package/dist/components/spinner/Spinner.d.ts +1 -0
- package/dist/components/split-button/SplitButton.css.d.ts +4 -0
- package/dist/components/split-button/SplitButton.d.ts +16 -0
- package/dist/components/split-button/index.d.ts +1 -0
- package/dist/components/tab-bar/TabBar.d.ts +12 -0
- package/dist/components/tab-bar/index.d.ts +1 -0
- package/dist/components/text/Text.css.d.ts +15 -0
- package/dist/components/text/Text.d.ts +1 -1
- package/dist/components/text-area/TextArea.css.d.ts +2 -3
- package/dist/components/text-area/TextArea.d.ts +1 -1
- package/dist/components/timeline/Timeline.css.d.ts +24 -0
- package/dist/components/timeline/Timeline.d.ts +51 -0
- package/dist/components/timeline/index.d.ts +1 -0
- package/dist/components/tooltip/Hint.d.ts +13 -0
- package/dist/components/tooltip/Tooltip.css.d.ts +2 -0
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/typing-indicator/TypingIndicator.css.d.ts +7 -0
- package/dist/components/unread-badge/UnreadBadge.css.d.ts +2 -0
- package/dist/components/unread-badge/UnreadBadge.d.ts +13 -0
- package/dist/components/unread-badge/index.d.ts +1 -0
- package/dist/components/variant.css.d.ts +2 -0
- package/dist/components/wavy-progress/WavyProgress.css.d.ts +3 -0
- package/dist/components/wavy-progress/WavyProgress.d.ts +8 -0
- package/dist/components/wavy-progress/index.d.ts +1 -0
- package/dist/index.js +5821 -4616
- package/dist/index.js.map +1 -1
- package/dist/pages/assets/avatars/manifest.d.ts +2 -0
- package/dist/style.css +1644 -609
- package/dist/styles/ContainerColor.css.d.ts +1 -0
- package/dist/theme/color.css.d.ts +1 -0
- package/dist/theme/config.css.d.ts +23 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/review.css.d.ts +115 -0
- package/dist/utils/rovingFocus.d.ts +3 -0
- package/package.json +11 -71
- package/CHANGELOG.md +0 -239
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare const CardGrid: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
3
|
+
export declare type RoomCardProps = {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
detail?: ReactNode;
|
|
7
|
+
avatar?: ReactNode;
|
|
8
|
+
actions?: ReactNode;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const RoomCard: ({ name, description, detail, avatar, actions, children, }: RoomCardProps) => JSX.Element;
|
|
12
|
+
export declare type LinkPreviewProps = {
|
|
13
|
+
title: string;
|
|
14
|
+
href: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
site?: string;
|
|
17
|
+
media?: ReactNode;
|
|
18
|
+
};
|
|
19
|
+
/** Receives fetched metadata; no network work, HTML injection or media authentication. */
|
|
20
|
+
export declare const LinkPreview: ({ title, href, description, site, media }: LinkPreviewProps) => JSX.Element;
|
|
21
|
+
export declare const ScrollTopContainer: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, Omit<any, "as"> & {
|
|
22
|
+
display?: "Flex" | "InlineFlex" | undefined;
|
|
23
|
+
direction?: "Inherit" | "Row" | "RowReverse" | "Column" | "ColumnReverse" | undefined;
|
|
24
|
+
wrap?: "Inherit" | "NoWrap" | "Wrap" | "WrapReverse" | undefined;
|
|
25
|
+
justifyContent?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
26
|
+
justifyItems?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
27
|
+
justifySelf?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
28
|
+
alignContent?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
29
|
+
alignItems?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
30
|
+
alignSelf?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
31
|
+
gap?: "0" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "Inherit" | "50" | "250" | undefined;
|
|
32
|
+
grow?: "No" | "Yes" | undefined;
|
|
33
|
+
shrink?: "No" | "Yes" | undefined;
|
|
34
|
+
basis?: "No" | "Yes" | undefined;
|
|
35
|
+
} & import("..").AsProp<React.ElementType<any>> & {
|
|
36
|
+
visible: boolean;
|
|
37
|
+
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ContentCard";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { ComponentProps } from "react";
|
|
2
|
+
import { Input } from "../input";
|
|
3
|
+
export declare type DateTimeInputProps = Omit<ComponentProps<typeof Input>, "type" | "value" | "defaultValue"> & {
|
|
4
|
+
value?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
};
|
|
7
|
+
/** ISO local date/time strings; timezone and epoch conversions belong to the caller. */
|
|
8
|
+
export declare const DatePicker: React.ForwardRefExoticComponent<Pick<DateTimeInputProps, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "as" | "children" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "list" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "rows" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "wrap" | "default" | "kind" | "srcLang" | "poster" | "after" | "radii" | "variant" | "before" | "outlined" | "inputSize"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export declare const TimePicker: React.ForwardRefExoticComponent<Pick<DateTimeInputProps, "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "as" | "children" | "className" | "color" | "height" | "id" | "lang" | "max" | "media" | "method" | "min" | "name" | "target" | "width" | "role" | "tabIndex" | "crossOrigin" | "href" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "list" | "classID" | "useMap" | "wmode" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "download" | "hrefLang" | "rel" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "dateTime" | "open" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "sizes" | "srcSet" | "async" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "multiple" | "readOnly" | "required" | "size" | "step" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "integrity" | "charSet" | "content" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "start" | "selected" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "rows" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "wrap" | "default" | "kind" | "srcLang" | "poster" | "after" | "radii" | "variant" | "before" | "outlined" | "inputSize"> & React.RefAttributes<HTMLInputElement>>;
|
|
10
|
+
export declare type TimestampProps = {
|
|
11
|
+
value: number | string | Date;
|
|
12
|
+
locale?: string;
|
|
13
|
+
timeZone?: string;
|
|
14
|
+
options?: Intl.DateTimeFormatOptions;
|
|
15
|
+
fallback?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const Timestamp: ({ value, locale, timeZone, options, fallback, }: TimestampProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DateTime";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare type DialogFrameProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
/** Runs on the close button, on Escape and on a click outside. */
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
/** Max width in px; the dialog is fluid below it. */
|
|
8
|
+
width?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The frame every create / join / confirm dialog opens in: a backdropped
|
|
14
|
+
* overlay, a focus trap, and a Dialog whose header carries the title and the
|
|
15
|
+
* close button. `open` is controlled by the caller.
|
|
16
|
+
*/
|
|
17
|
+
export declare const DialogFrame: ({ open, title, onClose, width, className, children, }: DialogFrameProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DialogFrame";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type DockProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
count?: number;
|
|
5
|
+
after?: ReactNode;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
closeLabel?: string;
|
|
8
|
+
};
|
|
9
|
+
/** A non-modal side panel. The caller owns opening it and returning focus on close. */
|
|
10
|
+
export declare const Dock: <T extends React.ElementType<any> = "aside">(props: import("..").AsOutProps<T, DockProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Dock";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FileAttachment: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare type FileAttachmentProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
description?: ReactNode;
|
|
5
|
+
/** Download/authentication logic is owned by the caller. No URL is inferred or fetched. */
|
|
6
|
+
onDownload?: () => void;
|
|
7
|
+
downloadLabel?: string;
|
|
8
|
+
busy?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const FileAttachment: ({ name, description, onDownload, downloadLabel, busy, }: FileAttachmentProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FileAttachment";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Toolbar: string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Icon } from "../icon";
|
|
3
|
+
export declare type ToolbarAction = {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: ComponentProps<typeof Icon>["src"];
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare type FloatingToolbarProps = {
|
|
11
|
+
label: string;
|
|
12
|
+
actions: ToolbarAction[];
|
|
13
|
+
};
|
|
14
|
+
export declare const FloatingToolbar: ({ label, actions }: FloatingToolbarProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FloatingToolbar";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare type FolderFieldProps = {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (path: string) => void;
|
|
4
|
+
onBrowse?: () => void;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
busy?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
browseLabel?: string;
|
|
9
|
+
clearLabel?: string;
|
|
10
|
+
};
|
|
11
|
+
/** The caller opens the native picker; typed paths remain usable on the web. */
|
|
12
|
+
export declare const FolderField: ({ value, onChange, onBrowse, disabled, busy, label, browseLabel, clearLabel, }: FolderFieldProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./FolderField";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare type IconSrc = (filled?: boolean) => JSX.Element;
|
|
2
|
-
export declare type IconName = "Home" | "User" | "UserPlus" | "Mail" | "MailPlus" | "Star" | "PlusCircle" | "Explore" | "Smile" | "SmilePlus" | "Leaf" | "Sticker" | "Delete" | "Phone" | "PhoneDown" | "Headphone" | "HeadphoneMute" | "Send" | "Bell" | "BellRing" | "BellPing" | "BellMute" | "Message" | "MessageUnread" | "Setting" | "Search" | "Heart" | "Play" | "Pause" | "Sun" | "Photo" | "Lock" | "Vlc" | "Flag" | "Ball" | "Bulb" | "Terminal" | "Pencil" | "Info" | "Shield" | "ShieldLock" | "ShieldUser" | "Cup" | "Pin" | "VolumeHigh" | "VolumeHighLock" | "VolumeHighGlobe" | "VolumeMute" | "File" | "Category" | "Peace" | "Eye" | "EyeBlind" | "Warning" | "Funnel" | "Bookmark" | "Inbox" | "Thread" | "ThreadPlus" | "ThreadUnread" | "ThreadReply" | "Monitor" | "ScreenShare" | "Server" | "Prohibited" | "NoEntry" | "Mic" | "MicMute" | "VideoCamera" | "VideoCameraMute" | "Hash" | "HashLock" | "HashGlobe" | "HashSearch" | "HashPlus" | "Space" | "SpaceLock" | "SpaceGlobe" | "SpaceSearch" | "SpacePlus" | "ChevronRight" | "ChevronLeft" | "ChevronTop" | "ChevronBottom" | "Plus" | "Minus" | "Cross" | "VerticalDots" | "HorizontalDots" | "Check" | "CheckTwice" | "Download" | "External" | "Clock" | "RecentClock" | "Power" | "ReplyArrow" | "ArrowGoRight" | "ArrowGoRightPlus" | "ArrowGoRightCross" | "ArrowGoLeft" | "Markdown" | "Attachment" | "Alphabet" | "AlphabetUnderline" | "Text" | "Heading1" | "Heading2" | "Heading3" | "Bold" | "Italic" | "Underline" | "Strike" | "Link" | "Code" | "BlockCode" | "BlockQuote" | "OrderList" | "UnorderList" | "Mention" | "Filter" | "Sort" | "ArrowUpDown" | "ArrowRight" | "ArrowLeft" | "ArrowTop" | "ArrowBottom" | "ArrowDropRight" | "ArrowDropLeft" | "ArrowDropTop" | "ArrowDropBottom" | "Reload" | "Globe";
|
|
2
|
+
export declare type IconName = "Home" | "User" | "UserPlus" | "Mail" | "MailPlus" | "Star" | "PlusCircle" | "Explore" | "Smile" | "SmilePlus" | "Leaf" | "Sticker" | "Delete" | "Phone" | "PhoneDown" | "Headphone" | "HeadphoneMute" | "Send" | "Bell" | "BellRing" | "BellPing" | "BellMute" | "Message" | "MessageUnread" | "Setting" | "Search" | "Heart" | "Play" | "Pause" | "Sun" | "Photo" | "Lock" | "Vlc" | "Flag" | "Ball" | "Bulb" | "Terminal" | "Pencil" | "Info" | "Shield" | "ShieldLock" | "ShieldUser" | "Cup" | "Pin" | "VolumeHigh" | "VolumeHighLock" | "VolumeHighGlobe" | "VolumeMute" | "File" | "Category" | "Peace" | "Eye" | "EyeBlind" | "Warning" | "Funnel" | "Bookmark" | "Inbox" | "Thread" | "ThreadPlus" | "ThreadUnread" | "ThreadReply" | "Monitor" | "ScreenShare" | "Server" | "Prohibited" | "NoEntry" | "Mic" | "MicMute" | "VideoCamera" | "VideoCameraMute" | "Hash" | "HashLock" | "HashGlobe" | "HashSearch" | "HashPlus" | "Space" | "SpaceLock" | "SpaceGlobe" | "SpaceSearch" | "SpacePlus" | "ChevronRight" | "ChevronLeft" | "ChevronTop" | "ChevronBottom" | "Plus" | "Minus" | "Cross" | "VerticalDots" | "HorizontalDots" | "Check" | "CheckTwice" | "Download" | "External" | "Clock" | "RecentClock" | "Power" | "ReplyArrow" | "ArrowGoRight" | "ArrowGoRightPlus" | "ArrowGoRightCross" | "ArrowGoLeft" | "Markdown" | "Attachment" | "Alphabet" | "AlphabetUnderline" | "Text" | "Heading1" | "Heading2" | "Heading3" | "Bold" | "Italic" | "Underline" | "Strike" | "Link" | "Code" | "BlockCode" | "BlockQuote" | "OrderList" | "UnorderList" | "Mention" | "Filter" | "Sort" | "ArrowUpDown" | "ArrowRight" | "ArrowLeft" | "ArrowTop" | "ArrowBottom" | "ArrowDropRight" | "ArrowDropLeft" | "ArrowDropTop" | "ArrowDropBottom" | "Reload" | "Globe" | "Agent" | "People" | "PullRequest" | "Smartphone" | "Unavailable" | "Admin";
|
|
3
3
|
export declare const Icons: Record<IconName, IconSrc>;
|
|
@@ -4,5 +4,5 @@ export declare const IconButton: <T extends React.ElementType<any> = "button">(p
|
|
|
4
4
|
variant?: "Background" | "Surface" | "SurfaceVariant" | "Primary" | "Secondary" | "Success" | "Warning" | "Critical" | undefined;
|
|
5
5
|
fill?: "Soft" | "None" | undefined;
|
|
6
6
|
outlined?: boolean | undefined;
|
|
7
|
-
radii?: "0" | "300" | "400" | "500" | "Pill" | "Inherit" | undefined;
|
|
7
|
+
radii?: "0" | "300" | "400" | "500" | "600" | "700" | "Pill" | "Inherit" | undefined;
|
|
8
8
|
} & import("..").AsProp<T>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const Avatar: string;
|
|
2
|
+
export declare const Worker: string;
|
|
3
|
+
export declare const Decorator: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
4
|
+
corner: {
|
|
5
|
+
tr: {
|
|
6
|
+
top: number;
|
|
7
|
+
right: number;
|
|
8
|
+
};
|
|
9
|
+
tl: {
|
|
10
|
+
top: number;
|
|
11
|
+
left: number;
|
|
12
|
+
transform: "rotate(-90deg)";
|
|
13
|
+
};
|
|
14
|
+
bl: {
|
|
15
|
+
bottom: number;
|
|
16
|
+
left: number;
|
|
17
|
+
transform: "rotate(180deg)";
|
|
18
|
+
};
|
|
19
|
+
br: {
|
|
20
|
+
bottom: number;
|
|
21
|
+
right: number;
|
|
22
|
+
transform: "rotate(90deg)";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
shape: {
|
|
26
|
+
corner: {};
|
|
27
|
+
star: {
|
|
28
|
+
clipPath: "polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%)";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
}>;
|
|
32
|
+
export declare const WorkerSeam: string;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import { Avatar } from "../avatar";
|
|
3
|
+
import { AgentMarkState } from "../agent-tag";
|
|
4
|
+
import { MainColor } from "../types";
|
|
5
|
+
export declare type IdentityKind = "person" | "agent" | "room";
|
|
6
|
+
export declare type IdentityAvatarProps = {
|
|
7
|
+
name: string;
|
|
8
|
+
kind?: IdentityKind;
|
|
9
|
+
src?: string;
|
|
10
|
+
initial?: string;
|
|
11
|
+
fallback?: ReactNode;
|
|
12
|
+
size?: ComponentProps<typeof Avatar>["size"];
|
|
13
|
+
radii?: ComponentProps<typeof Avatar>["radii"];
|
|
14
|
+
busy?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export declare const IdentityAvatar: ({ name, kind, src, initial, fallback, size, radii, busy, }: IdentityAvatarProps) => JSX.Element;
|
|
17
|
+
export declare type AgentVisualState = AgentMarkState;
|
|
18
|
+
export declare const agentStatePresentation: Record<AgentVisualState, {
|
|
19
|
+
label: string;
|
|
20
|
+
variant: MainColor;
|
|
21
|
+
busy: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
export declare type AgentAvatarProps = Omit<IdentityAvatarProps, "kind" | "busy"> & {
|
|
24
|
+
state?: AgentVisualState;
|
|
25
|
+
statusLabel?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const AgentAvatar: ({ state, statusLabel, ...props }: AgentAvatarProps) => JSX.Element;
|
|
28
|
+
export declare type WorkerCorner = "tl" | "tr" | "bl" | "br";
|
|
29
|
+
export declare type WorkerShape = "corner" | "star";
|
|
30
|
+
export declare type WorkerAvatarProps = {
|
|
31
|
+
name: string;
|
|
32
|
+
color: string;
|
|
33
|
+
corner?: WorkerCorner;
|
|
34
|
+
shape?: WorkerShape;
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
};
|
|
37
|
+
/** Colour, name and placement have already been resolved by the caller. */
|
|
38
|
+
export declare const WorkerAvatar: ({ name, color, corner, shape, children, }: WorkerAvatarProps) => JSX.Element;
|
|
39
|
+
export declare type MemberTileProps = {
|
|
40
|
+
name: string;
|
|
41
|
+
description?: ReactNode;
|
|
42
|
+
avatar?: ReactNode;
|
|
43
|
+
agent?: boolean;
|
|
44
|
+
after?: ReactNode;
|
|
45
|
+
};
|
|
46
|
+
export declare const MemberTile: ({ name, description, avatar, agent, after }: MemberTileProps) => JSX.Element;
|
|
47
|
+
export declare type AgentCardProps = {
|
|
48
|
+
name: string;
|
|
49
|
+
src?: string;
|
|
50
|
+
state?: AgentVisualState;
|
|
51
|
+
statusLabel?: string;
|
|
52
|
+
description?: ReactNode;
|
|
53
|
+
identifier?: string;
|
|
54
|
+
actions?: ReactNode;
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
};
|
|
57
|
+
export declare const AgentCard: ({ name, src, state, statusLabel, description, identifier, actions, children, }: AgentCardProps) => JSX.Element;
|
|
58
|
+
export declare const RoomAvatar: (props: Omit<IdentityAvatarProps, "kind">) => JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export declare type IdentityListEntry = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
avatar?: ReactNode;
|
|
7
|
+
agent?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const PeopleList: ({ people, onPick, label, emptyLabel, }: {
|
|
11
|
+
people: IdentityListEntry[];
|
|
12
|
+
onPick: (id: string) => void;
|
|
13
|
+
label?: string | undefined;
|
|
14
|
+
emptyLabel?: string | undefined;
|
|
15
|
+
}) => JSX.Element;
|
|
16
|
+
export declare const WorkerRoster: ({ workers, selected, onSelectionChange, actions, title, }: {
|
|
17
|
+
workers: IdentityListEntry[];
|
|
18
|
+
selected?: string[] | undefined;
|
|
19
|
+
onSelectionChange?: ((ids: string[]) => void) | undefined;
|
|
20
|
+
actions?: ReactNode;
|
|
21
|
+
title?: string | undefined;
|
|
22
|
+
}) => JSX.Element;
|
|
@@ -45,3 +45,35 @@ export * from "./splash-screen";
|
|
|
45
45
|
export * from "./starfield";
|
|
46
46
|
export * from "./page";
|
|
47
47
|
export * from "./review-card";
|
|
48
|
+
export * from "./dialog-frame";
|
|
49
|
+
export * from "./menu-button";
|
|
50
|
+
export * from "./tab-bar";
|
|
51
|
+
export * from "./pill";
|
|
52
|
+
export * from "./page-state";
|
|
53
|
+
export * from "./person-avatar";
|
|
54
|
+
export * from "./select";
|
|
55
|
+
export * from "./button-group";
|
|
56
|
+
export * from "./split-button";
|
|
57
|
+
export * from "./wavy-progress";
|
|
58
|
+
export * from "./floating-toolbar";
|
|
59
|
+
export * from "./motion";
|
|
60
|
+
export * from "./settings-shell";
|
|
61
|
+
export * from "./card";
|
|
62
|
+
export * from "./list-row";
|
|
63
|
+
export * from "./nav";
|
|
64
|
+
export * from "./unread-badge";
|
|
65
|
+
export * from "./password-input";
|
|
66
|
+
export * from "./presence";
|
|
67
|
+
export * from "./timeline";
|
|
68
|
+
export * from "./file-attachment";
|
|
69
|
+
export * from "./dock";
|
|
70
|
+
export * from "./skeleton";
|
|
71
|
+
export * from "./activity-card";
|
|
72
|
+
export * from "./composer";
|
|
73
|
+
export * from "./call";
|
|
74
|
+
export * from "./identity";
|
|
75
|
+
export * from "./content-card";
|
|
76
|
+
export * from "./power";
|
|
77
|
+
export * from "./date-time";
|
|
78
|
+
export * from "./banner";
|
|
79
|
+
export * from "./folder-field";
|
|
@@ -7,5 +7,5 @@ export declare const Input: React.ForwardRefExoticComponent<Omit<React.AllHTMLAt
|
|
|
7
7
|
variant?: "Background" | "Surface" | "SurfaceVariant" | "Primary" | "Secondary" | "Success" | "Warning" | "Critical" | undefined;
|
|
8
8
|
size?: "300" | "400" | "500" | undefined;
|
|
9
9
|
outlined?: boolean | undefined;
|
|
10
|
-
radii?: "0" | "300" | "400" | "500" | "Pill" | "Inherit" | undefined;
|
|
10
|
+
radii?: "0" | "300" | "400" | "500" | "600" | "700" | "Pill" | "Inherit" | undefined;
|
|
11
11
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export declare type ListRowProps = {
|
|
3
|
+
before?: ReactNode;
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
description?: ReactNode;
|
|
6
|
+
badge?: ReactNode;
|
|
7
|
+
/** Use a non-interactive root when this slot contains its own actions. */
|
|
8
|
+
after?: ReactNode;
|
|
9
|
+
};
|
|
10
|
+
/** Content shared by member, room and settings lists; no app data or selection state. */
|
|
11
|
+
export declare const ListRow: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, ListRowProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ListRow";
|
|
@@ -7,6 +7,6 @@ export declare const MenuItem: <T extends React.ElementType<any> = "button">(pro
|
|
|
7
7
|
variant?: "Background" | "Surface" | "SurfaceVariant" | "Primary" | "Secondary" | "Success" | "Warning" | "Critical" | undefined;
|
|
8
8
|
fill?: "Soft" | "None" | undefined;
|
|
9
9
|
size?: "300" | "400" | undefined;
|
|
10
|
-
radii?: "0" | "300" | "400" | "500" | "Pill" | "Inherit" | undefined;
|
|
10
|
+
radii?: "0" | "300" | "400" | "500" | "600" | "700" | "Pill" | "Inherit" | undefined;
|
|
11
11
|
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
12
12
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MenuButtonMenu: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
import { Icon } from "../icon/Icon";
|
|
3
|
+
import { IconButton } from "../icon-button/IconButton";
|
|
4
|
+
import { Align, Position } from "../util";
|
|
5
|
+
export declare type MenuEntry = {
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: ComponentProps<typeof Icon>["src"];
|
|
8
|
+
/** Renders in the Critical variant — destructive entries (leave, delete). */
|
|
9
|
+
critical?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
onSelect?: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare type MenuButtonProps = {
|
|
14
|
+
/** Accessible name of the trigger, e.g. "More Options". */
|
|
15
|
+
label: string;
|
|
16
|
+
entries: MenuEntry[];
|
|
17
|
+
icon?: ComponentProps<typeof Icon>["src"];
|
|
18
|
+
variant?: ComponentProps<typeof IconButton>["variant"];
|
|
19
|
+
/** Open on mount without a click, for a story or a screenshot of the menu. */
|
|
20
|
+
defaultOpen?: boolean;
|
|
21
|
+
position?: Position;
|
|
22
|
+
align?: Align;
|
|
23
|
+
className?: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* An icon button that opens an anchored PopOut menu — the "More Options"
|
|
28
|
+
* pattern the room header, the room-list row and the settings pages share.
|
|
29
|
+
* Selecting an entry closes the menu; so does Escape or a click outside.
|
|
30
|
+
*/
|
|
31
|
+
export declare const MenuButton: ({ label, entries, icon, variant, defaultOpen, position, align, className, disabled, }: MenuButtonProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./MenuButton";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/** Runs once when mounted. Change the React key to replay; delay is in milliseconds. */
|
|
3
|
+
export declare const Enter: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, {
|
|
4
|
+
delay?: number | undefined;
|
|
5
|
+
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
6
|
+
/** An awaiting-decision surface. Reduced motion keeps a steady inset ring. */
|
|
7
|
+
export declare const Attention: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, {
|
|
8
|
+
active?: boolean | undefined;
|
|
9
|
+
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Motion";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComplexStyleRule } from "@vanilla-extract/css";
|
|
2
|
+
import { RecipeVariants } from "@vanilla-extract/recipes";
|
|
3
|
+
export declare const NavLink: string;
|
|
4
|
+
export declare const NavItem: import("@vanilla-extract/recipes").RuntimeFn<{
|
|
5
|
+
variant: {
|
|
6
|
+
Background: ComplexStyleRule;
|
|
7
|
+
Surface: ComplexStyleRule;
|
|
8
|
+
SurfaceVariant: ComplexStyleRule;
|
|
9
|
+
Primary: ComplexStyleRule;
|
|
10
|
+
Secondary: ComplexStyleRule;
|
|
11
|
+
Success: ComplexStyleRule;
|
|
12
|
+
Warning: ComplexStyleRule;
|
|
13
|
+
Critical: ComplexStyleRule;
|
|
14
|
+
};
|
|
15
|
+
radii: {
|
|
16
|
+
Inherit: string;
|
|
17
|
+
"0": string;
|
|
18
|
+
"300": string;
|
|
19
|
+
"400": string;
|
|
20
|
+
"500": string;
|
|
21
|
+
"600": string;
|
|
22
|
+
"700": string;
|
|
23
|
+
Pill: string;
|
|
24
|
+
};
|
|
25
|
+
}>;
|
|
26
|
+
export declare type NavItemVariants = RecipeVariants<typeof NavItem>;
|
|
27
|
+
export declare const ItemContent: string;
|
|
28
|
+
export declare const Options: string;
|
|
29
|
+
export declare const Category: string;
|
|
30
|
+
export declare const CategoryHeader: string;
|
|
31
|
+
export declare const HeaderTitle: string;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { ListRowProps } from "../list-row";
|
|
3
|
+
export declare const NavItem: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, {
|
|
4
|
+
variant?: "Background" | "Surface" | "SurfaceVariant" | "Primary" | "Secondary" | "Success" | "Warning" | "Critical" | undefined;
|
|
5
|
+
radii?: "0" | "300" | "400" | "500" | "600" | "700" | "Pill" | "Inherit" | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
highlight?: boolean | undefined;
|
|
8
|
+
active?: boolean | undefined;
|
|
9
|
+
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
10
|
+
/** Polymorphic so routers can supply their own link without a library dependency. */
|
|
11
|
+
export declare const NavLink: <T extends React.ElementType<any> = "a">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
12
|
+
export declare const NavButton: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, object>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
13
|
+
export declare const NavItemContent: <T extends React.ElementType<any> = "span">(props: import("..").AsOutProps<T, Omit<any, "as"> & {
|
|
14
|
+
size?: "D400" | "H1" | "H2" | "H3" | "H4" | "H5" | "H6" | "T500" | "T400" | "T300" | "T200" | "B500" | "B400" | "B300" | "L400" | "LabelMono" | "O400" | "C400" | "Inherit" | "Metadata" | undefined;
|
|
15
|
+
align?: "Right" | "Left" | "Center" | "Justify" | undefined;
|
|
16
|
+
truncate?: boolean | undefined;
|
|
17
|
+
priority?: "300" | "400" | "500" | "Inherit" | "Initial" | undefined;
|
|
18
|
+
} & import("..").AsProp<React.ElementType<any>>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
19
|
+
export declare const NavItemOptions: <T extends React.ElementType<any> = "div">(props: import("..").AsOutProps<T, Omit<any, "as"> & {
|
|
20
|
+
display?: "Flex" | "InlineFlex" | undefined;
|
|
21
|
+
direction?: "Inherit" | "Row" | "RowReverse" | "Column" | "ColumnReverse" | undefined;
|
|
22
|
+
wrap?: "Inherit" | "NoWrap" | "Wrap" | "WrapReverse" | undefined;
|
|
23
|
+
justifyContent?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
24
|
+
justifyItems?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
25
|
+
justifySelf?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
26
|
+
alignContent?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
27
|
+
alignItems?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
28
|
+
alignSelf?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
29
|
+
gap?: "0" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "Inherit" | "50" | "250" | undefined;
|
|
30
|
+
grow?: "No" | "Yes" | undefined;
|
|
31
|
+
shrink?: "No" | "Yes" | undefined;
|
|
32
|
+
basis?: "No" | "Yes" | undefined;
|
|
33
|
+
} & import("..").AsProp<React.ElementType<any>>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
34
|
+
export declare const NavCategory: <T extends React.ElementType<any> = "section">(props: import("..").AsOutProps<T, {
|
|
35
|
+
title?: string | undefined;
|
|
36
|
+
after?: ReactNode;
|
|
37
|
+
}>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
38
|
+
export declare type NavHeaderProps = {
|
|
39
|
+
title: ReactNode;
|
|
40
|
+
before?: ReactNode;
|
|
41
|
+
after?: ReactNode;
|
|
42
|
+
};
|
|
43
|
+
export declare const NavHeader: ({ title, before, after }: NavHeaderProps) => JSX.Element;
|
|
44
|
+
export declare type RoomListItemProps = Omit<ListRowProps, "after"> & {
|
|
45
|
+
active?: boolean;
|
|
46
|
+
unread?: boolean;
|
|
47
|
+
/** Non-interactive status displayed inside the main action. */
|
|
48
|
+
status?: ReactNode;
|
|
49
|
+
/** Independent actions are siblings of the link/button, never nested inside it. */
|
|
50
|
+
after?: ReactNode;
|
|
51
|
+
};
|
|
52
|
+
export declare const RoomListItem: <T extends React.ElementType<any> = "button">(props: import("..").AsOutProps<T, RoomListItemProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Nav";
|
|
@@ -38,7 +38,7 @@ export declare const PageHeroSection: <T extends React.ElementType<any> = "div">
|
|
|
38
38
|
alignContent?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | "SpaceBetween" | "SpaceAround" | "SpaceEvenly" | undefined;
|
|
39
39
|
alignItems?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
40
40
|
alignSelf?: "Start" | "Center" | "End" | "Inherit" | "Stretch" | "Baseline" | undefined;
|
|
41
|
-
gap?: "0" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "Inherit" | undefined;
|
|
41
|
+
gap?: "0" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "Inherit" | "50" | "250" | undefined;
|
|
42
42
|
grow?: "No" | "Yes" | undefined;
|
|
43
43
|
shrink?: "No" | "Yes" | undefined;
|
|
44
44
|
basis?: "No" | "Yes" | undefined;
|