@ember-joinery/test-support 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 (285) hide show
  1. package/CHANGELOG.md +550 -0
  2. package/LICENSE.md +9 -0
  3. package/NOTICE +532 -0
  4. package/README.md +356 -2
  5. package/addon-main.cjs +4 -0
  6. package/dist/-private/checkable.d.ts +21 -0
  7. package/dist/-private/checkable.d.ts.map +1 -0
  8. package/dist/-private/checkable.js +80 -0
  9. package/dist/-private/control.d.ts +18 -0
  10. package/dist/-private/control.d.ts.map +1 -0
  11. package/dist/-private/control.js +55 -0
  12. package/dist/-private/menu.d.ts +145 -0
  13. package/dist/-private/menu.d.ts.map +1 -0
  14. package/dist/-private/menu.js +322 -0
  15. package/dist/-private/overlay.d.ts +9 -0
  16. package/dist/-private/overlay.d.ts.map +1 -0
  17. package/dist/-private/overlay.js +39 -0
  18. package/dist/-private/showing.d.ts +7 -0
  19. package/dist/-private/showing.d.ts.map +1 -0
  20. package/dist/-private/showing.js +10 -0
  21. package/dist/-private/size.d.ts +10 -0
  22. package/dist/-private/size.d.ts.map +1 -0
  23. package/dist/-private/size.js +24 -0
  24. package/dist/-private/tree.d.ts +34 -0
  25. package/dist/-private/tree.d.ts.map +1 -0
  26. package/dist/-private/tree.js +80 -0
  27. package/dist/accordion.d.ts +62 -0
  28. package/dist/accordion.d.ts.map +1 -0
  29. package/dist/accordion.js +112 -0
  30. package/dist/alert-dialog.d.ts +24 -0
  31. package/dist/alert-dialog.d.ts.map +1 -0
  32. package/dist/alert-dialog.js +37 -0
  33. package/dist/alert.d.ts +27 -0
  34. package/dist/alert.d.ts.map +1 -0
  35. package/dist/alert.js +43 -0
  36. package/dist/aspect-ratio.d.ts +21 -0
  37. package/dist/aspect-ratio.d.ts.map +1 -0
  38. package/dist/aspect-ratio.js +30 -0
  39. package/dist/attachment.d.ts +86 -0
  40. package/dist/attachment.d.ts.map +1 -0
  41. package/dist/attachment.js +156 -0
  42. package/dist/avatar.d.ts +65 -0
  43. package/dist/avatar.d.ts.map +1 -0
  44. package/dist/avatar.js +106 -0
  45. package/dist/badge.d.ts +29 -0
  46. package/dist/badge.d.ts.map +1 -0
  47. package/dist/badge.js +49 -0
  48. package/dist/breadcrumb.d.ts +36 -0
  49. package/dist/breadcrumb.d.ts.map +1 -0
  50. package/dist/breadcrumb.js +80 -0
  51. package/dist/bubble.d.ts +56 -0
  52. package/dist/bubble.d.ts.map +1 -0
  53. package/dist/bubble.js +94 -0
  54. package/dist/button-group.d.ts +34 -0
  55. package/dist/button-group.d.ts.map +1 -0
  56. package/dist/button-group.js +62 -0
  57. package/dist/button.d.ts +37 -0
  58. package/dist/button.d.ts.map +1 -0
  59. package/dist/button.js +77 -0
  60. package/dist/calendar.d.ts +115 -0
  61. package/dist/calendar.d.ts.map +1 -0
  62. package/dist/calendar.js +276 -0
  63. package/dist/card.d.ts +31 -0
  64. package/dist/card.d.ts.map +1 -0
  65. package/dist/card.js +49 -0
  66. package/dist/checkbox.d.ts +46 -0
  67. package/dist/checkbox.d.ts.map +1 -0
  68. package/dist/checkbox.js +84 -0
  69. package/dist/child.d.ts +29 -0
  70. package/dist/child.d.ts.map +1 -0
  71. package/dist/child.js +27 -0
  72. package/dist/collapsible.d.ts +44 -0
  73. package/dist/collapsible.d.ts.map +1 -0
  74. package/dist/collapsible.js +83 -0
  75. package/dist/color-scheme.d.ts +44 -0
  76. package/dist/color-scheme.d.ts.map +1 -0
  77. package/dist/color-scheme.js +123 -0
  78. package/dist/combobox.d.ts +114 -0
  79. package/dist/combobox.d.ts.map +1 -0
  80. package/dist/combobox.js +293 -0
  81. package/dist/command.d.ts +92 -0
  82. package/dist/command.d.ts.map +1 -0
  83. package/dist/command.js +183 -0
  84. package/dist/context-menu.d.ts +37 -0
  85. package/dist/context-menu.d.ts.map +1 -0
  86. package/dist/context-menu.js +59 -0
  87. package/dist/date-picker.d.ts +48 -0
  88. package/dist/date-picker.d.ts.map +1 -0
  89. package/dist/date-picker.js +136 -0
  90. package/dist/dialog.d.ts +64 -0
  91. package/dist/dialog.d.ts.map +1 -0
  92. package/dist/dialog.js +142 -0
  93. package/dist/drawer.d.ts +63 -0
  94. package/dist/drawer.d.ts.map +1 -0
  95. package/dist/drawer.js +136 -0
  96. package/dist/dropdown-menu.d.ts +35 -0
  97. package/dist/dropdown-menu.d.ts.map +1 -0
  98. package/dist/dropdown-menu.js +49 -0
  99. package/dist/empty.d.ts +29 -0
  100. package/dist/empty.d.ts.map +1 -0
  101. package/dist/empty.js +47 -0
  102. package/dist/field.d.ts +86 -0
  103. package/dist/field.d.ts.map +1 -0
  104. package/dist/field.js +150 -0
  105. package/dist/file-drop.d.ts +74 -0
  106. package/dist/file-drop.d.ts.map +1 -0
  107. package/dist/file-drop.js +137 -0
  108. package/dist/focus.d.ts +54 -0
  109. package/dist/focus.d.ts.map +1 -0
  110. package/dist/focus.js +174 -0
  111. package/dist/harness.d.ts +90 -0
  112. package/dist/harness.d.ts.map +1 -0
  113. package/dist/harness.js +189 -0
  114. package/dist/heading.d.ts +16 -0
  115. package/dist/heading.d.ts.map +1 -0
  116. package/dist/heading.js +19 -0
  117. package/dist/hero.d.ts +21 -0
  118. package/dist/hero.d.ts.map +1 -0
  119. package/dist/hero.js +28 -0
  120. package/dist/hover-card.d.ts +46 -0
  121. package/dist/hover-card.d.ts.map +1 -0
  122. package/dist/hover-card.js +85 -0
  123. package/dist/icon.d.ts +10 -0
  124. package/dist/icon.d.ts.map +1 -0
  125. package/dist/icon.js +13 -0
  126. package/dist/index.d.ts +86 -0
  127. package/dist/index.d.ts.map +1 -0
  128. package/dist/index.js +87 -0
  129. package/dist/input-group.d.ts +55 -0
  130. package/dist/input-group.d.ts.map +1 -0
  131. package/dist/input-group.js +103 -0
  132. package/dist/input-otp.d.ts +103 -0
  133. package/dist/input-otp.d.ts.map +1 -0
  134. package/dist/input-otp.js +293 -0
  135. package/dist/input.d.ts +53 -0
  136. package/dist/input.d.ts.map +1 -0
  137. package/dist/input.js +90 -0
  138. package/dist/item.d.ts +63 -0
  139. package/dist/item.d.ts.map +1 -0
  140. package/dist/item.js +104 -0
  141. package/dist/kbd.d.ts +28 -0
  142. package/dist/kbd.d.ts.map +1 -0
  143. package/dist/kbd.js +36 -0
  144. package/dist/keys.d.ts +20 -0
  145. package/dist/keys.d.ts.map +1 -0
  146. package/dist/keys.js +32 -0
  147. package/dist/label.d.ts +24 -0
  148. package/dist/label.d.ts.map +1 -0
  149. package/dist/label.js +39 -0
  150. package/dist/layers.d.ts +42 -0
  151. package/dist/layers.d.ts.map +1 -0
  152. package/dist/layers.js +70 -0
  153. package/dist/link.d.ts +44 -0
  154. package/dist/link.d.ts.map +1 -0
  155. package/dist/link.js +60 -0
  156. package/dist/marker.d.ts +42 -0
  157. package/dist/marker.d.ts.map +1 -0
  158. package/dist/marker.js +73 -0
  159. package/dist/menubar.d.ts +76 -0
  160. package/dist/menubar.d.ts.map +1 -0
  161. package/dist/menubar.js +139 -0
  162. package/dist/message-scroller.d.ts +101 -0
  163. package/dist/message-scroller.d.ts.map +1 -0
  164. package/dist/message-scroller.js +215 -0
  165. package/dist/message.d.ts +48 -0
  166. package/dist/message.d.ts.map +1 -0
  167. package/dist/message.js +72 -0
  168. package/dist/native-form.d.ts +44 -0
  169. package/dist/native-form.d.ts.map +1 -0
  170. package/dist/native-form.js +111 -0
  171. package/dist/native-select.d.ts +56 -0
  172. package/dist/native-select.d.ts.map +1 -0
  173. package/dist/native-select.js +100 -0
  174. package/dist/navigation-menu.d.ts +97 -0
  175. package/dist/navigation-menu.d.ts.map +1 -0
  176. package/dist/navigation-menu.js +207 -0
  177. package/dist/observers.d.ts +21 -0
  178. package/dist/observers.d.ts.map +1 -0
  179. package/dist/observers.js +34 -0
  180. package/dist/pagination.d.ts +39 -0
  181. package/dist/pagination.d.ts.map +1 -0
  182. package/dist/pagination.js +71 -0
  183. package/dist/pointer.d.ts +38 -0
  184. package/dist/pointer.d.ts.map +1 -0
  185. package/dist/pointer.js +82 -0
  186. package/dist/popover.d.ts +50 -0
  187. package/dist/popover.d.ts.map +1 -0
  188. package/dist/popover.js +90 -0
  189. package/dist/progress.d.ts +38 -0
  190. package/dist/progress.d.ts.map +1 -0
  191. package/dist/progress.js +81 -0
  192. package/dist/questionnaire.d.ts +117 -0
  193. package/dist/questionnaire.d.ts.map +1 -0
  194. package/dist/questionnaire.js +240 -0
  195. package/dist/radio-group.d.ts +53 -0
  196. package/dist/radio-group.d.ts.map +1 -0
  197. package/dist/radio-group.js +95 -0
  198. package/dist/rating.d.ts +67 -0
  199. package/dist/rating.d.ts.map +1 -0
  200. package/dist/rating.js +160 -0
  201. package/dist/resizable.d.ts +76 -0
  202. package/dist/resizable.d.ts.map +1 -0
  203. package/dist/resizable.js +138 -0
  204. package/dist/routing.d.ts +36 -0
  205. package/dist/routing.d.ts.map +1 -0
  206. package/dist/routing.js +50 -0
  207. package/dist/roving-focus.d.ts +38 -0
  208. package/dist/roving-focus.d.ts.map +1 -0
  209. package/dist/roving-focus.js +60 -0
  210. package/dist/scroll-area.d.ts +58 -0
  211. package/dist/scroll-area.d.ts.map +1 -0
  212. package/dist/scroll-area.js +153 -0
  213. package/dist/scroller.d.ts +41 -0
  214. package/dist/scroller.d.ts.map +1 -0
  215. package/dist/scroller.js +65 -0
  216. package/dist/select.d.ts +98 -0
  217. package/dist/select.d.ts.map +1 -0
  218. package/dist/select.js +203 -0
  219. package/dist/selectors.d.ts +44 -0
  220. package/dist/selectors.d.ts.map +1 -0
  221. package/dist/selectors.js +63 -0
  222. package/dist/send-pointer.d.ts +17 -0
  223. package/dist/send-pointer.d.ts.map +1 -0
  224. package/dist/send-pointer.js +35 -0
  225. package/dist/separator.d.ts +26 -0
  226. package/dist/separator.d.ts.map +1 -0
  227. package/dist/separator.js +40 -0
  228. package/dist/shadowed.d.ts +55 -0
  229. package/dist/shadowed.d.ts.map +1 -0
  230. package/dist/shadowed.js +97 -0
  231. package/dist/sheet.d.ts +14 -0
  232. package/dist/sheet.d.ts.map +1 -0
  233. package/dist/sheet.js +15 -0
  234. package/dist/sidebar.d.ts +159 -0
  235. package/dist/sidebar.d.ts.map +1 -0
  236. package/dist/sidebar.js +299 -0
  237. package/dist/skeleton.d.ts +18 -0
  238. package/dist/skeleton.d.ts.map +1 -0
  239. package/dist/skeleton.js +25 -0
  240. package/dist/slider.d.ts +66 -0
  241. package/dist/slider.d.ts.map +1 -0
  242. package/dist/slider.js +155 -0
  243. package/dist/spinner.d.ts +10 -0
  244. package/dist/spinner.d.ts.map +1 -0
  245. package/dist/spinner.js +13 -0
  246. package/dist/sticky-footer.d.ts +33 -0
  247. package/dist/sticky-footer.d.ts.map +1 -0
  248. package/dist/sticky-footer.js +65 -0
  249. package/dist/switch.d.ts +44 -0
  250. package/dist/switch.d.ts.map +1 -0
  251. package/dist/switch.js +77 -0
  252. package/dist/table.d.ts +41 -0
  253. package/dist/table.d.ts.map +1 -0
  254. package/dist/table.js +100 -0
  255. package/dist/tabs.d.ts +66 -0
  256. package/dist/tabs.d.ts.map +1 -0
  257. package/dist/tabs.js +149 -0
  258. package/dist/test-hooks.d.ts +9 -0
  259. package/dist/test-hooks.d.ts.map +1 -0
  260. package/dist/test-hooks.js +1 -0
  261. package/dist/textarea.d.ts +47 -0
  262. package/dist/textarea.d.ts.map +1 -0
  263. package/dist/textarea.js +78 -0
  264. package/dist/toaster.d.ts +172 -0
  265. package/dist/toaster.d.ts.map +1 -0
  266. package/dist/toaster.js +307 -0
  267. package/dist/toggle-group.d.ts +51 -0
  268. package/dist/toggle-group.d.ts.map +1 -0
  269. package/dist/toggle-group.js +97 -0
  270. package/dist/toggle.d.ts +21 -0
  271. package/dist/toggle.d.ts.map +1 -0
  272. package/dist/toggle.js +26 -0
  273. package/dist/tooltip.d.ts +48 -0
  274. package/dist/tooltip.d.ts.map +1 -0
  275. package/dist/tooltip.js +91 -0
  276. package/dist/trace.d.ts +118 -0
  277. package/dist/trace.d.ts.map +1 -0
  278. package/dist/trace.js +196 -0
  279. package/dist/translator.d.ts +34 -0
  280. package/dist/translator.d.ts.map +1 -0
  281. package/dist/translator.js +75 -0
  282. package/dist/zoetrope.d.ts +51 -0
  283. package/dist/zoetrope.d.ts.map +1 -0
  284. package/dist/zoetrope.js +94 -0
  285. package/package.json +68 -3
@@ -0,0 +1,90 @@
1
+ /** Which instance of a component a harness drives. */
2
+ export interface HarnessOptions {
3
+ /** The component's `@name`, rendered as `data-test-jn-name`. Default: the class's `static named`. */
4
+ name?: string;
5
+ /** Which match to drive when several match, counting from 0. Default: 0, the first. */
6
+ index?: number;
7
+ /**
8
+ * Where to look: a harness (its component, and every part it owns wherever that is
9
+ * rendered) or an element. Default: the test's root element.
10
+ */
11
+ within?: Harness | Element;
12
+ }
13
+ /** How `@child`, `child()`, `find()` and `findAll()` pick an instance: a name or options. */
14
+ export type ChildOptions = string | Pick<HarnessOptions, 'name' | 'index'>;
15
+ /** A harness class, as `@child`, `find()` and `findAll()` take it. */
16
+ export type HarnessClass<T extends Harness = Harness> = (new (options?: string | HarnessOptions) => T) & Pick<typeof Harness, 'component' | 'named'>;
17
+ /**
18
+ * The base of every Joinery harness. A harness drives one instance of a component: it finds the
19
+ * instance's root by `data-test-jn` (and `data-test-jn-name`, when given a name) every time you
20
+ * read it, so one harness stays valid across re-renders, and it reaches the component's parts
21
+ * through `data-test-jn-part`, following `data-test-jn-owner` into the top layer and portals.
22
+ *
23
+ * class DisclosureHarness extends Harness {
24
+ * static component = 'disclosure' // the data-test-jn value it drives
25
+ * get trigger() { return this.part('trigger') }
26
+ * get isOpen() { return this.trigger.getAttribute('aria-expanded') === 'true' }
27
+ * async toggle() { await click(this.trigger) }
28
+ * }
29
+ *
30
+ * new DisclosureHarness() // the first disclosure in the test
31
+ * new DisclosureHarness('faq') // <Disclosure @name="faq">
32
+ * new DisclosureHarness({ name: 'faq', within: card, index: 1 })
33
+ *
34
+ * Page objects extend a harness and declare the components inside it with `@child`.
35
+ */
36
+ export declare class Harness {
37
+ #private;
38
+ /**
39
+ * The `data-test-jn` value of the component this harness drives, or several values when it
40
+ * drives more than one. A harness pointed at another component fails with a message that
41
+ * says so. Leave it unset to drive any component.
42
+ */
43
+ static component?: string | readonly string[];
44
+ /** The `@name` this class finds when it isn't given one, as in `static named = 'edit-profile'`. */
45
+ static named?: string;
46
+ /**
47
+ * @param options the component's `@name`, or the name, index and scope to find it by. With
48
+ * neither, the first instance of the component in the test.
49
+ */
50
+ constructor(options?: string | HarnessOptions);
51
+ /**
52
+ * Every instance of this component in the test, one harness each, in document order. Each
53
+ * finds its instance by position, live, like any harness.
54
+ *
55
+ * const [first, second] = ButtonHarness.findAll()
56
+ */
57
+ static findAll<T extends Harness>(this: HarnessClass<T>, options?: ChildOptions): T[];
58
+ /** The component's root element, looked up on every read. Throws when it isn't rendered. */
59
+ get element(): HTMLElement;
60
+ /** Whether the component is rendered now. Unlike `element`, it doesn't throw. */
61
+ get exists(): boolean;
62
+ /**
63
+ * This component's parts named `part`, in document order: the elements with
64
+ * `data-test-jn-part="<part>"` that belong to this instance, whether they are inside its
65
+ * root or owned by it (`data-test-jn-owner`) and rendered elsewhere. Parts of a component
66
+ * nested inside this one belong to that component and aren't included.
67
+ */
68
+ parts<E extends Element = HTMLElement>(part: string): E[];
69
+ /**
70
+ * One part of this component: the first part named `part`, or, given a value, the one whose
71
+ * `data-test-jn-value` is that value. Throws when there is none.
72
+ */
73
+ part<E extends Element = HTMLElement>(part: string, value?: string): E;
74
+ /** Like `part()`, but returns `null` when there is no such part. */
75
+ queryPart<E extends Element = HTMLElement>(part: string, value?: string): E | null;
76
+ /** The `data-test-jn-value` of each of this component's parts named `part`, in order. */
77
+ values(part: string): string[];
78
+ /**
79
+ * The harness for a component inside this one, created on first use and kept: the same
80
+ * name and class always give back the same object. `@child` declarations use this.
81
+ */
82
+ child<T extends Harness>(Type: HarnessClass<T>, options?: ChildOptions): T;
83
+ /** A one-off harness for a component inside this one. Each call makes a new harness. */
84
+ find<T extends Harness>(Type: HarnessClass<T>, options?: ChildOptions): T;
85
+ /** A harness for every instance of a component inside this one, in document order. */
86
+ findAll<T extends Harness>(Type: HarnessClass<T>, options?: ChildOptions): T[];
87
+ /** What this harness drives, as error messages put it: `dialog "edit-profile" in card`. */
88
+ toString(): string;
89
+ }
90
+ //# sourceMappingURL=harness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../src/harness.ts"],"names":[],"mappings":"AAYA,sDAAsD;AACtD,MAAM,WAAW,cAAc;IAC7B,qGAAqG;IACrG,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uFAAuF;IACvF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAC3B;AAED,6FAA6F;AAC7F,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,CAAA;AAE1E,sEAAsE;AACtE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI,CAAC,KACvD,OAAO,CAAC,EAAE,MAAM,GAAG,cAAc,KAC9B,CAAC,CAAC,GACL,IAAI,CAAC,OAAO,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,CAAA;AAU7C;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,OAAO;;IAClB;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAAA;IAE7C,mGAAmG;IACnG,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IAOrB;;;OAGG;gBACS,OAAO,CAAC,EAAE,MAAM,GAAG,cAAc;IAO7C;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,CAAC,EAAE;IAMrF,4FAA4F;IAC5F,IAAI,OAAO,IAAI,WAAW,CAQzB;IAED,iFAAiF;IACjF,IAAI,MAAM,IAAI,OAAO,CAOpB;IAED;;;;;OAKG;IACH,KAAK,CAAC,CAAC,SAAS,OAAO,GAAG,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE;IAOzD;;;OAGG;IACH,IAAI,CAAC,CAAC,SAAS,OAAO,GAAG,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC;IAStE,oEAAoE;IACpE,SAAS,CAAC,CAAC,SAAS,OAAO,GAAG,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;IAMlF,yFAAyF;IACzF,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE;IAM9B;;;OAGG;IACH,KAAK,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,CAAC;IAU1E,wFAAwF;IACxF,IAAI,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,CAAC;IAIzE,sFAAsF;IACtF,OAAO,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,CAAC,EAAE;IAM9E,2FAA2F;IAC3F,QAAQ,IAAI,MAAM;CA2CnB"}
@@ -0,0 +1,189 @@
1
+ var _a;
2
+ import { isString } from '@sindresorhus/is';
3
+ import { getRootElement } from '@ember/test-helpers';
4
+ import { attributes, selectors } from "./selectors.js";
5
+ import { HarnessError, NotFoundError, componentOf, describeElement, findWithin, } from "./-private/tree.js";
6
+ function normalize(options) {
7
+ return isString(options) ? { name: options } : (options ?? {});
8
+ }
9
+ function kinds(component) {
10
+ return isString(component) ? [component] : (component ?? []);
11
+ }
12
+ /**
13
+ * The base of every Joinery harness. A harness drives one instance of a component: it finds the
14
+ * instance's root by `data-test-jn` (and `data-test-jn-name`, when given a name) every time you
15
+ * read it, so one harness stays valid across re-renders, and it reaches the component's parts
16
+ * through `data-test-jn-part`, following `data-test-jn-owner` into the top layer and portals.
17
+ *
18
+ * class DisclosureHarness extends Harness {
19
+ * static component = 'disclosure' // the data-test-jn value it drives
20
+ * get trigger() { return this.part('trigger') }
21
+ * get isOpen() { return this.trigger.getAttribute('aria-expanded') === 'true' }
22
+ * async toggle() { await click(this.trigger) }
23
+ * }
24
+ *
25
+ * new DisclosureHarness() // the first disclosure in the test
26
+ * new DisclosureHarness('faq') // <Disclosure @name="faq">
27
+ * new DisclosureHarness({ name: 'faq', within: card, index: 1 })
28
+ *
29
+ * Page objects extend a harness and declare the components inside it with `@child`.
30
+ */
31
+ export class Harness {
32
+ /**
33
+ * The `data-test-jn` value of the component this harness drives, or several values when it
34
+ * drives more than one. A harness pointed at another component fails with a message that
35
+ * says so. Leave it unset to drive any component.
36
+ */
37
+ static component;
38
+ /** The `@name` this class finds when it isn't given one, as in `static named = 'edit-profile'`. */
39
+ static named;
40
+ #name;
41
+ #index;
42
+ #within;
43
+ #children = new Map();
44
+ /**
45
+ * @param options the component's `@name`, or the name, index and scope to find it by. With
46
+ * neither, the first instance of the component in the test.
47
+ */
48
+ constructor(options) {
49
+ const { name, index = 0, within } = normalize(options);
50
+ this.#name = name ?? this.constructor.named;
51
+ this.#index = index;
52
+ this.#within = within;
53
+ }
54
+ /**
55
+ * Every instance of this component in the test, one harness each, in document order. Each
56
+ * finds its instance by position, live, like any harness.
57
+ *
58
+ * const [first, second] = ButtonHarness.findAll()
59
+ */
60
+ static findAll(options) {
61
+ const name = normalize(options).name;
62
+ const count = new this({ name }).#matches().length;
63
+ return Array.from({ length: count }, (_, index) => new this({ name, index }));
64
+ }
65
+ /** The component's root element, looked up on every read. Throws when it isn't rendered. */
66
+ get element() {
67
+ const matches = this.#matches();
68
+ const element = matches[this.#index];
69
+ if (!element) {
70
+ const count = matches.length;
71
+ throw new NotFoundError(`no ${this} found${count ? ` (there are only ${count})` : ''}`);
72
+ }
73
+ return element;
74
+ }
75
+ /** Whether the component is rendered now. Unlike `element`, it doesn't throw. */
76
+ get exists() {
77
+ try {
78
+ return Boolean(this.element);
79
+ }
80
+ catch (error) {
81
+ if (error instanceof NotFoundError)
82
+ return false;
83
+ throw error;
84
+ }
85
+ }
86
+ /**
87
+ * This component's parts named `part`, in document order: the elements with
88
+ * `data-test-jn-part="<part>"` that belong to this instance, whether they are inside its
89
+ * root or owned by it (`data-test-jn-owner`) and rendered elsewhere. Parts of a component
90
+ * nested inside this one belong to that component and aren't included.
91
+ */
92
+ parts(part) {
93
+ const root = this.element;
94
+ return findWithin(root, selectors.part(part)).filter(element => componentOf(element) === root);
95
+ }
96
+ /**
97
+ * One part of this component: the first part named `part`, or, given a value, the one whose
98
+ * `data-test-jn-value` is that value. Throws when there is none.
99
+ */
100
+ part(part, value) {
101
+ const element = this.queryPart(part, value);
102
+ if (!element) {
103
+ const which = value === undefined ? `"${part}" part` : `"${part}" part "${value}"`;
104
+ throw new NotFoundError(`no ${which} found in ${this}`);
105
+ }
106
+ return element;
107
+ }
108
+ /** Like `part()`, but returns `null` when there is no such part. */
109
+ queryPart(part, value) {
110
+ const parts = this.parts(part);
111
+ if (value === undefined)
112
+ return parts[0] ?? null;
113
+ return parts.find(element => element.getAttribute(attributes.value) === value) ?? null;
114
+ }
115
+ /** The `data-test-jn-value` of each of this component's parts named `part`, in order. */
116
+ values(part) {
117
+ return this.parts(part)
118
+ .map(element => element.getAttribute(attributes.value))
119
+ .filter((value) => value !== null);
120
+ }
121
+ /**
122
+ * The harness for a component inside this one, created on first use and kept: the same
123
+ * name and class always give back the same object. `@child` declarations use this.
124
+ */
125
+ child(Type, options) {
126
+ const { name, index } = normalize(options);
127
+ let byKey = this.#children.get(Type);
128
+ if (!byKey)
129
+ this.#children.set(Type, (byKey = new Map()));
130
+ const key = `${index ?? 0}:${name ?? ''}`;
131
+ let harness = byKey.get(key);
132
+ if (!harness)
133
+ byKey.set(key, (harness = new Type({ name, index, within: this })));
134
+ return harness;
135
+ }
136
+ /** A one-off harness for a component inside this one. Each call makes a new harness. */
137
+ find(Type, options) {
138
+ return new Type({ ...normalize(options), within: this });
139
+ }
140
+ /** A harness for every instance of a component inside this one, in document order. */
141
+ findAll(Type, options) {
142
+ const name = normalize(options).name;
143
+ const count = new Type({ name, within: this }).#matches().length;
144
+ return Array.from({ length: count }, (_, index) => new Type({ name, index, within: this }));
145
+ }
146
+ /** What this harness drives, as error messages put it: `dialog "edit-profile" in card`. */
147
+ toString() {
148
+ const component = kinds(this.constructor.component);
149
+ let description = component.length ? component.join(' or ') : 'component';
150
+ if (this.#name !== undefined)
151
+ description += ` "${this.#name}"`;
152
+ if (this.#index > 0)
153
+ description += ` #${this.#index + 1}`;
154
+ const within = this.#within;
155
+ if (within instanceof _a)
156
+ description += ` in ${within}`;
157
+ else if (within)
158
+ description += ` in ${describeElement(within)}`;
159
+ return description;
160
+ }
161
+ /** Where this harness looks: its parent's root, the element it was given, or the test root. */
162
+ #scope() {
163
+ const within = this.#within;
164
+ if (within instanceof _a)
165
+ return within.element;
166
+ return within ?? getRootElement();
167
+ }
168
+ /** The roots in scope that this harness could drive, in document order. */
169
+ #matches() {
170
+ const scope = this.#scope();
171
+ const component = kinds(this.constructor.component);
172
+ const drives = (element) => !component.length || component.includes(element.getAttribute(attributes.component));
173
+ if (this.#name === undefined) {
174
+ const selector = component.length
175
+ ? component.map(kind => selectors.component(kind)).join(', ')
176
+ : selectors.component();
177
+ return findWithin(scope, selector);
178
+ }
179
+ const named = findWithin(scope, selectors.component(undefined, this.#name));
180
+ const matches = named.filter(drives);
181
+ const [other] = named;
182
+ if (!matches.length && other) {
183
+ throw new HarnessError(`the component named "${this.#name}" is a "${other.getAttribute(attributes.component)}"; ` +
184
+ `this harness drives ${component.map(kind => `"${kind}"`).join(' or ')}`);
185
+ }
186
+ return matches;
187
+ }
188
+ }
189
+ _a = Harness;
@@ -0,0 +1,16 @@
1
+ import { Harness } from './harness.ts';
2
+ /**
3
+ * Drives a `<Heading>` from `@ember-joinery/primitives/heading`: the level it chose and its
4
+ * text. A Heading wraps its text, so a part inside it still belongs to the component around it.
5
+ *
6
+ * const title = new HeadingHarness('title') // <Heading @name="title">
7
+ * assert.strictEqual(title.level, 2)
8
+ */
9
+ export declare class HeadingHarness extends Harness {
10
+ static component: string;
11
+ /** Its level, 1 to 6, from its tag (`<h2>` is 2). */
12
+ get level(): number;
13
+ /** The text it shows, whitespace collapsed. */
14
+ get text(): string;
15
+ }
16
+ //# sourceMappingURL=heading.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../src/heading.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,OAAO;IACzC,OAAgB,SAAS,SAAY;IAErC,qDAAqD;IACrD,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,+CAA+C;IAC/C,IAAI,IAAI,IAAI,MAAM,CAEjB;CACF"}
@@ -0,0 +1,19 @@
1
+ import { Harness } from "./harness.js";
2
+ /**
3
+ * Drives a `<Heading>` from `@ember-joinery/primitives/heading`: the level it chose and its
4
+ * text. A Heading wraps its text, so a part inside it still belongs to the component around it.
5
+ *
6
+ * const title = new HeadingHarness('title') // <Heading @name="title">
7
+ * assert.strictEqual(title.level, 2)
8
+ */
9
+ export class HeadingHarness extends Harness {
10
+ static component = 'heading';
11
+ /** Its level, 1 to 6, from its tag (`<h2>` is 2). */
12
+ get level() {
13
+ return Number(this.element.tagName.slice(1));
14
+ }
15
+ /** The text it shows, whitespace collapsed. */
16
+ get text() {
17
+ return (this.element.textContent ?? '').replace(/\s+/g, ' ').trim();
18
+ }
19
+ }
package/dist/hero.d.ts ADDED
@@ -0,0 +1,21 @@
1
+ import { Harness } from './harness.ts';
2
+ /** An element's size on the page, in CSS pixels. */
3
+ export interface ElementSize {
4
+ width: number;
5
+ height: number;
6
+ }
7
+ /**
8
+ * Drives a `<Hero>` from `@ember-joinery/primitives/hero`. A Hero wraps content, so the parts
9
+ * inside it still belong to the component around it.
10
+ *
11
+ * const hero = new HeroHarness()
12
+ * assert.deepEqual(hero.size, { width: innerWidth, height: innerHeight })
13
+ */
14
+ export declare class HeroHarness extends Harness {
15
+ static component: string;
16
+ /** Its size on the page: the viewport's, unless the app's CSS changed it. */
17
+ get size(): ElementSize;
18
+ /** Whether it is as wide and as tall as the window, to within a pixel. */
19
+ get fillsViewport(): boolean;
20
+ }
21
+ //# sourceMappingURL=hero.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hero.d.ts","sourceRoot":"","sources":["../src/hero.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,oDAAoD;AACpD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf;AAOD;;;;;;GAMG;AACH,qBAAa,WAAY,SAAQ,OAAO;IACtC,OAAgB,SAAS,SAAS;IAElC,6EAA6E;IAC7E,IAAI,IAAI,IAAI,WAAW,CAEtB;IAED,0EAA0E;IAC1E,IAAI,aAAa,IAAI,OAAO,CAO3B;CACF"}
package/dist/hero.js ADDED
@@ -0,0 +1,28 @@
1
+ import { Harness } from "./harness.js";
2
+ function sizeOf(element) {
3
+ const { width, height } = element.getBoundingClientRect();
4
+ return { width, height };
5
+ }
6
+ /**
7
+ * Drives a `<Hero>` from `@ember-joinery/primitives/hero`. A Hero wraps content, so the parts
8
+ * inside it still belong to the component around it.
9
+ *
10
+ * const hero = new HeroHarness()
11
+ * assert.deepEqual(hero.size, { width: innerWidth, height: innerHeight })
12
+ */
13
+ export class HeroHarness extends Harness {
14
+ static component = 'hero';
15
+ /** Its size on the page: the viewport's, unless the app's CSS changed it. */
16
+ get size() {
17
+ return sizeOf(this.element);
18
+ }
19
+ /** Whether it is as wide and as tall as the window, to within a pixel. */
20
+ get fillsViewport() {
21
+ const { width, height } = this.size;
22
+ const view = this.element.ownerDocument.documentElement;
23
+ const window = this.element.ownerDocument.defaultView;
24
+ const viewWidth = window?.innerWidth ?? view.clientWidth;
25
+ const viewHeight = window?.innerHeight ?? view.clientHeight;
26
+ return Math.abs(width - viewWidth) <= 1 && Math.abs(height - viewHeight) <= 1;
27
+ }
28
+ }
@@ -0,0 +1,46 @@
1
+ import { Harness } from './harness.ts';
2
+ import { type HoverOptions } from './pointer.ts';
3
+ /**
4
+ * Drives a `<HoverCard>` from `@ember-joinery/ember` or `@ember-joinery/primitives/hover-card`.
5
+ * It reads the state from the trigger's `data-state`, and acts as a user does: resting the
6
+ * pointer on the trigger, moving it away, focus.
7
+ *
8
+ * const card = new HoverCardHarness()
9
+ * await card.hover() // waits out the open delay
10
+ * assert.true(card.isOpen)
11
+ * await card.unhover() // and the close delay
12
+ */
13
+ export declare class HoverCardHarness extends Harness {
14
+ static component: string;
15
+ /** The trigger: the `Trigger` part, or your own element with the `trigger` modifier. */
16
+ get trigger(): HTMLElement;
17
+ /** The card, or `null` while it isn't rendered. */
18
+ get content(): HTMLElement | null;
19
+ /** Whether it is open, from the trigger's `data-state`. */
20
+ get isOpen(): boolean;
21
+ /** Whether the card is showing in the browser's top layer. */
22
+ get isShown(): boolean;
23
+ /** The card's text, whitespace collapsed. */
24
+ get text(): string;
25
+ /** The side it was placed on, after any flip (`data-side`). */
26
+ get side(): string | null;
27
+ /** Its alignment along that side (`data-align`). */
28
+ get align(): string | null;
29
+ /** Rests the pointer on the trigger, and waits out the open delay. */
30
+ hover(options?: HoverOptions): Promise<void>;
31
+ /** Moves the pointer off the trigger, away from the card, and waits out the close delay. */
32
+ unhover(options?: HoverOptions): Promise<void>;
33
+ /** Moves the pointer from the trigger onto the card, which keeps it open. */
34
+ hoverContent(): Promise<void>;
35
+ /** Moves the pointer off the card. */
36
+ unhoverContent(): Promise<void>;
37
+ /** Focuses the trigger, as tabbing to it does: it opens after the open delay. */
38
+ focus(): Promise<void>;
39
+ /** Moves focus away from the trigger: it closes after the close delay. */
40
+ blur(): Promise<void>;
41
+ /** Presses Escape where focus is. */
42
+ pressEscape(): Promise<void>;
43
+ /** A press outside the card, as a user dismissing it makes. */
44
+ pressOutside(): Promise<void>;
45
+ }
46
+ //# sourceMappingURL=hover-card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hover-card.d.ts","sourceRoot":"","sources":["../src/hover-card.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,cAAc,CAAA;AAGhE;;;;;;;;;GASG;AACH,qBAAa,gBAAiB,SAAQ,OAAO;IAC3C,OAAgB,SAAS,SAAe;IAExC,wFAAwF;IACxF,IAAI,OAAO,IAAI,WAAW,CAEzB;IAED,mDAAmD;IACnD,IAAI,OAAO,IAAI,WAAW,GAAG,IAAI,CAEhC;IAED,2DAA2D;IAC3D,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,8DAA8D;IAC9D,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,6CAA6C;IAC7C,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,+DAA+D;IAC/D,IAAI,IAAI,IAAI,MAAM,GAAG,IAAI,CAExB;IAED,oDAAoD;IACpD,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;IAED,sEAAsE;IAChE,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlD,4FAA4F;IACtF,OAAO,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAIpD,6EAA6E;IACvE,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAOnC,sCAAsC;IAChC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAMrC,iFAAiF;IAC3E,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5B,0EAA0E;IACpE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,qCAAqC;IAC/B,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAIlC,+DAA+D;IACzD,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;CAGpC"}
@@ -0,0 +1,85 @@
1
+ import { blur, focus } from '@ember/test-helpers';
2
+ import { Harness } from "./harness.js";
3
+ import { pressEscape, pressOutside } from "./layers.js";
4
+ import { hover, unhover } from "./pointer.js";
5
+ import { shownInTopLayer, text } from "./-private/overlay.js";
6
+ /**
7
+ * Drives a `<HoverCard>` from `@ember-joinery/ember` or `@ember-joinery/primitives/hover-card`.
8
+ * It reads the state from the trigger's `data-state`, and acts as a user does: resting the
9
+ * pointer on the trigger, moving it away, focus.
10
+ *
11
+ * const card = new HoverCardHarness()
12
+ * await card.hover() // waits out the open delay
13
+ * assert.true(card.isOpen)
14
+ * await card.unhover() // and the close delay
15
+ */
16
+ export class HoverCardHarness extends Harness {
17
+ static component = 'hover-card';
18
+ /** The trigger: the `Trigger` part, or your own element with the `trigger` modifier. */
19
+ get trigger() {
20
+ return this.part('trigger');
21
+ }
22
+ /** The card, or `null` while it isn't rendered. */
23
+ get content() {
24
+ return this.queryPart('content');
25
+ }
26
+ /** Whether it is open, from the trigger's `data-state`. */
27
+ get isOpen() {
28
+ return this.trigger.getAttribute('data-state') === 'open';
29
+ }
30
+ /** Whether the card is showing in the browser's top layer. */
31
+ get isShown() {
32
+ return shownInTopLayer(this.content);
33
+ }
34
+ /** The card's text, whitespace collapsed. */
35
+ get text() {
36
+ return text(this.content);
37
+ }
38
+ /** The side it was placed on, after any flip (`data-side`). */
39
+ get side() {
40
+ return this.content?.getAttribute('data-side') ?? null;
41
+ }
42
+ /** Its alignment along that side (`data-align`). */
43
+ get align() {
44
+ return this.content?.getAttribute('data-align') ?? null;
45
+ }
46
+ /** Rests the pointer on the trigger, and waits out the open delay. */
47
+ async hover(options) {
48
+ await hover(this.trigger, options);
49
+ }
50
+ /** Moves the pointer off the trigger, away from the card, and waits out the close delay. */
51
+ async unhover(options) {
52
+ await unhover(this.trigger, { ...options, away: this.content });
53
+ }
54
+ /** Moves the pointer from the trigger onto the card, which keeps it open. */
55
+ async hoverContent() {
56
+ const content = this.content;
57
+ if (!content)
58
+ throw new Error(`Joinery harness: ${this} isn't open`);
59
+ // Without a settle in between: the card's own pointerenter cancels the close delay.
60
+ await Promise.all([unhover(this.trigger, { away: null, distance: 1 }), hover(content)]);
61
+ }
62
+ /** Moves the pointer off the card. */
63
+ async unhoverContent() {
64
+ const content = this.content;
65
+ if (!content)
66
+ throw new Error(`Joinery harness: ${this} isn't open`);
67
+ await unhover(content, { away: this.trigger });
68
+ }
69
+ /** Focuses the trigger, as tabbing to it does: it opens after the open delay. */
70
+ async focus() {
71
+ await focus(this.trigger);
72
+ }
73
+ /** Moves focus away from the trigger: it closes after the close delay. */
74
+ async blur() {
75
+ await blur(this.trigger);
76
+ }
77
+ /** Presses Escape where focus is. */
78
+ async pressEscape() {
79
+ await pressEscape();
80
+ }
81
+ /** A press outside the card, as a user dismissing it makes. */
82
+ async pressOutside() {
83
+ await pressOutside();
84
+ }
85
+ }
package/dist/icon.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { Harness } from './harness.ts';
2
+ /** Drives an `<Icon>` from `@ember-joinery/ember`. */
3
+ export declare class IconHarness extends Harness {
4
+ static component: string;
5
+ /** What the icon means (`@label`), or `null` for a decorative icon. */
6
+ get label(): string | null;
7
+ /** Whether assistive technology skips it: an icon without `@label`. */
8
+ get isDecorative(): boolean;
9
+ }
10
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../src/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,sDAAsD;AACtD,qBAAa,WAAY,SAAQ,OAAO;IACtC,OAAgB,SAAS,SAAS;IAElC,uEAAuE;IACvE,IAAI,KAAK,IAAI,MAAM,GAAG,IAAI,CAEzB;IAED,uEAAuE;IACvE,IAAI,YAAY,IAAI,OAAO,CAE1B;CACF"}
package/dist/icon.js ADDED
@@ -0,0 +1,13 @@
1
+ import { Harness } from "./harness.js";
2
+ /** Drives an `<Icon>` from `@ember-joinery/ember`. */
3
+ export class IconHarness extends Harness {
4
+ static component = 'icon';
5
+ /** What the icon means (`@label`), or `null` for a decorative icon. */
6
+ get label() {
7
+ return this.element.getAttribute('aria-label');
8
+ }
9
+ /** Whether assistive technology skips it: an icon without `@label`. */
10
+ get isDecorative() {
11
+ return this.element.getAttribute('aria-hidden') === 'true';
12
+ }
13
+ }
@@ -0,0 +1,86 @@
1
+ export * from './accordion.ts';
2
+ export * from './alert-dialog.ts';
3
+ export * from './alert.ts';
4
+ export * from './aspect-ratio.ts';
5
+ export * from './attachment.ts';
6
+ export * from './avatar.ts';
7
+ export * from './badge.ts';
8
+ export * from './breadcrumb.ts';
9
+ export * from './bubble.ts';
10
+ export * from './button-group.ts';
11
+ export * from './button.ts';
12
+ export * from './calendar.ts';
13
+ export * from './card.ts';
14
+ export * from './checkbox.ts';
15
+ export * from './child.ts';
16
+ export * from './collapsible.ts';
17
+ export * from './color-scheme.ts';
18
+ export * from './combobox.ts';
19
+ export * from './command.ts';
20
+ export * from './context-menu.ts';
21
+ export * from './date-picker.ts';
22
+ export * from './dialog.ts';
23
+ export * from './drawer.ts';
24
+ export * from './dropdown-menu.ts';
25
+ export * from './empty.ts';
26
+ export * from './field.ts';
27
+ export * from './file-drop.ts';
28
+ export * from './focus.ts';
29
+ export * from './harness.ts';
30
+ export * from './heading.ts';
31
+ export * from './hero.ts';
32
+ export * from './hover-card.ts';
33
+ export * from './icon.ts';
34
+ export * from './input-group.ts';
35
+ export * from './input-otp.ts';
36
+ export * from './input.ts';
37
+ export * from './item.ts';
38
+ export * from './kbd.ts';
39
+ export * from './keys.ts';
40
+ export * from './label.ts';
41
+ export * from './layers.ts';
42
+ export * from './link.ts';
43
+ export * from './marker.ts';
44
+ export * from './menubar.ts';
45
+ export * from './message-scroller.ts';
46
+ export * from './message.ts';
47
+ export * from './native-form.ts';
48
+ export * from './native-select.ts';
49
+ export * from './navigation-menu.ts';
50
+ export * from './observers.ts';
51
+ export * from './pagination.ts';
52
+ export * from './pointer.ts';
53
+ export * from './popover.ts';
54
+ export * from './progress.ts';
55
+ export * from './questionnaire.ts';
56
+ export * from './radio-group.ts';
57
+ export * from './rating.ts';
58
+ export * from './resizable.ts';
59
+ export * from './routing.ts';
60
+ export * from './roving-focus.ts';
61
+ export * from './scroll-area.ts';
62
+ export * from './scroller.ts';
63
+ export * from './select.ts';
64
+ export * from './selectors.ts';
65
+ export * from './send-pointer.ts';
66
+ export * from './separator.ts';
67
+ export * from './shadowed.ts';
68
+ export * from './sheet.ts';
69
+ export * from './sidebar.ts';
70
+ export * from './skeleton.ts';
71
+ export * from './slider.ts';
72
+ export * from './spinner.ts';
73
+ export * from './sticky-footer.ts';
74
+ export * from './switch.ts';
75
+ export * from './table.ts';
76
+ export * from './tabs.ts';
77
+ export * from './test-hooks.ts';
78
+ export * from './textarea.ts';
79
+ export * from './toaster.ts';
80
+ export * from './toggle-group.ts';
81
+ export * from './toggle.ts';
82
+ export * from './tooltip.ts';
83
+ export * from './trace.ts';
84
+ export * from './translator.ts';
85
+ export * from './zoetrope.ts';
86
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,YAAY,CAAA;AAC1B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,aAAa,CAAA;AAC3B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAA;AAClC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}