{"_id":"@asnewyla/unstyled-input","name":"@asnewyla/unstyled-input","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@asnewyla/unstyled-input","version":"0.2.0","description":"Unstyled text input primitive with accessibility","license":"MIT","repository":{"type":"git","url":"git+https://github.com/xavierDelaFuente/xd-components.git","directory":"packages/unstyled-input"},"publishConfig":{"access":"public"},"main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js","types":"./dist/index.d.ts"}},"sideEffects":false,"keywords":["react","input","unstyled","accessible"],"peerDependencies":{"react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0"},"devDependencies":{"react":"^18.3.0","react-dom":"^18.3.0","tsup":"^8.1.0","vitest":"^2.0.0","@vitest/coverage-v8":"^2.0.0","@testing-library/react":"^16.0.0","@testing-library/user-event":"^14.5.0","@testing-library/jest-dom":"^6.4.0","jsdom":"^24.0.0","typescript":"^5.5.0"},"scripts":{"build":"tsup","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage","type-check":"tsc --noEmit"},"_nodeVersion":"24.19.0","_id":"@asnewyla/unstyled-input@0.2.0","dist":{"integrity":"sha512-78TWiSlTqMBQ72XQdl3wUkzKGFE8UZmnaCZfkS67bbLG4tmHsbiyqNBccdngNZ/cBgQlWcKLdNdU1pj5nZ9+tA==","shasum":"5f13114a885ed193a6c907404f55155767b4580e","tarball":"https://registry.npmjs.org/@asnewyla/unstyled-input/-/unstyled-input-0.2.0.tgz","fileCount":9,"unpackedSize":12461,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDwzqotlUW1tPT4IjxBVYaGVy3VKE0qm4RVkbmyOAdGhAIgRW4VFCJ2l/hHLlOJkPWoDhxYVdLVUFeK9wuY/0xlHJQ="}]},"_npmUser":{"name":"asnewyla","email":"asnewyla@gmail.com"},"directories":{},"maintainers":[{"name":"asnewyla","email":"asnewyla@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unstyled-input_0.2.0_1787420668352_0.6884823433752643"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-22T17:44:28.182Z","0.2.0":"2026-08-22T17:44:28.574Z","modified":"2026-08-22T17:44:28.761Z"},"maintainers":[{"name":"asnewyla","email":"asnewyla@gmail.com"}],"description":"Unstyled text input primitive with accessibility","keywords":["react","input","unstyled","accessible"],"repository":{"type":"git","url":"git+https://github.com/xavierDelaFuente/xd-components.git","directory":"packages/unstyled-input"},"license":"MIT","readme":"# @asnewyla/unstyled-input\r\n\r\nUnstyled, accessible text input primitive. Handles focus and invalid-state\r\ntracking without imposing any visual styling — the base layer under\r\n`@asnewyla/input`.\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install @asnewyla/unstyled-input\r\n```\r\n\r\n## Usage\r\n\r\n```tsx\r\nimport { UnstyledInput } from '@asnewyla/unstyled-input';\r\n\r\n// Uncontrolled\r\n<UnstyledInput aria-label=\"Name\" defaultValue=\"\" />\r\n\r\n// Controlled\r\n<UnstyledInput aria-label=\"Name\" value={name} onChange={(e) => setName(e.target.value)} />\r\n\r\n// Invalid state\r\n<UnstyledInput aria-label=\"Email\" invalid />\r\n```\r\n\r\n### Props\r\n\r\n| Prop | Type | Default |\r\n|---|---|---|\r\n| `value` / `defaultValue` | `string` | — |\r\n| `onChange` | `(event: React.ChangeEvent<HTMLInputElement>) => void` | — |\r\n| `disabled` | `boolean` | `false` |\r\n| `invalid` | `boolean` | `false` |\r\n\r\nUncontrolled by default, same as a native `<input>` — pass `value` +\r\n`onChange` to control it yourself.\r\n\r\n## License\r\n\r\nMIT\r\n","readmeFilename":"","_rev":"1-d5e9c6c232670a92be28fce4cac9d970"}