@reinvented/design 1.0.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/README.md +1 -1
- package/SKILL.md +214 -0
- package/package.json +4 -3
- package/skills/apps/analytics.md +103 -0
- package/skills/apps/booking-scheduling.md +97 -0
- package/skills/apps/content-management.md +52 -0
- package/skills/apps/crm.md +80 -0
- package/skills/apps/e-commerce.md +109 -0
- package/skills/apps/education.md +79 -0
- package/skills/apps/finance.md +68 -0
- package/skills/apps/health-fitness.md +72 -0
- package/skills/apps/marketplace.md +99 -0
- package/skills/apps/messaging.md +84 -0
- package/skills/apps/portfolio-personal.md +90 -0
- package/skills/apps/project-management.md +95 -0
- package/skills/apps/saas-dashboard.md +104 -0
- package/skills/apps/social-platform.md +50 -0
- package/skills/blocks/auth.md +106 -0
- package/skills/blocks/communication.md +98 -0
- package/skills/blocks/content.md +107 -0
- package/skills/blocks/data-management.md +109 -0
- package/skills/blocks/data-viz.md +92 -0
- package/skills/blocks/ecommerce.md +126 -0
- package/skills/blocks/feedback.md +97 -0
- package/skills/blocks/filtering.md +127 -0
- package/skills/blocks/marketing.md +136 -0
- package/skills/blocks/media.md +102 -0
- package/skills/blocks/navigation.md +136 -0
- package/skills/blocks/onboarding.md +75 -0
- package/skills/blocks/profiles.md +131 -0
- package/skills/blocks/scheduling.md +117 -0
- package/skills/blocks/settings.md +102 -0
- package/skills/components/advanced-components.md +142 -0
- package/skills/components/avatar.md +92 -0
- package/skills/components/badge.md +105 -0
- package/skills/components/button.md +87 -0
- package/skills/components/card.md +144 -0
- package/skills/components/chart.md +88 -0
- package/skills/components/dialog.md +109 -0
- package/skills/components/dropdown-menu.md +117 -0
- package/skills/components/extended-components.md +187 -0
- package/skills/components/feedback.md +165 -0
- package/skills/components/form.md +112 -0
- package/skills/components/input.md +107 -0
- package/skills/components/map.md +53 -0
- package/skills/components/navigation.md +73 -0
- package/skills/components/overlay.md +77 -0
- package/skills/components/page-header.md +51 -0
- package/skills/components/select.md +175 -0
- package/skills/components/table.md +102 -0
- package/skills/components/tabs.md +105 -0
- package/skills/components/utilities.md +138 -0
- package/skills/devices/desktop.md +43 -0
- package/skills/devices/mobile.md +77 -0
- package/skills/foundation/design-principles.md +77 -0
- package/skills/foundation/design-tokens.md +121 -0
- package/skills/foundation/mockup-generation.md +118 -0
- package/skills/foundation/rules.md +54 -0
- package/skills/foundation/tailwind-usage.md +204 -0
- package/skills/layouts/dashboard.md +71 -0
- package/skills/layouts/full-page-form.md +75 -0
- package/skills/layouts/list-detail.md +70 -0
- package/skills/layouts/marketing.md +70 -0
- package/skills/layouts/responsive.md +67 -0
- package/skills/layouts/settings-page.md +106 -0
- package/skills/layouts/sidebar.md +73 -0
- package/skills/layouts/topbar.md +68 -0
- package/skills/patterns/auth.md +131 -0
- package/skills/patterns/content-display.md +164 -0
- package/skills/patterns/dashboards.md +104 -0
- package/skills/patterns/data-tables.md +113 -0
- package/skills/patterns/empty-states.md +71 -0
- package/skills/patterns/error-states.md +73 -0
- package/skills/patterns/forms.md +136 -0
- package/skills/patterns/loading-states.md +92 -0
- package/skills/patterns/navigation.md +113 -0
- package/skills/patterns/notifications.md +91 -0
- package/skills/patterns/onboarding.md +42 -0
- package/skills/patterns/search.md +55 -0
- package/skills/patterns/settings.md +132 -0
- package/skills/patterns/user-profiles.md +67 -0
- package/skills/personas/business-operator.md +114 -0
- package/skills/personas/consumer-casual.md +60 -0
- package/skills/personas/consumer-power-user.md +109 -0
- package/skills/personas/creative-professional.md +109 -0
- package/skills/personas/enterprise-admin.md +134 -0
- package/skills/visual/color-usage.md +62 -0
- package/skills/visual/dark-mode.md +50 -0
- package/skills/visual/polish-techniques.md +101 -0
- package/skills/visual/spacing-composition.md +69 -0
- package/skills/visual/transitions-animations.md +66 -0
- package/skills/visual/typography-hierarchy.md +66 -0
- 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
- package/DESIGN_GUIDE.md +0 -148
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
DropdownMenuItem,
|
|
7
7
|
DropdownMenuLabel,
|
|
8
8
|
DropdownMenuSeparator,
|
|
9
|
-
} from '
|
|
9
|
+
} from '../../../../components/ui/dropdown-menu'
|
|
10
10
|
import { ChevronsUpDown, Building2 } from 'lucide-react'
|
|
11
|
-
import { Avatar, AvatarImage, AvatarFallback } from '
|
|
12
|
-
import { cn } from '
|
|
11
|
+
import { Avatar, AvatarImage, AvatarFallback } from '../../../../components/ui/avatar'
|
|
12
|
+
import { cn } from '../../../../lib/utils'
|
|
13
13
|
|
|
14
14
|
interface ContextItem {
|
|
15
15
|
id: string
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { cn } from '
|
|
2
|
+
import { cn } from '../../../../lib/utils'
|
|
3
3
|
import { Menu } from 'lucide-react'
|
|
4
|
-
import { Button } from '
|
|
4
|
+
import { Button } from '../../../../components/ui/button'
|
|
5
5
|
|
|
6
6
|
interface TopNavbarProps {
|
|
7
7
|
className?: string
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Card, CardContent } from '
|
|
3
|
-
import { Button } from '
|
|
2
|
+
import { Card, CardContent } from '../../../../components/ui/card'
|
|
3
|
+
import { Button } from '../../../../components/ui/button'
|
|
4
4
|
import { CheckCircle2, ArrowRight } from 'lucide-react'
|
|
5
|
-
import { cn } from '
|
|
5
|
+
import { cn } from '../../../../lib/utils'
|
|
6
6
|
|
|
7
7
|
interface OnboardingWelcomeProps {
|
|
8
8
|
title: string
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Avatar, AvatarFallback, AvatarImage } from '
|
|
3
|
-
import { Card } from '
|
|
4
|
-
import { cn } from '
|
|
2
|
+
import { Avatar, AvatarFallback, AvatarImage } from '../../../../components/ui/avatar'
|
|
3
|
+
import { Card } from '../../../../components/ui/card'
|
|
4
|
+
import { cn } from '../../../../lib/utils'
|
|
5
5
|
|
|
6
6
|
interface ConnectionItemProps {
|
|
7
7
|
name: string
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Avatar, AvatarFallback, AvatarImage } from '
|
|
3
|
-
import { Badge } from '
|
|
4
|
-
import { cn } from '
|
|
2
|
+
import { Avatar, AvatarFallback, AvatarImage } from '../../../../components/ui/avatar'
|
|
3
|
+
import { Badge } from '../../../../components/ui/badge'
|
|
4
|
+
import { cn } from '../../../../lib/utils'
|
|
5
5
|
|
|
6
6
|
interface ProfileHeaderProps {
|
|
7
7
|
name: string
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Card, CardContent } from '
|
|
3
|
-
import { Badge } from '
|
|
2
|
+
import { Card, CardContent } from '../../../../components/ui/card'
|
|
3
|
+
import { Badge } from '../../../../components/ui/badge'
|
|
4
4
|
import { Calendar, Clock, MapPin, Video } from 'lucide-react'
|
|
5
|
-
import { cn } from '
|
|
5
|
+
import { cn } from '../../../../lib/utils'
|
|
6
6
|
|
|
7
7
|
interface EventCardProps {
|
|
8
8
|
title: string
|
|
@@ -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 }
|