{"version":3,"file":"index.mjs","names":[],"sources":["../../src/native-select/index.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport { ChevronDownIcon } from \"lucide-react\";\nimport { cn } from \"../../lib\";\n\ntype NativeSelectProps = Omit<React.ComponentProps<\"select\">, \"size\"> & {\n  size?: \"sm\" | \"default\";\n};\n\nfunction NativeSelect({\n  className,\n  size = \"default\",\n  ...props\n}: NativeSelectProps) {\n  return (\n    <div\n      className={cn(\n        \"group/native-select relative w-fit has-[select:disabled]:opacity-50\",\n        className,\n      )}\n      data-slot=\"native-select-wrapper\"\n      data-size={size}\n    >\n      <select\n        data-slot=\"native-select\"\n        data-size={size}\n        className=\"border-input selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 w-full min-w-0 select-none appearance-none rounded-lg border bg-transparent py-1 pl-2.5 pr-8 text-sm outline-none transition-colors disabled:pointer-events-none disabled:cursor-not-allowed data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5\"\n        {...props}\n      />\n      <ChevronDownIcon\n        className=\"text-muted-foreground pointer-events-none absolute right-2.5 top-1/2 size-4 -translate-y-1/2 select-none\"\n        aria-hidden=\"true\"\n        data-slot=\"native-select-icon\"\n      />\n    </div>\n  );\n}\n\nfunction NativeSelectOption({ ...props }: React.ComponentProps<\"option\">) {\n  return <option data-slot=\"native-select-option\" {...props} />;\n}\n\nfunction NativeSelectOptGroup({\n  className,\n  ...props\n}: React.ComponentProps<\"optgroup\">) {\n  return (\n    <optgroup\n      data-slot=\"native-select-optgroup\"\n      className={cn(className)}\n      {...props}\n    />\n  );\n}\n\nexport { NativeSelect, NativeSelectOptGroup, NativeSelectOption };\n"],"mappings":";;;;;AASA,SAAS,aAAa,EACpB,WACA,OAAO,WACP,GAAG,SACiB;AACpB,QACE,qBAAC,OAAD;EACE,WAAW,GACT,uEACA,UACD;EACD,aAAU;EACV,aAAW;YANb,CAQE,oBAAC,UAAD;GACE,aAAU;GACV,aAAW;GACX,WAAU;GACV,GAAI;GACJ,CAAA,EACF,oBAAC,iBAAD;GACE,WAAU;GACV,eAAY;GACZ,aAAU;GACV,CAAA,CACE;;;AAIV,SAAS,mBAAmB,EAAE,GAAG,SAAyC;AACxE,QAAO,oBAAC,UAAD;EAAQ,aAAU;EAAuB,GAAI;EAAS,CAAA;;AAG/D,SAAS,qBAAqB,EAC5B,WACA,GAAG,SACgC;AACnC,QACE,oBAAC,YAAD;EACE,aAAU;EACV,WAAW,GAAG,UAAU;EACxB,GAAI;EACJ,CAAA"}