{"version":3,"file":"PrefixSelect.CUFox6Eo.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/OwvrCGr42VRACOCOZscM/MmEQhnKFgxv2D5H9eA6i/PrefixSelect.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Prefix / title selector for a Framer form.\n *\n * Renders a real native <select> with a `name`, so it is part of the\n * surrounding <form> and Framer includes its value on submit (same way\n * the built-in fields and honeypots are collected). With the form's\n * Google Sheets connection, the value lands in the column whose header\n * matches `name` (default \"Title\").\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 220\n * @framerIntrinsicHeight 40\n */export default function PrefixSelect(props){const{name,placeholder,options,required,textColor,placeholderColor,borderColor,focusBorderColor,fontSize,style}=props;const[value,setValue]=React.useState(\"\");const[focused,setFocused]=React.useState(false);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",display:\"flex\",alignItems:\"center\",...style},children:[/*#__PURE__*/_jsxs(\"select\",{name:name,required:required,value:value,onChange:e=>setValue(e.target.value),onFocus:()=>setFocused(true),onBlur:()=>setFocused(false),style:{appearance:\"none\",WebkitAppearance:\"none\",width:\"100%\",background:\"transparent\",border:\"none\",borderBottom:`1px solid ${focused?focusBorderColor:borderColor}`,borderRadius:0,padding:\"10px 20px 10px 0px\",margin:0,fontFamily:\"Inter, sans-serif\",fontWeight:400,fontSize:`${fontSize}px`,lineHeight:\"1.2em\",letterSpacing:\"0em\",color:value===\"\"?placeholderColor:textColor,cursor:\"pointer\",outline:\"none\",textOverflow:\"ellipsis\",transition:\"border-color 0.2s ease\"},children:[/*#__PURE__*/_jsx(\"option\",{value:\"\",disabled:true,hidden:true,children:placeholder}),options.map(opt=>/*#__PURE__*/_jsx(\"option\",{value:opt,style:{color:\"#000\"},children:opt},opt))]}),/*#__PURE__*/_jsx(\"svg\",{width:\"10\",height:\"6\",viewBox:\"0 0 10 6\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{position:\"absolute\",right:0,pointerEvents:\"none\"},children:/*#__PURE__*/_jsx(\"path\",{d:\"M1 1L5 5L9 1\",stroke:borderColor,strokeWidth:\"1\"})})]});}PrefixSelect.defaultProps={name:\"Title\",placeholder:\"Title\",options:[\"Mr.\",\"Mrs.\",\"Ms.\"],required:false,textColor:\"rgb(255, 255, 255)\",placeholderColor:\"rgba(255, 255, 255, 0.5)\",borderColor:\"rgba(255, 255, 255, 0.5)\",focusBorderColor:\"rgb(255, 255, 255)\",fontSize:14};addPropertyControls(PrefixSelect,{name:{type:ControlType.String,title:\"Field Name\",defaultValue:\"Title\"},placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Title\"},options:{type:ControlType.Array,title:\"Options\",control:{type:ControlType.String},defaultValue:[\"Mr.\",\"Mrs.\",\"Ms.\"]},required:{type:ControlType.Boolean,title:\"Required\",defaultValue:false},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"rgb(255, 255, 255)\"},placeholderColor:{type:ControlType.Color,title:\"Placeholder\",defaultValue:\"rgba(255, 255, 255, 0.5)\"},borderColor:{type:ControlType.Color,title:\"Border\",defaultValue:\"rgba(255, 255, 255, 0.5)\"},focusBorderColor:{type:ControlType.Color,title:\"Focus Border\",defaultValue:\"rgb(255, 255, 255)\"},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:14,min:8,max:48,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PrefixSelect\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"40\",\"framerIntrinsicWidth\":\"220\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PrefixSelect.map"],"mappings":"6K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