@senvenli/react 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (636) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -2
  3. package/dist/action/button-group.d.ts +26 -0
  4. package/dist/action/button-group.js +12 -0
  5. package/dist/action/button-group.js.map +1 -0
  6. package/dist/action/button.d.ts +42 -0
  7. package/dist/action/button.js +58 -0
  8. package/dist/action/button.js.map +1 -0
  9. package/dist/action/close-button.d.ts +12 -0
  10. package/dist/action/close-button.js +13 -0
  11. package/dist/action/close-button.js.map +1 -0
  12. package/dist/action/copy-button.d.ts +21 -0
  13. package/dist/action/copy-button.js +38 -0
  14. package/dist/action/copy-button.js.map +1 -0
  15. package/dist/action/fab.d.ts +29 -0
  16. package/dist/action/fab.js +57 -0
  17. package/dist/action/fab.js.map +1 -0
  18. package/dist/action/files.d.ts +70 -0
  19. package/dist/action/files.js +156 -0
  20. package/dist/action/files.js.map +1 -0
  21. package/dist/action/index.d.ts +23 -0
  22. package/dist/action/index.js +16 -0
  23. package/dist/action/index.js.map +1 -0
  24. package/dist/action/language-names.d.ts +19 -0
  25. package/dist/action/language-names.js +79 -0
  26. package/dist/action/language-names.js.map +1 -0
  27. package/dist/action/language-switcher.d.ts +57 -0
  28. package/dist/action/language-switcher.js +53 -0
  29. package/dist/action/language-switcher.js.map +1 -0
  30. package/dist/action/link-button.d.ts +57 -0
  31. package/dist/action/link-button.js +48 -0
  32. package/dist/action/link-button.js.map +1 -0
  33. package/dist/action/link.d.ts +24 -0
  34. package/dist/action/link.js +18 -0
  35. package/dist/action/link.js.map +1 -0
  36. package/dist/action/pressable.d.ts +40 -0
  37. package/dist/action/pressable.js +65 -0
  38. package/dist/action/pressable.js.map +1 -0
  39. package/dist/action/styles.d.ts +60 -0
  40. package/dist/action/styles.js +109 -0
  41. package/dist/action/styles.js.map +1 -0
  42. package/dist/action/theme-script.d.ts +12 -0
  43. package/dist/action/theme-script.js +23 -0
  44. package/dist/action/theme-script.js.map +1 -0
  45. package/dist/action/theme-switcher.d.ts +43 -0
  46. package/dist/action/theme-switcher.js +260 -0
  47. package/dist/action/theme-switcher.js.map +1 -0
  48. package/dist/action/theme-toggle.d.ts +43 -0
  49. package/dist/action/theme-toggle.js +259 -0
  50. package/dist/action/theme-toggle.js.map +1 -0
  51. package/dist/action/toggle.d.ts +44 -0
  52. package/dist/action/toggle.js +28 -0
  53. package/dist/action/toggle.js.map +1 -0
  54. package/dist/action/touch-target.d.ts +9 -0
  55. package/dist/action/touch-target.js +14 -0
  56. package/dist/action/touch-target.js.map +1 -0
  57. package/dist/charts/axis-width.d.ts +186 -0
  58. package/dist/charts/axis-width.js +1262 -0
  59. package/dist/charts/axis-width.js.map +1 -0
  60. package/dist/charts/bar-public.d.ts +16 -0
  61. package/dist/charts/bar-public.js +16 -0
  62. package/dist/charts/bar-public.js.map +1 -0
  63. package/dist/charts/chart-parts.d.ts +136 -0
  64. package/dist/charts/chart-parts.js +160 -0
  65. package/dist/charts/chart-parts.js.map +1 -0
  66. package/dist/charts/core-charts.d.ts +157 -0
  67. package/dist/charts/core-charts.js +505 -0
  68. package/dist/charts/core-charts.js.map +1 -0
  69. package/dist/charts/index.d.ts +12 -0
  70. package/dist/charts/index.js +8 -0
  71. package/dist/charts/index.js.map +1 -0
  72. package/dist/charts/list-charts.d.ts +124 -0
  73. package/dist/charts/list-charts.js +308 -0
  74. package/dist/charts/list-charts.js.map +1 -0
  75. package/dist/charts/more-charts.d.ts +138 -0
  76. package/dist/charts/more-charts.js +284 -0
  77. package/dist/charts/more-charts.js.map +1 -0
  78. package/dist/charts/report-charts.d.ts +138 -0
  79. package/dist/charts/report-charts.js +370 -0
  80. package/dist/charts/report-charts.js.map +1 -0
  81. package/dist/charts/value-tick.d.ts +178 -0
  82. package/dist/charts/value-tick.js +240 -0
  83. package/dist/charts/value-tick.js.map +1 -0
  84. package/dist/collection/data-table-url-hook.d.ts +34 -0
  85. package/dist/collection/data-table-url-hook.js +70 -0
  86. package/dist/collection/data-table-url-hook.js.map +1 -0
  87. package/dist/collection/data-table-url.d.ts +30 -0
  88. package/dist/collection/data-table-url.js +48 -0
  89. package/dist/collection/data-table-url.js.map +1 -0
  90. package/dist/collection/data-table.d.ts +112 -0
  91. package/dist/collection/data-table.js +188 -0
  92. package/dist/collection/data-table.js.map +1 -0
  93. package/dist/collection/grid-list-public.d.ts +18 -0
  94. package/dist/collection/grid-list-public.js +19 -0
  95. package/dist/collection/grid-list-public.js.map +1 -0
  96. package/dist/collection/grid-list.d.ts +73 -0
  97. package/dist/collection/grid-list.js +46 -0
  98. package/dist/collection/grid-list.js.map +1 -0
  99. package/dist/collection/index.d.ts +14 -0
  100. package/dist/collection/index.js +8 -0
  101. package/dist/collection/index.js.map +1 -0
  102. package/dist/collection/list.d.ts +61 -0
  103. package/dist/collection/list.js +38 -0
  104. package/dist/collection/list.js.map +1 -0
  105. package/dist/collection/selection-checkbox.d.ts +5 -0
  106. package/dist/collection/selection-checkbox.js +13 -0
  107. package/dist/collection/selection-checkbox.js.map +1 -0
  108. package/dist/collection/table.d.ts +91 -0
  109. package/dist/collection/table.js +183 -0
  110. package/dist/collection/table.js.map +1 -0
  111. package/dist/collection/tree.d.ts +31 -0
  112. package/dist/collection/tree.js +22 -0
  113. package/dist/collection/tree.js.map +1 -0
  114. package/dist/color/color.d.ts +87 -0
  115. package/dist/color/color.js +200 -0
  116. package/dist/color/color.js.map +1 -0
  117. package/dist/color/contrast.d.ts +34 -0
  118. package/dist/color/contrast.js +44 -0
  119. package/dist/color/contrast.js.map +1 -0
  120. package/dist/color/index.d.ts +4 -0
  121. package/dist/color/index.js +5 -0
  122. package/dist/color/index.js.map +1 -0
  123. package/dist/date/calendar.d.ts +71 -0
  124. package/dist/date/calendar.js +291 -0
  125. package/dist/date/calendar.js.map +1 -0
  126. package/dist/date/fields.d.ts +174 -0
  127. package/dist/date/fields.js +250 -0
  128. package/dist/date/fields.js.map +1 -0
  129. package/dist/date/index.d.ts +7 -0
  130. package/dist/date/index.js +6 -0
  131. package/dist/date/index.js.map +1 -0
  132. package/dist/date/month-grid.d.ts +31 -0
  133. package/dist/date/month-grid.js +115 -0
  134. package/dist/date/month-grid.js.map +1 -0
  135. package/dist/date/pickers.d.ts +118 -0
  136. package/dist/date/pickers.js +176 -0
  137. package/dist/date/pickers.js.map +1 -0
  138. package/dist/date/public.d.ts +25 -0
  139. package/dist/date/public.js +24 -0
  140. package/dist/date/public.js.map +1 -0
  141. package/dist/date/segments.d.ts +153 -0
  142. package/dist/date/segments.js +433 -0
  143. package/dist/date/segments.js.map +1 -0
  144. package/dist/defaults.d.ts +74 -0
  145. package/dist/defaults.js +100 -0
  146. package/dist/defaults.js.map +1 -0
  147. package/dist/density.d.ts +2 -0
  148. package/dist/density.js +2 -0
  149. package/dist/density.js.map +1 -0
  150. package/dist/display/avatar.d.ts +29 -0
  151. package/dist/display/avatar.js +71 -0
  152. package/dist/display/avatar.js.map +1 -0
  153. package/dist/display/badge.d.ts +65 -0
  154. package/dist/display/badge.js +99 -0
  155. package/dist/display/badge.js.map +1 -0
  156. package/dist/display/card.d.ts +72 -0
  157. package/dist/display/card.js +91 -0
  158. package/dist/display/card.js.map +1 -0
  159. package/dist/display/carousel.d.ts +47 -0
  160. package/dist/display/carousel.js +214 -0
  161. package/dist/display/carousel.js.map +1 -0
  162. package/dist/display/description-list.d.ts +25 -0
  163. package/dist/display/description-list.js +36 -0
  164. package/dist/display/description-list.js.map +1 -0
  165. package/dist/display/icon-aliases.d.ts +1 -0
  166. package/dist/display/icon-aliases.js +259 -0
  167. package/dist/display/icon-aliases.js.map +1 -0
  168. package/dist/display/icon-names.d.ts +4 -0
  169. package/dist/display/icon-names.js +2 -0
  170. package/dist/display/icon-names.js.map +1 -0
  171. package/dist/display/icon.d.ts +51 -0
  172. package/dist/display/icon.js +96 -0
  173. package/dist/display/icon.js.map +1 -0
  174. package/dist/display/image-crop.d.ts +106 -0
  175. package/dist/display/image-crop.js +117 -0
  176. package/dist/display/image-crop.js.map +1 -0
  177. package/dist/display/image-cropper.d.ts +68 -0
  178. package/dist/display/image-cropper.js +284 -0
  179. package/dist/display/image-cropper.js.map +1 -0
  180. package/dist/display/image-viewer.d.ts +54 -0
  181. package/dist/display/image-viewer.js +84 -0
  182. package/dist/display/image-viewer.js.map +1 -0
  183. package/dist/display/image.d.ts +26 -0
  184. package/dist/display/image.js +17 -0
  185. package/dist/display/image.js.map +1 -0
  186. package/dist/display/index.d.ts +29 -0
  187. package/dist/display/index.js +16 -0
  188. package/dist/display/index.js.map +1 -0
  189. package/dist/display/iso-chip.d.ts +19 -0
  190. package/dist/display/iso-chip.js +21 -0
  191. package/dist/display/iso-chip.js.map +1 -0
  192. package/dist/display/kbd.d.ts +11 -0
  193. package/dist/display/kbd.js +33 -0
  194. package/dist/display/kbd.js.map +1 -0
  195. package/dist/display/lozenge.d.ts +30 -0
  196. package/dist/display/lozenge.js +55 -0
  197. package/dist/display/lozenge.js.map +1 -0
  198. package/dist/display/scroll-area.d.ts +29 -0
  199. package/dist/display/scroll-area.js +95 -0
  200. package/dist/display/scroll-area.js.map +1 -0
  201. package/dist/display/separator.d.ts +13 -0
  202. package/dist/display/separator.js +24 -0
  203. package/dist/display/separator.js.map +1 -0
  204. package/dist/display/stat.d.ts +35 -0
  205. package/dist/display/stat.js +41 -0
  206. package/dist/display/stat.js.map +1 -0
  207. package/dist/display/timeline.d.ts +44 -0
  208. package/dist/display/timeline.js +111 -0
  209. package/dist/display/timeline.js.map +1 -0
  210. package/dist/display/typography.d.ts +37 -0
  211. package/dist/display/typography.js +53 -0
  212. package/dist/display/typography.js.map +1 -0
  213. package/dist/display/visually-hidden.d.ts +14 -0
  214. package/dist/display/visually-hidden.js +10 -0
  215. package/dist/display/visually-hidden.js.map +1 -0
  216. package/dist/feedback/banner.d.ts +46 -0
  217. package/dist/feedback/banner.js +157 -0
  218. package/dist/feedback/banner.js.map +1 -0
  219. package/dist/feedback/cooldown.d.ts +17 -0
  220. package/dist/feedback/cooldown.js +59 -0
  221. package/dist/feedback/cooldown.js.map +1 -0
  222. package/dist/feedback/empty-state.d.ts +35 -0
  223. package/dist/feedback/empty-state.js +39 -0
  224. package/dist/feedback/empty-state.js.map +1 -0
  225. package/dist/feedback/index.d.ts +12 -0
  226. package/dist/feedback/index.js +11 -0
  227. package/dist/feedback/index.js.map +1 -0
  228. package/dist/feedback/meter.d.ts +33 -0
  229. package/dist/feedback/meter.js +42 -0
  230. package/dist/feedback/meter.js.map +1 -0
  231. package/dist/feedback/motion.d.ts +9 -0
  232. package/dist/feedback/motion.js +57 -0
  233. package/dist/feedback/motion.js.map +1 -0
  234. package/dist/feedback/progress.d.ts +39 -0
  235. package/dist/feedback/progress.js +68 -0
  236. package/dist/feedback/progress.js.map +1 -0
  237. package/dist/feedback/skeleton.d.ts +48 -0
  238. package/dist/feedback/skeleton.js +61 -0
  239. package/dist/feedback/skeleton.js.map +1 -0
  240. package/dist/feedback/spinner.d.ts +19 -0
  241. package/dist/feedback/spinner.js +29 -0
  242. package/dist/feedback/spinner.js.map +1 -0
  243. package/dist/feedback/status-dot.d.ts +23 -0
  244. package/dist/feedback/status-dot.js +37 -0
  245. package/dist/feedback/status-dot.js.map +1 -0
  246. package/dist/form/countries.d.ts +34 -0
  247. package/dist/form/countries.js +273 -0
  248. package/dist/form/countries.js.map +1 -0
  249. package/dist/form/data-attributes.d.ts +11 -0
  250. package/dist/form/data-attributes.js +22 -0
  251. package/dist/form/data-attributes.js.map +1 -0
  252. package/dist/form/field-parts.d.ts +113 -0
  253. package/dist/form/field-parts.js +178 -0
  254. package/dist/form/field-parts.js.map +1 -0
  255. package/dist/form/field.d.ts +36 -0
  256. package/dist/form/field.js +65 -0
  257. package/dist/form/field.js.map +1 -0
  258. package/dist/form/files.d.ts +70 -0
  259. package/dist/form/files.js +156 -0
  260. package/dist/form/files.js.map +1 -0
  261. package/dist/form/form.d.ts +40 -0
  262. package/dist/form/form.js +74 -0
  263. package/dist/form/form.js.map +1 -0
  264. package/dist/form/image-crop.d.ts +106 -0
  265. package/dist/form/image-crop.js +117 -0
  266. package/dist/form/image-crop.js.map +1 -0
  267. package/dist/form/image-cropper.d.ts +68 -0
  268. package/dist/form/image-cropper.js +284 -0
  269. package/dist/form/image-cropper.js.map +1 -0
  270. package/dist/form/index.d.ts +24 -0
  271. package/dist/form/index.js +15 -0
  272. package/dist/form/index.js.map +1 -0
  273. package/dist/form/input-group.d.ts +63 -0
  274. package/dist/form/input-group.js +63 -0
  275. package/dist/form/input-group.js.map +1 -0
  276. package/dist/form/input-otp.d.ts +35 -0
  277. package/dist/form/input-otp.js +83 -0
  278. package/dist/form/input-otp.js.map +1 -0
  279. package/dist/form/input.d.ts +36 -0
  280. package/dist/form/input.js +41 -0
  281. package/dist/form/input.js.map +1 -0
  282. package/dist/form/number-field.d.ts +84 -0
  283. package/dist/form/number-field.js +81 -0
  284. package/dist/form/number-field.js.map +1 -0
  285. package/dist/form/otp-field.d.ts +37 -0
  286. package/dist/form/otp-field.js +116 -0
  287. package/dist/form/otp-field.js.map +1 -0
  288. package/dist/form/password-field.d.ts +61 -0
  289. package/dist/form/password-field.js +61 -0
  290. package/dist/form/password-field.js.map +1 -0
  291. package/dist/form/phone-field.d.ts +104 -0
  292. package/dist/form/phone-field.js +275 -0
  293. package/dist/form/phone-field.js.map +1 -0
  294. package/dist/form/phone-paste.d.ts +24 -0
  295. package/dist/form/phone-paste.js +40 -0
  296. package/dist/form/phone-paste.js.map +1 -0
  297. package/dist/form/phone.d.ts +159 -0
  298. package/dist/form/phone.js +309 -0
  299. package/dist/form/phone.js.map +1 -0
  300. package/dist/form/search-field.d.ts +29 -0
  301. package/dist/form/search-field.js +23 -0
  302. package/dist/form/search-field.js.map +1 -0
  303. package/dist/form/styles.d.ts +31 -0
  304. package/dist/form/styles.js +43 -0
  305. package/dist/form/styles.js.map +1 -0
  306. package/dist/form/text-area.d.ts +70 -0
  307. package/dist/form/text-area.js +93 -0
  308. package/dist/form/text-area.js.map +1 -0
  309. package/dist/form/text-field.d.ts +131 -0
  310. package/dist/form/text-field.js +59 -0
  311. package/dist/form/text-field.js.map +1 -0
  312. package/dist/form/validation.d.ts +145 -0
  313. package/dist/form/validation.js +136 -0
  314. package/dist/form/validation.js.map +1 -0
  315. package/dist/i18n.d.ts +438 -0
  316. package/dist/i18n.js +948 -0
  317. package/dist/i18n.js.map +1 -0
  318. package/dist/index.d.ts +9 -0
  319. package/dist/index.js +7 -0
  320. package/dist/index.js.map +1 -0
  321. package/dist/intl-locale.d.ts +30 -0
  322. package/dist/intl-locale.js +83 -0
  323. package/dist/intl-locale.js.map +1 -0
  324. package/dist/layers.d.ts +32 -0
  325. package/dist/layers.js +33 -0
  326. package/dist/layers.js.map +1 -0
  327. package/dist/layout/auth-form-layout.d.ts +71 -0
  328. package/dist/layout/auth-form-layout.js +61 -0
  329. package/dist/layout/auth-form-layout.js.map +1 -0
  330. package/dist/layout/auth-layout.d.ts +59 -0
  331. package/dist/layout/auth-layout.js +26 -0
  332. package/dist/layout/auth-layout.js.map +1 -0
  333. package/dist/layout/box.d.ts +26 -0
  334. package/dist/layout/box.js +16 -0
  335. package/dist/layout/box.js.map +1 -0
  336. package/dist/layout/grid.d.ts +27 -0
  337. package/dist/layout/grid.js +26 -0
  338. package/dist/layout/grid.js.map +1 -0
  339. package/dist/layout/index.d.ts +16 -0
  340. package/dist/layout/index.js +12 -0
  341. package/dist/layout/index.js.map +1 -0
  342. package/dist/layout/pressable.d.ts +40 -0
  343. package/dist/layout/pressable.js +65 -0
  344. package/dist/layout/pressable.js.map +1 -0
  345. package/dist/layout/reset-sent-card.d.ts +39 -0
  346. package/dist/layout/reset-sent-card.js +22 -0
  347. package/dist/layout/reset-sent-card.js.map +1 -0
  348. package/dist/layout/scroll-area.d.ts +29 -0
  349. package/dist/layout/scroll-area.js +95 -0
  350. package/dist/layout/scroll-area.js.map +1 -0
  351. package/dist/layout/section.d.ts +41 -0
  352. package/dist/layout/section.js +22 -0
  353. package/dist/layout/section.js.map +1 -0
  354. package/dist/layout/split.d.ts +50 -0
  355. package/dist/layout/split.js +35 -0
  356. package/dist/layout/split.js.map +1 -0
  357. package/dist/layout/stack.d.ts +44 -0
  358. package/dist/layout/stack.js +36 -0
  359. package/dist/layout/stack.js.map +1 -0
  360. package/dist/layout/tokens.d.ts +33 -0
  361. package/dist/layout/tokens.js +85 -0
  362. package/dist/layout/tokens.js.map +1 -0
  363. package/dist/layout/toolbar.d.ts +37 -0
  364. package/dist/layout/toolbar.js +334 -0
  365. package/dist/layout/toolbar.js.map +1 -0
  366. package/dist/navigate-context.d.ts +12 -0
  367. package/dist/navigate-context.js +13 -0
  368. package/dist/navigate-context.js.map +1 -0
  369. package/dist/navigation/accordion.d.ts +40 -0
  370. package/dist/navigation/accordion.js +33 -0
  371. package/dist/navigation/accordion.js.map +1 -0
  372. package/dist/navigation/bottom-nav.d.ts +29 -0
  373. package/dist/navigation/bottom-nav.js +48 -0
  374. package/dist/navigation/bottom-nav.js.map +1 -0
  375. package/dist/navigation/brand-link-context.d.ts +8 -0
  376. package/dist/navigation/brand-link-context.js +9 -0
  377. package/dist/navigation/brand-link-context.js.map +1 -0
  378. package/dist/navigation/breadcrumbs.d.ts +36 -0
  379. package/dist/navigation/breadcrumbs.js +51 -0
  380. package/dist/navigation/breadcrumbs.js.map +1 -0
  381. package/dist/navigation/dock.d.ts +27 -0
  382. package/dist/navigation/dock.js +47 -0
  383. package/dist/navigation/dock.js.map +1 -0
  384. package/dist/navigation/footer.d.ts +43 -0
  385. package/dist/navigation/footer.js +43 -0
  386. package/dist/navigation/footer.js.map +1 -0
  387. package/dist/navigation/index.d.ts +22 -0
  388. package/dist/navigation/index.js +17 -0
  389. package/dist/navigation/index.js.map +1 -0
  390. package/dist/navigation/language-names.d.ts +19 -0
  391. package/dist/navigation/language-names.js +79 -0
  392. package/dist/navigation/language-names.js.map +1 -0
  393. package/dist/navigation/language-switcher.d.ts +55 -0
  394. package/dist/navigation/language-switcher.js +53 -0
  395. package/dist/navigation/language-switcher.js.map +1 -0
  396. package/dist/navigation/nav-panel.d.ts +18 -0
  397. package/dist/navigation/nav-panel.js +51 -0
  398. package/dist/navigation/nav-panel.js.map +1 -0
  399. package/dist/navigation/navbar.d.ts +73 -0
  400. package/dist/navigation/navbar.js +64 -0
  401. package/dist/navigation/navbar.js.map +1 -0
  402. package/dist/navigation/page-header.d.ts +37 -0
  403. package/dist/navigation/page-header.js +50 -0
  404. package/dist/navigation/page-header.js.map +1 -0
  405. package/dist/navigation/pagination.d.ts +25 -0
  406. package/dist/navigation/pagination.js +51 -0
  407. package/dist/navigation/pagination.js.map +1 -0
  408. package/dist/navigation/panel-header.d.ts +37 -0
  409. package/dist/navigation/panel-header.js +50 -0
  410. package/dist/navigation/panel-header.js.map +1 -0
  411. package/dist/navigation/sidebar-script.d.ts +12 -0
  412. package/dist/navigation/sidebar-script.js +20 -0
  413. package/dist/navigation/sidebar-script.js.map +1 -0
  414. package/dist/navigation/sidebar.d.ts +149 -0
  415. package/dist/navigation/sidebar.js +332 -0
  416. package/dist/navigation/sidebar.js.map +1 -0
  417. package/dist/navigation/skip-link.d.ts +12 -0
  418. package/dist/navigation/skip-link.js +30 -0
  419. package/dist/navigation/skip-link.js.map +1 -0
  420. package/dist/navigation/stepper.d.ts +50 -0
  421. package/dist/navigation/stepper.js +96 -0
  422. package/dist/navigation/stepper.js.map +1 -0
  423. package/dist/navigation/tabs.d.ts +84 -0
  424. package/dist/navigation/tabs.js +118 -0
  425. package/dist/navigation/tabs.js.map +1 -0
  426. package/dist/navigation/toolbar.d.ts +37 -0
  427. package/dist/navigation/toolbar.js +334 -0
  428. package/dist/navigation/toolbar.js.map +1 -0
  429. package/dist/overlay/alert-dialog.d.ts +63 -0
  430. package/dist/overlay/alert-dialog.js +76 -0
  431. package/dist/overlay/alert-dialog.js.map +1 -0
  432. package/dist/overlay/command-palette.d.ts +53 -0
  433. package/dist/overlay/command-palette.js +130 -0
  434. package/dist/overlay/command-palette.js.map +1 -0
  435. package/dist/overlay/command.d.ts +53 -0
  436. package/dist/overlay/command.js +129 -0
  437. package/dist/overlay/command.js.map +1 -0
  438. package/dist/overlay/context-menu.d.ts +29 -0
  439. package/dist/overlay/context-menu.js +58 -0
  440. package/dist/overlay/context-menu.js.map +1 -0
  441. package/dist/overlay/dialog.d.ts +162 -0
  442. package/dist/overlay/dialog.js +174 -0
  443. package/dist/overlay/dialog.js.map +1 -0
  444. package/dist/overlay/drawer.d.ts +41 -0
  445. package/dist/overlay/drawer.js +114 -0
  446. package/dist/overlay/drawer.js.map +1 -0
  447. package/dist/overlay/floating.d.ts +142 -0
  448. package/dist/overlay/floating.js +226 -0
  449. package/dist/overlay/floating.js.map +1 -0
  450. package/dist/overlay/hover-card.d.ts +19 -0
  451. package/dist/overlay/hover-card.js +31 -0
  452. package/dist/overlay/hover-card.js.map +1 -0
  453. package/dist/overlay/index.d.ts +18 -0
  454. package/dist/overlay/index.js +12 -0
  455. package/dist/overlay/index.js.map +1 -0
  456. package/dist/overlay/overlay-base.d.ts +105 -0
  457. package/dist/overlay/overlay-base.js +250 -0
  458. package/dist/overlay/overlay-base.js.map +1 -0
  459. package/dist/overlay/overlay.d.ts +299 -0
  460. package/dist/overlay/overlay.js +558 -0
  461. package/dist/overlay/overlay.js.map +1 -0
  462. package/dist/overlay/toast.d.ts +58 -0
  463. package/dist/overlay/toast.js +145 -0
  464. package/dist/overlay/toast.js.map +1 -0
  465. package/dist/provider.d.ts +26 -0
  466. package/dist/provider.js +30 -0
  467. package/dist/provider.js.map +1 -0
  468. package/dist/selection/autocomplete.d.ts +54 -0
  469. package/dist/selection/autocomplete.js +122 -0
  470. package/dist/selection/autocomplete.js.map +1 -0
  471. package/dist/selection/checkbox.d.ts +56 -0
  472. package/dist/selection/checkbox.js +49 -0
  473. package/dist/selection/checkbox.js.map +1 -0
  474. package/dist/selection/choice-size.d.ts +26 -0
  475. package/dist/selection/choice-size.js +50 -0
  476. package/dist/selection/choice-size.js.map +1 -0
  477. package/dist/selection/choice-text.d.ts +21 -0
  478. package/dist/selection/choice-text.js +33 -0
  479. package/dist/selection/choice-text.js.map +1 -0
  480. package/dist/selection/combobox.d.ts +173 -0
  481. package/dist/selection/combobox.js +410 -0
  482. package/dist/selection/combobox.js.map +1 -0
  483. package/dist/selection/index.d.ts +20 -0
  484. package/dist/selection/index.js +13 -0
  485. package/dist/selection/index.js.map +1 -0
  486. package/dist/selection/list-box.d.ts +30 -0
  487. package/dist/selection/list-box.js +16 -0
  488. package/dist/selection/list-box.js.map +1 -0
  489. package/dist/selection/listbox.d.ts +44 -0
  490. package/dist/selection/listbox.js +49 -0
  491. package/dist/selection/listbox.js.map +1 -0
  492. package/dist/selection/match.d.ts +20 -0
  493. package/dist/selection/match.js +57 -0
  494. package/dist/selection/match.js.map +1 -0
  495. package/dist/selection/multi-select.d.ts +72 -0
  496. package/dist/selection/multi-select.js +138 -0
  497. package/dist/selection/multi-select.js.map +1 -0
  498. package/dist/selection/radio-card.d.ts +31 -0
  499. package/dist/selection/radio-card.js +29 -0
  500. package/dist/selection/radio-card.js.map +1 -0
  501. package/dist/selection/radio.d.ts +72 -0
  502. package/dist/selection/radio.js +64 -0
  503. package/dist/selection/radio.js.map +1 -0
  504. package/dist/selection/select-public.d.ts +19 -0
  505. package/dist/selection/select-public.js +24 -0
  506. package/dist/selection/select-public.js.map +1 -0
  507. package/dist/selection/select.d.ts +72 -0
  508. package/dist/selection/select.js +69 -0
  509. package/dist/selection/select.js.map +1 -0
  510. package/dist/selection/slider.d.ts +16 -0
  511. package/dist/selection/slider.js +44 -0
  512. package/dist/selection/slider.js.map +1 -0
  513. package/dist/selection/styles.d.ts +26 -0
  514. package/dist/selection/styles.js +78 -0
  515. package/dist/selection/styles.js.map +1 -0
  516. package/dist/selection/switch.d.ts +24 -0
  517. package/dist/selection/switch.js +27 -0
  518. package/dist/selection/switch.js.map +1 -0
  519. package/dist/selection/tag-group.d.ts +38 -0
  520. package/dist/selection/tag-group.js +45 -0
  521. package/dist/selection/tag-group.js.map +1 -0
  522. package/dist/tone.d.ts +6 -0
  523. package/dist/tone.js +2 -0
  524. package/dist/tone.js.map +1 -0
  525. package/dist/utils.d.ts +9 -0
  526. package/dist/utils.js +42 -0
  527. package/dist/utils.js.map +1 -0
  528. package/manifest/component.full.schema.json +391 -0
  529. package/manifest/component.schema.json +279 -0
  530. package/manifests/accordion.json +299 -0
  531. package/manifests/alert-dialog.json +261 -0
  532. package/manifests/area-chart.json +338 -0
  533. package/manifests/autocomplete.json +299 -0
  534. package/manifests/avatar.json +253 -0
  535. package/manifests/badge.json +288 -0
  536. package/manifests/banner.json +185 -0
  537. package/manifests/bar-chart.json +454 -0
  538. package/manifests/bar-list.json +262 -0
  539. package/manifests/bottom-nav.json +139 -0
  540. package/manifests/box.json +3450 -0
  541. package/manifests/breadcrumbs.json +199 -0
  542. package/manifests/button-group.json +2294 -0
  543. package/manifests/button.json +1211 -0
  544. package/manifests/calendar-heatmap.json +218 -0
  545. package/manifests/calendar.json +299 -0
  546. package/manifests/card.json +308 -0
  547. package/manifests/carousel.json +263 -0
  548. package/manifests/chart-parts.json +309 -0
  549. package/manifests/checkbox.json +998 -0
  550. package/manifests/close-button.json +1000 -0
  551. package/manifests/color-field.json +276 -0
  552. package/manifests/color-picker.json +161 -0
  553. package/manifests/color-swatch-picker.json +220 -0
  554. package/manifests/color-swatch.json +140 -0
  555. package/manifests/combobox.json +581 -0
  556. package/manifests/command.json +275 -0
  557. package/manifests/composed-chart.json +287 -0
  558. package/manifests/context-menu.json +148 -0
  559. package/manifests/copy-button.json +192 -0
  560. package/manifests/data-table.json +334 -0
  561. package/manifests/date-field.json +302 -0
  562. package/manifests/date-picker.json +472 -0
  563. package/manifests/description-list.json +201 -0
  564. package/manifests/dialog.json +322 -0
  565. package/manifests/donut-chart.json +264 -0
  566. package/manifests/drawer.json +211 -0
  567. package/manifests/empty-state.json +185 -0
  568. package/manifests/fab.json +172 -0
  569. package/manifests/field.json +209 -0
  570. package/manifests/file-upload.json +791 -0
  571. package/manifests/form.json +829 -0
  572. package/manifests/funnel-chart.json +223 -0
  573. package/manifests/gauge-chart.json +252 -0
  574. package/manifests/grid-list.json +335 -0
  575. package/manifests/grid.json +3482 -0
  576. package/manifests/heading.json +183 -0
  577. package/manifests/heatmap.json +265 -0
  578. package/manifests/hover-card.json +172 -0
  579. package/manifests/icon.json +201 -0
  580. package/manifests/image-cropper.json +295 -0
  581. package/manifests/image-viewer.json +198 -0
  582. package/manifests/image.json +193 -0
  583. package/manifests/index.json +2035 -0
  584. package/manifests/input-group.json +3571 -0
  585. package/manifests/input.json +1557 -0
  586. package/manifests/kbd.json +98 -0
  587. package/manifests/language-switcher.json +274 -0
  588. package/manifests/line-chart.json +342 -0
  589. package/manifests/link.json +867 -0
  590. package/manifests/list-box.json +213 -0
  591. package/manifests/menu.json +453 -0
  592. package/manifests/meter.json +145 -0
  593. package/manifests/navbar.json +281 -0
  594. package/manifests/otp-field.json +1029 -0
  595. package/manifests/page-header.json +164 -0
  596. package/manifests/pagination.json +181 -0
  597. package/manifests/popover.json +205 -0
  598. package/manifests/pressable.json +367 -0
  599. package/manifests/progress.json +282 -0
  600. package/manifests/radar-chart.json +229 -0
  601. package/manifests/radial-chart.json +195 -0
  602. package/manifests/radio.json +975 -0
  603. package/manifests/scatter-chart.json +277 -0
  604. package/manifests/scroll-area.json +127 -0
  605. package/manifests/section.json +169 -0
  606. package/manifests/select.json +474 -0
  607. package/manifests/separator.json +119 -0
  608. package/manifests/sidebar.json +584 -0
  609. package/manifests/skeleton.json +235 -0
  610. package/manifests/skip-link.json +89 -0
  611. package/manifests/slider.json +706 -0
  612. package/manifests/sparkline.json +208 -0
  613. package/manifests/spinner.json +105 -0
  614. package/manifests/split.json +6618 -0
  615. package/manifests/stack.json +3541 -0
  616. package/manifests/stat.json +192 -0
  617. package/manifests/stepper.json +279 -0
  618. package/manifests/switch.json +205 -0
  619. package/manifests/table.json +375 -0
  620. package/manifests/tabs.json +438 -0
  621. package/manifests/tag-group.json +264 -0
  622. package/manifests/text-area.json +1136 -0
  623. package/manifests/text.json +244 -0
  624. package/manifests/theme-switcher.json +152 -0
  625. package/manifests/time-field.json +284 -0
  626. package/manifests/timeline.json +196 -0
  627. package/manifests/toast.json +87 -0
  628. package/manifests/toggle-button.json +1489 -0
  629. package/manifests/toolbar.json +145 -0
  630. package/manifests/tooltip.json +181 -0
  631. package/manifests/tracker.json +192 -0
  632. package/manifests/tree.json +245 -0
  633. package/manifests/visually-hidden.json +114 -0
  634. package/package.json +117 -3
  635. package/styles/base.css +56 -0
  636. package/styles/theme.css +154 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-field.js","sourceRoot":"","sources":["../../src/form/phone-field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,YAAY,EACZ,MAAM,IAAI,UAAU,EACpB,MAAM,EACN,aAAa,EACb,MAAM,EACN,KAAK,EACL,OAAO,EACP,WAAW,EACX,cAAc,EACd,OAAO,EACP,WAAW,IAAI,eAAe,EAC9B,IAAI,EACJ,SAAS,IAAI,aAAa,EAC1B,SAAS,GAEV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,QAAQ,EACR,WAAW,EACX,aAAa,EACb,cAAc,EACd,UAAU,EACV,eAAe,EACf,M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ListBox,\n ListBoxItem,\n ListBoxSection,\n Popover,\n SearchField as AriaSearchField,\n Text,\n TextField as AriaTextField,\n useLocale,\n type Key,\n} from \"react-aria-components\";\nimport { IconGlyph } from \"../display/icon\";\nimport { IsoChipMark } from \"../display/iso-chip\";\n\nimport { cn } from \"../utils\";\nimport { useFieldSize } from \"../defaults\";\nimport { COUNTRIES } from \"./countries\";\nimport { internationalPasteDigits, stripTrunkPrefix } from \"./phone-paste\";\nimport {\n caretAfterDigits,\n digitCountBefore,\n digitIndexForSeparatorKey,\n digitsOf,\n findCountry,\n localeCountry,\n formatNational,\n parsePhone,\n PHONE_COUNTRIES,\n toE164,\n type PhoneCountry,\n} from \"./phone\";\nimport { regionNames } from \"../intl-locale\";\nimport {\n intlLocale,\n noMatchLabel,\n phoneAllCountriesLabel,\n phoneCountryLabel,\n phoneCountryListLabel,\n phoneCountrySearchLabel,\n phoneSuggestedCountriesLabel,\n phoneTooLongLabel,\n phoneTooShortLabel,\n} from \"../i18n\";\nimport { Highlight, matchesQuery } from \"../selection/match\";\nimport { LISTBOX, OPTION, POPOVER } from \"../selection/listbox\";\nimport { FieldDescription, FieldError, FieldLabel, isAriaInvalid, useErrorRowLink, useFieldName } from \"./field-parts\";\nimport { InputGroup } from \"./input-group\";\nimport { FIELD_ICON, FIELD_SIZE, FIELD_STACK, FIELD_FRAME, INPUT, type FieldSize } from \"./styles\";\nimport { splitDataAttributes } from \"./data-attributes\";\nimport { FormSubmittedContext, useRequiredChoice, type RequiredValidation } from \"./validation\";\n\nexport type PhoneFieldProps = {\n /**\n * The visible label above the field. Leave it out only where something else names the number: a non-empty `aria-label`, `aria-labelledby`, or a form row's `<label htmlFor={id}>`. Inside\n * the DS `Field`, which gives its control the id, the Field's label is then the field's only label and its name\n * (`aria-labelledby` its `{id}-label`). A development warning says so when nothing names it.\n */\n label?: React.ReactNode;\n /** Names the number where no visible label is shown (a table cell, a context that already says it). */\n \"aria-label\"?: string;\n /** Ids of the elements that name the number, where no visible label of its own is shown. */\n \"aria-labelledby\"?: string;\n /** The number in E.164 (\"+38267123456\"), or \"\" when empty. Controlled with `onChange`. */\n value?: string;\n defaultValue?: string;\n /**\n * The new E.164 value and the ISO country, together: an empty number still carries the chosen country,\n * so a form can keep both (the old shared field's contract, unchanged).\n */\n onChange?: (value: string, country: string) => void;\n /**\n * Controlled ISO country. Left out, it is read from the value, then `defaultCountry`. A shared calling\n * code reads back as the table's first country for it (+1 → US): pass `country` to keep Canada.\n */\n country?: string;\n /** The country an empty field opens on; by default the locale's region (\"de-AT\" → AT, \"en\" → US). */\n defaultCountry?: string;\n /** ISO codes shown first, above \"All countries\" (the markets this form expects). */\n suggestedCountries?: readonly string[];\n description?: React.ReactNode;\n /** What happened and what to do. Wins over the field's own required and length checks. */\n errorMessage?: React.ReactNode;\n isInvalid?: boolean;\n isRequired?: boolean;\n /**\n * Who says an empty required PhoneField is missing: `field` (default) shows \"Fill in this field.\"\n * on blur and on a DS Form submit, which it then blocks, inside a DS Form of either `validationBehavior`; `app`\n * only marks the field. Outside a DS Form an empty value shows nothing either way. The app's `isInvalid` (or\n * `errorMessage`) wins over this message, and `isInvalid={false}` turns the check off. A disabled, empty, required\n * field still blocks a DS Form's submit and cannot take focus. See {@link RequiredValidation}.\n */\n requiredValidation?: RequiredValidation;\n isDisabled?: boolean;\n isReadOnly?: boolean;\n /** Shows \"(optional)\" when most of the form is required. */\n isOptional?: boolean;\n /** Submits the E.164 value under this name in a native form. */\n name?: string;\n placeholder?: string;\n autoFocus?: boolean;\n onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;\n size?: FieldSize;\n /** A pasted international number whose country is not offered; the value stays unchanged. */\n onUnsupportedInternationalPaste?: (pasted: string) => void;\n /**\n * The number input's id: an app's `<label htmlFor>` and a focus-on-error reach the input, the\n * element that takes typing. The shared `Field` hands its control one. Left out, React Aria's own id stays.\n */\n id?: string;\n /** Ids of text outside the field that describes the number (a form row's hint or error), added to its own. */\n \"aria-describedby\"?: string;\n /**\n * Set by a form row that owns the error text (the shared `Field` hands its control `aria-invalid`): the number is\n * marked invalid for assistive tech and drawn invalid, as with `isInvalid`; the row's message is the one shown,\n * since the field draws an error row only for its own `errorMessage` or length check. This field never uses\n * native validity, so it never blocks a form's submit.\n */\n \"aria-invalid\"?: boolean | \"true\" | \"false\";\n /**\n * The field's words, already localized; the DS strings in the provider locale by default:\n * - `country`: the country button's name, from the country's name and calling code (\"Country: Germany, +49\");\n * - `countryList`: the country list's name, also its popover's (\"Country\");\n * - `countrySearch`: the country search box's name (\"Search countries\");\n * - `countryEmpty`: the list's empty result for the typed search (\"No results for “{query}”.\");\n * - `suggestedCountries`: the first section's name, the `suggestedCountries` (\"Suggested countries\");\n * - `allCountries`: the header above the rest when suggestions show (\"All countries\").\n */\n labels?: {\n country?: (country: string, callingCode: string) => string;\n countryList?: string;\n countrySearch?: string;\n countryEmpty?: (query: string) => React.ReactNode;\n suggestedCountries?: string;\n allCountries?: string;\n };\n /**\n * `data-*` attributes: `data-testid` on the field's wrapper, as on TextField; every other one on the\n * number input, where password managers and autofill read theirs (`data-1p-ignore`, `data-lpignore`).\n */\n [data: `data-${string}`]: string | number | boolean | undefined;\n};\n\ntype CountryOption = { iso: string; dial: string; name: string; english: string };\n\n/** Every country with a calling code, named and sorted in the locale (one formatter for the whole list). */\nfunction useCountryOptions(locale: string): CountryOption[] {\n return React.useMemo(() => {\n const tag = intlLocale(locale);\n const names = regionNames(tag);\n let collator: Intl.Collator;\n try {\n collator = new Intl.Collator(tag);\n } catch {\n collator = new Intl.Collator();\n }\n return COUNTRIES.flatMap((country) => {\n const shape = findCountry(country.code);\n return shape ? [{ iso: country.code, dial: shape.dial, name: names(country.code) ?? country.name, english: country.name }] : [];\n }).sort((a, b) => collator.compare(a.name, b.name));\n }, [locale]);\n}\n\n/** The two-letter ISO code as a chip: the design never shows an emoji flag, nor a color alone (display's IsoChip). */\nfunction IsoChip({ iso }: { iso: string }) {\n return <IsoChipMark code={iso} slot=\"phone-field-iso\" />;\n}\n\n/** \"+382\", kept in that order in RTL. */\nfunction CallingCode({ dial }: { dial: string }) {\n return (\n <span dir=\"ltr\" data-slot=\"phone-field-code\" className=\"tabular-nums text-ds-text-subtle\">\n +{dial}\n </span>\n );\n}\n\n/** The national number's length, as the error says it: \"10\" or \"8–9\". */\nconst digitsText = (shape: PhoneCountry) => (shape.min === shape.max ? String(shape.min) : `${shape.min}–${shape.max}`);\n\nconst COUNTRY_BUTTON =\n \"-ms-(--field-pad) flex shrink-0 cursor-pointer items-center gap-ds-075 self-stretch rounded-s-[max(0px,calc(var(--ds-field-radius,var(--ds-radius-medium))-1px))] border-e border-ds-border px-ds-100 text-body outline-hidden \" +\n \"data-[hovered]:bg-ds-background-neutral-subtle-hovered data-[pressed]:bg-ds-background-neutral-pressed \" +\n \"data-[focus-visible]:inset-ring-2 data-[focus-visible]:inset-ring-ds-border-focused \" +\n \"data-[disabled]:cursor-not-allowed\";\n\n/**\n * A phone number as a country picker plus the national number, given to the form as one E.164 value.\n * The country button shows the ISO chip and the calling code; its list is a searchable menu exactly as\n * wide as the whole field (localized name, English name, ISO code or calling code, diacritics folded),\n * suggested countries first. The number groups as it is typed and pasting an international number\n * switches the country. Label, description and error belong to the number input, also inside a\n * Dialog or Drawer; inside the DS `Field`, leave `label` out and the Field's label names it. Typing, pasting and switching the country stop the number at the country's\n * longest length; a number too short is said on blur, with\n * what to do. An over-long number set from outside (a stored one) is kept as it is until it is edited.\n */\nexport const PhoneField = React.forwardRef<HTMLInputElement, PhoneFieldProps>(function PhoneField(\n {\n label,\n value: valueProp,\n defaultValue,\n onChange,\n country: countryProp,\n defaultCountry: defaultCountryProp,\n suggestedCountries = [],\n description,\n errorMessage,\n isInvalid: isInvalidProp,\n isRequired,\n requiredValidation,\n isDisabled,\n isReadOnly,\n isOptional,\n name,\n placeholder,\n autoFocus,\n onBlur,\n size: fieldSize,\n onUnsupportedInternationalPaste,\n id,\n \"aria-describedby\": ariaDescribedBy,\n \"aria-invalid\": ariaInvalid,\n labels,\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n ...data\n },\n forwardedRef,\n) {\n const size = useFieldSize(fieldSize);\n const { wrapperProps: wrapperData, controlData } = splitDataAttributes(data);\n const { locale } = useLocale();\n const defaultCountry = defaultCountryProp ?? localeCountry(locale);\n const options = useCountryOptions(locale);\n const byIso = React.useMemo(() => new Map(options.map((option) => [option.iso, option])), [options]);\n\n // Value and country: controlled when given, otherwise owned here. The country of a stored number is read from it.\n const [ownValue, setOwnValue] = React.useState(defaultValue ?? \"\");\n const value = valueProp ?? ownValue;\n const [ownCountry, setOwnCountry] = React.useState(() => parsePhone(valueProp ?? defaultValue ?? \"\").country?.iso ?? defaultCountry);\n let country = countryProp ?? ownCountry;\n const digits = digitsOf(value);\n const known = findCountry(country);\n // A value set from outside with another country's code moves an uncontrolled picker to it.\n if (countryProp === undefined && value.startsWith(\"+\") && known && !digits.startsWith(known.dial)) {\n const inferred = parsePhone(value).country?.iso;\n if (inferred && inferred !== ownCountry) {\n setOwnCountry(inferred);\n country = inferred;\n }\n }\n const shape = findCountry(country) ?? findCountry(defaultCountry) ?? findCountry(localeCountry(locale)) ?? findCountry(\"US\")!;\n const national = value.startsWith(\"+\") && digits.startsWith(shape.dial) ? digits.slice(shape.dial.length) : digits;\n const display = formatNational(national, shape);\n const countryName = byIso.get(shape.iso)?.name ?? shape.iso;\n\n // The caret stays after the same digit while spaces come and go.\n const inputRef = React.useRef<HTMLInputElement>(null);\n React.useImperativeHandle(forwardedRef, () => inputRef.current!, []);\n // Named by its own label, or from outside (aria-label, aria-labelledby, a form row's label for its id) with no\n // label of its own: one label and one name either way. With a `label` the DOM is as before.\n const { named, showLabel, externalNameProps } = useFieldName(\"PhoneField\", label, ariaLabel, ariaLabelledBy, id, inputRef);\n const caret = React.useRef<number | null>(null);\n const [revision, setRevision] = React.useState(0);\n React.useLayoutEffect(() => {\n if (caret.current === null || !inputRef.current || document.activeElement !== inputRef.current) return;\n const position = caretAfterDigits(display, caret.current);\n inputRef.current.setSelectionRange(position, position);\n caret.current = null;\n }, [display, revision]);\n\n // The length check runs on blur, never per keystroke: typing can only clear an error (and a country switch\n // re-words it for the new country), a new one waits for the next blur. A value set from outside (a form\n // reset, a loaded draft) is unchecked again until then. Edits never make a number too long (see `emit`), so\n // \"too long\" is only ever said of a number set from outside.\n const [checked, setChecked] = React.useState(false);\n const emitted = React.useRef(value);\n React.useEffect(() => {\n if (value !== emitted.current) {\n emitted.current = value;\n setChecked(false);\n }\n }, [value]);\n const check = (nationalDigits: string, of: PhoneCountry) => {\n if (!nationalDigits) return null;\n const name = byIso.get(of.iso)?.name ?? of.iso;\n if (nationalDigits.length < of.min) return phoneTooShortLabel(locale, name, digitsText(of));\n if (nationalDigits.length > of.max) return phoneTooLongLabel(locale, name, digitsText(of));\n return null;\n };\n\n const emit = (typedNational: string, iso: string, digitPosition: number) => {\n const nextShape = findCountry(iso) ?? shape;\n // A number typed or pasted with the country's trunk prefix (\"068 555 444\" for Montenegro) loses it, and only\n // that recorded prefix: never for a country with none (Italy's 06 stays) or one not known (./phone-paste). The caret stays after the same digit.\n const unprefixed = stripTrunkPrefix(typedNational, nextShape);\n const removed = typedNational.length - unprefixed.length;\n // Every edit (typing, a paste, a country switch) stops at the country's longest number: the digits past it\n // are dropped as they come, so no \"too long\" is left for blur.\n const nextNational = unprefixed.slice(0, nextShape.max);\n const next = toE164(nextNational, nextShape);\n caret.current = Math.min(Math.max(0, digitPosition - removed), nextNational.length);\n setRevision((n) => n + 1);\n if (valueProp === undefined) setOwnValue(next);\n if (countryProp === undefined) setOwnCountry(nextShape.iso);\n emitted.current = next;\n // Typing clears a shown error once the number is right; it never raises one before the next blur.\n if (checked && !check(nextNational, nextShape)) setChecked(false);\n onChange?.(next, nextShape.iso);\n };\n\n // While an input method composes (a CJK or some Android keyboards), the text is left as typed: reformatting it\n // mid-composition would break the composition. When it ends, the composed text is taken as one edit.\n const composing = React.useRef(false);\n const [composed, setComposed] = React.useState<string | null>(null);\n\n const lengthError = checked ? check(national, shape) : null;\n // React Aria never finds an empty required field missing under `aria` validation (which this field always uses\n // with React Aria); the DS does, as TextField does, inside a DS Form of either behaviour, since the\n // browser never sees this field's required. Outside a DS Form nothing is shown for an empty value, as before.\n // The app's error (`isInvalid`, or an `errorMessage`, which makes this field invalid) owns the field and its\n // message wins; `isInvalid={false}` turns the required check off. A number too short or too long is not empty,\n // so the required and length checks never meet.\n const { inForm } = React.useContext(FormSubmittedContext);\n const required = useRequiredChoice({\n filled: national !== \"\", isRequired, requiredValidation, isInvalid: isInvalidProp ?? (errorMessage ? true : undefined), errorMessage,\n validationBehavior: inForm ? \"aria\" : \"native\",\n });\n const shownError = required.errorMessage ?? lengthError;\n // A Form's server errors for `name` are React Aria's, as in every DS field: shown until the number is\n // edited, shown again by the next submit. Only this field's own reasons force the invalid state.\n const isInvalid = Boolean(isInvalidProp || required.isInvalid || errorMessage || lengthError || isAriaInvalid(ariaInvalid));\n const errorRowLink = useErrorRowLink(isAriaInvalid(ariaInvalid), shownError);\n\n // The country menu: anchored to the whole field and exactly as wide.\n const frameRef = React.useRef<HTMLDivElement>(null);\n const [isOpen, setOpen] = React.useState(false);\n const [query, setQuery] = React.useState(\"\");\n const suggested = suggestedCountries.flatMap((iso) => byIso.get(iso) ?? []);\n const rest = options.filter((option) => !suggestedCountries.includes(option.iso));\n const searchText = (option: CountryOption) => [option.name, option.english, option.iso, option.dial, `+${option.dial}`];\n const matches = (option: CountryOption) => matchesQuery(query, ...searchText(option));\n const shownSuggested = suggested.filter(matches);\n const shownRest = rest.filter(matches);\n const choose = (key: Key) => {\n const iso = String(key);\n setOpen(false);\n setQuery(\"\");\n if (iso !== shape.iso) emit(national, iso, national.length);\n };\n const option = (item: CountryOption) => (\n <ListBoxItem key={item.iso} id={item.iso} textValue={item.name} data-slot=\"phone-field-option\" className={OPTION}>\n {({ isSelected }) => (\n <>\n <IsoChip iso={item.iso} />\n <Text slot=\"label\" className=\"min-w-0 flex-1 truncate\">\n <Highlight text={item.name} query={query} />\n </Text>\n <span className=\"shrink-0 text-body-small text-ds-text-subtlest\">\n <CallingCode dial={item.dial} />\n </span>\n {isSelected && <IconGlyph name=\"check\" color=\"brand\" data-slot=\"phone-field-option-check\" />}\n </>\n )}\n </ListBoxItem>\n );\n const sectionHeader = \"px-ds-100 pt-ds-100 pb-ds-050 text-body-small font-medium text-ds-text-subtle\";\n\n const countryLabelProp = labels?.country;\n const countryListLabel = labels?.countryList;\n const countrySearchLabel = labels?.countrySearch;\n const countryEmptyMessage = labels?.countryEmpty;\n const suggestedCountriesLabel = labels?.suggestedCountries;\n const allCountriesLabel = labels?.allCountries;\n const countryLabel = countryLabelProp ? countryLabelProp(countryName, `+${shape.dial}`) : phoneCountryLabel(locale, countryName, `+${shape.dial}`);\n const listLabel = countryListLabel ?? phoneCountryListLabel(locale);\n const locked = isDisabled || isReadOnly;\n\n return (\n <AriaTextField\n {...wrapperData}\n // Only when given, so a field without them renders as before (React Aria's own id, its own description ids).\n {...(id !== undefined ? { id } : null)}\n {...(ariaDescribedBy ? { \"aria-describedby\": ariaDescribedBy } : null)}\n {...(named !== undefined ? { \"aria-label\": named } : null)}\n {...(ariaLabelledBy ? { \"aria-labelledby\": ariaLabelledBy } : null)}\n {...externalNameProps}\n // The error row is linked whenever it shows, also when it comes while the field stays invalid.\n {...errorRowLink}\n value={composed ?? display}\n onChange={(typed) => {\n if (composing.current) {\n setComposed(typed);\n return;\n }\n const position = inputRef.current?.selectionStart ?? typed.length;\n emit(digitsOf(typed), shape.iso, digitCountBefore(typed, position));\n }}\n onBlur={(event) => {\n // Only an error found on blur is shown; a right number leaves nothing for typing to raise later.\n setChecked(Boolean(check(national, shape)));\n required.onBlur?.(event as React.FocusEvent<HTMLInputElement>);\n onBlur?.(event as React.FocusEvent<HTMLInputElement>);\n }}\n isInvalid={isInvalid || undefined}\n name={name}\n isRequired={isRequired}\n isDisabled={isDisabled}\n isReadOnly={isReadOnly}\n autoFocus={autoFocus}\n // React Aria's own check stays out of the way: this field says what is wrong on blur.\n validationBehavior=\"aria\"\n data-slot=\"phone-field\"\n className={FIELD_STACK}\n >\n {showLabel && label != null && (\n <FieldLabel isRequired={isRequired} isOptional={isOptional}>\n {label}\n </FieldLabel>\n )}\n <div ref={frameRef} data-slot=\"phone-field-frame\">\n <InputGroup size={size} isDisabled={isDisabled} isInvalid={isInvalid}>\n {locked ? (\n <span data-slot=\"phone-field-country\" aria-label={countryLabel} role=\"img\" className={cn(COUNTRY_BUTTON, \"cursor-default\")}>\n <IsoChip iso={shape.iso} />\n <CallingCode dial={shape.dial} />\n </span>\n ) : (\n <DialogTrigger\n isOpen={isOpen}\n onOpenChange={(open) => {\n setOpen(open);\n if (!open) setQuery(\"\");\n }}\n >\n <AriaButton aria-label={countryLabel} data-slot=\"phone-field-country\" className={COUNTRY_BUTTON}>\n <IsoChip iso={shape.iso} />\n <CallingCode dial={shape.dial} />\n <IconGlyph name={isOpen ? \"chevron-up\" : \"chevron-down\"} className={FIELD_ICON} />\n </AriaButton>\n <Popover\n triggerRef={frameRef}\n placement=\"bottom start\"\n offset={4}\n data-slot=\"phone-field-popover\"\n className={cn(POPOVER, \"w-(--trigger-width) max-h-80\")}\n >\n <Dialog aria-label={listLabel} className=\"flex min-h-0 flex-col outline-hidden\">\n <Autocomplete inputValue={query} onInputChange={setQuery} filter={() => true}>\n <AriaSearchField autoFocus aria-label={countrySearchLabel ?? phoneCountrySearchLabel(locale)} className=\"mb-ds-050\">\n <div className={cn(FIELD_FRAME, FIELD_SIZE.small, \"focus-within:border-ds-border-focused\")}>\n <IconGlyph name=\"search\" className={FIELD_ICON} />\n <Input data-slot=\"phone-field-search\" className={cn(INPUT, \"text-body [&::-webkit-search-cancel-button]:hidden\")} />\n </div>\n </AriaSearchField>\n <ListBox\n aria-label={listLabel}\n selectionMode=\"single\"\n selectedKeys={[shape.iso]}\n // Pressing the current country toggles it off: that empty selection means \"keep it\" and closes,\n // so confirming the country never leaves the list open.\n onSelectionChange={(keys) => {\n const [key] = [...(keys as Set<Key>)];\n choose(key ?? shape.iso);\n }}\n data-slot=\"phone-field-listbox\"\n className={LISTBOX}\n renderEmptyState={() => (\n <div data-slot=\"phone-field-empty\" className=\"px-ds-100 py-ds-150 text-body-small text-ds-text-subtle\">\n {countryEmptyMessage ? countryEmptyMessage(query) : noMatchLabel(locale, query)}\n </div>\n )}\n >\n {shownSuggested.length > 0 && (\n <ListBoxSection aria-label={suggestedCountriesLabel ?? phoneSuggestedCountriesLabel(locale)} data-slot=\"phone-field-suggested\" className=\"flex flex-col\">\n {shownSuggested.map(option)}\n </ListBoxSection>\n )}\n {shownRest.length > 0 && (\n <ListBoxSection data-slot=\"phone-field-all\" className=\"flex flex-col\">\n {shownSuggested.length > 0 && <Header className={sectionHeader}>{allCountriesLabel ?? phoneAllCountriesLabel(locale)}</Header>}\n {shownRest.map(option)}\n </ListBoxSection>\n )}\n </ListBox>\n </Autocomplete>\n </Dialog>\n </Popover>\n </DialogTrigger>\n )}\n <Input\n {...controlData}\n ref={inputRef}\n type=\"tel\"\n inputMode=\"tel\"\n autoComplete=\"tel-national\"\n // Digits and spaces read left to right in every language; the text still sits at the inline start.\n dir=\"ltr\"\n placeholder={placeholder}\n // The field's `name` is for its server errors; the form gets the E.164 value from the hidden input.\n name=\"\"\n data-slot=\"phone-field-input\"\n className={cn(INPUT, \"text-body tabular-nums rtl:text-end\")}\n onCompositionStart={() => {\n composing.current = true;\n }}\n onCompositionEnd={(event) => {\n composing.current = false;\n setComposed(null);\n const typed = event.currentTarget.value;\n emit(digitsOf(typed), shape.iso, digitCountBefore(typed, event.currentTarget.selectionStart ?? typed.length));\n }}\n onPaste={(event) => {\n if (isReadOnly) return;\n // A plus of any form (\"+\" from a Japanese IME) or two zeros of any script start an international number;\n // its digits are digitsOf's, so \"²\" or \"①\" never count (./phone-paste).\n const pasted = event.clipboardData.getData(\"text\").trim();\n const pastedDigits = internationalPasteDigits(pasted);\n if (pastedDigits === null) return;\n event.preventDefault();\n // Longest calling code first (+38 is a prefix of +380, +381, +382…); the current country wins a tie (+1).\n // On a shared code (+1 for the US, Canada and the Caribbean) the current country wins, then the phone\n // table (the US for +1), as when a stored number is read back.\n const rank = (iso: string) => {\n const at = PHONE_COUNTRIES.findIndex((item) => item.iso === iso);\n return at < 0 ? PHONE_COUNTRIES.length : at;\n };\n const candidates = options\n .filter((item) => pastedDigits.startsWith(item.dial))\n .sort((a, b) => b.dial.length - a.dial.length || Number(b.iso === shape.iso) - Number(a.iso === shape.iso) || rank(a.iso) - rank(b.iso));\n const matched = candidates[0];\n if (!matched) {\n onUnsupportedInternationalPaste?.(pasted);\n return;\n }\n const next = pastedDigits.slice(matched.dial.length);\n emit(next, matched.iso, next.length);\n }}\n onKeyDown={(event) => {\n // Backspace or Delete beside a group space removes the digit, not just the space.\n if (event.ctrlKey || event.metaKey || event.altKey || event.nativeEvent.isComposing || isReadOnly) return;\n if (event.key !== \"Backspace\" && event.key !== \"Delete\") return;\n const start = event.currentTarget.selectionStart ?? 0;\n if (start !== event.currentTarget.selectionEnd) return;\n const index = digitIndexForSeparatorKey(display, start, event.key);\n if (index === null) return;\n event.preventDefault();\n emit(national.slice(0, index) + national.slice(index + 1), shape.iso, index);\n }}\n />\n </InputGroup>\n </div>\n {description && <FieldDescription>{description}</FieldDescription>}\n <FieldError>{shownError}</FieldError>\n {/* Disabled controls stay out of a form submission, as a native disabled input would. */}\n {name && !isDisabled && <input type=\"hidden\" name={name} value={value} data-slot=\"phone-field-value\" />}\n </AriaTextField>\n );\n});\n"]}
@@ -0,0 +1,24 @@
1
+ import { type PhoneCountry } from "./phone.js";
2
+ /**
3
+ * A pasted international number's digits, calling code first, or `null` when the paste is not international.
4
+ * PhoneField's rule for a paste.
5
+ *
6
+ * International means it starts with a plus or with two zeros. The plus may be any character that is a plus by
7
+ * compatibility (NFKC): the ASCII "+", a full-width "+" from a Japanese IME, a small "﹢". The zeros may be in any
8
+ * script, as `digitsOf` reads digits ("00", "00", "٠٠", "۰۰"). NFKC is used only to recognise the plus: the digits
9
+ * are `digitsOf`'s, so what it does not take as a digit ("²", "①", "½") is never one here either.
10
+ */
11
+ export declare function internationalPasteDigits(pasted: string): string | null;
12
+ /**
13
+ * The national number without the country's trunk prefix, when it was typed or pasted with one:
14
+ * Montenegro's "068 555 444" is 68 555 444, Russia's "8 912 345 67 89" is 912 345 67 89. PhoneField applies it
15
+ * to every edit before the length cut.
16
+ *
17
+ * `national` is digits (as `digitsOf` gives them, so a number typed in any script is the same number). Only the
18
+ * prefix the table records is taken off (`PhoneCountry.trunkPrefix`): a country with none (Italy, Poland) or one not
19
+ * known (every country outside the table) keeps every digit. It is taken off only once what is left is long
20
+ * enough to be the country's number, so a half-typed number keeps its prefix until the digit that completes it.
21
+ * Where the prefix's digits can also begin a national number (Russia's 8 and its 8xx codes), the rest has to be a
22
+ * whole number at the country's longest length, so a complete number that starts with them is never cut.
23
+ */
24
+ export declare function stripTrunkPrefix(national: string, country: PhoneCountry | undefined): string;
@@ -0,0 +1,40 @@
1
+ import { digitsOf } from "./phone.js";
2
+ /**
3
+ * A pasted international number's digits, calling code first, or `null` when the paste is not international.
4
+ * PhoneField's rule for a paste.
5
+ *
6
+ * International means it starts with a plus or with two zeros. The plus may be any character that is a plus by
7
+ * compatibility (NFKC): the ASCII "+", a full-width "+" from a Japanese IME, a small "﹢". The zeros may be in any
8
+ * script, as `digitsOf` reads digits ("00", "00", "٠٠", "۰۰"). NFKC is used only to recognise the plus: the digits
9
+ * are `digitsOf`'s, so what it does not take as a digit ("²", "①", "½") is never one here either.
10
+ */
11
+ export function internationalPasteDigits(pasted) {
12
+ const text = pasted.trim();
13
+ const [first = "", second = ""] = [...text];
14
+ if (first.normalize("NFKC") === "+")
15
+ return digitsOf(text);
16
+ if (/^\p{Nd}$/u.test(first) && /^\p{Nd}$/u.test(second) && digitsOf(first + second) === "00")
17
+ return digitsOf(text).slice(2);
18
+ return null;
19
+ }
20
+ /**
21
+ * The national number without the country's trunk prefix, when it was typed or pasted with one:
22
+ * Montenegro's "068 555 444" is 68 555 444, Russia's "8 912 345 67 89" is 912 345 67 89. PhoneField applies it
23
+ * to every edit before the length cut.
24
+ *
25
+ * `national` is digits (as `digitsOf` gives them, so a number typed in any script is the same number). Only the
26
+ * prefix the table records is taken off (`PhoneCountry.trunkPrefix`): a country with none (Italy, Poland) or one not
27
+ * known (every country outside the table) keeps every digit. It is taken off only once what is left is long
28
+ * enough to be the country's number, so a half-typed number keeps its prefix until the digit that completes it.
29
+ * Where the prefix's digits can also begin a national number (Russia's 8 and its 8xx codes), the rest has to be a
30
+ * whole number at the country's longest length, so a complete number that starts with them is never cut.
31
+ */
32
+ export function stripTrunkPrefix(national, country) {
33
+ const prefix = country?.trunkPrefix;
34
+ if (!country || !prefix || !national.startsWith(prefix))
35
+ return national;
36
+ const rest = national.slice(prefix.length);
37
+ const needed = country.trunkPrefixStartsNumbers ? country.max : country.min;
38
+ return rest.length >= needed ? rest : national;
39
+ }
40
+ //# sourceMappingURL=phone-paste.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phone-paste.js","sourceRoot":"","sources":["../../src/form/phone-paste.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAqB,MAAM,SAAS,CAAC;AAEtD;;;;;;;;GAQG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAc;IACrD,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;IAC3B,MAAM,CAAC,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;IAC5C,IAAI,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,GAAG;QAAE,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3D,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI;QAAE,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7H,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAAgB,EAAE,OAAiC;IAClF,MAAM,MAAM,GAAG,OAAO,EAAE,WAAW,CAAC;IACpC,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC;QAAE,OAAO,QAAQ,CAAC;IACzE,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC;IAC5E,OAAO,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC;AACjD,CAAC","sourcesContent":["import { digitsOf, type PhoneCountry } from \"./phone\";\n\n/**\n * A pasted international number's digits, calling code first, or `null` when the paste is not international.\n * PhoneField's rule for a paste.\n *\n * International means it starts with a plus or with two zeros. The plus may be any character that is a plus by\n * compatibility (NFKC): the ASCII \"+\", a full-width \"+\" from a Japanese IME, a small \"﹢\". The zeros may be in any\n * script, as `digitsOf` reads digits (\"00\", \"00\", \"٠٠\", \"۰۰\"). NFKC is used only to recognise the plus: the digits\n * are `digitsOf`'s, so what it does not take as a digit (\"²\", \"①\", \"½\") is never one here either.\n */\nexport function internationalPasteDigits(pasted: string): string | null {\n const text = pasted.trim();\n const [first = \"\", second = \"\"] = [...text];\n if (first.normalize(\"NFKC\") === \"+\") return digitsOf(text);\n if (/^\\p{Nd}$/u.test(first) && /^\\p{Nd}$/u.test(second) && digitsOf(first + second) === \"00\") return digitsOf(text).slice(2);\n return null;\n}\n\n/**\n * The national number without the country's trunk prefix, when it was typed or pasted with one:\n * Montenegro's \"068 555 444\" is 68 555 444, Russia's \"8 912 345 67 89\" is 912 345 67 89. PhoneField applies it\n * to every edit before the length cut.\n *\n * `national` is digits (as `digitsOf` gives them, so a number typed in any script is the same number). Only the\n * prefix the table records is taken off (`PhoneCountry.trunkPrefix`): a country with none (Italy, Poland) or one not\n * known (every country outside the table) keeps every digit. It is taken off only once what is left is long\n * enough to be the country's number, so a half-typed number keeps its prefix until the digit that completes it.\n * Where the prefix's digits can also begin a national number (Russia's 8 and its 8xx codes), the rest has to be a\n * whole number at the country's longest length, so a complete number that starts with them is never cut.\n */\nexport function stripTrunkPrefix(national: string, country: PhoneCountry | undefined): string {\n const prefix = country?.trunkPrefix;\n if (!country || !prefix || !national.startsWith(prefix)) return national;\n const rest = national.slice(prefix.length);\n const needed = country.trunkPrefixStartsNumbers ? country.max : country.min;\n return rest.length >= needed ? rest : national;\n}\n"]}
@@ -0,0 +1,159 @@
1
+ /**
2
+ * Dial codes and national number shapes for phone fields.
3
+ *
4
+ * One free-text box stores "+382 67 123 456", "067123456" and "38267123456" as three spellings of one number.
5
+ * A phone field instead has the reader pick a calling code, groups the digits as they are typed, and stores one
6
+ * E.164 spelling on submit.
7
+ *
8
+ * `libphonenumber-js` is the exhaustive answer, at the cost of a large dependency. This table covers common
9
+ * markets with their grouping, length and trunk prefix; any other country falls back to the shared `DIAL_CODES`
10
+ * list plus digits grouped in threes. The table is the *formatting* table, not the list of countries the picker
11
+ * offers: that comes from `COUNTRIES`. A dialling code belongs in the shared list; a group shape belongs here.
12
+ */
13
+ import { type Country } from "./countries.js";
14
+ export interface PhoneCountry {
15
+ /** ISO 3166-1 alpha-2 — the key `Intl.DisplayNames` resolves. */
16
+ iso: string;
17
+ /** Dial code without the plus. */
18
+ dial: string;
19
+ /**
20
+ * How the national number is spoken aloud, as digit-group lengths.
21
+ * Turkish 5393407624 is "539 340 76 24", so [3, 3, 2, 2].
22
+ */
23
+ groups: number[];
24
+ /** National digit count, inclusive. Some countries genuinely vary. */
25
+ min: number;
26
+ max: number;
27
+ /**
28
+ * The national (trunk) prefix dialled before the national number inside the country ("0" for Montenegro's
29
+ * "068 555 444", "8" for Russia, "1" for the United States), never part of the E.164 number.
30
+ * `null`: the country has none, its numbers are dialled whole (Italy's "06 1234 5678" keeps its 0). Left out:
31
+ * not known, and nothing is ever stripped. Each value is sourced in the table's comment.
32
+ */
33
+ trunkPrefix?: string | null;
34
+ /**
35
+ * The trunk prefix's digits can also begin a valid national number (Russia: "8" is the trunk prefix and 812 is
36
+ * St Petersburg). Then the prefix is stripped only when the rest is a whole number on its own, at the longest
37
+ * length, so a complete national number that starts with those digits is never cut.
38
+ */
39
+ trunkPrefixStartsNumbers?: boolean;
40
+ }
41
+ /**
42
+ * Sorted by ISO code. Where two countries share a calling code, the one listed first wins when a pasted
43
+ * number is read; no two rows here share one.
44
+ *
45
+ * Trunk prefixes (`trunkPrefix`). Sources, cited per row:
46
+ * [OB994] ITU-T, "Dialling procedures (international prefix, national (trunk) prefix and national (significant)
47
+ * number)", position on 15 December 2011, Annex to ITU Operational Bulletin No. 994 (T-SP-E.164C-2011),
48
+ * column "National prefix" (notes 2: in France and Switzerland the 0 is dialled on every domestic call).
49
+ * [ME-NNP] ITU-T national numbering plan communication of 5.XI.2014, EKIP Podgorica: "National prefix: 0".
50
+ * [AL-NNP] ITU-T national numbering plan communication of 13.II.2017, AKEP: a closed plan, domestic calls use
51
+ * "the full length number with the prefix 0"; the table lists "0 National prefix".
52
+ * [RS-PN] RATEL, Numbering Plan for Telecommunication Networks (16.06.2006): a national call dials "the national
53
+ * prefix 0", which "is not part of the national number".
54
+ * [PL-DU] Rozporządzenie Ministra Administracji i Cyfryzacji z 30.10.2013 w sprawie planu numeracji krajowej
55
+ * (Dz.U. 2013 poz. 1281), § 4 pkt 2: a national number is dialled "~ KNA", with no prefix; the "0" was
56
+ * withdrawn from 30.09.2009 (Dz.U. 2009 poz. 1225). [OB994]'s "0" for Poland predates the change.
57
+ * [RU-142] Rossvyaz plan (Mininformsvyazi order No. 142 of 17.11.2006, as amended): the long-distance prefix "8";
58
+ * the planned move to "0" was postponed repeatedly and is not recorded here. National numbers also
59
+ * begin with 8 (ABC 810–880, DEF 800–809, ITU-T communication of 26.X.2016), hence
60
+ * `trunkPrefixStartsNumbers`.
61
+ * [XK] Kosovo, the one row without a regulator source: trunk prefix "0" from
62
+ * secondary sources only (the Wikipedia "Telephone numbers in Kosovo" infobox; dialling guides). [OB994]
63
+ * predates +383, and ARKEP's ITU-T communications (15.III.2017, 31.X.2019) state none; revisit if ARKEP
64
+ * publishes one.
65
+ * [XK-NNP] ITU-T communication of 15.III.2017, ARKEP: national numbers are 8 to 9 digits; the fixed NDCs 280, 290
66
+ * and 390 take 9.
67
+ */
68
+ export declare const PHONE_COUNTRIES: readonly PhoneCountry[];
69
+ /**
70
+ * The country a phone field opens on when the app names none: the locale's region ("de-AT" → AT), or the region
71
+ * its language most likely means ("de" → DE, "en" → US); "US" when neither has a calling code.
72
+ */
73
+ export declare function localeCountry(locale: string): string;
74
+ /**
75
+ * The shape for a country: from the table when it is there, and from the
76
+ * shared dialling codes when it is not.
77
+ *
78
+ * An undefined answer would be silent and expensive — `toE164` writes
79
+ * `+${country?.dial ?? ""}`, so a customer choosing Japan would have stored a
80
+ * number with no country code at all.
81
+ *
82
+ * A synthesised entry carries the real dialling code with the fallback shape.
83
+ * Its trunk prefix is unknown, so nothing is stripped from its
84
+ * numbers.
85
+ */
86
+ export declare function findCountry(iso: string): PhoneCountry | undefined;
87
+ /**
88
+ * Digits only, as ASCII. Everything a person might type between them is decoration; a digit typed in another
89
+ * script (a full-width IME, an Arabic or Persian keyboard) is the same digit.
90
+ */
91
+ export declare function digitsOf(value: string): string;
92
+ /** How many digits sit to the left of `caret` in a formatted (or raw) string. */
93
+ export declare function digitCountBefore(value: string, caret: number): number;
94
+ /**
95
+ * Character index in `formatted` that sits after `digitCount` digits.
96
+ * Skips a following space so the next keystroke lands in the next group.
97
+ */
98
+ export declare function caretAfterDigits(formatted: string, digitCount: number): number;
99
+ /**
100
+ * Grouping spaces are not characters. Backspace/Delete against a space
101
+ * should remove the adjacent digit — otherwise the formatted value is
102
+ * unchanged, React rewrites the input, and the caret jumps to the end
103
+ *.
104
+ */
105
+ export declare function digitIndexForSeparatorKey(formatted: string, caret: number, key: "Backspace" | "Delete"): number | null;
106
+ /**
107
+ * Group `digits` the way `country` says the number is spoken.
108
+ *
109
+ * Formats what is there rather than what is missing — a half-typed number gets
110
+ * the spaces it has earned and no trailing separator, so the caret never sits
111
+ * after a space the reader did not type. Digits past the last group stay
112
+ * attached rather than being dropped.
113
+ */
114
+ export declare function formatNational(digits: string, country?: PhoneCountry): string;
115
+ /** `+90 539 340 76 24` — for display and for anything a human reads. */
116
+ export declare function formatPhone(digits: string, country?: PhoneCountry): string;
117
+ /**
118
+ * `+905393407624` — the form sent to the API and used to build a WhatsApp
119
+ * link. Spaces are for reading; a stored number should have one spelling.
120
+ */
121
+ export declare function toE164(digits: string, country?: PhoneCountry): string;
122
+ export declare function isCompleteNational(digits: string, country?: PhoneCountry): boolean;
123
+ /**
124
+ * Split a stored `+…` number back into a country and its national digits, so
125
+ * returning to a saved draft puts the reader where they left off.
126
+ *
127
+ * Longest dial code first: `+38` is a prefix of `+380`, `+381`, `+382`…
128
+ * Matching short would put a Ukrainian number under Serbia. The curated
129
+ * table is tried first so known shapes win; then every shared dial code so
130
+ * a Japanese number is not handed back as an unrecognised blob.
131
+ */
132
+ export declare function parsePhone(value: string): {
133
+ country?: PhoneCountry;
134
+ national: string;
135
+ };
136
+ /**
137
+ * Localized country name via `Intl.DisplayNames`, e.g. "Germany" / "Deutschland" / "Allemagne".
138
+ * Distinct from `countries.countryName`,
139
+ * which returns the English catalog entry.
140
+ */
141
+ export declare function countryName(iso: string, locale: string): string;
142
+ /** The `Intl` locale a phone field names and sorts its countries in. */
143
+ export declare function phoneDisplayLocale(locale: string): string;
144
+ /**
145
+ * Every country a phone field offers, named in the reader's language and
146
+ * sorted by that name the way that language sorts ("Tunus" before "Türkiye"
147
+ * in Turkish). Sorting by ISO code instead would show a Turkish reader
148
+ * Ekvator Ginesi, Yunanistan, Guatemala…
149
+ *
150
+ */
151
+ export declare function phoneCountries(locale: string): Country[];
152
+ /** Complete national number whose E.164 spelling is at most 15 digits. */
153
+ export declare function isSubmittedPhone(value: string): boolean;
154
+ /**
155
+ * National digits of a stored E.164 value for the *selected* country.
156
+ * Prefer this over `parsePhone` when the picker already knows the ISO:
157
+ * `parsePhone` has to guess, and shared prefixes (NANP `+1`) can guess wrong.
158
+ */
159
+ export declare function nationalDigits(value: string, country: PhoneCountry): string;