@ember-joinery/primitives 0.0.0-stage → 1.0.1

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 (485) hide show
  1. package/CHANGELOG.md +472 -0
  2. package/LICENSE.md +9 -0
  3. package/NOTICE +532 -0
  4. package/README.md +11 -2
  5. package/addon-main.cjs +4 -0
  6. package/declarations/-private/combobox-list.d.ts +59 -0
  7. package/declarations/-private/combobox-list.d.ts.map +1 -0
  8. package/declarations/-private/command-score.d.ts +33 -0
  9. package/declarations/-private/command-score.d.ts.map +1 -0
  10. package/declarations/-private/delay-group.d.ts +47 -0
  11. package/declarations/-private/delay-group.d.ts.map +1 -0
  12. package/declarations/-private/dialog.d.ts +180 -0
  13. package/declarations/-private/dialog.d.ts.map +1 -0
  14. package/declarations/-private/form-control.d.ts +70 -0
  15. package/declarations/-private/form-control.d.ts.map +1 -0
  16. package/declarations/-private/form-data.d.ts +14 -0
  17. package/declarations/-private/form-data.d.ts.map +1 -0
  18. package/declarations/-private/hover-intent.d.ts +48 -0
  19. package/declarations/-private/hover-intent.d.ts.map +1 -0
  20. package/declarations/-private/image-loading.d.ts +77 -0
  21. package/declarations/-private/image-loading.d.ts.map +1 -0
  22. package/declarations/-private/indicator.d.ts +27 -0
  23. package/declarations/-private/indicator.d.ts.map +1 -0
  24. package/declarations/-private/instances.d.ts +11 -0
  25. package/declarations/-private/instances.d.ts.map +1 -0
  26. package/declarations/-private/layout-styles.d.ts +34 -0
  27. package/declarations/-private/layout-styles.d.ts.map +1 -0
  28. package/declarations/-private/menu.d.ts +616 -0
  29. package/declarations/-private/menu.d.ts.map +1 -0
  30. package/declarations/-private/observers.d.ts +35 -0
  31. package/declarations/-private/observers.d.ts.map +1 -0
  32. package/declarations/-private/popper.d.ts +149 -0
  33. package/declarations/-private/popper.d.ts.map +1 -0
  34. package/declarations/-private/presence-chart.d.ts +39 -0
  35. package/declarations/-private/presence-chart.d.ts.map +1 -0
  36. package/declarations/-private/promise-state.d.ts +41 -0
  37. package/declarations/-private/promise-state.d.ts.map +1 -0
  38. package/declarations/-private/scroll-end.d.ts +16 -0
  39. package/declarations/-private/scroll-end.d.ts.map +1 -0
  40. package/declarations/-private/scroll-visibility.d.ts +68 -0
  41. package/declarations/-private/scroll-visibility.d.ts.map +1 -0
  42. package/declarations/-private/toast.d.ts +119 -0
  43. package/declarations/-private/toast.d.ts.map +1 -0
  44. package/declarations/-private/typeahead-search.d.ts +29 -0
  45. package/declarations/-private/typeahead-search.d.ts.map +1 -0
  46. package/declarations/accordion.d.ts +284 -0
  47. package/declarations/accordion.d.ts.map +1 -0
  48. package/declarations/alert-dialog.d.ts +80 -0
  49. package/declarations/alert-dialog.d.ts.map +1 -0
  50. package/declarations/anchor/component.d.ts +63 -0
  51. package/declarations/anchor/component.d.ts.map +1 -0
  52. package/declarations/anchor/index.d.ts +7 -0
  53. package/declarations/anchor/index.d.ts.map +1 -0
  54. package/declarations/anchor/middleware.d.ts +46 -0
  55. package/declarations/anchor/middleware.d.ts.map +1 -0
  56. package/declarations/anchor/modifier.d.ts +34 -0
  57. package/declarations/anchor/modifier.d.ts.map +1 -0
  58. package/declarations/anchor/options.d.ts +112 -0
  59. package/declarations/anchor/options.d.ts.map +1 -0
  60. package/declarations/anchor/position.d.ts +36 -0
  61. package/declarations/anchor/position.d.ts.map +1 -0
  62. package/declarations/anchor.d.ts +2 -0
  63. package/declarations/as.d.ts +33 -0
  64. package/declarations/as.d.ts.map +1 -0
  65. package/declarations/aspect-ratio.d.ts +34 -0
  66. package/declarations/aspect-ratio.d.ts.map +1 -0
  67. package/declarations/avatar.d.ts +178 -0
  68. package/declarations/avatar.d.ts.map +1 -0
  69. package/declarations/body-class.d.ts +30 -0
  70. package/declarations/body-class.d.ts.map +1 -0
  71. package/declarations/breadcrumb.d.ts +64 -0
  72. package/declarations/breadcrumb.d.ts.map +1 -0
  73. package/declarations/calendar/dates.d.ts +142 -0
  74. package/declarations/calendar/dates.d.ts.map +1 -0
  75. package/declarations/calendar/index.d.ts +59 -0
  76. package/declarations/calendar/index.d.ts.map +1 -0
  77. package/declarations/calendar/state.d.ts +415 -0
  78. package/declarations/calendar/state.d.ts.map +1 -0
  79. package/declarations/calendar.d.ts +3 -0
  80. package/declarations/checkbox.d.ts +71 -0
  81. package/declarations/checkbox.d.ts.map +1 -0
  82. package/declarations/collapsible.d.ts +216 -0
  83. package/declarations/collapsible.d.ts.map +1 -0
  84. package/declarations/color-scheme.d.ts +115 -0
  85. package/declarations/color-scheme.d.ts.map +1 -0
  86. package/declarations/combobox.d.ts +569 -0
  87. package/declarations/combobox.d.ts.map +1 -0
  88. package/declarations/command.d.ts +410 -0
  89. package/declarations/command.d.ts.map +1 -0
  90. package/declarations/context-menu.d.ts +155 -0
  91. package/declarations/context-menu.d.ts.map +1 -0
  92. package/declarations/controllable-state.d.ts +85 -0
  93. package/declarations/controllable-state.d.ts.map +1 -0
  94. package/declarations/dialog.d.ts +80 -0
  95. package/declarations/dialog.d.ts.map +1 -0
  96. package/declarations/direction.d.ts +55 -0
  97. package/declarations/direction.d.ts.map +1 -0
  98. package/declarations/dismiss.d.ts +111 -0
  99. package/declarations/dismiss.d.ts.map +1 -0
  100. package/declarations/dom-context.d.ts +74 -0
  101. package/declarations/dom-context.d.ts.map +1 -0
  102. package/declarations/drawer/controller.d.ts +174 -0
  103. package/declarations/drawer/controller.d.ts.map +1 -0
  104. package/declarations/drawer/index.d.ts +105 -0
  105. package/declarations/drawer/index.d.ts.map +1 -0
  106. package/declarations/drawer/machine.d.ts +139 -0
  107. package/declarations/drawer/machine.d.ts.map +1 -0
  108. package/declarations/drawer/parts.d.ts +85 -0
  109. package/declarations/drawer/parts.d.ts.map +1 -0
  110. package/declarations/drawer.d.ts +2 -0
  111. package/declarations/dropdown-menu.d.ts +169 -0
  112. package/declarations/dropdown-menu.d.ts.map +1 -0
  113. package/declarations/external-link.d.ts +26 -0
  114. package/declarations/external-link.d.ts.map +1 -0
  115. package/declarations/file-drop.d.ts +119 -0
  116. package/declarations/file-drop.d.ts.map +1 -0
  117. package/declarations/focus-scope.d.ts +105 -0
  118. package/declarations/focus-scope.d.ts.map +1 -0
  119. package/declarations/focus.d.ts +114 -0
  120. package/declarations/focus.d.ts.map +1 -0
  121. package/declarations/head.d.ts +20 -0
  122. package/declarations/head.d.ts.map +1 -0
  123. package/declarations/heading.d.ts +59 -0
  124. package/declarations/heading.d.ts.map +1 -0
  125. package/declarations/hero.d.ts +32 -0
  126. package/declarations/hero.d.ts.map +1 -0
  127. package/declarations/hide-others.d.ts +35 -0
  128. package/declarations/hide-others.d.ts.map +1 -0
  129. package/declarations/hover-card.d.ts +148 -0
  130. package/declarations/hover-card.d.ts.map +1 -0
  131. package/declarations/i18n.d.ts +47 -0
  132. package/declarations/i18n.d.ts.map +1 -0
  133. package/declarations/id.d.ts +15 -0
  134. package/declarations/id.d.ts.map +1 -0
  135. package/declarations/iframe.d.ts +12 -0
  136. package/declarations/iframe.d.ts.map +1 -0
  137. package/declarations/incremental-each.d.ts +81 -0
  138. package/declarations/incremental-each.d.ts.map +1 -0
  139. package/declarations/index.d.ts +108 -0
  140. package/declarations/index.d.ts.map +1 -0
  141. package/declarations/input-otp.d.ts +201 -0
  142. package/declarations/input-otp.d.ts.map +1 -0
  143. package/declarations/keys.d.ts +50 -0
  144. package/declarations/keys.d.ts.map +1 -0
  145. package/declarations/label.d.ts +36 -0
  146. package/declarations/label.d.ts.map +1 -0
  147. package/declarations/layer.d.ts +56 -0
  148. package/declarations/layer.d.ts.map +1 -0
  149. package/declarations/link-helper.d.ts +73 -0
  150. package/declarations/link-helper.d.ts.map +1 -0
  151. package/declarations/link.d.ts +60 -0
  152. package/declarations/link.d.ts.map +1 -0
  153. package/declarations/load.d.ts +47 -0
  154. package/declarations/load.d.ts.map +1 -0
  155. package/declarations/menubar.d.ts +231 -0
  156. package/declarations/menubar.d.ts.map +1 -0
  157. package/declarations/message-scroller/components.d.ts +229 -0
  158. package/declarations/message-scroller/components.d.ts.map +1 -0
  159. package/declarations/message-scroller/geometry.d.ts +95 -0
  160. package/declarations/message-scroller/geometry.d.ts.map +1 -0
  161. package/declarations/message-scroller/index.d.ts +4 -0
  162. package/declarations/message-scroller/index.d.ts.map +1 -0
  163. package/declarations/message-scroller/state.d.ts +124 -0
  164. package/declarations/message-scroller/state.d.ts.map +1 -0
  165. package/declarations/message-scroller.d.ts +2 -0
  166. package/declarations/messages.d.ts +166 -0
  167. package/declarations/messages.d.ts.map +1 -0
  168. package/declarations/narrowing.d.ts +24 -0
  169. package/declarations/narrowing.d.ts.map +1 -0
  170. package/declarations/native-form.d.ts +56 -0
  171. package/declarations/native-form.d.ts.map +1 -0
  172. package/declarations/native-value.d.ts +47 -0
  173. package/declarations/native-value.d.ts.map +1 -0
  174. package/declarations/navigation-menu.d.ts +406 -0
  175. package/declarations/navigation-menu.d.ts.map +1 -0
  176. package/declarations/on-resize.d.ts +32 -0
  177. package/declarations/on-resize.d.ts.map +1 -0
  178. package/declarations/part.d.ts +99 -0
  179. package/declarations/part.d.ts.map +1 -0
  180. package/declarations/popover.d.ts +236 -0
  181. package/declarations/popover.d.ts.map +1 -0
  182. package/declarations/portal/index.d.ts +3 -0
  183. package/declarations/portal/index.d.ts.map +1 -0
  184. package/declarations/portal/portal.d.ts +46 -0
  185. package/declarations/portal/portal.d.ts.map +1 -0
  186. package/declarations/portal/targets.d.ts +40 -0
  187. package/declarations/portal/targets.d.ts.map +1 -0
  188. package/declarations/portal.d.ts +2 -0
  189. package/declarations/presence.d.ts +80 -0
  190. package/declarations/presence.d.ts.map +1 -0
  191. package/declarations/progress.d.ts +98 -0
  192. package/declarations/progress.d.ts.map +1 -0
  193. package/declarations/proper-links.d.ts +69 -0
  194. package/declarations/proper-links.d.ts.map +1 -0
  195. package/declarations/qp.d.ts +55 -0
  196. package/declarations/qp.d.ts.map +1 -0
  197. package/declarations/questionnaire/components.d.ts +348 -0
  198. package/declarations/questionnaire/components.d.ts.map +1 -0
  199. package/declarations/questionnaire/index.d.ts +4 -0
  200. package/declarations/questionnaire/index.d.ts.map +1 -0
  201. package/declarations/questionnaire/state.d.ts +400 -0
  202. package/declarations/questionnaire/state.d.ts.map +1 -0
  203. package/declarations/questionnaire/utils.d.ts +65 -0
  204. package/declarations/questionnaire/utils.d.ts.map +1 -0
  205. package/declarations/questionnaire.d.ts +2 -0
  206. package/declarations/radio-group.d.ts +115 -0
  207. package/declarations/radio-group.d.ts.map +1 -0
  208. package/declarations/rating.d.ts +214 -0
  209. package/declarations/rating.d.ts.map +1 -0
  210. package/declarations/resizable/components.d.ts +107 -0
  211. package/declarations/resizable/components.d.ts.map +1 -0
  212. package/declarations/resizable/index.d.ts +4 -0
  213. package/declarations/resizable/index.d.ts.map +1 -0
  214. package/declarations/resizable/layout.d.ts +93 -0
  215. package/declarations/resizable/layout.d.ts.map +1 -0
  216. package/declarations/resizable/state.d.ts +211 -0
  217. package/declarations/resizable/state.d.ts.map +1 -0
  218. package/declarations/resizable.d.ts +2 -0
  219. package/declarations/resize-observer.d.ts +40 -0
  220. package/declarations/resize-observer.d.ts.map +1 -0
  221. package/declarations/roving-focus.d.ts +204 -0
  222. package/declarations/roving-focus.d.ts.map +1 -0
  223. package/declarations/scroll-area/components.d.ts +125 -0
  224. package/declarations/scroll-area/components.d.ts.map +1 -0
  225. package/declarations/scroll-area/index.d.ts +3 -0
  226. package/declarations/scroll-area/index.d.ts.map +1 -0
  227. package/declarations/scroll-area/state.d.ts +147 -0
  228. package/declarations/scroll-area/state.d.ts.map +1 -0
  229. package/declarations/scroll-area.d.ts +2 -0
  230. package/declarations/scroll-lock.d.ts +69 -0
  231. package/declarations/scroll-lock.d.ts.map +1 -0
  232. package/declarations/scroller.d.ts +71 -0
  233. package/declarations/scroller.d.ts.map +1 -0
  234. package/declarations/select.d.ts +459 -0
  235. package/declarations/select.d.ts.map +1 -0
  236. package/declarations/separator.d.ts +71 -0
  237. package/declarations/separator.d.ts.map +1 -0
  238. package/declarations/service.d.ts +83 -0
  239. package/declarations/service.d.ts.map +1 -0
  240. package/declarations/shadowed.d.ts +63 -0
  241. package/declarations/shadowed.d.ts.map +1 -0
  242. package/declarations/slider.d.ts +283 -0
  243. package/declarations/slider.d.ts.map +1 -0
  244. package/declarations/sticky-footer.d.ts +43 -0
  245. package/declarations/sticky-footer.d.ts.map +1 -0
  246. package/declarations/store.d.ts +47 -0
  247. package/declarations/store.d.ts.map +1 -0
  248. package/declarations/switch.d.ts +76 -0
  249. package/declarations/switch.d.ts.map +1 -0
  250. package/declarations/tabs.d.ts +250 -0
  251. package/declarations/tabs.d.ts.map +1 -0
  252. package/declarations/toast/icons.d.ts +29 -0
  253. package/declarations/toast/icons.d.ts.map +1 -0
  254. package/declarations/toast/index.d.ts +4 -0
  255. package/declarations/toast/index.d.ts.map +1 -0
  256. package/declarations/toast/item.d.ts +162 -0
  257. package/declarations/toast/item.d.ts.map +1 -0
  258. package/declarations/toast/state.d.ts +276 -0
  259. package/declarations/toast/state.d.ts.map +1 -0
  260. package/declarations/toast/styles.d.ts +20 -0
  261. package/declarations/toast/styles.d.ts.map +1 -0
  262. package/declarations/toast/toaster.d.ts +173 -0
  263. package/declarations/toast/toaster.d.ts.map +1 -0
  264. package/declarations/toast.d.ts +2 -0
  265. package/declarations/toggle-group.d.ts +161 -0
  266. package/declarations/toggle-group.d.ts.map +1 -0
  267. package/declarations/toggle.d.ts +70 -0
  268. package/declarations/toggle.d.ts.map +1 -0
  269. package/declarations/tooltip.d.ts +227 -0
  270. package/declarations/tooltip.d.ts.map +1 -0
  271. package/declarations/typeahead.d.ts +97 -0
  272. package/declarations/typeahead.d.ts.map +1 -0
  273. package/declarations/viewport.d.ts +109 -0
  274. package/declarations/viewport.d.ts.map +1 -0
  275. package/declarations/visually-hidden.d.ts +42 -0
  276. package/declarations/visually-hidden.d.ts.map +1 -0
  277. package/declarations/zoetrope.d.ts +120 -0
  278. package/declarations/zoetrope.d.ts.map +1 -0
  279. package/dist/accordion.js +367 -0
  280. package/dist/accordion.js.map +1 -0
  281. package/dist/alert-dialog.js +122 -0
  282. package/dist/alert-dialog.js.map +1 -0
  283. package/dist/anchor.js +2 -0
  284. package/dist/anchor.js.map +1 -0
  285. package/dist/as.js +60 -0
  286. package/dist/as.js.map +1 -0
  287. package/dist/aspect-ratio.js +59 -0
  288. package/dist/aspect-ratio.js.map +1 -0
  289. package/dist/avatar.js +464 -0
  290. package/dist/avatar.js.map +1 -0
  291. package/dist/body-class.js +57 -0
  292. package/dist/body-class.js.map +1 -0
  293. package/dist/breadcrumb.js +59 -0
  294. package/dist/breadcrumb.js.map +1 -0
  295. package/dist/calendar.js +1494 -0
  296. package/dist/calendar.js.map +1 -0
  297. package/dist/checkbox.js +81 -0
  298. package/dist/checkbox.js.map +1 -0
  299. package/dist/collapsible.js +255 -0
  300. package/dist/collapsible.js.map +1 -0
  301. package/dist/color-scheme.js +306 -0
  302. package/dist/color-scheme.js.map +1 -0
  303. package/dist/combobox.js +1413 -0
  304. package/dist/combobox.js.map +1 -0
  305. package/dist/command.js +1054 -0
  306. package/dist/command.js.map +1 -0
  307. package/dist/component-DqLt83fo.js +886 -0
  308. package/dist/component-DqLt83fo.js.map +1 -0
  309. package/dist/components-CWfg0cFs.js +1745 -0
  310. package/dist/components-CWfg0cFs.js.map +1 -0
  311. package/dist/components-DBWszEI3.js +1285 -0
  312. package/dist/components-DBWszEI3.js.map +1 -0
  313. package/dist/components-DI8Azu05.js +1542 -0
  314. package/dist/components-DI8Azu05.js.map +1 -0
  315. package/dist/components-F0Ini448.js +875 -0
  316. package/dist/components-F0Ini448.js.map +1 -0
  317. package/dist/context-menu.js +207 -0
  318. package/dist/context-menu.js.map +1 -0
  319. package/dist/controllable-state.js +134 -0
  320. package/dist/controllable-state.js.map +1 -0
  321. package/dist/delay-group-B1K03gBL.js +75 -0
  322. package/dist/delay-group-B1K03gBL.js.map +1 -0
  323. package/dist/dialog-3gfz_8NA.js +349 -0
  324. package/dist/dialog-3gfz_8NA.js.map +1 -0
  325. package/dist/dialog.js +57 -0
  326. package/dist/dialog.js.map +1 -0
  327. package/dist/direction.js +75 -0
  328. package/dist/direction.js.map +1 -0
  329. package/dist/dismiss.js +329 -0
  330. package/dist/dismiss.js.map +1 -0
  331. package/dist/dom-context.js +104 -0
  332. package/dist/dom-context.js.map +1 -0
  333. package/dist/drawer.js +1456 -0
  334. package/dist/drawer.js.map +1 -0
  335. package/dist/dropdown-menu.js +201 -0
  336. package/dist/dropdown-menu.js.map +1 -0
  337. package/dist/external-link.js +21 -0
  338. package/dist/external-link.js.map +1 -0
  339. package/dist/file-drop.js +183 -0
  340. package/dist/file-drop.js.map +1 -0
  341. package/dist/focus-scope.js +292 -0
  342. package/dist/focus-scope.js.map +1 -0
  343. package/dist/focus.js +307 -0
  344. package/dist/focus.js.map +1 -0
  345. package/dist/form-control-Ca_KHSKK.js +177 -0
  346. package/dist/form-control-Ca_KHSKK.js.map +1 -0
  347. package/dist/head.js +25 -0
  348. package/dist/head.js.map +1 -0
  349. package/dist/heading.js +152 -0
  350. package/dist/heading.js.map +1 -0
  351. package/dist/hero.js +36 -0
  352. package/dist/hero.js.map +1 -0
  353. package/dist/hide-others.js +108 -0
  354. package/dist/hide-others.js.map +1 -0
  355. package/dist/hover-card.js +246 -0
  356. package/dist/hover-card.js.map +1 -0
  357. package/dist/hover-intent-Bxb83fgX.js +92 -0
  358. package/dist/hover-intent-Bxb83fgX.js.map +1 -0
  359. package/dist/i18n.js +72 -0
  360. package/dist/i18n.js.map +1 -0
  361. package/dist/id.js +24 -0
  362. package/dist/id.js.map +1 -0
  363. package/dist/iframe.js +19 -0
  364. package/dist/iframe.js.map +1 -0
  365. package/dist/incremental-each.js +181 -0
  366. package/dist/incremental-each.js.map +1 -0
  367. package/dist/index.js +87 -0
  368. package/dist/index.js.map +1 -0
  369. package/dist/indicator-sYuRuFJA.js +26 -0
  370. package/dist/indicator-sYuRuFJA.js.map +1 -0
  371. package/dist/input-otp.js +611 -0
  372. package/dist/input-otp.js.map +1 -0
  373. package/dist/keys.js +65 -0
  374. package/dist/keys.js.map +1 -0
  375. package/dist/label.js +41 -0
  376. package/dist/label.js.map +1 -0
  377. package/dist/layer.js +157 -0
  378. package/dist/layer.js.map +1 -0
  379. package/dist/layout-styles-DY86so8a.js +81 -0
  380. package/dist/layout-styles-DY86so8a.js.map +1 -0
  381. package/dist/link-helper.js +122 -0
  382. package/dist/link-helper.js.map +1 -0
  383. package/dist/link.js +39 -0
  384. package/dist/link.js.map +1 -0
  385. package/dist/load.js +54 -0
  386. package/dist/load.js.map +1 -0
  387. package/dist/menu-Da1LFCet.js +1109 -0
  388. package/dist/menu-Da1LFCet.js.map +1 -0
  389. package/dist/menubar.js +357 -0
  390. package/dist/menubar.js.map +1 -0
  391. package/dist/message-scroller.js +2 -0
  392. package/dist/message-scroller.js.map +1 -0
  393. package/dist/messages.js +168 -0
  394. package/dist/messages.js.map +1 -0
  395. package/dist/narrowing.js +29 -0
  396. package/dist/narrowing.js.map +1 -0
  397. package/dist/native-form.js +134 -0
  398. package/dist/native-form.js.map +1 -0
  399. package/dist/native-value.js +125 -0
  400. package/dist/native-value.js.map +1 -0
  401. package/dist/navigation-menu.js +872 -0
  402. package/dist/navigation-menu.js.map +1 -0
  403. package/dist/observers-aItWe029.js +113 -0
  404. package/dist/observers-aItWe029.js.map +1 -0
  405. package/dist/on-resize.js +47 -0
  406. package/dist/on-resize.js.map +1 -0
  407. package/dist/part.js +291 -0
  408. package/dist/part.js.map +1 -0
  409. package/dist/popover.js +419 -0
  410. package/dist/popover.js.map +1 -0
  411. package/dist/popper-BbTzV8dP.js +323 -0
  412. package/dist/popper-BbTzV8dP.js.map +1 -0
  413. package/dist/portal-U554WDI9.js +214 -0
  414. package/dist/portal-U554WDI9.js.map +1 -0
  415. package/dist/portal.js +2 -0
  416. package/dist/portal.js.map +1 -0
  417. package/dist/presence.js +243 -0
  418. package/dist/presence.js.map +1 -0
  419. package/dist/progress.js +106 -0
  420. package/dist/progress.js.map +1 -0
  421. package/dist/promise-state-BMi2zVoT.js +91 -0
  422. package/dist/promise-state-BMi2zVoT.js.map +1 -0
  423. package/dist/proper-links.js +136 -0
  424. package/dist/proper-links.js.map +1 -0
  425. package/dist/qp.js +77 -0
  426. package/dist/qp.js.map +1 -0
  427. package/dist/questionnaire.js +2 -0
  428. package/dist/questionnaire.js.map +1 -0
  429. package/dist/radio-group.js +149 -0
  430. package/dist/radio-group.js.map +1 -0
  431. package/dist/rating.js +261 -0
  432. package/dist/rating.js.map +1 -0
  433. package/dist/resizable.js +2 -0
  434. package/dist/resizable.js.map +1 -0
  435. package/dist/resize-observer.js +85 -0
  436. package/dist/resize-observer.js.map +1 -0
  437. package/dist/roving-focus.js +355 -0
  438. package/dist/roving-focus.js.map +1 -0
  439. package/dist/scroll-area.js +2 -0
  440. package/dist/scroll-area.js.map +1 -0
  441. package/dist/scroll-end-Cer8JSIB.js +87 -0
  442. package/dist/scroll-end-Cer8JSIB.js.map +1 -0
  443. package/dist/scroll-lock.js +267 -0
  444. package/dist/scroll-lock.js.map +1 -0
  445. package/dist/scroller.js +117 -0
  446. package/dist/scroller.js.map +1 -0
  447. package/dist/select.js +1223 -0
  448. package/dist/select.js.map +1 -0
  449. package/dist/separator.js +80 -0
  450. package/dist/separator.js.map +1 -0
  451. package/dist/service.js +160 -0
  452. package/dist/service.js.map +1 -0
  453. package/dist/shadowed.js +70 -0
  454. package/dist/shadowed.js.map +1 -0
  455. package/dist/slider.js +586 -0
  456. package/dist/slider.js.map +1 -0
  457. package/dist/sticky-footer.js +40 -0
  458. package/dist/sticky-footer.js.map +1 -0
  459. package/dist/store-BjiAd-KP.js +93 -0
  460. package/dist/store-BjiAd-KP.js.map +1 -0
  461. package/dist/store.js +4 -0
  462. package/dist/store.js.map +1 -0
  463. package/dist/switch.js +58 -0
  464. package/dist/switch.js.map +1 -0
  465. package/dist/tabs.js +458 -0
  466. package/dist/tabs.js.map +1 -0
  467. package/dist/toast.js +2 -0
  468. package/dist/toast.js.map +1 -0
  469. package/dist/toaster-DwprFZ1J.js +1518 -0
  470. package/dist/toaster-DwprFZ1J.js.map +1 -0
  471. package/dist/toggle-group.js +221 -0
  472. package/dist/toggle-group.js.map +1 -0
  473. package/dist/toggle.js +78 -0
  474. package/dist/toggle.js.map +1 -0
  475. package/dist/tooltip.js +422 -0
  476. package/dist/tooltip.js.map +1 -0
  477. package/dist/typeahead.js +233 -0
  478. package/dist/typeahead.js.map +1 -0
  479. package/dist/viewport.js +138 -0
  480. package/dist/viewport.js.map +1 -0
  481. package/dist/visually-hidden.js +49 -0
  482. package/dist/visually-hidden.js.map +1 -0
  483. package/dist/zoetrope.js +336 -0
  484. package/dist/zoetrope.js.map +1 -0
  485. package/package.json +101 -3
@@ -0,0 +1,119 @@
1
+ import Component from '@glimmer/component';
2
+ import type Owner from '@ember/owner';
3
+ /**
4
+ * Whether a file matches an `accept` list, as `<input type="file">` reads it. The file picker
5
+ * filters by `accept` itself, but a drop doesn't, so dropped files need this check.
6
+ */
7
+ export declare function accepts(file: File, accept: string | undefined): boolean;
8
+ /**
9
+ * Whether a drag carries files. A drag can carry text or a link instead, and during the drag
10
+ * only the types are readable, not the files.
11
+ */
12
+ export declare function hasFiles(event: DragEvent): boolean;
13
+ /**
14
+ * The files of a pick or a drop that match `accept`, and only the first of them unless
15
+ * `multiple` is set.
16
+ */
17
+ export declare function filesFrom(list: FileList | null | undefined, accept: string | undefined, multiple: boolean | undefined): File[];
18
+ /**
19
+ * Whether files are dragged over an element. `dragenter` and `dragleave` fire for every child
20
+ * the pointer crosses, so a single flag would flicker; the depth counts the enters that haven't
21
+ * left yet.
22
+ */
23
+ export declare class DragState {
24
+ #private;
25
+ isDragging: boolean;
26
+ enter(event: DragEvent): void;
27
+ leave(event: DragEvent): void;
28
+ end(): void;
29
+ }
30
+ /** What both `<FileDrop>` and `<DocumentFileDrop>` take. */
31
+ export interface FileDropArgs {
32
+ /** Called with the files that match `@accept`. It isn't called when no file matches. */
33
+ onFiles: (files: File[]) => void;
34
+ /**
35
+ * Which files to take, as `<input type="file">`'s `accept` reads it, such as
36
+ * `"video/*,.mkv"`. The file picker shows only these, and a drop of others does nothing.
37
+ */
38
+ accept?: string;
39
+ /** Whether to take more than one file. Without it, only the first that matches. */
40
+ multiple?: boolean;
41
+ }
42
+ export interface FileDropSignature {
43
+ Args: FileDropArgs & {
44
+ /** Whether it takes no files: its input is disabled, and drops are ignored. */
45
+ disabled?: boolean;
46
+ /** Its name, for `FileDropHarness` (`data-test-jn-name`). */
47
+ name?: string;
48
+ };
49
+ Blocks: {
50
+ default: [
51
+ zone: {
52
+ /** Whether files are dragged over it. */
53
+ isDragging: boolean;
54
+ }
55
+ ];
56
+ };
57
+ /**
58
+ * A `<label>` for a visually hidden `<input type="file">`, so a press on the zone, or Enter
59
+ * or Space on its input, opens the file picker. It has `data-dragging` while files are
60
+ * dragged over it.
61
+ */
62
+ Element: HTMLLabelElement;
63
+ }
64
+ /**
65
+ * A zone to drop files on, or to press to pick them: ember-primitives' FileDrop, headless.
66
+ *
67
+ * <FileDrop @accept="video/*" @onFiles={{this.load}} as |zone|>
68
+ * {{if zone.isDragging "Let go to add it" "Drop a video here, or click to choose one"}}
69
+ * </FileDrop>
70
+ *
71
+ * Its text names its input, which stays in the tab order; show the zone's focus with
72
+ * `:focus-within`, because the focused input is hidden.
73
+ */
74
+ export declare class FileDrop extends Component<FileDropSignature> {
75
+ drag: DragState;
76
+ get inputId(): string;
77
+ onDragEnter: (event: DragEvent) => void;
78
+ onDragLeave: (event: DragEvent) => void;
79
+ /** Without this, the browser doesn't allow the drop. */
80
+ onDragOver: (event: DragEvent) => void;
81
+ /** `preventDefault()` also tells a `DocumentFileDrop` that this zone took the drop. */
82
+ onDrop: (event: DragEvent) => void;
83
+ /** The input is cleared after each pick, so that picking the same file again is a change too. */
84
+ onPick: (event: Event) => void;
85
+ take(list: FileList | null | undefined): void;
86
+ }
87
+ export interface DocumentFileDropSignature {
88
+ Args: FileDropArgs;
89
+ Blocks: {
90
+ default: [
91
+ page: {
92
+ /** Whether files are dragged over the page. */
93
+ isDragging: boolean;
94
+ }
95
+ ];
96
+ };
97
+ }
98
+ /**
99
+ * Takes files dropped anywhere on the page: ember-primitives' DocumentFileDrop. It renders no
100
+ * element of its own, only its block.
101
+ *
102
+ * - The block gets `isDragging`, to show where a drop goes.
103
+ * - A drop outside every `FileDrop` doesn't open the file in the browser tab.
104
+ * - A drop on a `FileDrop` goes only to that `FileDrop`.
105
+ *
106
+ * <DocumentFileDrop @accept="video/*" @onFiles={{this.load}} as |page|>
107
+ * {{#if page.isDragging}}<div class="overlay">Drop to load</div>{{/if}}
108
+ * </DocumentFileDrop>
109
+ */
110
+ export declare class DocumentFileDrop extends Component<DocumentFileDropSignature> {
111
+ drag: DragState;
112
+ constructor(owner: Owner, args: DocumentFileDropSignature['Args']);
113
+ onDragEnter: (event: DragEvent) => void;
114
+ onDragLeave: (event: DragEvent) => void;
115
+ onDragOver: (event: DragEvent) => void;
116
+ onDrop: (event: DragEvent) => void;
117
+ }
118
+ export default FileDrop;
119
+ //# sourceMappingURL=file-drop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-drop.d.ts","sourceRoot":"","sources":["../src/file-drop.gts"],"names":[],"mappings":"AAoQA,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAK1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAcrC;;;GAGG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAMvE;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAIlD;AAED;;;GAGG;AACH,wBAAgB,SAAS,CACvB,IAAI,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,EACjC,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,QAAQ,EAAE,OAAO,GAAG,SAAS,GAC5B,IAAI,EAAE,CASR;AAED;;;;GAIG;AACH,qBAAa,SAAS;;IACX,UAAU,UAAQ;IAG3B,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAM7B,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAM7B,GAAG,IAAI,IAAI;CAIZ;AAED,4DAA4D;AAC5D,MAAM,WAAW,YAAY;IAC3B,wFAAwF;IACxF,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IAChC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mFAAmF;IACnF,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,YAAY,GAAG;QACnB,+EAA+E;QAC/E,QAAQ,CAAC,EAAE,OAAO,CAAA;QAClB,6DAA6D;QAC7D,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD,MAAM,EAAE;QACN,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,yCAAyC;gBACzC,UAAU,EAAE,OAAO,CAAA;aACpB;SACF,CAAA;KACF,CAAA;IACD;;;;OAIG;IACH,OAAO,EAAE,gBAAgB,CAAA;CAC1B;AAED;;;;;;;;;GASG;AACH,qBAAa,QAAS,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACxD,IAAI,YAAkB;IAEtB,IAAI,OAAO,IAAI,MAAM,CAEpB;IAED,WAAW,GAAI,OAAO,SAAS,KAAG,IAAI,CAErC;IAED,WAAW,GAAI,OAAO,SAAS,KAAG,IAAI,CAA0B;IAEhE,wDAAwD;IACxD,UAAU,GAAI,OAAO,SAAS,KAAG,IAAI,CAEpC;IAED,uFAAuF;IACvF,MAAM,GAAI,OAAO,SAAS,KAAG,IAAI,CAMhC;IAED,iGAAiG;IACjG,MAAM,GAAI,OAAO,KAAK,KAAG,IAAI,CAI5B;IAED,IAAI,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;CA6D9C;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,YAAY,CAAA;IAClB,MAAM,EAAE;QACN,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,+CAA+C;gBAC/C,UAAU,EAAE,OAAO,CAAA;aACpB;SACF,CAAA;KACF,CAAA;CACF;AAED;;;;;;;;;;;GAWG;AACH,qBAAa,gBAAiB,SAAQ,SAAS,CAAC,yBAAyB,CAAC;IACxE,IAAI,YAAkB;gBAEV,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,yBAAyB,CAAC,MAAM,CAAC;IAcjE,WAAW,GAAI,OAAO,SAAS,KAAG,IAAI,CAA0B;IAChE,WAAW,GAAI,OAAO,SAAS,KAAG,IAAI,CAA0B;IAEhE,UAAU,GAAI,OAAO,SAAS,KAAG,IAAI,CAEpC;IAED,MAAM,GAAI,OAAO,SAAS,KAAG,IAAI,CAMhC;CAQF;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,105 @@
1
+ import Modifier from 'ember-modifier';
2
+ import type { TOC } from '@ember/component/template-only';
3
+ import { type TagName } from './as';
4
+ /** The event a scope sends its own element before it moves focus in. */
5
+ export declare const AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
6
+ /** The event a scope sends its own element before it returns focus. */
7
+ export declare const AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
8
+ /** What a focus scope does, as Radix's `FocusScope` props. */
9
+ export interface FocusScopeOptions {
10
+ /**
11
+ * Keep focus inside: Tab and Shift+Tab stop at the edges, and focus that leaves any other
12
+ * way (a click, a script) is brought back. Default `false`.
13
+ */
14
+ trapped?: boolean;
15
+ /** Tab from the last element goes to the first, and Shift+Tab from the first to the last. */
16
+ loop?: boolean;
17
+ /**
18
+ * Called before the scope moves focus in, when it starts. Call `event.preventDefault()` to
19
+ * move focus yourself (or leave it where it is).
20
+ */
21
+ onMountAutoFocus?: (event: Event) => void;
22
+ /**
23
+ * Called before the scope returns focus to where it was, when it ends. Call
24
+ * `event.preventDefault()` to send focus somewhere else.
25
+ */
26
+ onUnmountAutoFocus?: (event: Event) => void;
27
+ }
28
+ /** A focus scope started with `createFocusScope`. */
29
+ export interface FocusScopeHandle {
30
+ /** Whether a newer scope has paused this one; a paused scope traps nothing. */
31
+ readonly paused: boolean;
32
+ /** Applies new options. */
33
+ update(options: FocusScopeOptions): void;
34
+ /** Ends the scope. Unless prevented, focus returns to where it was when the scope started. */
35
+ destroy(): void;
36
+ }
37
+ /**
38
+ * Puts a focusable, invisible element at each end of `<body>`, as Radix's `FocusGuards` does,
39
+ * so that tabbing out of the page's first or last element lands on something in the page,
40
+ * which a focus trap or an outside-focus check can see, rather than in the browser's toolbar.
41
+ * The guards are shared: they go when the last caller releases them. A trapped focus scope adds
42
+ * them while it traps; overlays that aren't trapped can add them too.
43
+ *
44
+ * const release = addFocusGuards()
45
+ * // …
46
+ * release()
47
+ */
48
+ export declare function addFocusGuards(): () => void;
49
+ /**
50
+ * Starts a focus scope on an element, as Radix's `FocusScope` does: focus moves in when it
51
+ * starts (to the first tabbable element that isn't a link, or else the element itself), stays
52
+ * in while `trapped`, wraps round with `loop`, and returns to where it was when the scope ends.
53
+ * Scopes stack: starting one pauses the scope before it until it ends.
54
+ *
55
+ * The element should take focus itself, for when it has nothing else to focus: give it
56
+ * `tabindex="-1"`. The `{{focusScope}}` modifier and `<FocusScope>` do this for you; use this
57
+ * function from a component that manages the element itself.
58
+ *
59
+ * const scope = createFocusScope(element, { trapped: true, loop: true })
60
+ * scope.update({ trapped: false })
61
+ * scope.destroy() // focus returns
62
+ */
63
+ export declare function createFocusScope(container: HTMLElement, options?: FocusScopeOptions): FocusScopeHandle;
64
+ interface FocusScopeModifierSignature {
65
+ Element: HTMLElement;
66
+ Args: {
67
+ Named: FocusScopeOptions;
68
+ };
69
+ }
70
+ /**
71
+ * Makes any element a focus scope (see `createFocusScope`), for as long as it is rendered:
72
+ *
73
+ * <div role="dialog" aria-label="Edit" {{focusScope trapped=true loop=true}}>…</div>
74
+ *
75
+ * It gives the element `tabindex="-1"` when it has no tabindex of its own.
76
+ */
77
+ export declare class focusScope extends Modifier<FocusScopeModifierSignature> {
78
+ #private;
79
+ modify(element: HTMLElement, _: [], named: FocusScopeOptions): void;
80
+ }
81
+ export interface FocusScopeSignature {
82
+ Args: FocusScopeOptions & {
83
+ /** The tag to render. Default `div`. */
84
+ as?: TagName;
85
+ };
86
+ Blocks: {
87
+ default: [];
88
+ };
89
+ Element: HTMLElement;
90
+ }
91
+ /**
92
+ * A focus scope as an element, as Radix's `FocusScope`: a `<div tabindex="-1">` (or `@as`)
93
+ * whose focus moves in when it renders, stays in while `@trapped`, wraps round with `@loop`, and
94
+ * returns to where it was when it goes.
95
+ *
96
+ * {{#if this.open}}
97
+ * <FocusScope @trapped={{true}} @loop={{true}} role="dialog" aria-label="Edit">…</FocusScope>
98
+ * {{/if}}
99
+ *
100
+ * It wraps content, so, like `DirectionProvider`, it isn't a component root for the harnesses:
101
+ * the parts inside still belong to the component around them.
102
+ */
103
+ export declare const FocusScope: TOC<FocusScopeSignature>;
104
+ export {};
105
+ //# sourceMappingURL=focus-scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-scope.d.ts","sourceRoot":"","sources":["../src/focus-scope.gts"],"names":[],"mappings":"AA2WA,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AAGrC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAA;AACzD,OAAO,EAAM,KAAK,OAAO,EAAE,MAAM,UAAU,CAAA;AAK3C,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,gCAAgC,CAAA;AAC/D,uEAAuE;AACvE,eAAO,MAAM,oBAAoB,kCAAkC,CAAA;AAInE,8DAA8D;AAC9D,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6FAA6F;IAC7F,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IACzC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAC5C;AAED,qDAAqD;AACrD,MAAM,WAAW,gBAAgB;IAC/B,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,2BAA2B;IAC3B,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAA;IACxC,8FAA8F;IAC9F,OAAO,IAAI,IAAI,CAAA;CAChB;AAuBD;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,IAAI,MAAM,IAAI,CAY3C;AAmLD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,WAAW,EACtB,OAAO,GAAE,iBAAsB,GAC9B,gBAAgB,CAElB;AAED,UAAU,2BAA2B;IACnC,OAAO,EAAE,WAAW,CAAA;IACpB,IAAI,EAAE;QAAE,KAAK,EAAE,iBAAiB,CAAA;KAAE,CAAA;CACnC;AAED;;;;;;GAMG;AACH,qBAAa,UAAW,SAAQ,QAAQ,CAAC,2BAA2B,CAAC;;IAG1D,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAiB7E;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,iBAAiB,GAAG;QACxB,wCAAwC;QACxC,EAAE,CAAC,EAAE,OAAO,CAAA;KACb,CAAA;IACD,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAA;IACvB,OAAO,EAAE,WAAW,CAAA;CACrB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,EAAE,GAAG,CAAC,mBAAmB,CAmB9C,CAAA"}
@@ -0,0 +1,114 @@
1
+ import Modifier from 'ember-modifier';
2
+ /** Where `focusable` looks, and what it counts. */
3
+ export interface FocusableQuery {
4
+ /** The element to look in. The container itself is never one of the results. */
5
+ container: Element;
6
+ /**
7
+ * Also count elements only script can focus, with `tabindex="-1"` (menu items, listbox
8
+ * options), as tabster's `includeProgrammaticallyFocusable`. Default: only those the Tab key
9
+ * reaches.
10
+ */
11
+ includeProgrammaticallyFocusable?: boolean;
12
+ /** Count only the elements this accepts. */
13
+ accept?: (element: HTMLElement) => boolean;
14
+ }
15
+ /** A `FocusableQuery` that starts from an element, for `findNext` and `findPrev`. */
16
+ export interface FocusableQueryFrom extends FocusableQuery {
17
+ /** The element to start from. It needn't be focusable itself. */
18
+ currentElement: Element;
19
+ }
20
+ /**
21
+ * The focusable elements in `container`, in document order. An element counts when it is
22
+ * enabled, displayed, visible and not inert, and either the Tab key reaches it (`tabIndex` of 0
23
+ * or more) or, with `includeProgrammaticallyFocusable`, it has a `tabindex` of its own. Positive
24
+ * tabindexes don't reorder the list, as in Radix and tabster.
25
+ */
26
+ declare function findAll(query: FocusableQuery): HTMLElement[];
27
+ /**
28
+ * Finds focusable elements, as tabster's `focusable` API does for ember-primitives. Hidden,
29
+ * disabled and inert elements are skipped, by the same rules everywhere Joinery moves focus.
30
+ *
31
+ * focusable.findFirst({ container: this.element })
32
+ * focusable.findNext({ container: list, currentElement: option, includeProgrammaticallyFocusable: true })
33
+ */
34
+ export declare const focusable: {
35
+ /** Every focusable element in the container, in document order. */
36
+ findAll: typeof findAll;
37
+ /** The first focusable element in the container. */
38
+ findFirst(query: FocusableQuery): HTMLElement | undefined;
39
+ /** The last focusable element in the container. */
40
+ findLast(query: FocusableQuery): HTMLElement | undefined;
41
+ /** The first focusable element after `currentElement`, in document order. It doesn't wrap. */
42
+ findNext(query: FocusableQueryFrom): HTMLElement | undefined;
43
+ /** The last focusable element before `currentElement`, in document order. It doesn't wrap. */
44
+ findPrev(query: FocusableQueryFrom): HTMLElement | undefined;
45
+ /**
46
+ * Whether an element can take focus now, by the same rules: it is connected, and neither it
47
+ * nor anything above it hides it. Elements with `tabindex="-1"` count unless
48
+ * `includeProgrammaticallyFocusable` is `false`.
49
+ */
50
+ isFocusable(element: Element, options?: {
51
+ includeProgrammaticallyFocusable?: boolean;
52
+ }): boolean;
53
+ };
54
+ /** How `focusElement` and `focusFirst` focus. */
55
+ export interface FocusOptions {
56
+ /** Select the text of an input it focuses, as Radix does when a focus scope moves focus. */
57
+ select?: boolean;
58
+ /** Don't scroll the element into view. */
59
+ preventScroll?: boolean;
60
+ }
61
+ /**
62
+ * Focuses an element, if it's there and can take focus, selecting an input's text with
63
+ * `select`. Returns whether focus is on it afterwards.
64
+ */
65
+ export declare function focusElement(element: Element | null | undefined, { select, preventScroll }?: FocusOptions): boolean;
66
+ /**
67
+ * Focuses the first of `candidates` that takes focus, as Radix's `focusFirst` does: each is
68
+ * tried in turn until focus moves. It stops at the element that already has focus, so a list of
69
+ * "the items after this one" never moves focus past where it started. Returns whether focus
70
+ * moved.
71
+ */
72
+ export declare function focusFirst(candidates: Iterable<Element | null | undefined>, options?: FocusOptions): boolean;
73
+ interface RestoreFocusSignature {
74
+ Element: HTMLElement;
75
+ Args: {
76
+ Named: {
77
+ /**
78
+ * The element to move focus to first, when it is inside and can take focus: the selected
79
+ * tab, say. tabster calls it the default.
80
+ */
81
+ preferred?: HTMLElement | null;
82
+ /**
83
+ * Called with the element focus is about to move to. Return `false` to leave focus where
84
+ * it fell and handle it yourself, as with tabster's `DeloserFocusLostEvent`.
85
+ */
86
+ onRestore?: (next: HTMLElement) => boolean | void;
87
+ };
88
+ };
89
+ }
90
+ /**
91
+ * Keeps focus from falling to `<body>` when the focused element inside this one is removed, as
92
+ * tabster's Deloser does for ember-primitives' Tabs and Menu. Focus moves to, in order:
93
+ *
94
+ * 1. `preferred`, when it is inside and can take focus (tabster's default element);
95
+ * 2. the element focused most recently inside it that is still there and can take focus;
96
+ * 3. its first focusable element (or itself, if it can take focus);
97
+ * 4. and when this element itself is removed with focus inside, the element focused most
98
+ * recently outside it, such as the trigger that opened a menu.
99
+ *
100
+ * <ul {{restoreFocus}}>
101
+ * {{#each this.items as |item|}}
102
+ * <li><button type="button" {{on "click" (fn this.remove item)}}>Remove {{item}}</button></li>
103
+ * {{/each}}
104
+ * </ul>
105
+ *
106
+ * It acts only when the focused element was removed, so focus a user moves elsewhere (to
107
+ * `<body>`, by clicking the page) stays there.
108
+ */
109
+ export declare class restoreFocus extends Modifier<RestoreFocusSignature> {
110
+ #private;
111
+ modify(element: HTMLElement, _: [], named: RestoreFocusSignature['Args']['Named']): void;
112
+ }
113
+ export {};
114
+ //# sourceMappingURL=focus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../src/focus.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AAerC,mDAAmD;AACnD,MAAM,WAAW,cAAc;IAC7B,gFAAgF;IAChF,SAAS,EAAE,OAAO,CAAA;IAClB;;;;OAIG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAA;IAC1C,4CAA4C;IAC5C,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAA;CAC3C;AAED,qFAAqF;AACrF,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD,iEAAiE;IACjE,cAAc,EAAE,OAAO,CAAA;CACxB;AAqCD;;;;;GAKG;AACH,iBAAS,OAAO,CAAC,KAAK,EAAE,cAAc,GAAG,WAAW,EAAE,CAerD;AAMD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;IACpB,mEAAmE;;IAGnE,oDAAoD;qBACnC,cAAc,GAAG,WAAW,GAAG,SAAS;IAIzD,mDAAmD;oBACnC,cAAc,GAAG,WAAW,GAAG,SAAS;IAIxD,8FAA8F;oBAC9E,kBAAkB,GAAG,WAAW,GAAG,SAAS;IAO5D,8FAA8F;oBAC9E,kBAAkB,GAAG,WAAW,GAAG,SAAS;IAO5D;;;;OAIG;yBACkB,OAAO,YAAW;QAAE,gCAAgC,CAAC,EAAE,OAAO,CAAA;KAAE;CAWtF,CAAA;AAED,iDAAiD;AACjD,MAAM,WAAW,YAAY;IAC3B,4FAA4F;IAC5F,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,0CAA0C;IAC1C,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,EACnC,EAAE,MAAc,EAAE,aAAqB,EAAE,GAAE,YAAiB,GAC3D,OAAO,CAMT;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,UAAU,EAAE,QAAQ,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,EAChD,OAAO,GAAE,YAAiB,GACzB,OAAO,CAST;AAoCD,UAAU,qBAAqB;IAC7B,OAAO,EAAE,WAAW,CAAA;IACpB,IAAI,EAAE;QACJ,KAAK,EAAE;YACL;;;eAGG;YACH,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAA;YAC9B;;;eAGG;YACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,GAAG,IAAI,CAAA;SAClD,CAAA;KACF,CAAA;CACF;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,YAAa,SAAQ,QAAQ,CAAC,qBAAqB,CAAC;;IAWtD,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;CA0F3F"}
@@ -0,0 +1,20 @@
1
+ import type { TOC } from '@ember/component/template-only';
2
+ export interface InHeadSignature {
3
+ Blocks: {
4
+ /** What goes in the document's `<head>`: `<meta>`, `<link>`, `<script>`, `<style>`… */
5
+ default: [];
6
+ };
7
+ }
8
+ /**
9
+ * Renders its block into the document's `<head>`, after what is already there, and takes it
10
+ * out again when it stops rendering. For a page's own `<meta>` tags, a stylesheet only one
11
+ * route needs, or a script loaded on demand:
12
+ *
13
+ * {{#if this.wantsPrint}}
14
+ * <InHead><link rel="stylesheet" href="/print.css" /></InHead>
15
+ * {{/if}}
16
+ *
17
+ * It is ember-primitives' `InHead`.
18
+ */
19
+ export declare const InHead: TOC<InHeadSignature>;
20
+ //# sourceMappingURL=head.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"head.d.ts","sourceRoot":"","sources":["../src/head.gts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAA;AAEzD,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE;QACN,uFAAuF;QACvF,OAAO,EAAE,EAAE,CAAA;KACZ,CAAA;CACF;AAID;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM,EAAE,GAAG,CAAC,eAAe,CAUtC,CAAA"}
@@ -0,0 +1,59 @@
1
+ import Component from '@glimmer/component';
2
+ import type Owner from '@ember/owner';
3
+ /** A section heading's level: `<h1>` to `<h6>`. */
4
+ export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
5
+ export interface SectionHeadingOptions {
6
+ /**
7
+ * The level to use when nothing above `node` sets one: the top of what the page has
8
+ * rendered so far. Default 1. It doesn't lower a level the document sets.
9
+ */
10
+ startAt?: HeadingLevel;
11
+ }
12
+ /**
13
+ * Which section heading, `<h1>` to `<h6>`, belongs at `node`, from the document around it:
14
+ * one level below the heading of the section it is in. `<section>`, `<article>`, `<aside>`
15
+ * and `<nav>` start a section, and `<header>`, `<footer>` and `<main>` are looked inside. The
16
+ * first answer for a node is kept, so ask once it is where it will stay.
17
+ *
18
+ * const marker = document.createTextNode('')
19
+ * section.append(marker)
20
+ * getSectionHeadingLevel(marker) // 2, under a page's <h1>
21
+ *
22
+ * It is ember-primitives' `which-heading-do-i-need`, which its `<Heading>` uses.
23
+ */
24
+ export declare function getSectionHeadingLevel(node: Text, options?: SectionHeadingOptions): HeadingLevel;
25
+ export interface HeadingSignature {
26
+ Args: {
27
+ /** Its name, for its harness (`data-test-jn-name`). */
28
+ name?: string;
29
+ };
30
+ Blocks: {
31
+ /** The heading's text. */
32
+ default: [];
33
+ };
34
+ /** The heading: an `<h1>` to `<h6>`. */
35
+ Element: HTMLHeadingElement;
36
+ }
37
+ /**
38
+ * A section heading, `<h1>` to `<h6>`, whose level comes from where it renders, as
39
+ * ember-primitives' `Heading`: one below the heading of the section it is in. Put content in
40
+ * `<section>`, `<article>`, `<aside>` or `<nav>` to start a section, and its headings go one
41
+ * level down, so a component can render a heading without knowing where it will be used.
42
+ *
43
+ * <Heading>Settings</Heading> {{! <h1> at the top of the page }}
44
+ * <section>
45
+ * <Heading>Profile</Heading> {{! <h2> }}
46
+ * </section>
47
+ *
48
+ * The level is found once, as it first renders, from the document as it is then. Before the
49
+ * heading it renders an empty text node, which the search starts from. It wraps its text, so
50
+ * it is a wrapper for the harnesses (`data-test-jn-wrapper`): a part inside it still belongs
51
+ * to the component around it.
52
+ */
53
+ export declare class Heading extends Component<HeadingSignature> {
54
+ /** Where the search for the level starts, rendered just before the heading. */
55
+ readonly marker: Text;
56
+ constructor(owner: Owner, args: HeadingSignature['Args']);
57
+ get tagName(): string;
58
+ }
59
+ //# sourceMappingURL=heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../src/heading.gts"],"names":[],"mappings":"AAoNA,OAAO,SAAS,MAAM,oBAAoB,CAAA;AAC1C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAGrC,mDAAmD;AACnD,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AA2HhD,MAAM,WAAW,qBAAqB;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;CACvB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,YAAY,CAQhG;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE;QACJ,uDAAuD;QACvD,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD,MAAM,EAAE;QACN,0BAA0B;QAC1B,OAAO,EAAE,EAAE,CAAA;KACZ,CAAA;IACD,wCAAwC;IACxC,OAAO,EAAE,kBAAkB,CAAA;CAC5B;AAED;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,OAAQ,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IACtD,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAA;gBAET,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC;IAKxD,IAAI,OAAO,IAAI,MAAM,CAEpB;CAyBF"}
@@ -0,0 +1,32 @@
1
+ import type { TOC } from '@ember/component/template-only';
2
+ export interface HeroSignature {
3
+ Args: {
4
+ /** Its name, for its harness (`data-test-jn-name`). */
5
+ name?: string;
6
+ };
7
+ Blocks: {
8
+ /** What the hero features: an image or a video, a headline, a call to action. */
9
+ default: [];
10
+ };
11
+ /** The hero's element, as wide and tall as the viewport. */
12
+ Element: HTMLDivElement;
13
+ }
14
+ /**
15
+ * A layout for featuring large, eye-catching content across the whole browser window, as
16
+ * ember-primitives' `Hero`: `100dvw` by `100dvh` (the dynamic viewport units, which follow a
17
+ * phone's toolbars) and `position: relative`, so headers and footers inside can be placed along
18
+ * its edges.
19
+ *
20
+ * <Hero class="landing">
21
+ * <h1>Joinery</h1>
22
+ * <a href="/guide">Get started</a>
23
+ * </Hero>
24
+ *
25
+ * Its rules are in `@layer joinery` at no specificity, so a class of the app's resizes it: an
26
+ * unlayered one always, and a layered one (a Tailwind utility) where the app names `joinery`
27
+ * before its own layers, as joinery.css and the guide's Tailwind setup do. It adds no landmark:
28
+ * put `<main>` or `<header>` inside or around it as the page needs. It wraps content, so it is a
29
+ * wrapper for the harnesses (`data-test-jn-wrapper`).
30
+ */
31
+ export declare const Hero: TOC<HeroSignature>;
32
+ //# sourceMappingURL=hero.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../src/hero.gts"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAA;AAgBzD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE;QACJ,uDAAuD;QACvD,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD,MAAM,EAAE;QACN,iFAAiF;QACjF,OAAO,EAAE,EAAE,CAAA;KACZ,CAAA;IACD,4DAA4D;IAC5D,OAAO,EAAE,cAAc,CAAA;CACxB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,IAAI,EAAE,GAAG,CAAC,aAAa,CAsBlC,CAAA"}
@@ -0,0 +1,35 @@
1
+ /** Puts back what `hideOthers` or `inertOthers` changed. */
2
+ export type Undo = () => void;
3
+ export interface HideOthersOptions {
4
+ /** Where to start: only what's inside it is hidden. Default the targets' `<body>`. */
5
+ parent?: Element;
6
+ }
7
+ type Targets = Element | ReadonlyArray<Element | null | undefined>;
8
+ /**
9
+ * Hides everything on the page from assistive technology but the targets, as the aria-hidden
10
+ * package's `hideOthers` (which Radix's modal parts use) does: `aria-hidden="true"` on every
11
+ * element that isn't a target, inside one or above one. Live regions (`aria-live`) stay heard.
12
+ * It returns the function that puts it all back; calls stack, so an element stays hidden until
13
+ * every call that hid it is undone, and one that was hidden already stays hidden.
14
+ *
15
+ * const undo = hideOthers(dialog)
16
+ * undo()
17
+ *
18
+ * Hidden elements can still take focus, so trap it inside the targets (`focusScope`), or use
19
+ * `inertOthers`, which a modal dialog does.
20
+ */
21
+ export declare function hideOthers(targets: Targets, options?: HideOthersOptions): Undo;
22
+ /**
23
+ * Makes everything on the page inert but the targets, as a modal `<dialog>` does to the page
24
+ * behind it (and as the aria-hidden package's `inertOthers`): `inert` on every element that isn't
25
+ * a target, inside one or above one, so nothing else can be focused, clicked or read by
26
+ * assistive technology. Live regions (`aria-live`) are left alone, so a toast outside stays
27
+ * heard and usable. It returns the function that puts it all back; calls stack, as
28
+ * `hideOthers`' do.
29
+ *
30
+ * const undo = inertOthers([dialog, overlay])
31
+ * undo()
32
+ */
33
+ export declare function inertOthers(targets: Targets, options?: HideOthersOptions): Undo;
34
+ export {};
35
+ //# sourceMappingURL=hide-others.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hide-others.d.ts","sourceRoot":"","sources":["../src/hide-others.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,MAAM,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;AAE7B,MAAM,WAAW,iBAAiB;IAChC,sFAAsF;IACtF,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,KAAK,OAAO,GAAG,OAAO,GAAG,aAAa,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;AAiFlE;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,iBAAsB,GAAG,IAAI,CAIlF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,iBAAsB,GAAG,IAAI,CAInF"}