{"_id":"@abdulselam/phone-input-free-syria","name":"@abdulselam/phone-input-free-syria","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abdulselam/phone-input-free-syria","version":"1.0.0","description":"React phone input with the new Free Syria independence flag (2025) 🇸🇾","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./style.css":"./dist/index.css"},"scripts":{"build":"tsup src/index.tsx --format cjs,esm --dts --external react --external react-dom --external react-phone-input-2 && node scripts/copy-css.js","prepublishOnly":"npm run build"},"keywords":["react","phone-input","syria","free-syria","syrian-flag","independence-flag","phone-number","react-phone-input"],"author":{"name":"abdulselam"},"license":"MIT","peerDependencies":{"react":">=17.0.0","react-dom":">=17.0.0"},"dependencies":{"react-phone-input-2":"^2.15.1"},"devDependencies":{"@types/react":"^19.0.0","tsup":"^8.0.0","typescript":"^5.0.0"},"_id":"@abdulselam/phone-input-free-syria@1.0.0","_nodeVersion":"24.12.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-lcAI5mclZPOj4jHRtu0BZK9rmPcW7PB6kYJSHnvpVEIHbhfgEDCczj+3CidCO5jE7uQFwtK/wExJWWYk+0kXMA==","shasum":"76b38f007bd965fe7c2369f65dbf176319b802f7","tarball":"https://registry.npmjs.org/@abdulselam/phone-input-free-syria/-/phone-input-free-syria-1.0.0.tgz","fileCount":8,"unpackedSize":9354,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCgIZk4AwnCmT4AXmiOmFLWqAa7miupHf1dx+GJqGa25AIhAM+VMnUubLvyyUvVYagSvYWkZdr1XxdA5BeYdgcBbCNH"}]},"_npmUser":{"name":"abdulselam","email":"bdalslamb670@gmail.com"},"directories":{},"maintainers":[{"name":"abdulselam","email":"bdalslamb670@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/phone-input-free-syria_1.0.0_1773087504317_0.6611974011002015"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-09T20:18:24.249Z","1.0.0":"2026-03-09T20:18:24.474Z","modified":"2026-03-09T20:18:24.692Z"},"maintainers":[{"name":"abdulselam","email":"bdalslamb670@gmail.com"}],"description":"React phone input with the new Free Syria independence flag (2025) 🇸🇾","keywords":["react","phone-input","syria","free-syria","syrian-flag","independence-flag","phone-number","react-phone-input"],"author":{"name":"abdulselam"},"license":"MIT","readme":"# @abdulselam/phone-input-free-syria\n\n> React phone input component with the new **Free Syria independence flag** (2025) 🇸🇾\n\nA drop-in replacement for [react-phone-input-2](https://www.npmjs.com/package/react-phone-input-2) that replaces the outdated Ba'athist flag with the correct Syrian independence flag — green, white, and black stripes with three red stars.\n\n---\n\n## Installation\n\n```bash\nnpm install @abdulselam/phone-input-free-syria\n```\n\n---\n\n## Usage\n\n```tsx\nimport PhoneInput from '@abdulselam/phone-input-free-syria';\nimport '@abdulselam/phone-input-free-syria/style.css';\n\nexport default function MyForm() {\n  const [phone, setPhone] = useState('');\n\n  return (\n    <PhoneInput\n      country=\"sy\"\n      value={phone}\n      onChange={(value) => setPhone(value)}\n    />\n  );\n}\n```\n\n---\n\n## Props\n\nThis component accepts all the same props as `react-phone-input-2`.\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `country` | `string` | `\"sy\"` | Default selected country code |\n| `value` | `string` | `\"\"` | Phone number value |\n| `onChange` | `(value, data) => void` | — | Called when value changes |\n| `placeholder` | `string` | — | Input placeholder text |\n| `disabled` | `boolean` | `false` | Disable the input |\n| `enableSearch` | `boolean` | `false` | Enable country search |\n| `preferredCountries` | `string[]` | — | Countries shown at top of list |\n\nFor the full list of props, see the [react-phone-input-2 documentation](https://github.com/bl00mber/react-phone-input-2).\n\n---\n\n## Example with common options\n\n```tsx\nimport PhoneInput from '@abdulselam/phone-input-free-syria';\nimport '@abdulselam/phone-input-free-syria/style.css';\n\n<PhoneInput\n  country=\"sy\"\n  value={phone}\n  onChange={setPhone}\n  enableSearch={true}\n  preferredCountries={['sy', 'sa', 'jo', 'lb']}\n  placeholder=\"أدخل رقم الهاتف\"\n/>\n```\n\n---\n\n## About the flag\n\nThe **Syrian independence flag** was the official flag of Syria from 1932 and was re-adopted in December 2024 following the fall of the Assad regime. It features:\n\n- 🟩 **Green** stripe (top) — `#007A3D`\n- ⬜ **White** stripe (middle) — `#FFFFFF`\n- ⬛ **Black** stripe (bottom) — `#000000`\n- ⭐⭐⭐ Three **red** stars — `#CE1126`\n\n---\n\n## License\n\nMIT © [abdulselam](https://www.npmjs.com/~abdulselam)\n","readmeFilename":"README.md","_rev":"1-31f25e316f39d66030496d90d369a6ac"}