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,14 @@
1
+ /**
2
+ * Icon components used by the calendar's month navigation.
3
+ *
4
+ * These are sized by their button (`[&_svg]:size-4` on the `navButton` slot)
5
+ * rather than carrying a size of their own, so a `@size` variant scales the
6
+ * glyph and its hit area together.
7
+ */
8
+ import type { TOC } from '@ember/component/template-only';
9
+ export { ChevronDownIcon } from '../../disclosure/icons';
10
+ interface IconSignature {
11
+ Element: SVGElement;
12
+ }
13
+ export declare const ChevronLeftIcon: TOC<IconSignature>;
14
+ export declare const ChevronRightIcon: TOC<IconSignature>;
@@ -0,0 +1,36 @@
1
+ import type { TOC } from '@ember/component/template-only';
2
+ import type { CalendarMonthData, WeekdayLabel, DayState, CalendarDay } from './types';
3
+ export interface MonthGridSignature {
4
+ Args: {
5
+ month: CalendarMonthData;
6
+ weekdays: WeekdayLabel[];
7
+ caption: string;
8
+ stateFor: (day: CalendarDay) => DayState;
9
+ isReadOnly: boolean;
10
+ /** Forwarded from the calendar's own `aria-labelledby`, if any. */
11
+ labelledBy?: string;
12
+ hasDayContent: boolean;
13
+ hasWeekdayContent: boolean;
14
+ onSelect: (date: Date) => void;
15
+ onHover: (date: Date | null) => void;
16
+ classes: {
17
+ monthGrid: string;
18
+ weekdaysRow: string;
19
+ weekday: string;
20
+ week: string;
21
+ cell: string;
22
+ cellBand: string;
23
+ day: string;
24
+ dayContent: string;
25
+ indicator: string;
26
+ };
27
+ };
28
+ Blocks: {
29
+ day: [DayState];
30
+ weekday: [WeekdayLabel];
31
+ };
32
+ Element: HTMLTableElement;
33
+ }
34
+ declare const MonthGrid: TOC<MonthGridSignature>;
35
+ export default MonthGrid;
36
+ export { MonthGrid };
@@ -0,0 +1,94 @@
1
+ export type CalendarMode = 'single' | 'range';
2
+ /** 0 = Sunday … 6 = Saturday. */
3
+ export type WeekDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
4
+ /**
5
+ * Deliberately `{ start, end }` rather than `{ from, to }`: this is exactly
6
+ * date-fns's `Interval`, so a consumer's range value drops straight into
7
+ * `eachDayOfInterval(range)` with no adapter.
8
+ *
9
+ * `end` is nullable so a half-committed range -- anchor set, second click
10
+ * pending -- is representable in the same type.
11
+ */
12
+ export interface DateRange {
13
+ start: Date;
14
+ end: Date | null;
15
+ }
16
+ export type CalendarValue<M extends CalendarMode> = M extends 'range' ? DateRange | null : Date | null;
17
+ export interface CalendarDay {
18
+ date: Date;
19
+ dayOfMonth: number;
20
+ /** Belongs to an adjacent month but fills out this month's grid. */
21
+ isOutside: boolean;
22
+ /** `yyyy-MM-dd`, stable across renders -- used as the `{{#each}}` key. */
23
+ key: string;
24
+ }
25
+ export interface CalendarWeek {
26
+ key: string;
27
+ days: CalendarDay[];
28
+ }
29
+ export interface CalendarMonthData {
30
+ /** First day of the month this grid represents. */
31
+ month: Date;
32
+ weeks: CalendarWeek[];
33
+ /**
34
+ * `yyyy-MM`, stable across renders -- used as the `{{#each}}` key so a
35
+ * month that stays visible after paging is reused rather than torn down
36
+ * and rebuilt (Glimmer would otherwise key on `month`'s object identity,
37
+ * and a fresh `Date` instance is produced on every recompute).
38
+ */
39
+ key: string;
40
+ }
41
+ export interface WeekdayLabel {
42
+ short: string;
43
+ long: string;
44
+ narrow: string;
45
+ /** 0 = Sunday … 6 = Saturday, regardless of column position. */
46
+ index: WeekDay;
47
+ }
48
+ /** What the `<:day>` block receives. */
49
+ export interface DayState {
50
+ date: Date;
51
+ dayOfMonth: number;
52
+ isSelected: boolean;
53
+ isToday: boolean;
54
+ isOutside: boolean;
55
+ isDisabled: boolean;
56
+ isUnavailable: boolean;
57
+ isRangeStart: boolean;
58
+ isRangeEnd: boolean;
59
+ isInRange: boolean;
60
+ isPreview: boolean;
61
+ isFocused: boolean;
62
+ /**
63
+ * Outside `@minValue`/`@maxValue`. Distinct from `isUnavailable`, which is
64
+ * in range but not selectable, and from `isOutside`, which is a
65
+ * neighbouring month's day.
66
+ */
67
+ isOutsideRange: boolean;
68
+ /**
69
+ * Whether this cell renders a day at all. An outside-month day for which
70
+ * `@showOutsideDays` is off keeps its `<td>` so the grid stays aligned, but
71
+ * renders no band, no button and no gridcell role.
72
+ *
73
+ * Decided by `Calendar`, which is the only place that knows both
74
+ * `@showOutsideDays` and how many months are on screen -- the cell template
75
+ * must not re-derive it.
76
+ */
77
+ rendersDay: boolean;
78
+ /**
79
+ * The day's full human-readable date (weekday, month, day, year),
80
+ * produced by `Intl.DateTimeFormat` from `@locale` -- the day button's
81
+ * accessible name. Without it a screen reader announces only the bare
82
+ * day-of-month number, so crossing a month boundary with the arrow keys
83
+ * has nothing to distinguish "the 1st" of one month from another.
84
+ */
85
+ ariaLabel: string;
86
+ }
87
+ /** The slot classes a day cell needs, passed as one object rather than five. */
88
+ export interface DayCellClasses {
89
+ cell: string;
90
+ cellBand: string;
91
+ day: string;
92
+ dayContent: string;
93
+ indicator: string;
94
+ }
@@ -0,0 +1,51 @@
1
+ import { startOfDay, isSameDay } from 'date-fns';
2
+ import type { CalendarMonthData, DateRange, WeekDay, WeekdayLabel } from './types';
3
+ /**
4
+ * A machine key, not display text -- built from the local calendar fields
5
+ * rather than any formatter, so it never drifts with locale or timezone.
6
+ */
7
+ export declare function toDayKey(date: Date): string;
8
+ /**
9
+ * A machine key for a month, not display text -- same rationale as
10
+ * {@link toDayKey}: stable across recomputes so `{{#each}}` can key on it
11
+ * instead of a `Date` object's `guidFor` identity.
12
+ */
13
+ export declare function toMonthKey(date: Date): string;
14
+ /**
15
+ * Inverse of {@link toDayKey}. Parsed from local calendar fields (never
16
+ * `new Date(key)`, which reads the string as UTC and can land on the wrong
17
+ * local day near midnight), so it round-trips exactly.
18
+ */
19
+ export declare function fromDayKey(key: string): Date;
20
+ /**
21
+ * `getWeekInfo()` is the standard API but shipped late; older Safari exposes
22
+ * the same data as a `weekInfo` property. Sunday is the last resort.
23
+ */
24
+ export declare function resolveWeekStart(locale: string, explicit?: WeekDay): WeekDay;
25
+ export declare function buildMonthGrid(opts: {
26
+ month: Date;
27
+ weekStartsOn: WeekDay;
28
+ fixedWeeks: boolean;
29
+ }): CalendarMonthData;
30
+ export declare function formatMonthCaption(month: Date, locale: string): string;
31
+ export declare function formatWeekdays(locale: string, weekStartsOn: WeekDay): WeekdayLabel[];
32
+ export declare function isWithinBounds(date: Date, min?: Date, max?: Date): boolean;
33
+ export declare function normalizeRange(a: Date, b: Date): DateRange;
34
+ /**
35
+ * How far a range anchored at `anchor` may reach in each direction. It stops
36
+ * one day short of the nearest unavailable date, which is what stops a booking
37
+ * range from straddling an already-booked night.
38
+ *
39
+ * The 366-day walk is a real limit on selection, not just on the search: when
40
+ * nothing else blocks, the returned bounds are `anchor ± 366` and the calendar
41
+ * refuses endpoints beyond them. A range longer than a year is not a calendar
42
+ * interaction, and walking unbounded would mean an open-ended loop per hover.
43
+ *
44
+ * Both bounds are always dates -- the walk starts at the anchor itself, so
45
+ * there is no "unbounded" result to represent.
46
+ */
47
+ export declare function rangeLimits(anchor: Date, isDateUnavailable?: (date: Date) => boolean, min?: Date, max?: Date): {
48
+ min: Date;
49
+ max: Date;
50
+ };
51
+ export { isSameDay, startOfDay };
@@ -0,0 +1,32 @@
1
+ import Component from '@glimmer/component';
2
+ export interface YearGridSignature {
3
+ Args: {
4
+ years: number[];
5
+ currentYear: number;
6
+ onSelect: (year: number) => void;
7
+ onDismiss: () => void;
8
+ classes: {
9
+ yearGrid: string;
10
+ yearCell: string;
11
+ };
12
+ };
13
+ Element: HTMLDivElement;
14
+ }
15
+ export default class YearGrid extends Component<YearGridSignature> {
16
+ #private;
17
+ isCurrent: (year: number) => boolean;
18
+ /**
19
+ * A year grid is opened by a deliberate action, so unlike the day grid it
20
+ * *should* take focus -- otherwise a keyboard user opens a panel they cannot
21
+ * reach.
22
+ */
23
+ setup: import("ember-modifier").FunctionBasedModifier<{
24
+ Args: {
25
+ Positional: unknown[];
26
+ Named: import("ember-modifier/-private/signature").EmptyObject;
27
+ };
28
+ Element: HTMLElement;
29
+ }>;
30
+ handleKeydown: (event: KeyboardEvent) => void;
31
+ }
32
+ export { YearGrid };
@@ -0,0 +1,3 @@
1
+ export * from './calendar/calendar';
2
+ export { default } from './calendar/calendar';
3
+ export * from './calendar/types';
@@ -0,0 +1,195 @@
1
+ import Component from '@glimmer/component';
2
+ import { type ListItem } from '../../../utils/listManager';
3
+ import { type FilterFn } from '../../../utils/filter';
4
+ import { CommandInput } from './input';
5
+ import { CommandList } from './list';
6
+ import { CommandFooter } from './footer';
7
+ import type { CommandSlots, SlotsToClasses } from '@frontile/theme';
8
+ import type { WithBoundArgs } from '@glint/template';
9
+ /** One rendered section of results. A blank `title` renders no heading. */
10
+ export interface CommandGroup<T> {
11
+ title?: string;
12
+ items: T[];
13
+ }
14
+ export interface CommandApi<T> {
15
+ /** The current query text. */
16
+ query: string;
17
+ /** How many items matched. `0` renders the `:empty` block. */
18
+ resultCount: number;
19
+ /** True while an `@onSearch` promise is in flight, or `@isLoading` is set. */
20
+ isLoading: boolean;
21
+ Input: WithBoundArgs<typeof CommandInput, 'onInput' | 'value' | 'controlsId' | 'hasResults' | 'activeDescendant' | 'classes' | 'setup'>;
22
+ Footer: WithBoundArgs<typeof CommandFooter, 'classes'>;
23
+ List: WithBoundArgs<typeof CommandList<T>, 'groups' | 'id' | 'classes' | 'size' | 'isLoading' | 'isSearchPrompt' | 'inputElement' | 'disabledKeys' | 'onSelect' | 'onActiveItemChange'>;
24
+ }
25
+ export interface CommandSignature<T> {
26
+ Args: {
27
+ /**
28
+ * The items to search. Ranked and grouped by the component unless
29
+ * `@disableFiltering` is set or `@onSearch` is provided.
30
+ */
31
+ items?: T[];
32
+ /**
33
+ * Groups results under headings. Either a property name on the item or a
34
+ * function returning the heading. Items with no group render ungrouped,
35
+ * ahead of any groups.
36
+ */
37
+ groupBy?: string | ((item: T) => string | undefined);
38
+ /**
39
+ * Pins these groups to the top, in this order. Any group not listed still
40
+ * renders, after them, ordered by its best-scoring member — so pinning a
41
+ * "Recent" section cannot hide search results.
42
+ *
43
+ * When omitted, every group is ordered by its best-scoring member, so the
44
+ * closest match is always on top.
45
+ */
46
+ groups?: string[];
47
+ /**
48
+ * Scores or matches an item against the query. Defaults to a relevance
49
+ * filter; see {@link FilterFn}.
50
+ */
51
+ filter?: FilterFn;
52
+ /**
53
+ * The text searched for each item. Defaults to its label.
54
+ *
55
+ * Return several fields to search more than the label — a category, say, or
56
+ * keywords. The first is primary; the rest are down-weighted and combined
57
+ * by max, so a weak hit on a secondary field never outranks a strong hit on
58
+ * the label.
59
+ */
60
+ searchFields?: (item: T) => string | string[];
61
+ /**
62
+ * Render `@items` as given, without filtering or ranking. Use with
63
+ * `@query`/`@onQueryChange` when filtering happens elsewhere.
64
+ *
65
+ * @defaultValue false
66
+ */
67
+ disableFiltering?: boolean;
68
+ /** The query text. Pass with `@onQueryChange` to control it. */
69
+ query?: string;
70
+ onQueryChange?: (query: string) => void;
71
+ /**
72
+ * Async search. Called (debounced) as the user types; the resolved items
73
+ * are rendered and a loading state shows while pending. Stale responses are
74
+ * discarded, so the latest query always wins. Built-in filtering is
75
+ * disabled, and `@items` is the list shown before the first search.
76
+ *
77
+ * The resolved items **replace** `@items` — this is for a wholly remote
78
+ * list. To combine static entries (navigation, recents) with remote ones,
79
+ * do not use `@onSearch`: merge them yourself into `@items`, set
80
+ * `@disableFiltering`, and rank the static half with `filterAndRankItems`
81
+ * from `frontile/utils/filter`. See "Mixing static and remote results" in
82
+ * the docs.
83
+ */
84
+ onSearch?: (query: string) => Promise<T[]> | T[];
85
+ /**
86
+ * Debounce applied to `@onSearch`, in milliseconds.
87
+ *
88
+ * @defaultValue 250
89
+ */
90
+ searchDebounce?: number;
91
+ /** Show the loading state regardless of `@onSearch`. */
92
+ isLoading?: boolean;
93
+ /** Called when an item is chosen, by click or by Enter. */
94
+ onSelect?: (key: string, item?: T) => void;
95
+ disabledKeys?: string[];
96
+ /**
97
+ * Accessible name for the search input.
98
+ *
99
+ * @defaultValue 'Search'
100
+ */
101
+ label?: string;
102
+ placeholder?: string;
103
+ /**
104
+ * @defaultValue 'md'
105
+ */
106
+ size?: 'sm' | 'md' | 'lg';
107
+ /** Draw the palette's own surface, for use outside a dialog. */
108
+ isBordered?: boolean;
109
+ class?: string;
110
+ classes?: SlotsToClasses<CommandSlots>;
111
+ };
112
+ Element: HTMLDivElement;
113
+ Blocks: {
114
+ default: [CommandApi<T>];
115
+ };
116
+ }
117
+ /**
118
+ * A command palette: a search input over a ranked, optionally grouped list.
119
+ *
120
+ * Composed of the same primitives as `Autocomplete` — an input driving a
121
+ * `Listbox` through `ListManager` — rather than reimplementing keyboard
122
+ * navigation, option roles or active-item tracking.
123
+ */
124
+ declare class Command<T = unknown> extends Component<CommandSignature<T>> {
125
+ #private;
126
+ listId: string;
127
+ internalQuery: string;
128
+ activeDescendant?: string;
129
+ asyncItems?: T[];
130
+ isSearchPending: boolean;
131
+ /**
132
+ * The search field, which `CommandList` hands to `Listbox` as the element to
133
+ * attach keyboard events to. `ref` rather than a hand-rolled modifier so the
134
+ * reference is cleared on teardown.
135
+ */
136
+ inputRef: {
137
+ current: HTMLInputElement | undefined;
138
+ "__#6@#onChange"?: ((el: HTMLInputElement | undefined) => void) | undefined;
139
+ setup: import("ember-modifier").FunctionBasedModifier<{
140
+ Args: {
141
+ Positional: unknown[];
142
+ Named: import("ember-modifier/-private/signature").EmptyObject;
143
+ };
144
+ Element: HTMLInputElement;
145
+ }>;
146
+ };
147
+ get query(): string;
148
+ get isLoading(): boolean;
149
+ handleInput: (value: string) => void;
150
+ scheduleSearch(query: string): void;
151
+ runSearch(query: string): Promise<void>;
152
+ willDestroy(): void;
153
+ handleActiveItemChange: (_key?: string, item?: ListItem) => void;
154
+ handleSelect: (key: string) => void;
155
+ /** The matching items, ordered by relevance. */
156
+ get results(): T[];
157
+ get resultCount(): number;
158
+ /**
159
+ * Whether the listbox is currently rendered. `CommandList` shows the empty or
160
+ * loading state in its place when there is nothing to list, so the combobox
161
+ * must report itself collapsed — and must not point `aria-controls` at an
162
+ * element that is no longer in the document.
163
+ */
164
+ get hasResults(): boolean;
165
+ /**
166
+ * An async palette with nothing typed has nothing to show and no results to
167
+ * report — the moment to ask for a query rather than claim emptiness.
168
+ */
169
+ get isSearchPrompt(): boolean;
170
+ announcement: string;
171
+ setAnnouncement: (count: number) => void;
172
+ /**
173
+ * Debounced so a burst of keystrokes announces once, at rest, rather than
174
+ * interrupting the screen reader on every character.
175
+ */
176
+ announceResults: import("ember-modifier").FunctionBasedModifier<{
177
+ Args: {
178
+ Positional: [number, boolean];
179
+ Named: import("ember-modifier/-private/signature").EmptyObject;
180
+ };
181
+ Element: HTMLElement;
182
+ }>;
183
+ groupTitleFor(item: T): string | undefined;
184
+ /**
185
+ * Results partitioned into sections.
186
+ *
187
+ * Groups are built from the ranked results rather than declared as markup, so
188
+ * a group with no surviving items simply never renders — heading, wrapper and
189
+ * separator together — with no visibility tracking needed.
190
+ */
191
+ get groups(): CommandGroup<T>[];
192
+ get baseClass(): string;
193
+ }
194
+ export { Command };
195
+ export default Command;
@@ -0,0 +1,44 @@
1
+ import Component from '@glimmer/component';
2
+ import { type CommandSignature } from './command';
3
+ import type { OverlaySignature } from '../../overlays/overlay';
4
+ export interface CommandDialogSignature<T> {
5
+ Args: CommandSignature<T>['Args'] & {
6
+ isOpen: boolean;
7
+ onClose?: () => void;
8
+ /**
9
+ * Opens the palette from anywhere in the document, e.g. `"mod+k"` or
10
+ * `"/"`. Requires `@onOpen`. Pass an array to accept more than one.
11
+ *
12
+ * An unmodified shortcut is ignored while the user is typing in a field,
13
+ * so `/` still types a slash in a text input.
14
+ */
15
+ shortcut?: string | string[];
16
+ onOpen?: () => void;
17
+ backdrop?: OverlaySignature['Args']['backdrop'];
18
+ disableTransitions?: OverlaySignature['Args']['disableTransitions'];
19
+ didClose?: OverlaySignature['Args']['didClose'];
20
+ };
21
+ Element: CommandSignature<T>['Element'];
22
+ Blocks: CommandSignature<T>['Blocks'];
23
+ }
24
+ /**
25
+ * A `Command` palette in a dialog, with an optional global shortcut.
26
+ */
27
+ declare class CommandDialog<T = unknown> extends Component<CommandDialogSignature<T>> {
28
+ setupShortcut: import("ember-modifier").FunctionBasedModifier<{
29
+ Args: {
30
+ Positional: unknown[];
31
+ Named: import("ember-modifier/-private/signature").EmptyObject;
32
+ };
33
+ Element: Element;
34
+ }>;
35
+ get classNames(): {
36
+ base: string;
37
+ panel: string;
38
+ };
39
+ get transition(): {
40
+ name: string;
41
+ };
42
+ }
43
+ export { CommandDialog };
44
+ export default CommandDialog;
@@ -0,0 +1,61 @@
1
+ import Component from '@glimmer/component';
2
+ import type { TOC } from '@ember/component/template-only';
3
+ import type { CommandSlots, SlotsToClasses } from '@frontile/theme';
4
+ import type { WithBoundArgs } from '@glint/template';
5
+ export interface CommandKbdSignature {
6
+ Args: {
7
+ /** A shortcut to render, e.g. `"up"` or `"mod+k"`. See `Kbd`. */
8
+ keys?: string;
9
+ /** @internal bound by Command */
10
+ classes?: SlotsToClasses<CommandSlots>;
11
+ };
12
+ Element: HTMLElement;
13
+ Blocks: {
14
+ default: [];
15
+ };
16
+ }
17
+ /**
18
+ * A keycap, for the footer's hints. A thin binding over `Kbd` so the palette
19
+ * and the rest of the library render the same keycap.
20
+ */
21
+ declare const CommandKbd: TOC<CommandKbdSignature>;
22
+ export interface CommandHintSignature {
23
+ Args: {
24
+ /** @internal bound by CommandFooter */
25
+ classes?: SlotsToClasses<CommandSlots>;
26
+ };
27
+ Element: HTMLElement;
28
+ Blocks: {
29
+ default: [];
30
+ };
31
+ }
32
+ /** One hint: a keycap or two and a label. */
33
+ declare const CommandHint: TOC<CommandHintSignature>;
34
+ export interface CommandFooterSignature {
35
+ Args: {
36
+ /** @internal bound by Command */
37
+ classes?: SlotsToClasses<CommandSlots>;
38
+ };
39
+ Element: HTMLDivElement;
40
+ Blocks: {
41
+ /**
42
+ * Replaces the default hints. Yields a `Kbd` keycap so custom hints match
43
+ * the built-in ones.
44
+ */
45
+ default: [
46
+ {
47
+ Kbd: WithBoundArgs<typeof CommandKbd, 'classes'>;
48
+ Hint: WithBoundArgs<typeof CommandHint, 'classes'>;
49
+ }
50
+ ];
51
+ };
52
+ }
53
+ /**
54
+ * The bar along the bottom of a palette that teaches its keyboard: how to move,
55
+ * how to choose, how to leave. Renders sensible defaults when given no block.
56
+ */
57
+ declare class CommandFooter extends Component<CommandFooterSignature> {
58
+ get footerClass(): string;
59
+ }
60
+ export { CommandFooter, CommandKbd, CommandHint };
61
+ export default CommandFooter;
@@ -0,0 +1,6 @@
1
+ export { Command, type CommandSignature, type CommandGroup, type CommandApi } from './command';
2
+ export { CommandInput, type CommandInputSignature } from './input';
3
+ export { CommandList, type CommandListSignature } from './list';
4
+ export { CommandDialog, type CommandDialogSignature } from './dialog';
5
+ export { CommandFooter, CommandKbd, CommandHint, type CommandFooterSignature, type CommandKbdSignature, type CommandHintSignature } from './footer';
6
+ export { Command as default } from './command';
@@ -0,0 +1,131 @@
1
+ import Component from '@glimmer/component';
2
+ import type { ModifierLike } from '@glint/template';
3
+ import type { CommandSlots, SlotsToClasses } from '@frontile/theme';
4
+ export interface CommandInputSignature {
5
+ Args: {
6
+ /** @internal bound by Command */
7
+ value?: string;
8
+ /** @internal bound by Command */
9
+ onInput?: (value: string) => void;
10
+ /** @internal bound by Command */
11
+ controlsId?: string;
12
+ /** @internal bound by Command */
13
+ hasResults?: boolean;
14
+ /** @internal bound by Command */
15
+ activeDescendant?: string;
16
+ /** @internal bound by Command: the `ref` modifier tracking this input. */
17
+ setup?: ModifierLike<{
18
+ Element: HTMLInputElement;
19
+ }>;
20
+ /**
21
+ * Accessible name for the input.
22
+ *
23
+ * @defaultValue 'Search'
24
+ */
25
+ label?: string;
26
+ placeholder?: string;
27
+ classes?: SlotsToClasses<CommandSlots>;
28
+ };
29
+ Element: HTMLInputElement;
30
+ Blocks: {
31
+ /** Replaces the leading search icon. */
32
+ icon: [];
33
+ };
34
+ }
35
+ /**
36
+ * The palette's search field.
37
+ *
38
+ * Carries the combobox semantics itself — `role`, `aria-expanded`,
39
+ * `aria-controls` and `aria-activedescendant` all belong on the input, not on a
40
+ * wrapper, so a screen reader announces the active option while focus never
41
+ * leaves the field.
42
+ */
43
+ declare class CommandInput extends Component<CommandInputSignature> {
44
+ inputId: string;
45
+ handleInput: (event: Event) => void;
46
+ get classNames(): {
47
+ base: (slotProps?: ({
48
+ size?: "sm" | "md" | "lg" | undefined;
49
+ isBordered?: boolean | undefined;
50
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
51
+ inputWrapper: (slotProps?: ({
52
+ size?: "sm" | "md" | "lg" | undefined;
53
+ isBordered?: boolean | undefined;
54
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
55
+ inputIcon: (slotProps?: ({
56
+ size?: "sm" | "md" | "lg" | undefined;
57
+ isBordered?: boolean | undefined;
58
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
59
+ input: (slotProps?: ({
60
+ size?: "sm" | "md" | "lg" | undefined;
61
+ isBordered?: boolean | undefined;
62
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
63
+ list: (slotProps?: ({
64
+ size?: "sm" | "md" | "lg" | undefined;
65
+ isBordered?: boolean | undefined;
66
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
67
+ empty: (slotProps?: ({
68
+ size?: "sm" | "md" | "lg" | undefined;
69
+ isBordered?: boolean | undefined;
70
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
71
+ loading: (slotProps?: ({
72
+ size?: "sm" | "md" | "lg" | undefined;
73
+ isBordered?: boolean | undefined;
74
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
75
+ footer: (slotProps?: ({
76
+ size?: "sm" | "md" | "lg" | undefined;
77
+ isBordered?: boolean | undefined;
78
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
79
+ footerHint: (slotProps?: ({
80
+ size?: "sm" | "md" | "lg" | undefined;
81
+ isBordered?: boolean | undefined;
82
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
83
+ kbd: (slotProps?: ({
84
+ size?: "sm" | "md" | "lg" | undefined;
85
+ isBordered?: boolean | undefined;
86
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
87
+ } & {
88
+ base: (slotProps?: ({
89
+ size?: "sm" | "md" | "lg" | undefined;
90
+ isBordered?: boolean | undefined;
91
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
92
+ inputWrapper: (slotProps?: ({
93
+ size?: "sm" | "md" | "lg" | undefined;
94
+ isBordered?: boolean | undefined;
95
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
96
+ inputIcon: (slotProps?: ({
97
+ size?: "sm" | "md" | "lg" | undefined;
98
+ isBordered?: boolean | undefined;
99
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
100
+ input: (slotProps?: ({
101
+ size?: "sm" | "md" | "lg" | undefined;
102
+ isBordered?: boolean | undefined;
103
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
104
+ list: (slotProps?: ({
105
+ size?: "sm" | "md" | "lg" | undefined;
106
+ isBordered?: boolean | undefined;
107
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
108
+ empty: (slotProps?: ({
109
+ size?: "sm" | "md" | "lg" | undefined;
110
+ isBordered?: boolean | undefined;
111
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
112
+ loading: (slotProps?: ({
113
+ size?: "sm" | "md" | "lg" | undefined;
114
+ isBordered?: boolean | undefined;
115
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
116
+ footer: (slotProps?: ({
117
+ size?: "sm" | "md" | "lg" | undefined;
118
+ isBordered?: boolean | undefined;
119
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
120
+ footerHint: (slotProps?: ({
121
+ size?: "sm" | "md" | "lg" | undefined;
122
+ isBordered?: boolean | undefined;
123
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
124
+ kbd: (slotProps?: ({
125
+ size?: "sm" | "md" | "lg" | undefined;
126
+ isBordered?: boolean | undefined;
127
+ } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
128
+ } & {};
129
+ }
130
+ export { CommandInput };
131
+ export default CommandInput;