@reinvented/design 1.1.0 → 1.2.1

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.
Files changed (111) hide show
  1. package/package.json +1 -1
  2. package/src/components/blocks/auth/auth-card/AuthCard.tsx +2 -2
  3. package/src/components/blocks/auth/social-login/SocialLoginGroup.tsx +2 -2
  4. package/src/components/blocks/auth/two-factor/TwoFactorForm.tsx +4 -4
  5. package/src/components/blocks/communication/activity-item/ActivityItem.tsx +1 -1
  6. package/src/components/blocks/communication/activity-item/ActivityItemAvatar.tsx +2 -2
  7. package/src/components/blocks/communication/activity-item/ActivityItemContent.tsx +1 -1
  8. package/src/components/blocks/communication/chat-bubble/ChatBubble.tsx +1 -1
  9. package/src/components/blocks/communication/chat-bubble/ChatBubbleAvatar.tsx +2 -2
  10. package/src/components/blocks/communication/chat-bubble/ChatBubbleMessage.tsx +1 -1
  11. package/src/components/blocks/communication/chat-bubble/ChatBubbleTimestamp.tsx +1 -1
  12. package/src/components/blocks/content/article-header/ArticleHeader.tsx +3 -3
  13. package/src/components/blocks/content/author-card/AuthorCard.tsx +4 -4
  14. package/src/components/blocks/content/rich-text/RichTextContent.tsx +1 -1
  15. package/src/components/blocks/data-management/kanban/KanbanBoard.tsx +1 -1
  16. package/src/components/blocks/data-management/kanban/KanbanCard.tsx +4 -4
  17. package/src/components/blocks/data-management/kanban/KanbanColumn.tsx +3 -3
  18. package/src/components/blocks/data-management/tree-view/TreeItem.tsx +2 -2
  19. package/src/components/blocks/data-management/tree-view/TreeView.tsx +1 -1
  20. package/src/components/blocks/data-viz/financial-ticker/FinancialTicker.tsx +1 -1
  21. package/src/components/blocks/data-viz/kpi-card/KpiCard.tsx +2 -2
  22. package/src/components/blocks/data-viz/stat-grid/StatGrid.tsx +1 -1
  23. package/src/components/blocks/ecommerce/pricing-tier/PricingFeatureList.tsx +2 -2
  24. package/src/components/blocks/ecommerce/pricing-tier/PricingHeader.tsx +2 -2
  25. package/src/components/blocks/ecommerce/pricing-tier/PricingTier.tsx +2 -2
  26. package/src/components/blocks/ecommerce/product-card/ProductCard.tsx +2 -2
  27. package/src/components/blocks/ecommerce/product-card/ProductCardContent.tsx +2 -2
  28. package/src/components/blocks/ecommerce/product-card/ProductCardImage.tsx +1 -1
  29. package/src/components/blocks/ecommerce/product-card/ProductCardPrice.tsx +1 -1
  30. package/src/components/blocks/ecommerce/rating-summary/RatingStars.tsx +1 -1
  31. package/src/components/blocks/feedback/empty-state/EmptyState.tsx +2 -2
  32. package/src/components/blocks/feedback/error-state/ErrorState.tsx +2 -2
  33. package/src/components/blocks/feedback/not-found/NotFoundState.tsx +2 -2
  34. package/src/components/blocks/filtering/faceted-sidebar/FacetedGroup.tsx +2 -2
  35. package/src/components/blocks/filtering/faceted-sidebar/FacetedSidebar.tsx +2 -2
  36. package/src/components/blocks/filtering/filter-bar/FilterBar.tsx +4 -4
  37. package/src/components/blocks/filtering/search-result/SearchResultItem.tsx +2 -2
  38. package/src/components/blocks/marketing/cta-block/CtaBlock.tsx +2 -2
  39. package/src/components/blocks/marketing/feature-grid/FeatureGrid.tsx +1 -1
  40. package/src/components/blocks/marketing/hero-section/HeroSection.tsx +3 -3
  41. package/src/components/blocks/marketing/testimonial-card/TestimonialCard.tsx +3 -3
  42. package/src/components/blocks/media/call-controls/CallControlButton.tsx +3 -3
  43. package/src/components/blocks/media/call-controls/CallControls.tsx +1 -1
  44. package/src/components/blocks/media/media-player/MediaPlayer.tsx +1 -1
  45. package/src/components/blocks/media/media-player/MediaPlayerControls.tsx +1 -1
  46. package/src/components/blocks/media/media-player/MediaPlayerScrubber.tsx +1 -1
  47. package/src/components/blocks/media/media-player/MediaPlayerVideo.tsx +1 -1
  48. package/src/components/blocks/navigation/app-sidebar/AppSidebar.tsx +2 -2
  49. package/src/components/blocks/navigation/app-sidebar/NavItem.tsx +1 -1
  50. package/src/components/blocks/navigation/context-switcher/ContextSwitcher.tsx +3 -3
  51. package/src/components/blocks/navigation/top-navbar/TopNavbar.tsx +2 -2
  52. package/src/components/blocks/onboarding/onboarding-welcome/OnboardingWelcome.tsx +3 -3
  53. package/src/components/blocks/onboarding/step-wizard/StepWizard.tsx +1 -1
  54. package/src/components/blocks/profiles/connection-list/ConnectionItem.tsx +3 -3
  55. package/src/components/blocks/profiles/connection-list/ConnectionList.tsx +1 -1
  56. package/src/components/blocks/profiles/profile-header/ProfileHeader.tsx +3 -3
  57. package/src/components/blocks/profiles/profile-stats/ProfileStats.tsx +1 -1
  58. package/src/components/blocks/scheduling/booking-slot/BookingSlot.tsx +1 -1
  59. package/src/components/blocks/scheduling/event-card/EventCard.tsx +3 -3
  60. package/src/components/blocks/scheduling/timeline-row/TimelineRow.tsx +2 -2
  61. package/src/components/blocks/settings/billing-usage/BillingUsage.tsx +3 -3
  62. package/src/components/blocks/settings/integration-card/IntegrationCard.tsx +5 -5
  63. package/src/components/blocks/settings/settings-section/SettingsSection.tsx +1 -1
  64. package/src/components/ui/accordion.tsx +1 -1
  65. package/src/components/ui/alert-dialog.tsx +2 -2
  66. package/src/components/ui/alert.tsx +1 -1
  67. package/src/components/ui/avatar.tsx +1 -1
  68. package/src/components/ui/badge.tsx +7 -1
  69. package/src/components/ui/breadcrumb.tsx +1 -1
  70. package/src/components/ui/button.tsx +8 -1
  71. package/src/components/ui/calendar.tsx +2 -2
  72. package/src/components/ui/card.tsx +1 -1
  73. package/src/components/ui/carousel.tsx +2 -2
  74. package/src/components/ui/chart.tsx +1 -1
  75. package/src/components/ui/checkbox.tsx +1 -1
  76. package/src/components/ui/command.tsx +2 -2
  77. package/src/components/ui/component-placeholder.tsx +1 -1
  78. package/src/components/ui/context-menu.tsx +1 -1
  79. package/src/components/ui/dialog.tsx +1 -1
  80. package/src/components/ui/drawer.tsx +1 -1
  81. package/src/components/ui/dropdown-menu.tsx +1 -1
  82. package/src/components/ui/form.tsx +2 -2
  83. package/src/components/ui/hover-card.tsx +1 -1
  84. package/src/components/ui/input-otp.tsx +1 -1
  85. package/src/components/ui/input.tsx +1 -1
  86. package/src/components/ui/label.tsx +1 -1
  87. package/src/components/ui/menubar.tsx +1 -1
  88. package/src/components/ui/navigation-menu.tsx +1 -1
  89. package/src/components/ui/pagination.tsx +2 -2
  90. package/src/components/ui/popover.tsx +1 -1
  91. package/src/components/ui/progress.tsx +1 -1
  92. package/src/components/ui/radio-group.tsx +1 -1
  93. package/src/components/ui/resizable.tsx +1 -1
  94. package/src/components/ui/scroll-area.tsx +1 -1
  95. package/src/components/ui/select.tsx +1 -1
  96. package/src/components/ui/separator.tsx +1 -1
  97. package/src/components/ui/sheet.tsx +1 -1
  98. package/src/components/ui/skeleton.tsx +1 -1
  99. package/src/components/ui/slider.tsx +1 -1
  100. package/src/components/ui/sonner.tsx +13 -6
  101. package/src/components/ui/switch.tsx +1 -1
  102. package/src/components/ui/table.tsx +1 -1
  103. package/src/components/ui/tabs.tsx +1 -1
  104. package/src/components/ui/textarea.tsx +1 -1
  105. package/src/components/ui/toast.tsx +1 -1
  106. package/src/components/ui/toaster.tsx +1 -1
  107. package/src/components/ui/toggle-group.tsx +2 -2
  108. package/src/components/ui/toggle.tsx +1 -1
  109. package/src/components/ui/tooltip.tsx +1 -1
  110. package/src/hooks/use-toast.ts +1 -1
  111. package/src/styles/tokens.css +1 -1
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
- import { cn } from '@/lib/utils'
3
- import { Badge } from '@/components/ui/badge'
2
+ import { cn } from '../../../../lib/utils'
3
+ import { Badge } from '../../../../components/ui/badge'
4
4
 
5
5
  interface TimelineRowProps {
6
6
  time: string
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
- import { Progress } from '@/components/ui/progress'
3
- import { Card, CardContent } from '@/components/ui/card'
4
- import { cn } from '@/lib/utils'
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 '@/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'
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
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { cn } from '@/lib/utils'
2
+ import { cn } from '../../../../lib/utils'
3
3
 
4
4
  interface SettingsSectionProps {
5
5
  title: string
@@ -2,7 +2,7 @@ import * as React from "react"
2
2
  import * as AccordionPrimitive from "@radix-ui/react-accordion"
3
3
  import { ChevronDown } from "lucide-react"
4
4
 
5
- import { cn } from "@/lib/utils"
5
+ import { cn } from '../../lib/utils'
6
6
 
7
7
  const Accordion = AccordionPrimitive.Root
8
8
 
@@ -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 "@/lib/utils"
7
- import { buttonVariants } from "@/components/ui/button"
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 "@/lib/utils"
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",
@@ -3,7 +3,7 @@
3
3
  import * as React from "react"
4
4
  import * as AvatarPrimitive from "@radix-ui/react-avatar"
5
5
 
6
- import { cn } from "@/lib/utils"
6
+ import { cn } from '../../lib/utils'
7
7
 
8
8
  const Avatar = React.forwardRef<
9
9
  React.ElementRef<typeof AvatarPrimitive.Root>,
@@ -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 "@/lib/utils"
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 "@/lib/utils"
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 "@/lib/utils"
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 "@/lib/utils"
10
- import { Button, buttonVariants } from "@/components/ui/button"
9
+ import { cn } from '../../lib/utils'
10
+ import { Button, buttonVariants } from './button'
11
11
 
12
12
  function Calendar({
13
13
  className,
@@ -1,6 +1,6 @@
1
1
  import * as React from "react"
2
2
 
3
- import { cn } from "@/lib/utils"
3
+ import { cn } from '../../lib/utils'
4
4
 
5
5
  const Card = React.forwardRef<
6
6
  HTMLDivElement,
@@ -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 "@/lib/utils"
10
- import { Button } from "@/components/ui/button"
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>
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import * as RechartsPrimitive from "recharts"
3
3
 
4
- import { cn } from "@/lib/utils"
4
+ import { cn } from '../../lib/utils'
5
5
 
6
6
  // Format: { THEME_NAME: CSS_SELECTOR }
7
7
  const THEMES = { light: "", dark: ".dark" } as const
@@ -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 "@/lib/utils"
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 "@/lib/utils"
9
- import { Dialog, DialogContent } from "@/components/ui/dialog"
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>,
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { cn } from '@/lib/utils';
2
+ import { cn } from '../../lib/utils';
3
3
 
4
4
  export interface ComponentPlaceholderProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  name: string;
@@ -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 "@/lib/utils"
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 DialogPrimitive from "@radix-ui/react-dialog"
5
5
  import { X } from "lucide-react"
6
6
 
7
- import { cn } from "@/lib/utils"
7
+ import { cn } from '../../lib/utils'
8
8
 
9
9
  const Dialog = DialogPrimitive.Root
10
10
 
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import { Drawer as DrawerPrimitive } from "vaul"
3
3
 
4
- import { cn } from "@/lib/utils"
4
+ import { cn } from '../../lib/utils'
5
5
 
6
6
  const Drawer = ({
7
7
  shouldScaleBackground = true,
@@ -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 "@/lib/utils"
7
+ import { cn } from '../../lib/utils'
8
8
 
9
9
  const DropdownMenu = DropdownMenuPrimitive.Root
10
10
 
@@ -10,8 +10,8 @@ import {
10
10
  type FieldValues,
11
11
  } from "react-hook-form"
12
12
 
13
- import { cn } from "@/lib/utils"
14
- import { Label } from "@/components/ui/label"
13
+ import { cn } from '../../lib/utils'
14
+ import { Label } from './label'
15
15
 
16
16
  const Form = FormProvider
17
17
 
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card"
3
3
 
4
- import { cn } from "@/lib/utils"
4
+ import { cn } from '../../lib/utils'
5
5
 
6
6
  const HoverCard = HoverCardPrimitive.Root
7
7
 
@@ -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 "@/lib/utils"
5
+ import { cn } from '../../lib/utils'
6
6
 
7
7
  const InputOTP = React.forwardRef<
8
8
  React.ElementRef<typeof OTPInput>,
@@ -1,6 +1,6 @@
1
1
  import * as React from "react"
2
2
 
3
- import { cn } from "@/lib/utils"
3
+ import { cn } from '../../lib/utils'
4
4
 
5
5
  const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
6
6
  ({ className, type, ...props }, ref) => {
@@ -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 "@/lib/utils"
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 "@/lib/utils"
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 "@/lib/utils"
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 "@/lib/utils"
5
- import { ButtonProps, buttonVariants } from "@/components/ui/button"
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
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import * as PopoverPrimitive from "@radix-ui/react-popover"
3
3
 
4
- import { cn } from "@/lib/utils"
4
+ import { cn } from '../../lib/utils'
5
5
 
6
6
  const Popover = PopoverPrimitive.Root
7
7
 
@@ -3,7 +3,7 @@
3
3
  import * as React from "react"
4
4
  import * as ProgressPrimitive from "@radix-ui/react-progress"
5
5
 
6
- import { cn } from "@/lib/utils"
6
+ import { cn } from '../../lib/utils'
7
7
 
8
8
  const Progress = React.forwardRef<
9
9
  React.ElementRef<typeof ProgressPrimitive.Root>,
@@ -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 "@/lib/utils"
5
+ import { cn } from '../../lib/utils'
6
6
 
7
7
  const RadioGroup = React.forwardRef<
8
8
  React.ElementRef<typeof RadioGroupPrimitive.Root>,
@@ -3,7 +3,7 @@
3
3
  import { GripVertical } from "lucide-react"
4
4
  import * as ResizablePrimitive from "react-resizable-panels"
5
5
 
6
- import { cn } from "@/lib/utils"
6
+ import { cn } from '../../lib/utils'
7
7
 
8
8
  const ResizablePanelGroup = ({
9
9
  className,
@@ -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 "@/lib/utils"
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 "@/lib/utils"
7
+ import { cn } from '../../lib/utils'
8
8
 
9
9
  const Select = SelectPrimitive.Root
10
10
 
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import * as SeparatorPrimitive from "@radix-ui/react-separator"
3
3
 
4
- import { cn } from "@/lib/utils"
4
+ import { cn } from '../../lib/utils'
5
5
 
6
6
  const Separator = React.forwardRef<
7
7
  React.ElementRef<typeof SeparatorPrimitive.Root>,
@@ -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 "@/lib/utils"
8
+ import { cn } from '../../lib/utils'
9
9
 
10
10
  const Sheet = SheetPrimitive.Root
11
11
 
@@ -1,4 +1,4 @@
1
- import { cn } from "@/lib/utils"
1
+ import { cn } from '../../lib/utils'
2
2
 
3
3
  function Skeleton({
4
4
  className,
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import * as SliderPrimitive from "@radix-ui/react-slider"
3
3
 
4
- import { cn } from "@/lib/utils"
4
+ import { cn } from '../../lib/utils'
5
5
 
6
6
  const Slider = React.forwardRef<
7
7
  React.ElementRef<typeof SliderPrimitive.Root>,
@@ -7,14 +7,20 @@ import {
7
7
  OctagonX,
8
8
  TriangleAlert,
9
9
  } from "lucide-react"
10
- import { useTheme } from "next-themes"
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
- const Toaster = ({ ...props }: ToasterProps) => {
16
- const { theme = "system" } = useTheme()
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 { Toaster }
51
+ // Re-export `toast` helper so consumers can import from @reinvented/design directly
52
+ export { Toaster, toast }
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import * as SwitchPrimitives from "@radix-ui/react-switch"
3
3
 
4
- import { cn } from "@/lib/utils"
4
+ import { cn } from '../../lib/utils'
5
5
 
6
6
  const Switch = React.forwardRef<
7
7
  React.ElementRef<typeof SwitchPrimitives.Root>,
@@ -1,6 +1,6 @@
1
1
  import * as React from "react"
2
2
 
3
- import { cn } from "@/lib/utils"
3
+ import { cn } from '../../lib/utils'
4
4
 
5
5
  const Table = React.forwardRef<
6
6
  HTMLTableElement,
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import * as TabsPrimitive from "@radix-ui/react-tabs"
3
3
 
4
- import { cn } from "@/lib/utils"
4
+ import { cn } from '../../lib/utils'
5
5
 
6
6
  const Tabs = TabsPrimitive.Root
7
7
 
@@ -1,6 +1,6 @@
1
1
  import * as React from "react"
2
2
 
3
- import { cn } from "@/lib/utils"
3
+ import { cn } from '../../lib/utils'
4
4
 
5
5
  const Textarea = React.forwardRef<
6
6
  HTMLTextAreaElement,
@@ -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 "@/lib/utils"
6
+ import { cn } from '../../lib/utils'
7
7
 
8
8
  const ToastProvider = ToastPrimitives.Provider
9
9
 
@@ -6,7 +6,7 @@ import {
6
6
  ToastProvider,
7
7
  ToastTitle,
8
8
  ToastViewport,
9
- } from "@/components/ui/toast"
9
+ } from './toast"
10
10
 
11
11
  export function Toaster() {
12
12
  const { toasts } = useToast()
@@ -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 "@/lib/utils"
8
- import { toggleVariants } from "@/components/ui/toggle"
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 "@/lib/utils"
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",
@@ -1,7 +1,7 @@
1
1
  import * as React from "react"
2
2
  import * as TooltipPrimitive from "@radix-ui/react-tooltip"
3
3
 
4
- import { cn } from "@/lib/utils"
4
+ import { cn } from '../../lib/utils'
5
5
 
6
6
  const TooltipProvider = TooltipPrimitive.Provider
7
7
 
@@ -6,7 +6,7 @@ import * as React from "react"
6
6
  import type {
7
7
  ToastActionElement,
8
8
  ToastProps,
9
- } from "@/components/ui/toast"
9
+ } from '../components/ui/toast"
10
10
 
11
11
  const TOAST_LIMIT = 1
12
12
  const TOAST_REMOVE_DELAY = 1000000
@@ -106,7 +106,7 @@
106
106
  .dark {
107
107
  --background: 240 10% 3.9%;
108
108
  --foreground: 0 0% 98%;
109
- --card: 240 10% 3.9%;
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%;