{"version":3,"file":"InputTextRectangle.Bkc_9wZn.mjs","names":["useState","useState"],"sources":["https:/framerusercontent.com/modules/4JjDcqEytVE4COOnttwq/v6duKcFp6D5W0pCLlrBn/DollarSlider.js","https:/framerusercontent.com/modules/av3VsUVktZDxh1I7YGlD/YPwnUdNMlY5dwS01jcrH/InputTextRectangle.js"],"sourcesContent":["// Slider component that changes dollar value per day from $0/Day to $100/Day\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function DollarSlider(props){const{minValue,maxValue,defaultValue,prefix,suffix,trackColor,fillColor,thumbColor,thumbStrokeSize,thumbStrokeColor,textColor,font,trackThickness,thumbSize}=props;const[value,setValue]=useState(defaultValue);const handleChange=e=>{startTransition(()=>{setValue(Number(e.target.value));});};const percentage=(value-minValue)/(maxValue-minValue)*100;return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"flex\",flexDirection:\"column\",gap:16},children:[/*#__PURE__*/_jsxs(\"div\",{style:{...font,color:textColor,width:\"max-content\"},children:[prefix,value,suffix]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:trackThickness,borderRadius:trackThickness/2,backgroundColor:trackColor,position:\"relative\",overflow:\"visible\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:0,top:0,height:\"100%\",width:`${percentage}%`,backgroundColor:fillColor,borderRadius:trackThickness/2,transition:\"width 0.1s ease\"}})}),/*#__PURE__*/_jsx(\"input\",{type:\"range\",min:minValue,max:maxValue,value:value,onChange:handleChange,style:{position:\"absolute\",top:\"50%\",left:0,width:\"100%\",height:trackThickness,transform:\"translateY(-50%)\",opacity:0,cursor:\"pointer\",margin:0},\"aria-label\":\"Dollar amount slider\",\"aria-valuemin\":minValue,\"aria-valuemax\":maxValue,\"aria-valuenow\":value}),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",top:\"50%\",left:`${percentage}%`,width:thumbSize,height:thumbSize,borderRadius:\"50%\",backgroundColor:thumbColor,border:`${thumbStrokeSize}px solid ${thumbStrokeColor}`,transform:\"translate(-50%, -50%)\",pointerEvents:\"none\",boxShadow:\"0 2px 4px rgba(0,0,0,0.2)\",transition:\"left 0.1s ease\"}})]})]});}addPropertyControls(DollarSlider,{minValue:{type:ControlType.Number,title:\"Min Value\",defaultValue:0,step:1},maxValue:{type:ControlType.Number,title:\"Max Value\",defaultValue:100,step:1},defaultValue:{type:ControlType.Number,title:\"Default Value\",defaultValue:50,min:0,max:100,step:1},prefix:{type:ControlType.String,title:\"Prefix\",defaultValue:\"$\"},suffix:{type:ControlType.String,title:\"Suffix\",defaultValue:\"/Day\"},trackThickness:{type:ControlType.Number,title:\"Track Thickness\",defaultValue:8,min:2,max:20,step:1},trackColor:{type:ControlType.Color,title:\"Track Color\",defaultValue:\"#EEEEEE\"},fillColor:{type:ControlType.Color,title:\"Fill Color\",defaultValue:\"#000000\"},thumbSize:{type:ControlType.Number,title:\"Thumb Size\",defaultValue:20,min:10,max:40,step:1},thumbColor:{type:ControlType.Color,title:\"Thumb Color\",defaultValue:\"#000000\"},thumbStrokeSize:{type:ControlType.Number,title:\"Thumb Stroke Size\",defaultValue:0,min:0,max:10,step:1},thumbStrokeColor:{type:ControlType.Color,title:\"Thumb Stroke Color\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"32px\",variant:\"Bold\",letterSpacing:\"-0.03em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DollarSlider\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DollarSlider.map","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState,startTransition}from\"react\";/**\n * Input Text Rectangle\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 50\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function InputTextRectangle(props){const{placeholder,backgroundColor,textColor,placeholderColor,borderColor,borderWidth,borderRadius,font,style}=props;const[value,setValue]=useState(\"\");const handleChange=e=>{startTransition(()=>setValue(e.target.value));};return /*#__PURE__*/_jsxs(\"div\",{style:{...style,width:\"100%\",height:\"100%\",position:\"relative\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                    input::placeholder {\n                        color: ${placeholderColor};\n                        opacity: 1;\n                    }\n                `}),/*#__PURE__*/_jsx(\"textarea\",{value:value,onChange:handleChange,placeholder:placeholder,style:{width:\"100%\",height:\"100%\",backgroundColor,color:textColor,border:`${borderWidth}px solid ${borderColor}`,borderRadius,padding:\"0 12px\",outline:\"none\",boxSizing:\"border-box\",display:\"flex\",alignItems:\"center\",resize:\"none\",...font},\"aria-label\":placeholder||\"Text input\"})]});}addPropertyControls(InputTextRectangle,{placeholder:{type:ControlType.String,title:\"Placeholder\",defaultValue:\"Enter text...\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},placeholderColor:{type:ControlType.Color,title:\"Placeholder Color\",defaultValue:\"#CCCCCC\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#CCCCCC\"},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:0,max:10,step:1,unit:\"px\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:8,min:0,max:50,step:1,unit:\"px\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"15px\",variant:\"Medium\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"InputTextRectangle\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"300\",\"framerIntrinsicHeight\":\"50\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InputTextRectangle.map"],"mappings":"oLAIG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,WAAS,WAAS,eAAa,SAAO,SAAO,aAAW,YAAU,aAAW,kBAAgB,mBAAiB,YAAU,OAAK,iBAAe,aAAW,EAAW,CAAC,EAAM,GAAUA,EAAS,EAAa,CAAO,EAAa,GAAG,CAAC,MAAoB,CAAC,EAAS,OAAO,EAAE,OAAO,MAAM,CAAC,EAAG,EAAS,GAAY,EAAM,IAAW,EAAS,GAAU,IAAI,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,QAAQ,OAAO,cAAc,SAAS,IAAI,GAAG,CAAC,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,GAAG,EAAK,MAAM,EAAU,MAAM,cAAc,CAAC,SAAS,CAAC,EAAO,EAAM,EAAO,CAAC,CAAC,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,EAAe,aAAa,EAAe,EAAE,gBAAgB,EAAW,SAAS,WAAW,SAAS,UAAU,CAAC,SAAsB,EAAK,MAAM,CAAC,MAAM,C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