@pactor-app/ui 1.34.0 → 1.40.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/{chunk-U5EFJR5Z.js → chunk-F5JY3PBE.js} +1 -1
- package/dist/{chunk-RB7RCKAX.js → chunk-IBMIQXOM.js} +37 -37
- package/dist/{chunk-X54WOK3C.js → chunk-MGBEGZCH.js} +5244 -1670
- package/dist/{chunk-WYISCB4V.js → chunk-PRXLVTBS.js} +17 -10
- package/dist/{chunk-44DAGWXZ.js → chunk-PWXXEJ4J.js} +57 -26
- package/dist/{chunk-QQBAMERO.js → chunk-XRPL536L.js} +2 -2
- package/dist/components/index.cjs +5684 -2075
- package/dist/components/index.d.cts +764 -48
- package/dist/components/index.d.ts +764 -48
- package/dist/components/index.js +38 -4
- package/dist/index.cjs +5822 -2213
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +40 -6
- package/dist/interaction/index.cjs +1 -1
- package/dist/interaction/index.js +1 -1
- package/dist/layout/index.cjs +54 -25
- package/dist/layout/index.js +3 -3
- package/dist/ui/index.cjs +13 -6
- package/dist/ui/index.d.cts +8 -5
- package/dist/ui/index.d.ts +8 -5
- package/dist/ui/index.js +2 -2
- package/package.json +8 -7
- package/styles.css +223 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Accordion, AccordionItemData, AccordionProps, Affix, AffixProps, AgentStatus, AgentStatusProps, AgentStatusType, Alert, AlertDialog, AlertDialogProps, AlertProps, AlertVariant, Anchor, AnchorItemData, AnchorProps, AreaChart, AreaChartProps, ArtifactPanel, ArtifactPanelProps, ArtifactTreeNode, ArtifactViewer, ArtifactViewers, AspectRatio, AspectRatioProps, Attachment, AttachmentItemData, AttachmentProps, Audio, AudioProps, Avatar, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, BadgeVariant, BarChart, BarChartProps, Breadcrumb, BreadcrumbItemData, BreadcrumbProps, Bubble, BubbleChart, BubbleChartProps, BubbleProps, BubbleVariant, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonVariant, Calendar, CalendarProps, Card, CardProps, Carousel, CarouselImage, CarouselItemData, CarouselProps, Cascader, CascaderOption, CascaderProps, ChartSelectPayload, ChatInput, ChatInputProps, ChatMessage, ChatMessageActionItem, ChatMessageAgent, ChatMessagePart, ChatMessageProps, ChatMessageStatus, ChatPage, ChatPageArtifact, ChatPageBrand, ChatPageMenuItem, ChatPageProps, Checkbox, CheckboxProps, Citation, CitationItem, CitationProps, CodeBlock, CodeBlockProps, Collapsible, CollapsibleProps, ColorPicker, ColorPickerProps, ColumnChart, ColumnChartProps, Combobox, ComboboxOption, ComboboxProps, Command, CommandGroupData, CommandItemData, CommandProps, ComposedChart, ComposedChartProps, ComposedSeriesItem, Composer, ComposerContextItem, ComposerContextSource, ComposerModelOption, ComposerProps, Container, ContainerProps, ContainerSize, Content, ContentProps, ContextMenu, ContextMenuItemData, ContextMenuProps, ConversationItemData, ConversationList, ConversationListProps, ConversationRailItem, DataTable, DataTableColumn, DataTablePagination, DataTableProps, DataTableSort, DataTableSortOrder, DatePicker, DatePickerPreset, DatePickerPresetKey, DatePickerProps, DatePickerRangeProps, DatePickerSingleProps, DateRangeValue, Descriptions, DescriptionsItemData, DescriptionsProps, Dialog, DialogProps, DiffViewer, DiffViewerProps, DocumentPageData, DocumentPreview, DocumentPreviewProps, DonutChart, DonutChartProps, Drawer, DrawerPlacement, DrawerProps, DropdownMenu, DropdownMenuItemData, DropdownMenuProps, EChartBase, EChartBaseProps, Empty, EmptyProps, Field, FieldProps, FieldRule, FilePreview, FilePreviewKind, FilePreviewProps, Flex, FlexProps, Footer, FooterProps, For, ForProps, Form, FormContextValue, FormProps, FunnelChart, FunnelChartProps, Gallery, GalleryItemData, GalleryProps, GaugeChart, GaugeChartProps, Grid, GridProps, Header, HeaderBrandPosition, HeaderDropdown, HeaderDropdownItem, HeaderLocale, HeaderMenuItem, HeaderProps, HeaderTheme, HeaderUser, HeaderUserItem, Heatmap, HeatmapProps, HoverCard, HoverCardProps, ICONS, Icon, IconProps, IconSize, Image, ImageLightbox, ImageLightboxProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupProps, InputOTP, InputOTPProps, InputProps, Item, ItemProps, JSONViewer, JSONViewerProps, Kbd, KbdProps, Label, LabelProps, Layout, LayoutProps, LineChart, LineChartProps, Link, LinkProps, List, ListItemData, ListProps, LoadingOverlay, LoadingOverlayProps, Login, LoginBrandInfo, LoginLink, LoginProps, LoginVariant, MapChart, MapChartProps, MentionOption, Mentions, MentionsProps, Menu, MenuItem, MenuProps, Menubar, MenubarLeafItem, MenubarMenuData, MenubarProps, Message, MessageList, MessageListItem, MessageListProps, MessageProps, MetricCard, MetricCardProps, NavigationMenu, NavigationMenuChildItem, NavigationMenuItemData, NavigationMenuProps, Notification, NotificationProps, NumberInput, NumberInputProps, Page, PageProps, Pagination, PaginationProps, PieChart, PieChartProps, Popconfirm, PopconfirmProps, Popover, PopoverProps, Progress, ProgressProps, Prompt, PromptProps, QRCode, QRCodeProps, RadarChart, RadarChartProps, RadioGroup, RadioGroupOption, RadioGroupProps, RailTooltip, Rate, RateProps, Resizable, ResizablePanelData, ResizableProps, Result, ResultProps, ResultStatus, RichText, RichTextProps, SankeyChart, SankeyChartProps, ScatterChart, ScatterChartProps, ScrollArea, ScrollAreaProps, Segmented, SegmentedOption, SegmentedProps, Select, SelectOption, SelectProps, Sender, SenderProps, Separator, SeparatorProps, Sheet, SheetProps, SheetSide, Sidebar, SidebarBrand, SidebarNavItem, SidebarProps, Sider, SiderProps, Skeleton, SkeletonProps, SkeletonShape, Slider, SliderProps, Sonner, SonnerProps, Space, SpaceProps, Spinner, SpinnerProps, SpinnerSize, Statistic, StatisticProps, Status, StatusProps, StatusType, StepItemData, StepStatus, Steps, StepsPanel, StepsPanelItemData, StepsPanelProps, StepsProps, StreamingText, StreamingTextProps, Suggestion, SuggestionItem, SuggestionProps, Switch, SwitchProps, TabItem, Table, TableColumn, TablePagination, TablePaginationInfo, TableProps, Tabs, TabsProps, Tag, TagColor, TagProps, Text, TextProps, TextType, Textarea, TextareaProps, Thinking, ThinkingProps, ThinkingStatus, TimePicker, TimePickerProps, Timeline, TimelineItemData, TimelineProps, Toggle, ToggleGroup, ToggleGroupOption, ToggleGroupProps, ToggleProps, ToolCall, ToolCallProps, ToolCallStatus, Tooltip, TooltipProps, Tour, TourProps, TourStep, Transfer, TransferOption, TransferProps, Tree, TreeChart, TreeChartProps, TreeNodeData, TreeProps, TreeSelect, TreeSelectOption, TreeSelectProps, Typography, TypographyProps, TypographyVariant, Upload, UploadFileMeta, UploadProps, Video, VideoProps, Watermark, WatermarkProps, Welcome, WelcomePromptItem, WelcomeProps, buildArtifactTree, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useSidebarDrawer } from './components/index.cjs';
|
|
1
|
+
export { Accordion, AccordionItemData, AccordionProps, Affix, AffixProps, AgentStatus, AgentStatusProps, AgentStatusType, Alert, AlertDialog, AlertDialogProps, AlertProps, AlertVariant, Anchor, AnchorItemData, AnchorProps, AreaChart, AreaChartProps, ArtifactPanel, ArtifactPanelProps, ArtifactTreeNode, ArtifactViewer, ArtifactViewers, AspectRatio, AspectRatioProps, Attachment, AttachmentItemData, AttachmentProps, Audio, AudioProps, Avatar, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, BadgeVariant, BarChart, BarChartProps, Breadcrumb, BreadcrumbItemData, BreadcrumbProps, Bubble, BubbleChart, BubbleChartProps, BubbleProps, BubbleVariant, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonVariant, CONTROL_SIZE_AREA, CONTROL_SIZE_BOX, CONTROL_SIZE_BOX_GROW, CONTROL_SIZE_SELECT_ATTR, CONTROL_SIZE_TRIGGER_TEXT, Calendar, CalendarProps, Card, CardList, CardListItem, CardListProps, CardProps, Carousel, CarouselImage, CarouselItemData, CarouselProps, Cascader, CascaderOption, CascaderProps, ChartSelectPayload, ChatInput, ChatInputProps, ChatMessage, ChatMessageActionItem, ChatMessageAgent, ChatMessagePart, ChatMessageProps, ChatMessageStatus, ChatPage, ChatPageArtifact, ChatPageBrand, ChatPageMenuItem, ChatPageProps, Checkbox, CheckboxProps, ChipFilter, ChipFilterItem, ChipFilterProps, ChipNode, ChipNodeProps, Citation, CitationItem, CitationProps, CodeBlock, CodeBlockProps, Col, ColBreakpoint, ColProps, ColResponsiveValue, Collapsible, CollapsibleProps, ColorPicker, ColorPickerProps, ColumnChart, ColumnChartProps, Combobox, ComboboxOption, ComboboxProps, Command, CommandGroupData, CommandItemData, CommandProps, ComposedChart, ComposedChartProps, ComposedSeriesItem, Composer, ComposerContextItem, ComposerContextSource, ComposerModelOption, ComposerProps, Condition, ConditionFieldOption, ConditionOpt, Container, ContainerProps, ContainerSize, Content, ContentProps, ContextMenu, ContextMenuItemData, ContextMenuProps, ControlSize, ConversationItemData, ConversationList, ConversationListProps, ConversationRailItem, DataTable, DataTableColumn, DataTablePagination, DataTableProps, DataTableSort, DataTableSortOrder, DatePicker, DatePickerPreset, DatePickerPresetKey, DatePickerProps, DatePickerRangeProps, DatePickerSingleProps, DateRangeValue, Descriptions, DescriptionsItemData, DescriptionsProps, Dialog, DialogProps, DiffViewer, DiffViewerProps, DocumentPageData, DocumentPreview, DocumentPreviewProps, DonutChart, DonutChartProps, Drawer, DrawerPlacement, DrawerProps, DropdownMenu, DropdownMenuItemData, DropdownMenuProps, EChartBase, EChartBaseProps, Empty, EmptyProps, EntityCard, EntityCardAction, EntityCardProps, EntityCardTag, ExpressionEditor, ExpressionEditorProps, ExpressionMappingItem, Field, FieldCondition, FieldConditionGroup, FieldConditionItem, FieldConditionProps, FieldConditionValue, FieldProps, FieldRule, FilePreview, FilePreviewKind, FilePreviewProps, Flex, FlexProps, Footer, FooterProps, For, ForProps, Form, FormContextValue, FormProps, FunnelChart, FunnelChartProps, Gallery, GalleryItemData, GalleryProps, GaugeChart, GaugeChartProps, Grid, GridProps, Header, HeaderBrandPosition, HeaderDropdown, HeaderDropdownItem, HeaderLocale, HeaderMenuItem, HeaderProps, HeaderTheme, HeaderUser, HeaderUserItem, Heatmap, HeatmapProps, HoverCard, HoverCardProps, ICONS, Icon, IconProps, IconSize, Image, ImageLightbox, ImageLightboxProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupProps, InputOTP, InputOTPProps, InputProps, Item, ItemProps, JSONViewer, JSONViewerProps, Kbd, KbdProps, Label, LabelProps, Layout, LayoutProps, LineChart, LineChartProps, Link, LinkProps, List, ListItemData, ListProps, LoadingOverlay, LoadingOverlayProps, Login, LoginBrandInfo, LoginLink, LoginProps, LoginVariant, MapChart, MapChartProps, MentionOption, Mentions, MentionsProps, Menu, MenuItem, MenuProps, Menubar, MenubarLeafItem, MenubarMenuData, MenubarProps, Message, MessageList, MessageListItem, MessageListProps, MessageProps, MetricCard, MetricCardProps, NavigationMenu, NavigationMenuChildItem, NavigationMenuItemData, NavigationMenuProps, Notification, NotificationProps, NumberInput, NumberInputProps, Page, PageProps, Pagination, PaginationProps, PieChart, PieChartProps, Popconfirm, PopconfirmProps, Popover, PopoverProps, Progress, ProgressProps, Prompt, PromptProps, QRCode, QRCodeProps, RadarChart, RadarChartProps, RadioGroup, RadioGroupOption, RadioGroupProps, RailTooltip, Rate, RateProps, Resizable, ResizablePanelData, ResizableProps, Result, ResultProps, ResultStatus, RichText, RichTextProps, Row, RowAlign, RowJustify, RowProps, RuleConfig, RuleConfigProps, RuleConfigValue, RuleExpression, RuleExpressionOption, RuleExpressionProps, RuleExpressionValue, SankeyChart, SankeyChartProps, ScatterChart, ScatterChartProps, ScriptEditor, ScriptEditorProps, ScriptFunctionDef, ScriptFunctionParameter, ScriptVariableDef, ScrollArea, ScrollAreaProps, SearchableSelect, SearchableSelectProps, Segmented, SegmentedOption, SegmentedProps, Select, SelectOption, SelectProps, Sender, SenderProps, Separator, SeparatorProps, Sheet, SheetProps, SheetSide, Sidebar, SidebarBrand, SidebarNavItem, SidebarProps, Sider, SiderProps, Skeleton, SkeletonProps, SkeletonShape, Slider, SliderProps, Sonner, SonnerProps, Space, SpaceProps, Spinner, SpinnerProps, SpinnerSize, Statistic, StatisticProps, Status, StatusProps, StatusType, StepItemData, StepStatus, Steps, StepsPanel, StepsPanelItemData, StepsPanelProps, StepsProps, StreamingText, StreamingTextProps, Suggestion, SuggestionItem, SuggestionProps, Switch, SwitchProps, TabItem, Table, TableColumn, TablePagination, TablePaginationInfo, TableProps, Tabs, TabsProps, Tag, TagColor, TagProps, Text, TextProps, TextType, Textarea, TextareaProps, Thinking, ThinkingProps, ThinkingStatus, TimePicker, TimePickerProps, Timeline, TimelineItemData, TimelineProps, Toggle, ToggleGroup, ToggleGroupOption, ToggleGroupProps, ToggleProps, ToolCall, ToolCallProps, ToolCallStatus, Tooltip, TooltipProps, Tour, TourProps, TourStep, Transfer, TransferOption, TransferProps, Tree, TreeChart, TreeChartProps, TreeNodeData, TreeProps, TreeSelect, TreeSelectOption, TreeSelectProps, Typography, TypographyProps, TypographyVariant, Upload, UploadFileMeta, UploadProps, Video, VideoProps, Watermark, WatermarkProps, Welcome, WelcomePromptItem, WelcomeProps, buildArtifactTree, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useSidebarDrawer } from './components/index.cjs';
|
|
2
2
|
export { MarkdownDslComponent as Markdown, MarkdownDslComponentProps as MarkdownProps } from '@pactor-app/markdown';
|
|
3
3
|
export { AdminBrand, AdminLayout, AdminLayoutBreakpoint, AdminLayoutConfig, AdminLayoutMode, AdminLayoutProps, BlankLayout, BlankLayoutProps, ChatLayout, ChatLayoutBrand, ChatLayoutMenuItem, ChatLayoutProps, LandingLayout, LandingLayoutProps, LayoutComponent, LayoutRegistry, LoginBrand, LoginLayout, LoginLayoutProps, collectDefaultOpenKeys, createLayoutRegistry, findMenuChain, registerBuiltinLayouts, resolveLayout } from './layout/index.cjs';
|
|
4
4
|
export { InteractionProvider, InteractionProviderProps, OVERLAY_CANCEL_PAYLOAD, OverlayConfig, OverlayEntry, OverlayHost, OverlayHostProps, OverlayListener, OverlayManager, ResolvePageFn, UiBridge, UiMessage, UiModal, createUiBridge, registerInteractionActions } from './interaction/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Accordion, AccordionItemData, AccordionProps, Affix, AffixProps, AgentStatus, AgentStatusProps, AgentStatusType, Alert, AlertDialog, AlertDialogProps, AlertProps, AlertVariant, Anchor, AnchorItemData, AnchorProps, AreaChart, AreaChartProps, ArtifactPanel, ArtifactPanelProps, ArtifactTreeNode, ArtifactViewer, ArtifactViewers, AspectRatio, AspectRatioProps, Attachment, AttachmentItemData, AttachmentProps, Audio, AudioProps, Avatar, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, BadgeVariant, BarChart, BarChartProps, Breadcrumb, BreadcrumbItemData, BreadcrumbProps, Bubble, BubbleChart, BubbleChartProps, BubbleProps, BubbleVariant, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonVariant, Calendar, CalendarProps, Card, CardProps, Carousel, CarouselImage, CarouselItemData, CarouselProps, Cascader, CascaderOption, CascaderProps, ChartSelectPayload, ChatInput, ChatInputProps, ChatMessage, ChatMessageActionItem, ChatMessageAgent, ChatMessagePart, ChatMessageProps, ChatMessageStatus, ChatPage, ChatPageArtifact, ChatPageBrand, ChatPageMenuItem, ChatPageProps, Checkbox, CheckboxProps, Citation, CitationItem, CitationProps, CodeBlock, CodeBlockProps, Collapsible, CollapsibleProps, ColorPicker, ColorPickerProps, ColumnChart, ColumnChartProps, Combobox, ComboboxOption, ComboboxProps, Command, CommandGroupData, CommandItemData, CommandProps, ComposedChart, ComposedChartProps, ComposedSeriesItem, Composer, ComposerContextItem, ComposerContextSource, ComposerModelOption, ComposerProps, Container, ContainerProps, ContainerSize, Content, ContentProps, ContextMenu, ContextMenuItemData, ContextMenuProps, ConversationItemData, ConversationList, ConversationListProps, ConversationRailItem, DataTable, DataTableColumn, DataTablePagination, DataTableProps, DataTableSort, DataTableSortOrder, DatePicker, DatePickerPreset, DatePickerPresetKey, DatePickerProps, DatePickerRangeProps, DatePickerSingleProps, DateRangeValue, Descriptions, DescriptionsItemData, DescriptionsProps, Dialog, DialogProps, DiffViewer, DiffViewerProps, DocumentPageData, DocumentPreview, DocumentPreviewProps, DonutChart, DonutChartProps, Drawer, DrawerPlacement, DrawerProps, DropdownMenu, DropdownMenuItemData, DropdownMenuProps, EChartBase, EChartBaseProps, Empty, EmptyProps, Field, FieldProps, FieldRule, FilePreview, FilePreviewKind, FilePreviewProps, Flex, FlexProps, Footer, FooterProps, For, ForProps, Form, FormContextValue, FormProps, FunnelChart, FunnelChartProps, Gallery, GalleryItemData, GalleryProps, GaugeChart, GaugeChartProps, Grid, GridProps, Header, HeaderBrandPosition, HeaderDropdown, HeaderDropdownItem, HeaderLocale, HeaderMenuItem, HeaderProps, HeaderTheme, HeaderUser, HeaderUserItem, Heatmap, HeatmapProps, HoverCard, HoverCardProps, ICONS, Icon, IconProps, IconSize, Image, ImageLightbox, ImageLightboxProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupProps, InputOTP, InputOTPProps, InputProps, Item, ItemProps, JSONViewer, JSONViewerProps, Kbd, KbdProps, Label, LabelProps, Layout, LayoutProps, LineChart, LineChartProps, Link, LinkProps, List, ListItemData, ListProps, LoadingOverlay, LoadingOverlayProps, Login, LoginBrandInfo, LoginLink, LoginProps, LoginVariant, MapChart, MapChartProps, MentionOption, Mentions, MentionsProps, Menu, MenuItem, MenuProps, Menubar, MenubarLeafItem, MenubarMenuData, MenubarProps, Message, MessageList, MessageListItem, MessageListProps, MessageProps, MetricCard, MetricCardProps, NavigationMenu, NavigationMenuChildItem, NavigationMenuItemData, NavigationMenuProps, Notification, NotificationProps, NumberInput, NumberInputProps, Page, PageProps, Pagination, PaginationProps, PieChart, PieChartProps, Popconfirm, PopconfirmProps, Popover, PopoverProps, Progress, ProgressProps, Prompt, PromptProps, QRCode, QRCodeProps, RadarChart, RadarChartProps, RadioGroup, RadioGroupOption, RadioGroupProps, RailTooltip, Rate, RateProps, Resizable, ResizablePanelData, ResizableProps, Result, ResultProps, ResultStatus, RichText, RichTextProps, SankeyChart, SankeyChartProps, ScatterChart, ScatterChartProps, ScrollArea, ScrollAreaProps, Segmented, SegmentedOption, SegmentedProps, Select, SelectOption, SelectProps, Sender, SenderProps, Separator, SeparatorProps, Sheet, SheetProps, SheetSide, Sidebar, SidebarBrand, SidebarNavItem, SidebarProps, Sider, SiderProps, Skeleton, SkeletonProps, SkeletonShape, Slider, SliderProps, Sonner, SonnerProps, Space, SpaceProps, Spinner, SpinnerProps, SpinnerSize, Statistic, StatisticProps, Status, StatusProps, StatusType, StepItemData, StepStatus, Steps, StepsPanel, StepsPanelItemData, StepsPanelProps, StepsProps, StreamingText, StreamingTextProps, Suggestion, SuggestionItem, SuggestionProps, Switch, SwitchProps, TabItem, Table, TableColumn, TablePagination, TablePaginationInfo, TableProps, Tabs, TabsProps, Tag, TagColor, TagProps, Text, TextProps, TextType, Textarea, TextareaProps, Thinking, ThinkingProps, ThinkingStatus, TimePicker, TimePickerProps, Timeline, TimelineItemData, TimelineProps, Toggle, ToggleGroup, ToggleGroupOption, ToggleGroupProps, ToggleProps, ToolCall, ToolCallProps, ToolCallStatus, Tooltip, TooltipProps, Tour, TourProps, TourStep, Transfer, TransferOption, TransferProps, Tree, TreeChart, TreeChartProps, TreeNodeData, TreeProps, TreeSelect, TreeSelectOption, TreeSelectProps, Typography, TypographyProps, TypographyVariant, Upload, UploadFileMeta, UploadProps, Video, VideoProps, Watermark, WatermarkProps, Welcome, WelcomePromptItem, WelcomeProps, buildArtifactTree, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useSidebarDrawer } from './components/index.js';
|
|
1
|
+
export { Accordion, AccordionItemData, AccordionProps, Affix, AffixProps, AgentStatus, AgentStatusProps, AgentStatusType, Alert, AlertDialog, AlertDialogProps, AlertProps, AlertVariant, Anchor, AnchorItemData, AnchorProps, AreaChart, AreaChartProps, ArtifactPanel, ArtifactPanelProps, ArtifactTreeNode, ArtifactViewer, ArtifactViewers, AspectRatio, AspectRatioProps, Attachment, AttachmentItemData, AttachmentProps, Audio, AudioProps, Avatar, AvatarProps, BackTop, BackTopProps, Badge, BadgeProps, BadgeVariant, BarChart, BarChartProps, Breadcrumb, BreadcrumbItemData, BreadcrumbProps, Bubble, BubbleChart, BubbleChartProps, BubbleProps, BubbleVariant, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonVariant, CONTROL_SIZE_AREA, CONTROL_SIZE_BOX, CONTROL_SIZE_BOX_GROW, CONTROL_SIZE_SELECT_ATTR, CONTROL_SIZE_TRIGGER_TEXT, Calendar, CalendarProps, Card, CardList, CardListItem, CardListProps, CardProps, Carousel, CarouselImage, CarouselItemData, CarouselProps, Cascader, CascaderOption, CascaderProps, ChartSelectPayload, ChatInput, ChatInputProps, ChatMessage, ChatMessageActionItem, ChatMessageAgent, ChatMessagePart, ChatMessageProps, ChatMessageStatus, ChatPage, ChatPageArtifact, ChatPageBrand, ChatPageMenuItem, ChatPageProps, Checkbox, CheckboxProps, ChipFilter, ChipFilterItem, ChipFilterProps, ChipNode, ChipNodeProps, Citation, CitationItem, CitationProps, CodeBlock, CodeBlockProps, Col, ColBreakpoint, ColProps, ColResponsiveValue, Collapsible, CollapsibleProps, ColorPicker, ColorPickerProps, ColumnChart, ColumnChartProps, Combobox, ComboboxOption, ComboboxProps, Command, CommandGroupData, CommandItemData, CommandProps, ComposedChart, ComposedChartProps, ComposedSeriesItem, Composer, ComposerContextItem, ComposerContextSource, ComposerModelOption, ComposerProps, Condition, ConditionFieldOption, ConditionOpt, Container, ContainerProps, ContainerSize, Content, ContentProps, ContextMenu, ContextMenuItemData, ContextMenuProps, ControlSize, ConversationItemData, ConversationList, ConversationListProps, ConversationRailItem, DataTable, DataTableColumn, DataTablePagination, DataTableProps, DataTableSort, DataTableSortOrder, DatePicker, DatePickerPreset, DatePickerPresetKey, DatePickerProps, DatePickerRangeProps, DatePickerSingleProps, DateRangeValue, Descriptions, DescriptionsItemData, DescriptionsProps, Dialog, DialogProps, DiffViewer, DiffViewerProps, DocumentPageData, DocumentPreview, DocumentPreviewProps, DonutChart, DonutChartProps, Drawer, DrawerPlacement, DrawerProps, DropdownMenu, DropdownMenuItemData, DropdownMenuProps, EChartBase, EChartBaseProps, Empty, EmptyProps, EntityCard, EntityCardAction, EntityCardProps, EntityCardTag, ExpressionEditor, ExpressionEditorProps, ExpressionMappingItem, Field, FieldCondition, FieldConditionGroup, FieldConditionItem, FieldConditionProps, FieldConditionValue, FieldProps, FieldRule, FilePreview, FilePreviewKind, FilePreviewProps, Flex, FlexProps, Footer, FooterProps, For, ForProps, Form, FormContextValue, FormProps, FunnelChart, FunnelChartProps, Gallery, GalleryItemData, GalleryProps, GaugeChart, GaugeChartProps, Grid, GridProps, Header, HeaderBrandPosition, HeaderDropdown, HeaderDropdownItem, HeaderLocale, HeaderMenuItem, HeaderProps, HeaderTheme, HeaderUser, HeaderUserItem, Heatmap, HeatmapProps, HoverCard, HoverCardProps, ICONS, Icon, IconProps, IconSize, Image, ImageLightbox, ImageLightboxProps, ImageProps, ImageViewer, ImageViewerProps, Input, InputGroup, InputGroupProps, InputOTP, InputOTPProps, InputProps, Item, ItemProps, JSONViewer, JSONViewerProps, Kbd, KbdProps, Label, LabelProps, Layout, LayoutProps, LineChart, LineChartProps, Link, LinkProps, List, ListItemData, ListProps, LoadingOverlay, LoadingOverlayProps, Login, LoginBrandInfo, LoginLink, LoginProps, LoginVariant, MapChart, MapChartProps, MentionOption, Mentions, MentionsProps, Menu, MenuItem, MenuProps, Menubar, MenubarLeafItem, MenubarMenuData, MenubarProps, Message, MessageList, MessageListItem, MessageListProps, MessageProps, MetricCard, MetricCardProps, NavigationMenu, NavigationMenuChildItem, NavigationMenuItemData, NavigationMenuProps, Notification, NotificationProps, NumberInput, NumberInputProps, Page, PageProps, Pagination, PaginationProps, PieChart, PieChartProps, Popconfirm, PopconfirmProps, Popover, PopoverProps, Progress, ProgressProps, Prompt, PromptProps, QRCode, QRCodeProps, RadarChart, RadarChartProps, RadioGroup, RadioGroupOption, RadioGroupProps, RailTooltip, Rate, RateProps, Resizable, ResizablePanelData, ResizableProps, Result, ResultProps, ResultStatus, RichText, RichTextProps, Row, RowAlign, RowJustify, RowProps, RuleConfig, RuleConfigProps, RuleConfigValue, RuleExpression, RuleExpressionOption, RuleExpressionProps, RuleExpressionValue, SankeyChart, SankeyChartProps, ScatterChart, ScatterChartProps, ScriptEditor, ScriptEditorProps, ScriptFunctionDef, ScriptFunctionParameter, ScriptVariableDef, ScrollArea, ScrollAreaProps, SearchableSelect, SearchableSelectProps, Segmented, SegmentedOption, SegmentedProps, Select, SelectOption, SelectProps, Sender, SenderProps, Separator, SeparatorProps, Sheet, SheetProps, SheetSide, Sidebar, SidebarBrand, SidebarNavItem, SidebarProps, Sider, SiderProps, Skeleton, SkeletonProps, SkeletonShape, Slider, SliderProps, Sonner, SonnerProps, Space, SpaceProps, Spinner, SpinnerProps, SpinnerSize, Statistic, StatisticProps, Status, StatusProps, StatusType, StepItemData, StepStatus, Steps, StepsPanel, StepsPanelItemData, StepsPanelProps, StepsProps, StreamingText, StreamingTextProps, Suggestion, SuggestionItem, SuggestionProps, Switch, SwitchProps, TabItem, Table, TableColumn, TablePagination, TablePaginationInfo, TableProps, Tabs, TabsProps, Tag, TagColor, TagProps, Text, TextProps, TextType, Textarea, TextareaProps, Thinking, ThinkingProps, ThinkingStatus, TimePicker, TimePickerProps, Timeline, TimelineItemData, TimelineProps, Toggle, ToggleGroup, ToggleGroupOption, ToggleGroupProps, ToggleProps, ToolCall, ToolCallProps, ToolCallStatus, Tooltip, TooltipProps, Tour, TourProps, TourStep, Transfer, TransferOption, TransferProps, Tree, TreeChart, TreeChartProps, TreeNodeData, TreeProps, TreeSelect, TreeSelectOption, TreeSelectProps, Typography, TypographyProps, TypographyVariant, Upload, UploadFileMeta, UploadProps, Video, VideoProps, Watermark, WatermarkProps, Welcome, WelcomePromptItem, WelcomeProps, buildArtifactTree, builtinComponents, createComponentRegistry, diffLines, inferKind, normalizeIconName, registerBuiltinComponents, useFormContext, useSidebarDrawer } from './components/index.js';
|
|
2
2
|
export { MarkdownDslComponent as Markdown, MarkdownDslComponentProps as MarkdownProps } from '@pactor-app/markdown';
|
|
3
3
|
export { AdminBrand, AdminLayout, AdminLayoutBreakpoint, AdminLayoutConfig, AdminLayoutMode, AdminLayoutProps, BlankLayout, BlankLayoutProps, ChatLayout, ChatLayoutBrand, ChatLayoutMenuItem, ChatLayoutProps, LandingLayout, LandingLayoutProps, LayoutComponent, LayoutRegistry, LoginBrand, LoginLayout, LoginLayoutProps, collectDefaultOpenKeys, createLayoutRegistry, findMenuChain, registerBuiltinLayouts, resolveLayout } from './layout/index.js';
|
|
4
4
|
export { InteractionProvider, InteractionProviderProps, OVERLAY_CANCEL_PAYLOAD, OverlayConfig, OverlayEntry, OverlayHost, OverlayHostProps, OverlayListener, OverlayManager, ResolvePageFn, UiBridge, UiMessage, UiModal, createUiBridge, registerInteractionActions } from './interaction/index.js';
|
package/dist/index.js
CHANGED
|
@@ -19,16 +19,25 @@ import {
|
|
|
19
19
|
BubbleChart,
|
|
20
20
|
Button,
|
|
21
21
|
ButtonGroup,
|
|
22
|
+
CONTROL_SIZE_AREA,
|
|
23
|
+
CONTROL_SIZE_BOX,
|
|
24
|
+
CONTROL_SIZE_BOX_GROW,
|
|
25
|
+
CONTROL_SIZE_SELECT_ATTR,
|
|
26
|
+
CONTROL_SIZE_TRIGGER_TEXT,
|
|
22
27
|
Calendar,
|
|
23
28
|
Card,
|
|
29
|
+
CardList,
|
|
24
30
|
Carousel,
|
|
25
31
|
Cascader,
|
|
26
32
|
ChatInput,
|
|
27
33
|
ChatMessage,
|
|
28
34
|
ChatPage,
|
|
29
35
|
Checkbox,
|
|
36
|
+
ChipFilter,
|
|
37
|
+
ChipNode,
|
|
30
38
|
Citation,
|
|
31
39
|
CodeBlock,
|
|
40
|
+
Col,
|
|
32
41
|
Collapsible,
|
|
33
42
|
ColorPicker,
|
|
34
43
|
ColumnChart,
|
|
@@ -51,7 +60,10 @@ import {
|
|
|
51
60
|
DropdownMenu,
|
|
52
61
|
EChartBase,
|
|
53
62
|
Empty,
|
|
63
|
+
EntityCard,
|
|
64
|
+
ExpressionEditor,
|
|
54
65
|
Field,
|
|
66
|
+
FieldCondition,
|
|
55
67
|
FilePreview,
|
|
56
68
|
Flex,
|
|
57
69
|
Footer,
|
|
@@ -104,9 +116,14 @@ import {
|
|
|
104
116
|
Resizable,
|
|
105
117
|
Result,
|
|
106
118
|
RichText,
|
|
119
|
+
Row,
|
|
120
|
+
RuleConfig,
|
|
121
|
+
RuleExpression,
|
|
107
122
|
SankeyChart,
|
|
108
123
|
ScatterChart,
|
|
124
|
+
ScriptEditor,
|
|
109
125
|
ScrollArea,
|
|
126
|
+
SearchableSelect,
|
|
110
127
|
Segmented,
|
|
111
128
|
Select,
|
|
112
129
|
Sender,
|
|
@@ -154,7 +171,7 @@ import {
|
|
|
154
171
|
inferKind,
|
|
155
172
|
registerBuiltinComponents,
|
|
156
173
|
useFormContext
|
|
157
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-MGBEGZCH.js";
|
|
158
175
|
import {
|
|
159
176
|
InteractionProvider,
|
|
160
177
|
OVERLAY_CANCEL_PAYLOAD,
|
|
@@ -162,7 +179,7 @@ import {
|
|
|
162
179
|
OverlayManager,
|
|
163
180
|
createUiBridge,
|
|
164
181
|
registerInteractionActions
|
|
165
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-F5JY3PBE.js";
|
|
166
183
|
import {
|
|
167
184
|
AdminLayout,
|
|
168
185
|
BlankLayout,
|
|
@@ -174,7 +191,7 @@ import {
|
|
|
174
191
|
findMenuChain,
|
|
175
192
|
registerBuiltinLayouts,
|
|
176
193
|
resolveLayout
|
|
177
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-XRPL536L.js";
|
|
178
195
|
import {
|
|
179
196
|
ICONS,
|
|
180
197
|
Icon,
|
|
@@ -183,10 +200,10 @@ import {
|
|
|
183
200
|
Sidebar,
|
|
184
201
|
normalizeIconName,
|
|
185
202
|
useSidebarDrawer
|
|
186
|
-
} from "./chunk-
|
|
187
|
-
import "./chunk-
|
|
203
|
+
} from "./chunk-PWXXEJ4J.js";
|
|
204
|
+
import "./chunk-PRXLVTBS.js";
|
|
188
205
|
import "./chunk-HAOAXDTW.js";
|
|
189
|
-
import "./chunk-
|
|
206
|
+
import "./chunk-IBMIQXOM.js";
|
|
190
207
|
import "./chunk-WKJUCGV4.js";
|
|
191
208
|
export {
|
|
192
209
|
Accordion,
|
|
@@ -211,8 +228,14 @@ export {
|
|
|
211
228
|
BubbleChart,
|
|
212
229
|
Button,
|
|
213
230
|
ButtonGroup,
|
|
231
|
+
CONTROL_SIZE_AREA,
|
|
232
|
+
CONTROL_SIZE_BOX,
|
|
233
|
+
CONTROL_SIZE_BOX_GROW,
|
|
234
|
+
CONTROL_SIZE_SELECT_ATTR,
|
|
235
|
+
CONTROL_SIZE_TRIGGER_TEXT,
|
|
214
236
|
Calendar,
|
|
215
237
|
Card,
|
|
238
|
+
CardList,
|
|
216
239
|
Carousel,
|
|
217
240
|
Cascader,
|
|
218
241
|
ChatInput,
|
|
@@ -220,8 +243,11 @@ export {
|
|
|
220
243
|
ChatMessage,
|
|
221
244
|
ChatPage,
|
|
222
245
|
Checkbox,
|
|
246
|
+
ChipFilter,
|
|
247
|
+
ChipNode,
|
|
223
248
|
Citation,
|
|
224
249
|
CodeBlock,
|
|
250
|
+
Col,
|
|
225
251
|
Collapsible,
|
|
226
252
|
ColorPicker,
|
|
227
253
|
ColumnChart,
|
|
@@ -244,7 +270,10 @@ export {
|
|
|
244
270
|
DropdownMenu,
|
|
245
271
|
EChartBase,
|
|
246
272
|
Empty,
|
|
273
|
+
EntityCard,
|
|
274
|
+
ExpressionEditor,
|
|
247
275
|
Field,
|
|
276
|
+
FieldCondition,
|
|
248
277
|
FilePreview,
|
|
249
278
|
Flex,
|
|
250
279
|
Footer,
|
|
@@ -307,9 +336,14 @@ export {
|
|
|
307
336
|
Resizable,
|
|
308
337
|
Result,
|
|
309
338
|
RichText,
|
|
339
|
+
Row,
|
|
340
|
+
RuleConfig,
|
|
341
|
+
RuleExpression,
|
|
310
342
|
SankeyChart,
|
|
311
343
|
ScatterChart,
|
|
344
|
+
ScriptEditor,
|
|
312
345
|
ScrollArea,
|
|
346
|
+
SearchableSelect,
|
|
313
347
|
Segmented,
|
|
314
348
|
Select,
|
|
315
349
|
Sender,
|
|
@@ -742,7 +742,7 @@ function ShadcnDrawerView({
|
|
|
742
742
|
"data-slot": "drawer-panel",
|
|
743
743
|
className: cn(entry.width !== void 0 && "sm:max-w-none"),
|
|
744
744
|
style: panelStyle,
|
|
745
|
-
overlayProps: {
|
|
745
|
+
overlayProps: { onPointerDown: onCancel },
|
|
746
746
|
children: [
|
|
747
747
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
748
748
|
DrawerHeader,
|
package/dist/layout/index.cjs
CHANGED
|
@@ -279,6 +279,7 @@ var ICONS = {
|
|
|
279
279
|
sun: import_lucide_react2.Sun,
|
|
280
280
|
moon: import_lucide_react2.Moon,
|
|
281
281
|
globe: import_lucide_react2.Globe,
|
|
282
|
+
"grip-vertical": import_lucide_react2.GripVertical,
|
|
282
283
|
filter: import_lucide_react2.Funnel,
|
|
283
284
|
"list-filter": import_lucide_react2.ListFilter,
|
|
284
285
|
"more-horizontal": import_lucide_react2.Ellipsis,
|
|
@@ -313,6 +314,7 @@ var ICONS = {
|
|
|
313
314
|
terminal: import_lucide_react2.Terminal,
|
|
314
315
|
code: import_lucide_react2.Code,
|
|
315
316
|
database: import_lucide_react2.Database,
|
|
317
|
+
inbox: import_lucide_react2.Inbox,
|
|
316
318
|
cloud: import_lucide_react2.Cloud,
|
|
317
319
|
languages: import_lucide_react2.Languages,
|
|
318
320
|
// @pactor-app/chat 收敛(spec: chat-icon-convergence):chat 既有图标与
|
|
@@ -1604,6 +1606,7 @@ function Sidebar({
|
|
|
1604
1606
|
content,
|
|
1605
1607
|
sidebarFooter,
|
|
1606
1608
|
collapsible,
|
|
1609
|
+
defaultCollapsed,
|
|
1607
1610
|
onCollapse,
|
|
1608
1611
|
locationKey,
|
|
1609
1612
|
drawer = true,
|
|
@@ -1614,7 +1617,7 @@ function Sidebar({
|
|
|
1614
1617
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1615
1618
|
SidebarProvider,
|
|
1616
1619
|
{
|
|
1617
|
-
defaultOpen:
|
|
1620
|
+
defaultOpen: !defaultCollapsed,
|
|
1618
1621
|
className,
|
|
1619
1622
|
style,
|
|
1620
1623
|
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
@@ -1663,6 +1666,7 @@ function SidebarInner({
|
|
|
1663
1666
|
}, [locationKey, setOpenMobile]);
|
|
1664
1667
|
const collapsedEffective = collapsible === true && collapsed && !isMobile;
|
|
1665
1668
|
const brandNode = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(BrandNode, { brand, collapsed: collapsedEffective });
|
|
1669
|
+
const collapsedBrandLogo = collapsedEffective && isBrandObject(brand) && brand.logo ? brand.logo : null;
|
|
1666
1670
|
const sidebarContent = content !== void 0 && content !== null ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SidebarContentSlot, { content }) : items.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SidebarNavItems, { items }) : null;
|
|
1667
1671
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
|
|
1668
1672
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
@@ -1670,33 +1674,57 @@ function SidebarInner({
|
|
|
1670
1674
|
{
|
|
1671
1675
|
collapsible: collapsible ? "icon" : "offcanvas",
|
|
1672
1676
|
children: [
|
|
1673
|
-
(brand !== void 0 || collapsible) && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1674
|
-
|
|
1677
|
+
(brand !== void 0 || collapsible) && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1678
|
+
SidebarHeader,
|
|
1679
|
+
{
|
|
1680
|
+
className: brand === void 0 ? "h-9" : void 0,
|
|
1681
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
1682
|
+
"div",
|
|
1683
|
+
{
|
|
1684
|
+
"data-slot": "sidebar-brand",
|
|
1685
|
+
className: cn(
|
|
1686
|
+
"flex shrink-0 items-center gap-2 px-2",
|
|
1687
|
+
brand !== void 0 ? "h-14" : "h-9 justify-end w-full",
|
|
1688
|
+
collapsedEffective && "justify-center px-0",
|
|
1689
|
+
collapsedBrandLogo && "h-auto flex-col gap-1 py-1.5"
|
|
1690
|
+
),
|
|
1691
|
+
children: [
|
|
1692
|
+
collapsedEffective ? collapsedBrandLogo && isBrandObject(brand) ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1693
|
+
"img",
|
|
1694
|
+
{
|
|
1695
|
+
"data-slot": "sidebar-brand-logo",
|
|
1696
|
+
src: brand.logo,
|
|
1697
|
+
alt: brand.title,
|
|
1698
|
+
className: "size-6 shrink-0"
|
|
1699
|
+
}
|
|
1700
|
+
) : null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: brandNode }),
|
|
1701
|
+
collapsible && !isMobile && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1702
|
+
"button",
|
|
1703
|
+
{
|
|
1704
|
+
type: "button",
|
|
1705
|
+
"data-slot": "sidebar-collapse-trigger",
|
|
1706
|
+
"aria-label": collapsedEffective ? t("pactor.layout.expandSidebar") : t("pactor.layout.collapseSidebar"),
|
|
1707
|
+
"aria-expanded": !collapsedEffective,
|
|
1708
|
+
className: "flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md text-sidebar-foreground/60 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",
|
|
1709
|
+
onClick: toggleSidebar,
|
|
1710
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { name: collapsedEffective ? "chevron-right" : "chevron-left", size: 16 })
|
|
1711
|
+
}
|
|
1712
|
+
)
|
|
1713
|
+
]
|
|
1714
|
+
}
|
|
1715
|
+
)
|
|
1716
|
+
}
|
|
1717
|
+
),
|
|
1718
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SidebarContent, { children: sidebarContent }),
|
|
1719
|
+
sidebarFooter !== void 0 && sidebarFooter !== null && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1720
|
+
SidebarFooter,
|
|
1675
1721
|
{
|
|
1676
|
-
"data-slot": "sidebar-brand",
|
|
1677
1722
|
className: cn(
|
|
1678
|
-
"
|
|
1679
|
-
collapsedEffective && "justify-center px-0"
|
|
1723
|
+
collapsedEffective && "items-center px-0 [&_[data-slot=flex]]:justify-center [&_[data-slot=icon]]:hidden [&_[data-slot=text]]:hidden"
|
|
1680
1724
|
),
|
|
1681
|
-
children:
|
|
1682
|
-
collapsedEffective ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "flex min-w-0 flex-1 items-center gap-2", children: brandNode }),
|
|
1683
|
-
collapsible && !isMobile && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1684
|
-
"button",
|
|
1685
|
-
{
|
|
1686
|
-
type: "button",
|
|
1687
|
-
"data-slot": "sidebar-collapse-trigger",
|
|
1688
|
-
"aria-label": collapsedEffective ? t("pactor.layout.expandSidebar") : t("pactor.layout.collapseSidebar"),
|
|
1689
|
-
"aria-expanded": !collapsedEffective,
|
|
1690
|
-
className: "flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-md text-sidebar-foreground/60 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground",
|
|
1691
|
-
onClick: toggleSidebar,
|
|
1692
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Icon, { name: collapsedEffective ? "chevron-right" : "chevron-left", size: 16 })
|
|
1693
|
-
}
|
|
1694
|
-
)
|
|
1695
|
-
]
|
|
1725
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SidebarContentSlot, { content: sidebarFooter })
|
|
1696
1726
|
}
|
|
1697
|
-
)
|
|
1698
|
-
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SidebarContent, { children: sidebarContent }),
|
|
1699
|
-
sidebarFooter !== void 0 && sidebarFooter !== null && !collapsedEffective && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(SidebarFooter, { children: sidebarFooter })
|
|
1727
|
+
)
|
|
1700
1728
|
]
|
|
1701
1729
|
}
|
|
1702
1730
|
),
|
|
@@ -1746,13 +1774,14 @@ function Menu2({
|
|
|
1746
1774
|
mode = "inline",
|
|
1747
1775
|
selectedKey,
|
|
1748
1776
|
collapsible = false,
|
|
1777
|
+
collapsed: collapsedProp,
|
|
1749
1778
|
defaultExpandedKeys,
|
|
1750
1779
|
onSelect,
|
|
1751
1780
|
className,
|
|
1752
1781
|
style
|
|
1753
1782
|
}) {
|
|
1754
1783
|
const drawer = useSidebarDrawer();
|
|
1755
|
-
const collapsed = mode === "inline" && drawer?.collapsed === true;
|
|
1784
|
+
const collapsed = collapsedProp ?? (mode === "inline" && drawer?.collapsed === true);
|
|
1756
1785
|
const collapsibleOn = collapsible && mode === "inline" && !collapsed;
|
|
1757
1786
|
const [expandedKeys, setExpandedKeys] = (0, import_react5.useState)(() => {
|
|
1758
1787
|
const initial = new Set(defaultExpandedKeys ?? []);
|
package/dist/layout/index.js
CHANGED
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
findMenuChain,
|
|
10
10
|
registerBuiltinLayouts,
|
|
11
11
|
resolveLayout
|
|
12
|
-
} from "../chunk-
|
|
13
|
-
import "../chunk-
|
|
14
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-XRPL536L.js";
|
|
13
|
+
import "../chunk-PWXXEJ4J.js";
|
|
14
|
+
import "../chunk-IBMIQXOM.js";
|
|
15
15
|
import "../chunk-WKJUCGV4.js";
|
|
16
16
|
export {
|
|
17
17
|
AdminLayout,
|
package/dist/ui/index.cjs
CHANGED
|
@@ -1416,13 +1416,14 @@ function CarouselNext({
|
|
|
1416
1416
|
var import_checkbox = require("@base-ui/react/checkbox");
|
|
1417
1417
|
var import_lucide_react5 = require("lucide-react");
|
|
1418
1418
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
1419
|
-
function Checkbox({ className, ...props }) {
|
|
1419
|
+
function Checkbox({ className, indeterminate, ...props }) {
|
|
1420
1420
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
1421
1421
|
import_checkbox.Checkbox.Root,
|
|
1422
1422
|
{
|
|
1423
1423
|
"data-slot": "checkbox",
|
|
1424
|
+
indeterminate,
|
|
1424
1425
|
className: cn(
|
|
1425
|
-
"peer size-4 shrink-0 cursor-pointer rounded-[4px] border border-input shadow-xs transition-colors outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground",
|
|
1426
|
+
"peer size-4 shrink-0 cursor-pointer rounded-[4px] border border-input shadow-xs transition-colors outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[disabled]:cursor-not-allowed data-[disabled]:bg-muted data-[disabled]:opacity-60 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground data-indeterminate:border-primary data-indeterminate:bg-primary data-indeterminate:text-primary-foreground",
|
|
1426
1427
|
className
|
|
1427
1428
|
),
|
|
1428
1429
|
...props,
|
|
@@ -1431,7 +1432,7 @@ function Checkbox({ className, ...props }) {
|
|
|
1431
1432
|
{
|
|
1432
1433
|
"data-slot": "checkbox-indicator",
|
|
1433
1434
|
className: "flex items-center justify-center text-current",
|
|
1434
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react5.CheckIcon, { className: "size-3.5" })
|
|
1435
|
+
children: indeterminate ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react5.MinusIcon, { className: "size-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react5.CheckIcon, { className: "size-3.5" })
|
|
1435
1436
|
}
|
|
1436
1437
|
)
|
|
1437
1438
|
}
|
|
@@ -3494,7 +3495,7 @@ function SelectTrigger({
|
|
|
3494
3495
|
"data-slot": "select-trigger",
|
|
3495
3496
|
"data-size": size,
|
|
3496
3497
|
className: cn(
|
|
3497
|
-
"flex w-fit cursor-pointer items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-colors outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3498
|
+
"flex w-fit cursor-pointer items-center justify-between gap-2 rounded-md border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-colors outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 data-[size=lg]:h-10 data-[placeholder]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3498
3499
|
className
|
|
3499
3500
|
),
|
|
3500
3501
|
...props,
|
|
@@ -4450,12 +4451,18 @@ function Switch({ className, ...props }) {
|
|
|
4450
4451
|
|
|
4451
4452
|
// src/ui/table.tsx
|
|
4452
4453
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
4453
|
-
function Table({
|
|
4454
|
+
function Table({
|
|
4455
|
+
className,
|
|
4456
|
+
containerClassName,
|
|
4457
|
+
containerStyle,
|
|
4458
|
+
...props
|
|
4459
|
+
}) {
|
|
4454
4460
|
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4455
4461
|
"div",
|
|
4456
4462
|
{
|
|
4457
4463
|
"data-slot": "table-container",
|
|
4458
|
-
className: "relative w-full overflow-x-auto",
|
|
4464
|
+
className: cn("relative w-full overflow-x-auto", containerClassName),
|
|
4465
|
+
style: containerStyle,
|
|
4459
4466
|
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
4460
4467
|
"table",
|
|
4461
4468
|
{
|
package/dist/ui/index.d.cts
CHANGED
|
@@ -222,8 +222,8 @@ declare function CarouselItem({ className, ...props }: React.ComponentProps<'div
|
|
|
222
222
|
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
223
223
|
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
224
224
|
|
|
225
|
-
/** shadcn/ui Checkbox(vendored 源码,Base UI
|
|
226
|
-
declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): React.JSX.Element;
|
|
225
|
+
/** shadcn/ui Checkbox(vendored 源码,Base UI 原语);indeterminate 态渲染减号图标 */
|
|
226
|
+
declare function Checkbox({ className, indeterminate, ...props }: Checkbox$1.Root.Props): React.JSX.Element;
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* shadcn/ui Collapsible(vendored 源码,Base UI Collapsible 原语)。
|
|
@@ -521,7 +521,7 @@ declare const Select: typeof Select$1.Root;
|
|
|
521
521
|
declare function SelectGroup({ ...props }: Select$1.Group.Props): React.JSX.Element;
|
|
522
522
|
declare function SelectValue({ ...props }: Select$1.Value.Props): React.JSX.Element;
|
|
523
523
|
declare function SelectTrigger({ className, size, children, ...props }: Select$1.Trigger.Props & {
|
|
524
|
-
size?: 'sm' | 'default';
|
|
524
|
+
size?: 'sm' | 'default' | 'lg';
|
|
525
525
|
}): React.JSX.Element;
|
|
526
526
|
declare function SelectContent({ className, children, side, sideOffset, align, alignItemWithTrigger, ...props }: Select$1.Popup.Props & Pick<Select$1.Positioner.Props, 'align' | 'side' | 'sideOffset' | 'alignItemWithTrigger'>): React.JSX.Element;
|
|
527
527
|
declare function SelectLabel({ className, ...props }: Select$1.GroupLabel.Props): React.JSX.Element;
|
|
@@ -620,8 +620,11 @@ declare function Spinner({ className, ...props }: React.ComponentProps<'svg'>):
|
|
|
620
620
|
/** shadcn/ui Switch(vendored 源码,Base UI 原语) */
|
|
621
621
|
declare function Switch({ className, ...props }: Switch$1.Root.Props): React.JSX.Element;
|
|
622
622
|
|
|
623
|
-
/** shadcn/ui Table(vendored
|
|
624
|
-
declare function Table({ className, ...props }: React.ComponentProps<'table'>
|
|
623
|
+
/** shadcn/ui Table(vendored 源码);扩展 containerClassName/containerStyle 以支持纵向滚动(固定表头) */
|
|
624
|
+
declare function Table({ className, containerClassName, containerStyle, ...props }: React.ComponentProps<'table'> & {
|
|
625
|
+
containerClassName?: string;
|
|
626
|
+
containerStyle?: React.CSSProperties;
|
|
627
|
+
}): React.JSX.Element;
|
|
625
628
|
declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): React.JSX.Element;
|
|
626
629
|
declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): React.JSX.Element;
|
|
627
630
|
declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): React.JSX.Element;
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -222,8 +222,8 @@ declare function CarouselItem({ className, ...props }: React.ComponentProps<'div
|
|
|
222
222
|
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
223
223
|
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
|
|
224
224
|
|
|
225
|
-
/** shadcn/ui Checkbox(vendored 源码,Base UI
|
|
226
|
-
declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): React.JSX.Element;
|
|
225
|
+
/** shadcn/ui Checkbox(vendored 源码,Base UI 原语);indeterminate 态渲染减号图标 */
|
|
226
|
+
declare function Checkbox({ className, indeterminate, ...props }: Checkbox$1.Root.Props): React.JSX.Element;
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
229
|
* shadcn/ui Collapsible(vendored 源码,Base UI Collapsible 原语)。
|
|
@@ -521,7 +521,7 @@ declare const Select: typeof Select$1.Root;
|
|
|
521
521
|
declare function SelectGroup({ ...props }: Select$1.Group.Props): React.JSX.Element;
|
|
522
522
|
declare function SelectValue({ ...props }: Select$1.Value.Props): React.JSX.Element;
|
|
523
523
|
declare function SelectTrigger({ className, size, children, ...props }: Select$1.Trigger.Props & {
|
|
524
|
-
size?: 'sm' | 'default';
|
|
524
|
+
size?: 'sm' | 'default' | 'lg';
|
|
525
525
|
}): React.JSX.Element;
|
|
526
526
|
declare function SelectContent({ className, children, side, sideOffset, align, alignItemWithTrigger, ...props }: Select$1.Popup.Props & Pick<Select$1.Positioner.Props, 'align' | 'side' | 'sideOffset' | 'alignItemWithTrigger'>): React.JSX.Element;
|
|
527
527
|
declare function SelectLabel({ className, ...props }: Select$1.GroupLabel.Props): React.JSX.Element;
|
|
@@ -620,8 +620,11 @@ declare function Spinner({ className, ...props }: React.ComponentProps<'svg'>):
|
|
|
620
620
|
/** shadcn/ui Switch(vendored 源码,Base UI 原语) */
|
|
621
621
|
declare function Switch({ className, ...props }: Switch$1.Root.Props): React.JSX.Element;
|
|
622
622
|
|
|
623
|
-
/** shadcn/ui Table(vendored
|
|
624
|
-
declare function Table({ className, ...props }: React.ComponentProps<'table'>
|
|
623
|
+
/** shadcn/ui Table(vendored 源码);扩展 containerClassName/containerStyle 以支持纵向滚动(固定表头) */
|
|
624
|
+
declare function Table({ className, containerClassName, containerStyle, ...props }: React.ComponentProps<'table'> & {
|
|
625
|
+
containerClassName?: string;
|
|
626
|
+
containerStyle?: React.CSSProperties;
|
|
627
|
+
}): React.JSX.Element;
|
|
625
628
|
declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): React.JSX.Element;
|
|
626
629
|
declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): React.JSX.Element;
|
|
627
630
|
declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): React.JSX.Element;
|
package/dist/ui/index.js
CHANGED
|
@@ -161,7 +161,7 @@ import {
|
|
|
161
161
|
toggleVariants,
|
|
162
162
|
typographyVariants,
|
|
163
163
|
useCarousel
|
|
164
|
-
} from "../chunk-
|
|
164
|
+
} from "../chunk-PRXLVTBS.js";
|
|
165
165
|
import {
|
|
166
166
|
Dialog,
|
|
167
167
|
DialogClose,
|
|
@@ -240,7 +240,7 @@ import {
|
|
|
240
240
|
TooltipProvider,
|
|
241
241
|
TooltipTrigger,
|
|
242
242
|
useSidebar
|
|
243
|
-
} from "../chunk-
|
|
243
|
+
} from "../chunk-IBMIQXOM.js";
|
|
244
244
|
import {
|
|
245
245
|
Button,
|
|
246
246
|
buttonVariants,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactor-app/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.40.0",
|
|
4
4
|
"description": "Pactor UI kit (shadcn): the single built-in UI kit — vendored shadcn/ui components (Base UI primitives + cva + tailwind-merge + lucide-react), props contracts, interaction core (OverlayManager / UiBridge) and layouts, with build-time Tailwind v4 prebuilt styles.css (zero consumer-side Tailwind config)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pactor",
|
|
@@ -92,11 +92,7 @@
|
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
94
|
"@base-ui/react": "^1.7.0",
|
|
95
|
-
"
|
|
96
|
-
"@pactor-app/markdown": "1.34.0",
|
|
97
|
-
"@pactor-app/permission": "1.34.0",
|
|
98
|
-
"@pactor-app/router": "1.34.0",
|
|
99
|
-
"@pactor-app/runtime": "1.34.0",
|
|
95
|
+
"ace-builds": "^1.44.0",
|
|
100
96
|
"class-variance-authority": "^0.7.1",
|
|
101
97
|
"clsx": "^2.1.1",
|
|
102
98
|
"cmdk": "^1.1.1",
|
|
@@ -111,7 +107,12 @@
|
|
|
111
107
|
"react-day-picker": "^10.0.1",
|
|
112
108
|
"react-resizable-panels": "^4.12.3",
|
|
113
109
|
"tailwind-merge": "^3.6.0",
|
|
114
|
-
"vaul": "^1.1.2"
|
|
110
|
+
"vaul": "^1.1.2",
|
|
111
|
+
"@pactor-app/core": "1.40.0",
|
|
112
|
+
"@pactor-app/permission": "1.40.0",
|
|
113
|
+
"@pactor-app/markdown": "1.40.0",
|
|
114
|
+
"@pactor-app/router": "1.40.0",
|
|
115
|
+
"@pactor-app/runtime": "1.40.0"
|
|
115
116
|
},
|
|
116
117
|
"peerDependencies": {
|
|
117
118
|
"react": ">=18",
|