{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "select-inset-01",
  "type": "registry:item",
  "title": "Select with Inset Label",
  "description": "A select dropdown with label displayed inside the container above the selected value",
  "dependencies": [
    "@mui/material",
    "lucide-react",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "components/select-inset-01/select-inset-01.tsx",
      "target": "src/mui-treasury/components/select-inset-01/select-inset-01.tsx",
      "content": "'use client';\n\nimport * as React from 'react';\n\nimport FormControl from '@mui/material/FormControl';\nimport InputLabel from '@mui/material/InputLabel';\nimport MenuItem from '@mui/material/MenuItem';\nimport Select, { SelectProps } from '@mui/material/Select';\nimport { ChevronDown } from 'lucide-react';\n\nexport interface SelectInset01Props extends Omit<SelectProps, 'label'> {\n  label: string;\n  options: Array<{ value: string; label: string }>;\n}\n\nexport function SelectInset01({\n  label = 'Select an option',\n  options = [],\n  value,\n  onChange,\n  fullWidth = true,\n  ...props\n}: SelectInset01Props) {\n  const selectId = React.useId();\n\n  return (\n    <FormControl fullWidth={fullWidth} variant=\"filled\">\n      <InputLabel\n        htmlFor={selectId}\n        sx={{\n          '&.MuiInputLabel-shrink': {\n            transform: 'translate(12px, 7px) scale(0.9)',\n          },\n        }}\n      >\n        {label}\n      </InputLabel>\n      <Select\n        variant=\"filled\"\n        id={selectId}\n        value={value}\n        onChange={onChange}\n        displayEmpty\n        IconComponent={ChevronDown}\n        sx={{\n          minHeight: 56,\n          borderRadius: 1,\n          border: 1,\n          borderColor: 'divider',\n          backgroundColor: 'background.paper',\n          '&:hover, &.Mui-focused': {\n            backgroundColor: 'background.paper',\n            borderColor: 'primary.main',\n          },\n          '& .MuiSelect-select': {\n            pt: 1.5,\n            pb: 1.5,\n            px: 2,\n          },\n          '&::before,::after': {\n            display: 'none',\n          },\n          '& .MuiSelect-icon': {\n            fontSize: '1.25rem',\n            width: '1em',\n            height: '1em',\n          },\n        }}\n        {...props}\n      >\n        <MenuItem value=\"NONE\">\n          <em>None</em>\n        </MenuItem>\n        {options.map((option) => (\n          <MenuItem key={option.value} value={option.value}>\n            {option.label}\n          </MenuItem>\n        ))}\n      </Select>\n    </FormControl>\n  );\n}\n",
      "type": "registry:item"
    },
    {
      "path": "components/select-inset-01/index.ts",
      "target": "src/mui-treasury/components/select-inset-01/index.ts",
      "content": "export * from './select-inset-01';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "category": "primitive",
    "subcategory": "select"
  }
}