,\r\n suffix: '',\r\n includeThousandsSeparator: true,\r\n thousandsSeparatorSymbol: ',',\r\n allowDecimal: true,\r\n decimalSymbol: '.',\r\n decimalLimit: 2, \u002F\u002F how many digits allowed after the decimal\r\n integerLimit: 7, \u002F\u002F limit length of integer numbers\r\n allowNegative: false,\r\n allowLeadingZeroes: false,\r\n}\r\n\r\nconst CurrencyInput = ({ maskOptions, ...inputProps }) =\u003E {\r\n const currencyMask = createNumberMask({\r\n ...defaultMaskOptions,\r\n ...maskOptions,\r\n })\r\n\r\n return \u003CMaskedInput mask={currencyMask} {...inputProps} \u002F\u003E\r\n}\r\n\r\nCurrencyInput.defaultProps = {\r\n inputMode: 'numeric',\r\n maskOptions: {},\r\n}\r\n\r\nCurrencyInput.propTypes = {\r\n inputmode: PropTypes.string,\r\n maskOptions: PropTypes.shape({\r\n prefix: PropTypes.string,\r\n suffix: PropTypes.string,\r\n includeThousandsSeparator: PropTypes.boolean,\r\n thousandsSeparatorSymbol: PropTypes.string,\r\n allowDecimal: PropTypes.boolean,\r\n decimalSymbol: PropTypes.string,\r\n decimalLimit: PropTypes.string,\r\n requireDecimal: PropTypes.boolean,\r\n allowNegative: PropTypes.boolean,\r\n allowLeadingZeroes: PropTypes.boolean,\r\n integerLimit: PropTypes.number,\r\n }),\r\n}\r\n\r\nexport default CurrencyInput\r\n","directory_shortid":"GXOoy","id":"9587f046-88c6-4dec-91c9-22b0451f2d47","inserted_at":"2019-09-02T22:27:54","is_binary":false,"shortid":"Z6W98","source_id":"fbfdcb2f-2c19-4e00-aa67-e91f874f3762","title":"CurrencyInput.js","updated_at":"2019-09-02T23:25:08"},{"code":"{\n \"trailingComma\": \"es5\",\n \"tabWidth\": 2,\n \"semi\": false,\n \"singleQuote\": true\n}","directory_shortid":null,"id":"07921ca7-549d-4cc8-9274-b7fdf6e2ddf4","inserted_at":"2019-09-02T22:31:59","is_binary":false,"shortid":"xzXon","source_id":"fbfdcb2f-2c19-4e00-aa67-e91f874f3762","title":".prettierrc","updated_at":"2019-09-02T22:32:45"},{"code":"{\n \"name\": \"react-currency-input-with-react-text-mask\",\n \"version\": \"1.0.0\",\n \"description\": \"\",\n \"keywords\": [],\n \"main\": \"src\u002Findex.js\",\n \"dependencies\": {\n \"react\": \"16.8.6\",\n \"react-dom\": \"16.8.6\",\n \"react-scripts\": \"2.1.8\",\n \"react-text-mask\": \"5.4.3\",\n \"text-mask-addons\": \"3.8.0\"\n },\n \"devDependencies\": {\n \"typescript\": \"3.3.3\"\n },\n \"scripts\": {\n \"start\": \"react-scripts start\",\n \"build\": \"react-scripts build\",\n \"test\": \"react-scripts test --env=jsdom\",\n \"eject\": \"react-scripts eject\"\n },\n \"browserslist\": [\n \"\u003E0.2%\",\n \"not dead\",\n \"not ie \u003C= 11\",\n \"not op_mini all\"\n ]\n}","directory_shortid":null,"id":"564dab70-4dc2-44a4-a4f1-f53f1c062e7e","inserted_at":"2019-09-02T22:27:54","is_binary":false,"shortid":"ZGQK6","source_id":"fbfdcb2f-2c19-4e00-aa67-e91f874f3762","title":"package.json","updated_at":"2019-04-25T21:03:30"},{"code":"\u003C!DOCTYPE html\u003E\n\u003Chtml lang=\"en\"\u003E\n\n\u003Chead\u003E\n\t\u003Cmeta charset=\"utf-8\"\u003E\n\t\u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\"\u003E\n\t\u003Cmeta name=\"theme-color\" content=\"#000000\"\u003E\n\t\u003C!--\n manifest.json provides metadata used when your web app is added to the\n homescreen on Android. See https:\u002F\u002Fdevelopers.google.com\u002Fweb\u002Ffundamentals\u002Fengage-and-retain\u002Fweb-app-manifest\u002F\n --\u003E\n\t\u003Clink rel=\"manifest\" href=\"%PUBLIC_URL%\u002Fmanifest.json\"\u003E\n\t\u003Clink rel=\"shortcut icon\" href=\"%PUBLIC_URL%\u002Ffavicon.ico\"\u003E\n\t\u003C!--\n Notice the use of %PUBLIC_URL% in the tags above.\n It will be replaced with the URL of the `public` folder during the build.\n Only files inside the `public` folder can be referenced from the HTML.\n\n Unlike \"\u002Ffavicon.ico\" or \"favicon.ico\", \"%PUBLIC_URL%\u002Ffavicon.ico\" will\n work correctly both with client-side routing and a non-root public URL.\n Learn how to configure a non-root public URL by running `npm run build`.\n --\u003E\n\t\u003Ctitle\u003EReact App\u003C\u002Ftitle\u003E\n\u003C\u002Fhead\u003E\n\n\u003Cbody\u003E\n\t\u003Cnoscript\u003E\n\t\tYou need to enable JavaScript to run this app.\n\t\u003C\u002Fnoscript\u003E\n\t\u003Cdiv id=\"root\"\u003E\u003C\u002Fdiv\u003E\n\t\u003C!--\n This HTML file is a template.\n If you open it directly in the browser, you will see an empty page.\n\n You can add webfonts, meta tags, or analytics to this file.\n The build step will place the bundled scripts into the \u003Cbody\u003E tag.\n\n To begin the development, run `npm start` or `yarn start`.\n To create a production bundle, use `npm run build` or `yarn build`.\n --\u003E\n\u003C\u002Fbody\u003E\n\n\u003C\u002Fhtml\u003E","directory_shortid":"rgkK4","id":"d3a32bf3-0eb9-48f3-9bd3-84cc21858a9d","inserted_at":"2019-09-02T22:27:54","is_binary":false,"shortid":"BA1N","source_id":"fbfdcb2f-2c19-4e00-aa67-e91f874f3762","title":"index.html","updated_at":"2019-04-25T20:06:36"},{"code":"import '.\u002Fstyles.css'\n\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport CurrencyInput from '.\u002FCurrencyInput'\n\nfunction App() {\n return (\n \u003Cdiv className=\"App\"\u003E\n \u003Ch1\u003EReact Currency Input\u003C\u002Fh1\u003E\n \u003Ch3\u003Ewith react-text-mask\u003C\u002Fh3\u003E\n \u003CCurrencyInput placeholder=\"$0.00\" type=\"text\" \u002F\u003E\n \u003C\u002Fdiv\u003E\n )\n}\n\nconst rootElement = document.getElementById('root')\nReactDOM.render(\u003CApp \u002F\u003E, rootElement)\n","directory_shortid":"GXOoy","id":"d094457f-0193-42a5-baf6-65717b6dd167","inserted_at":"2019-09-02T22:27:54","is_binary":false,"shortid":"wRo98","source_id":"fbfdcb2f-2c19-4e00-aa67-e91f874f3762","title":"index.js","updated_at":"2019-09-02T23:25:19"}],"version":50,"room_id":null,"external_resources":[],"preview_secret":null,"user_liked":false,"author":{"avatar_url":"https:\u002F\u002Favatars2.githubusercontent.com\u002Fu\u002F5567838?v=4","id":"e12220d6-9492-4f4d-bb42-349586e58ff7","name":"Nick Nish","subscription_plan":null,"subscription_since":null,"username":"nicknish"}};