@jarllyng/nostromo 3.6.0 → 3.8.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/dist/chunk-4NLMGH2S.cjs +3 -0
- package/dist/chunk-4NLMGH2S.cjs.map +1 -0
- package/dist/chunk-AYKNZARS.js +3 -0
- package/dist/chunk-AYKNZARS.js.map +1 -0
- package/dist/chunk-CGBIJDZX.cjs +3 -0
- package/dist/chunk-CGBIJDZX.cjs.map +1 -0
- package/dist/chunk-CT6LEOBW.js +3 -0
- package/dist/chunk-CT6LEOBW.js.map +1 -0
- package/dist/chunk-E3A4SP3X.cjs +3 -0
- package/dist/chunk-E3A4SP3X.cjs.map +1 -0
- package/dist/chunk-EZGTC7L3.js +3 -0
- package/dist/chunk-EZGTC7L3.js.map +1 -0
- package/dist/chunk-GCMMAUW3.js +3 -0
- package/dist/chunk-GCMMAUW3.js.map +1 -0
- package/dist/chunk-HEU5GFOV.js +3 -0
- package/dist/chunk-HEU5GFOV.js.map +1 -0
- package/dist/chunk-KCS3UL74.cjs +3 -0
- package/dist/chunk-KCS3UL74.cjs.map +1 -0
- package/dist/chunk-MIYL7YKU.cjs +3 -0
- package/dist/chunk-MIYL7YKU.cjs.map +1 -0
- package/dist/chunk-MM54MZBX.js +3 -0
- package/dist/chunk-MM54MZBX.js.map +1 -0
- package/dist/chunk-PZLBMQGI.cjs +3 -0
- package/dist/chunk-PZLBMQGI.cjs.map +1 -0
- package/dist/chunk-R4L5BZYI.cjs +3 -0
- package/dist/chunk-R4L5BZYI.cjs.map +1 -0
- package/dist/chunk-SZ34F6OZ.cjs +3 -0
- package/dist/chunk-SZ34F6OZ.cjs.map +1 -0
- package/dist/chunk-XYPJ2K22.js +3 -0
- package/dist/chunk-XYPJ2K22.js.map +1 -0
- package/dist/chunk-YCVOS3MT.js +3 -0
- package/dist/chunk-YCVOS3MT.js.map +1 -0
- package/dist/components/core/alert-dialog.cjs +3 -0
- package/dist/components/core/alert-dialog.cjs.map +1 -0
- package/dist/components/core/alert-dialog.d.cts +50 -0
- package/dist/components/core/alert-dialog.d.ts +50 -0
- package/dist/components/core/alert-dialog.js +3 -0
- package/dist/components/core/alert-dialog.js.map +1 -0
- package/dist/components/core/aspect-ratio.cjs +3 -0
- package/dist/components/core/aspect-ratio.cjs.map +1 -0
- package/dist/components/core/aspect-ratio.d.cts +24 -0
- package/dist/components/core/aspect-ratio.d.ts +24 -0
- package/dist/components/core/aspect-ratio.js +3 -0
- package/dist/components/core/aspect-ratio.js.map +1 -0
- package/dist/components/core/context-menu.cjs +3 -0
- package/dist/components/core/context-menu.cjs.map +1 -0
- package/dist/components/core/context-menu.d.cts +44 -0
- package/dist/components/core/context-menu.d.ts +44 -0
- package/dist/components/core/context-menu.js +3 -0
- package/dist/components/core/context-menu.js.map +1 -0
- package/dist/components/core/dropdown-menu.cjs +1 -1
- package/dist/components/core/dropdown-menu.js +1 -1
- package/dist/components/core/hover-card.cjs +3 -0
- package/dist/components/core/hover-card.cjs.map +1 -0
- package/dist/components/core/hover-card.d.cts +22 -0
- package/dist/components/core/hover-card.d.ts +22 -0
- package/dist/components/core/hover-card.js +3 -0
- package/dist/components/core/hover-card.js.map +1 -0
- package/dist/components/core/scroll-area.cjs +3 -0
- package/dist/components/core/scroll-area.cjs.map +1 -0
- package/dist/components/core/scroll-area.d.cts +26 -0
- package/dist/components/core/scroll-area.d.ts +26 -0
- package/dist/components/core/scroll-area.js +3 -0
- package/dist/components/core/scroll-area.js.map +1 -0
- package/dist/components/core/toggle.cjs +3 -0
- package/dist/components/core/toggle.cjs.map +1 -0
- package/dist/components/core/toggle.d.cts +33 -0
- package/dist/components/core/toggle.d.ts +33 -0
- package/dist/components/core/toggle.js +3 -0
- package/dist/components/core/toggle.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +61 -1
- package/dist/chunk-BX4VBLKZ.cjs +0 -3
- package/dist/chunk-BX4VBLKZ.cjs.map +0 -1
- package/dist/chunk-E44BBSLT.js +0 -3
- package/dist/chunk-E44BBSLT.js.map +0 -1
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/themes/utils.ts","../src/themes/index.ts"],"names":["themes","applyTheme","theme","getCurrentTheme","toggleDarkMode","newScheme","setDarkMode","isDark","getColorScheme","prefersDarkMode","onSystemColorSchemeChange","callback","mediaQuery","handler","initializeTheme","defaultTheme","themeInfo"],"mappings":"+
|
|
1
|
+
{"version":3,"sources":["../src/themes/utils.ts","../src/themes/index.ts"],"names":["themes","applyTheme","theme","getCurrentTheme","toggleDarkMode","newScheme","setDarkMode","isDark","getColorScheme","prefersDarkMode","onSystemColorSchemeChange","callback","mediaQuery","handler","initializeTheme","defaultTheme","themeInfo"],"mappings":"+kFAIO,IAAMA,EAAAA,CAAoC,CAC/C,QAAA,CAAU,UAAA,CACV,MAAA,CAAQ,SACR,QAAA,CAAU,QAAA,CACV,MAAA,CAAQ,QACV,EAKO,SAASC,GAAWC,CAAAA,CAAwB,CAC7C,OAAO,QAAA,CAAa,GAAA,EACtB,QAAA,CAAS,eAAA,CAAgB,YAAA,CAAa,YAAA,CAAcA,CAAK,EAE7D,CAKO,SAASC,EAAAA,EAAoC,CAClD,OAAI,OAAO,QAAA,CAAa,GAAA,CAAoB,IAAA,CAE9B,QAAA,CAAS,eAAA,CAAgB,YAAA,CAAa,YAAY,CAElE,CAKO,SAASC,EAAAA,EAAuB,CACrC,GAAI,OAAO,QAAA,CAAa,GAAA,CAAa,OAGrC,IAAMC,CAAAA,CADgB,QAAA,CAAS,eAAA,CAAgB,YAAA,CAAa,mBAAmB,CAAA,GAC3C,MAAA,CAAS,OAAA,CAAU,MAAA,CACvD,SAAS,eAAA,CAAgB,YAAA,CAAa,mBAAA,CAAqBA,CAAS,EACtE,CAKO,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N,IAAA,CAAM,QAAA,CACN,YAAa,6DAAA,CACb,MAAA,CAAQ,CACN,OAAA,CAAS,gBAAA,CACT,SAAA,CAAW,gBAAA,CACX,MAAA,CAAQ,OACV,CACF,CAAA,CACA,QAAA,CAAU,CACR,IAAA,CAAM,SACN,WAAA,CAAa,sDAAA,CACb,MAAA,CAAQ,CACN,OAAA,CAAS,kBAAA,CACT,SAAA,CAAW,aAAA,CACX,MAAA,CAAQ,OACV,CACF,CAAA,CACA,MAAA,CAAQ,CACN,KAAM,QAAA,CACN,WAAA,CAAa,yDAAA,CACb,MAAA,CAAQ,CACN,OAAA,CAAS,oBAAA,CACT,SAAA,CAAW,aAAA,CACX,MAAA,CAAQ,OACV,CACF,CACF","file":"index.cjs","sourcesContent":["// Theme utilities and helpers\n\nexport type ThemeName = 'nostromo' | 'mother' | 'lv-426' | 'sulaco';\n\nexport const themes: Record<ThemeName, string> = {\n nostromo: 'nostromo',\n mother: 'mother',\n 'lv-426': 'lv-426',\n sulaco: 'sulaco',\n} as const;\n\n/**\n * Apply a theme to the document\n */\nexport function applyTheme(theme: ThemeName): void {\n if (typeof document !== 'undefined') {\n document.documentElement.setAttribute('data-theme', theme);\n }\n}\n\n/**\n * Get the current theme from the document\n */\nexport function getCurrentTheme(): ThemeName | null {\n if (typeof document === 'undefined') return null;\n \n const theme = document.documentElement.getAttribute('data-theme');\n return theme as ThemeName | null;\n}\n\n/**\n * Toggle between light and dark mode\n */\nexport function toggleDarkMode(): void {\n if (typeof document === 'undefined') return;\n \n const currentScheme = document.documentElement.getAttribute('data-color-scheme');\n const newScheme = currentScheme === 'dark' ? 'light' : 'dark';\n document.documentElement.setAttribute('data-color-scheme', newScheme);\n}\n\n/**\n * Set dark mode\n */\nexport function setDarkMode(isDark: boolean): void {\n if (typeof document === 'undefined') return;\n \n document.documentElement.setAttribute('data-color-scheme', isDark ? 'dark' : 'light');\n}\n\n/**\n * Get current color scheme\n */\nexport function getColorScheme(): 'light' | 'dark' | null {\n if (typeof document === 'undefined') return null;\n \n const scheme = document.documentElement.getAttribute('data-color-scheme');\n return scheme as 'light' | 'dark' | null;\n}\n\n/**\n * Check if system prefers dark mode\n */\nexport function prefersDarkMode(): boolean {\n if (typeof window === 'undefined') return false;\n \n return window.matchMedia('(prefers-color-scheme: dark)').matches;\n}\n\n/**\n * Listen for system color scheme changes\n */\nexport function onSystemColorSchemeChange(callback: (isDark: boolean) => void): () => void {\n if (typeof window === 'undefined') return () => {};\n \n const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');\n \n const handler = (e: MediaQueryListEvent) => {\n callback(e.matches);\n };\n \n mediaQuery.addEventListener('change', handler);\n \n // Return cleanup function\n return () => {\n mediaQuery.removeEventListener('change', handler);\n };\n}\n\n/**\n * Initialize theme system\n */\nexport function initializeTheme(defaultTheme: ThemeName = 'nostromo'): void {\n if (typeof document === 'undefined') return;\n \n // Set default theme if none is set\n if (!getCurrentTheme()) {\n applyTheme(defaultTheme);\n }\n \n // Set initial color scheme based on system preference\n if (!getColorScheme()) {\n setDarkMode(prefersDarkMode());\n }\n}\n","// Theme exports\nexport * from './utils';\n\n// Theme CSS imports (for bundlers that support CSS imports)\nimport './nostromo.css';\nimport './mother.css';\nimport './lv-426.css';\nimport './sulaco.css';\n\n// Theme names and descriptions\nexport const themeInfo = {\n nostromo: {\n name: 'Nostromo',\n description: 'Classic space industrial theme inspired by the USCSS Nostromo',\n colors: {\n primary: 'Purple/Blue',\n secondary: 'Dark Gray',\n accent: 'Green'\n }\n },\n mother: {\n name: 'Mother',\n description: 'Cold, clinical AI aesthetic inspired by the ship\\'s computer',\n colors: {\n primary: 'Cold Blue/Cyan',\n secondary: 'Clinical White',\n accent: 'Green'\n }\n },\n 'lv-426': {\n name: 'LV-426',\n description: 'Warm, rusty atmosphere inspired by the planet LV-426',\n colors: {\n primary: 'Warm Orange/Rust',\n secondary: 'Earth Tones',\n accent: 'Green'\n }\n },\n sulaco: {\n name: 'Sulaco',\n description: 'Modern, military-inspired aesthetic from the USS Sulaco',\n colors: {\n primary: 'Military Blue/Gray',\n secondary: 'Steel Tones',\n accent: 'Green'\n }\n }\n} as const;\n\nexport type ThemeInfo = typeof themeInfo;\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -37,6 +37,12 @@ export { Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, Pop
|
|
|
37
37
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/core/collapsible.cjs';
|
|
38
38
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/core/dropdown-menu.cjs';
|
|
39
39
|
export { Sheet, SheetClose, SheetContent, SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTitleProps, SheetTrigger, sheetVariants } from './components/core/sheet.cjs';
|
|
40
|
+
export { AlertDialog, AlertDialogAction, AlertDialogActionProps, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from './components/core/alert-dialog.cjs';
|
|
41
|
+
export { Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleProps, toggleVariants } from './components/core/toggle.cjs';
|
|
42
|
+
export { AspectRatio, AspectRatioProps } from './components/core/aspect-ratio.cjs';
|
|
43
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuItemProps, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './components/core/context-menu.cjs';
|
|
44
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/core/hover-card.cjs';
|
|
45
|
+
export { ScrollArea, ScrollAreaProps, ScrollBar } from './components/core/scroll-area.cjs';
|
|
40
46
|
export { Hero, HeroProps } from './components/marketing/hero.cjs';
|
|
41
47
|
export { Testimonial, Testimonials, TestimonialsProps } from './components/marketing/testimonials.cjs';
|
|
42
48
|
export { Feature, Features, FeaturesProps } from './components/marketing/features.cjs';
|
|
@@ -54,6 +60,12 @@ import '@radix-ui/react-popover';
|
|
|
54
60
|
import '@radix-ui/react-collapsible';
|
|
55
61
|
import '@radix-ui/react-dropdown-menu';
|
|
56
62
|
import '@radix-ui/react-dialog';
|
|
63
|
+
import '@radix-ui/react-alert-dialog';
|
|
64
|
+
import '@radix-ui/react-toggle';
|
|
65
|
+
import '@radix-ui/react-toggle-group';
|
|
66
|
+
import '@radix-ui/react-context-menu';
|
|
67
|
+
import '@radix-ui/react-hover-card';
|
|
68
|
+
import '@radix-ui/react-scroll-area';
|
|
57
69
|
|
|
58
70
|
type ThemeName = 'nostromo' | 'mother' | 'lv-426' | 'sulaco';
|
|
59
71
|
declare const themes: Record<ThemeName, string>;
|
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,12 @@ export { Popover, PopoverAnchor, PopoverArrow, PopoverClose, PopoverContent, Pop
|
|
|
37
37
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/core/collapsible.js';
|
|
38
38
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from './components/core/dropdown-menu.js';
|
|
39
39
|
export { Sheet, SheetClose, SheetContent, SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTitleProps, SheetTrigger, sheetVariants } from './components/core/sheet.js';
|
|
40
|
+
export { AlertDialog, AlertDialogAction, AlertDialogActionProps, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from './components/core/alert-dialog.js';
|
|
41
|
+
export { Toggle, ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps, ToggleProps, toggleVariants } from './components/core/toggle.js';
|
|
42
|
+
export { AspectRatio, AspectRatioProps } from './components/core/aspect-ratio.js';
|
|
43
|
+
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuItemProps, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger } from './components/core/context-menu.js';
|
|
44
|
+
export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/core/hover-card.js';
|
|
45
|
+
export { ScrollArea, ScrollAreaProps, ScrollBar } from './components/core/scroll-area.js';
|
|
40
46
|
export { Hero, HeroProps } from './components/marketing/hero.js';
|
|
41
47
|
export { Testimonial, Testimonials, TestimonialsProps } from './components/marketing/testimonials.js';
|
|
42
48
|
export { Feature, Features, FeaturesProps } from './components/marketing/features.js';
|
|
@@ -54,6 +60,12 @@ import '@radix-ui/react-popover';
|
|
|
54
60
|
import '@radix-ui/react-collapsible';
|
|
55
61
|
import '@radix-ui/react-dropdown-menu';
|
|
56
62
|
import '@radix-ui/react-dialog';
|
|
63
|
+
import '@radix-ui/react-alert-dialog';
|
|
64
|
+
import '@radix-ui/react-toggle';
|
|
65
|
+
import '@radix-ui/react-toggle-group';
|
|
66
|
+
import '@radix-ui/react-context-menu';
|
|
67
|
+
import '@radix-ui/react-hover-card';
|
|
68
|
+
import '@radix-ui/react-scroll-area';
|
|
57
69
|
|
|
58
70
|
type ThemeName = 'nostromo' | 'mother' | 'lv-426' | 'sulaco';
|
|
59
71
|
declare const themes: Record<ThemeName, string>;
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export{a as
|
|
2
|
+
export{a as LogoWall}from'./chunk-RC2THAIA.js';export{a as Pricing}from'./chunk-44HISN45.js';export{a as Testimonials}from'./chunk-LR4VUFOQ.js';export{d as Tabs,g as TabsContent,e as TabsList,f as TabsTrigger,c as tabsContentVariants,a as tabsListVariants,b as tabsTriggerVariants}from'./chunk-ZEJAFIOC.js';export{b as Textarea,a as textareaVariants}from'./chunk-2HYJSYQX.js';export{e as Toast,d as ToastProvider,b as toastIconVariants,a as toastVariants,c as useToast,f as useToastNotification}from'./chunk-WO3KCAN6.js';export{b as Toggle,c as ToggleGroup,d as ToggleGroupItem,a as toggleVariants}from'./chunk-EZGTC7L3.js';export{f as Tooltip,d as TooltipContent,e as TooltipProvider,c as TooltipTrigger,b as arrowVariants,a as tooltipVariants}from'./chunk-TCA5Z7FL.js';export{a as Features}from'./chunk-CEMOHO3Z.js';export{a as Gallery}from'./chunk-2JQROMCM.js';export{a as Hero}from'./chunk-JEHIMQQZ.js';export{c as RadioGroup,d as RadioGroupItem,d as RadioItem,a as radioGroupVariants,b as radioItemVariants}from'./chunk-WW2DDHCI.js';export{a as ScrollArea,b as ScrollBar}from'./chunk-GCMMAUW3.js';export{d as Select,h as SelectContent,e as SelectGroup,j as SelectItem,i as SelectLabel,k as SelectSeparator,g as SelectTrigger,f as SelectValue,b as selectContentVariants,c as selectItemVariants,a as selectTriggerVariants}from'./chunk-BZF3ZOAN.js';export{b as Separator,a as separatorVariants}from'./chunk-XRVHMGMD.js';export{b as Sheet,d as SheetClose,g as SheetContent,k as SheetDescription,i as SheetFooter,h as SheetHeader,f as SheetOverlay,e as SheetPortal,j as SheetTitle,c as SheetTrigger,a as sheetVariants}from'./chunk-HCYZ3LZP.js';export{c as Switch,b as switchThumbVariants,a as switchVariants}from'./chunk-OUWOPYAX.js';export{b as HelperText,a as helperTextVariants}from'./chunk-ABA7B5DE.js';export{a as HoverCard,c as HoverCardContent,b as HoverCardTrigger}from'./chunk-HEU5GFOV.js';export{a as Icon,b as iconNames}from'./chunk-BL2TM4YT.js';export{b as Label,a as labelVariants}from'./chunk-LYVCB45L.js';export{c as Pagination,d as PaginationContent,i as PaginationEllipsis,e as PaginationItem,f as PaginationLink,h as PaginationNext,g as PaginationPrevious,b as paginationItemVariants,a as paginationVariants}from'./chunk-Q6QMSAJR.js';export{b as Popover,d as PopoverAnchor,g as PopoverArrow,e as PopoverClose,f as PopoverContent,c as PopoverTrigger,a as popoverContentVariants}from'./chunk-3FY7LZ3B.js';export{e as CircularProgress,d as Progress,b as progressBarVariants,c as progressLabelVariants,a as progressVariants}from'./chunk-NLD4R74T.js';export{b as Checkbox,a as checkboxVariants}from'./chunk-DNTPD3PJ.js';export{a as Collapsible,c as CollapsibleContent,b as CollapsibleTrigger}from'./chunk-ESUSGG6O.js';export{a as ContextMenu,h as ContextMenuCheckboxItem,f as ContextMenuContent,c as ContextMenuGroup,g as ContextMenuItem,j as ContextMenuLabel,e as ContextMenuRadioGroup,i as ContextMenuRadioItem,k as ContextMenuSeparator,l as ContextMenuShortcut,d as ContextMenuSub,n as ContextMenuSubContent,m as ContextMenuSubTrigger,b as ContextMenuTrigger}from'./chunk-AYKNZARS.js';export{a as DataTable}from'./chunk-XJJJEWSU.js';export{d as Table,f as TableBody,h as TableCell,i as TableHead,e as TableHeader,g as TableRow,c as tableCellVariants,b as tableHeaderVariants,a as tableVariants}from'./chunk-UIEGBT4T.js';export{b as Input}from'./chunk-HD3TMQPR.js';export{c as Dialog,e as DialogContent,h as DialogDescription,f as DialogHeader,g as DialogTitle,d as DialogTrigger}from'./chunk-MY2KMTUS.js';export{a as DropdownMenu,h as DropdownMenuCheckboxItem,f as DropdownMenuContent,c as DropdownMenuGroup,g as DropdownMenuItem,j as DropdownMenuLabel,e as DropdownMenuRadioGroup,i as DropdownMenuRadioItem,k as DropdownMenuSeparator,l as DropdownMenuShortcut,d as DropdownMenuSub,n as DropdownMenuSubContent,m as DropdownMenuSubTrigger,b as DropdownMenuTrigger}from'./chunk-MM54MZBX.js';import'./chunk-XYPJ2K22.js';export{b as ErrorMessage,a as errorMessageVariants}from'./chunk-XQUZ7DUN.js';export{b as Badge,a as badgeVariants}from'./chunk-UL6MF7ES.js';export{d as Breadcrumb,j as BreadcrumbEllipsis,f as BreadcrumbItem,g as BreadcrumbLink,e as BreadcrumbList,h as BreadcrumbPage,i as BreadcrumbSeparator,b as breadcrumbItemVariants,c as breadcrumbSeparatorVariants,a as breadcrumbVariants}from'./chunk-SVWQWRPZ.js';export{c as Calendar,b as calendarDayVariants,a as calendarVariants}from'./chunk-35I2BJC3.js';export{g as Card,e as CardContent,d as CardDescription,f as CardFooter,b as CardHeader,c as CardTitle}from'./chunk-VD6S2PE4.js';export{l as ChartArea,j as ChartBar,d as ChartContainer,e as ChartGrid,i as ChartLegend,k as ChartLine,m as ChartReferenceLine,h as ChartTooltip,f as ChartXAxis,g as ChartYAxis,b as buildColorMap,a as chartPalette,c as resolveSeriesColor}from'./chunk-CCNO2VWE.js';export{a as LazyChart}from'./chunk-HRJXPCGF.js';export{b as Skeleton,d as SkeletonAvatar,e as SkeletonButton,f as SkeletonCard,h as SkeletonList,g as SkeletonTable,c as SkeletonText,a as skeletonVariants}from'./chunk-QKM5LPRW.js';export{b as Chart,a as chartContainerVariants}from'./chunk-XLZJ6HBL.js';export{a as LazyComponent,d as LazyInView,c as useLazyLoading,b as withLazyLoading}from'./chunk-QBAURT3I.js';export{a as ErrorBoundary,b as useErrorHandler}from'./chunk-MVCGR7JQ.js';export{d as performanceUtils,c as useMemoryMonitor,a as usePerformanceMonitor,b as withPerformanceMonitoring}from'./chunk-3BNGK67W.js';export{f as Accordion,i as AccordionContent,g as AccordionItem,h as AccordionTrigger,e as accordionChevronVariants,d as accordionContentVariants,b as accordionItemVariants,c as accordionTriggerVariants,a as accordionVariants}from'./chunk-6QAYHUNV.js';export{a as AlertDialog,j as AlertDialogAction,k as AlertDialogCancel,e as AlertDialogContent,i as AlertDialogDescription,g as AlertDialogFooter,f as AlertDialogHeader,d as AlertDialogOverlay,c as AlertDialogPortal,h as AlertDialogTitle,b as AlertDialogTrigger}from'./chunk-CT6LEOBW.js';export{b as Button,a as buttonVariants}from'./chunk-AVTJE2O2.js';export{g as Alert,f as AlertDescription,e as AlertTitle,d as alertCloseVariants,c as alertDescriptionVariants,b as alertTitleVariants,a as alertVariants}from'./chunk-AHRTNKXE.js';export{a as AspectRatio}from'./chunk-YCVOS3MT.js';export{d as Avatar,c as AvatarFallback,b as AvatarImage,a as avatarVariants}from'./chunk-YNSODGYK.js';import'./chunk-COXN6XBA.js';export{a as cn}from'./chunk-AC2JBXHQ.js';var Vn={nostromo:"nostromo",mother:"mother","lv-426":"lv-426",sulaco:"sulaco"};function yn(o){typeof document<"u"&&document.documentElement.setAttribute("data-theme",o);}function wn(){return typeof document>"u"?null:document.documentElement.getAttribute("data-theme")}function Ln(){if(typeof document>"u")return;let r=document.documentElement.getAttribute("data-color-scheme")==="dark"?"light":"dark";document.documentElement.setAttribute("data-color-scheme",r);}function Cn(o){typeof document>"u"||document.documentElement.setAttribute("data-color-scheme",o?"dark":"light");}function kn(){return typeof document>"u"?null:document.documentElement.getAttribute("data-color-scheme")}function Sn(){return typeof window>"u"?false:window.matchMedia("(prefers-color-scheme: dark)").matches}function Bn(o){if(typeof window>"u")return ()=>{};let r=window.matchMedia("(prefers-color-scheme: dark)"),t=e=>{o(e.matches);};return r.addEventListener("change",t),()=>{r.removeEventListener("change",t);}}function zn(o="nostromo"){typeof document>"u"||(wn()||yn(o),kn()||Cn(Sn()));}var Xn={nostromo:{name:"Nostromo",description:"Classic space industrial theme inspired by the USCSS Nostromo",colors:{primary:"Purple/Blue",secondary:"Dark Gray",accent:"Green"}},mother:{name:"Mother",description:"Cold, clinical AI aesthetic inspired by the ship's computer",colors:{primary:"Cold Blue/Cyan",secondary:"Clinical White",accent:"Green"}},"lv-426":{name:"LV-426",description:"Warm, rusty atmosphere inspired by the planet LV-426",colors:{primary:"Warm Orange/Rust",secondary:"Earth Tones",accent:"Green"}},sulaco:{name:"Sulaco",description:"Modern, military-inspired aesthetic from the USS Sulaco",colors:{primary:"Military Blue/Gray",secondary:"Steel Tones",accent:"Green"}}};export{yn as applyTheme,kn as getColorScheme,wn as getCurrentTheme,zn as initializeTheme,Bn as onSystemColorSchemeChange,Sn as prefersDarkMode,Cn as setDarkMode,Xn as themeInfo,Vn as themes,Ln as toggleDarkMode};//# sourceMappingURL=index.js.map
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/themes/utils.ts","../src/themes/index.ts"],"names":["themes","applyTheme","theme","getCurrentTheme","toggleDarkMode","newScheme","setDarkMode","isDark","getColorScheme","prefersDarkMode","onSystemColorSchemeChange","callback","mediaQuery","handler","initializeTheme","defaultTheme","themeInfo"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/themes/utils.ts","../src/themes/index.ts"],"names":["themes","applyTheme","theme","getCurrentTheme","toggleDarkMode","newScheme","setDarkMode","isDark","getColorScheme","prefersDarkMode","onSystemColorSchemeChange","callback","mediaQuery","handler","initializeTheme","defaultTheme","themeInfo"],"mappings":"4yMAIO,IAAMA,EAAAA,CAAoC,CAC/C,QAAA,CAAU,UAAA,CACV,MAAA,CAAQ,SACR,QAAA,CAAU,QAAA,CACV,MAAA,CAAQ,QACV,EAKO,SAASC,GAAWC,CAAAA,CAAwB,CAC7C,OAAO,QAAA,CAAa,GAAA,EACtB,QAAA,CAAS,eAAA,CAAgB,YAAA,CAAa,YAAA,CAAcA,CAAK,EAE7D,CAKO,SAASC,EAAAA,EAAoC,CAClD,OAAI,OAAO,QAAA,CAAa,GAAA,CAAoB,IAAA,C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A,EAAgB,EACnBF,EAAAA,CAAWc,CAAY,CAAA,CAIpBP,IAAe,EAClBF,EAAAA,CAAYG,EAAAA,EAAiB,CAAA,EAEjC,CC9FO,IAAMO,EAAAA,CAAY,CACvB,QAAA,CAAU,CACR,IAAA,CAAM,UAAA,CACN,WAAA,CAAa,gEACb,MAAA,CAAQ,CACN,OAAA,CAAS,aAAA,CACT,SAAA,CAAW,WAAA,CACX,MAAA,CAAQ,OACV,CACF,CAAA,CACA,MAAA,CAAQ,CACN,IAAA,CAAM,QAAA,CACN,YAAa,6DAAA,CACb,MAAA,CAAQ,CACN,OAAA,CAAS,gBAAA,CACT,SAAA,CAAW,gBAAA,CACX,MAAA,CAAQ,OACV,CACF,CAAA,CACA,QAAA,CAAU,CACR,IAAA,CAAM,SACN,WAAA,CAAa,sDAAA,CACb,MAAA,CAAQ,CACN,OAAA,CAAS,kBAAA,CACT,SAAA,CAAW,aAAA,CACX,MAAA,CAAQ,OACV,CACF,CAAA,CACA,MAAA,CAAQ,CACN,KAAM,QAAA,CACN,WAAA,CAAa,yDAAA,CACb,MAAA,CAAQ,CACN,OAAA,CAAS,oBAAA,CACT,SAAA,CAAW,aAAA,CACX,MAAA,CAAQ,OACV,CACF,CACF","file":"index.js","sourcesContent":["// Theme utilities and helpers\n\nexport type ThemeName = 'nostromo' | 'mother' | 'lv-426' | 'sulaco';\n\nexport const themes: Record<ThemeName, string> = {\n nostromo: 'nostromo',\n mother: 'mother',\n 'lv-426': 'lv-426',\n sulaco: 'sulaco',\n} as const;\n\n/**\n * Apply a theme to the document\n */\nexport function applyTheme(theme: ThemeName): void {\n if (typeof document !== 'undefined') {\n document.documentElement.setAttribute('data-theme', theme);\n }\n}\n\n/**\n * Get the current theme from the document\n */\nexport function getCurrentTheme(): ThemeName | null {\n if (typeof document === 'undefined') return null;\n \n const theme = document.documentElement.getAttribute('data-theme');\n return theme as ThemeName | null;\n}\n\n/**\n * Toggle between light and dark mode\n */\nexport function toggleDarkMode(): void {\n if (typeof document === 'undefined') return;\n \n const currentScheme = document.documentElement.getAttribute('data-color-scheme');\n const newScheme = currentScheme === 'dark' ? 'light' : 'dark';\n document.documentElement.setAttribute('data-color-scheme', newScheme);\n}\n\n/**\n * Set dark mode\n */\nexport function setDarkMode(isDark: boolean): void {\n if (typeof document === 'undefined') return;\n \n document.documentElement.setAttribute('data-color-scheme', isDark ? 'dark' : 'light');\n}\n\n/**\n * Get current color scheme\n */\nexport function getColorScheme(): 'light' | 'dark' | null {\n if (typeof document === 'undefined') return null;\n \n const scheme = document.documentElement.getAttribute('data-color-scheme');\n return scheme as 'light' | 'dark' | null;\n}\n\n/**\n * Check if system prefers dark mode\n */\nexport function prefersDarkMode(): boolean {\n if (typeof window === 'undefined') return false;\n \n return window.matchMedia('(prefers-color-scheme: dark)').matches;\n}\n\n/**\n * Listen for system color scheme changes\n */\nexport function onSystemColorSchemeChange(callback: (isDark: boolean) => void): () => void {\n if (typeof window === 'undefined') return () => {};\n \n const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');\n \n const handler = (e: MediaQueryListEvent) => {\n callback(e.matches);\n };\n \n mediaQuery.addEventListener('change', handler);\n \n // Return cleanup function\n return () => {\n mediaQuery.removeEventListener('change', handler);\n };\n}\n\n/**\n * Initialize theme system\n */\nexport function initializeTheme(defaultTheme: ThemeName = 'nostromo'): void {\n if (typeof document === 'undefined') return;\n \n // Set default theme if none is set\n if (!getCurrentTheme()) {\n applyTheme(defaultTheme);\n }\n \n // Set initial color scheme based on system preference\n if (!getColorScheme()) {\n setDarkMode(prefersDarkMode());\n }\n}\n","// Theme exports\nexport * from './utils';\n\n// Theme CSS imports (for bundlers that support CSS imports)\nimport './nostromo.css';\nimport './mother.css';\nimport './lv-426.css';\nimport './sulaco.css';\n\n// Theme names and descriptions\nexport const themeInfo = {\n nostromo: {\n name: 'Nostromo',\n description: 'Classic space industrial theme inspired by the USCSS Nostromo',\n colors: {\n primary: 'Purple/Blue',\n secondary: 'Dark Gray',\n accent: 'Green'\n }\n },\n mother: {\n name: 'Mother',\n description: 'Cold, clinical AI aesthetic inspired by the ship\\'s computer',\n colors: {\n primary: 'Cold Blue/Cyan',\n secondary: 'Clinical White',\n accent: 'Green'\n }\n },\n 'lv-426': {\n name: 'LV-426',\n description: 'Warm, rusty atmosphere inspired by the planet LV-426',\n colors: {\n primary: 'Warm Orange/Rust',\n secondary: 'Earth Tones',\n accent: 'Green'\n }\n },\n sulaco: {\n name: 'Sulaco',\n description: 'Modern, military-inspired aesthetic from the USS Sulaco',\n colors: {\n primary: 'Military Blue/Gray',\n secondary: 'Steel Tones',\n accent: 'Green'\n }\n }\n} as const;\n\nexport type ThemeInfo = typeof themeInfo;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jarllyng/nostromo",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Accessible React component library with CSS-first Tailwind v4 theming",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -257,6 +257,36 @@
|
|
|
257
257
|
"types": "./dist/components/core/sheet.d.ts",
|
|
258
258
|
"import": "./dist/components/core/sheet.js",
|
|
259
259
|
"require": "./dist/components/core/sheet.cjs"
|
|
260
|
+
},
|
|
261
|
+
"./components/core/alert-dialog": {
|
|
262
|
+
"types": "./dist/components/core/alert-dialog.d.ts",
|
|
263
|
+
"import": "./dist/components/core/alert-dialog.js",
|
|
264
|
+
"require": "./dist/components/core/alert-dialog.cjs"
|
|
265
|
+
},
|
|
266
|
+
"./components/core/toggle": {
|
|
267
|
+
"types": "./dist/components/core/toggle.d.ts",
|
|
268
|
+
"import": "./dist/components/core/toggle.js",
|
|
269
|
+
"require": "./dist/components/core/toggle.cjs"
|
|
270
|
+
},
|
|
271
|
+
"./components/core/aspect-ratio": {
|
|
272
|
+
"types": "./dist/components/core/aspect-ratio.d.ts",
|
|
273
|
+
"import": "./dist/components/core/aspect-ratio.js",
|
|
274
|
+
"require": "./dist/components/core/aspect-ratio.cjs"
|
|
275
|
+
},
|
|
276
|
+
"./components/core/context-menu": {
|
|
277
|
+
"types": "./dist/components/core/context-menu.d.ts",
|
|
278
|
+
"import": "./dist/components/core/context-menu.js",
|
|
279
|
+
"require": "./dist/components/core/context-menu.cjs"
|
|
280
|
+
},
|
|
281
|
+
"./components/core/hover-card": {
|
|
282
|
+
"types": "./dist/components/core/hover-card.d.ts",
|
|
283
|
+
"import": "./dist/components/core/hover-card.js",
|
|
284
|
+
"require": "./dist/components/core/hover-card.cjs"
|
|
285
|
+
},
|
|
286
|
+
"./components/core/scroll-area": {
|
|
287
|
+
"types": "./dist/components/core/scroll-area.d.ts",
|
|
288
|
+
"import": "./dist/components/core/scroll-area.js",
|
|
289
|
+
"require": "./dist/components/core/scroll-area.cjs"
|
|
260
290
|
}
|
|
261
291
|
},
|
|
262
292
|
"files": [
|
|
@@ -290,14 +320,20 @@
|
|
|
290
320
|
"tailwindcss": "^4.0.0"
|
|
291
321
|
},
|
|
292
322
|
"dependencies": {
|
|
323
|
+
"@radix-ui/react-alert-dialog": "^1.1.23",
|
|
293
324
|
"@radix-ui/react-collapsible": "^1.1.20",
|
|
325
|
+
"@radix-ui/react-context-menu": "^2.3.7",
|
|
294
326
|
"@radix-ui/react-dialog": "^1.1.23",
|
|
295
327
|
"@radix-ui/react-dropdown-menu": "^2.1.24",
|
|
328
|
+
"@radix-ui/react-hover-card": "^1.1.23",
|
|
296
329
|
"@radix-ui/react-popover": "^1.1.23",
|
|
330
|
+
"@radix-ui/react-scroll-area": "^1.2.18",
|
|
297
331
|
"@radix-ui/react-select": "^2.3.7",
|
|
298
332
|
"@radix-ui/react-slot": "^1.3.3",
|
|
299
333
|
"@radix-ui/react-switch": "^1.3.7",
|
|
300
334
|
"@radix-ui/react-tabs": "^1.1.21",
|
|
335
|
+
"@radix-ui/react-toggle": "^1.1.18",
|
|
336
|
+
"@radix-ui/react-toggle-group": "^1.1.19",
|
|
301
337
|
"class-variance-authority": "^0.7.1",
|
|
302
338
|
"clsx": "^2.1.1",
|
|
303
339
|
"date-fns": "^4.4.0",
|
|
@@ -387,6 +423,30 @@
|
|
|
387
423
|
{
|
|
388
424
|
"path": "dist/components/core/sheet.js",
|
|
389
425
|
"limit": "23 KB"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"path": "dist/components/core/alert-dialog.js",
|
|
429
|
+
"limit": "24 KB"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"path": "dist/components/core/toggle.js",
|
|
433
|
+
"limit": "18 KB"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"path": "dist/components/core/aspect-ratio.js",
|
|
437
|
+
"limit": "9 KB"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"path": "dist/components/core/context-menu.js",
|
|
441
|
+
"limit": "39 KB"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"path": "dist/components/core/hover-card.js",
|
|
445
|
+
"limit": "26 KB"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"path": "dist/components/core/scroll-area.js",
|
|
449
|
+
"limit": "16 KB"
|
|
390
450
|
}
|
|
391
451
|
]
|
|
392
452
|
}
|
package/dist/chunk-BX4VBLKZ.cjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
'use strict';var chunkITRGJNWL_cjs=require('./chunk-ITRGJNWL.cjs'),o=require('react'),e=require('@radix-ui/react-dropdown-menu');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var o__namespace=/*#__PURE__*/_interopNamespace(o);var e__namespace=/*#__PURE__*/_interopNamespace(e);var R=e__namespace.Root,b=e__namespace.Trigger,y=e__namespace.Group,g=e__namespace.Sub,h=e__namespace.RadioGroup,m="z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",d="relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none transition-colors focus:bg-muted focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s=o__namespace.forwardRef(({className:t,sideOffset:n=6,...r},i)=>o__namespace.createElement(e__namespace.Portal,null,o__namespace.createElement(e__namespace.Content,{ref:i,sideOffset:n,className:chunkITRGJNWL_cjs.a(m,t),...r})));s.displayName=e__namespace.Content.displayName;var u=o__namespace.forwardRef(({className:t,destructive:n,inset:r,...i},p)=>o__namespace.createElement(e__namespace.Item,{ref:p,className:chunkITRGJNWL_cjs.a(d,r&&"pl-8",n&&"text-destructive focus:bg-destructive/10 focus:text-destructive",t),...i}));u.displayName=e__namespace.Item.displayName;var c=o__namespace.forwardRef(({className:t,children:n,...r},i)=>o__namespace.createElement(e__namespace.CheckboxItem,{ref:i,className:chunkITRGJNWL_cjs.a(d,"pl-8",t),...r},o__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o__namespace.createElement(e__namespace.ItemIndicator,null,o__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5","aria-hidden":"true"},o__namespace.createElement("path",{d:"M13 4.5 6.5 11 3 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),n));c.displayName=e__namespace.CheckboxItem.displayName;var l=o__namespace.forwardRef(({className:t,children:n,...r},i)=>o__namespace.createElement(e__namespace.RadioItem,{ref:i,className:chunkITRGJNWL_cjs.a(d,"pl-8",t),...r},o__namespace.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o__namespace.createElement(e__namespace.ItemIndicator,null,o__namespace.createElement("span",{className:"h-2 w-2 rounded-full bg-current"}))),n));l.displayName=e__namespace.RadioItem.displayName;var f=o__namespace.forwardRef(({className:t,inset:n,...r},i)=>o__namespace.createElement(e__namespace.Label,{ref:i,className:chunkITRGJNWL_cjs.a("px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",n&&"pl-8",t),...r}));f.displayName=e__namespace.Label.displayName;var w=o__namespace.forwardRef(({className:t,...n},r)=>o__namespace.createElement(e__namespace.Separator,{ref:r,className:chunkITRGJNWL_cjs.a("-mx-1 my-1 h-px bg-border",t),...n}));w.displayName=e__namespace.Separator.displayName;function M({className:t,...n}){return o__namespace.createElement("span",{className:chunkITRGJNWL_cjs.a("ml-auto text-xs tracking-widest text-muted-foreground",t),...n})}M.displayName="DropdownMenuShortcut";var D=o__namespace.forwardRef(({className:t,inset:n,children:r,...i},p)=>o__namespace.createElement(e__namespace.SubTrigger,{ref:p,className:chunkITRGJNWL_cjs.a(d,"data-[state=open]:bg-muted",n&&"pl-8",t),...i},r,o__namespace.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"ml-auto h-3.5 w-3.5","aria-hidden":"true"},o__namespace.createElement("path",{d:"m6 4 4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));D.displayName=e__namespace.SubTrigger.displayName;var P=o__namespace.forwardRef(({className:t,...n},r)=>o__namespace.createElement(e__namespace.Portal,null,o__namespace.createElement(e__namespace.SubContent,{ref:r,className:chunkITRGJNWL_cjs.a(m,t),...n})));P.displayName=e__namespace.SubContent.displayName;exports.a=R;exports.b=b;exports.c=y;exports.d=g;exports.e=h;exports.f=s;exports.g=u;exports.h=c;exports.i=l;exports.j=f;exports.k=w;exports.l=M;exports.m=D;exports.n=P;//# sourceMappingURL=chunk-BX4VBLKZ.cjs.map
|
|
3
|
-
//# sourceMappingURL=chunk-BX4VBLKZ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/core/dropdown-menu.tsx"],"names":["DropdownMenu","e","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","menuSurface","menuItem","DropdownMenuContent","o","className","sideOffset","props","ref","cn","DropdownMenuItem","destructive","inset","DropdownMenuCheckboxItem","children","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSubTrigger","DropdownMenuSubContent"],"mappings":"0hBAeA,IAAMA,CAAAA,CAAqCC,kBACrCC,CAAAA,CAA4CD,YAAA,CAAA,OAAA,CAC5CE,EAA0CF,YAAA,CAAA,KAAA,CAC1CG,CAAAA,CAAwCH,iBACxCI,CAAAA,CAA+CJ,YAAA,CAAA,UAAA,CAE/CK,EACJ,gcAAA,CAOIC,CAAAA,CACJ,gOAIIC,CAAAA,CAA4BC,YAAA,CAAA,UAAA,CAGhC,CAAC,CAAE,SAAA,CAAAC,EAAW,UAAA,CAAAC,CAAAA,CAAa,EAAG,GAAGC,CAAM,EAAGC,CAAAA,GAI1CJ,YAAA,CAAA,aAAA,CAAuBR,oBAAtB,IAAA,CACCQ,YAAA,CAAA,aAAA,CAAuBR,qBAAtB,CACC,GAAA,CAAKY,EACL,UAAA,CAAYF,CAAAA,CACZ,UAAWG,mBAAAA,CAAGR,CAAAA,CAAaI,CAAS,CAAA,CACnC,GAAGE,EACN,CACF,CACD,EACDJ,CAAAA,CAAoB,WAAA,CAAoCP,qBAAQ,WAAA,CAWhE,IAAMc,EAAyBN,YAAA,CAAA,UAAA,CAG7B,CAAC,CAAE,SAAA,CAAAC,CAAAA,CAAW,YAAAM,CAAAA,CAAa,KAAA,CAAAC,EAAO,GAAGL,CAAM,EAAGC,CAAAA,GAC9CJ,YAAA,CAAA,aAAA,CAAuBR,kBAA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W,KAAA,CAAAO,EAAO,QAAA,CAAAE,CAAAA,CAAU,GAAGP,CAAM,CAAA,CAAGC,IAC3CJ,YAAA,CAAA,aAAA,CAAuBR,YAAA,CAAA,UAAA,CAAtB,CACC,GAAA,CAAKY,CAAAA,CACL,UAAWC,mBAAAA,CACTP,CAAAA,CACA,6BACAU,CAAAA,EAAS,MAAA,CACTP,CACF,CAAA,CACC,GAAGE,GAEHO,CAAAA,CACDV,YAAA,CAAA,aAAA,CAAC,OACC,OAAA,CAAQ,WAAA,CACR,KAAK,MAAA,CACL,SAAA,CAAU,sBACV,aAAA,CAAY,MAAA,CAAA,CAEZA,YAAA,CAAA,aAAA,CAAC,MAAA,CAAA,CACC,CAAA,CAAE,cAAA,CACF,OAAO,cAAA,CACP,WAAA,CAAY,IACZ,aAAA,CAAc,OAAA,CACd,eAAe,OAAA,CACjB,CACF,CACF,CACD,EACDe,EAAuB,WAAA,CACCvB,YAAA,CAAA,UAAA,CAAW,YAEnC,IAAMwB,CAAAA,CAA+BhB,wBAGnC,CAAC,CAAE,UAAAC,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,GAC1BJ,2BAAuBR,YAAA,CAAA,MAAA,CAAtB,IAAA,CACCQ,2BAAuBR,YAAA,CAAA,UAAA,CAAtB,CACC,IAAKY,CAAAA,CACL,SAAA,CAAWC,oBAAGR,CAAAA,CAAaI,CAAS,EACnC,GAAGE,CAAAA,CACN,CACF,CACD,EACDa,CAAAA,CAAuB,WAAA,CACCxB,YAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-BX4VBLKZ.cjs","sourcesContent":["import * as React from \"react\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * The menu that hangs off a button: row actions, account menus, overflow.\n *\n * Radix owns the hard parts - roving focus, typeahead, submenu timing, pointer\n * versus keyboard intent - so this is styling plus two defaults worth having in\n * one place rather than at every call site.\n *\n * `Select` is the neighbouring component and a different thing: it edits a form\n * value and has a selected state. A dropdown menu runs commands.\n */\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst menuSurface =\n \"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 \" +\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 \" +\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\";\n\nconst menuItem =\n \"relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none \" +\n \"transition-colors focus:bg-muted focus:text-foreground \" +\n \"data-[disabled]:pointer-events-none data-[disabled]:opacity-50\";\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 6, ...props }, ref) => (\n // Portalled: an un-portalled menu is clipped by any ancestor with\n // `overflow: hidden`, which in practice means every card and table it is used\n // in - the single most common way a menu appears half-drawn.\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> {\n /** Pulls the item into the destructive palette. */\n destructive?: boolean;\n /** Indents to line up with checkbox and radio items in the same menu. */\n inset?: boolean;\n}\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n DropdownMenuItemProps\n>(({ className, destructive, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n menuItem,\n inset && \"pl-8\",\n destructive &&\n \"text-destructive focus:bg-destructive/10 focus:text-destructive\",\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n // `checked` rides along in the spread rather than being destructured and\n // re-passed: under exactOptionalPropertyTypes, handing back an explicit\n // `undefined` is not the same as omitting the prop, and Radix's type rejects it.\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(menuItem, \"pl-8\", className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13 4.5 6.5 11 3 7.5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(menuItem, \"pl-8\", className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <span className=\"h-2 w-2 rounded-full bg-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground\",\n inset && \"pl-8\",\n className,\n )}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/** For a keyboard hint on the right of an item. Not interactive. */\nfunction DropdownMenuShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className,\n )}\n {...props}\n />\n );\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n menuItem,\n \"data-[state=open]:bg-muted\",\n inset && \"pl-8\",\n className,\n )}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"ml-auto h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m6 4 4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName;\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n};\n"]}
|
package/dist/chunk-E44BBSLT.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import {a}from'./chunk-AC2JBXHQ.js';import*as o from'react';import*as e from'@radix-ui/react-dropdown-menu';var R=e.Root,b=e.Trigger,y=e.Group,g=e.Sub,h=e.RadioGroup,m="z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",d="relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none transition-colors focus:bg-muted focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",s=o.forwardRef(({className:t,sideOffset:n=6,...r},i)=>o.createElement(e.Portal,null,o.createElement(e.Content,{ref:i,sideOffset:n,className:a(m,t),...r})));s.displayName=e.Content.displayName;var u=o.forwardRef(({className:t,destructive:n,inset:r,...i},p)=>o.createElement(e.Item,{ref:p,className:a(d,r&&"pl-8",n&&"text-destructive focus:bg-destructive/10 focus:text-destructive",t),...i}));u.displayName=e.Item.displayName;var c=o.forwardRef(({className:t,children:n,...r},i)=>o.createElement(e.CheckboxItem,{ref:i,className:a(d,"pl-8",t),...r},o.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o.createElement(e.ItemIndicator,null,o.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"h-3.5 w-3.5","aria-hidden":"true"},o.createElement("path",{d:"M13 4.5 6.5 11 3 7.5",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))),n));c.displayName=e.CheckboxItem.displayName;var l=o.forwardRef(({className:t,children:n,...r},i)=>o.createElement(e.RadioItem,{ref:i,className:a(d,"pl-8",t),...r},o.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},o.createElement(e.ItemIndicator,null,o.createElement("span",{className:"h-2 w-2 rounded-full bg-current"}))),n));l.displayName=e.RadioItem.displayName;var f=o.forwardRef(({className:t,inset:n,...r},i)=>o.createElement(e.Label,{ref:i,className:a("px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground",n&&"pl-8",t),...r}));f.displayName=e.Label.displayName;var w=o.forwardRef(({className:t,...n},r)=>o.createElement(e.Separator,{ref:r,className:a("-mx-1 my-1 h-px bg-border",t),...n}));w.displayName=e.Separator.displayName;function M({className:t,...n}){return o.createElement("span",{className:a("ml-auto text-xs tracking-widest text-muted-foreground",t),...n})}M.displayName="DropdownMenuShortcut";var D=o.forwardRef(({className:t,inset:n,children:r,...i},p)=>o.createElement(e.SubTrigger,{ref:p,className:a(d,"data-[state=open]:bg-muted",n&&"pl-8",t),...i},r,o.createElement("svg",{viewBox:"0 0 16 16",fill:"none",className:"ml-auto h-3.5 w-3.5","aria-hidden":"true"},o.createElement("path",{d:"m6 4 4 4-4 4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))));D.displayName=e.SubTrigger.displayName;var P=o.forwardRef(({className:t,...n},r)=>o.createElement(e.Portal,null,o.createElement(e.SubContent,{ref:r,className:a(m,t),...n})));P.displayName=e.SubContent.displayName;export{R as a,b,y as c,g as d,h as e,s as f,u as g,c as h,l as i,f as j,w as k,M as l,D as m,P as n};//# sourceMappingURL=chunk-E44BBSLT.js.map
|
|
3
|
-
//# sourceMappingURL=chunk-E44BBSLT.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/core/dropdown-menu.tsx"],"names":["DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuSub","DropdownMenuRadioGroup","menuSurface","menuItem","DropdownMenuContent","className","sideOffset","props","ref","cn","DropdownMenuItem","destructive","inset","DropdownMenuCheckboxItem","children","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","DropdownMenuSubTrigger","DropdownMenuSubContent"],"mappings":"4GAeA,IAAMA,CAAAA,CAAqC,OACrCC,CAAAA,CAA4C,CAAA,CAAA,OAAA,CAC5CC,EAA0C,CAAA,CAAA,KAAA,CAC1CC,CAA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aAGnC,CAAC,CAAE,UAAAf,CAAAA,CAAW,GAAGE,CAAM,CAAA,CAAGC,CAAAA,GAC1B,gBAAuB,CAAA,CAAA,MAAA,CAAtB,IAAA,CACC,gBAAuB,CAAA,CAAA,UAAA,CAAtB,CACC,IAAKA,CAAAA,CACL,SAAA,CAAWC,EAAGP,CAAAA,CAAaG,CAAS,EACnC,GAAGE,CAAAA,CACN,CACF,CACD,EACDa,CAAAA,CAAuB,WAAA,CACC,CAAA,CAAA,UAAA,CAAW,WAAA","file":"chunk-E44BBSLT.js","sourcesContent":["import * as React from \"react\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport { cn } from \"../../lib/utils\";\n\n/**\n * The menu that hangs off a button: row actions, account menus, overflow.\n *\n * Radix owns the hard parts - roving focus, typeahead, submenu timing, pointer\n * versus keyboard intent - so this is styling plus two defaults worth having in\n * one place rather than at every call site.\n *\n * `Select` is the neighbouring component and a different thing: it edits a form\n * value and has a selected state. A dropdown menu runs commands.\n */\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst menuSurface =\n \"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-background p-1 text-foreground shadow-lg \" +\n \"data-[state=open]:animate-in data-[state=closed]:animate-out \" +\n \"data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 \" +\n \"data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 \" +\n \"data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 \" +\n \"data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\";\n\nconst menuItem =\n \"relative flex cursor-pointer select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-none \" +\n \"transition-colors focus:bg-muted focus:text-foreground \" +\n \"data-[disabled]:pointer-events-none data-[disabled]:opacity-50\";\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 6, ...props }, ref) => (\n // Portalled: an un-portalled menu is clipped by any ancestor with\n // `overflow: hidden`, which in practice means every card and table it is used\n // in - the single most common way a menu appears half-drawn.\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;\n\nexport interface DropdownMenuItemProps extends React.ComponentPropsWithoutRef<\n typeof DropdownMenuPrimitive.Item\n> {\n /** Pulls the item into the destructive palette. */\n destructive?: boolean;\n /** Indents to line up with checkbox and radio items in the same menu. */\n inset?: boolean;\n}\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n DropdownMenuItemProps\n>(({ className, destructive, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n menuItem,\n inset && \"pl-8\",\n destructive &&\n \"text-destructive focus:bg-destructive/10 focus:text-destructive\",\n className,\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n // `checked` rides along in the spread rather than being destructured and\n // re-passed: under exactOptionalPropertyTypes, handing back an explicit\n // `undefined` is not the same as omitting the prop, and Radix's type rejects it.\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(menuItem, \"pl-8\", className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M13 4.5 6.5 11 3 7.5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName;\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(menuItem, \"pl-8\", className)}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <span className=\"h-2 w-2 rounded-full bg-current\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean;\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground\",\n inset && \"pl-8\",\n className,\n )}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;\n\n/** For a keyboard hint on the right of an item. Not interactive. */\nfunction DropdownMenuShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground\",\n className,\n )}\n {...props}\n />\n );\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n menuItem,\n \"data-[state=open]:bg-muted\",\n inset && \"pl-8\",\n className,\n )}\n {...props}\n >\n {children}\n <svg\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n className=\"ml-auto h-3.5 w-3.5\"\n aria-hidden=\"true\"\n >\n <path\n d=\"m6 4 4 4-4 4\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n </DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName;\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Portal>\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(menuSurface, className)}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n));\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName;\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioGroup,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuSub,\n DropdownMenuSubTrigger,\n DropdownMenuSubContent,\n};\n"]}
|