{
  "name": "ui-select",
  "type": "registry:ui",
  "title": "Select",
  "description": "Panelo primitive: select.",
  "author": "Panelo UI <https://www.paneloui.com>",
  "dependencies": [
    "@ui-sdk/react@0.1.0-beta.2",
    "lucide-react@^1.73.0"
  ],
  "registryDependencies": [
    "https://www.paneloui.com/r/panelo-theme.json",
    "https://www.paneloui.com/r/lib-slot.json",
    "https://www.paneloui.com/r/lib-utils.json"
  ],
  "files": [
    {
      "path": "components/panelo-ui/ui/select.tsx",
      "type": "registry:file",
      "target": "components/panelo-ui/ui/select.tsx",
      "content": "'use client'\n\nimport * as React from 'react'\nimport {\n    SelectContent as SelectContentPrimitive,\n    SelectGroupLabel,\n    SelectItem as SelectItemPrimitive,\n    SelectItemIcon,\n    SelectItemIndicator,\n    SelectSeparator as SelectSeparatorPrimitive,\n    SelectTrigger as SelectTriggerPrimitive,\n    SelectValue,\n    SelectValueIcon,\n} from '@ui-sdk/react/select'\nimport { CheckIcon, ChevronsUpDown } from 'lucide-react'\n\nimport { cn } from '@/components/panelo-ui/lib/utils'\nimport { type WithNodeChildren } from '@/components/panelo-ui/lib/slot'\n\nfunction SelectTrigger({ className, children, ...props }: WithNodeChildren<React.ComponentProps<typeof SelectTriggerPrimitive>>) {\n    return (\n        <SelectTriggerPrimitive\n            className={cn(\n                \"border-input data-placeholder:text-muted-foreground aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='text-'])]:text-muted-foreground flex h-9 w-full items-center justify-between rounded-lg border bg-transparent px-3 py-2 text-sm transition-colors outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 dark:bg-input/30 dark:hover:bg-input/50 disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&>span]:line-clamp-1 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n                className\n            )}\n            {...props}>\n            {children}\n            <ChevronsUpDown\n                aria-hidden\n                className=\"size-3 opacity-50\"\n            />\n        </SelectTriggerPrimitive>\n    )\n}\n\n// `position=\"item-aligned\"` maps to the primitive's `alignItemWithTrigger`.\nfunction SelectContent({ className, position, ...props }: React.ComponentProps<typeof SelectContentPrimitive> & { position?: 'item-aligned' | 'popper' }) {\n    return (\n        <SelectContentPrimitive\n            sideOffset={4}\n            alignItemWithTrigger={position === 'item-aligned'}\n            className={cn('bg-popover text-popover-foreground z-50 max-h-[min(24rem,var(--available-height))] min-w-[max(8rem,var(--anchor-width))] origin-(--transform-origin) overflow-y-auto rounded-lg p-1 shadow-md ring-1 ring-foreground/10 outline-none transition-[opacity,scale] duration-150 data-ending-style:scale-95 data-ending-style:opacity-0 data-starting-style:scale-95 data-starting-style:opacity-0', className)}\n            {...props}\n        />\n    )\n}\n\n// SelectLabel heads a group here; the primitive's own SelectLabel names the trigger, so this maps to the group label.\nfunction SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectGroupLabel>) {\n    return (\n        <SelectGroupLabel\n            className={cn('px-2 py-1.5 text-sm font-medium text-muted-foreground', className)}\n            {...props}\n        />\n    )\n}\n\nfunction SelectItem({ className, children, ...props }: WithNodeChildren<React.ComponentProps<typeof SelectItemPrimitive>>) {\n    return (\n        <SelectItemPrimitive\n            className={cn(\"data-highlighted:bg-accent data-highlighted:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground outline-hidden relative flex w-full cursor-default select-none items-center gap-2 rounded-md py-1.5 pl-2 pr-8 text-sm data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0\", className)}\n            {...props}>\n            <SelectItemIndicator className=\"absolute right-2 flex size-3.5 items-center justify-center\">\n                <CheckIcon\n                    className=\"size-3\"\n                    strokeWidth={3}\n                />\n            </SelectItemIndicator>\n            {children}\n        </SelectItemPrimitive>\n    )\n}\n\nfunction SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectSeparatorPrimitive>) {\n    return (\n        <SelectSeparatorPrimitive\n            className={cn('bg-border pointer-events-none -mx-1 my-1 h-px', className)}\n            {...props}\n        />\n    )\n}\n\nexport { Select, SelectGroup } from '@ui-sdk/react/select'\nexport { SelectContent, SelectItem, SelectItemIcon, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, SelectValueIcon }\n"
    }
  ]
}