frontile 0.18.0-alpha.2 → 0.18.0-alpha.20

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 (499) 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/dom.d.ts +3 -0
  4. package/declarations/-private/get-config.d.ts +2 -0
  5. package/declarations/-private/intent-icons.d.ts +9 -0
  6. package/declarations/-private/manager.d.ts +20 -0
  7. package/declarations/-private/notification-stack.d.ts +76 -0
  8. package/declarations/-private/notification.d.ts +40 -0
  9. package/declarations/-private/timer.d.ts +12 -0
  10. package/declarations/-private/types.d.ts +126 -0
  11. package/declarations/buttons.d.ts +1 -0
  12. package/declarations/collections.d.ts +1 -0
  13. package/declarations/components/buttons/button-group.d.ts +24 -0
  14. package/declarations/components/buttons/button.d.ts +88 -0
  15. package/declarations/components/buttons/chip.d.ts +85 -0
  16. package/declarations/components/buttons/close-button.d.ts +55 -0
  17. package/declarations/components/buttons/index.d.ts +6 -0
  18. package/declarations/components/buttons/segmented-control/item.d.ts +50 -0
  19. package/declarations/components/buttons/segmented-control/segmented-control.d.ts +210 -0
  20. package/declarations/components/buttons/segmented-control.d.ts +3 -0
  21. package/declarations/components/buttons/toggle-button.d.ts +28 -0
  22. package/declarations/components/collections/calendar/calendar.d.ts +585 -0
  23. package/declarations/components/collections/calendar/day-cell.d.ts +19 -0
  24. package/declarations/components/collections/calendar/header.d.ts +56 -0
  25. package/declarations/components/collections/calendar/icons.d.ts +14 -0
  26. package/declarations/components/collections/calendar/month-grid.d.ts +36 -0
  27. package/declarations/components/collections/calendar/types.d.ts +94 -0
  28. package/declarations/components/collections/calendar/utils.d.ts +51 -0
  29. package/declarations/components/collections/calendar/year-grid.d.ts +32 -0
  30. package/declarations/components/collections/calendar.d.ts +3 -0
  31. package/declarations/components/collections/command/command.d.ts +195 -0
  32. package/declarations/components/collections/command/dialog.d.ts +44 -0
  33. package/declarations/components/collections/command/footer.d.ts +61 -0
  34. package/declarations/components/collections/command/index.d.ts +6 -0
  35. package/declarations/components/collections/command/input.d.ts +131 -0
  36. package/declarations/components/collections/command/list.d.ts +135 -0
  37. package/declarations/components/collections/command.d.ts +2 -0
  38. package/declarations/components/collections/dropdown/dropdown.d.ts +190 -0
  39. package/declarations/components/collections/dropdown/menu-context.d.ts +64 -0
  40. package/declarations/components/collections/dropdown/sub.d.ts +195 -0
  41. package/declarations/components/collections/dropdown.d.ts +2 -0
  42. package/declarations/components/collections/index.d.ts +5 -0
  43. package/declarations/components/collections/listbox/group.d.ts +62 -0
  44. package/declarations/components/collections/listbox/item.d.ts +140 -0
  45. package/declarations/components/collections/listbox/listbox.d.ts +102 -0
  46. package/declarations/components/collections/listbox.d.ts +2 -0
  47. package/declarations/components/collections/simple-table/body.d.ts +481 -0
  48. package/declarations/components/collections/simple-table/cell.d.ts +479 -0
  49. package/declarations/components/collections/simple-table/column.d.ts +471 -0
  50. package/declarations/components/collections/simple-table/footer.d.ts +482 -0
  51. package/declarations/components/collections/simple-table/header.d.ts +482 -0
  52. package/declarations/components/collections/simple-table/index.d.ts +498 -0
  53. package/declarations/components/collections/simple-table/row.d.ts +483 -0
  54. package/declarations/components/collections/table/cell-default.d.ts +43 -0
  55. package/declarations/components/collections/table/cell-for.d.ts +38 -0
  56. package/declarations/components/collections/table/cell-rendering-context.d.ts +24 -0
  57. package/declarations/components/collections/table/checkbox.d.ts +50 -0
  58. package/declarations/components/collections/table/column-visibility.d.ts +468 -0
  59. package/declarations/components/collections/table/icons.d.ts +11 -0
  60. package/declarations/components/collections/table/index.d.ts +4 -0
  61. package/declarations/components/collections/table/sort-button.d.ts +465 -0
  62. package/declarations/components/collections/table/table.d.ts +627 -0
  63. package/declarations/components/collections/table/types.d.ts +58 -0
  64. package/declarations/components/collections/table/utils.d.ts +6 -0
  65. package/declarations/components/collections/table.d.ts +2 -0
  66. package/declarations/components/disclosure/accordion/accordion.d.ts +247 -0
  67. package/declarations/components/disclosure/accordion/item.d.ts +96 -0
  68. package/declarations/components/disclosure/accordion.d.ts +3 -0
  69. package/declarations/components/disclosure/icons.d.ts +9 -0
  70. package/declarations/components/disclosure/index.d.ts +1 -0
  71. package/declarations/components/forms/autocomplete.d.ts +446 -0
  72. package/declarations/components/forms/checkbox-group.d.ts +62 -0
  73. package/declarations/components/forms/checkbox.d.ts +62 -0
  74. package/declarations/components/forms/field-types.d.ts +14 -0
  75. package/declarations/components/forms/field.d.ts +87 -0
  76. package/declarations/components/forms/form-control.d.ts +101 -0
  77. package/declarations/components/forms/form-description.d.ts +30 -0
  78. package/declarations/components/forms/form-feedback.d.ts +64 -0
  79. package/declarations/components/forms/form.d.ts +255 -0
  80. package/declarations/components/forms/icons.d.ts +7 -0
  81. package/declarations/components/forms/index.d.ts +20 -0
  82. package/declarations/components/forms/input-otp.d.ts +321 -0
  83. package/declarations/components/forms/input.d.ts +188 -0
  84. package/declarations/components/forms/label.d.ts +53 -0
  85. package/declarations/components/forms/native-select.d.ts +251 -0
  86. package/declarations/components/forms/radio-group.d.ts +64 -0
  87. package/declarations/components/forms/radio.d.ts +68 -0
  88. package/declarations/components/forms/select/end-content.d.ts +31 -0
  89. package/declarations/components/forms/select/native-mirror.d.ts +44 -0
  90. package/declarations/components/forms/select/select.d.ts +454 -0
  91. package/declarations/components/forms/select/selected-items.d.ts +80 -0
  92. package/declarations/components/forms/select/trigger.d.ts +81 -0
  93. package/declarations/components/forms/select/types.d.ts +431 -0
  94. package/declarations/components/forms/select.d.ts +2 -0
  95. package/declarations/components/forms/switch.d.ts +152 -0
  96. package/declarations/components/forms/textarea.d.ts +104 -0
  97. package/declarations/components/navigation/external-link.d.ts +94 -0
  98. package/declarations/components/navigation/index.d.ts +4 -0
  99. package/declarations/components/navigation/pagination/icons.d.ts +13 -0
  100. package/declarations/components/navigation/pagination/pagination.d.ts +279 -0
  101. package/declarations/components/navigation/pagination/range.d.ts +34 -0
  102. package/declarations/components/navigation/pagination.d.ts +3 -0
  103. package/declarations/components/navigation/tab-nav/item.d.ts +79 -0
  104. package/declarations/components/navigation/tab-nav/tab-nav.d.ts +165 -0
  105. package/declarations/components/navigation/tab-nav.d.ts +3 -0
  106. package/declarations/components/navigation/tabs/panel.d.ts +28 -0
  107. package/declarations/components/navigation/tabs/tab.d.ts +46 -0
  108. package/declarations/components/navigation/tabs/tabs.d.ts +227 -0
  109. package/declarations/components/navigation/tabs.d.ts +4 -0
  110. package/declarations/components/notifications/icons.d.ts +9 -0
  111. package/declarations/components/notifications/index.d.ts +12 -0
  112. package/declarations/components/notifications/notification-card.d.ts +100 -0
  113. package/declarations/components/notifications/notifications-container.d.ts +148 -0
  114. package/declarations/components/overlays/backdrop.d.ts +39 -0
  115. package/declarations/components/overlays/drawer/body.d.ts +17 -0
  116. package/declarations/components/overlays/drawer/drag-handle.d.ts +26 -0
  117. package/declarations/components/overlays/drawer/footer.d.ts +17 -0
  118. package/declarations/components/overlays/drawer/header.d.ts +140 -0
  119. package/declarations/components/overlays/drawer/selectors.d.ts +22 -0
  120. package/declarations/components/overlays/drawer.d.ts +293 -0
  121. package/declarations/components/overlays/index.d.ts +14 -0
  122. package/declarations/components/overlays/modal/body.d.ts +17 -0
  123. package/declarations/components/overlays/modal/footer.d.ts +17 -0
  124. package/declarations/components/overlays/modal/header.d.ts +35 -0
  125. package/declarations/components/overlays/modal.d.ts +146 -0
  126. package/declarations/components/overlays/mount-animation.d.ts +81 -0
  127. package/declarations/components/overlays/overlay.d.ts +218 -0
  128. package/declarations/components/overlays/popover.d.ts +452 -0
  129. package/declarations/components/overlays/portal-target.d.ts +19 -0
  130. package/declarations/components/overlays/portal.d.ts +38 -0
  131. package/declarations/components/overlays/tooltip.d.ts +401 -0
  132. package/declarations/components/status/alert.d.ts +134 -0
  133. package/declarations/components/status/index.d.ts +2 -0
  134. package/declarations/components/status/progress-bar.d.ts +115 -0
  135. package/declarations/components/utilities/avatar.d.ts +90 -0
  136. package/declarations/components/utilities/collapsible.d.ts +64 -0
  137. package/declarations/components/utilities/divider.d.ts +25 -0
  138. package/declarations/components/utilities/index.d.ts +15 -0
  139. package/declarations/components/utilities/kbd.d.ts +92 -0
  140. package/declarations/components/utilities/skeleton.d.ts +31 -0
  141. package/declarations/components/utilities/spinner.d.ts +26 -0
  142. package/declarations/components/utilities/visually-hidden.d.ts +9 -0
  143. package/declarations/disclosure.d.ts +1 -0
  144. package/declarations/forms.d.ts +1 -0
  145. package/declarations/index.d.ts +9 -7
  146. package/declarations/modifiers/drag-to-dismiss.d.ts +22 -0
  147. package/declarations/modifiers/press.d.ts +55 -0
  148. package/declarations/navigation.d.ts +1 -0
  149. package/declarations/notifications.d.ts +1 -0
  150. package/declarations/overlays.d.ts +1 -0
  151. package/declarations/services/notifications.d.ts +20 -0
  152. package/declarations/status.d.ts +1 -0
  153. package/declarations/template-registry.d.ts +55 -2
  154. package/declarations/test-support.d.ts +3 -0
  155. package/declarations/utilities.d.ts +1 -0
  156. package/declarations/utils/deferred-work.d.ts +24 -0
  157. package/declarations/utils/filter.d.ts +87 -0
  158. package/declarations/utils/forms-utils-index.d.ts +3 -0
  159. package/declarations/utils/keys.d.ts +52 -0
  160. package/declarations/utils/listManager.d.ts +158 -0
  161. package/declarations/utils/nested-data.d.ts +44 -0
  162. package/declarations/utils/prefers-reduced-motion.d.ts +3 -0
  163. package/declarations/utils/ref.d.ts +14 -0
  164. package/declarations/utils/roving-focus.d.ts +66 -0
  165. package/declarations/utils/safe-area.d.ts +52 -0
  166. package/declarations/utils/safe-styles.d.ts +2 -0
  167. package/declarations/utils/selection-indicator.d.ts +65 -0
  168. package/declarations/utils/standard-validator.d.ts +176 -0
  169. package/declarations/utils/toggle.d.ts +9 -0
  170. package/dist/_app_/services/notifications.js +1 -0
  171. package/dist/buttons.js +8 -0
  172. package/dist/buttons.js.map +1 -0
  173. package/dist/collections.js +13 -0
  174. package/dist/collections.js.map +1 -0
  175. package/dist/components/buttons/button-group.js +31 -0
  176. package/dist/components/buttons/button-group.js.map +1 -0
  177. package/dist/components/buttons/button.js +120 -0
  178. package/dist/components/buttons/button.js.map +1 -0
  179. package/dist/components/buttons/chip.js +44 -0
  180. package/dist/components/buttons/chip.js.map +1 -0
  181. package/dist/components/buttons/close-button.js +84 -0
  182. package/dist/components/buttons/close-button.js.map +1 -0
  183. package/dist/components/buttons/index.js +8 -0
  184. package/dist/components/buttons/index.js.map +1 -0
  185. package/dist/components/buttons/segmented-control/item.js +55 -0
  186. package/dist/components/buttons/segmented-control/item.js.map +1 -0
  187. package/dist/components/buttons/segmented-control/segmented-control.js +175 -0
  188. package/dist/components/buttons/segmented-control/segmented-control.js.map +1 -0
  189. package/dist/components/buttons/segmented-control.js +3 -0
  190. package/dist/components/buttons/segmented-control.js.map +1 -0
  191. package/dist/components/buttons/toggle-button.js +40 -0
  192. package/dist/components/buttons/toggle-button.js.map +1 -0
  193. package/dist/components/collections/calendar/calendar.js +808 -0
  194. package/dist/components/collections/calendar/calendar.js.map +1 -0
  195. package/dist/components/collections/calendar/day-cell.js +16 -0
  196. package/dist/components/collections/calendar/day-cell.js.map +1 -0
  197. package/dist/components/collections/calendar/header.js +48 -0
  198. package/dist/components/collections/calendar/header.js.map +1 -0
  199. package/dist/components/collections/calendar/icons.js +23 -0
  200. package/dist/components/collections/calendar/icons.js.map +1 -0
  201. package/dist/components/collections/calendar/month-grid.js +14 -0
  202. package/dist/components/collections/calendar/month-grid.js.map +1 -0
  203. package/dist/components/collections/calendar/types.js +2 -0
  204. package/dist/components/collections/calendar/types.js.map +1 -0
  205. package/dist/components/collections/calendar/utils.js +199 -0
  206. package/dist/components/collections/calendar/utils.js.map +1 -0
  207. package/dist/components/collections/calendar/year-grid.js +117 -0
  208. package/dist/components/collections/calendar/year-grid.js.map +1 -0
  209. package/dist/components/collections/calendar.js +2 -0
  210. package/dist/components/collections/calendar.js.map +1 -0
  211. package/dist/components/collections/command/command.js +263 -0
  212. package/dist/components/collections/command/command.js.map +1 -0
  213. package/dist/components/collections/command/dialog.js +100 -0
  214. package/dist/components/collections/command/dialog.js.map +1 -0
  215. package/dist/components/collections/command/footer.js +60 -0
  216. package/dist/components/collections/command/footer.js.map +1 -0
  217. package/dist/components/collections/command/index.js +6 -0
  218. package/dist/components/collections/command/index.js.map +1 -0
  219. package/dist/components/collections/command/input.js +45 -0
  220. package/dist/components/collections/command/input.js.map +1 -0
  221. package/dist/components/collections/command/list.js +70 -0
  222. package/dist/components/collections/command/list.js.map +1 -0
  223. package/dist/components/collections/command.js +6 -0
  224. package/dist/components/collections/command.js.map +1 -0
  225. package/dist/components/collections/dropdown/dropdown.js +206 -0
  226. package/dist/components/collections/dropdown/dropdown.js.map +1 -0
  227. package/dist/components/collections/dropdown/menu-context.js +62 -0
  228. package/dist/components/collections/dropdown/menu-context.js.map +1 -0
  229. package/dist/components/collections/dropdown/sub.js +256 -0
  230. package/dist/components/collections/dropdown/sub.js.map +1 -0
  231. package/dist/components/collections/dropdown.js +2 -0
  232. package/dist/components/collections/dropdown.js.map +1 -0
  233. package/dist/components/collections/index.js +13 -0
  234. package/dist/components/collections/index.js.map +1 -0
  235. package/dist/components/collections/listbox/group.js +60 -0
  236. package/dist/components/collections/listbox/group.js.map +1 -0
  237. package/dist/components/collections/listbox/item.js +197 -0
  238. package/dist/components/collections/listbox/item.js.map +1 -0
  239. package/dist/components/collections/listbox/listbox.js +187 -0
  240. package/dist/components/collections/listbox/listbox.js.map +1 -0
  241. package/dist/components/collections/listbox.js +4 -0
  242. package/dist/components/collections/listbox.js.map +1 -0
  243. package/dist/components/collections/simple-table/body.js +32 -0
  244. package/dist/components/collections/simple-table/body.js.map +1 -0
  245. package/dist/components/collections/simple-table/cell.js +27 -0
  246. package/dist/components/collections/simple-table/cell.js.map +1 -0
  247. package/dist/components/collections/simple-table/column.js +26 -0
  248. package/dist/components/collections/simple-table/column.js.map +1 -0
  249. package/dist/components/collections/simple-table/footer.js +44 -0
  250. package/dist/components/collections/simple-table/footer.js.map +1 -0
  251. package/dist/components/collections/simple-table/header.js +44 -0
  252. package/dist/components/collections/simple-table/header.js.map +1 -0
  253. package/dist/components/collections/simple-table/index.js +60 -0
  254. package/dist/components/collections/simple-table/index.js.map +1 -0
  255. package/dist/components/collections/simple-table/row.js +33 -0
  256. package/dist/components/collections/simple-table/row.js.map +1 -0
  257. package/dist/components/collections/table/cell-default.js +39 -0
  258. package/dist/components/collections/table/cell-default.js.map +1 -0
  259. package/dist/components/collections/table/cell-for.js +34 -0
  260. package/dist/components/collections/table/cell-for.js.map +1 -0
  261. package/dist/components/collections/table/cell-rendering-context.js +39 -0
  262. package/dist/components/collections/table/cell-rendering-context.js.map +1 -0
  263. package/dist/components/collections/table/checkbox.js +53 -0
  264. package/dist/components/collections/table/checkbox.js.map +1 -0
  265. package/dist/components/collections/table/column-visibility.js +58 -0
  266. package/dist/components/collections/table/column-visibility.js.map +1 -0
  267. package/dist/components/collections/table/icons.js +19 -0
  268. package/dist/components/collections/table/icons.js.map +1 -0
  269. package/dist/components/collections/table/index.js +3 -0
  270. package/dist/components/collections/table/index.js.map +1 -0
  271. package/dist/components/collections/table/sort-button.js +32 -0
  272. package/dist/components/collections/table/sort-button.js.map +1 -0
  273. package/dist/components/collections/table/table.js +488 -0
  274. package/dist/components/collections/table/table.js.map +1 -0
  275. package/dist/components/collections/table/types.js +2 -0
  276. package/dist/components/collections/table/types.js.map +1 -0
  277. package/dist/components/collections/table/utils.js +19 -0
  278. package/dist/components/collections/table/utils.js.map +1 -0
  279. package/dist/components/collections/table.js +3 -0
  280. package/dist/components/collections/table.js.map +1 -0
  281. package/dist/components/disclosure/accordion/accordion.js +225 -0
  282. package/dist/components/disclosure/accordion/accordion.js.map +1 -0
  283. package/dist/components/disclosure/accordion/item.js +86 -0
  284. package/dist/components/disclosure/accordion/item.js.map +1 -0
  285. package/dist/components/disclosure/accordion.js +3 -0
  286. package/dist/components/disclosure/accordion.js.map +1 -0
  287. package/dist/components/disclosure/icons.js +13 -0
  288. package/dist/components/disclosure/icons.js.map +1 -0
  289. package/dist/components/disclosure/index.js +3 -0
  290. package/dist/components/disclosure/index.js.map +1 -0
  291. package/dist/components/forms/autocomplete.js +351 -0
  292. package/dist/components/forms/autocomplete.js.map +1 -0
  293. package/dist/components/forms/checkbox-group.js +29 -0
  294. package/dist/components/forms/checkbox-group.js.map +1 -0
  295. package/dist/components/forms/checkbox.js +50 -0
  296. package/dist/components/forms/checkbox.js.map +1 -0
  297. package/dist/components/forms/field-types.js +2 -0
  298. package/dist/components/forms/field-types.js.map +1 -0
  299. package/dist/components/forms/field.js +105 -0
  300. package/dist/components/forms/field.js.map +1 -0
  301. package/dist/components/forms/form-control.js +70 -0
  302. package/dist/components/forms/form-control.js.map +1 -0
  303. package/dist/components/forms/form-description.js +24 -0
  304. package/dist/components/forms/form-description.js.map +1 -0
  305. package/dist/components/forms/form-feedback.js +53 -0
  306. package/dist/components/forms/form-feedback.js.map +1 -0
  307. package/dist/components/forms/form.js +397 -0
  308. package/dist/components/forms/form.js.map +1 -0
  309. package/dist/components/forms/icons.js +13 -0
  310. package/dist/components/forms/icons.js.map +1 -0
  311. package/dist/components/forms/index.js +20 -0
  312. package/dist/components/forms/index.js.map +1 -0
  313. package/dist/components/forms/input-otp.js +407 -0
  314. package/dist/components/forms/input-otp.js.map +1 -0
  315. package/dist/components/forms/input.js +137 -0
  316. package/dist/components/forms/input.js.map +1 -0
  317. package/dist/components/forms/label.js +23 -0
  318. package/dist/components/forms/label.js.map +1 -0
  319. package/dist/components/forms/native-select.js +134 -0
  320. package/dist/components/forms/native-select.js.map +1 -0
  321. package/dist/components/forms/radio-group.js +29 -0
  322. package/dist/components/forms/radio-group.js.map +1 -0
  323. package/dist/components/forms/radio.js +49 -0
  324. package/dist/components/forms/radio.js.map +1 -0
  325. package/dist/components/forms/select/end-content.js +24 -0
  326. package/dist/components/forms/select/end-content.js.map +1 -0
  327. package/dist/components/forms/select/native-mirror.js +29 -0
  328. package/dist/components/forms/select/native-mirror.js.map +1 -0
  329. package/dist/components/forms/select/select.js +629 -0
  330. package/dist/components/forms/select/select.js.map +1 -0
  331. package/dist/components/forms/select/selected-items.js +63 -0
  332. package/dist/components/forms/select/selected-items.js.map +1 -0
  333. package/dist/components/forms/select/trigger.js +30 -0
  334. package/dist/components/forms/select/trigger.js.map +1 -0
  335. package/dist/components/forms/select/types.js +2 -0
  336. package/dist/components/forms/select/types.js.map +1 -0
  337. package/dist/components/forms/select.js +2 -0
  338. package/dist/components/forms/select.js.map +1 -0
  339. package/dist/components/forms/switch.js +63 -0
  340. package/dist/components/forms/switch.js.map +1 -0
  341. package/dist/components/forms/textarea.js +53 -0
  342. package/dist/components/forms/textarea.js.map +1 -0
  343. package/dist/components/navigation/external-link.js +107 -0
  344. package/dist/components/navigation/external-link.js.map +1 -0
  345. package/dist/components/navigation/index.js +9 -0
  346. package/dist/components/navigation/index.js.map +1 -0
  347. package/dist/components/navigation/pagination/icons.js +23 -0
  348. package/dist/components/navigation/pagination/icons.js.map +1 -0
  349. package/dist/components/navigation/pagination/pagination.js +216 -0
  350. package/dist/components/navigation/pagination/pagination.js.map +1 -0
  351. package/dist/components/navigation/pagination/range.js +58 -0
  352. package/dist/components/navigation/pagination/range.js.map +1 -0
  353. package/dist/components/navigation/pagination.js +3 -0
  354. package/dist/components/navigation/pagination.js.map +1 -0
  355. package/dist/components/navigation/tab-nav/item.js +90 -0
  356. package/dist/components/navigation/tab-nav/item.js.map +1 -0
  357. package/dist/components/navigation/tab-nav/tab-nav.js +79 -0
  358. package/dist/components/navigation/tab-nav/tab-nav.js.map +1 -0
  359. package/dist/components/navigation/tab-nav.js +3 -0
  360. package/dist/components/navigation/tab-nav.js.map +1 -0
  361. package/dist/components/navigation/tabs/panel.js +23 -0
  362. package/dist/components/navigation/tabs/panel.js.map +1 -0
  363. package/dist/components/navigation/tabs/tab.js +45 -0
  364. package/dist/components/navigation/tabs/tab.js.map +1 -0
  365. package/dist/components/navigation/tabs/tabs.js +156 -0
  366. package/dist/components/navigation/tabs/tabs.js.map +1 -0
  367. package/dist/components/navigation/tabs.js +4 -0
  368. package/dist/components/navigation/tabs.js.map +1 -0
  369. package/dist/components/notifications/index.js +5 -0
  370. package/dist/components/notifications/index.js.map +1 -0
  371. package/dist/components/notifications/notification-card.js +16 -0
  372. package/dist/components/notifications/notification-card.js.map +1 -0
  373. package/dist/components/notifications/notifications-container.js +269 -0
  374. package/dist/components/notifications/notifications-container.js.map +1 -0
  375. package/dist/components/overlays/backdrop.js +44 -0
  376. package/dist/components/overlays/backdrop.js.map +1 -0
  377. package/dist/components/overlays/drawer/body.js +18 -0
  378. package/dist/components/overlays/drawer/body.js.map +1 -0
  379. package/dist/components/overlays/drawer/drag-handle.js +18 -0
  380. package/dist/components/overlays/drawer/drag-handle.js.map +1 -0
  381. package/dist/components/overlays/drawer/footer.js +18 -0
  382. package/dist/components/overlays/drawer/footer.js.map +1 -0
  383. package/dist/components/overlays/drawer/header.js +61 -0
  384. package/dist/components/overlays/drawer/header.js.map +1 -0
  385. package/dist/components/overlays/drawer/selectors.js +29 -0
  386. package/dist/components/overlays/drawer/selectors.js.map +1 -0
  387. package/dist/components/overlays/drawer.js +175 -0
  388. package/dist/components/overlays/drawer.js.map +1 -0
  389. package/dist/components/overlays/index.js +15 -0
  390. package/dist/components/overlays/index.js.map +1 -0
  391. package/dist/components/overlays/modal/body.js +18 -0
  392. package/dist/components/overlays/modal/body.js.map +1 -0
  393. package/dist/components/overlays/modal/footer.js +18 -0
  394. package/dist/components/overlays/modal/footer.js.map +1 -0
  395. package/dist/components/overlays/modal/header.js +25 -0
  396. package/dist/components/overlays/modal/header.js.map +1 -0
  397. package/dist/components/overlays/modal.js +129 -0
  398. package/dist/components/overlays/modal.js.map +1 -0
  399. package/dist/components/overlays/mount-animation.js +146 -0
  400. package/dist/components/overlays/mount-animation.js.map +1 -0
  401. package/dist/components/overlays/overlay.js +321 -0
  402. package/dist/components/overlays/overlay.js.map +1 -0
  403. package/dist/components/overlays/popover.js +647 -0
  404. package/dist/components/overlays/popover.js.map +1 -0
  405. package/dist/components/overlays/portal-target.js +10 -0
  406. package/dist/components/overlays/portal-target.js.map +1 -0
  407. package/dist/components/overlays/portal.js +111 -0
  408. package/dist/components/overlays/portal.js.map +1 -0
  409. package/dist/components/overlays/tooltip.js +377 -0
  410. package/dist/components/overlays/tooltip.js.map +1 -0
  411. package/dist/components/status/alert.js +146 -0
  412. package/dist/components/status/alert.js.map +1 -0
  413. package/dist/components/status/index.js +3 -0
  414. package/dist/components/status/index.js.map +1 -0
  415. package/dist/components/status/progress-bar.js +126 -0
  416. package/dist/components/status/progress-bar.js.map +1 -0
  417. package/dist/components/utilities/avatar.js +48 -0
  418. package/dist/components/utilities/avatar.js.map +1 -0
  419. package/dist/components/utilities/collapsible.js +210 -0
  420. package/dist/components/utilities/collapsible.js.map +1 -0
  421. package/dist/components/utilities/divider.js +37 -0
  422. package/dist/components/utilities/divider.js.map +1 -0
  423. package/dist/components/utilities/index.js +16 -0
  424. package/dist/components/utilities/index.js.map +1 -0
  425. package/dist/components/utilities/kbd.js +88 -0
  426. package/dist/components/utilities/kbd.js.map +1 -0
  427. package/dist/components/utilities/skeleton.js +14 -0
  428. package/dist/components/utilities/skeleton.js.map +1 -0
  429. package/dist/components/utilities/spinner.js +14 -0
  430. package/dist/components/utilities/spinner.js.map +1 -0
  431. package/dist/components/utilities/visually-hidden.js +10 -0
  432. package/dist/components/utilities/visually-hidden.js.map +1 -0
  433. package/dist/control-blur-C8OnSQR5.js +124 -0
  434. package/dist/control-blur-C8OnSQR5.js.map +1 -0
  435. package/dist/dialog-CreV7aPQ.js +27 -0
  436. package/dist/dialog-CreV7aPQ.js.map +1 -0
  437. package/dist/disclosure.js +3 -0
  438. package/dist/disclosure.js.map +1 -0
  439. package/dist/dom-cKWVvtkd.js +116 -0
  440. package/dist/dom-cKWVvtkd.js.map +1 -0
  441. package/dist/forms.js +20 -0
  442. package/dist/forms.js.map +1 -0
  443. package/dist/index.js +83 -7
  444. package/dist/index.js.map +1 -1
  445. package/dist/intent-icons-DpEViO8C.js +19 -0
  446. package/dist/intent-icons-DpEViO8C.js.map +1 -0
  447. package/dist/manager-CDIZzrQ9.js +388 -0
  448. package/dist/manager-CDIZzrQ9.js.map +1 -0
  449. package/dist/modifiers/drag-to-dismiss.js +392 -0
  450. package/dist/modifiers/drag-to-dismiss.js.map +1 -0
  451. package/dist/modifiers/press.js +321 -0
  452. package/dist/modifiers/press.js.map +1 -0
  453. package/dist/navigation.js +9 -0
  454. package/dist/navigation.js.map +1 -0
  455. package/dist/notification-card-D5fd-Sxa.js +330 -0
  456. package/dist/notification-card-D5fd-Sxa.js.map +1 -0
  457. package/dist/notifications.js +5 -0
  458. package/dist/notifications.js.map +1 -0
  459. package/dist/overlays.js +15 -0
  460. package/dist/overlays.js.map +1 -0
  461. package/dist/runtime--fcdnjmJ-BOdRhmsS.js +67 -0
  462. package/dist/runtime--fcdnjmJ-BOdRhmsS.js.map +1 -0
  463. package/dist/services/notifications.js +38 -0
  464. package/dist/services/notifications.js.map +1 -0
  465. package/dist/status.js +3 -0
  466. package/dist/status.js.map +1 -0
  467. package/dist/test-support.js +1316 -0
  468. package/dist/test-support.js.map +1 -0
  469. package/dist/utilities.js +16 -0
  470. package/dist/utilities.js.map +1 -0
  471. package/dist/utils/deferred-work.js +66 -0
  472. package/dist/utils/deferred-work.js.map +1 -0
  473. package/dist/utils/filter.js +166 -0
  474. package/dist/utils/filter.js.map +1 -0
  475. package/dist/utils/forms-utils-index.js +24 -0
  476. package/dist/utils/forms-utils-index.js.map +1 -0
  477. package/dist/utils/keys.js +259 -0
  478. package/dist/utils/keys.js.map +1 -0
  479. package/dist/utils/listManager.js +759 -0
  480. package/dist/utils/listManager.js.map +1 -0
  481. package/dist/utils/nested-data.js +196 -0
  482. package/dist/utils/nested-data.js.map +1 -0
  483. package/dist/utils/prefers-reduced-motion.js +21 -0
  484. package/dist/utils/prefers-reduced-motion.js.map +1 -0
  485. package/dist/utils/ref.js +32 -0
  486. package/dist/utils/ref.js.map +1 -0
  487. package/dist/utils/roving-focus.js +206 -0
  488. package/dist/utils/roving-focus.js.map +1 -0
  489. package/dist/utils/safe-area.js +133 -0
  490. package/dist/utils/safe-area.js.map +1 -0
  491. package/dist/utils/safe-styles.js +15 -0
  492. package/dist/utils/safe-styles.js.map +1 -0
  493. package/dist/utils/selection-indicator.js +189 -0
  494. package/dist/utils/selection-indicator.js.map +1 -0
  495. package/dist/utils/standard-validator.js +232 -0
  496. package/dist/utils/standard-validator.js.map +1 -0
  497. package/dist/utils/toggle.js +46 -0
  498. package/dist/utils/toggle.js.map +1 -0
  499. package/package.json +77 -21
@@ -0,0 +1,63 @@
1
+ interface ControlBlurTrackerOptions {
2
+ /**
3
+ * The element the popover's `trigger` modifier is installed on. Its
4
+ * `aria-controls` is how the portaled content is found, so this must be the
5
+ * element that opens the dropdown, not merely something inside the control.
6
+ */
7
+ trigger: () => HTMLElement | null | undefined;
8
+ /** The control's outermost element: trigger, chips, clear button and all. */
9
+ container: () => HTMLElement | null | undefined;
10
+ /** Whether the control's dropdown is currently open. */
11
+ isOpen: () => boolean;
12
+ /** Whether the owning component has been (or is being) destroyed. */
13
+ isDestroyed: () => boolean;
14
+ /** Called once each time focus genuinely leaves the control. */
15
+ onBlur: () => void;
16
+ }
17
+ /**
18
+ * Decides when a composite control -- a trigger plus a dropdown -- has really
19
+ * lost focus, and reports it once.
20
+ *
21
+ * A trigger's own blur is not the answer. Clicking an option moves focus onto
22
+ * that option, which is *inside* the control as far as the user is concerned
23
+ * but is not a DOM descendant of the trigger: the popover content is portaled
24
+ * to the end of the document. And in multiple selection mode the dropdown
25
+ * stays open across several such clicks, so a trigger-blur-means-blur rule
26
+ * fires mid-interaction -- which is what made blur validation paint "pick at
27
+ * least three" under a field the user was still filling in.
28
+ *
29
+ * So the control is treated as two regions, the container and the popover
30
+ * content, and focus leaving one for the other is not a blur:
31
+ *
32
+ * - **`focusout` naming its destination** (`relatedTarget`) is answered
33
+ * immediately, with no timer at all. This covers every deliberate exit --
34
+ * Tab, or a click on another focusable thing -- and every move *into* the
35
+ * dropdown, including the option click that starts a selection.
36
+ * - **A targetless `focusout`** is deferred by {@link FOCUS_SETTLE_MS} and then
37
+ * judged on `document.activeElement`. Focus nowhere (`body`) while the
38
+ * dropdown is open is still part of the interaction -- a click on the
39
+ * dropdown's padding -- so it is not a blur; once the dropdown has closed,
40
+ * the same state means the user clicked away.
41
+ *
42
+ * The portaled content is located through the trigger's `aria-controls`, which
43
+ * the popover's trigger modifier sets to the content's id. That needs no extra
44
+ * plumbing through the popover and stays correct wherever the content is
45
+ * rendered.
46
+ *
47
+ * Callers must call {@link cancel} from `willDestroy`: a pending timer would
48
+ * otherwise resolve against a torn-down component and both write tracked state
49
+ * and call a callback the consumer has stopped expecting.
50
+ */
51
+ declare class ControlBlurTracker {
52
+ #private;
53
+ private readonly options;
54
+ constructor(options: ControlBlurTrackerOptions);
55
+ /**
56
+ * Wire this to `focusout` on the trigger -- not `blur`, whose
57
+ * `relatedTarget` browsers are not obliged to populate.
58
+ */
59
+ handleFocusOut: (event: FocusEvent) => void;
60
+ /** Cancels a pending decision. Call from the owner's `willDestroy`. */
61
+ cancel: () => void;
62
+ }
63
+ export { ControlBlurTracker, type ControlBlurTrackerOptions };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Warns when a dialog ends up with no accessible name at all — no registered
3
+ * `Header`, and no `aria-label`/`aria-labelledby` of the consumer's own.
4
+ * Assistive technology announces such a dialog as just "dialog", and nothing
5
+ * else surfaces the mistake at runtime.
6
+ *
7
+ * Consumer-supplied names arrive through `...attributes`, which the component
8
+ * cannot see in its args, so this inspects the rendered element for them. A
9
+ * heading merely carrying `headerId` deliberately does *not* count: nothing
10
+ * points `aria-labelledby` at it, so the dialog really is unnamed, and that is
11
+ * the case most worth surfacing.
12
+ *
13
+ * `warn` is stripped from production builds, so this costs consumers nothing.
14
+ */
15
+ export declare function warnIfDialogHasNoAccessibleName(element: Element, hasRegisteredHeader: boolean, component: 'modal' | 'drawer'): void;
@@ -0,0 +1,3 @@
1
+ export declare function getDOM(context: object): Document | null;
2
+ export declare function getElementById(doc: Document | Element, id: string): null | Element;
3
+ export declare function getElementByAttribute(doc: Document | Element, attribute: string, value?: string | undefined): null | Element;
@@ -0,0 +1,2 @@
1
+ import type { DefaultConfig } from './types';
2
+ export declare function getConfigOption<T extends keyof DefaultConfig>(config: DefaultConfig, key: T, defaultValue: NonNullable<DefaultConfig[T]>): NonNullable<DefaultConfig[T]>;
@@ -0,0 +1,9 @@
1
+ import type { TOC } from '@ember/component/template-only';
2
+ type IconSignature = TOC<{
3
+ Element: SVGElement;
4
+ }>;
5
+ declare const IconInfo: IconSignature;
6
+ declare const IconSuccess: IconSignature;
7
+ declare const IconWarning: IconSignature;
8
+ declare const IconDanger: IconSignature;
9
+ export { IconInfo, IconSuccess, IconWarning, IconDanger };
@@ -0,0 +1,20 @@
1
+ import Notification from './notification';
2
+ import type { DefaultConfig, NotificationOptions, NotificationContent, PromiseNotificationOptions } from './types';
3
+ export default class NotificationsManager {
4
+ notifications: Notification<Record<string, unknown>>[];
5
+ config: DefaultConfig;
6
+ onRemove?: (notification: Notification<Record<string, unknown>>) => void;
7
+ constructor(context: object, onRemove?: (notification: Notification<Record<string, unknown>>) => void);
8
+ add<TMetadata extends Record<string, unknown> = Record<string, unknown>>(content: string | NotificationContent, options?: NotificationOptions<TMetadata>): Notification<TMetadata>;
9
+ /**
10
+ * Show a notification driven by a promise: a spinner while pending, then
11
+ * the same notification mutated in place once it settles.
12
+ *
13
+ * Returns the original promise, so callers can still await it — and are
14
+ * still responsible for handling its rejection.
15
+ */
16
+ promise<T, TMetadata extends Record<string, unknown> = Record<string, unknown>>(promise: Promise<T>, options: PromiseNotificationOptions<T, TMetadata>): Promise<T>;
17
+ remove(notification?: Notification<Record<string, unknown>>): void;
18
+ removeAll(): void;
19
+ private setupAutoRemoval;
20
+ }
@@ -0,0 +1,76 @@
1
+ import type { containerPlacement } from './types';
2
+ /**
3
+ * Cards are pinned to the placement edge, so a top placement stacks
4
+ * downwards and a bottom placement stacks upwards. Exported so
5
+ * notification-card.gts's own enter/exit slide direction can share this
6
+ * instead of re-deriving it from the placement string.
7
+ */
8
+ declare function isTopPlacement(placement: containerPlacement): boolean;
9
+ interface NotificationStackInput {
10
+ /**
11
+ * Measured card heights in px, ordered front-first (index 0 is the newest
12
+ * notification). A card that has not been measured yet contributes 0.
13
+ */
14
+ heights: number[];
15
+ isExpanded: boolean;
16
+ /**
17
+ * Peek offset between collapsed cards, and the gap between expanded cards.
18
+ */
19
+ gap: number;
20
+ /**
21
+ * How many cards stay visible while collapsed.
22
+ */
23
+ visibleToasts: number;
24
+ placement: containerPlacement;
25
+ }
26
+ interface CardGeometry {
27
+ transform: string;
28
+ zIndex: number;
29
+ opacity: number;
30
+ /**
31
+ * Fixed height in px while collapsed, so a taller card behind the front one
32
+ * cannot stick out past it. `null` means the card sizes to its content.
33
+ */
34
+ height: number | null;
35
+ transformOrigin: 'top center' | 'bottom center';
36
+ /**
37
+ * `'none'` when the card is fully transparent (collapsed beyond
38
+ * `visibleToasts`), so it cannot swallow clicks meant for the page beneath
39
+ * it; `'auto'` otherwise.
40
+ */
41
+ pointerEvents: 'auto' | 'none';
42
+ }
43
+ /**
44
+ * Pure geometry for the notification stack: given measured card heights and
45
+ * the current expansion state, it produces the transform for each card and
46
+ * the height the container should animate to.
47
+ *
48
+ * Deliberately free of Ember and DOM dependencies so the layout maths can be
49
+ * tested on its own.
50
+ */
51
+ declare class NotificationStack {
52
+ readonly heights: number[];
53
+ readonly isExpanded: boolean;
54
+ readonly gap: number;
55
+ readonly visibleToasts: number;
56
+ readonly placement: containerPlacement;
57
+ constructor(input: NotificationStackInput);
58
+ get isTopPlacement(): boolean;
59
+ /**
60
+ * Cards are pinned to the placement edge, so a top placement stacks
61
+ * downwards and a bottom placement stacks upwards.
62
+ */
63
+ get directionSign(): number;
64
+ get transformOrigin(): CardGeometry['transformOrigin'];
65
+ get count(): number;
66
+ get frontHeight(): number;
67
+ geometryFor(index: number): CardGeometry;
68
+ get containerHeight(): number;
69
+ /**
70
+ * Distance from the placement edge to the leading edge of `index`, i.e. the
71
+ * summed heights and gaps of every card in front of it.
72
+ */
73
+ private offsetBefore;
74
+ }
75
+ export { NotificationStack, isTopPlacement };
76
+ export type { NotificationStackInput, CardGeometry };
@@ -0,0 +1,40 @@
1
+ import Timer from './timer';
2
+ import type { NotificationOptions, NotificationContent, NotificationIntent, NotificationUpdate, CustomAction, DefaultConfig } from './types';
3
+ export default class Notification<TMetadata extends Record<string, unknown> = Record<string, unknown>> {
4
+ /**
5
+ * The title of the notification. Named `message` for backwards
6
+ * compatibility with the original single-string API.
7
+ */
8
+ message: string;
9
+ description?: string;
10
+ intent: NotificationIntent;
11
+ allowClosing: boolean;
12
+ isLoading: boolean;
13
+ customActions?: CustomAction[];
14
+ timer?: Timer;
15
+ isRemoving: boolean;
16
+ readonly transitionDuration: number;
17
+ readonly duration: number;
18
+ readonly hideIcon: boolean;
19
+ readonly metadata?: TMetadata;
20
+ constructor(config: DefaultConfig, content: string | NotificationContent, options?: NotificationOptions<TMetadata>);
21
+ /** Read-only alias of `message` — do not add a setter. */
22
+ get title(): string;
23
+ /**
24
+ * @deprecated Read `intent` instead.
25
+ *
26
+ * The return type is widened to include `'default'` because `default` is
27
+ * new vocabulary introduced alongside this getter's deprecation — it has
28
+ * no equivalent in the old `NotificationAppearance` names, so mapping it
29
+ * onto `'info'` here would silently lie about the notification's intent.
30
+ * Everything else keeps the old four-value shape.
31
+ */
32
+ get appearance(): 'default' | 'info' | 'success' | 'warning' | 'error';
33
+ /**
34
+ * Mutate the notification in place. Used by `promise()` so a settling
35
+ * promise swaps the content of the toast already on screen rather than
36
+ * replacing it with a new one.
37
+ */
38
+ update(changes: NotificationUpdate): void;
39
+ remove(): void;
40
+ }
@@ -0,0 +1,12 @@
1
+ export default class Timer {
2
+ remaining: number;
3
+ isRunning: boolean;
4
+ readonly onFinish: () => void;
5
+ private timer?;
6
+ private start;
7
+ constructor(duration: number, onFinish: () => void);
8
+ clear(): void;
9
+ pause(): void;
10
+ resume(): void;
11
+ private setup;
12
+ }
@@ -0,0 +1,126 @@
1
+ export type containerPlacement = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
2
+ export interface CustomAction {
3
+ /**
4
+ * The label of the action
5
+ */
6
+ label: string;
7
+ /**
8
+ * The function to be called when clicked
9
+ */
10
+ onClick: () => void;
11
+ }
12
+ export type NotificationIntent = 'default' | 'info' | 'success' | 'warning' | 'danger';
13
+ /**
14
+ * The deprecated intent names. `error` maps onto `danger`.
15
+ */
16
+ export type NotificationAppearance = 'info' | 'success' | 'warning' | 'error';
17
+ export interface NotificationContent {
18
+ /**
19
+ * The heading line of the notification.
20
+ */
21
+ title: string;
22
+ /**
23
+ * Optional supporting line rendered below the title.
24
+ */
25
+ description?: string;
26
+ }
27
+ export interface NotificationUpdate {
28
+ title?: string;
29
+ description?: string;
30
+ intent?: NotificationIntent;
31
+ allowClosing?: boolean;
32
+ isLoading?: boolean;
33
+ }
34
+ export interface NotificationOptions<TMetadata extends Record<string, unknown> = Record<string, unknown>> {
35
+ /**
36
+ * If set to false, the close button will not be displayed.
37
+ *
38
+ * @defaultValue true
39
+ */
40
+ allowClosing?: boolean;
41
+ /**
42
+ * Preserve the notification open, no auto-dismiss.
43
+ *
44
+ * @defaultValue false
45
+ */
46
+ preserve?: boolean;
47
+ /**
48
+ * Duration before the notification is auto-dismissed, in milliseconds.
49
+ *
50
+ * @defaultValue 5000
51
+ */
52
+ duration?: number;
53
+ transitionDuration?: number;
54
+ /**
55
+ * Supporting text rendered below the title.
56
+ *
57
+ * @defaultValue undefined
58
+ */
59
+ description?: string;
60
+ /**
61
+ * The intent of the notification.
62
+ *
63
+ * @defaultValue 'default'
64
+ */
65
+ intent?: NotificationIntent;
66
+ /**
67
+ * The appearance of the notification.
68
+ *
69
+ * @deprecated Use `intent` instead. `error` maps onto `danger`.
70
+ * @defaultValue undefined
71
+ */
72
+ appearance?: NotificationAppearance;
73
+ /**
74
+ * Hide the leading icon.
75
+ *
76
+ * @defaultValue false
77
+ */
78
+ hideIcon?: boolean;
79
+ /**
80
+ * Render a spinner in place of the intent icon. Set by `promise()`.
81
+ *
82
+ * @defaultValue false
83
+ */
84
+ isLoading?: boolean;
85
+ /**
86
+ * A list of custom actions
87
+ *
88
+ * @defaultValue undefined
89
+ */
90
+ customActions?: CustomAction[];
91
+ /**
92
+ * Additional metadata to attach to the notification
93
+ *
94
+ * @defaultValue undefined
95
+ */
96
+ metadata?: TMetadata;
97
+ }
98
+ /**
99
+ * A promise notification message: a fixed string, a fixed content object, or
100
+ * a function of the settled value.
101
+ */
102
+ export type PromiseMessage<T> = string | NotificationContent | ((value: T) => string | NotificationContent);
103
+ export interface PromiseNotificationOptions<T, TMetadata extends Record<string, unknown> = Record<string, unknown>> extends Omit<NotificationOptions<TMetadata>, 'isLoading'> {
104
+ /**
105
+ * Shown with a spinner while the promise is pending.
106
+ */
107
+ loading: string | NotificationContent;
108
+ /**
109
+ * Shown when the promise resolves.
110
+ */
111
+ success: PromiseMessage<T>;
112
+ /**
113
+ * Shown when the promise rejects.
114
+ */
115
+ error: PromiseMessage<unknown>;
116
+ }
117
+ export interface DefaultConfig extends NotificationOptions {
118
+ /**
119
+ * If set to true, we will preserve the notification, therefore skiping the timer.
120
+ * This is useful in tests because Ember will wait for any runloop to
121
+ * finish before proceeding.
122
+ *
123
+ * @defaultValue false
124
+ */
125
+ skipTimer?: boolean;
126
+ }
@@ -0,0 +1 @@
1
+ export * from './components/buttons';
@@ -0,0 +1 @@
1
+ export * from './components/collections';
@@ -0,0 +1,24 @@
1
+ import Component from '@glimmer/component';
2
+ import { type ButtonSignature } from './button';
3
+ import type { ButtonArgs } from './button';
4
+ import { type ToggleButtonSignature } from './toggle-button';
5
+ import type { ComponentLike, WithBoundArgs } from '@glint/template';
6
+ interface ButtonGroupArgs extends Pick<ButtonArgs, 'appearance' | 'intent' | 'size' | 'class'> {
7
+ }
8
+ interface ButtonGroupSignature {
9
+ Args: ButtonGroupArgs;
10
+ Blocks: {
11
+ default: [
12
+ {
13
+ Button: WithBoundArgs<ComponentLike<ButtonSignature>, 'isInGroup'>;
14
+ ToggleButton: WithBoundArgs<ComponentLike<ToggleButtonSignature>, 'isInGroup'>;
15
+ }
16
+ ];
17
+ };
18
+ Element: HTMLDivElement;
19
+ }
20
+ declare class ButtonGroup extends Component<ButtonGroupSignature> {
21
+ get classNames(): string;
22
+ }
23
+ export { ButtonGroup, type ButtonGroupSignature };
24
+ export default ButtonGroup;
@@ -0,0 +1,88 @@
1
+ import Component from '@glimmer/component';
2
+ import { type PressEvent } from '../../modifiers/press';
3
+ export interface ButtonArgs {
4
+ /**
5
+ * The HTML type of the button
6
+ *
7
+ * @defaultValue 'button'
8
+ */
9
+ type?: 'button' | 'submit' | 'reset';
10
+ /**
11
+ * The button appearance
12
+ *
13
+ * @defaultValue 'default'
14
+ */
15
+ appearance?: 'default' | 'soft' | 'outlined' | 'minimal' | 'tonal' | 'custom';
16
+ /**
17
+ * The intent of the button
18
+ */
19
+ intent?: 'default' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
20
+ /**
21
+ * The size of the button
22
+ */
23
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
24
+ /**
25
+ * Disable rendering the button element. It yields an object with classNames instead.
26
+ */
27
+ isRenderless?: boolean;
28
+ /**
29
+ * Custom class name, it will override the default ones using Tailwind Merge library.
30
+ */
31
+ class?: string;
32
+ /**
33
+ * If button is part of a group. Most of the time, this is automatically set
34
+ * when using the ButtonGroup component.
35
+ */
36
+ isInGroup?: boolean;
37
+ /**
38
+ * Renders a spinner in place of the icon and disables the button.
39
+ *
40
+ * @defaultValue false
41
+ */
42
+ isLoading?: boolean;
43
+ /**
44
+ * Which side the `icon` block — and the loading spinner that replaces it —
45
+ * sits on.
46
+ *
47
+ * @defaultValue 'start'
48
+ */
49
+ iconPlacement?: 'start' | 'end';
50
+ /**
51
+ * Callback for when the button is pressed.
52
+ */
53
+ onPress?: (event: PressEvent) => void;
54
+ }
55
+ interface ButtonSignature {
56
+ Args: ButtonArgs;
57
+ Blocks: {
58
+ default: [{
59
+ classNames: string;
60
+ isLoading: boolean;
61
+ }];
62
+ icon?: [];
63
+ loading?: [];
64
+ };
65
+ Element: HTMLButtonElement;
66
+ }
67
+ declare class Button extends Component<ButtonSignature> {
68
+ isPressed: boolean;
69
+ get type(): string;
70
+ get isLoading(): boolean;
71
+ get isIconAtEnd(): boolean;
72
+ get isIconAtStart(): boolean;
73
+ get classNames(): string;
74
+ get spinnerClassNames(): string;
75
+ /**
76
+ * The object yielded to the default block (and, when `@isRenderless`, in
77
+ * place of rendering). Hoisted so the shape is written once — it's part of
78
+ * this component's public contract, asserted on directly by tests.
79
+ */
80
+ get yieldedHash(): {
81
+ classNames: string;
82
+ isLoading: boolean;
83
+ };
84
+ handlePressChange: (isPressed: boolean) => void;
85
+ onPress: (event: PressEvent) => void;
86
+ }
87
+ export { Button, type ButtonSignature };
88
+ export default Button;
@@ -0,0 +1,85 @@
1
+ import Component from '@glimmer/component';
2
+ interface ChipSignature {
3
+ Args: {
4
+ /**
5
+ * The chip appearance
6
+ *
7
+ * @defaultValue 'default'
8
+ */
9
+ appearance?: 'default' | 'outlined' | 'faded';
10
+ /**
11
+ * The intent of the chip, which drives its color
12
+ *
13
+ * @defaultValue 'default'
14
+ */
15
+ intent?: 'default' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'warning' | 'danger';
16
+ /**
17
+ * The size of the chip
18
+ *
19
+ * @defaultValue 'md'
20
+ */
21
+ size?: 'sm' | 'md' | 'lg';
22
+ /**
23
+ * The border radius of the chip
24
+ *
25
+ * @defaultValue 'full'
26
+ */
27
+ radius?: 'none' | 'sm' | 'lg' | 'full';
28
+ /**
29
+ * Adds a dot before the content, colored by `@intent`. On the `default`
30
+ * appearance the dot takes the chip's text color, since the chip's
31
+ * background is already the intent color.
32
+ *
33
+ * @defaultValue false
34
+ */
35
+ withDot?: boolean;
36
+ /**
37
+ * Function to be called when clicking on the close button.
38
+ * If you pass this argument, the close button will be visible.
39
+ */
40
+ onClose?: () => void;
41
+ /**
42
+ * The accessible name of the close button. Every close button would
43
+ * otherwise be announced as just "Close", which does not say *what* is
44
+ * being removed — worth setting when several chips sit together.
45
+ *
46
+ * @defaultValue 'Close'
47
+ */
48
+ closeButtonTitle?: string;
49
+ /**
50
+ * `tabindex` for the close button.
51
+ *
52
+ * Set to `-1` when chips sit inside another control (a multi-select field,
53
+ * say) and the close button should stay a pointer affordance: every chip
54
+ * would otherwise cost a Tab stop before the control itself is reached.
55
+ * Whoever does this owes keyboard users another way to remove a chip.
56
+ *
57
+ * @defaultValue undefined (the close button is a normal tab stop)
58
+ */
59
+ closeButtonTabIndex?: number | string;
60
+ /**
61
+ * Dims the chip and disables its close button, if any.
62
+ *
63
+ * @defaultValue false
64
+ */
65
+ isDisabled?: boolean;
66
+ /**
67
+ * Custom class name, it will override the default ones using Tailwind Merge library.
68
+ */
69
+ class?: string;
70
+ };
71
+ Blocks: {
72
+ default: [];
73
+ };
74
+ Element: HTMLDivElement;
75
+ }
76
+ declare class Chip extends Component<ChipSignature> {
77
+ get classNames(): {
78
+ base: string;
79
+ content: string;
80
+ dot: string;
81
+ closeButton: string;
82
+ };
83
+ }
84
+ export { Chip, type ChipSignature };
85
+ export default Chip;
@@ -0,0 +1,55 @@
1
+ import Component from '@glimmer/component';
2
+ import { type PressEvent } from '../../modifiers/press';
3
+ import { type CloseButtonVariants } from '@frontile/theme';
4
+ import type Owner from '@ember/owner';
5
+ interface CloseButtonSignature {
6
+ Args: {
7
+ /**
8
+ * The title of the close button
9
+ *
10
+ * @defaultValue 'Close'
11
+ */
12
+ title?: string;
13
+ /**
14
+ * The icon size
15
+ *
16
+ * @defaultValue 'lg'
17
+ */
18
+ size?: CloseButtonVariants['size'];
19
+ /**
20
+ * @defaultValue 'transparent'
21
+ */
22
+ variant?: CloseButtonVariants['variant'];
23
+ /**
24
+ * The function to call when button is pressed
25
+ */
26
+ onPress?: (event: PressEvent) => void;
27
+ /**
28
+ * Deprecated: The function to call when button is clicked
29
+ *
30
+ * @deprecated Use onPress instead for better cross-platform support
31
+ */
32
+ onClick?: (event: Event) => void;
33
+ /**
34
+ * Additional class for close button element
35
+ */
36
+ class?: string;
37
+ };
38
+ Blocks: {
39
+ default: [string | null];
40
+ };
41
+ Element: HTMLButtonElement;
42
+ }
43
+ declare class CloseButton extends Component<CloseButtonSignature> {
44
+ isPressed: boolean;
45
+ constructor(owner: Owner, args: CloseButtonSignature['Args']);
46
+ get classes(): {
47
+ base: string;
48
+ icon: string;
49
+ };
50
+ handlePressChange: (isPressed: boolean) => void;
51
+ handlePress(event: PressEvent): void;
52
+ handleClick(event: Event): void;
53
+ }
54
+ export { CloseButton, type CloseButtonSignature };
55
+ export default CloseButton;
@@ -0,0 +1,6 @@
1
+ export * from './button';
2
+ export * from './close-button';
3
+ export * from './toggle-button';
4
+ export * from './button-group';
5
+ export * from './chip';
6
+ export * from './segmented-control';