@brett_lamy/ui 1.0.0 → 1.1.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/dist/components/adaptive-pane.d.ts +2 -2
- package/dist/components/adaptive-pane.stories.d.ts +1 -1
- package/dist/components/animated-height.d.ts +2 -2
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.stories.d.ts +1 -1
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.stories.d.ts +1 -1
- package/dist/components/button.d.ts +3 -3
- package/dist/components/button.stories.d.ts +1 -1
- package/dist/components/card.d.ts +3 -3
- package/dist/components/card.stories.d.ts +1 -1
- package/dist/components/celebrate.d.ts +1 -1
- package/dist/components/chat/channel-list.d.ts +1 -1
- package/dist/components/chat/channel-list.stories.d.ts +1 -2
- package/dist/components/chat/chat-avatar.d.ts +2 -2
- package/dist/components/chat/chat-avatar.stories.d.ts +1 -2
- package/dist/components/chat/chat-column.d.ts +1 -1
- package/dist/components/chat/chat-column.stories.d.ts +1 -2
- package/dist/components/chat/chat-composer.d.ts +1 -1
- package/dist/components/chat/chat-composer.stories.d.ts +1 -2
- package/dist/components/chat/chat.fixtures.d.ts +2 -2
- package/dist/components/chat/floating-chat.d.ts +2 -2
- package/dist/components/chat/floating-chat.stories.d.ts +2 -3
- package/dist/components/chat/floating-sheet.d.ts +1 -1
- package/dist/components/chat/floating-sheet.stories.d.ts +2 -3
- package/dist/components/chat/member-list.d.ts +3 -3
- package/dist/components/chat/message-list.d.ts +3 -3
- package/dist/components/chat/message.d.ts +4 -4
- package/dist/components/chat/message.stories.d.ts +1 -2
- package/dist/components/chat/progress-stepper.d.ts +2 -2
- package/dist/components/chat/rich-text.d.ts +1 -1
- package/dist/components/chat/rich-text.stories.d.ts +1 -2
- package/dist/components/chat/server-header.d.ts +1 -1
- package/dist/components/chat/thread-preview.d.ts +2 -2
- package/dist/components/chat/thread-preview.stories.d.ts +1 -2
- package/dist/components/chat/user-panel.d.ts +1 -1
- package/dist/components/chat/workspace-rail.d.ts +1 -1
- package/dist/components/chat/workspace-rail.stories.d.ts +1 -2
- package/dist/components/checkbox.d.ts +3 -3
- package/dist/components/checkbox.stories.d.ts +1 -1
- package/dist/components/combobox.d.ts +3 -3
- package/dist/components/combobox.stories.d.ts +1 -1
- package/dist/components/credenza.d.ts +1 -1
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/credenza.stories.d.ts +1 -1
- package/dist/components/dialog.d.ts +5 -5
- package/dist/components/dialog.stories.d.ts +1 -1
- package/dist/components/disclosure.d.ts +4 -4
- package/dist/components/disclosure.stories.d.ts +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -5
- package/dist/components/dropdown-menu.stories.d.ts +1 -1
- package/dist/components/edge-drawer.d.ts +1 -1
- package/dist/components/edge-drawer.stories.d.ts +1 -1
- package/dist/components/edit-bar.d.ts +1 -1
- package/dist/components/edit-bar.stories.d.ts +1 -1
- package/dist/components/form.d.ts +2 -2
- package/dist/components/form.stories.d.ts +1 -1
- package/dist/components/haptic-indicator.d.ts +1 -1
- package/dist/components/haptic-indicator.stories.d.ts +1 -1
- package/dist/components/icon-swap.d.ts +1 -1
- package/dist/components/index-bar.d.ts +6 -3
- package/dist/components/index-bar.d.ts.map +1 -1
- package/dist/components/index-bar.stories.d.ts +1 -1
- package/dist/components/input.d.ts +3 -3
- package/dist/components/input.stories.d.ts +1 -1
- package/dist/components/kbd.d.ts +1 -1
- package/dist/components/kbd.stories.d.ts +1 -1
- package/dist/components/label.d.ts +3 -3
- package/dist/components/label.stories.d.ts +1 -1
- package/dist/components/list-box.d.ts +5 -5
- package/dist/components/list-box.stories.d.ts +1 -1
- package/dist/components/list-row.stories.d.ts +10 -1
- package/dist/components/list-row.stories.d.ts.map +1 -1
- package/dist/components/list.d.ts +34 -3
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.stories.d.ts +6 -2
- package/dist/components/list.stories.d.ts.map +1 -1
- package/dist/components/markdown-editor.d.ts +39 -5
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.stories.d.ts +4 -1
- package/dist/components/markdown-editor.stories.d.ts.map +1 -1
- package/dist/components/measure-h.d.ts +1 -1
- package/dist/components/morph.d.ts +61 -0
- package/dist/components/morph.d.ts.map +1 -0
- package/dist/components/morph.stories.d.ts +14 -0
- package/dist/components/morph.stories.d.ts.map +1 -0
- package/dist/components/motion.stories.d.ts +1 -1
- package/dist/components/navigation-stack.d.ts +9 -3
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.stories.d.ts +12 -1
- package/dist/components/navigation-stack.stories.d.ts.map +1 -1
- package/dist/components/now-playing-bars.d.ts +21 -0
- package/dist/components/now-playing-bars.d.ts.map +1 -0
- package/dist/components/now-playing-bars.stories.d.ts +12 -0
- package/dist/components/now-playing-bars.stories.d.ts.map +1 -0
- package/dist/components/number-morph.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts +1 -1
- package/dist/components/pencilkit/pencil-toolbar.d.ts +7 -4
- package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.d.ts +2 -2
- package/dist/components/pencilkit/pk-icon.d.ts +1 -1
- package/dist/components/pencilkit/stroke-path.d.ts +1 -1
- package/dist/components/pencilkit/use-pencil-history.d.ts +2 -2
- package/dist/components/pill-button.d.ts +1 -1
- package/dist/components/pill-button.stories.d.ts +1 -1
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.stories.d.ts +1 -1
- package/dist/components/progress-ring.d.ts +66 -0
- package/dist/components/progress-ring.d.ts.map +1 -0
- package/dist/components/progress-ring.stories.d.ts +15 -0
- package/dist/components/progress-ring.stories.d.ts.map +1 -0
- package/dist/components/progress.d.ts +5 -5
- package/dist/components/progress.stories.d.ts +1 -1
- package/dist/components/qr-svg.d.ts +31 -4
- package/dist/components/qr-svg.d.ts.map +1 -1
- package/dist/components/qr-svg.stories.d.ts +9 -2
- package/dist/components/qr-svg.stories.d.ts.map +1 -1
- package/dist/components/radio-group.d.ts +4 -4
- package/dist/components/radio-group.stories.d.ts +1 -1
- package/dist/components/scroll-area.d.ts +3 -3
- package/dist/components/scroll-area.stories.d.ts +1 -1
- package/dist/components/search-field.d.ts +13 -5
- package/dist/components/search-field.d.ts.map +1 -1
- package/dist/components/search-field.stories.d.ts +3 -1
- package/dist/components/search-field.stories.d.ts.map +1 -1
- package/dist/components/segmented.d.ts +1 -1
- package/dist/components/segmented.stories.d.ts +1 -1
- package/dist/components/select.d.ts +5 -5
- package/dist/components/select.stories.d.ts +1 -1
- package/dist/components/separator.d.ts +3 -3
- package/dist/components/separator.stories.d.ts +1 -1
- package/dist/components/sheet.d.ts +4 -4
- package/dist/components/sheet.stories.d.ts +1 -1
- package/dist/components/side-drawer.d.ts +1 -1
- package/dist/components/side-drawer.stories.d.ts +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.stories.d.ts +1 -1
- package/dist/components/skeleton.d.ts +23 -5
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton.stories.d.ts +3 -1
- package/dist/components/skeleton.stories.d.ts.map +1 -1
- package/dist/components/slider.d.ts +16 -3
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.stories.d.ts +4 -1
- package/dist/components/slider.stories.d.ts.map +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.stories.d.ts +1 -1
- package/dist/components/split-view.d.ts +81 -10
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.stories.d.ts +28 -1
- package/dist/components/split-view.stories.d.ts.map +1 -1
- package/dist/components/switch.d.ts +3 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.stories.d.ts +1 -1
- package/dist/components/syntax-highlighting.d.ts +14 -11
- package/dist/components/syntax-highlighting.d.ts.map +1 -1
- package/dist/components/syntax-highlighting.stories.d.ts +1 -1
- package/dist/components/tab-bar.d.ts +1 -1
- package/dist/components/tab-bar.stories.d.ts +1 -1
- package/dist/components/tab-view.d.ts +8 -8
- package/dist/components/tab-view.d.ts.map +1 -1
- package/dist/components/tab-view.stories.d.ts +9 -2
- package/dist/components/tab-view.stories.d.ts.map +1 -1
- package/dist/components/tabs.d.ts +5 -5
- package/dist/components/tabs.stories.d.ts +1 -1
- package/dist/components/text-field.d.ts +1 -1
- package/dist/components/text-field.stories.d.ts +1 -1
- package/dist/components/text-morph.d.ts +1 -1
- package/dist/components/textarea.d.ts +3 -3
- package/dist/components/toast.d.ts +104 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.stories.d.ts +13 -0
- package/dist/components/toast.stories.d.ts.map +1 -0
- package/dist/components/toggle-group.d.ts +3 -3
- package/dist/components/toggle-group.stories.d.ts +1 -1
- package/dist/components/toggle.d.ts +3 -3
- package/dist/components/toggle.stories.d.ts +1 -1
- package/dist/components/tooltip.d.ts +2 -2
- package/dist/components/tooltip.stories.d.ts +1 -1
- package/dist/components/workbench/chat.d.ts +1 -1
- package/dist/components/workbench/chat.stories.d.ts +1 -2
- package/dist/components/workbench/composer-files.d.ts +36 -0
- package/dist/components/workbench/composer-files.d.ts.map +1 -0
- package/dist/components/workbench/composer.d.ts +111 -28
- package/dist/components/workbench/composer.d.ts.map +1 -1
- package/dist/components/workbench/composer.stories.d.ts +8 -2
- package/dist/components/workbench/composer.stories.d.ts.map +1 -1
- package/dist/components/workbench/fixtures.d.ts +2 -2
- package/dist/components/workbench/markdown.d.ts +2 -3
- package/dist/components/workbench/message-scroller.stories.d.ts +1 -2
- package/dist/components/workbench/model-picker.d.ts +3 -3
- package/dist/components/workbench/snap-sheet.stories.d.ts +1 -2
- package/dist/components/workbench/surfaces.d.ts +1 -1
- package/dist/components/workbench/surfaces.stories.d.ts +1 -2
- package/dist/components/workbench/terminal.d.ts +1 -1
- package/dist/components/workbench/terminal.stories.d.ts +1 -2
- package/dist/components/workbench/thread-sidebar.d.ts +1 -1
- package/dist/components/workbench/thread-sidebar.stories.d.ts +1 -2
- package/dist/components/workbench/wb-popover.d.ts +1 -1
- package/dist/components/workbench/workbench-composer.d.ts +1 -1
- package/dist/demos/delivery/delivery-tracking-demo.d.ts +4 -3
- package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +1 -1
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +2 -3
- package/dist/demos/haptics-playground.d.ts +4 -1
- package/dist/demos/haptics-playground.d.ts.map +1 -1
- package/dist/demos/haptics-playground.stories.d.ts +1 -1
- package/dist/demos/map-chat/map-agent.d.ts +2 -2
- package/dist/demos/map-chat/map-chat-demo.d.ts +3 -3
- package/dist/demos/map-chat/map-chat-demo.d.ts.map +1 -1
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts +2 -3
- package/dist/demos/map-chat/places.d.ts +2 -2
- package/dist/demos/map-chat/tile-map.d.ts +3 -3
- package/dist/demos/pencilkit/demo-strokes.d.ts +1 -1
- package/dist/demos/pencilkit/pencilkit-demo.d.ts +2 -2
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +1 -1
- package/dist/demos/sidebar-demo.d.ts +2 -2
- package/dist/demos/split-view-demos.d.ts +15 -2
- package/dist/demos/split-view-demos.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +26 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9348 -5277
- package/dist/lib/chat/chat-icon.d.ts +1 -1
- package/dist/lib/chat/chat-shell-context.d.ts +1 -1
- package/dist/lib/chat/chat-tokens.d.ts +2 -2
- package/dist/lib/chat/chat-users.d.ts +1 -1
- package/dist/lib/chat/persistent-host.d.ts +4 -4
- package/dist/lib/container.d.ts +8 -1
- package/dist/lib/container.d.ts.map +1 -1
- package/dist/lib/haptics.d.ts +7 -5
- package/dist/lib/haptics.d.ts.map +1 -1
- package/dist/lib/icon.d.ts +1298 -7
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.stories.d.ts +8 -1
- package/dist/lib/icon.stories.d.ts.map +1 -1
- package/dist/lib/pencilkit/constants.d.ts +1 -1
- package/dist/lib/qr.d.ts +28 -0
- package/dist/lib/qr.d.ts.map +1 -0
- package/dist/lib/sheet-drag.d.ts +1 -1
- package/dist/lib/syntax.d.ts +27 -10
- package/dist/lib/syntax.d.ts.map +1 -1
- package/dist/lib/theme.d.ts +4 -4
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/workbench/icons.d.ts +1 -1
- package/dist/lib/workbench/motion.d.ts +2 -2
- package/dist/lib/workbench/press.d.ts +1 -1
- package/dist/lib/workbench/press.d.ts.map +1 -1
- package/dist/lib/workbench/theme.d.ts +1 -1
- package/dist/stories/frame.d.ts +1 -1
- package/dist/stories/primitive-frame.d.ts +1 -1
- package/dist/templates/artifact-chat-container.d.ts +2 -2
- package/dist/templates/artifact-chat-container.stories.d.ts +2 -3
- package/dist/templates/chat-shell.d.ts +5 -5
- package/dist/templates/chat-shell.stories.d.ts +1 -2
- package/dist/templates/workbench-shell.d.ts +2 -2
- package/dist/templates/workbench-shell.stories.d.ts +1 -2
- package/package.json +3 -4
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { EdgeDrawerProps } from './edge-drawer';
|
|
3
3
|
export type AdaptivePaneMode = 'column' | 'drawer' | 'cover' | 'hidden';
|
|
4
4
|
export interface AdaptivePaneProps extends Omit<EdgeDrawerProps, 'open' | 'width'> {
|
|
5
5
|
mode: AdaptivePaneMode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { SpringName } from '../lib/motion';
|
|
3
3
|
export interface AnimatedHeightProps {
|
|
4
4
|
children?: ReactNode;
|
|
5
5
|
/** Spring preset for the height (default `tray`). */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const badgeVariants: (props?: ({
|
|
4
4
|
variant?: "secondary" | "destructive" | "success" | "outline" | "default" | "tinted" | null | undefined;
|
|
5
|
-
} & import(
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends ComponentProps<'span'>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
|
8
8
|
export declare function Badge({ className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ButtonProps as AriaButtonProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "secondary" | "destructive" | "link" | "default" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "icon" | "sm" | "lg" | "pill" | null | undefined;
|
|
6
|
-
} & import(
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface ButtonProps extends Omit<AriaButtonProps, 'render'>, VariantProps<typeof buttonVariants> {
|
|
8
8
|
/** Tooltip — react-aria's Button drops `title`, so it is rendered onto the <button> here. */
|
|
9
9
|
title?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const cardVariants: (props?: ({
|
|
4
4
|
variant?: "outline" | "default" | "elevated" | null | undefined;
|
|
5
|
-
} & import(
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface CardProps extends ComponentProps<'div'>, VariantProps<typeof cardVariants> {
|
|
7
7
|
}
|
|
8
8
|
export declare function Card({ className, variant, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { Button } from 'react-aria-components';
|
|
3
3
|
export interface ChannelListProps extends Omit<ComponentProps<'nav'>, 'onChange'> {
|
|
4
4
|
/** the current channel */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { ChatUser } from '../../lib/chat/chat-users';
|
|
3
3
|
export interface ChatAvatarProps {
|
|
4
4
|
user: ChatUser;
|
|
5
5
|
size?: number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { ChatAvatar } from './chat-avatar';
|
|
3
|
-
import '../../styles.css';
|
|
4
3
|
declare const meta: Meta<typeof ChatAvatar>;
|
|
5
4
|
export default meta;
|
|
6
5
|
type Story = StoryObj<typeof ChatAvatar>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
2
|
export type ChatColumnProps = ComponentProps<'aside'>;
|
|
3
3
|
export declare function ChatColumn({ className, ...props }: ChatColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
/** The scrolling region; takes the column's remaining height. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { Button, Input } from 'react-aria-components';
|
|
3
3
|
export interface ChatComposerProps extends Omit<ComponentProps<'div'>, 'onChange'> {
|
|
4
4
|
onSend: (text: string) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { ChatUsers } from '../../lib/chat/chat-users';
|
|
3
3
|
export declare const USERS: ChatUsers;
|
|
4
4
|
export declare const CHANNEL_GROUPS: {
|
|
5
5
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { FloatingSheetAppearance, FloatingSheetFabPosition, FloatingSheetTone } from './floating-sheet';
|
|
3
3
|
export type FloatingChatFabPosition = FloatingSheetFabPosition;
|
|
4
4
|
export interface FloatingChatContextValue {
|
|
5
5
|
/** Whether the full transcript is revealed. */
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import '
|
|
3
|
-
import { type FloatingChatFabPosition } from './floating-chat';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { FloatingChatFabPosition } from './floating-chat';
|
|
4
3
|
interface Args {
|
|
5
4
|
width: number;
|
|
6
5
|
height: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
2
2
|
export type FloatingSheetFabPosition = 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
3
3
|
/** Translucent glass over dark content, or an opaque card like a system sheet. */
|
|
4
4
|
export type FloatingSheetAppearance = 'glass' | 'sheet';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import '../../styles.css';
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { FloatingSheetAppearance, FloatingSheetTone } from './floating-sheet';
|
|
4
3
|
interface Args {
|
|
5
4
|
width: number;
|
|
6
5
|
height: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { ChatPresence } from './user-panel';
|
|
3
|
+
import { ChatUser } from '../../lib/chat/chat-users';
|
|
4
4
|
export declare function MemberList({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export interface MemberGroupProps extends ComponentProps<'div'> {
|
|
6
6
|
label: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export interface MessageListProps extends ComponentProps<'div'> {
|
|
4
4
|
/** keep the list pinned to the newest message while the reader is at the bottom (default true) */
|
|
5
5
|
autoScroll?: boolean;
|
|
@@ -20,7 +20,7 @@ export interface ChannelIntroProps extends Omit<ComponentProps<'div'>, 'title'>
|
|
|
20
20
|
export declare function ChannelIntro({ title, icon, className, children, ...props }: ChannelIntroProps): import("react/jsx-runtime").JSX.Element;
|
|
21
21
|
export declare const messageDividerVariants: (props?: ({
|
|
22
22
|
variant?: "date" | "subtle" | null | undefined;
|
|
23
|
-
} & import(
|
|
23
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
24
24
|
export interface MessageDividerProps extends ComponentProps<'div'>, VariantProps<typeof messageDividerVariants> {
|
|
25
25
|
}
|
|
26
26
|
/** A labelled rule across the transcript. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentProps, CSSProperties, ReactNode } from 'react';
|
|
2
2
|
import { Button, ToggleButton } from 'react-aria-components';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { ChatUser } from '../../lib/chat/chat-users';
|
|
5
5
|
export declare const messageVariants: (props?: ({
|
|
6
6
|
variant?: "default" | "continued" | null | undefined;
|
|
7
7
|
appear?: boolean | null | undefined;
|
|
8
|
-
} & import(
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
9
|
export interface MessageProps extends ComponentProps<'div'>, VariantProps<typeof messageVariants> {
|
|
10
10
|
/** the author, read by MessageAvatar and MessageAuthor */
|
|
11
11
|
user?: ChatUser;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
export interface ProgressStep {
|
|
3
3
|
id: string;
|
|
4
4
|
/** Shown under the icon when `labels` is on; always used as the accessible name. */
|
|
@@ -20,7 +20,7 @@ export interface ProgressStepperProps {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const progressStepperVariants: (props?: ({
|
|
22
22
|
variant?: "line" | "bars" | null | undefined;
|
|
23
|
-
} & import(
|
|
23
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
24
24
|
/**
|
|
25
25
|
* A row of milestones for a multi-step process (an order, a checkout, a deploy). Each step
|
|
26
26
|
* exposes `data-state="done|active|todo"` so hosts can restyle any of the three, and the
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { RichText } from './rich-text';
|
|
3
|
-
import '../../styles.css';
|
|
4
3
|
declare const meta: Meta<typeof RichText>;
|
|
5
4
|
export default meta;
|
|
6
5
|
type Story = StoryObj<typeof RichText>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
export interface ServerHeaderProps extends ComponentProps<'div'> {
|
|
3
3
|
/** trailing control; defaults to a close button inside a compact ChatShell, else a disclosure chevron */
|
|
4
4
|
action?: ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { Button } from 'react-aria-components';
|
|
3
|
-
import
|
|
3
|
+
import { ChatUser } from '../../lib/chat/chat-users';
|
|
4
4
|
export interface ThreadPreviewProps extends Omit<ComponentProps<typeof Button>, 'children'> {
|
|
5
5
|
title: ReactNode;
|
|
6
6
|
/** number of replies */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { Button } from 'react-aria-components';
|
|
3
3
|
export declare function UserPanel({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare function UserPanelInfo({ className, ...props }: ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { CheckboxProps as AriaCheckboxProps, CheckboxGroupProps as AriaCheckboxGroupProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const checkboxVariants: (props?: ({
|
|
4
4
|
shape?: "circle" | "square" | null | undefined;
|
|
5
|
-
} & import(
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface CheckboxProps extends AriaCheckboxProps, VariantProps<typeof checkboxVariants> {
|
|
7
7
|
}
|
|
8
8
|
export declare function Checkbox({ className, shape, children, onChange, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ListBoxSection,
|
|
3
|
-
import {
|
|
1
|
+
import { ComboBoxProps as AriaComboBoxProps, InputProps as AriaInputProps } from 'react-aria-components';
|
|
2
|
+
import { ListBoxSection, ListBoxItemProps, ListBoxProps } from './list-box';
|
|
3
|
+
import { PopoverProps } from './popover';
|
|
4
4
|
export interface ComboBoxProps<T extends object> extends AriaComboBoxProps<T> {
|
|
5
5
|
}
|
|
6
6
|
export declare function ComboBox<T extends object>({ className, onSelectionChange, ...props }: ComboBoxProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credenza.d.ts","sourceRoot":"","sources":["../../src/components/credenza.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"credenza.d.ts","sourceRoot":"","sources":["../../src/components/credenza.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,aAAa,EAA4C,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AA0BzI,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,aAAa,2CA6I3H"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { ButtonProps as AriaButtonProps, DialogProps as AriaDialogProps, DialogTrigger, HeadingProps, ModalOverlayProps, TextProps } from 'react-aria-components';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
export { DialogTrigger };
|
|
5
5
|
export declare const dialogVariants: (props?: ({
|
|
6
6
|
size?: "default" | "alert" | "lg" | null | undefined;
|
|
7
|
-
} & import(
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
8
|
/** Scrim for modal overlays (Dialog, Sheet). */
|
|
9
9
|
export declare const dialogOverlayClass: string;
|
|
10
10
|
export interface DialogContentProps extends Omit<ModalOverlayProps, 'children' | 'className'>, VariantProps<typeof dialogVariants> {
|
|
@@ -30,7 +30,7 @@ export interface DialogFooterProps extends ComponentProps<'div'> {
|
|
|
30
30
|
export declare function DialogFooter({ className, orientation, ...props }: DialogFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
export declare const dialogActionVariants: (props?: ({
|
|
32
32
|
variant?: "destructive" | "cancel" | "default" | null | undefined;
|
|
33
|
-
} & import(
|
|
33
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
34
34
|
export interface DialogActionProps extends AriaButtonProps, VariantProps<typeof dialogActionVariants> {
|
|
35
35
|
}
|
|
36
36
|
/** iOS alert button. Closes the dialog by default (react-aria's `close` slot); pass `slot={null}` to keep it open. */
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DisclosureProps as AriaDisclosureProps, DisclosureGroupProps as AriaDisclosureGroupProps, DisclosurePanelProps as AriaDisclosurePanelProps } from 'react-aria-components';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
export declare const disclosureGroupVariants: (props?: ({
|
|
5
5
|
variant?: "inset" | "default" | null | undefined;
|
|
6
|
-
} & import(
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface DisclosureGroupProps extends AriaDisclosureGroupProps, VariantProps<typeof disclosureGroupVariants> {
|
|
8
8
|
}
|
|
9
9
|
export declare function DisclosureGroup({ className, variant, ...props }: DisclosureGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Header,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Header, MenuProps, MenuItemProps, MenuSectionProps, MenuTriggerProps, SeparatorProps, SubmenuTriggerProps } from 'react-aria-components';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { PopoverProps } from './popover';
|
|
5
5
|
export declare function DropdownMenu(props: MenuTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export interface DropdownMenuContentProps<T> extends MenuProps<T> {
|
|
7
7
|
placement?: PopoverProps['placement'];
|
|
@@ -10,7 +10,7 @@ export interface DropdownMenuContentProps<T> extends MenuProps<T> {
|
|
|
10
10
|
export declare function DropdownMenuContent<T extends object>({ className, placement, popoverClassName, onAction, onSelectionChange, ...props }: DropdownMenuContentProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export declare const dropdownMenuItemVariants: (props?: ({
|
|
12
12
|
variant?: "destructive" | "default" | null | undefined;
|
|
13
|
-
} & import(
|
|
13
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
14
14
|
export interface DropdownMenuItemProps<T> extends MenuItemProps<T>, VariantProps<typeof dropdownMenuItemVariants> {
|
|
15
15
|
/** Trailing SF-style icon. */
|
|
16
16
|
icon?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { FormProps as AriaFormProps } from 'react-aria-components';
|
|
3
3
|
export declare function Form({ className, ...props }: AriaFormProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export interface FormSectionProps extends Omit<ComponentProps<'fieldset'>, 'title'> {
|
|
5
5
|
title?: ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
2
|
export declare const AL: string[];
|
|
3
3
|
export type IndexBarKey = string | number;
|
|
4
4
|
export interface IndexBarItem<K extends IndexBarKey = IndexBarKey> {
|
|
@@ -11,7 +11,7 @@ export interface IndexBarItem<K extends IndexBarKey = IndexBarKey> {
|
|
|
11
11
|
export declare const indexBarVariants: (props?: ({
|
|
12
12
|
variant?: "default" | "wave" | null | undefined;
|
|
13
13
|
side?: "left" | "right" | null | undefined;
|
|
14
|
-
} & import(
|
|
14
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
15
15
|
export interface IndexBarProps<K extends IndexBarKey = string> {
|
|
16
16
|
items?: Array<IndexBarItem<K> | K>;
|
|
17
17
|
avail?: Set<string>;
|
|
@@ -27,8 +27,11 @@ export interface IndexBarProps<K extends IndexBarKey = string> {
|
|
|
27
27
|
side?: 'left' | 'right';
|
|
28
28
|
/** Key of the current item (e.g. the turn in view); the wave draws it full length in the tint. */
|
|
29
29
|
value?: K;
|
|
30
|
+
/** Publish how far list rows run under the rail as `--bl-index-bar-inset` on the parent element so ListRows
|
|
31
|
+
* beside it keep their trailing accessories clear of it (right side only). Default true. */
|
|
32
|
+
insetContent?: boolean;
|
|
30
33
|
className?: string;
|
|
31
34
|
style?: CSSProperties;
|
|
32
35
|
}
|
|
33
|
-
export declare function IndexBar<K extends IndexBarKey = string>({ items, avail, onJump, onLetter, top, bottom, width: widthProp, label, variant, side, value, className, style, }: IndexBarProps<K>): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export declare function IndexBar<K extends IndexBarKey = string>({ items, avail, onJump, onLetter, top, bottom, width: widthProp, label, variant, side, value, insetContent, className, style, }: IndexBarProps<K>): import("react/jsx-runtime").JSX.Element;
|
|
34
37
|
//# sourceMappingURL=index-bar.d.ts.map
|