@arbidocs/react 0.5.151 → 0.5.152
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-B6T54X65.cjs → chunk-WJIRX5MS.cjs} +4 -4
- package/dist/chunk-WJIRX5MS.cjs.map +1 -0
- package/dist/datasets/rows-source.js.map +2 -2
- package/dist/datasets/sources/activity.js +1 -1
- package/dist/datasets/sources/activity.js.map +2 -2
- package/dist/datasets/sources/conversations.js +1 -1
- package/dist/datasets/sources/conversations.js.map +2 -2
- package/dist/datasets/sources/database.js +17 -9
- package/dist/datasets/sources/database.js.map +2 -2
- package/dist/datasets/sources/documents.js +1 -1
- package/dist/datasets/sources/documents.js.map +2 -2
- package/dist/datasets/sources/facts.js +1 -1
- package/dist/datasets/sources/facts.js.map +2 -2
- package/dist/datasets/sources/projects.js +1 -1
- package/dist/datasets/sources/projects.js.map +2 -2
- package/dist/datasets/sources/tags.js +1 -1
- package/dist/datasets/sources/tags.js.map +2 -2
- package/dist/datasets/sources/usage.js +5 -4
- package/dist/datasets/sources/usage.js.map +2 -2
- package/dist/datasets/sources/workflows.js +1 -1
- package/dist/datasets/sources/workflows.js.map +2 -2
- package/dist/datasets/sources/workspaces.js +1 -1
- package/dist/datasets/sources/workspaces.js.map +2 -2
- package/dist/datasets/types.js.map +1 -1
- package/dist/index.cjs +245 -237
- package/dist/index.cjs.map +1 -1
- package/dist/{index.d-DbcrFwS6.d.ts → index.d-Dy_Pz6Vl.d.ts} +4 -0
- package/dist/index.d.ts +7 -2
- package/dist/ui/card.js +2 -2
- package/dist/ui/card.js.map +2 -2
- package/dist/ui/index.cjs +151 -151
- package/dist/ui/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/chunk-B6T54X65.cjs.map +0 -1
|
@@ -375,6 +375,10 @@ declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPr
|
|
|
375
375
|
* edge (e.g. selectable list cards, embedded panels).
|
|
376
376
|
* - `elevated`: border + a subtle shadow for cards that should lift.
|
|
377
377
|
*
|
|
378
|
+
* The border is the theme's `--border` hairline, named here rather than left to a global
|
|
379
|
+
* `border-color` default: Tailwind v4's Preflight paints a bare `border` in `currentColor` (the
|
|
380
|
+
* text colour, near-black), and a host's stylesheet need not restore the default.
|
|
381
|
+
*
|
|
378
382
|
* `min-w-0` lets a card be a grid/flex item narrower than its content (a truncated row inside
|
|
379
383
|
* must not widen the track and push the page into horizontal scroll).
|
|
380
384
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export { ACCOUNT_VENDOR, AccountSyncResult, ActivityKind, ActivityResponse, Agen
|
|
|
6
6
|
import * as _arbidocs_client from '@arbidocs/client';
|
|
7
7
|
import { components, WsTaskUpdateMessage, WsPresenceUpdateMessage, WsAuthResultMessage, WebSocketServerMessage, SessionUser, SessionManager, ArbiClient, RecoveryKeyParams, CallPeer } from '@arbidocs/client';
|
|
8
8
|
export { CallPeer, WebSocketServerMessage, WsBatchCompleteMessage, WsConversationMessagePostedMessage, WsNotificationResponse, WsPresenceUpdateMessage, WsResponseCompleteMessage, WsTaskUpdateMessage, isMessageType } from '@arbidocs/client';
|
|
9
|
-
import { ay as IdentityStatus, aw as IdentityPurchase, az as IdentityStep, aA as IdentityVerificationFlow, V as DictateContextValue, al as EntityVocabulary, ae as EntityIconComponent, aj as EntitySize } from './index.d-
|
|
10
|
-
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiIcon, d as Avatar, e as AvatarFallback, f as AvatarImage, B as BASE_COLORS, g as Badge, h as BadgeProps, i as Button, j as ButtonProps, C as COLUMN_LABEL_FALLBACKS, k as Card, l as CardContent, m as CardDescription, n as CardFooter, o as CardHeader, p as CardProps, q as CardTitle, r as Checkbox, s as Collapsible, t as CollapsibleContent, u as CollapsibleTrigger, v as Command, w as CommandDialog, x as CommandEmpty, y as CommandGroup, z as CommandInput, D as CommandItem, E as CommandList, F as CommandSeparator, G as CommandShortcut, H as DEFAULT_METADATA_TAGS, I as DebouncedInput, J as DebouncedInputProps, K as Dialog, L as DialogClose, M as DialogContent, N as DialogDescription, O as DialogFooter, P as DialogHeader, Q as DialogOverlay, R as DialogPortal, S as DialogPresentation, T as DialogTitle, U as DialogTrigger, W as DocumentEntity, X as DocumentEntityProps, Y as DocumentLike, Z as DropdownMenu, _ as DropdownMenuCheckboxItem, $ as DropdownMenuContent, a0 as DropdownMenuGroup, a1 as DropdownMenuItem, a2 as DropdownMenuLabel, a3 as DropdownMenuPortal, a4 as DropdownMenuRadioGroup, a5 as DropdownMenuRadioItem, a6 as DropdownMenuSeparator, a7 as DropdownMenuShortcut, a8 as DropdownMenuSub, a9 as DropdownMenuSubContent, aa as DropdownMenuSubTrigger, ab as DropdownMenuTrigger, ac as ENTITY_MAPPINGS, ad as EntityIcon, af as EntityLabelForm, ag as EntityNoun, ah as EntityPill, ai as EntityRegistryOverride, ak as EntityType, am as FileTypeIcon, an as FolderTreeNode, ap as HoverCard, aq as HoverCardContent, ar as HoverCardTrigger, as as IconToggle, at as IconToggleProps, au as IdentityBusy, av as IdentityProblem, ax as IdentityState, aB as Input, aC as InputProps, aD as Label, aE as MarkMenu, aF as MarkMenuItem, aG as MarkMenuProps, aH as MarkdownCode, aI as MarkdownLink, aJ as MarkdownRenderer, aK as MarkdownRendererProps, aL as MarkdownStreamingContext, aM as NEUTRAL_GRAY, aN as PLACEHOLDER_COLOR, aO as PRESENTATIONS_FOLDER, aP as PRESENTATION_TEMPLATES_FOLDER, aQ as PassageCard, aR as PassageCardProps, aS as Popover, aT as PopoverAnchor, aU as PopoverClose, aV as PopoverContent, aW as PopoverTrigger, aX as PortalContainerProvider, aY as PresenceDisplayStatus, aZ as PresenceLabel, a_ as Progress, a$ as ProjectEntity, b0 as ProjectEntityProps, b1 as ProjectRelation, b2 as ProviderIcon, b3 as RadioGroup, b4 as RadioGroupItem, b5 as Rag, b6 as SHARING_LABELS, b7 as ScrollArea, b8 as ScrollBar, b9 as Select, ba as SelectContent, bb as SelectGroup, bc as SelectItem, bd as SelectLabel, be as SelectScrollDownButton, bf as SelectScrollUpButton, bg as SelectSeparator, bh as SelectTrigger, bi as SelectValue, bj as Separator, bk as SharingEntity, bl as SharingEntityProps, bm as ShieldIcon, bn as ShieldIconProps, bo as Slider, bp as StatusBadgeComponent, bq as StatusBadgeProps, br as StatusPill, bs as StatusPillProps, bt as StatusVariant, bu as Switch, bv as TAG_TYPE_ICONS, bw as TAG_TYPE_LABELS, bx as Table, by as TableBody, bz as TableCaption, bA as TableCell, bB as TableFooter, bC as TableHead, bD as TableHeader, bE as TableRow, bF as Tabs, bG as TabsContent, bH as TabsList, bI as TabsTrigger, bJ as TagEntity, bK as TagEntityProps, bL as TagLike, bM as Textarea, bN as TextareaProps, bO as ThreadVisibilityIcon, bP as Toggle, bQ as ToggleGroup, bR as ToggleGroupItem, bS as Tooltip, bT as TooltipContent, bU as TooltipProvider, bV as TooltipTrigger, bW as UserEntity, bX as UserEntityProps, bY as UserMenu, bZ as UserMenuItem, b_ as UserMenuProps, b$ as UserMenuStatus, c0 as VISIBILITY_ICONS, c1 as VerifiedBadge, c2 as VerifiedBadgeProps, c3 as VerifiedToggle, c4 as VisibilityIcon, c5 as VisibilityToggle, c6 as VisibilityToggleProps, c7 as agentAvatarColors, c8 as badgeVariants, c9 as buildFolderTree, ca as buttonVariants, cb as canonicalFolderPath, cc as cardVariants, cd as closeOpenEmphasis, ce as cn, cf as configureEntityRegistry, cg as configureEntityVocabulary, ch as configureRagLabels, ci as configureSharingMembers, cj as configureStatusRegistry, ck as createUserAvatarIcon, cl as entityNoun, cm as extensionFromMime, cn as formatCompactLastSeen, co as formatDocDate, cp as formatFolderLabel, cq as formatFriendlyDate, cr as formatRelativeTime, cs as friendlyFileType, ct as getDocIcon, cu as getDocumentAuthor, cv as getDocumentDate, cw as getDocumentNature, cx as getDocumentSubject, cy as getDocumentTitle, cz as getEntityColor, cA as getEntityColorStyles, cB as getEntityIcon, cC as getEntityLabel, cD as getFileExtension, cE as getFileTypeIcon, cF as getStatusVariant, cG as getTagTypeIcon, cH as getTagTypeLabel, cI as getUserAvatarColor, cJ as getUserDisplayName, cK as getUserInitials, cL as getWorkspaceColor, cM as isAgent, cN as isAudioFile, cO as isDocumentAddableToConversation, cP as isDownloadOnlyFile, cQ as isImageDocument, cR as isImageFile, cS as isMediaFile, cT as isPresentationFileName, cU as isVideoFile, cV as markdownBaseComponents, cW as markdownSanitizeSchema, cX as markdownToPlainText, cY as markdownToPlainTextBlocks, cZ as normalizeCitationMarkup, c_ as splitMarkdownBlocks, c$ as tagKindNouns, d0 as tagKindTitle, d1 as toggleVariants, d2 as trimOpenCitation, d3 as useDictateContext, d4 as usePortalContainer, d5 as usesOriginalBytesForViewer } from './index.d-
|
|
9
|
+
import { ay as IdentityStatus, aw as IdentityPurchase, az as IdentityStep, aA as IdentityVerificationFlow, V as DictateContextValue, al as EntityVocabulary, ae as EntityIconComponent, aj as EntitySize } from './index.d-Dy_Pz6Vl.js';
|
|
10
|
+
export { A as ARBI_MARK_SRC, a as AgentBadge, b as AiMarkdown, c as ArbiIcon, d as Avatar, e as AvatarFallback, f as AvatarImage, B as BASE_COLORS, g as Badge, h as BadgeProps, i as Button, j as ButtonProps, C as COLUMN_LABEL_FALLBACKS, k as Card, l as CardContent, m as CardDescription, n as CardFooter, o as CardHeader, p as CardProps, q as CardTitle, r as Checkbox, s as Collapsible, t as CollapsibleContent, u as CollapsibleTrigger, v as Command, w as CommandDialog, x as CommandEmpty, y as CommandGroup, z as CommandInput, D as CommandItem, E as CommandList, F as CommandSeparator, G as CommandShortcut, H as DEFAULT_METADATA_TAGS, I as DebouncedInput, J as DebouncedInputProps, K as Dialog, L as DialogClose, M as DialogContent, N as DialogDescription, O as DialogFooter, P as DialogHeader, Q as DialogOverlay, R as DialogPortal, S as DialogPresentation, T as DialogTitle, U as DialogTrigger, W as DocumentEntity, X as DocumentEntityProps, Y as DocumentLike, Z as DropdownMenu, _ as DropdownMenuCheckboxItem, $ as DropdownMenuContent, a0 as DropdownMenuGroup, a1 as DropdownMenuItem, a2 as DropdownMenuLabel, a3 as DropdownMenuPortal, a4 as DropdownMenuRadioGroup, a5 as DropdownMenuRadioItem, a6 as DropdownMenuSeparator, a7 as DropdownMenuShortcut, a8 as DropdownMenuSub, a9 as DropdownMenuSubContent, aa as DropdownMenuSubTrigger, ab as DropdownMenuTrigger, ac as ENTITY_MAPPINGS, ad as EntityIcon, af as EntityLabelForm, ag as EntityNoun, ah as EntityPill, ai as EntityRegistryOverride, ak as EntityType, am as FileTypeIcon, an as FolderTreeNode, ap as HoverCard, aq as HoverCardContent, ar as HoverCardTrigger, as as IconToggle, at as IconToggleProps, au as IdentityBusy, av as IdentityProblem, ax as IdentityState, aB as Input, aC as InputProps, aD as Label, aE as MarkMenu, aF as MarkMenuItem, aG as MarkMenuProps, aH as MarkdownCode, aI as MarkdownLink, aJ as MarkdownRenderer, aK as MarkdownRendererProps, aL as MarkdownStreamingContext, aM as NEUTRAL_GRAY, aN as PLACEHOLDER_COLOR, aO as PRESENTATIONS_FOLDER, aP as PRESENTATION_TEMPLATES_FOLDER, aQ as PassageCard, aR as PassageCardProps, aS as Popover, aT as PopoverAnchor, aU as PopoverClose, aV as PopoverContent, aW as PopoverTrigger, aX as PortalContainerProvider, aY as PresenceDisplayStatus, aZ as PresenceLabel, a_ as Progress, a$ as ProjectEntity, b0 as ProjectEntityProps, b1 as ProjectRelation, b2 as ProviderIcon, b3 as RadioGroup, b4 as RadioGroupItem, b5 as Rag, b6 as SHARING_LABELS, b7 as ScrollArea, b8 as ScrollBar, b9 as Select, ba as SelectContent, bb as SelectGroup, bc as SelectItem, bd as SelectLabel, be as SelectScrollDownButton, bf as SelectScrollUpButton, bg as SelectSeparator, bh as SelectTrigger, bi as SelectValue, bj as Separator, bk as SharingEntity, bl as SharingEntityProps, bm as ShieldIcon, bn as ShieldIconProps, bo as Slider, bp as StatusBadgeComponent, bq as StatusBadgeProps, br as StatusPill, bs as StatusPillProps, bt as StatusVariant, bu as Switch, bv as TAG_TYPE_ICONS, bw as TAG_TYPE_LABELS, bx as Table, by as TableBody, bz as TableCaption, bA as TableCell, bB as TableFooter, bC as TableHead, bD as TableHeader, bE as TableRow, bF as Tabs, bG as TabsContent, bH as TabsList, bI as TabsTrigger, bJ as TagEntity, bK as TagEntityProps, bL as TagLike, bM as Textarea, bN as TextareaProps, bO as ThreadVisibilityIcon, bP as Toggle, bQ as ToggleGroup, bR as ToggleGroupItem, bS as Tooltip, bT as TooltipContent, bU as TooltipProvider, bV as TooltipTrigger, bW as UserEntity, bX as UserEntityProps, bY as UserMenu, bZ as UserMenuItem, b_ as UserMenuProps, b$ as UserMenuStatus, c0 as VISIBILITY_ICONS, c1 as VerifiedBadge, c2 as VerifiedBadgeProps, c3 as VerifiedToggle, c4 as VisibilityIcon, c5 as VisibilityToggle, c6 as VisibilityToggleProps, c7 as agentAvatarColors, c8 as badgeVariants, c9 as buildFolderTree, ca as buttonVariants, cb as canonicalFolderPath, cc as cardVariants, cd as closeOpenEmphasis, ce as cn, cf as configureEntityRegistry, cg as configureEntityVocabulary, ch as configureRagLabels, ci as configureSharingMembers, cj as configureStatusRegistry, ck as createUserAvatarIcon, cl as entityNoun, cm as extensionFromMime, cn as formatCompactLastSeen, co as formatDocDate, cp as formatFolderLabel, cq as formatFriendlyDate, cr as formatRelativeTime, cs as friendlyFileType, ct as getDocIcon, cu as getDocumentAuthor, cv as getDocumentDate, cw as getDocumentNature, cx as getDocumentSubject, cy as getDocumentTitle, cz as getEntityColor, cA as getEntityColorStyles, cB as getEntityIcon, cC as getEntityLabel, cD as getFileExtension, cE as getFileTypeIcon, cF as getStatusVariant, cG as getTagTypeIcon, cH as getTagTypeLabel, cI as getUserAvatarColor, cJ as getUserDisplayName, cK as getUserInitials, cL as getWorkspaceColor, cM as isAgent, cN as isAudioFile, cO as isDocumentAddableToConversation, cP as isDownloadOnlyFile, cQ as isImageDocument, cR as isImageFile, cS as isMediaFile, cT as isPresentationFileName, cU as isVideoFile, cV as markdownBaseComponents, cW as markdownSanitizeSchema, cX as markdownToPlainText, cY as markdownToPlainTextBlocks, cZ as normalizeCitationMarkup, c_ as splitMarkdownBlocks, c$ as tagKindNouns, d0 as tagKindTitle, d1 as toggleVariants, d2 as trimOpenCitation, d3 as useDictateContext, d4 as usePortalContainer, d5 as usesOriginalBytesForViewer } from './index.d-Dy_Pz6Vl.js';
|
|
11
11
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
12
12
|
import { QueryClient, QueryKey, MutationKey, Mutation } from '@tanstack/react-query';
|
|
13
13
|
import { M as MeetingChatRef, a as ActiveCall, W as SegmenterConfig, G as IncomingCall, J as JoinChoices, N as MeetingChatTarget, v as ChatResponse, t as ChatMemberKey, b as AgentDmStatus, x as ChatThreadMessage } from './useAudioRecorder.d-DYVIWxKQ.js';
|
|
@@ -2286,6 +2286,10 @@ declare const AGGREGATE_FIELDS: {
|
|
|
2286
2286
|
/** A dataset (or a source's fields) as a hook reads it. */
|
|
2287
2287
|
interface DatasetState {
|
|
2288
2288
|
dataset: Dataset | undefined;
|
|
2289
|
+
/**
|
|
2290
|
+
* No dataset yet, and one is coming: a read in flight or still waiting to start (the workspace
|
|
2291
|
+
* opening, a saved view being read first). A panel says "Loading…" then, never "nothing to show".
|
|
2292
|
+
*/
|
|
2289
2293
|
isLoading: boolean;
|
|
2290
2294
|
error: unknown;
|
|
2291
2295
|
}
|
|
@@ -9383,6 +9387,7 @@ declare function fillTimeGaps(dataset: Dataset, bucket: TimeBucket): Dataset;
|
|
|
9383
9387
|
/** What a rows adapter's hook reads. */
|
|
9384
9388
|
interface RowsState {
|
|
9385
9389
|
rows: readonly DatasetRow[] | undefined;
|
|
9390
|
+
/** Rows are coming (the query is pending while enabled, even before it starts fetching). */
|
|
9386
9391
|
isLoading: boolean;
|
|
9387
9392
|
error: unknown;
|
|
9388
9393
|
}
|
package/dist/ui/card.js
CHANGED
|
@@ -6,8 +6,8 @@ const cardVariants = cva("min-w-0 rounded-lg bg-card text-card-foreground", {
|
|
|
6
6
|
variants: {
|
|
7
7
|
variant: {
|
|
8
8
|
flat: "",
|
|
9
|
-
outline: "border",
|
|
10
|
-
elevated: "border shadow-sm"
|
|
9
|
+
outline: "border border-border",
|
|
10
|
+
elevated: "border border-border shadow-sm"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
defaultVariants: {
|
package/dist/ui/card.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/ui/card.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '../lib/utils'\n\n/**\n * Clean-ARBI design contract rule 3: borderless by default; shadows\n * only when an element needs to read as elevated/floating.\n *\n * - `flat` (default): just a rounded surface, no border, no shadow.\n * Separation comes from background + spacing.\n * - `outline`: adds a single border for surfaces that need a visible\n * edge (e.g. selectable list cards, embedded panels).\n * - `elevated`: border + a subtle shadow for cards that should lift.\n *\n * `min-w-0` lets a card be a grid/flex item narrower than its content (a truncated row inside\n * must not widen the track and push the page into horizontal scroll).\n *\n * Self-styled consumers that pass their own border/shadow classes keep\n * working unchanged on the default `flat` base.\n */\nconst cardVariants = cva('min-w-0 rounded-lg bg-card text-card-foreground', {\n variants: {\n variant: {\n flat: '',\n outline: 'border',\n elevated: 'border shadow-sm',\n },\n },\n defaultVariants: {\n variant: 'flat',\n },\n})\n\nexport interface CardProps\n extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {}\n\nconst Card = React.forwardRef<HTMLDivElement, CardProps>(\n ({ className, variant, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"card\"\n className={cn(cardVariants({ variant }), className)}\n {...props}\n />\n )\n)\nCard.displayName = 'Card'\n\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"card-header\"\n className={cn('flex flex-col space-y-1.5 p-6', className)}\n {...props}\n />\n )\n)\nCardHeader.displayName = 'CardHeader'\n\nconst CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"card-title\"\n className={cn('font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n )\n)\nCardTitle.displayName = 'CardTitle'\n\nconst CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"card-description\"\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n )\n)\nCardDescription.displayName = 'CardDescription'\n\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} data-slot=\"card-content\" className={cn('p-6 pt-0', className)} {...props} />\n )\n)\nCardContent.displayName = 'CardContent'\n\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"card-footer\"\n className={cn('flex items-center p-6 pt-0', className)}\n {...props}\n />\n )\n)\nCardFooter.displayName = 'CardFooter'\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, cardVariants }\n"],
|
|
5
|
-
"mappings": "
|
|
4
|
+
"sourcesContent": ["import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\n\nimport { cn } from '../lib/utils'\n\n/**\n * Clean-ARBI design contract rule 3: borderless by default; shadows\n * only when an element needs to read as elevated/floating.\n *\n * - `flat` (default): just a rounded surface, no border, no shadow.\n * Separation comes from background + spacing.\n * - `outline`: adds a single border for surfaces that need a visible\n * edge (e.g. selectable list cards, embedded panels).\n * - `elevated`: border + a subtle shadow for cards that should lift.\n *\n * The border is the theme's `--border` hairline, named here rather than left to a global\n * `border-color` default: Tailwind v4's Preflight paints a bare `border` in `currentColor` (the\n * text colour, near-black), and a host's stylesheet need not restore the default.\n *\n * `min-w-0` lets a card be a grid/flex item narrower than its content (a truncated row inside\n * must not widen the track and push the page into horizontal scroll).\n *\n * Self-styled consumers that pass their own border/shadow classes keep\n * working unchanged on the default `flat` base.\n */\nconst cardVariants = cva('min-w-0 rounded-lg bg-card text-card-foreground', {\n variants: {\n variant: {\n flat: '',\n outline: 'border border-border',\n elevated: 'border border-border shadow-sm',\n },\n },\n defaultVariants: {\n variant: 'flat',\n },\n})\n\nexport interface CardProps\n extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardVariants> {}\n\nconst Card = React.forwardRef<HTMLDivElement, CardProps>(\n ({ className, variant, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"card\"\n className={cn(cardVariants({ variant }), className)}\n {...props}\n />\n )\n)\nCard.displayName = 'Card'\n\nconst CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"card-header\"\n className={cn('flex flex-col space-y-1.5 p-6', className)}\n {...props}\n />\n )\n)\nCardHeader.displayName = 'CardHeader'\n\nconst CardTitle = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"card-title\"\n className={cn('font-semibold leading-none tracking-tight', className)}\n {...props}\n />\n )\n)\nCardTitle.displayName = 'CardTitle'\n\nconst CardDescription = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"card-description\"\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n )\n)\nCardDescription.displayName = 'CardDescription'\n\nconst CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div ref={ref} data-slot=\"card-content\" className={cn('p-6 pt-0', className)} {...props} />\n )\n)\nCardContent.displayName = 'CardContent'\n\nconst CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot=\"card-footer\"\n className={cn('flex items-center p-6 pt-0', className)}\n {...props}\n />\n )\n)\nCardFooter.displayName = 'CardFooter'\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent, cardVariants }\n"],
|
|
5
|
+
"mappings": "AA2CI;AA3CJ,YAAY,WAAW;AACvB,SAAS,WAA8B;AAEvC,SAAS,UAAU;AAsBnB,MAAM,eAAe,IAAI,mDAAmD;AAAA,EAC1E,UAAU;AAAA,IACR,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,MACT,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EACX;AACF,CAAC;AAKD,MAAM,OAAO,MAAM;AAAA,EACjB,CAAC,EAAE,WAAW,SAAS,GAAG,MAAM,GAAG,QACjC;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,aAAU;AAAA,MACV,WAAW,GAAG,aAAa,EAAE,QAAQ,CAAC,GAAG,SAAS;AAAA,MACjD,GAAG;AAAA;AAAA,EACN;AAEJ;AACA,KAAK,cAAc;AAEnB,MAAM,aAAa,MAAM;AAAA,EACvB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QACxB;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,aAAU;AAAA,MACV,WAAW,GAAG,iCAAiC,SAAS;AAAA,MACvD,GAAG;AAAA;AAAA,EACN;AAEJ;AACA,WAAW,cAAc;AAEzB,MAAM,YAAY,MAAM;AAAA,EACtB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QACxB;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,aAAU;AAAA,MACV,WAAW,GAAG,6CAA6C,SAAS;AAAA,MACnE,GAAG;AAAA;AAAA,EACN;AAEJ;AACA,UAAU,cAAc;AAExB,MAAM,kBAAkB,MAAM;AAAA,EAC5B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QACxB;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,aAAU;AAAA,MACV,WAAW,GAAG,iCAAiC,SAAS;AAAA,MACvD,GAAG;AAAA;AAAA,EACN;AAEJ;AACA,gBAAgB,cAAc;AAE9B,MAAM,cAAc,MAAM;AAAA,EACxB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QACxB,oBAAC,SAAI,KAAU,aAAU,gBAAe,WAAW,GAAG,YAAY,SAAS,GAAI,GAAG,OAAO;AAE7F;AACA,YAAY,cAAc;AAE1B,MAAM,aAAa,MAAM;AAAA,EACvB,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QACxB;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,aAAU;AAAA,MACV,WAAW,GAAG,8BAA8B,SAAS;AAAA,MACpD,GAAG;AAAA;AAAA,EACN;AAEJ;AACA,WAAW,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|