{"_id":"@artifak/text-input","_rev":"3-08effd899954c74f2d8a4a3d35951c7a","name":"@artifak/text-input","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.1":{"name":"@artifak/text-input","version":"1.0.1","description":"Text input components which comprises typeos of text, tel, url, email, search and password.","keywords":[],"author":{"name":"Julian Low"},"license":"ISC","main":"dist/text-input.cjs.js","module":"dist/text-input.esm.js","src":"src/index.tsx","types":"dist/src/index.d.ts","directories":{"src":"src","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/heyjul3s/artifak.git"},"scripts":{"build":"rimraf dist && builder","test":"echo \"Error: run tests from root\" && exit 1"},"bugs":{"url":"https://github.com/heyjul3s/artifak/issues"},"homepage":"https://github.com/heyjul3s/artifak#readme","devDependencies":{"@artifak/bundler":"^1.1.3","@types/react":"^17.0.0","@types/react-dom":"^17.0.0","@types/styled-components":"^5.1.7","@types/styled-system":"^5.1.10","react":"^17.0.1","react-dom":"^17.0.1","styled-components":"^5.2.1","styled-system":"^5.1.5"},"dependencies":{"@artifak/component-generator":"^2.0.0"},"_id":"@artifak/text-input@1.0.1","_nodeVersion":"10.23.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-9ty7gm7J0g7ZavEgwiC4LWhm+mRXNtEL7QmABh6uHBBBhhFpQJnNIZ5VGqSqhLx2Ev08x75M1HJKJHbvycv2TQ==","shasum":"077d1d22ce4cb05b11d7aa87e1547f1aaa321836","tarball":"https://registry.npmjs.org/@artifak/text-input/-/text-input-1.0.1.tgz","fileCount":15,"unpackedSize":401748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/SgmCRA9TVsSAnZWagAAsrsP/37Kt8kgeTYARGaYyf9v\nXBW4H+cnJdZyPUtQcRdlrbuDIWC0DGYgt3tweHKuM+63WAU4LM6cWxTrdTrS\n0s0RCnfsNSMkMoDX8zsvLb0hYPPwzPRS4O9slalbNGkpHypT3fT0KBEmX18J\n7bG28FB/MdlzidDiCcNaLGhwYftUdvrBlOo5m2AcxsBEHPPcVJamvKU4UJ0x\nQUG3ByBx/MtqnO5ER8W1nCMpJHvWk2jXLK5TczYn27tUcVRLhMppgX4BYX7A\nQziUDy8KoUFI4S/mgeVzBfSK+I+5VfAvMHwO8YP35s+UDeaiMCstpfG1yfjZ\nxpwM5iu21VVY4ObGatngrVlwYak7O9aJPFi2/HmHlHJhBUSO1INCccy4I9am\nCTthoYA6Y7Jmtj3v+xNc5juWXgMfVVdVmai+mOUzOh9/dWoctSXeth2V6laj\n9v/7cF4eLLBn4QZBbcSy2ydpmAkXHLA9F/LQ0sxIs/2CTbQEJ26lrHK0Hs9P\n7O4UuN2wQTCuUGfOvQP+tgxPv1qsWHeQqIWyhsltsXD1d2dblCvIXVeClEcN\nAOBPELq9cb5q/pNsNJlyewGRunPXfqGJA0qNahLLHRb1Yheh0i0FxhaHLb83\ngbVMqwcZkzeD5/zpHIVuzjys0tKbOnwBX8jTzaPs+wq3Mh7FtbKfyWGYToRq\nhDng\r\n=qkNn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICh4ndnxwVaOOczCDtkwkxpTvKfP+zSzAyCGWxglxOqQAiAJHtqdF1UKsuK08pcEDo8IKB/xTgN5GP1LlmskDrvzoA=="}]},"_npmUser":{"name":"heyjules","email":"julian.cy.low@gmail.com"},"maintainers":[{"name":"heyjules","email":"julian.cy.low@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/text-input_1.0.1_1610426405581_0.38320350048961416"},"_hasShrinkwrap":false},"1.0.2":{"name":"@artifak/text-input","version":"1.0.2","description":"Text input components which comprises typeos of text, tel, url, email, search and password.","keywords":[],"author":{"name":"Julian Low"},"license":"ISC","main":"dist/text-input.cjs.js","module":"dist/text-input.esm.js","src":"src/index.tsx","types":"dist/src/index.d.ts","directories":{"src":"src","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/heyjul3s/artifak.git"},"scripts":{"build":"rimraf dist && builder","test":"echo \"Error: run tests from root\" && exit 1"},"bugs":{"url":"https://github.com/heyjul3s/artifak/issues"},"homepage":"https://github.com/heyjul3s/artifak#readme","devDependencies":{"@artifak/bundler":"^1.1.3","@types/react":"^17.0.1","@types/react-dom":"^17.0.0","@types/styled-components":"^5.1.7","@types/styled-system":"^5.1.10","react":"^17.0.1","react-dom":"^17.0.1","styled-components":"^5.2.1","styled-system":"^5.1.5"},"dependencies":{"@artifak/component-generator":"^2.0.3"},"_id":"@artifak/text-input@1.0.2","_nodeVersion":"10.23.2","_npmVersion":"6.14.10","dist":{"integrity":"sha512-ae9Bo/kpJabFzPbWNINGfucuKMQMaGeZvAN968FlIUDFLPf/YOvnDb7JHOFLGRpLX/hpS90sWp5ZcdJh/V0rfg==","shasum":"6c3c88f501373cb93cccd85f2e82375e981d1f92","tarball":"https://registry.npmjs.org/@artifak/text-input/-/text-input-1.0.2.tgz","fileCount":15,"unpackedSize":400568,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLasxCRA9TVsSAnZWagAAofkQAJmQ4V/BdcM5QbWhXO/b\nj0van6kQevjU7CggsB92YkrvKhFSgKea5mXsYjQeKU88rrQcfxVtl4bS0pTv\nodbYTjmmU/Y7R24LFEIGgGgWh09ATxdmkZHPvaBXOCOqek47JF1XWJp+S/80\n7w7x9KNJsY5L1kxX3xQZrutgZTPiwETR8kjqhDNXNrbPmuryiYqbUFVjC92L\nzAo4fSfYEmcWRCAeA2YYqchk5UjE1soYFMwOIBIJHbwofStgl1fp/SqPjXG7\nb3dEnpXkALGbl78fxS+jHRjo2VLT3CnAnh70AG3VHB4Ly2iA7qXRKZ3lyFTS\nnoc4+SgV1pMNvSJuHf22D8pJSMVBMwbqbslgX1X5E4yC8O8DkY08edH0J7aQ\n7DjGx2XpmHa0HN8xzMTe8Ok5gXk8yVNkgHP8xoH4UGSgGxdgct7EKupr+dE9\nMa92mWMME4KMXttQ8rDSeHa5krHVbgm+MnS/7AEDsm7iErYj4SOMdwueuFbl\nWzNqkY7Fu1lNJVL2XzR/d5XfgnjOq49lTyTDDfK4tFiKeOEsKNrHDXuoBAUe\nDCYjIYPIKu/NfdyIf5nHHuPnA6soWNox94pvrOml1zUEFO4CzIrPn2GHAx5o\n29XtGvta6rk6D9w0HWvn4ZI8QG9M0ZvXgD0tGgmVd3hsX/IZJL1RC8uxeFC9\nEVIf\r\n=MIt0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1DsEwjs6lHFt/3iQbIBSLqrpVJ6AOVHdduGWHUfyEsAIhAPrktzOtxyYKCCJXBBQqUaUMK3aDYYIZOEgx6MP67OX6"}]},"_npmUser":{"name":"heyjules","email":"julian.cy.low@gmail.com"},"maintainers":[{"name":"heyjules","email":"julian.cy.low@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/text-input_1.0.2_1613605680432_0.7980349932459398"},"_hasShrinkwrap":false},"1.0.3":{"name":"@artifak/text-input","version":"1.0.3","description":"Text input components which comprises typeos of text, tel, url, email, search and password.","keywords":[],"author":{"name":"Julian Low"},"license":"ISC","main":"dist/text-input.cjs.js","module":"dist/text-input.esm.js","src":"src/index.tsx","types":"dist/src/index.d.ts","directories":{"src":"src","test":"__tests__"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/heyjul3s/artifak.git"},"scripts":{"build":"rimraf dist && builder","test":"echo \"Error: run tests from root\" && exit 1"},"bugs":{"url":"https://github.com/heyjul3s/artifak/issues"},"homepage":"https://github.com/heyjul3s/artifak#readme","devDependencies":{"@artifak/bundler":"^1.1.5","@types/react":"^17.0.1","@types/react-dom":"^17.0.0","@types/styled-components":"^5.1.7","@types/styled-system":"^5.1.10","react":"^17.0.1","react-dom":"^17.0.1","styled-components":"^5.2.1","styled-system":"^5.1.5"},"dependencies":{"@artifak/component-generator":"^2.0.4"},"_id":"@artifak/text-input@1.0.3","_nodeVersion":"10.24.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-itpcEVJY0BqzLEozXRpIOI1/4r8v6jQ/gUQzlDBqtGkTL/Huqx9fUhEYHNZ9bjEpT6Z6Mzhq5aI+EZzaMPDGSA==","shasum":"a384e55d9ebea4835adb7a9f19ff2c6cf8fac79d","tarball":"https://registry.npmjs.org/@artifak/text-input/-/text-input-1.0.3.tgz","fileCount":11,"unpackedSize":132478,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgbZeRCRA9TVsSAnZWagAA/RwP/ArOhonGyMB6iE9LBYMr\ncdXHmnlarnbyH3273+e78pnPIyUscR4SF57HFTMjwXS/fBrEoyEDDW80Uv1E\nCfg/8dLc85znJR+1s814l1Z0zQWiyseKBEdUH6HS8mkHZ35n3b3+p1oZ0Rka\n8YKX3FaHFE4LXC0XYkmxLViH68oMDYfrfoUYdj1wBYqlDvJ64p08eH1+v+7F\n71w6Z8OJe0W/i/qDx9EdAj9zq8fU2tr5EYCEMx+U7sLdJHc7r/0K3ETOBG+v\ngq9slLBgitejBXdfKH6qwK45Vr9juuQoRiX7p3kFsc4O2I4E3ec/YGR+yGa/\n7bZfDYJM6UY8j1zAJhJ10zPIewFwmK6tkgi/Zxkg1xnlQWioNbmoujsn6lHS\nhahpTYRFFh7FyGFRb6nRR56cvFRh0DARQnnvrIVgENmDK9NAX/Lhy1uG4DfN\nOsPH91qGm0BQGjRjZ74Gx+SLVu6bbUfDiZYheN1TvpDguacZ/m+0maFqUBTz\ndoIcY6v492xYd2Hs+IbKHd/hMb7W3YaCwO+l1fRwMgI7Y4ryiLx8MuzDDSuc\n1m2+FFhKQwaJk36kFy4ShpLEnF/2Hb600s8NHq9W37kcyIoOBdjFLBRJqwhQ\njPPk0Ov1W0pe55FIaJXLJkCehNiGNxgUYDUNnfL4cp9sFXA/iPCDQ7vLwGve\n7ApE\r\n=DNO8\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEhJfnyYKT4mHLVOLmrr4KIeK3AAR9NTg71eJbe7/1tYAiEApJiTIODbyLn85wjKd0+7QBOdVpVJU566eBei5YsT5Us="}]},"_npmUser":{"name":"heyjules","email":"julian.cy.low@gmail.com"},"maintainers":[{"name":"heyjules","email":"julian.cy.low@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/text-input_1.0.3_1617794960755_0.6515343809480916"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-12T04:40:05.034Z","1.0.1":"2021-01-12T04:40:05.761Z","modified":"2022-04-04T15:38:47.316Z","1.0.2":"2021-02-17T23:48:00.698Z","1.0.3":"2021-04-07T11:29:21.005Z"},"maintainers":[{"name":"heyjules","email":"julian.cy.low@gmail.com"}],"description":"Text input components which comprises typeos of text, tel, url, email, search and password.","homepage":"https://github.com/heyjul3s/artifak#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/heyjul3s/artifak.git"},"author":{"name":"Julian Low"},"bugs":{"url":"https://github.com/heyjul3s/artifak/issues"},"license":"ISC","readme":"# `@artifak/text-input`\n\nA text based input element generator.\n\n## Installation\n\n### Yarn\n\n```sh\nyarn add @artifak/text-input\n```\n\n### NPM\n\n```sh\nnpm install @artifak/text-input\n```\n\n## Usage\n\n```ts\nimport { createTextInputs } from '@artifak/text-input';\n\nconst inputs = {\n  base: {\n    styles: {\n      width: '100%',\n      border: '1px solid black',\n      padding: ['1em']\n    }\n  },\n\n  components: {\n    InputSearch: {\n      maxWidth: '300px',\n      attrs: { type: 'search' }\n    },\n\n    InputUrl: {\n      display: 'block',\n      attrs: { type: 'url' }\n    }\n  }\n};\n\ntype BasicUsageProps = {\n  disabled?: boolean;\n  placeholder?: string;\n  onBlur?: () => void;\n};\n\nconst { Base: InputText, InputSearch, InputUrl } = createTextInputs<\n  typeof inputs.components,\n  BasicUsageProps\n>(inputs.base, inputs.components);\n\nexport function BasicUsage() {\n  const onBlur = (text: string) => () => {\n    console.log('Blur', text);\n  };\n\n  return (\n    <>\n      <InputText onBlur={onBlur('Hello')} />\n      <InputSearch />\n      <InputUrl />\n    </>\n  );\n}\n```\n","readmeFilename":"README.md"}