@reinvented/design 1.1.0 → 1.2.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/package.json +1 -1
- package/src/components/blocks/auth/auth-card/AuthCard.tsx +2 -2
- package/src/components/blocks/auth/social-login/SocialLoginGroup.tsx +2 -2
- package/src/components/blocks/auth/two-factor/TwoFactorForm.tsx +4 -4
- package/src/components/blocks/communication/activity-item/ActivityItem.tsx +1 -1
- package/src/components/blocks/communication/activity-item/ActivityItemAvatar.tsx +2 -2
- package/src/components/blocks/communication/activity-item/ActivityItemContent.tsx +1 -1
- package/src/components/blocks/communication/chat-bubble/ChatBubble.tsx +1 -1
- package/src/components/blocks/communication/chat-bubble/ChatBubbleAvatar.tsx +2 -2
- package/src/components/blocks/communication/chat-bubble/ChatBubbleMessage.tsx +1 -1
- package/src/components/blocks/communication/chat-bubble/ChatBubbleTimestamp.tsx +1 -1
- package/src/components/blocks/content/article-header/ArticleHeader.tsx +3 -3
- package/src/components/blocks/content/author-card/AuthorCard.tsx +4 -4
- package/src/components/blocks/content/rich-text/RichTextContent.tsx +1 -1
- package/src/components/blocks/data-management/kanban/KanbanBoard.tsx +1 -1
- package/src/components/blocks/data-management/kanban/KanbanCard.tsx +4 -4
- package/src/components/blocks/data-management/kanban/KanbanColumn.tsx +3 -3
- package/src/components/blocks/data-management/tree-view/TreeItem.tsx +2 -2
- package/src/components/blocks/data-management/tree-view/TreeView.tsx +1 -1
- package/src/components/blocks/data-viz/financial-ticker/FinancialTicker.tsx +1 -1
- package/src/components/blocks/data-viz/kpi-card/KpiCard.tsx +2 -2
- package/src/components/blocks/data-viz/stat-grid/StatGrid.tsx +1 -1
- package/src/components/blocks/ecommerce/pricing-tier/PricingFeatureList.tsx +2 -2
- package/src/components/blocks/ecommerce/pricing-tier/PricingHeader.tsx +2 -2
- package/src/components/blocks/ecommerce/pricing-tier/PricingTier.tsx +2 -2
- package/src/components/blocks/ecommerce/product-card/ProductCard.tsx +2 -2
- package/src/components/blocks/ecommerce/product-card/ProductCardContent.tsx +2 -2
- package/src/components/blocks/ecommerce/product-card/ProductCardImage.tsx +1 -1
- package/src/components/blocks/ecommerce/product-card/ProductCardPrice.tsx +1 -1
- package/src/components/blocks/ecommerce/rating-summary/RatingStars.tsx +1 -1
- package/src/components/blocks/feedback/empty-state/EmptyState.tsx +2 -2
- package/src/components/blocks/feedback/error-state/ErrorState.tsx +2 -2
- package/src/components/blocks/feedback/not-found/NotFoundState.tsx +2 -2
- package/src/components/blocks/filtering/faceted-sidebar/FacetedGroup.tsx +2 -2
- package/src/components/blocks/filtering/faceted-sidebar/FacetedSidebar.tsx +2 -2
- package/src/components/blocks/filtering/filter-bar/FilterBar.tsx +4 -4
- package/src/components/blocks/filtering/search-result/SearchResultItem.tsx +2 -2
- package/src/components/blocks/marketing/cta-block/CtaBlock.tsx +2 -2
- package/src/components/blocks/marketing/feature-grid/FeatureGrid.tsx +1 -1
- package/src/components/blocks/marketing/hero-section/HeroSection.tsx +3 -3
- package/src/components/blocks/marketing/testimonial-card/TestimonialCard.tsx +3 -3
- package/src/components/blocks/media/call-controls/CallControlButton.tsx +3 -3
- package/src/components/blocks/media/call-controls/CallControls.tsx +1 -1
- package/src/components/blocks/media/media-player/MediaPlayer.tsx +1 -1
- package/src/components/blocks/media/media-player/MediaPlayerControls.tsx +1 -1
- package/src/components/blocks/media/media-player/MediaPlayerScrubber.tsx +1 -1
- package/src/components/blocks/media/media-player/MediaPlayerVideo.tsx +1 -1
- package/src/components/blocks/navigation/app-sidebar/AppSidebar.tsx +2 -2
- package/src/components/blocks/navigation/app-sidebar/NavItem.tsx +1 -1
- package/src/components/blocks/navigation/context-switcher/ContextSwitcher.tsx +3 -3
- package/src/components/blocks/navigation/top-navbar/TopNavbar.tsx +2 -2
- package/src/components/blocks/onboarding/onboarding-welcome/OnboardingWelcome.tsx +3 -3
- package/src/components/blocks/onboarding/step-wizard/StepWizard.tsx +1 -1
- package/src/components/blocks/profiles/connection-list/ConnectionItem.tsx +3 -3
- package/src/components/blocks/profiles/connection-list/ConnectionList.tsx +1 -1
- package/src/components/blocks/profiles/profile-header/ProfileHeader.tsx +3 -3
- package/src/components/blocks/profiles/profile-stats/ProfileStats.tsx +1 -1
- package/src/components/blocks/scheduling/booking-slot/BookingSlot.tsx +1 -1
- package/src/components/blocks/scheduling/event-card/EventCard.tsx +3 -3
- package/src/components/blocks/scheduling/timeline-row/TimelineRow.tsx +2 -2
- package/src/components/blocks/settings/billing-usage/BillingUsage.tsx +3 -3
- package/src/components/blocks/settings/integration-card/IntegrationCard.tsx +5 -5
- package/src/components/blocks/settings/settings-section/SettingsSection.tsx +1 -1
- package/src/components/ui/accordion.tsx +1 -1
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/alert.tsx +1 -1
- package/src/components/ui/avatar.tsx +1 -1
- package/src/components/ui/badge.tsx +7 -1
- package/src/components/ui/breadcrumb.tsx +1 -1
- package/src/components/ui/button.tsx +8 -1
- package/src/components/ui/calendar.tsx +2 -2
- package/src/components/ui/card.tsx +1 -1
- package/src/components/ui/carousel.tsx +2 -2
- package/src/components/ui/chart.tsx +1 -1
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/command.tsx +2 -2
- package/src/components/ui/component-placeholder.tsx +1 -1
- package/src/components/ui/context-menu.tsx +1 -1
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/drawer.tsx +1 -1
- package/src/components/ui/dropdown-menu.tsx +1 -1
- package/src/components/ui/form.tsx +2 -2
- package/src/components/ui/hover-card.tsx +1 -1
- package/src/components/ui/input-otp.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/label.tsx +1 -1
- package/src/components/ui/menubar.tsx +1 -1
- package/src/components/ui/navigation-menu.tsx +1 -1
- package/src/components/ui/pagination.tsx +2 -2
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/progress.tsx +1 -1
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/resizable.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +1 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/separator.tsx +1 -1
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/skeleton.tsx +1 -1
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/sonner.tsx +13 -6
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/table.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toast.tsx +1 -1
- package/src/components/ui/toaster.tsx +1 -1
- package/src/components/ui/toggle-group.tsx +2 -2
- package/src/components/ui/toggle.tsx +1 -1
- package/src/components/ui/tooltip.tsx +1 -1
- package/src/hooks/use-toast.ts +1 -1
- package/src/styles/tokens.css +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Progress } from '
|
|
3
|
-
import { Card, CardContent } from '
|
|
4
|
-
import { cn } from '
|
|
2
|
+
import { Progress } from '../../../../components/ui/progress'
|
|
3
|
+
import { Card, CardContent } from '../../../../components/ui/card'
|
|
4
|
+
import { cn } from '../../../../lib/utils'
|
|
5
5
|
|
|
6
6
|
interface BillingUsageProps {
|
|
7
7
|
title: string
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import { cn } from '
|
|
3
|
-
import { Card, CardContent, CardFooter } from '
|
|
4
|
-
import { Switch } from '
|
|
5
|
-
import { Badge } from '
|
|
6
|
-
import { Button } from '
|
|
2
|
+
import { cn } from '../../../../lib/utils'
|
|
3
|
+
import { Card, CardContent, CardFooter } from '../../../../components/ui/card'
|
|
4
|
+
import { Switch } from '../../../../components/ui/switch'
|
|
5
|
+
import { Badge } from '../../../../components/ui/badge'
|
|
6
|
+
import { Button } from '../../../../components/ui/button'
|
|
7
7
|
|
|
8
8
|
interface IntegrationCardProps {
|
|
9
9
|
name: string
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import * as React from "react"
|
|
4
4
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog"
|
|
5
5
|
|
|
6
|
-
import { cn } from
|
|
7
|
-
import { buttonVariants } from
|
|
6
|
+
import { cn } from '../../lib/utils'
|
|
7
|
+
import { buttonVariants } from './button"
|
|
8
8
|
|
|
9
9
|
const AlertDialog = AlertDialogPrimitive.Root
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
3
3
|
|
|
4
|
-
import { cn } from
|
|
4
|
+
import { cn } from '../../lib/utils'
|
|
5
5
|
|
|
6
6
|
const alertVariants = cva(
|
|
7
7
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../../lib/utils"
|
|
5
5
|
|
|
6
6
|
const badgeVariants = cva(
|
|
7
7
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
@@ -15,6 +15,12 @@ const badgeVariants = cva(
|
|
|
15
15
|
destructive:
|
|
16
16
|
"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
17
17
|
outline: "text-foreground",
|
|
18
|
+
success:
|
|
19
|
+
"border-transparent bg-[hsl(var(--success))] text-[hsl(var(--success-foreground))] hover:bg-[hsl(var(--success)/0.8)]",
|
|
20
|
+
warning:
|
|
21
|
+
"border-transparent bg-[hsl(var(--warning))] text-[hsl(var(--warning-foreground))] hover:bg-[hsl(var(--warning)/0.8)]",
|
|
22
|
+
info:
|
|
23
|
+
"border-transparent bg-[hsl(var(--info))] text-[hsl(var(--info-foreground))] hover:bg-[hsl(var(--info)/0.8)]",
|
|
18
24
|
},
|
|
19
25
|
},
|
|
20
26
|
defaultVariants: {
|
|
@@ -2,7 +2,7 @@ import * as React from "react"
|
|
|
2
2
|
import { Slot } from "@radix-ui/react-slot"
|
|
3
3
|
import { ChevronRight, MoreHorizontal } from "lucide-react"
|
|
4
4
|
|
|
5
|
-
import { cn } from
|
|
5
|
+
import { cn } from '../../lib/utils'
|
|
6
6
|
|
|
7
7
|
const Breadcrumb = React.forwardRef<
|
|
8
8
|
HTMLElement,
|
|
@@ -2,7 +2,7 @@ import * as React from "react"
|
|
|
2
2
|
import { Slot } from "@radix-ui/react-slot"
|
|
3
3
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
4
4
|
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../../lib/utils"
|
|
6
6
|
|
|
7
7
|
const buttonVariants = cva(
|
|
8
8
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
@@ -18,12 +18,19 @@ const buttonVariants = cva(
|
|
|
18
18
|
"bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
19
19
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
20
20
|
link: "text-primary underline-offset-4 hover:underline",
|
|
21
|
+
success:
|
|
22
|
+
"bg-[hsl(var(--success))] text-[hsl(var(--success-foreground))] hover:bg-[hsl(var(--success)/0.9)]",
|
|
23
|
+
warning:
|
|
24
|
+
"bg-[hsl(var(--warning))] text-[hsl(var(--warning-foreground))] hover:bg-[hsl(var(--warning)/0.9)]",
|
|
21
25
|
},
|
|
22
26
|
size: {
|
|
23
27
|
default: "h-10 px-4 py-2",
|
|
28
|
+
xs: "h-7 rounded px-2 text-xs",
|
|
24
29
|
sm: "h-9 rounded-md px-3",
|
|
25
30
|
lg: "h-11 rounded-md px-8",
|
|
26
31
|
icon: "h-10 w-10",
|
|
32
|
+
"icon-sm": "h-8 w-8",
|
|
33
|
+
"icon-xs": "h-6 w-6",
|
|
27
34
|
},
|
|
28
35
|
},
|
|
29
36
|
defaultVariants: {
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "lucide-react"
|
|
7
7
|
import { DayButton, DayPicker, getDefaultClassNames } from "react-day-picker"
|
|
8
8
|
|
|
9
|
-
import { cn } from
|
|
10
|
-
import { Button, buttonVariants } from
|
|
9
|
+
import { cn } from '../../lib/utils'
|
|
10
|
+
import { Button, buttonVariants } from './button"
|
|
11
11
|
|
|
12
12
|
function Calendar({
|
|
13
13
|
className,
|
|
@@ -6,8 +6,8 @@ import useEmblaCarousel, {
|
|
|
6
6
|
} from "embla-carousel-react"
|
|
7
7
|
import { ArrowLeft, ArrowRight } from "lucide-react"
|
|
8
8
|
|
|
9
|
-
import { cn } from
|
|
10
|
-
import { Button } from
|
|
9
|
+
import { cn } from '../../lib/utils'
|
|
10
|
+
import { Button } from './button"
|
|
11
11
|
|
|
12
12
|
type CarouselApi = UseEmblaCarouselType[1]
|
|
13
13
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>
|
|
@@ -2,7 +2,7 @@ import * as React from "react"
|
|
|
2
2
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox"
|
|
3
3
|
import { Check } from "lucide-react"
|
|
4
4
|
|
|
5
|
-
import { cn } from
|
|
5
|
+
import { cn } from '../../lib/utils'
|
|
6
6
|
|
|
7
7
|
const Checkbox = React.forwardRef<
|
|
8
8
|
React.ElementRef<typeof CheckboxPrimitive.Root>,
|
|
@@ -5,8 +5,8 @@ import { type DialogProps } from "@radix-ui/react-dialog"
|
|
|
5
5
|
import { Command as CommandPrimitive } from "cmdk"
|
|
6
6
|
import { Search } from "lucide-react"
|
|
7
7
|
|
|
8
|
-
import { cn } from
|
|
9
|
-
import { Dialog, DialogContent } from
|
|
8
|
+
import { cn } from '../../lib/utils'
|
|
9
|
+
import { Dialog, DialogContent } from './dialog"
|
|
10
10
|
|
|
11
11
|
const Command = React.forwardRef<
|
|
12
12
|
React.ElementRef<typeof CommandPrimitive>,
|
|
@@ -2,7 +2,7 @@ import * as React from "react"
|
|
|
2
2
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu"
|
|
3
3
|
import { Check, ChevronRight, Circle } from "lucide-react"
|
|
4
4
|
|
|
5
|
-
import { cn } from
|
|
5
|
+
import { cn } from '../../lib/utils'
|
|
6
6
|
|
|
7
7
|
const ContextMenu = ContextMenuPrimitive.Root
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@ import * as React from "react"
|
|
|
4
4
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
|
|
5
5
|
import { Check, ChevronRight, Circle } from "lucide-react"
|
|
6
6
|
|
|
7
|
-
import { cn } from
|
|
7
|
+
import { cn } from '../../lib/utils'
|
|
8
8
|
|
|
9
9
|
const DropdownMenu = DropdownMenuPrimitive.Root
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@ import * as React from "react"
|
|
|
2
2
|
import { OTPInput, OTPInputContext } from "input-otp"
|
|
3
3
|
import { Dot } from "lucide-react"
|
|
4
4
|
|
|
5
|
-
import { cn } from
|
|
5
|
+
import { cn } from '../../lib/utils'
|
|
6
6
|
|
|
7
7
|
const InputOTP = React.forwardRef<
|
|
8
8
|
React.ElementRef<typeof OTPInput>,
|
|
@@ -2,7 +2,7 @@ import * as React from "react"
|
|
|
2
2
|
import * as LabelPrimitive from "@radix-ui/react-label"
|
|
3
3
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
4
4
|
|
|
5
|
-
import { cn } from
|
|
5
|
+
import { cn } from '../../lib/utils'
|
|
6
6
|
|
|
7
7
|
const labelVariants = cva(
|
|
8
8
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
@@ -4,7 +4,7 @@ import * as React from "react"
|
|
|
4
4
|
import * as MenubarPrimitive from "@radix-ui/react-menubar"
|
|
5
5
|
import { Check, ChevronRight, Circle } from "lucide-react"
|
|
6
6
|
|
|
7
|
-
import { cn } from
|
|
7
|
+
import { cn } from '../../lib/utils'
|
|
8
8
|
|
|
9
9
|
function MenubarMenu({
|
|
10
10
|
...props
|
|
@@ -3,7 +3,7 @@ import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"
|
|
|
3
3
|
import { cva } from "class-variance-authority"
|
|
4
4
|
import { ChevronDown } from "lucide-react"
|
|
5
5
|
|
|
6
|
-
import { cn } from
|
|
6
|
+
import { cn } from '../../lib/utils'
|
|
7
7
|
|
|
8
8
|
const NavigationMenu = React.forwardRef<
|
|
9
9
|
React.ElementRef<typeof NavigationMenuPrimitive.Root>,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"
|
|
3
3
|
|
|
4
|
-
import { cn } from
|
|
5
|
-
import { ButtonProps, buttonVariants } from
|
|
4
|
+
import { cn } from '../../lib/utils'
|
|
5
|
+
import { ButtonProps, buttonVariants } from './button"
|
|
6
6
|
|
|
7
7
|
const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
|
|
8
8
|
<nav
|
|
@@ -2,7 +2,7 @@ import * as React from "react"
|
|
|
2
2
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"
|
|
3
3
|
import { Circle } from "lucide-react"
|
|
4
4
|
|
|
5
|
-
import { cn } from
|
|
5
|
+
import { cn } from '../../lib/utils'
|
|
6
6
|
|
|
7
7
|
const RadioGroup = React.forwardRef<
|
|
8
8
|
React.ElementRef<typeof RadioGroupPrimitive.Root>,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
|
|
3
3
|
|
|
4
|
-
import { cn } from
|
|
4
|
+
import { cn } from '../../lib/utils'
|
|
5
5
|
|
|
6
6
|
const ScrollArea = React.forwardRef<
|
|
7
7
|
React.ElementRef<typeof ScrollAreaPrimitive.Root>,
|
|
@@ -4,7 +4,7 @@ import * as React from "react"
|
|
|
4
4
|
import * as SelectPrimitive from "@radix-ui/react-select"
|
|
5
5
|
import { Check, ChevronDown, ChevronUp } from "lucide-react"
|
|
6
6
|
|
|
7
|
-
import { cn } from
|
|
7
|
+
import { cn } from '../../lib/utils'
|
|
8
8
|
|
|
9
9
|
const Select = SelectPrimitive.Root
|
|
10
10
|
|
|
@@ -5,7 +5,7 @@ import * as SheetPrimitive from "@radix-ui/react-dialog"
|
|
|
5
5
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
6
6
|
import { X } from "lucide-react"
|
|
7
7
|
|
|
8
|
-
import { cn } from
|
|
8
|
+
import { cn } from '../../lib/utils'
|
|
9
9
|
|
|
10
10
|
const Sheet = SheetPrimitive.Root
|
|
11
11
|
|
|
@@ -7,14 +7,20 @@ import {
|
|
|
7
7
|
OctagonX,
|
|
8
8
|
TriangleAlert,
|
|
9
9
|
} from "lucide-react"
|
|
10
|
-
import {
|
|
11
|
-
import { Toaster as Sonner } from "sonner"
|
|
10
|
+
import { Toaster as Sonner, toast } from "sonner"
|
|
12
11
|
|
|
13
12
|
type ToasterProps = React.ComponentProps<typeof Sonner>
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Drop-in Toaster that works in both Next.js and Vite/React SPA contexts.
|
|
16
|
+
* It defaults to 'dark' but respects an explicit `theme` prop.
|
|
17
|
+
*
|
|
18
|
+
* Usage:
|
|
19
|
+
* <Toaster /> // always dark
|
|
20
|
+
* <Toaster theme="light" /> // always light
|
|
21
|
+
* <Toaster theme="system" /> // follows OS
|
|
22
|
+
*/
|
|
23
|
+
const Toaster = ({ theme = "dark", ...props }: ToasterProps) => {
|
|
18
24
|
return (
|
|
19
25
|
<Sonner
|
|
20
26
|
theme={theme as ToasterProps["theme"]}
|
|
@@ -42,4 +48,5 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
42
48
|
)
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
export
|
|
51
|
+
// Re-export `toast` helper so consumers can import from @reinvented/design directly
|
|
52
|
+
export { Toaster, toast }
|
|
@@ -3,7 +3,7 @@ import * as ToastPrimitives from "@radix-ui/react-toast"
|
|
|
3
3
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
4
4
|
import { X } from "lucide-react"
|
|
5
5
|
|
|
6
|
-
import { cn } from
|
|
6
|
+
import { cn } from '../../lib/utils'
|
|
7
7
|
|
|
8
8
|
const ToastProvider = ToastPrimitives.Provider
|
|
9
9
|
|
|
@@ -4,8 +4,8 @@ import * as React from "react"
|
|
|
4
4
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
|
|
5
5
|
import { type VariantProps } from "class-variance-authority"
|
|
6
6
|
|
|
7
|
-
import { cn } from
|
|
8
|
-
import { toggleVariants } from
|
|
7
|
+
import { cn } from '../../lib/utils'
|
|
8
|
+
import { toggleVariants } from './toggle"
|
|
9
9
|
|
|
10
10
|
const ToggleGroupContext = React.createContext<
|
|
11
11
|
VariantProps<typeof toggleVariants>
|
|
@@ -4,7 +4,7 @@ import * as React from "react"
|
|
|
4
4
|
import * as TogglePrimitive from "@radix-ui/react-toggle"
|
|
5
5
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
6
6
|
|
|
7
|
-
import { cn } from
|
|
7
|
+
import { cn } from '../../lib/utils'
|
|
8
8
|
|
|
9
9
|
const toggleVariants = cva(
|
|
10
10
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 gap-2",
|
package/src/hooks/use-toast.ts
CHANGED
package/src/styles/tokens.css
CHANGED
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
.dark {
|
|
107
107
|
--background: 240 10% 3.9%;
|
|
108
108
|
--foreground: 0 0% 98%;
|
|
109
|
-
--card: 240 10%
|
|
109
|
+
--card: 240 10% 6.5%; /* elevated surface — distinctly lighter than bg */
|
|
110
110
|
--card-foreground: 0 0% 98%;
|
|
111
111
|
--popover: 240 10% 3.9%;
|
|
112
112
|
--popover-foreground: 0 0% 98%;
|