frontile 0.18.0-alpha.8 → 0.18.0-beta.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 (451) hide show
  1. package/declarations/-private/control-blur.d.ts +63 -0
  2. package/declarations/-private/dialog.d.ts +15 -0
  3. package/declarations/-private/intent-icons.d.ts +9 -0
  4. package/declarations/-private/manager.d.ts +10 -3
  5. package/declarations/-private/notification-stack.d.ts +76 -0
  6. package/declarations/-private/notification.d.ts +33 -8
  7. package/declarations/-private/types.d.ts +69 -3
  8. package/declarations/components/buttons/button.d.ts +30 -1
  9. package/declarations/components/buttons/chip.d.ts +36 -5
  10. package/declarations/components/buttons/index.d.ts +1 -0
  11. package/declarations/components/buttons/segmented-control/item.d.ts +50 -0
  12. package/declarations/components/buttons/segmented-control/segmented-control.d.ts +210 -0
  13. package/declarations/components/buttons/segmented-control.d.ts +3 -0
  14. package/declarations/components/collections/calendar/calendar.d.ts +585 -0
  15. package/declarations/components/collections/calendar/day-cell.d.ts +19 -0
  16. package/declarations/components/collections/calendar/header.d.ts +56 -0
  17. package/declarations/components/collections/calendar/icons.d.ts +14 -0
  18. package/declarations/components/collections/calendar/month-grid.d.ts +36 -0
  19. package/declarations/components/collections/calendar/types.d.ts +94 -0
  20. package/declarations/components/collections/calendar/utils.d.ts +51 -0
  21. package/declarations/components/collections/calendar/year-grid.d.ts +32 -0
  22. package/declarations/components/collections/calendar.d.ts +3 -0
  23. package/declarations/components/collections/command/command.d.ts +195 -0
  24. package/declarations/components/collections/command/dialog.d.ts +44 -0
  25. package/declarations/components/collections/command/footer.d.ts +61 -0
  26. package/declarations/components/collections/command/index.d.ts +6 -0
  27. package/declarations/components/collections/command/input.d.ts +131 -0
  28. package/declarations/components/collections/command/list.d.ts +135 -0
  29. package/declarations/components/collections/command.d.ts +2 -0
  30. package/declarations/components/collections/dropdown/dropdown.d.ts +190 -0
  31. package/declarations/components/collections/dropdown/menu-context.d.ts +64 -0
  32. package/declarations/components/collections/dropdown/sub.d.ts +195 -0
  33. package/declarations/components/collections/dropdown.d.ts +2 -99
  34. package/declarations/components/collections/index.d.ts +2 -0
  35. package/declarations/components/collections/listbox/group.d.ts +62 -0
  36. package/declarations/components/collections/listbox/item.d.ts +91 -2
  37. package/declarations/components/collections/listbox/listbox.d.ts +39 -12
  38. package/declarations/components/collections/simple-table/body.d.ts +55 -2
  39. package/declarations/components/collections/simple-table/cell.d.ts +52 -0
  40. package/declarations/components/collections/simple-table/column.d.ts +52 -0
  41. package/declarations/components/collections/simple-table/footer.d.ts +52 -0
  42. package/declarations/components/collections/simple-table/header.d.ts +52 -0
  43. package/declarations/components/collections/simple-table/index.d.ts +52 -0
  44. package/declarations/components/collections/simple-table/row.d.ts +54 -1
  45. package/declarations/components/collections/table/column-visibility.d.ts +53 -1
  46. package/declarations/components/collections/table/sort-button.d.ts +52 -0
  47. package/declarations/components/collections/table/table.d.ts +83 -11
  48. package/declarations/components/collections/table/types.d.ts +15 -3
  49. package/declarations/components/collections/table/utils.d.ts +3 -3
  50. package/declarations/components/disclosure/accordion/accordion.d.ts +247 -0
  51. package/declarations/components/disclosure/accordion/item.d.ts +96 -0
  52. package/declarations/components/disclosure/accordion.d.ts +3 -0
  53. package/declarations/components/disclosure/icons.d.ts +9 -0
  54. package/declarations/components/disclosure/index.d.ts +1 -0
  55. package/declarations/components/forms/autocomplete.d.ts +446 -0
  56. package/declarations/components/forms/checkbox-group.d.ts +20 -0
  57. package/declarations/components/forms/checkbox.d.ts +22 -0
  58. package/declarations/components/forms/field.d.ts +2 -0
  59. package/declarations/components/forms/form-control.d.ts +54 -0
  60. package/declarations/components/forms/form-description.d.ts +12 -0
  61. package/declarations/components/forms/form-feedback.d.ts +43 -1
  62. package/declarations/components/forms/form.d.ts +5 -4
  63. package/declarations/components/forms/index.d.ts +2 -0
  64. package/declarations/components/forms/input-otp.d.ts +321 -0
  65. package/declarations/components/forms/input.d.ts +44 -1
  66. package/declarations/components/forms/label.d.ts +13 -0
  67. package/declarations/components/forms/native-select.d.ts +103 -6
  68. package/declarations/components/forms/radio-group.d.ts +21 -0
  69. package/declarations/components/forms/radio.d.ts +27 -0
  70. package/declarations/components/forms/select/end-content.d.ts +31 -0
  71. package/declarations/components/forms/select/native-mirror.d.ts +44 -0
  72. package/declarations/components/forms/select/select.d.ts +454 -0
  73. package/declarations/components/forms/select/selected-items.d.ts +80 -0
  74. package/declarations/components/forms/select/trigger.d.ts +81 -0
  75. package/declarations/components/forms/select/types.d.ts +431 -0
  76. package/declarations/components/forms/select.d.ts +2 -531
  77. package/declarations/components/forms/switch.d.ts +16 -16
  78. package/declarations/components/forms/textarea.d.ts +35 -0
  79. package/declarations/components/navigation/external-link.d.ts +94 -0
  80. package/declarations/components/navigation/index.d.ts +4 -0
  81. package/declarations/components/navigation/pagination/icons.d.ts +13 -0
  82. package/declarations/components/navigation/pagination/pagination.d.ts +279 -0
  83. package/declarations/components/navigation/pagination/range.d.ts +34 -0
  84. package/declarations/components/navigation/pagination.d.ts +3 -0
  85. package/declarations/components/navigation/tab-nav/item.d.ts +79 -0
  86. package/declarations/components/navigation/tab-nav/tab-nav.d.ts +165 -0
  87. package/declarations/components/navigation/tab-nav.d.ts +3 -0
  88. package/declarations/components/navigation/tabs/panel.d.ts +28 -0
  89. package/declarations/components/navigation/tabs/tab.d.ts +46 -0
  90. package/declarations/components/navigation/tabs/tabs.d.ts +227 -0
  91. package/declarations/components/navigation/tabs.d.ts +4 -0
  92. package/declarations/components/notifications/icons.d.ts +9 -0
  93. package/declarations/components/notifications/index.d.ts +6 -3
  94. package/declarations/components/notifications/notification-card.d.ts +63 -12
  95. package/declarations/components/notifications/notifications-container.d.ts +109 -7
  96. package/declarations/components/overlays/drawer/drag-handle.d.ts +26 -0
  97. package/declarations/components/overlays/drawer/header.d.ts +120 -1
  98. package/declarations/components/overlays/drawer/selectors.d.ts +22 -0
  99. package/declarations/components/overlays/drawer.d.ts +180 -12
  100. package/declarations/components/overlays/index.d.ts +3 -1
  101. package/declarations/components/overlays/modal/header.d.ts +14 -0
  102. package/declarations/components/overlays/modal.d.ts +35 -13
  103. package/declarations/components/overlays/mount-animation.d.ts +81 -0
  104. package/declarations/components/overlays/overlay.d.ts +59 -2
  105. package/declarations/components/overlays/popover.d.ts +292 -5
  106. package/declarations/components/overlays/portal-target.d.ts +5 -1
  107. package/declarations/components/overlays/tooltip.d.ts +401 -0
  108. package/declarations/components/status/alert.d.ts +134 -0
  109. package/declarations/components/status/index.d.ts +1 -0
  110. package/declarations/components/status/progress-bar.d.ts +28 -3
  111. package/declarations/components/utilities/avatar.d.ts +6 -6
  112. package/declarations/components/utilities/collapsible.d.ts +20 -1
  113. package/declarations/components/utilities/divider.d.ts +14 -0
  114. package/declarations/components/utilities/index.d.ts +6 -0
  115. package/declarations/components/utilities/kbd.d.ts +92 -0
  116. package/declarations/components/utilities/skeleton.d.ts +31 -0
  117. package/declarations/components/utilities/spinner.d.ts +8 -0
  118. package/declarations/disclosure.d.ts +1 -0
  119. package/declarations/index.d.ts +3 -1
  120. package/declarations/modifiers/drag-to-dismiss.d.ts +22 -0
  121. package/declarations/navigation.d.ts +1 -0
  122. package/declarations/services/notifications.d.ts +3 -2
  123. package/declarations/template-registry.d.ts +21 -6
  124. package/declarations/test-support.d.ts +1 -0
  125. package/declarations/utils/deferred-work.d.ts +24 -0
  126. package/declarations/utils/filter.d.ts +87 -0
  127. package/declarations/utils/keys.d.ts +52 -0
  128. package/declarations/utils/listManager.d.ts +93 -9
  129. package/declarations/utils/prefers-reduced-motion.d.ts +3 -0
  130. package/declarations/utils/roving-focus.d.ts +66 -0
  131. package/declarations/utils/safe-area.d.ts +52 -0
  132. package/declarations/utils/selection-indicator.d.ts +65 -0
  133. package/declarations/utils/standard-validator.d.ts +28 -3
  134. package/dist/buttons.js +2 -0
  135. package/dist/buttons.js.map +1 -1
  136. package/dist/collections.js +8 -1
  137. package/dist/collections.js.map +1 -1
  138. package/dist/components/buttons/button-group.js +1 -1
  139. package/dist/components/buttons/button-group.js.map +1 -1
  140. package/dist/components/buttons/button.js +72 -7
  141. package/dist/components/buttons/button.js.map +1 -1
  142. package/dist/components/buttons/chip.js +1 -1
  143. package/dist/components/buttons/chip.js.map +1 -1
  144. package/dist/components/buttons/close-button.js +3 -3
  145. package/dist/components/buttons/close-button.js.map +1 -1
  146. package/dist/components/buttons/index.js +2 -0
  147. package/dist/components/buttons/index.js.map +1 -1
  148. package/dist/components/buttons/segmented-control/item.js +55 -0
  149. package/dist/components/buttons/segmented-control/item.js.map +1 -0
  150. package/dist/components/buttons/segmented-control/segmented-control.js +175 -0
  151. package/dist/components/buttons/segmented-control/segmented-control.js.map +1 -0
  152. package/dist/components/buttons/segmented-control.js +3 -0
  153. package/dist/components/buttons/segmented-control.js.map +1 -0
  154. package/dist/components/buttons/toggle-button.js +2 -2
  155. package/dist/components/buttons/toggle-button.js.map +1 -1
  156. package/dist/components/collections/calendar/calendar.js +808 -0
  157. package/dist/components/collections/calendar/calendar.js.map +1 -0
  158. package/dist/components/collections/calendar/day-cell.js +16 -0
  159. package/dist/components/collections/calendar/day-cell.js.map +1 -0
  160. package/dist/components/collections/calendar/header.js +48 -0
  161. package/dist/components/collections/calendar/header.js.map +1 -0
  162. package/dist/components/collections/calendar/icons.js +23 -0
  163. package/dist/components/collections/calendar/icons.js.map +1 -0
  164. package/dist/components/collections/calendar/month-grid.js +14 -0
  165. package/dist/components/collections/calendar/month-grid.js.map +1 -0
  166. package/dist/components/collections/calendar/types.js +2 -0
  167. package/dist/components/collections/calendar/types.js.map +1 -0
  168. package/dist/components/collections/calendar/utils.js +199 -0
  169. package/dist/components/collections/calendar/utils.js.map +1 -0
  170. package/dist/components/collections/calendar/year-grid.js +117 -0
  171. package/dist/components/collections/calendar/year-grid.js.map +1 -0
  172. package/dist/components/collections/calendar.js +2 -0
  173. package/dist/components/collections/calendar.js.map +1 -0
  174. package/dist/components/collections/command/command.js +263 -0
  175. package/dist/components/collections/command/command.js.map +1 -0
  176. package/dist/components/collections/command/dialog.js +100 -0
  177. package/dist/components/collections/command/dialog.js.map +1 -0
  178. package/dist/components/collections/command/footer.js +60 -0
  179. package/dist/components/collections/command/footer.js.map +1 -0
  180. package/dist/components/collections/command/index.js +6 -0
  181. package/dist/components/collections/command/index.js.map +1 -0
  182. package/dist/components/collections/command/input.js +45 -0
  183. package/dist/components/collections/command/input.js.map +1 -0
  184. package/dist/components/collections/command/list.js +70 -0
  185. package/dist/components/collections/command/list.js.map +1 -0
  186. package/dist/components/collections/command.js +6 -0
  187. package/dist/components/collections/command.js.map +1 -0
  188. package/dist/components/collections/dropdown/dropdown.js +206 -0
  189. package/dist/components/collections/dropdown/dropdown.js.map +1 -0
  190. package/dist/components/collections/dropdown/menu-context.js +62 -0
  191. package/dist/components/collections/dropdown/menu-context.js.map +1 -0
  192. package/dist/components/collections/dropdown/sub.js +256 -0
  193. package/dist/components/collections/dropdown/sub.js.map +1 -0
  194. package/dist/components/collections/dropdown.js +1 -93
  195. package/dist/components/collections/dropdown.js.map +1 -1
  196. package/dist/components/collections/index.js +8 -1
  197. package/dist/components/collections/index.js.map +1 -1
  198. package/dist/components/collections/listbox/group.js +60 -0
  199. package/dist/components/collections/listbox/group.js.map +1 -0
  200. package/dist/components/collections/listbox/item.js +105 -12
  201. package/dist/components/collections/listbox/item.js.map +1 -1
  202. package/dist/components/collections/listbox/listbox.js +106 -28
  203. package/dist/components/collections/listbox/listbox.js.map +1 -1
  204. package/dist/components/collections/listbox.js +1 -0
  205. package/dist/components/collections/listbox.js.map +1 -1
  206. package/dist/components/collections/simple-table/body.js +1 -1
  207. package/dist/components/collections/simple-table/body.js.map +1 -1
  208. package/dist/components/collections/simple-table/cell.js +1 -1
  209. package/dist/components/collections/simple-table/cell.js.map +1 -1
  210. package/dist/components/collections/simple-table/column.js +1 -1
  211. package/dist/components/collections/simple-table/column.js.map +1 -1
  212. package/dist/components/collections/simple-table/footer.js +1 -1
  213. package/dist/components/collections/simple-table/footer.js.map +1 -1
  214. package/dist/components/collections/simple-table/header.js +1 -1
  215. package/dist/components/collections/simple-table/header.js.map +1 -1
  216. package/dist/components/collections/simple-table/index.js +1 -1
  217. package/dist/components/collections/simple-table/index.js.map +1 -1
  218. package/dist/components/collections/simple-table/row.js +1 -1
  219. package/dist/components/collections/simple-table/row.js.map +1 -1
  220. package/dist/components/collections/table/cell-default.js +1 -1
  221. package/dist/components/collections/table/cell-default.js.map +1 -1
  222. package/dist/components/collections/table/cell-for.js +1 -1
  223. package/dist/components/collections/table/cell-for.js.map +1 -1
  224. package/dist/components/collections/table/checkbox.js +2 -2
  225. package/dist/components/collections/table/checkbox.js.map +1 -1
  226. package/dist/components/collections/table/column-visibility.js +3 -3
  227. package/dist/components/collections/table/column-visibility.js.map +1 -1
  228. package/dist/components/collections/table/icons.js +3 -3
  229. package/dist/components/collections/table/icons.js.map +1 -1
  230. package/dist/components/collections/table/sort-button.js +2 -2
  231. package/dist/components/collections/table/sort-button.js.map +1 -1
  232. package/dist/components/collections/table/table.js +100 -54
  233. package/dist/components/collections/table/table.js.map +1 -1
  234. package/dist/components/collections/table/utils.js +1 -1
  235. package/dist/components/collections/table/utils.js.map +1 -1
  236. package/dist/components/disclosure/accordion/accordion.js +225 -0
  237. package/dist/components/disclosure/accordion/accordion.js.map +1 -0
  238. package/dist/components/disclosure/accordion/item.js +86 -0
  239. package/dist/components/disclosure/accordion/item.js.map +1 -0
  240. package/dist/components/disclosure/accordion.js +3 -0
  241. package/dist/components/disclosure/accordion.js.map +1 -0
  242. package/dist/components/disclosure/icons.js +13 -0
  243. package/dist/components/disclosure/icons.js.map +1 -0
  244. package/dist/components/disclosure/index.js +3 -0
  245. package/dist/components/disclosure/index.js.map +1 -0
  246. package/dist/components/forms/autocomplete.js +351 -0
  247. package/dist/components/forms/autocomplete.js.map +1 -0
  248. package/dist/components/forms/checkbox-group.js +1 -1
  249. package/dist/components/forms/checkbox-group.js.map +1 -1
  250. package/dist/components/forms/checkbox.js +2 -2
  251. package/dist/components/forms/checkbox.js.map +1 -1
  252. package/dist/components/forms/field.js +5 -3
  253. package/dist/components/forms/field.js.map +1 -1
  254. package/dist/components/forms/form-control.js +12 -3
  255. package/dist/components/forms/form-control.js.map +1 -1
  256. package/dist/components/forms/form-description.js +1 -1
  257. package/dist/components/forms/form-description.js.map +1 -1
  258. package/dist/components/forms/form-feedback.js +25 -8
  259. package/dist/components/forms/form-feedback.js.map +1 -1
  260. package/dist/components/forms/form.js +13 -9
  261. package/dist/components/forms/form.js.map +1 -1
  262. package/dist/components/forms/icons.js +2 -2
  263. package/dist/components/forms/icons.js.map +1 -1
  264. package/dist/components/forms/index.js +4 -2
  265. package/dist/components/forms/index.js.map +1 -1
  266. package/dist/components/forms/input-otp.js +407 -0
  267. package/dist/components/forms/input-otp.js.map +1 -0
  268. package/dist/components/forms/input.js +34 -3
  269. package/dist/components/forms/input.js.map +1 -1
  270. package/dist/components/forms/label.js +1 -1
  271. package/dist/components/forms/label.js.map +1 -1
  272. package/dist/components/forms/native-select.js +3 -3
  273. package/dist/components/forms/native-select.js.map +1 -1
  274. package/dist/components/forms/radio-group.js +1 -1
  275. package/dist/components/forms/radio-group.js.map +1 -1
  276. package/dist/components/forms/radio.js +2 -2
  277. package/dist/components/forms/radio.js.map +1 -1
  278. package/dist/components/forms/select/end-content.js +24 -0
  279. package/dist/components/forms/select/end-content.js.map +1 -0
  280. package/dist/components/forms/select/native-mirror.js +29 -0
  281. package/dist/components/forms/select/native-mirror.js.map +1 -0
  282. package/dist/components/forms/select/select.js +629 -0
  283. package/dist/components/forms/select/select.js.map +1 -0
  284. package/dist/components/forms/select/selected-items.js +63 -0
  285. package/dist/components/forms/select/selected-items.js.map +1 -0
  286. package/dist/components/forms/select/trigger.js +30 -0
  287. package/dist/components/forms/select/trigger.js.map +1 -0
  288. package/dist/components/forms/select/types.js +2 -0
  289. package/dist/components/forms/select/types.js.map +1 -0
  290. package/dist/components/forms/select.js +1 -387
  291. package/dist/components/forms/select.js.map +1 -1
  292. package/dist/components/forms/switch.js +2 -2
  293. package/dist/components/forms/switch.js.map +1 -1
  294. package/dist/components/forms/textarea.js +2 -2
  295. package/dist/components/forms/textarea.js.map +1 -1
  296. package/dist/components/navigation/external-link.js +107 -0
  297. package/dist/components/navigation/external-link.js.map +1 -0
  298. package/dist/components/navigation/index.js +9 -0
  299. package/dist/components/navigation/index.js.map +1 -0
  300. package/dist/components/navigation/pagination/icons.js +23 -0
  301. package/dist/components/navigation/pagination/icons.js.map +1 -0
  302. package/dist/components/navigation/pagination/pagination.js +216 -0
  303. package/dist/components/navigation/pagination/pagination.js.map +1 -0
  304. package/dist/components/navigation/pagination/range.js +58 -0
  305. package/dist/components/navigation/pagination/range.js.map +1 -0
  306. package/dist/components/navigation/pagination.js +3 -0
  307. package/dist/components/navigation/pagination.js.map +1 -0
  308. package/dist/components/navigation/tab-nav/item.js +90 -0
  309. package/dist/components/navigation/tab-nav/item.js.map +1 -0
  310. package/dist/components/navigation/tab-nav/tab-nav.js +79 -0
  311. package/dist/components/navigation/tab-nav/tab-nav.js.map +1 -0
  312. package/dist/components/navigation/tab-nav.js +3 -0
  313. package/dist/components/navigation/tab-nav.js.map +1 -0
  314. package/dist/components/navigation/tabs/panel.js +23 -0
  315. package/dist/components/navigation/tabs/panel.js.map +1 -0
  316. package/dist/components/navigation/tabs/tab.js +45 -0
  317. package/dist/components/navigation/tabs/tab.js.map +1 -0
  318. package/dist/components/navigation/tabs/tabs.js +156 -0
  319. package/dist/components/navigation/tabs/tabs.js.map +1 -0
  320. package/dist/components/navigation/tabs.js +4 -0
  321. package/dist/components/navigation/tabs.js.map +1 -0
  322. package/dist/components/notifications/index.js +2 -2
  323. package/dist/components/notifications/notification-card.js +15 -108
  324. package/dist/components/notifications/notification-card.js.map +1 -1
  325. package/dist/components/notifications/notifications-container.js +231 -23
  326. package/dist/components/notifications/notifications-container.js.map +1 -1
  327. package/dist/components/overlays/backdrop.js +1 -1
  328. package/dist/components/overlays/backdrop.js.map +1 -1
  329. package/dist/components/overlays/drawer/body.js +1 -1
  330. package/dist/components/overlays/drawer/body.js.map +1 -1
  331. package/dist/components/overlays/drawer/drag-handle.js +18 -0
  332. package/dist/components/overlays/drawer/drag-handle.js.map +1 -0
  333. package/dist/components/overlays/drawer/footer.js +1 -1
  334. package/dist/components/overlays/drawer/footer.js.map +1 -1
  335. package/dist/components/overlays/drawer/header.js +46 -3
  336. package/dist/components/overlays/drawer/header.js.map +1 -1
  337. package/dist/components/overlays/drawer/selectors.js +29 -0
  338. package/dist/components/overlays/drawer/selectors.js.map +1 -0
  339. package/dist/components/overlays/drawer.js +116 -2
  340. package/dist/components/overlays/drawer.js.map +1 -1
  341. package/dist/components/overlays/index.js +5 -3
  342. package/dist/components/overlays/index.js.map +1 -1
  343. package/dist/components/overlays/modal/body.js +1 -1
  344. package/dist/components/overlays/modal/body.js.map +1 -1
  345. package/dist/components/overlays/modal/footer.js +1 -1
  346. package/dist/components/overlays/modal/footer.js.map +1 -1
  347. package/dist/components/overlays/modal/header.js +8 -1
  348. package/dist/components/overlays/modal/header.js.map +1 -1
  349. package/dist/components/overlays/modal.js +69 -1
  350. package/dist/components/overlays/modal.js.map +1 -1
  351. package/dist/components/overlays/mount-animation.js +146 -0
  352. package/dist/components/overlays/mount-animation.js.map +1 -0
  353. package/dist/components/overlays/overlay.js +139 -24
  354. package/dist/components/overlays/overlay.js.map +1 -1
  355. package/dist/components/overlays/popover.js +451 -36
  356. package/dist/components/overlays/popover.js.map +1 -1
  357. package/dist/components/overlays/portal-target.js +1 -1
  358. package/dist/components/overlays/portal-target.js.map +1 -1
  359. package/dist/components/overlays/portal.js +110 -8
  360. package/dist/components/overlays/portal.js.map +1 -1
  361. package/dist/components/overlays/tooltip.js +377 -0
  362. package/dist/components/overlays/tooltip.js.map +1 -0
  363. package/dist/components/status/alert.js +146 -0
  364. package/dist/components/status/alert.js.map +1 -0
  365. package/dist/components/status/index.js +1 -0
  366. package/dist/components/status/index.js.map +1 -1
  367. package/dist/components/status/progress-bar.js +47 -6
  368. package/dist/components/status/progress-bar.js.map +1 -1
  369. package/dist/components/utilities/avatar.js +1 -1
  370. package/dist/components/utilities/avatar.js.map +1 -1
  371. package/dist/components/utilities/collapsible.js +110 -12
  372. package/dist/components/utilities/collapsible.js.map +1 -1
  373. package/dist/components/utilities/divider.js +8 -2
  374. package/dist/components/utilities/divider.js.map +1 -1
  375. package/dist/components/utilities/index.js +7 -1
  376. package/dist/components/utilities/index.js.map +1 -1
  377. package/dist/components/utilities/kbd.js +88 -0
  378. package/dist/components/utilities/kbd.js.map +1 -0
  379. package/dist/components/utilities/skeleton.js +14 -0
  380. package/dist/components/utilities/skeleton.js.map +1 -0
  381. package/dist/components/utilities/spinner.js +1 -1
  382. package/dist/components/utilities/spinner.js.map +1 -1
  383. package/dist/components/utilities/visually-hidden.js +1 -1
  384. package/dist/components/utilities/visually-hidden.js.map +1 -1
  385. package/dist/control-blur-C8OnSQR5.js +124 -0
  386. package/dist/control-blur-C8OnSQR5.js.map +1 -0
  387. package/dist/dialog-CreV7aPQ.js +27 -0
  388. package/dist/dialog-CreV7aPQ.js.map +1 -0
  389. package/dist/disclosure.js +3 -0
  390. package/dist/disclosure.js.map +1 -0
  391. package/dist/dom-cKWVvtkd.js +116 -0
  392. package/dist/dom-cKWVvtkd.js.map +1 -0
  393. package/dist/forms.js +4 -2
  394. package/dist/forms.js.map +1 -1
  395. package/dist/index.js +39 -9
  396. package/dist/index.js.map +1 -1
  397. package/dist/intent-icons-DpEViO8C.js +19 -0
  398. package/dist/intent-icons-DpEViO8C.js.map +1 -0
  399. package/dist/manager-CDIZzrQ9.js +388 -0
  400. package/dist/manager-CDIZzrQ9.js.map +1 -0
  401. package/dist/modifiers/drag-to-dismiss.js +392 -0
  402. package/dist/modifiers/drag-to-dismiss.js.map +1 -0
  403. package/dist/modifiers/press.js +51 -16
  404. package/dist/modifiers/press.js.map +1 -1
  405. package/dist/navigation.js +9 -0
  406. package/dist/navigation.js.map +1 -0
  407. package/dist/notification-card-D5fd-Sxa.js +330 -0
  408. package/dist/notification-card-D5fd-Sxa.js.map +1 -0
  409. package/dist/notifications.js +2 -2
  410. package/dist/overlays.js +5 -3
  411. package/dist/overlays.js.map +1 -1
  412. package/dist/{runtime-BPCpkOf1-B5Lbloj7.js → runtime--fcdnjmJ-BOdRhmsS.js} +2 -2
  413. package/dist/runtime--fcdnjmJ-BOdRhmsS.js.map +1 -0
  414. package/dist/services/notifications.js +6 -3
  415. package/dist/services/notifications.js.map +1 -1
  416. package/dist/status.js +1 -0
  417. package/dist/status.js.map +1 -1
  418. package/dist/test-support.js +10 -31
  419. package/dist/test-support.js.map +1 -1
  420. package/dist/utilities.js +7 -1
  421. package/dist/utilities.js.map +1 -1
  422. package/dist/utils/deferred-work.js +66 -0
  423. package/dist/utils/deferred-work.js.map +1 -0
  424. package/dist/utils/filter.js +166 -0
  425. package/dist/utils/filter.js.map +1 -0
  426. package/dist/utils/keys.js +259 -0
  427. package/dist/utils/keys.js.map +1 -0
  428. package/dist/utils/listManager.js +490 -105
  429. package/dist/utils/listManager.js.map +1 -1
  430. package/dist/utils/nested-data.js +60 -1
  431. package/dist/utils/nested-data.js.map +1 -1
  432. package/dist/utils/prefers-reduced-motion.js +21 -0
  433. package/dist/utils/prefers-reduced-motion.js.map +1 -0
  434. package/dist/utils/ref.js +1 -1
  435. package/dist/utils/ref.js.map +1 -1
  436. package/dist/utils/roving-focus.js +206 -0
  437. package/dist/utils/roving-focus.js.map +1 -0
  438. package/dist/utils/safe-area.js +133 -0
  439. package/dist/utils/safe-area.js.map +1 -0
  440. package/dist/utils/selection-indicator.js +189 -0
  441. package/dist/utils/selection-indicator.js.map +1 -0
  442. package/dist/utils/standard-validator.js +36 -6
  443. package/dist/utils/standard-validator.js.map +1 -1
  444. package/dist/utils/toggle.js +1 -1
  445. package/dist/utils/toggle.js.map +1 -1
  446. package/package.json +33 -22
  447. package/dist/manager-C1Vyhk-A.js +0 -175
  448. package/dist/manager-C1Vyhk-A.js.map +0 -1
  449. package/dist/portal-BTKv9EEY.js +0 -168
  450. package/dist/portal-BTKv9EEY.js.map +0 -1
  451. package/dist/runtime-BPCpkOf1-B5Lbloj7.js.map +0 -1
@@ -0,0 +1,446 @@
1
+ import Component from '@glimmer/component';
2
+ import type Owner from '@ember/owner';
3
+ import { type ListItem } from './native-select';
4
+ import { type ListboxSignature } from '../collections/listbox';
5
+ import { type AutocompleteSlots, type AutocompleteVariants, type SlotsToClasses } from '@frontile/theme';
6
+ import { ControlBlurTracker } from '../../-private/control-blur';
7
+ import { type PopoverSignature, type ContentSignature } from '../overlays/popover';
8
+ import { type FormControlSharedArgs } from './form-control';
9
+ import { type FilterFn } from '../../utils/filter';
10
+ interface AutocompleteArgs<T> extends Pick<PopoverSignature['Args'], 'placement' | 'flipOptions' | 'middleware' | 'shiftOptions' | 'offsetOptions' | 'strategy' | 'didClose'>, Pick<ListboxSignature<T>['Args'], 'appearance' | 'intent' | 'disabledKeys' | 'allowEmpty' | 'items' | 'onAction'>, Pick<ContentSignature['Args'], 'renderInPlace' | 'target' | 'transitionDuration' | 'backdrop' | 'disableTransitions' | 'focusTrapOptions' | 'closeOnOutsideClick' | 'closeOnEscapeKey' | 'backdropTransition' | 'transition'>, FormControlSharedArgs {
11
+ /**
12
+ * The currently selected key.
13
+ *
14
+ * Autocomplete is single-selection only — for a searchable multi-select,
15
+ * use `Select` with `@isFilterable` and `@selectionMode="multiple"`.
16
+ *
17
+ * **Data Flow:**
18
+ * - Pass this to set the initial selection
19
+ * - Update this in your `onSelectionChange` handler to maintain two-way binding
20
+ * - The component calls `onSelectionChange` whenever the user changes the selection
21
+ */
22
+ selectedKey?: string | null;
23
+ /**
24
+ * Callback fired when the selection changes.
25
+ *
26
+ * Update your `@selectedKey` state in this callback to maintain two-way binding.
27
+ *
28
+ * @param key - The newly selected key, or null if selection was cleared
29
+ */
30
+ onSelectionChange?: (key: string | null) => void;
31
+ /**
32
+ * The unique identifier for the autocomplete component.
33
+ */
34
+ id?: string;
35
+ /**
36
+ * Defines the input size of the autocomplete.
37
+ */
38
+ inputSize?: AutocompleteVariants['size'];
39
+ /**
40
+ * Defines the size of the popover dropdown.
41
+ * - 'sm': Small
42
+ * - 'md': Medium
43
+ * - 'lg': Large
44
+ * - 'trigger': Same size as the trigger
45
+ *
46
+ * @defaultValue 'trigger'
47
+ */
48
+ popoverSize?: 'sm' | 'md' | 'lg' | 'trigger';
49
+ /**
50
+ * Custom classes to style different slots within the autocomplete component.
51
+ */
52
+ classes?: SlotsToClasses<AutocompleteSlots>;
53
+ /**
54
+ * Whether the autocomplete should close upon selecting an item.
55
+ *
56
+ * @defaultValue true
57
+ */
58
+ closeOnItemSelect?: boolean;
59
+ /**
60
+ * Whether scrolling should be blocked when the dropdown is open.
61
+ *
62
+ * @defaultValue true
63
+ */
64
+ blockScroll?: boolean;
65
+ /**
66
+ * Whether the focus trap should be disabled when the dropdown is open.
67
+ *
68
+ * @defaultValue true
69
+ */
70
+ disableFocusTrap?: boolean;
71
+ /**
72
+ * The placeholder text displayed when the input is empty.
73
+ */
74
+ placeholder?: string;
75
+ /**
76
+ * Whether the autocomplete should be disabled, preventing user interaction.
77
+ */
78
+ isDisabled?: boolean;
79
+ /**
80
+ * The text value of the input.
81
+ *
82
+ * Pass this together with `onInputChange` to control the input text externally,
83
+ * for example to implement server-side filtering.
84
+ */
85
+ inputValue?: string;
86
+ /**
87
+ * Callback fired whenever the user changes the input text.
88
+ *
89
+ * @param value - The current text of the input
90
+ */
91
+ onInputChange?: (value: string) => void;
92
+ /**
93
+ * Function to filter the items against the current input text.
94
+ *
95
+ * The default implementation ranks by relevance, so the closest match is
96
+ * listed first rather than whichever match came first in `@items`.
97
+ *
98
+ * @param itemValue - The label of an item in the dropdown.
99
+ * @param inputValue - The user's input text.
100
+ * @returns A number to rank (higher first, `0` means no match) or a boolean
101
+ * to filter only, preserving the order of `@items`.
102
+ */
103
+ filter?: FilterFn;
104
+ /**
105
+ * Disables the built-in filtering, rendering `@items` as-is.
106
+ * Use together with `inputValue`/`onInputChange` when filtering happens
107
+ * outside of the component (e.g. server-side).
108
+ *
109
+ * @defaultValue false
110
+ */
111
+ disableFiltering?: boolean;
112
+ /**
113
+ * Async search function. When provided, the component calls it (debounced)
114
+ * as the user types and renders the resolved items, showing a loading
115
+ * spinner while the returned promise is pending. Stale responses are
116
+ * ignored (latest query wins). Built-in filtering is disabled; `@items`
117
+ * is used as the initial list before the first search.
118
+ *
119
+ * @param query - The current input text
120
+ * @returns The items matching the query
121
+ */
122
+ onSearch?: (query: string) => Promise<T[]> | T[];
123
+ /**
124
+ * Debounce duration, in milliseconds, applied to `onSearch` calls.
125
+ *
126
+ * @defaultValue 250
127
+ */
128
+ searchDebounce?: number;
129
+ /**
130
+ * When true, the text typed by the user is kept on blur/close even if it
131
+ * does not match any option. By default the input reverts to the selected
132
+ * item's label (or empty) when the dropdown closes without a selection.
133
+ *
134
+ * @defaultValue false
135
+ */
136
+ allowsCustomValue?: boolean;
137
+ /**
138
+ * If true, the autocomplete will show a loading spinner instead of the dropdown icon.
139
+ * The spinner is also shown automatically while an `onSearch` promise is pending.
140
+ */
141
+ isLoading?: boolean;
142
+ /**
143
+ * The name attribute for the autocomplete component, useful for form submissions.
144
+ */
145
+ name?: string;
146
+ /**
147
+ * Whether to include a clear button in the autocomplete component.
148
+ * If enabled, this allows users to clear the selection and input text.
149
+ *
150
+ * This option deliberately overrides `allowEmpty`: that argument governs
151
+ * deselecting an *option* in the listbox, while this is a separate affordance
152
+ * you opt into for exactly the purpose of emptying the field. Since
153
+ * `allowEmpty` defaults to false, honouring it here would render the button
154
+ * dead by default.
155
+ *
156
+ * No clear button is rendered on a disabled Autocomplete.
157
+ *
158
+ * @defaultValue false
159
+ */
160
+ isClearable?: boolean;
161
+ /**
162
+ * Controls pointer-events property of startContent.
163
+ * If you want to pass the click event to the input, set it to `none`.
164
+ *
165
+ * @defaultValue 'auto'
166
+ */
167
+ startContentPointerEvents?: 'none' | 'auto';
168
+ /**
169
+ * Controls pointer-events property of endContent.
170
+ * Defaults to `none` to pass click events to the input. If your content
171
+ * needs to capture events, add the `pointer-events-auto` class to that element.
172
+ *
173
+ * @defaultValue 'none'
174
+ */
175
+ endContentPointerEvents?: 'none' | 'auto';
176
+ /**
177
+ * If true, hides the empty content when there are no options available.
178
+ *
179
+ * @defaultValue false
180
+ */
181
+ hideEmptyContent?: boolean;
182
+ /**
183
+ * Message shown in the dropdown of an async autocomplete (`onSearch`)
184
+ * while the query is blank — e.g. "Type to search for an address…".
185
+ * Prompts the user to start typing when they open the dropdown by
186
+ * clicking. Also customizable via the `searchMessage` block.
187
+ */
188
+ searchMessage?: string;
189
+ /**
190
+ * Callback fired when focus leaves the Autocomplete.
191
+ *
192
+ * "Leaves the Autocomplete" means the whole control: the input *and* its
193
+ * dropdown, which is rendered outside the input in the DOM. Moving focus
194
+ * between them -- which is what clicking an option does -- is not a blur, so
195
+ * this does not fire while the user is picking an option. It fires once, when
196
+ * focus lands somewhere outside the control (or nowhere, with the dropdown
197
+ * closed).
198
+ *
199
+ * This is what `Field` drives blur validation from.
200
+ */
201
+ onBlur?: () => void;
202
+ }
203
+ interface AutocompleteSignature<T> {
204
+ Args: AutocompleteArgs<T>;
205
+ Element: HTMLDivElement;
206
+ Blocks: ListboxSignature<T>['Blocks'] & {
207
+ /**
208
+ * Content to display at the **beginning** of the autocomplete component.
209
+ * This can be an icon, a label, or any custom UI element.
210
+ */
211
+ startContent: [];
212
+ /**
213
+ * Content to display at the **end** of the autocomplete component.
214
+ * This can be an icon, a button, or any custom UI element.
215
+ */
216
+ endContent: [];
217
+ /**
218
+ * The content to display when there are no matching options.
219
+ * If `hideEmptyContent` argument is true, this content will not be shown.
220
+ */
221
+ emptyContent: [];
222
+ /**
223
+ * Message shown in the dropdown of an async autocomplete while the
224
+ * query is blank, prompting the user to start typing. Takes priority
225
+ * over the `searchMessage` argument.
226
+ */
227
+ searchMessage: [];
228
+ };
229
+ }
230
+ /**
231
+ * Autocomplete Component - a text input combined with a listbox popover,
232
+ * following the WAI-ARIA 1.2 combobox pattern.
233
+ *
234
+ * Users filter the options by typing (type-ahead). Options can come from a
235
+ * static list (built-in filtering), an externally filtered list
236
+ * (`disableFiltering` + `onInputChange`), or an async source (`onSearch`).
237
+ *
238
+ */
239
+ declare class Autocomplete<T = unknown> extends Component<AutocompleteSignature<T>> {
240
+ #private;
241
+ nodes: ListItem[];
242
+ isOpen: boolean;
243
+ /**
244
+ * Internal tracked selection state.
245
+ * Synced with @selectedKey via the updateSelectedKey modifier.
246
+ */
247
+ _selectedKey: string | null;
248
+ /**
249
+ * The text the user has typed. `undefined` means the user is not editing,
250
+ * so the input displays the selected item's label instead.
251
+ */
252
+ _inputValue?: string;
253
+ /**
254
+ * Items resolved from the latest `onSearch` call. `undefined` until the
255
+ * first search resolves; `@items` is rendered in the meantime.
256
+ */
257
+ asyncItems?: T[];
258
+ isSearchPending: boolean;
259
+ /** Element id of the currently active (highlighted) option, for aria-activedescendant. */
260
+ activeDescendant?: string;
261
+ /**
262
+ * Label of the selected key, captured at selection time. Needed in async
263
+ * mode, where the selected item may no longer be present in the currently
264
+ * rendered items (e.g. after search results are reset on close).
265
+ */
266
+ selectedLabel?: string;
267
+ containerRef: {
268
+ current: HTMLDivElement | undefined;
269
+ "__#6@#onChange"?: ((el: HTMLDivElement | undefined) => void) | undefined;
270
+ setup: import("ember-modifier").FunctionBasedModifier<{
271
+ Args: {
272
+ Positional: unknown[];
273
+ Named: import("ember-modifier/-private/signature").EmptyObject;
274
+ };
275
+ Element: HTMLDivElement;
276
+ }>;
277
+ };
278
+ triggerRef: {
279
+ current: HTMLInputElement | undefined;
280
+ "__#6@#onChange"?: ((el: HTMLInputElement | undefined) => void) | undefined;
281
+ setup: import("ember-modifier").FunctionBasedModifier<{
282
+ Args: {
283
+ Positional: unknown[];
284
+ Named: import("ember-modifier/-private/signature").EmptyObject;
285
+ };
286
+ Element: HTMLInputElement;
287
+ }>;
288
+ };
289
+ constructor(owner: Owner, args: AutocompleteArgs<T>);
290
+ willDestroy(): void;
291
+ onSelectionChange: (keys: string[]) => void;
292
+ onNativeSelectionChange: (key: string | null) => void;
293
+ applySelection(key: string | null): void;
294
+ onOpenChange: (isOpen: boolean) => void;
295
+ onInput: (event: Event) => void;
296
+ setInputValue(value: string): void;
297
+ /** Cancels any in-flight search and restores the default `@items`. */
298
+ resetSearch(): void;
299
+ clearInputValue(): void;
300
+ performSearch(query: string): Promise<void>;
301
+ onKeyDown: (event: KeyboardEvent) => void;
302
+ /** Current selection as an array, for the Listbox / NativeSelect API. */
303
+ get selectedKeys(): string[];
304
+ get blockScroll(): boolean;
305
+ get disableFocusTrap(): boolean;
306
+ onAction: (key: string) => void;
307
+ /**
308
+ * Reports focus leaving the *whole* control -- the input and its portaled
309
+ * dropdown -- rather than the input, which blurs on the way into the
310
+ * dropdown whenever an option is clicked. See `ControlBlurTracker`.
311
+ */
312
+ blurTracker: ControlBlurTracker;
313
+ clearSelectedKeys: () => void;
314
+ onItemsChange: (nodes: ListItem[], _: "add" | "remove") => void;
315
+ didClose: () => void;
316
+ onActiveItemChange: (_key?: string, item?: ListItem) => void;
317
+ get selectedTextValue(): string;
318
+ get inputValue(): string;
319
+ get isFiltering(): boolean;
320
+ get backdrop(): "blur" | "transparent" | "none" | "faded";
321
+ get classes(): {
322
+ base: (slotProps?: ({
323
+ size?: "sm" | "md" | "lg" | undefined;
324
+ startContentPointerEvents?: "none" | "auto" | undefined;
325
+ endContentPointerEvents?: "none" | "auto" | undefined;
326
+ hasStartContent?: boolean | undefined;
327
+ hasEndContent?: boolean | undefined;
328
+ hasChips?: boolean | undefined;
329
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
330
+ innerContainer: (slotProps?: ({
331
+ size?: "sm" | "md" | "lg" | undefined;
332
+ startContentPointerEvents?: "none" | "auto" | undefined;
333
+ endContentPointerEvents?: "none" | "auto" | undefined;
334
+ hasStartContent?: boolean | undefined;
335
+ hasEndContent?: boolean | undefined;
336
+ hasChips?: boolean | undefined;
337
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
338
+ startContent: (slotProps?: ({
339
+ size?: "sm" | "md" | "lg" | undefined;
340
+ startContentPointerEvents?: "none" | "auto" | undefined;
341
+ endContentPointerEvents?: "none" | "auto" | undefined;
342
+ hasStartContent?: boolean | undefined;
343
+ hasEndContent?: boolean | undefined;
344
+ hasChips?: boolean | undefined;
345
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
346
+ endContent: (slotProps?: ({
347
+ size?: "sm" | "md" | "lg" | undefined;
348
+ startContentPointerEvents?: "none" | "auto" | undefined;
349
+ endContentPointerEvents?: "none" | "auto" | undefined;
350
+ hasStartContent?: boolean | undefined;
351
+ hasEndContent?: boolean | undefined;
352
+ hasChips?: boolean | undefined;
353
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
354
+ input: (slotProps?: ({
355
+ size?: "sm" | "md" | "lg" | undefined;
356
+ startContentPointerEvents?: "none" | "auto" | undefined;
357
+ endContentPointerEvents?: "none" | "auto" | undefined;
358
+ hasStartContent?: boolean | undefined;
359
+ hasEndContent?: boolean | undefined;
360
+ hasChips?: boolean | undefined;
361
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
362
+ } & {
363
+ base: (slotProps?: ({
364
+ size?: "sm" | "md" | "lg" | undefined;
365
+ startContentPointerEvents?: "none" | "auto" | undefined;
366
+ endContentPointerEvents?: "none" | "auto" | undefined;
367
+ hasStartContent?: boolean | undefined;
368
+ hasEndContent?: boolean | undefined;
369
+ hasChips?: boolean | undefined;
370
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
371
+ listbox: (slotProps?: ({
372
+ size?: "sm" | "md" | "lg" | undefined;
373
+ startContentPointerEvents?: "none" | "auto" | undefined;
374
+ endContentPointerEvents?: "none" | "auto" | undefined;
375
+ hasStartContent?: boolean | undefined;
376
+ hasEndContent?: boolean | undefined;
377
+ hasChips?: boolean | undefined;
378
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
379
+ icon: (slotProps?: ({
380
+ size?: "sm" | "md" | "lg" | undefined;
381
+ startContentPointerEvents?: "none" | "auto" | undefined;
382
+ endContentPointerEvents?: "none" | "auto" | undefined;
383
+ hasStartContent?: boolean | undefined;
384
+ hasEndContent?: boolean | undefined;
385
+ hasChips?: boolean | undefined;
386
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
387
+ clearButton: (slotProps?: ({
388
+ size?: "sm" | "md" | "lg" | undefined;
389
+ startContentPointerEvents?: "none" | "auto" | undefined;
390
+ endContentPointerEvents?: "none" | "auto" | undefined;
391
+ hasStartContent?: boolean | undefined;
392
+ hasEndContent?: boolean | undefined;
393
+ hasChips?: boolean | undefined;
394
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
395
+ input: (slotProps?: ({
396
+ size?: "sm" | "md" | "lg" | undefined;
397
+ startContentPointerEvents?: "none" | "auto" | undefined;
398
+ endContentPointerEvents?: "none" | "auto" | undefined;
399
+ hasStartContent?: boolean | undefined;
400
+ hasEndContent?: boolean | undefined;
401
+ hasChips?: boolean | undefined;
402
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
403
+ emptyContent: (slotProps?: ({
404
+ size?: "sm" | "md" | "lg" | undefined;
405
+ startContentPointerEvents?: "none" | "auto" | undefined;
406
+ endContentPointerEvents?: "none" | "auto" | undefined;
407
+ hasStartContent?: boolean | undefined;
408
+ hasEndContent?: boolean | undefined;
409
+ hasChips?: boolean | undefined;
410
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
411
+ } & {};
412
+ /**
413
+ * Whether the clear button takes the chevron's place: something to clear,
414
+ * and a control that can act on it.
415
+ *
416
+ * `@allowEmpty` is deliberately not consulted -- it governs deselecting an
417
+ * *option* in the listbox, while `@isClearable` is a separate affordance the
418
+ * consumer opts into for exactly this purpose (and `@allowEmpty` defaults to
419
+ * false, so honouring it here would leave the button dead by default). A
420
+ * disabled Autocomplete shows no clear button at all: it carries no disabled
421
+ * state of its own, so it would be a focusable button that clears a field
422
+ * the user is not allowed to change.
423
+ */
424
+ get isClearable(): boolean | undefined;
425
+ get isLoading(): boolean;
426
+ get filteredItems(): T[] | undefined;
427
+ /**
428
+ * True when an async autocomplete is open with a blank query and nothing
429
+ * to show — the moment to prompt the user to start typing.
430
+ */
431
+ get isSearchPromptState(): boolean;
432
+ get showEmptyContent(): boolean;
433
+ get autoActivateMode(): 'first' | 'selected';
434
+ /**
435
+ * Syncs internal `_selectedKey` with external `@selectedKey` argument.
436
+ */
437
+ updateSelectedKey: import("ember-modifier").FunctionBasedModifier<{
438
+ Args: {
439
+ Positional: [string | null | undefined];
440
+ Named: import("ember-modifier/-private/signature").EmptyObject;
441
+ };
442
+ Element: HTMLDivElement;
443
+ }>;
444
+ }
445
+ export { Autocomplete, type AutocompleteSignature };
446
+ export default Autocomplete;
@@ -4,10 +4,30 @@ import { type FormControlSharedArgs } from './form-control';
4
4
  import { type CheckboxGroupVariants, type CheckboxGroupSlots, type SlotsToClasses } from '@frontile/theme';
5
5
  import type { WithBoundArgs } from '@glint/template';
6
6
  interface Args extends FormControlSharedArgs {
7
+ /**
8
+ * The name attribute applied to every checkbox in the group, so they are
9
+ * submitted together as one field.
10
+ */
7
11
  name?: string;
12
+ /**
13
+ * Callback when a checkbox in the group is toggled. It is bound onto every
14
+ * yielded Checkbox, so a checkbox that sets its own `@onChange` replaces this
15
+ * one rather than running alongside it.
16
+ */
8
17
  onChange?: CheckboxSignature['Args']['onChange'];
18
+ /**
19
+ * The size applied to every checkbox in the group and to the group's label.
20
+ */
9
21
  size?: CheckboxGroupVariants['size'];
22
+ /**
23
+ * Class names for each slot of the component, merged with the theme's.
24
+ */
10
25
  classes?: SlotsToClasses<CheckboxGroupSlots>;
26
+ /**
27
+ * How the checkboxes are laid out.
28
+ *
29
+ * @defaultValue 'vertical'
30
+ */
11
31
  orientation?: 'horizontal' | 'vertical';
12
32
  }
13
33
  interface CheckboxGroupSignature {
@@ -2,11 +2,33 @@ import Component from '@glimmer/component';
2
2
  import { type FormControlSharedArgs } from './form-control';
3
3
  import { type CheckboxVariants, type CheckboxSlots, type SlotsToClasses } from '@frontile/theme';
4
4
  interface Args extends FormControlSharedArgs {
5
+ /**
6
+ * Whether the checkbox is checked. Pair with `onChange` to control the
7
+ * checkbox; leave it unset to let the element track its own state.
8
+ */
5
9
  checked?: boolean;
10
+ /**
11
+ * The name attribute of the underlying input, used when the checkbox is
12
+ * submitted as part of a form.
13
+ */
6
14
  name?: string;
15
+ /**
16
+ * The size of the checkbox and its label.
17
+ *
18
+ * @defaultValue 'md'
19
+ */
7
20
  size?: CheckboxVariants['size'];
21
+ /**
22
+ * Class names for each slot of the component, merged with the theme's.
23
+ */
8
24
  classes?: SlotsToClasses<CheckboxSlots>;
25
+ /**
26
+ * Callback when onchange is triggered
27
+ */
9
28
  onChange?: (value: boolean, event: Event) => void;
29
+ /**
30
+ * Callback when onblur is triggered
31
+ */
10
32
  onBlur?: () => void;
11
33
  }
12
34
  interface CheckboxSignature {
@@ -2,6 +2,7 @@ import Component from '@glimmer/component';
2
2
  import Checkbox from './checkbox';
3
3
  import CheckboxGroup from './checkbox-group';
4
4
  import Input from './input';
5
+ import InputOtp from './input-otp';
5
6
  import Radio from './radio';
6
7
  import RadioGroup from './radio-group';
7
8
  import Switch from './switch';
@@ -34,6 +35,7 @@ interface FieldSignature<T extends Record<string, unknown> = FormDataCompiled> {
34
35
  Checkbox: WithBoundArgs<typeof Checkbox, 'name' | 'errors' | 'checked' | 'onChange' | 'onBlur' | 'isDisabled'>;
35
36
  CheckboxGroup: WithBoundArgs<typeof CheckboxGroup, 'name' | 'errors' | 'isDisabled'>;
36
37
  Input: WithBoundArgs<typeof Input, 'name' | 'errors' | 'value' | 'onChange' | 'onInput' | 'onBlur' | 'isDisabled'>;
38
+ InputOtp: WithBoundArgs<typeof InputOtp, 'name' | 'errors' | 'value' | 'onChange' | 'onInput' | 'onBlur' | 'isDisabled'>;
37
39
  Radio: WithBoundArgs<typeof Radio, 'name' | 'errors' | 'checkedValue' | 'onChange' | 'onBlur' | 'isDisabled'>;
38
40
  RadioGroup: WithBoundArgs<typeof RadioGroup, 'name' | 'errors' | 'value' | 'onChange' | 'isDisabled'>;
39
41
  SingleSelect: BoundSingleSelect;
@@ -4,17 +4,66 @@ import { type FormDescriptionSignature } from './form-description';
4
4
  import { type LabelSignature } from './label';
5
5
  import type { ComponentLike, WithBoundArgs } from '@glint/template';
6
6
  interface FormControlSharedArgs {
7
+ /**
8
+ * The label text rendered above the control and associated with it via `for`.
9
+ * Use the `:label` block instead when the label needs markup.
10
+ */
7
11
  label?: string;
12
+ /**
13
+ * Whether the field is required. Adds an asterisk to the label; it does not
14
+ * set the `required` attribute on the control itself.
15
+ *
16
+ * @defaultValue false
17
+ */
8
18
  isRequired?: boolean;
19
+ /**
20
+ * Help text rendered between the label and the control, and referenced by the
21
+ * ids `describedBy` returns.
22
+ */
9
23
  description?: string;
24
+ /**
25
+ * Validation messages for the field. A non-empty value also marks the control
26
+ * invalid, and an array is joined with `; ` when displayed.
27
+ */
10
28
  errors?: string[] | string;
29
+ /**
30
+ * Marks the control invalid without supplying messages, for validation that is
31
+ * reported elsewhere.
32
+ *
33
+ * @defaultValue false
34
+ */
11
35
  isInvalid?: boolean;
36
+ /**
37
+ * Whether the field is disabled. FormControl passes this through for styling;
38
+ * the control it wraps is responsible for the `disabled` attribute.
39
+ *
40
+ * @defaultValue false
41
+ */
12
42
  isDisabled?: boolean;
13
43
  }
14
44
  interface Args extends FormControlSharedArgs {
45
+ /**
46
+ * The id given to the control, and the base for the description and feedback
47
+ * ids. Generated when omitted, so pass one only when something outside the
48
+ * block has to reference it.
49
+ */
15
50
  id?: string;
51
+ /**
52
+ * The size of the label, description and feedback text.
53
+ *
54
+ * @defaultValue 'md'
55
+ */
16
56
  size?: 'sm' | 'md' | 'lg';
57
+ /**
58
+ * Suppresses the automatic error feedback, for when the block renders the
59
+ * yielded `Feedback` itself or places messages elsewhere.
60
+ *
61
+ * @defaultValue false
62
+ */
17
63
  preventErrorFeedback?: boolean;
64
+ /**
65
+ * Class names for the wrapping element.
66
+ */
18
67
  class?: string;
19
68
  }
20
69
  interface FormControlSignature {
@@ -41,6 +90,11 @@ declare class FormControl extends Component<FormControlSignature> {
41
90
  get feedbackId(): string;
42
91
  describedBy: (hasDescription?: string | boolean, hasFeedback?: string | boolean) => string | undefined;
43
92
  get isInvalid(): boolean;
93
+ /**
94
+ * The error messages as a single string, used by the persistent live region.
95
+ * Uses `FormFeedback`'s own join, so both render the same separator.
96
+ */
97
+ get errorMessageText(): string;
44
98
  get showErrorFeedback(): boolean;
45
99
  }
46
100
  export { FormControl, type FormControlSignature, type FormControlSharedArgs };
@@ -2,8 +2,20 @@ import Component from '@glimmer/component';
2
2
  import { type FormDescriptionVariants } from '@frontile/theme';
3
3
  interface FormDescriptionSignature {
4
4
  Args: {
5
+ /**
6
+ * The id of the description element, referenced by the control's
7
+ * `aria-describedby`.
8
+ */
5
9
  id?: string;
10
+ /**
11
+ * The size of the description text.
12
+ *
13
+ * @defaultValue 'md'
14
+ */
6
15
  size?: FormDescriptionVariants['size'];
16
+ /**
17
+ * Class names for the description element, merged with the theme's.
18
+ */
7
19
  class?: string;
8
20
  };
9
21
  Element: HTMLDivElement;