@leitware/composables 1.3.3 → 1.4.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/README.md +37 -0
- package/dist/presets/brutalist.css +5 -1
- package/dist/presets/default.css +4 -0
- package/dist/presets/signal-pop.css +4 -0
- package/dist/styles.css +1 -1
- package/dist/tailwind.css +8 -0
- package/package.json +2 -1
- package/rules/composables.md +9 -7
- package/skills/use-composables/references/public-api.md +7 -2
- package/skills/use-composables/references/semantic-utilities.md +2 -0
- package/src/_internal/ai-elements/chain-of-thought.tsx +1 -1
- package/src/_internal/badge.tsx +2 -2
- package/src/_internal/button.tsx +1 -1
- package/src/_internal/calendar.tsx +1 -1
- package/src/_internal/checkbox.tsx +1 -1
- package/src/_internal/combobox.tsx +3 -3
- package/src/_internal/command.tsx +3 -3
- package/src/_internal/dropdown-menu.tsx +2 -2
- package/src/_internal/dropzone.tsx +3 -3
- package/src/_internal/field.tsx +2 -2
- package/src/_internal/grid-overlay.tsx +2 -2
- package/src/_internal/input-group.tsx +1 -1
- package/src/_internal/input.tsx +1 -1
- package/src/_internal/layout-bento.tsx +1 -1
- package/src/_internal/marker.tsx +1 -1
- package/src/_internal/radio-group.tsx +2 -2
- package/src/_internal/resizable.tsx +1 -1
- package/src/_internal/select.tsx +5 -2
- package/src/_internal/sidebar.tsx +2 -2
- package/src/_internal/switch.tsx +1 -1
- package/src/_internal/tabs.tsx +2 -2
- package/src/_internal/textarea.tsx +1 -1
- package/src/_internal/tooltip.tsx +1 -1
- package/src/index.ts +4 -0
- package/src/opinionated/blocks/content.tsx +247 -0
- package/src/opinionated/blocks/features.tsx +242 -0
- package/src/opinionated/blocks/heroes.tsx +711 -0
- package/src/opinionated/blocks/index.ts +4 -0
- package/src/opinionated/blocks/shared.tsx +185 -0
- package/src/opinionated/button.tsx +2 -0
- package/src/opinionated/collapsible.tsx +1 -1
- package/src/opinionated/form-calendar-popover.tsx +1 -1
- package/src/opinionated/form-checkbox.tsx +1 -1
- package/src/opinionated/form-combobox.tsx +1 -1
- package/src/opinionated/form-date-of-birth.tsx +1 -1
- package/src/opinionated/form-dropzone.tsx +1 -1
- package/src/opinionated/form-input-group.tsx +1 -1
- package/src/opinionated/form-input.tsx +1 -1
- package/src/opinionated/form-multi-combobox.tsx +1 -1
- package/src/opinionated/form-multi-dropzone.tsx +1 -1
- package/src/opinionated/form-radiogroup.tsx +1 -1
- package/src/opinionated/form-select.tsx +1 -1
- package/src/opinionated/form-slider.tsx +1 -1
- package/src/opinionated/form-switch.tsx +1 -1
- package/src/opinionated/form-textarea.tsx +1 -1
- package/src/opinionated/token-config-panel/color-editor.tsx +1 -1
- package/src/opinionated/token-config-panel/json-import-export.tsx +1 -1
- package/src/opinionated/window-frame.tsx +57 -0
- package/src/styles/presets/brutalist.css +5 -1
- package/src/styles/presets/default.css +4 -0
- package/src/styles/presets/signal-pop.css +4 -0
- package/src/styles/presets-data/brutalist.ts +5 -1
- package/src/styles/presets-data/default.ts +4 -0
- package/src/styles/presets-data/signal-pop.ts +4 -0
- package/src/styles/tokens/components.css +1 -0
- package/src/styles/tokens/registry.ts +15 -1
- package/src/styles/tokens/semantic-utilities.css +8 -0
- package/src/styles/tokens/semantic.css +5 -1
- package/src/styles/tokens/tailwind-color-adapter.css +3 -1
- package/src/styles/tokens/tailwind-public-utilities.css +8 -0
package/dist/tailwind.css
CHANGED
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
background-color: var(--bg-surface-accent);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
@utility bg-surface-field {
|
|
35
|
+
background-color: var(--bg-surface-field);
|
|
36
|
+
}
|
|
37
|
+
|
|
34
38
|
@utility bg-surface-info {
|
|
35
39
|
background-color: var(--bg-surface-info);
|
|
36
40
|
}
|
|
@@ -171,6 +175,10 @@
|
|
|
171
175
|
color: var(--text-on-fill-primary);
|
|
172
176
|
}
|
|
173
177
|
|
|
178
|
+
@utility text-on-fill-brand {
|
|
179
|
+
color: var(--text-on-fill-brand);
|
|
180
|
+
}
|
|
181
|
+
|
|
174
182
|
@utility text-on-fill-secondary {
|
|
175
183
|
color: var(--text-on-fill-secondary);
|
|
176
184
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leitware/composables",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"exports": {
|
|
19
19
|
".": "./src/index.ts",
|
|
20
20
|
"./ai": "./src/opinionated/ai/index.ts",
|
|
21
|
+
"./blocks": "./src/opinionated/blocks/index.ts",
|
|
21
22
|
"./styles.css": "./dist/styles.css",
|
|
22
23
|
"./tailwind.css": "./dist/tailwind.css",
|
|
23
24
|
"./presets/*": "./dist/presets/*"
|
package/rules/composables.md
CHANGED
|
@@ -28,13 +28,14 @@ Tailwind v4 consumers that need state or responsive variants of exact public sem
|
|
|
28
28
|
|
|
29
29
|
## Entrypoints
|
|
30
30
|
|
|
31
|
-
| Import | Source
|
|
32
|
-
| ------------------------------------ |
|
|
33
|
-
| `@leitware/composables` | `./src/index.ts`
|
|
34
|
-
| `@leitware/composables/ai` | `./src/opinionated/ai/index.ts`
|
|
35
|
-
| `@leitware/composables/
|
|
36
|
-
| `@leitware/composables/
|
|
37
|
-
| `@leitware/composables/
|
|
31
|
+
| Import | Source |
|
|
32
|
+
| ------------------------------------ | ----------------------------------- |
|
|
33
|
+
| `@leitware/composables` | `./src/index.ts` |
|
|
34
|
+
| `@leitware/composables/ai` | `./src/opinionated/ai/index.ts` |
|
|
35
|
+
| `@leitware/composables/blocks` | `./src/opinionated/blocks/index.ts` |
|
|
36
|
+
| `@leitware/composables/styles.css` | `./dist/styles.css` |
|
|
37
|
+
| `@leitware/composables/tailwind.css` | `./dist/tailwind.css` |
|
|
38
|
+
| `@leitware/composables/presets/*` | `./dist/presets/*` |
|
|
38
39
|
|
|
39
40
|
## Optional Dependencies
|
|
40
41
|
|
|
@@ -185,6 +186,7 @@ Use this catalog to choose public exports. The `Source module` column is for mai
|
|
|
185
186
|
| `input` | `./opinionated/input` | `@leitware/composables` | `Input` | - | Public export not listed in the README component catalog. |
|
|
186
187
|
| `label` | `./opinionated/label` | `@leitware/composables` | `Label` | - | Public export not listed in the README component catalog. |
|
|
187
188
|
| `textarea` | `./opinionated/textarea` | `@leitware/composables` | `Textarea` | - | Public export not listed in the README component catalog. |
|
|
189
|
+
| `window-frame` | `./opinionated/window-frame` | `@leitware/composables` | `WindowFrame` | `WindowFrameProps` | Public export not listed in the README component catalog. |
|
|
188
190
|
|
|
189
191
|
## AI Entrypoint Catalog
|
|
190
192
|
|
|
@@ -6,14 +6,19 @@ This is the exact installed-package entrypoint and export-name contract. Import
|
|
|
6
6
|
|
|
7
7
|
## `@leitware/composables`
|
|
8
8
|
|
|
9
|
-
- Values (
|
|
10
|
-
- Types (
|
|
9
|
+
- Values (352): `ACCEPT_PRESETS`, `Accordion`, `AccordionContent`, `AccordionItem`, `AccordionTrigger`, `Alert`, `AlertAction`, `AlertDescription`, `AlertDialog`, `AlertDialogAction`, `AlertDialogCancel`, `AlertDialogContent`, `AlertDialogDescription`, `AlertDialogFooter`, `AlertDialogHeader`, `AlertDialogMedia`, `AlertDialogOverlay`, `AlertDialogPortal`, `AlertDialogTitle`, `AlertDialogTrigger`, `AlertTitle`, `AspectRatio`, `Avatar`, `AvatarFallback`, `AvatarImage`, `avatarVariants`, `Badge`, `BentoCell`, `BentoGrid`, `BentoGrids01`, `BentoLeader`, `BentoQuad`, `BentoSplit`, `BentoTriple`, `Breadcrumb`, `BreadcrumbEllipsis`, `BreadcrumbItem`, `BreadcrumbLink`, `BreadcrumbList`, `BreadcrumbPage`, `BreadcrumbSeparator`, `Bubble`, `BubbleContent`, `BubbleGroup`, `BubbleReactions`, `bubbleReactionsVariants`, `bubbleVariants`, `Button`, `Calendar`, `CalendarDayButton`, `Card`, `CardAction`, `CardContent`, `CardDescription`, `CardFooter`, `CardHeader`, `CardTitle`, `Carousel`, `CarouselContent`, `CarouselItem`, `CarouselNext`, `CarouselPrevious`, `CellGrid`, `CellRow`, `Checkbox`, `cn`, `CodeBlock`, `Collapsible`, `CollapsibleContent`, `CollapsibleTrigger`, `Combobox`, `ComboboxChip`, `ComboboxChips`, `ComboboxChipsInput`, `ComboboxCollection`, `ComboboxContent`, `ComboboxEmpty`, `ComboboxGroup`, `ComboboxInput`, `ComboboxItem`, `ComboboxLabel`, `ComboboxList`, `ComboboxSeparator`, `ComboboxTrigger`, `ComboboxValue`, `Container`, `containerVariants`, `Content02`, `Content04`, `Content06`, `Content07`, `Content09`, `Content11`, `Cta01`, `DEFAULT_ACCEPT`, `DEFAULT_MAX_SIZE`, `Dialog`, `DialogClose`, `DialogContent`, `DialogDescription`, `DialogFooter`, `DialogHeader`, `DialogOverlay`, `DialogPortal`, `DialogTitle`, `DialogTrigger`, `DirectionProvider`, `DISABLED_OPACITY`, `Divider`, `dividerVariants`, `DropdownMenu`, `DropdownMenuCheckboxItem`, `DropdownMenuContent`, `DropdownMenuGroup`, `DropdownMenuItem`, `DropdownMenuLabel`, `DropdownMenuPortal`, `DropdownMenuRadioGroup`, `DropdownMenuRadioItem`, `DropdownMenuSeparator`, `DropdownMenuShortcut`, `DropdownMenuSub`, `DropdownMenuSubContent`, `DropdownMenuSubTrigger`, `DropdownMenuTrigger`, `Dropzone`, `DropZone`, `DropZoneArea`, `DropzoneContent`, `DropZoneContent`, `DropZoneFile`, `DropZoneFileList`, `DropzoneInput`, `DropZoneInput`, `DropzoneLabel`, `Empty`, `EmptyContent`, `EmptyDescription`, `EmptyHeader`, `EmptyMedia`, `EmptyTableState`, `EmptyTitle`, `Feature01`, `Feature02`, `Feature03`, `Field`, `FieldContent`, `FieldDescription`, `FieldError`, `FieldGroup`, `FieldLabel`, `FieldLegend`, `FieldSeparator`, `FieldSet`, `FieldTitle`, `FlexSpacer`, `FOCUS_RING`, `FOCUS_RING_DESTRUCTIVE`, `formatFileSize`, `formatNumericValue`, `FormCalendarPopover`, `FormCheckbox`, `FormCombobox`, `FormDateOfBirth`, `FormDropZone`, `FormInput`, `FormInputGroup`, `FormMultiCombobox`, `FormMultiDropZone`, `FormRadioGroup`, `FormSelect`, `FormSlider`, `FormSwitch`, `FormTextarea`, `getAcceptDescription`, `getRejectionMessage`, `Grid`, `GridOverlay`, `gridVariants`, `Hero01`, `Hero02`, `Hero03`, `Hero04`, `Hero05`, `Hero06`, `Hero07`, `Hero08`, `Hero09`, `Hero10`, `Hero11`, `Hero12`, `Hero13`, `Hero14`, `HoverCard`, `HoverCardContent`, `HoverCardTrigger`, `Icon`, `iconVariants`, `Input`, `InputGroup`, `InputGroupAddon`, `InputGroupButton`, `InputGroupInput`, `InputGroupTextarea`, `Item`, `ItemActions`, `ItemContent`, `ItemDescription`, `ItemFooter`, `ItemGroup`, `ItemHeader`, `ItemMedia`, `ItemSeparator`, `ItemTitle`, `Kbd`, `KbdGroup`, `Label`, `leftPad`, `List`, `ListArrowItem`, `ListBulletItem`, `Marker`, `MarkerContent`, `MarkerIcon`, `markerVariants`, `Message`, `MessageAvatar`, `MessageContent`, `MessageFooter`, `MessageGroup`, `MessageHeader`, `NativeSelect`, `NativeSelectOptGroup`, `NativeSelectOption`, `NewspaperCell`, `NewspaperGrid`, `newspaperGridVariants`, `Pagination`, `PaginationContent`, `PaginationEllipsis`, `PaginationItem`, `PaginationLink`, `PaginationNext`, `PaginationPrevious`, `parseNumericValue`, `Popover`, `PopoverContent`, `PopoverDescription`, `PopoverHeader`, `PopoverTitle`, `PopoverTrigger`, `Progress`, `ProgressIndicator`, `ProgressLabel`, `ProgressTrack`, `ProgressValue`, `RadioGroup`, `RadioGroupItem`, `ResizableHandle`, `ResizablePanel`, `ResizablePanelGroup`, `sanitizeNumericInput`, `ScrollArea`, `ScrollBar`, `Section`, `sectionVariants`, `Select`, `SelectContent`, `SelectGroup`, `SelectItem`, `SelectLabel`, `SelectScrollDownButton`, `SelectScrollUpButton`, `SelectSeparator`, `SelectTrigger`, `SelectValue`, `Separator`, `Sheet`, `SheetClose`, `SheetContent`, `SheetDescription`, `SheetFooter`, `SheetHeader`, `SheetTitle`, `SheetTrigger`, `Sidebar`, `SidebarContent`, `SidebarFooter`, `SidebarGroup`, `SidebarGroupAction`, `SidebarGroupContent`, `SidebarGroupLabel`, `SidebarHeader`, `SidebarInput`, `SidebarInset`, `SidebarMenu`, `SidebarMenuAction`, `SidebarMenuBadge`, `SidebarMenuButton`, `SidebarMenuItem`, `SidebarMenuSkeleton`, `SidebarMenuSub`, `SidebarMenuSubButton`, `SidebarMenuSubItem`, `SidebarProvider`, `SidebarRail`, `SidebarSeparator`, `SidebarTrigger`, `Skeleton`, `SkeletonAvatar`, `SkeletonButton`, `SkeletonCard`, `SkeletonInput`, `SkeletonTableRow`, `SkeletonText`, `Slider`, `Spacer`, `spacerVariants`, `Stack`, `stackVariants`, `StatCell`, `Switch`, `Table`, `TableBody`, `TableCaption`, `TableCell`, `TableFooter`, `TableHead`, `TableHeader`, `TableRow`, `Tabs`, `TabsContent`, `Testimonials01`, `Textarea`, `ThemeInjector`, `Toaster`, `Toggle`, `ToggleGroup`, `ToggleGroupItem`, `TokenConfigPanel`, `Tooltip`, `TooltipContent`, `TooltipTrigger`, `Typography`, `typographyVariants`, `useComboboxAnchor`, `useDirection`, `useDropZoneContext`, `useIsMobile`, `useNumericInput`, `useSidebar`, `WindowFrame`
|
|
10
|
+
- Types (123): `Accept`, `AccordionItemData`, `AccordionProps`, `AccordionVariant`, `AlertDialogProps`, `AlertProps`, `AlertType`, `AlertVariant`, `AvatarProps`, `BadgeProps`, `BentoGrids01Props`, `BlockAnimation`, `BlockBaseProps`, `BlockCTA`, `BlockMedia`, `BlockVariant`, `BreadcrumbItemData`, `BreadcrumbProps`, `BubbleProps`, `ButtonProps`, `CardProps`, `CarouselProps`, `CodeBlockProps`, `CollapsibleProps`, `ComboboxOption`, `ComboboxProps`, `ContainerProps`, `Content02Props`, `Content04Props`, `Content06Props`, `Content07Props`, `Content09Props`, `Content11Props`, `Cta01Props`, `DateOfBirthValue`, `DialogProps`, `DirectionProviderProps`, `DividerProps`, `DropdownMenuItemData`, `DropdownMenuProps`, `DropZoneFileProps`, `DropZoneProps`, `EmptyProps`, `EmptyTableStateProps`, `Feature01Props`, `Feature02Props`, `Feature03Props`, `FileRejection`, `FormCalendarPopoverProps`, `FormCheckboxProps`, `FormComboboxOption`, `FormComboboxProps`, `FormDateOfBirthProps`, `FormDropZoneProps`, `FormInputGroupInputProps`, `FormInputGroupProps`, `FormInputProps`, `FormMultiComboboxOption`, `FormMultiComboboxProps`, `FormMultiDropZoneProps`, `FormRadioGroupOption`, `FormRadioGroupProps`, `FormSelectOption`, `FormSelectProps`, `FormSliderProps`, `FormSwitchProps`, `FormTextareaProps`, `GridOverlayProps`, `GridProps`, `Hero01Props`, `Hero02Props`, `Hero03Props`, `Hero04Props`, `Hero05Props`, `Hero06Props`, `Hero07Props`, `Hero08Props`, `Hero09Props`, `Hero10Props`, `Hero11Props`, `Hero12Props`, `Hero13Props`, `Hero14Props`, `HoverCardProps`, `ItemProps`, `ItemVariants`, `KbdGroupProps`, `KbdProps`, `ListItemData`, `ListProps`, `ListVariant`, `MarkerProps`, `NativeSelectOptionData`, `NativeSelectProps`, `NewspaperCellProps`, `NewspaperGridProps`, `NumericInputOptions`, `NumericMode`, `PaginationProps`, `PopoverProps`, `ProgressProps`, `ScrollAreaProps`, `SectionProps`, `SelectOption`, `SelectProps`, `SheetProps`, `SkeletonProps`, `SpacerProps`, `StackProps`, `TabItem`, `TabsProps`, `TabsVariant`, `Testimonials01Props`, `TextDirection`, `ToggleGroupOption`, `ToggleGroupProps`, `ToggleProps`, `TooltipProps`, `TypographyProps`, `TypographyVariant`, `UseNumericInputOptions`, `UseNumericInputReturn`, `WindowFrameProps`
|
|
11
11
|
|
|
12
12
|
## `@leitware/composables/ai`
|
|
13
13
|
|
|
14
14
|
- Values (127): `AIAttachment`, `AIAttachmentEmpty`, `AIAttachmentHoverCard`, `AIAttachmentHoverCardContent`, `AIAttachmentHoverCardTrigger`, `AIAttachmentInfo`, `AIAttachmentPreview`, `AIAttachmentRemove`, `AIAttachments`, `AIChainOfThought`, `AIChainOfThoughtContent`, `AIChainOfThoughtHeader`, `AIChainOfThoughtImage`, `AIChainOfThoughtSearchResult`, `AIChainOfThoughtSearchResults`, `AIChainOfThoughtStep`, `AICodeBlock`, `AICodeBlockActions`, `AICodeBlockContainer`, `AICodeBlockContent`, `AICodeBlockCopyButton`, `AICodeBlockFilename`, `AICodeBlockHeader`, `AICodeBlockLanguageSelector`, `AICodeBlockLanguageSelectorContent`, `AICodeBlockLanguageSelectorItem`, `AICodeBlockLanguageSelectorTrigger`, `AICodeBlockLanguageSelectorValue`, `AICodeBlockTitle`, `AIConfirmation`, `AIConfirmationAccepted`, `AIConfirmationAction`, `AIConfirmationActions`, `AIConfirmationRejected`, `AIConfirmationRequest`, `AIConfirmationTitle`, `AIConversation`, `AIConversationContent`, `AIConversationDownload`, `AIConversationEmptyState`, `AIConversationScrollButton`, `AIInlineCitation`, `AIInlineCitationCard`, `AIInlineCitationCardBody`, `AIInlineCitationCardTrigger`, `AIInlineCitationCarousel`, `AIInlineCitationCarouselContent`, `AIInlineCitationCarouselHeader`, `AIInlineCitationCarouselIndex`, `AIInlineCitationCarouselItem`, `AIInlineCitationCarouselNext`, `AIInlineCitationCarouselPrev`, `AIInlineCitationQuote`, `AIInlineCitationSource`, `AIInlineCitationText`, `AIMessage`, `AIMessageAction`, `AIMessageActions`, `AIMessageBranch`, `AIMessageBranchContent`, `AIMessageBranchNext`, `AIMessageBranchPage`, `AIMessageBranchPrevious`, `AIMessageBranchSelector`, `AIMessageContent`, `AIMessageResponse`, `AIMessageToolbar`, `AIPlan`, `AIPlanAction`, `AIPlanContent`, `AIPlanDescription`, `AIPlanFooter`, `AIPlanHeader`, `AIPlanTitle`, `AIPlanTrigger`, `AIPromptInput`, `AIPromptInputActionAddAttachments`, `AIPromptInputActionAddScreenshot`, `AIPromptInputActionMenu`, `AIPromptInputActionMenuContent`, `AIPromptInputActionMenuItem`, `AIPromptInputActionMenuTrigger`, `AIPromptInputBody`, `AIPromptInputButton`, `AIPromptInputFooter`, `AIPromptInputHeader`, `AIPromptInputProvider`, `AIPromptInputSelect`, `AIPromptInputSelectContent`, `AIPromptInputSelectItem`, `AIPromptInputSelectTrigger`, `AIPromptInputSelectValue`, `AIPromptInputSubmit`, `AIPromptInputTextarea`, `AIPromptInputTools`, `AIReasoning`, `AIReasoningContent`, `AIReasoningTrigger`, `AIShimmer`, `AISource`, `AISources`, `AISourcesContent`, `AISourcesTrigger`, `AISuggestion`, `AISuggestions`, `AITask`, `AITaskContent`, `AITaskItem`, `AITaskItemFile`, `AITaskTrigger`, `AITool`, `AIToolContent`, `AIToolHeader`, `AIToolInput`, `AIToolOutput`, `getAttachmentLabel`, `getMediaCategory`, `getStatusBadge`, `highlightCode`, `messagesToMarkdown`, `useAttachmentContext`, `useAttachmentsContext`, `usePromptInputAttachments`, `usePromptInputController`, `usePromptInputReferencedSources`, `useProviderAttachments`, `useReasoning`
|
|
15
15
|
- Types (95): `AIAttachmentEmptyProps`, `AIAttachmentHoverCardContentProps`, `AIAttachmentHoverCardProps`, `AIAttachmentHoverCardTriggerProps`, `AIAttachmentInfoProps`, `AIAttachmentPreviewProps`, `AIAttachmentProps`, `AIAttachmentRemoveProps`, `AIAttachmentsProps`, `AIChainOfThoughtContentProps`, `AIChainOfThoughtHeaderProps`, `AIChainOfThoughtImageProps`, `AIChainOfThoughtProps`, `AIChainOfThoughtSearchResultProps`, `AIChainOfThoughtSearchResultsProps`, `AIChainOfThoughtStepProps`, `AICodeBlockCopyButtonProps`, `AICodeBlockLanguageSelectorContentProps`, `AICodeBlockLanguageSelectorItemProps`, `AICodeBlockLanguageSelectorProps`, `AICodeBlockLanguageSelectorTriggerProps`, `AICodeBlockLanguageSelectorValueProps`, `AIConfirmationAcceptedProps`, `AIConfirmationActionProps`, `AIConfirmationActionsProps`, `AIConfirmationProps`, `AIConfirmationRejectedProps`, `AIConfirmationRequestProps`, `AIConfirmationTitleProps`, `AIConversationContentProps`, `AIConversationDownloadProps`, `AIConversationEmptyStateProps`, `AIConversationProps`, `AIConversationScrollButtonProps`, `AIInlineCitationCardBodyProps`, `AIInlineCitationCardProps`, `AIInlineCitationCardTriggerProps`, `AIInlineCitationCarouselContentProps`, `AIInlineCitationCarouselHeaderProps`, `AIInlineCitationCarouselIndexProps`, `AIInlineCitationCarouselItemProps`, `AIInlineCitationCarouselNextProps`, `AIInlineCitationCarouselPrevProps`, `AIInlineCitationCarouselProps`, `AIInlineCitationProps`, `AIInlineCitationQuoteProps`, `AIInlineCitationSourceProps`, `AIInlineCitationTextProps`, `AIMessageActionProps`, `AIMessageActionsProps`, `AIMessageBranchContentProps`, `AIMessageBranchNextProps`, `AIMessageBranchPageProps`, `AIMessageBranchPreviousProps`, `AIMessageBranchProps`, `AIMessageBranchSelectorProps`, `AIMessageContentProps`, `AIMessageProps`, `AIMessageResponseProps`, `AIMessageToolbarProps`, `AIPlanActionProps`, `AIPlanContentProps`, `AIPlanDescriptionProps`, `AIPlanFooterProps`, `AIPlanHeaderProps`, `AIPlanProps`, `AIPlanTitleProps`, `AIPlanTriggerProps`, `AIPromptInputProps`, `AIPromptInputSubmitProps`, `AIReasoningContentProps`, `AIReasoningProps`, `AIReasoningTriggerProps`, `AIShimmerProps`, `AISourceProps`, `AISourcesContentProps`, `AISourcesProps`, `AISourcesTriggerProps`, `AISuggestionProps`, `AISuggestionsProps`, `AITaskContentProps`, `AITaskItemFileProps`, `AITaskItemProps`, `AITaskProps`, `AITaskTriggerProps`, `AIToolContentProps`, `AIToolHeaderProps`, `AIToolInputProps`, `AIToolOutputProps`, `AIToolProps`, `AttachmentData`, `AttachmentMediaCategory`, `AttachmentVariant`, `PromptInputMessage`, `ToolPart`
|
|
16
16
|
|
|
17
|
+
## `@leitware/composables/blocks`
|
|
18
|
+
|
|
19
|
+
- Values (26): `BentoGrids01`, `Content02`, `Content04`, `Content06`, `Content07`, `Content09`, `Content11`, `Cta01`, `Feature01`, `Feature02`, `Feature03`, `Hero01`, `Hero02`, `Hero03`, `Hero04`, `Hero05`, `Hero06`, `Hero07`, `Hero08`, `Hero09`, `Hero10`, `Hero11`, `Hero12`, `Hero13`, `Hero14`, `Testimonials01`
|
|
20
|
+
- Types (31): `BentoGrids01Props`, `BlockAnimation`, `BlockBaseProps`, `BlockCTA`, `BlockMedia`, `BlockVariant`, `Content02Props`, `Content04Props`, `Content06Props`, `Content07Props`, `Content09Props`, `Content11Props`, `Cta01Props`, `Feature01Props`, `Feature02Props`, `Feature03Props`, `Hero01Props`, `Hero02Props`, `Hero03Props`, `Hero04Props`, `Hero05Props`, `Hero06Props`, `Hero07Props`, `Hero08Props`, `Hero09Props`, `Hero10Props`, `Hero11Props`, `Hero12Props`, `Hero13Props`, `Hero14Props`, `Testimonials01Props`
|
|
21
|
+
|
|
17
22
|
## CSS entrypoints
|
|
18
23
|
|
|
19
24
|
| Import | Package target |
|
|
@@ -12,6 +12,7 @@ This is the exact allowlist of framework-independent semantic colour classes shi
|
|
|
12
12
|
| `bg-surface-default` | bg | `--bg-surface-default` | `background-color: var(--bg-surface-default)` |
|
|
13
13
|
| `bg-surface-popover` | bg | `--bg-surface-popover` | `background-color: var(--bg-surface-popover)` |
|
|
14
14
|
| `bg-surface-accent` | bg | `--bg-surface-accent` | `background-color: var(--bg-surface-accent)` |
|
|
15
|
+
| `bg-surface-field` | bg | `--bg-surface-field` | `background-color: var(--bg-surface-field)` |
|
|
15
16
|
| `bg-surface-info` | bg | `--bg-surface-info` | `background-color: var(--bg-surface-info)` |
|
|
16
17
|
| `bg-surface-success` | bg | `--bg-surface-success` | `background-color: var(--bg-surface-success)` |
|
|
17
18
|
| `bg-surface-warning` | bg | `--bg-surface-warning` | `background-color: var(--bg-surface-warning)` |
|
|
@@ -47,6 +48,7 @@ This is the exact allowlist of framework-independent semantic colour classes shi
|
|
|
47
48
|
| `text-disabled` | text | `--text-disabled` | `color: var(--text-disabled)` |
|
|
48
49
|
| `text-inverse` | text | `--text-inverse` | `color: var(--text-inverse)` |
|
|
49
50
|
| `text-on-fill-primary` | text | `--text-on-fill-primary` | `color: var(--text-on-fill-primary)` |
|
|
51
|
+
| `text-on-fill-brand` | text | `--text-on-fill-brand` | `color: var(--text-on-fill-brand)` |
|
|
50
52
|
| `text-on-fill-secondary` | text | `--text-on-fill-secondary` | `color: var(--text-on-fill-secondary)` |
|
|
51
53
|
| `text-on-surface-accent` | text | `--text-on-surface-accent` | `color: var(--text-on-surface-accent)` |
|
|
52
54
|
| `text-info` | text | `--text-info` | `color: var(--text-info)` |
|
|
@@ -117,7 +117,7 @@ export const ChainOfThoughtStep = memo(
|
|
|
117
117
|
>
|
|
118
118
|
<div className="relative mt-0.5">
|
|
119
119
|
<Icon className="size-4" />
|
|
120
|
-
<div className="absolute top-7 bottom-0 left-1/2 -
|
|
120
|
+
<div className="absolute top-7 bottom-0 left-1/2 w-(--border-width-base) -translate-x-1/2 bg-border" />
|
|
121
121
|
</div>
|
|
122
122
|
<div className="flex-1 space-y-2 overflow-hidden">
|
|
123
123
|
<div>{label}</div>
|
package/src/_internal/badge.tsx
CHANGED
|
@@ -14,8 +14,8 @@ const badgeVariants = cva(
|
|
|
14
14
|
variant: {
|
|
15
15
|
default: `bg-primary text-primary-foreground ${BADGE_LINK_HOVER}`,
|
|
16
16
|
secondary: `bg-secondary text-secondary-foreground ${BADGE_LINK_HOVER}`,
|
|
17
|
-
destructive: `bg-surface-critical ${BADGE_LINK_HOVER} ${FOCUS_RING_DESTRUCTIVE} text-
|
|
18
|
-
outline: `border-stroke text-foreground ${BADGE_LINK_HOVER} bg-field/20 dark:bg-field/30`,
|
|
17
|
+
destructive: `bg-surface-critical ${BADGE_LINK_HOVER} ${FOCUS_RING_DESTRUCTIVE} text-critical border-stroke-critical`,
|
|
18
|
+
outline: `border-stroke text-foreground ${BADGE_LINK_HOVER} bg-surface-field/20 dark:bg-surface-field/30`,
|
|
19
19
|
ghost: `${HOVER_RING} hover:text-muted-foreground`,
|
|
20
20
|
success: 'bg-surface-success text-success border-stroke-success',
|
|
21
21
|
warning: 'bg-surface-warning text-warning border-stroke-warning',
|
package/src/_internal/button.tsx
CHANGED
|
@@ -17,7 +17,7 @@ const buttonVariants = cva(
|
|
|
17
17
|
secondary:
|
|
18
18
|
'bg-secondary text-secondary-foreground aria-expanded:bg-secondary aria-expanded:text-secondary-foreground',
|
|
19
19
|
ghost: 'hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground',
|
|
20
|
-
destructive: `bg-surface-critical ${FOCUS_RING_DESTRUCTIVE} text-
|
|
20
|
+
destructive: `bg-surface-critical ${FOCUS_RING_DESTRUCTIVE} text-critical border-stroke-critical`,
|
|
21
21
|
success: 'bg-surface-success text-success border-stroke-success',
|
|
22
22
|
warning: 'bg-surface-warning text-warning border-stroke-warning',
|
|
23
23
|
info: 'bg-surface-info text-info border-stroke-info',
|
|
@@ -103,7 +103,7 @@ function Calendar({
|
|
|
103
103
|
'text-muted-foreground aria-selected:text-muted-foreground',
|
|
104
104
|
defaultClassNames.outside,
|
|
105
105
|
),
|
|
106
|
-
disabled: cn('text-muted-foreground opacity-
|
|
106
|
+
disabled: cn('text-muted-foreground opacity-disabled', defaultClassNames.disabled),
|
|
107
107
|
hidden: cn('invisible', defaultClassNames.hidden),
|
|
108
108
|
...classNames,
|
|
109
109
|
}}
|
|
@@ -9,7 +9,7 @@ function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
|
|
|
9
9
|
className={cn(
|
|
10
10
|
FOCUS_RING,
|
|
11
11
|
HOVER_RING,
|
|
12
|
-
'border-field dark:bg-field/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary flex size-4 items-center justify-center rounded-sm border transition-shadow group-has-disabled/field:opacity-disabled peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
12
|
+
'border-field dark:bg-surface-field/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary aria-invalid:aria-checked:border-primary flex size-4 items-center justify-center rounded-sm border transition-shadow group-has-disabled/field:opacity-disabled peer relative shrink-0 outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
13
13
|
className,
|
|
14
14
|
)}
|
|
15
15
|
{...props}
|
|
@@ -96,7 +96,7 @@ function ComboboxContent({
|
|
|
96
96
|
data-slot="combobox-content"
|
|
97
97
|
data-chips={!!anchor}
|
|
98
98
|
className={cn(
|
|
99
|
-
'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-field/20 dark:bg-popover max-h-72 min-w-32 overflow-hidden rounded-lg shadow-md ring-[length:var(--border-width)] duration-fast *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-7 *:data-[slot=input-group]:border-none *:data-[slot=input-group]:shadow-none group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) data-[chips=true]:min-w-(--anchor-width)',
|
|
99
|
+
'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 *:data-[slot=input-group]:bg-surface-field/20 dark:bg-popover max-h-72 min-w-32 overflow-hidden rounded-lg shadow-md ring-[length:var(--border-width)] duration-fast *:data-[slot=input-group]:m-1 *:data-[slot=input-group]:mb-0 *:data-[slot=input-group]:h-7 *:data-[slot=input-group]:border-none *:data-[slot=input-group]:shadow-none group/combobox-content relative max-h-(--available-height) w-(--anchor-width) max-w-(--available-width) min-w-[calc(var(--anchor-width)+--spacing(7))] origin-(--transform-origin) data-[chips=true]:min-w-(--anchor-width)',
|
|
100
100
|
className,
|
|
101
101
|
)}
|
|
102
102
|
{...props}
|
|
@@ -177,7 +177,7 @@ function ComboboxSeparator({ className, ...props }: ComboboxPrimitive.Separator.
|
|
|
177
177
|
return (
|
|
178
178
|
<ComboboxPrimitive.Separator
|
|
179
179
|
data-slot="combobox-separator"
|
|
180
|
-
className={cn('bg-stroke/50 -mx-1 my-1 h-
|
|
180
|
+
className={cn('bg-stroke/50 -mx-1 my-1 h-(--border-width-base)', className)}
|
|
181
181
|
{...props}
|
|
182
182
|
/>
|
|
183
183
|
)
|
|
@@ -193,7 +193,7 @@ function ComboboxChips({
|
|
|
193
193
|
className={cn(
|
|
194
194
|
GROUP_FOCUS_RING,
|
|
195
195
|
HOVER_RING,
|
|
196
|
-
'bg-field/20 dark:bg-field/30 border-field flex min-h-(--input-height) flex-wrap items-center gap-1 rounded-(--input-radius) border bg-clip-padding px-2 py-0.5 text-xs/relaxed has-data-[slot=combobox-chip]:px-1',
|
|
196
|
+
'bg-surface-field/20 dark:bg-surface-field/30 border-field flex min-h-(--input-height) flex-wrap items-center gap-1 rounded-(--input-radius) border bg-clip-padding px-2 py-0.5 text-xs/relaxed has-data-[slot=combobox-chip]:px-1',
|
|
197
197
|
className,
|
|
198
198
|
)}
|
|
199
199
|
{...props}
|
|
@@ -61,7 +61,7 @@ function CommandInput({
|
|
|
61
61
|
<CommandPrimitive.Input
|
|
62
62
|
data-slot="command-input"
|
|
63
63
|
className={cn(
|
|
64
|
-
'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-
|
|
64
|
+
'flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
65
65
|
className,
|
|
66
66
|
)}
|
|
67
67
|
{...props}
|
|
@@ -113,7 +113,7 @@ function CommandSeparator({
|
|
|
113
113
|
return (
|
|
114
114
|
<CommandPrimitive.Separator
|
|
115
115
|
data-slot="command-separator"
|
|
116
|
-
className={cn('-mx-1 h-
|
|
116
|
+
className={cn('-mx-1 h-(--border-width-base) bg-border', className)}
|
|
117
117
|
{...props}
|
|
118
118
|
/>
|
|
119
119
|
)
|
|
@@ -124,7 +124,7 @@ function CommandItem({ className, ...props }: React.ComponentProps<typeof Comman
|
|
|
124
124
|
<CommandPrimitive.Item
|
|
125
125
|
data-slot="command-item"
|
|
126
126
|
className={cn(
|
|
127
|
-
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-
|
|
127
|
+
"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-disabled data-[selected=true]:bg-muted data-[selected=true]:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
|
|
128
128
|
className,
|
|
129
129
|
)}
|
|
130
130
|
{...props}
|
|
@@ -85,7 +85,7 @@ function DropdownMenuItem({
|
|
|
85
85
|
data-inset={inset}
|
|
86
86
|
data-variant={variant}
|
|
87
87
|
className={cn(
|
|
88
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-
|
|
88
|
+
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-critical data-[variant=destructive]:focus:bg-surface-critical data-[variant=destructive]:focus:text-critical data-[variant=destructive]:*:[svg]:text-icon-critical not-data-[variant=destructive]:focus:**:text-accent-foreground min-h-7 gap-2 rounded-md px-2 py-1 text-xs/relaxed [&_svg:not([class*='size-'])]:size-3.5 group/dropdown-menu-item relative flex cursor-default items-center outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-disabled data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
89
89
|
FOCUS_RING,
|
|
90
90
|
className,
|
|
91
91
|
)}
|
|
@@ -209,7 +209,7 @@ function DropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.
|
|
|
209
209
|
return (
|
|
210
210
|
<MenuPrimitive.Separator
|
|
211
211
|
data-slot="dropdown-menu-separator"
|
|
212
|
-
className={cn('bg-stroke/50 -mx-1 my-1 h-
|
|
212
|
+
className={cn('bg-stroke/50 -mx-1 my-1 h-(--border-width-base)', className)}
|
|
213
213
|
{...props}
|
|
214
214
|
/>
|
|
215
215
|
)
|
|
@@ -344,7 +344,7 @@ function DropZoneArea({ children, className }: DropZoneAreaProps) {
|
|
|
344
344
|
className={cn(
|
|
345
345
|
'rounded-xl border p-8 transition-[opacity,box-shadow] focus-visible:outline-none',
|
|
346
346
|
FOCUS_RING,
|
|
347
|
-
disabled ? 'cursor-not-allowed opacity-
|
|
347
|
+
disabled ? 'cursor-not-allowed opacity-disabled' : 'cursor-pointer',
|
|
348
348
|
isDragActive && 'border-primary bg-accent',
|
|
349
349
|
isDragReject && 'border-stroke-critical bg-surface-critical',
|
|
350
350
|
hasError && 'border-stroke-critical',
|
|
@@ -388,13 +388,13 @@ function DropZoneContent({ title = 'Upload files', description, className }: Dro
|
|
|
388
388
|
className={cn(
|
|
389
389
|
'text-muted-foreground mb-3 flex size-10 items-center justify-center rounded-lg border transition-[opacity,box-shadow]',
|
|
390
390
|
isDragAccept && 'border-primary text-primary',
|
|
391
|
-
isDragReject && 'border-stroke-critical text-
|
|
391
|
+
isDragReject && 'border-stroke-critical text-icon-critical',
|
|
392
392
|
)}
|
|
393
393
|
>
|
|
394
394
|
<UploadIcon className="size-5" />
|
|
395
395
|
</div>
|
|
396
396
|
<span className="text-sm font-medium">{title}</span>
|
|
397
|
-
<span className={cn('text-muted-foreground text-xs', isDragReject && 'text-
|
|
397
|
+
<span className={cn('text-muted-foreground text-xs', isDragReject && 'text-critical')}>
|
|
398
398
|
{getDragMessage()}
|
|
399
399
|
</span>
|
|
400
400
|
<span className="text-muted-foreground mt-0.5 text-xs">
|
package/src/_internal/field.tsx
CHANGED
|
@@ -48,7 +48,7 @@ function FieldGroup({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
48
48
|
)
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
const fieldVariants = cva('data-[invalid=true]:text-
|
|
51
|
+
const fieldVariants = cva('data-[invalid=true]:text-critical gap-2 group/field flex w-full', {
|
|
52
52
|
variants: {
|
|
53
53
|
orientation: {
|
|
54
54
|
vertical: 'flex-col [&>*]:w-full [&>.sr-only]:w-auto',
|
|
@@ -199,7 +199,7 @@ function FieldError({
|
|
|
199
199
|
<div
|
|
200
200
|
role="alert"
|
|
201
201
|
data-slot="field-error"
|
|
202
|
-
className={cn('text-
|
|
202
|
+
className={cn('text-critical text-xs/relaxed font-normal break-all', className)}
|
|
203
203
|
{...props}
|
|
204
204
|
>
|
|
205
205
|
{content}
|
|
@@ -3,7 +3,7 @@ import * as React from 'react'
|
|
|
3
3
|
import { cn } from '../lib/utils'
|
|
4
4
|
|
|
5
5
|
interface GridOverlayProps extends React.ComponentProps<'div'> {
|
|
6
|
-
/** Grid line color. Defaults to
|
|
6
|
+
/** Grid line color. Defaults to the theme's grid overlay token. */
|
|
7
7
|
color?: string
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -23,7 +23,7 @@ interface GridOverlayProps extends React.ComponentProps<'div'> {
|
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
25
|
function GridOverlay({ color, className, style, ...props }: GridOverlayProps) {
|
|
26
|
-
const lineColor = color ?? 'var(--grid-overlay-color
|
|
26
|
+
const lineColor = color ?? 'var(--grid-overlay-color)'
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
29
|
<div
|
|
@@ -13,7 +13,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
13
13
|
className={cn(
|
|
14
14
|
GROUP_FOCUS_RING,
|
|
15
15
|
HOVER_RING,
|
|
16
|
-
'border-field bg-field/20 dark:bg-field/30 h-(--input-height) rounded-(--input-radius) border overflow-hidden bg-clip-padding has-data-[align=block-end]:rounded-(--input-radius) has-data-[align=block-start]:rounded-(--input-radius) has-[textarea]:rounded-(--input-radius) has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto',
|
|
16
|
+
'border-field bg-surface-field/20 dark:bg-surface-field/30 h-(--input-height) rounded-(--input-radius) border overflow-hidden bg-clip-padding has-data-[align=block-end]:rounded-(--input-radius) has-data-[align=block-start]:rounded-(--input-radius) has-[textarea]:rounded-(--input-radius) has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5 [[data-slot=combobox-content]_&]:focus-within:border-inherit [[data-slot=combobox-content]_&]:focus-within:ring-0 group/input-group relative flex w-full min-w-0 items-center outline-none has-[>textarea]:h-auto',
|
|
17
17
|
className,
|
|
18
18
|
)}
|
|
19
19
|
{...props}
|
package/src/_internal/input.tsx
CHANGED
|
@@ -11,7 +11,7 @@ function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
|
|
|
11
11
|
className={cn(
|
|
12
12
|
FOCUS_RING,
|
|
13
13
|
HOVER_RING,
|
|
14
|
-
'bg-field/20 dark:bg-field/30 border-field h-(--input-height) rounded-(--input-radius) border px-2 py-0.5 text-sm file:h-6 file:text-xs/relaxed file:font-medium md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
14
|
+
'bg-surface-field/20 dark:bg-surface-field/30 border-field h-(--input-height) rounded-(--input-radius) border px-2 py-0.5 text-sm file:h-6 file:text-xs/relaxed file:font-medium md:text-xs/relaxed file:text-foreground placeholder:text-muted-foreground w-full min-w-0 outline-none file:inline-flex file:border-0 file:bg-transparent disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
15
15
|
className,
|
|
16
16
|
)}
|
|
17
17
|
{...props}
|
|
@@ -334,7 +334,7 @@ function CellGrid({ cols, subtle = false, className, ...props }: CellGridProps)
|
|
|
334
334
|
CELL_GRID_COLS[cols],
|
|
335
335
|
'gap-[var(--bento-gap,var(--border-width,1px))]',
|
|
336
336
|
'min-w-0',
|
|
337
|
-
subtle ? 'bg-
|
|
337
|
+
subtle ? 'bg-stroke/50' : 'bg-stroke',
|
|
338
338
|
className,
|
|
339
339
|
)}
|
|
340
340
|
{...props}
|
package/src/_internal/marker.tsx
CHANGED
|
@@ -11,7 +11,7 @@ const markerVariants = cva(
|
|
|
11
11
|
variant: {
|
|
12
12
|
default: '',
|
|
13
13
|
separator:
|
|
14
|
-
'before:bg-stroke after:bg-stroke before:mr-1 before:h-
|
|
14
|
+
'before:bg-stroke after:bg-stroke before:mr-1 before:h-(--border-width-base) before:min-w-0 before:flex-1 after:ml-1 after:h-(--border-width-base) after:min-w-0 after:flex-1',
|
|
15
15
|
border: 'border-b border-stroke pb-2',
|
|
16
16
|
},
|
|
17
17
|
},
|
|
@@ -19,7 +19,7 @@ function RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props) {
|
|
|
19
19
|
className={cn(
|
|
20
20
|
FOCUS_RING,
|
|
21
21
|
HOVER_RING,
|
|
22
|
-
'border-field dark:bg-field/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary flex size-4 rounded-[var(--radius)] transition-shadow group/radio-group-item peer relative aspect-square shrink-0 border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
22
|
+
'border-field dark:bg-surface-field/30 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary data-checked:border-primary flex size-4 rounded-[var(--radius)] transition-shadow group/radio-group-item peer relative aspect-square shrink-0 border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
23
23
|
className,
|
|
24
24
|
)}
|
|
25
25
|
{...props}
|
|
@@ -28,7 +28,7 @@ function RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props) {
|
|
|
28
28
|
data-slot="radio-group-indicator"
|
|
29
29
|
className="flex size-4 items-center justify-center"
|
|
30
30
|
>
|
|
31
|
-
<div className="absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-[var(--radius)] bg-current group-aria-invalid/radio-group-item:bg-
|
|
31
|
+
<div className="absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-[var(--radius)] bg-current group-aria-invalid/radio-group-item:bg-fill-critical" />
|
|
32
32
|
</RadioPrimitive.Indicator>
|
|
33
33
|
</RadioPrimitive.Root>
|
|
34
34
|
)
|
|
@@ -31,7 +31,7 @@ function ResizableHandle({
|
|
|
31
31
|
<ResizablePrimitive.Separator
|
|
32
32
|
data-slot="resizable-handle"
|
|
33
33
|
className={cn(
|
|
34
|
-
'bg-stroke focus-visible:ring-[color:var(--focus-ring-color)]/30 relative flex w-
|
|
34
|
+
'bg-stroke focus-visible:ring-[color:var(--focus-ring-color)]/30 relative flex w-[max(1px,var(--border-width-base))] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-[length:var(--focus-ring-width)] focus-visible:ring-offset-1 focus-visible:outline-hidden data-[orientation=vertical]:h-[max(1px,var(--border-width-base))] data-[orientation=vertical]:w-full data-[orientation=vertical]:after:left-0 data-[orientation=vertical]:after:h-1 data-[orientation=vertical]:after:w-full data-[orientation=vertical]:after:translate-x-0 data-[orientation=vertical]:after:-translate-y-1/2 [&[data-orientation=vertical]>div]:rotate-90',
|
|
35
35
|
className,
|
|
36
36
|
)}
|
|
37
37
|
{...props}
|
package/src/_internal/select.tsx
CHANGED
|
@@ -40,7 +40,7 @@ function SelectTrigger({
|
|
|
40
40
|
className={cn(
|
|
41
41
|
FOCUS_RING,
|
|
42
42
|
HOVER_RING,
|
|
43
|
-
"border-field data-[placeholder]:text-muted-foreground bg-field/20 dark:bg-field/30 dark:hover:bg-field/50 gap-1.5 rounded-(--input-radius) border px-2 py-1.5 text-xs/relaxed data-[size=default]:h-(--input-height) data-[size=sm]:h-6 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-3.5 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-disabled *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
43
|
+
"border-field data-[placeholder]:text-muted-foreground bg-surface-field/20 dark:bg-surface-field/30 dark:hover:bg-surface-field/50 gap-1.5 rounded-(--input-radius) border px-2 py-1.5 text-xs/relaxed data-[size=default]:h-(--input-height) data-[size=sm]:h-6 *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-3.5 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-disabled *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
44
44
|
className,
|
|
45
45
|
)}
|
|
46
46
|
{...props}
|
|
@@ -132,7 +132,10 @@ function SelectSeparator({ className, ...props }: SelectPrimitive.Separator.Prop
|
|
|
132
132
|
return (
|
|
133
133
|
<SelectPrimitive.Separator
|
|
134
134
|
data-slot="select-separator"
|
|
135
|
-
className={cn(
|
|
135
|
+
className={cn(
|
|
136
|
+
'bg-stroke/50 -mx-1 my-1 h-(--border-width-base) pointer-events-none',
|
|
137
|
+
className,
|
|
138
|
+
)}
|
|
136
139
|
{...props}
|
|
137
140
|
/>
|
|
138
141
|
)
|
|
@@ -272,7 +272,7 @@ function SidebarRail({ className, ...props }: React.ComponentProps<'button'>) {
|
|
|
272
272
|
onClick={toggleSidebar}
|
|
273
273
|
title="Toggle Sidebar"
|
|
274
274
|
className={cn(
|
|
275
|
-
'hover:after:bg-sidebar-border absolute inset-y-0 z-sticky hidden w-4 -translate-x-1/2 transition-[opacity,box-shadow] ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-
|
|
275
|
+
'hover:after:bg-sidebar-border absolute inset-y-0 z-sticky hidden w-4 -translate-x-1/2 transition-[opacity,box-shadow] ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:left-1/2 after:w-(--border-width-base) sm:flex',
|
|
276
276
|
'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize',
|
|
277
277
|
'[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',
|
|
278
278
|
'hover:group-data-[collapsible=offExamples]:bg-sidebar group-data-[collapsible=offExamples]:translate-x-0 group-data-[collapsible=offExamples]:after:left-full',
|
|
@@ -455,7 +455,7 @@ const sidebarMenuButtonVariants = cva(
|
|
|
455
455
|
variant: {
|
|
456
456
|
default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
|
|
457
457
|
outline:
|
|
458
|
-
'bg-page hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[
|
|
458
|
+
'bg-page hover:bg-sidebar-accent hover:text-sidebar-accent-foreground shadow-[0_0_0_var(--border-width-base)_var(--sidebar-border)] hover:shadow-[0_0_0_var(--border-width-base)_var(--sidebar-accent)]',
|
|
459
459
|
},
|
|
460
460
|
size: {
|
|
461
461
|
default: 'h-8 text-xs',
|
package/src/_internal/switch.tsx
CHANGED
|
@@ -16,7 +16,7 @@ function Switch({
|
|
|
16
16
|
className={cn(
|
|
17
17
|
FOCUS_RING,
|
|
18
18
|
HOVER_RING,
|
|
19
|
-
'data-checked:bg-primary data-unchecked:bg-field dark:data-unchecked:bg-field/80 shrink-0 rounded-[var(--radius)] p-0.5 data-[size=default]:h-4 data-[size=default]:w-7 data-[size=sm]:h-3.5 data-[size=sm]:w-6 peer group/switch relative inline-flex items-center transition-[opacity,box-shadow] outline-none after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed data-disabled:opacity-disabled',
|
|
19
|
+
'data-checked:bg-primary data-unchecked:bg-surface-field dark:data-unchecked:bg-surface-field/80 shrink-0 rounded-[var(--radius)] p-0.5 data-[size=default]:h-4 data-[size=default]:w-7 data-[size=sm]:h-3.5 data-[size=sm]:w-6 peer group/switch relative inline-flex items-center transition-[opacity,box-shadow] outline-none after:absolute after:-inset-x-3 after:-inset-y-2 data-disabled:cursor-not-allowed data-disabled:opacity-disabled',
|
|
20
20
|
className,
|
|
21
21
|
)}
|
|
22
22
|
{...props}
|
package/src/_internal/tabs.tsx
CHANGED
|
@@ -50,9 +50,9 @@ function TabsTrigger({ className, ...props }: TabsPrimitive.Tab.Props) {
|
|
|
50
50
|
data-slot="tabs-trigger"
|
|
51
51
|
className={cn(
|
|
52
52
|
FOCUS_RING,
|
|
53
|
-
"gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium group-data-vertical/tabs:py-[calc(--spacing(1.25))] [&_svg:not([class*='size-'])]:size-3.5 focus-visible:outline-ring text-
|
|
53
|
+
"gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-xs font-medium group-data-vertical/tabs:py-[calc(--spacing(1.25))] [&_svg:not([class*='size-'])]:size-3.5 focus-visible:outline-ring text-muted hover:text-foreground relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center whitespace-nowrap transition-[opacity,box-shadow] group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-disabled [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
54
54
|
'group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent',
|
|
55
|
-
'data-active:bg-page dark:data-active:text-foreground dark:data-active:border-field dark:data-active:bg-field/30 data-active:text-foreground',
|
|
55
|
+
'data-active:bg-page dark:data-active:text-foreground dark:data-active:border-field dark:data-active:bg-surface-field/30 data-active:text-foreground',
|
|
56
56
|
'after:bg-foreground after:absolute after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100',
|
|
57
57
|
className,
|
|
58
58
|
)}
|
|
@@ -9,7 +9,7 @@ function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {
|
|
|
9
9
|
className={cn(
|
|
10
10
|
FOCUS_RING,
|
|
11
11
|
HOVER_RING,
|
|
12
|
-
'border-field bg-field/20 dark:bg-field/30 resize-none rounded-(--input-radius) border px-2 py-2 text-sm md:text-xs/relaxed placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
12
|
+
'border-field bg-surface-field/20 dark:bg-surface-field/30 resize-none rounded-(--input-radius) border px-2 py-2 text-sm md:text-xs/relaxed placeholder:text-muted-foreground flex field-sizing-content min-h-16 w-full outline-none disabled:cursor-not-allowed disabled:opacity-disabled',
|
|
13
13
|
className,
|
|
14
14
|
)}
|
|
15
15
|
{...props}
|
|
@@ -40,7 +40,7 @@ function TooltipContent({
|
|
|
40
40
|
<TooltipPrimitive.Popup
|
|
41
41
|
data-slot="tooltip-content"
|
|
42
42
|
className={cn(
|
|
43
|
-
'data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-md bg-
|
|
43
|
+
'data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-md px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-md bg-surface-inverse text-inverse z-tooltip w-fit max-w-xs origin-(--transform-origin)',
|
|
44
44
|
className,
|
|
45
45
|
)}
|
|
46
46
|
{...props}
|
package/src/index.ts
CHANGED
|
@@ -23,6 +23,10 @@ export {
|
|
|
23
23
|
// ── Opinionated components ──────────────────────────────────────────────────
|
|
24
24
|
// These are the recommended, higher-level wrappers that most users should use.
|
|
25
25
|
|
|
26
|
+
// ── Page blocks ─────────────────────────────────────────────────────────────
|
|
27
|
+
export * from './opinionated/blocks'
|
|
28
|
+
export { WindowFrame, type WindowFrameProps } from './opinionated/window-frame'
|
|
29
|
+
|
|
26
30
|
export {
|
|
27
31
|
Accordion,
|
|
28
32
|
AccordionContent,
|