@ngrok/mantle 0.94.0 → 0.95.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (615) hide show
  1. package/README.md +11 -2
  2. package/dist/CaretDown-MgTrjdYK.js +1 -0
  3. package/dist/CaretLeft-CZIqCyEF.js +1 -0
  4. package/dist/CaretRight-BKz4JHCI.js +1 -0
  5. package/dist/Check-C5a1hX4x.js +1 -0
  6. package/dist/CheckCircle-Bi4tSau6.js +1 -0
  7. package/dist/CircleNotch-BKE0NAIr.js +1 -0
  8. package/dist/Copy-BYWMO6PW.js +1 -0
  9. package/dist/Desktop-BaSlSeg2.js +1 -0
  10. package/dist/Eye-C38LQkZ_.js +1 -0
  11. package/dist/EyeClosed-BvOq-W8o.js +1 -0
  12. package/dist/FileText-CqAezJDn.js +1 -0
  13. package/dist/Info-weHV1B4q.js +1 -0
  14. package/dist/MagnifyingGlass-DCAoDH5_.js +1 -0
  15. package/dist/Megaphone-Cir2KHXa.js +1 -0
  16. package/dist/Minus-KBzmC4_K.js +1 -0
  17. package/dist/Moon-hn_oivM6.js +1 -0
  18. package/dist/Plus-D90-H9Ei.js +1 -0
  19. package/dist/Question-BhvEyO0K.js +1 -0
  20. package/dist/SidebarSimple-BXKgNz4l.js +1 -0
  21. package/dist/SortAscending-CEk4rgu_.js +1 -0
  22. package/dist/SortDescending-C0cE7hpU.js +1 -0
  23. package/dist/Sun-C3SaXdLl.js +1 -0
  24. package/dist/Terminal-aKZ6Y9Lk.js +1 -0
  25. package/dist/Warning-DTwF27_O.js +1 -0
  26. package/dist/WarningDiamond-BwpdVJ34.js +1 -0
  27. package/dist/X-BPGjP4b6.js +1 -0
  28. package/dist/accordion-BmDXs1-q.js +1 -0
  29. package/dist/accordion-NpJz3Uer.js +1 -0
  30. package/dist/accordion-parts.d.ts +268 -0
  31. package/dist/accordion-parts.js +1 -0
  32. package/dist/accordion.d.ts +8 -359
  33. package/dist/accordion.js +1 -1
  34. package/dist/agent.json +464 -92
  35. package/dist/alert-DCGSrVTa.js +1 -0
  36. package/dist/{alert-HffaioZM.d.ts → alert-Dz541Ve9.d.ts} +10 -196
  37. package/dist/alert-center-Bb39SBqJ.js +1 -0
  38. package/dist/alert-center-CGBbqO-y.d.ts +391 -0
  39. package/dist/alert-center-parts.d.ts +6 -0
  40. package/dist/alert-center-parts.js +1 -0
  41. package/dist/alert-center.d.ts +9 -590
  42. package/dist/alert-center.js +1 -1
  43. package/dist/alert-dialog-CtKnvX5N.js +1 -0
  44. package/dist/alert-dialog-parts.d.ts +569 -0
  45. package/dist/alert-dialog-parts.js +1 -0
  46. package/dist/alert-dialog.d.ts +3 -1054
  47. package/dist/alert-dialog.js +1 -1
  48. package/dist/alert-parts.d.ts +6 -0
  49. package/dist/alert-parts.js +1 -0
  50. package/dist/alert.d.ts +43 -1
  51. package/dist/alert.js +1 -1
  52. package/dist/anchor-DW5_Gb-1.js +1 -0
  53. package/dist/anchor.d.ts +6 -6
  54. package/dist/anchor.js +1 -1
  55. package/dist/app-layout-D7kwv9su.js +1 -0
  56. package/dist/app-layout-k6UjK30v.d.ts +1167 -0
  57. package/dist/app-layout-parts.d.ts +6 -0
  58. package/dist/app-layout-parts.js +1 -0
  59. package/dist/app-layout.d.ts +98 -1883
  60. package/dist/app-layout.js +1 -1
  61. package/dist/area-chart-C6lKu7Un.d.ts +390 -0
  62. package/dist/area-chart-SAaGaZFD.js +1 -0
  63. package/dist/area-chart-parts.d.ts +6 -0
  64. package/dist/area-chart-parts.js +1 -0
  65. package/dist/area-chart.d.ts +6 -581
  66. package/dist/area-chart.js +1 -1
  67. package/dist/avatar-BMZ81f_5.js +1 -0
  68. package/dist/avatar-Ti8GKSnS.d.ts +201 -0
  69. package/dist/avatar-parts.d.ts +6 -0
  70. package/dist/avatar-parts.js +1 -0
  71. package/dist/avatar.d.ts +5 -277
  72. package/dist/avatar.js +1 -1
  73. package/dist/badge.d.ts +10 -9
  74. package/dist/badge.js +1 -1
  75. package/dist/bar-chart-C0Ra1ZpG.js +1 -0
  76. package/dist/bar-chart-Cb5fA8V7.d.ts +386 -0
  77. package/dist/bar-chart-parts.d.ts +6 -0
  78. package/dist/bar-chart-parts.js +1 -0
  79. package/dist/bar-chart.d.ts +4 -583
  80. package/dist/bar-chart.js +1 -1
  81. package/dist/behaviors-BW8RjkkS.js +1 -0
  82. package/dist/behaviors-BbOq5SFv.js +1 -0
  83. package/dist/behaviors-C7R7ZIoN.js +1 -0
  84. package/dist/behaviors-CHF5PT3C.js +1 -0
  85. package/dist/behaviors-CSZQSSfL.js +1 -0
  86. package/dist/behaviors-CcjvGa0d.js +1 -0
  87. package/dist/behaviors-CnarRd47.js +1 -0
  88. package/dist/behaviors-CoNi6Rd-.js +1 -0
  89. package/dist/behaviors-D9VIyDk1.js +1 -0
  90. package/dist/behaviors-DHVC34f9.js +1 -0
  91. package/dist/behaviors-DkCIgQ8w.js +1 -0
  92. package/dist/behaviors-Mkc_HjTB.js +1 -0
  93. package/dist/breadcrumb-CAzq3SlR.js +1 -0
  94. package/dist/breadcrumb-parts.d.ts +287 -0
  95. package/dist/breadcrumb-parts.js +1 -0
  96. package/dist/breadcrumb.d.ts +65 -555
  97. package/dist/breadcrumb.js +1 -1
  98. package/dist/browser-only-CokCtIvB.js +1 -0
  99. package/dist/browser-only-ymFoM3Ya.js +1 -0
  100. package/dist/browser-only.js +1 -1
  101. package/dist/button-Bqm7U0OC.js +1 -0
  102. package/dist/{button-K0pKc3GN.d.ts → button-C6-6TecO.d.ts} +5 -5
  103. package/dist/{button-BGwOPjGV.d.ts → button-CL17Dxza.d.ts} +28 -25
  104. package/dist/button-CRCiBPEF.js +1 -0
  105. package/dist/{button-Cgf2IcEC.d.ts → button-CRMoQyum.d.ts} +27 -28
  106. package/dist/button-Cr2iY2cI.js +1 -0
  107. package/dist/button-DhoE-BbZ.js +1 -0
  108. package/dist/button.d.ts +3 -3
  109. package/dist/button.js +1 -1
  110. package/dist/calendar-DQtapcSC.js +1 -0
  111. package/dist/calendar.d.ts +1 -1
  112. package/dist/calendar.js +1 -1
  113. package/dist/card-DbtGVKyo.d.ts +129 -0
  114. package/dist/card-parts.d.ts +6 -0
  115. package/dist/card-parts.js +1 -0
  116. package/dist/card.d.ts +3 -228
  117. package/dist/card.js +1 -1
  118. package/dist/centered-layout-parts.d.ts +169 -0
  119. package/dist/centered-layout-parts.js +1 -0
  120. package/dist/centered-layout.d.ts +3 -300
  121. package/dist/centered-layout.js +1 -1
  122. package/dist/chart-B0n2xyYi.js +1 -0
  123. package/dist/chart-BPsMxs1f.js +1 -0
  124. package/dist/chart-BmZoTjRu.js +1 -0
  125. package/dist/chart-Bybyh2Dc.js +1 -0
  126. package/dist/chart-CACfdGlp.d.ts +86 -0
  127. package/dist/chart-CBQJUTIX.js +1 -0
  128. package/dist/chart-Cb0MBaZx.js +1 -0
  129. package/dist/chart-CmMcfDmv.js +1 -0
  130. package/dist/chart-Dlp9FidW.js +2 -0
  131. package/dist/{chart-jitNqimS.d.ts → chart-XvStK-oM.d.ts} +23 -99
  132. package/dist/chart-wTwYzUMJ.js +1 -0
  133. package/dist/checkbox-DH7WFfuR.js +1 -0
  134. package/dist/checkbox-DsVXD96X.js +1 -0
  135. package/dist/checkbox-TX74-Iep.js +1 -0
  136. package/dist/checkbox-group-parts.d.ts +197 -0
  137. package/dist/checkbox-group-parts.js +1 -0
  138. package/dist/checkbox.d.ts +60 -9
  139. package/dist/checkbox.js +1 -1
  140. package/dist/choice-BekuLm-b.d.ts +217 -0
  141. package/dist/choice-DGI8VNR9.d.ts +1 -0
  142. package/dist/choice-PDT386cc.js +1 -0
  143. package/dist/choice-parts.d.ts +7 -0
  144. package/dist/choice-parts.js +1 -0
  145. package/dist/choice.d.ts +63 -1
  146. package/dist/choice.js +1 -1
  147. package/dist/code-UKPv6LVP.js +1 -0
  148. package/dist/{code-block-W3kWPxCJ.js → code-block-B-xD4_RW.js} +1 -1
  149. package/dist/code-block-B7XPzZnp.js +1 -0
  150. package/dist/code-block-BXXceNVo.js +1 -0
  151. package/dist/code-block-C7uzLs8t.js +1 -0
  152. package/dist/{code-block-BGdV4Yty.d.ts → code-block-Cs1Lcmdr.d.ts} +82 -253
  153. package/dist/code-block-Erv7wuWW.d.ts +173 -0
  154. package/dist/code-block-parts.d.ts +380 -0
  155. package/dist/code-block-parts.js +1 -0
  156. package/dist/code-block.d.ts +66 -693
  157. package/dist/code-block.js +6 -6
  158. package/dist/code-block_highlight-utils.d.ts +2 -1
  159. package/dist/code-block_highlight-utils.js +1 -1
  160. package/dist/code.d.ts +4 -4
  161. package/dist/code.js +1 -1
  162. package/dist/combobox-6LXe1cLx.js +1 -0
  163. package/dist/combobox-parts.d.ts +303 -0
  164. package/dist/combobox-parts.js +1 -0
  165. package/dist/combobox.d.ts +5 -468
  166. package/dist/combobox.js +1 -1
  167. package/dist/command-B8L-zjGt.js +1 -0
  168. package/dist/command-CCMWCjAK.js +1 -0
  169. package/dist/command-VKj84zAX.d.ts +859 -0
  170. package/dist/command-cbgO9CiG.js +1 -0
  171. package/dist/command-parts.d.ts +6 -0
  172. package/dist/command-parts.js +1 -0
  173. package/dist/command.d.ts +91 -1135
  174. package/dist/command.js +1 -1
  175. package/dist/compose-refs-BdRUneoc.js +1 -0
  176. package/dist/compose-refs-Ce1vWUz0.js +1 -0
  177. package/dist/cx-CfAFHj5_.js +73 -0
  178. package/dist/cx-DhYnQ07J.js +1 -0
  179. package/dist/cx.d.ts +23 -17
  180. package/dist/cx.js +1 -1
  181. package/dist/{data-slot-B-LqAcBB.d.ts → data-slot-BW8KQ9Xo.d.ts} +2 -2
  182. package/dist/data-table-C-FgaN3_.js +1 -0
  183. package/dist/data-table-Cw9dUo1w.js +1 -0
  184. package/dist/data-table-CwqrMtp0.js +1 -0
  185. package/dist/data-table-GUbt8mzo.d.ts +38 -0
  186. package/dist/data-table-parts.d.ts +763 -0
  187. package/dist/data-table-parts.js +1 -0
  188. package/dist/data-table.d.ts +21 -1217
  189. package/dist/data-table.js +1 -1
  190. package/dist/description-list-CjcKOOnr.d.ts +110 -0
  191. package/dist/description-list-parts.d.ts +6 -0
  192. package/dist/description-list-parts.js +1 -0
  193. package/dist/description-list.d.ts +3 -183
  194. package/dist/description-list.js +1 -1
  195. package/dist/dialog-4Ed3U7hz.js +1 -0
  196. package/dist/dialog-BDb_obii.d.ts +166 -0
  197. package/dist/dialog-BaR9D58J.js +1 -0
  198. package/dist/dialog-BkNxAcol.d.ts +467 -0
  199. package/dist/dialog-DSYuhFD5.js +1 -0
  200. package/dist/dialog-fXMCxM9W.js +1 -0
  201. package/dist/dialog-parts.d.ts +6 -0
  202. package/dist/dialog-parts.js +1 -0
  203. package/dist/dialog.d.ts +88 -2
  204. package/dist/dialog.js +1 -1
  205. package/dist/dropdown-menu-BuluRn0Z.js +1 -0
  206. package/dist/dropdown-menu-CDXlp0QT.d.ts +507 -0
  207. package/dist/dropdown-menu-parts.d.ts +6 -0
  208. package/dist/dropdown-menu-parts.js +1 -0
  209. package/dist/dropdown-menu.d.ts +57 -1
  210. package/dist/dropdown-menu.js +1 -1
  211. package/dist/empty-parts.d.ts +120 -0
  212. package/dist/empty-parts.js +1 -0
  213. package/dist/empty.d.ts +2 -216
  214. package/dist/empty.js +1 -1
  215. package/dist/field-BRYypbjO.js +1 -0
  216. package/dist/field-BVMx7HoG.js +1 -0
  217. package/dist/field-BwCq1b9R.js +1 -0
  218. package/dist/field-CYAaNexp.js +1 -0
  219. package/dist/field-DRHAcM1s.js +1 -0
  220. package/dist/field-parts.d.ts +767 -0
  221. package/dist/field-parts.js +1 -0
  222. package/dist/field.d.ts +21 -1201
  223. package/dist/field.js +1 -1
  224. package/dist/flag.d.ts +3 -3
  225. package/dist/flag.js +1 -1
  226. package/dist/float-C_vwTtzU.js +1 -0
  227. package/dist/float-JmSzKDHd.js +1 -0
  228. package/dist/float-OhVY3cf4.js +1 -0
  229. package/dist/hooks-B-Cd15iL.js +1 -0
  230. package/dist/hooks-BP_uqBsI.js +1 -0
  231. package/dist/hooks-BeLOGKwE.js +1 -0
  232. package/dist/hooks-BsOjpTgs.js +1 -0
  233. package/dist/hooks-BybaGF7O.js +1 -0
  234. package/dist/hooks-C9b-2wGy.js +1 -0
  235. package/dist/hooks-CMmpICCH.js +1 -0
  236. package/dist/hooks-CUYIUcp6.js +1 -0
  237. package/dist/hooks-DKbOd_pQ.js +1 -0
  238. package/dist/hooks-DejuqCNF.js +1 -0
  239. package/dist/hooks-GsDfo7Zl.js +1 -0
  240. package/dist/hooks-PsYFJkz2.js +1 -0
  241. package/dist/hooks-lDz_S9UG.js +1 -0
  242. package/dist/hooks.d.ts +126 -17
  243. package/dist/hooks.js +1 -1
  244. package/dist/hover-card-BEC5EQiH.js +1 -0
  245. package/dist/hover-card-parts.d.ts +160 -0
  246. package/dist/hover-card-parts.js +1 -0
  247. package/dist/hover-card.d.ts +9 -281
  248. package/dist/hover-card.js +1 -1
  249. package/dist/{icon-CgNqu-fl.d.ts → icon--purqHRo.d.ts} +1 -1
  250. package/dist/icon-0RoVrpGj.js +1 -0
  251. package/dist/icon-BSGMvJ0W.js +1 -0
  252. package/dist/icon-DIiKxRTh.js +1 -0
  253. package/dist/{icon-DXDyhy2N.d.ts → icon-Dqn_LLrR.d.ts} +2 -2
  254. package/dist/{icon-NYvyyRMG.d.ts → icon-KTcDR4--.d.ts} +2 -2
  255. package/dist/icon.d.ts +3 -3
  256. package/dist/icon.js +1 -1
  257. package/dist/icons-CVgj9Whd.js +1 -0
  258. package/dist/icons-D_4cZaL1.js +1 -0
  259. package/dist/icons-DucrvIOa.js +1 -0
  260. package/dist/icons.d.ts +2 -2
  261. package/dist/icons.js +1 -1
  262. package/dist/{in-view-B3nMAzfE.d.ts → in-view-C_daNafg.d.ts} +4 -23
  263. package/dist/{index-KJ06KK6t.d.ts → index-CCkilmv8.d.ts} +1 -1
  264. package/dist/input-83xaPZWK.js +1 -0
  265. package/dist/input-B78ah4AB.js +1 -0
  266. package/dist/{input-q8o5uMhW.d.ts → input-Bvpu3ruQ.d.ts} +2 -2
  267. package/dist/input.d.ts +5 -5
  268. package/dist/input.js +1 -1
  269. package/dist/kbd-Bz_Rbpv8.js +1 -0
  270. package/dist/kbd.d.ts +5 -5
  271. package/dist/kbd.js +1 -1
  272. package/dist/{label-r2sJcSQ4.d.ts → label-DZpKu3Pu.d.ts} +8 -8
  273. package/dist/label-DmkAp9xI.js +1 -0
  274. package/dist/label.d.ts +1 -1
  275. package/dist/label.js +1 -1
  276. package/dist/layer-container-DDOZJ0fn.js +1 -0
  277. package/dist/layer-container.d.ts +11 -3
  278. package/dist/layer-container.js +1 -1
  279. package/dist/line-chart-CBL7eCqF.js +1 -0
  280. package/dist/line-chart-CIDFDkyb.d.ts +380 -0
  281. package/dist/line-chart-parts.d.ts +6 -0
  282. package/dist/line-chart-parts.js +1 -0
  283. package/dist/line-chart.d.ts +5 -569
  284. package/dist/line-chart.js +1 -1
  285. package/dist/list-CC3Pi__V.js +1 -0
  286. package/dist/list-Cx4KNfgC.d.ts +286 -0
  287. package/dist/list-FiFQJ0BU.js +1 -0
  288. package/dist/list-parts.d.ts +6 -0
  289. package/dist/list-parts.js +1 -0
  290. package/dist/list.d.ts +9 -406
  291. package/dist/list.js +1 -1
  292. package/dist/live-region-78gbKwlB.js +1 -0
  293. package/dist/live-region.d.ts +2 -2
  294. package/dist/live-region.js +1 -1
  295. package/dist/llms.txt +50 -26
  296. package/dist/main-9d96oUPG.js +1 -0
  297. package/dist/main.d.ts +1 -1
  298. package/dist/main.js +1 -1
  299. package/dist/mantle.css +1304 -910
  300. package/dist/media-object-parts.d.ts +65 -0
  301. package/dist/media-object-parts.js +1 -0
  302. package/dist/media-object.d.ts +5 -121
  303. package/dist/media-object.js +1 -1
  304. package/dist/migrations/0017-select-owned-behavior.yml +117 -0
  305. package/dist/migrations/0018-combobox-owned-behavior.yml +1661 -0
  306. package/dist/migrations/0019-multi-select-owned-behavior.yml +1414 -0
  307. package/dist/migrations/0020-native-floats.yml +823 -0
  308. package/dist/migrations/0021-native-radio-group.yml +397 -0
  309. package/dist/migrations/0024-command-owned-behavior.yml +66 -0
  310. package/dist/migrations/0026-native-dropdown-menu.yml +351 -0
  311. package/dist/migrations/0029-data-attribute-contract.yml +1707 -0
  312. package/dist/migrations/0030-between-variant.yml +1954 -0
  313. package/dist/multi-select-parts.d.ts +487 -0
  314. package/dist/multi-select-parts.js +1 -0
  315. package/dist/multi-select-qC0BuYKD.js +1 -0
  316. package/dist/multi-select.d.ts +6 -803
  317. package/dist/multi-select.js +1 -1
  318. package/dist/otp-input-LPdkb_Fg.js +1 -0
  319. package/dist/otp-input-parts.d.ts +211 -0
  320. package/dist/otp-input-parts.js +1 -0
  321. package/dist/otp-input-zl6MVio6.js +1 -0
  322. package/dist/otp-input.d.ts +11 -252
  323. package/dist/otp-input.js +1 -1
  324. package/dist/overlay-prompt-BIzMQvx7.js +1 -0
  325. package/dist/overlay-prompt-CDnhSoPJ.js +1 -0
  326. package/dist/overlay-prompt.d.ts +57 -0
  327. package/dist/overlay-prompt.js +1 -0
  328. package/dist/pagination-B2ESEbMI.d.ts +171 -0
  329. package/dist/pagination-CxaLKZcE.js +1 -0
  330. package/dist/pagination-Df1gTCN-.js +1 -0
  331. package/dist/pagination-cursor-pagination-parts.d.ts +6 -0
  332. package/dist/pagination-cursor-pagination-parts.js +1 -0
  333. package/dist/pagination.d.ts +39 -304
  334. package/dist/pagination.js +1 -1
  335. package/dist/popover-DOd6zLvE.d.ts +226 -0
  336. package/dist/popover-DWvHbepV.js +1 -0
  337. package/dist/popover-parts.d.ts +6 -0
  338. package/dist/popover-parts.js +1 -0
  339. package/dist/popover.d.ts +60 -2
  340. package/dist/popover.js +1 -1
  341. package/dist/position-Cv3XpSur.d.ts +5 -0
  342. package/dist/progress-BE0c8GW8.js +1 -0
  343. package/dist/progress-ZhFJhv9u.js +1 -0
  344. package/dist/progress-bar-parts.d.ts +86 -0
  345. package/dist/progress-bar-parts.js +1 -0
  346. package/dist/progress-donut-parts.d.ts +94 -0
  347. package/dist/progress-donut-parts.js +1 -0
  348. package/dist/progress-mJQMhxMX.js +1 -0
  349. package/dist/progress-zDpT3TY4.d.ts +2 -0
  350. package/dist/progress.d.ts +4 -268
  351. package/dist/progress.js +1 -1
  352. package/dist/qr-code-0zh10iIE.d.ts +148 -0
  353. package/dist/qr-code-BOOubA9x.js +1 -0
  354. package/dist/qr-code-D8tBKtjP.js +1 -0
  355. package/dist/qr-code-DzJjumoc.d.ts +46 -0
  356. package/dist/qr-code-encoder.browser.d.ts +15 -0
  357. package/dist/qr-code-encoder.browser.js +1 -0
  358. package/dist/qr-code-encoder.d.ts +15 -0
  359. package/dist/qr-code-encoder.js +1 -0
  360. package/dist/qr-code-parts.d.ts +6 -0
  361. package/dist/qr-code-parts.js +1 -0
  362. package/dist/qr-code.d.ts +4 -227
  363. package/dist/qr-code.js +1 -1
  364. package/dist/query-C0e5VYNp.d.ts +440 -0
  365. package/dist/query-V5NifJGs.js +1 -0
  366. package/dist/query-filter.d.ts +6 -6
  367. package/dist/query-filter.js +1 -1
  368. package/dist/query-parts.d.ts +6 -0
  369. package/dist/query-parts.js +1 -0
  370. package/dist/query.d.ts +5 -634
  371. package/dist/query.js +1 -1
  372. package/dist/radio-group-B9jtIbV1.d.ts +39 -0
  373. package/dist/radio-group-BliblUqe.js +1 -0
  374. package/dist/radio-group-f3ThXQCx.js +1 -0
  375. package/dist/radio-group-parts.d.ts +249 -0
  376. package/dist/radio-group-parts.js +1 -0
  377. package/dist/radio-group-zA5DjlLg.js +1 -0
  378. package/dist/radio-group.d.ts +7 -399
  379. package/dist/radio-group.js +1 -1
  380. package/dist/sandbar-Cm2yMjEZ.js +1 -0
  381. package/dist/sandbar-DU4wpKRc.d.ts +345 -0
  382. package/dist/sandbar-parts.d.ts +6 -0
  383. package/dist/sandbar-parts.js +1 -0
  384. package/dist/sandbar.d.ts +6 -441
  385. package/dist/sandbar.js +1 -1
  386. package/dist/sandboxed-on-click-Cg3lewoG.js +1 -0
  387. package/dist/sandboxed-on-click-DOw_Jkhk.js +1 -0
  388. package/dist/sandboxed-on-click.d.ts +1 -1
  389. package/dist/sandboxed-on-click.js +1 -1
  390. package/dist/scatter-plot-1vFxkpjT.js +1 -0
  391. package/dist/scatter-plot-D25jLIVw.d.ts +388 -0
  392. package/dist/scatter-plot-parts.d.ts +6 -0
  393. package/dist/scatter-plot-parts.js +1 -0
  394. package/dist/scatter-plot.d.ts +5 -575
  395. package/dist/scatter-plot.js +1 -1
  396. package/dist/segmented-control-DuiDPKDZ.js +1 -0
  397. package/dist/segmented-control-parts.d.ts +72 -0
  398. package/dist/segmented-control-parts.js +1 -0
  399. package/dist/segmented-control.d.ts +4 -100
  400. package/dist/segmented-control.js +1 -1
  401. package/dist/select-08IEtypH.js +1 -0
  402. package/dist/select-DM2wWfOO.d.ts +478 -0
  403. package/dist/select-parts.d.ts +6 -0
  404. package/dist/select-parts.js +1 -0
  405. package/dist/select.d.ts +63 -1
  406. package/dist/select.js +1 -1
  407. package/dist/selectable-list-Ax5F2Gz1.js +1 -0
  408. package/dist/selectable-list-CyLc3EEt.d.ts +407 -0
  409. package/dist/selectable-list-GcpbbRM1.js +1 -0
  410. package/dist/selectable-list-parts.d.ts +6 -0
  411. package/dist/selectable-list-parts.js +1 -0
  412. package/dist/selectable-list.d.ts +7 -647
  413. package/dist/selectable-list.js +1 -1
  414. package/dist/separator-BB1ohsjn.js +1 -0
  415. package/dist/{separator-QfH0ot5K.d.ts → separator-BzHNVyyv.d.ts} +2 -2
  416. package/dist/separator.d.ts +1 -1
  417. package/dist/separator.js +1 -1
  418. package/dist/sheet-5JgxVaWC.js +1 -0
  419. package/dist/sheet-parts.d.ts +732 -0
  420. package/dist/sheet-parts.js +1 -0
  421. package/dist/sheet-qYPi5MP8.js +1 -0
  422. package/dist/sheet.d.ts +11 -1208
  423. package/dist/sheet.js +1 -1
  424. package/dist/sidebar-CsC9fyPL.js +1 -0
  425. package/dist/sidebar-OBA7L42d.d.ts +1480 -0
  426. package/dist/sidebar-parts.d.ts +6 -0
  427. package/dist/sidebar-parts.js +1 -0
  428. package/dist/sidebar.d.ts +108 -2518
  429. package/dist/sidebar.js +1 -1
  430. package/dist/skeleton-DB0oQyAx.js +1 -0
  431. package/dist/skeleton.d.ts +5 -5
  432. package/dist/skeleton.js +1 -1
  433. package/dist/skip-to-main-link-BGhAWSqB.js +1 -0
  434. package/dist/skip-to-main-link.d.ts +1 -1
  435. package/dist/skip-to-main-link.js +1 -1
  436. package/dist/slider-YlBozcPQ.js +1 -0
  437. package/dist/slider.d.ts +150 -16
  438. package/dist/slider.js +1 -1
  439. package/dist/slot-5ZSmrISx.d.ts +19 -0
  440. package/dist/slot-BxngGBJ2.js +1 -0
  441. package/dist/slot-CBcGhRdV.js +1 -0
  442. package/dist/slot-tuk2J6bY.d.ts +50 -0
  443. package/dist/slot.d.ts +1 -1
  444. package/dist/slot.js +1 -1
  445. package/dist/source-all.css +5 -1
  446. package/dist/split-button-DvJHD7cZ.js +1 -0
  447. package/dist/split-button-parts.d.ts +178 -0
  448. package/dist/split-button-parts.js +1 -0
  449. package/dist/split-button.d.ts +2 -314
  450. package/dist/split-button.js +1 -1
  451. package/dist/strata-parts.d.ts +256 -0
  452. package/dist/strata-parts.js +1 -0
  453. package/dist/strata.d.ts +6 -495
  454. package/dist/strata.js +1 -1
  455. package/dist/{suggestions-NkqYTT49.d.ts → suggestions-BJeGvwDa.d.ts} +7 -7
  456. package/dist/switch-DajWYrq3.js +1 -0
  457. package/dist/switch.d.ts +37 -5
  458. package/dist/switch.js +1 -1
  459. package/dist/{table-rWiVWEgB.d.ts → table-C2KnE83u.d.ts} +6 -445
  460. package/dist/table-DJHK48-8.js +1 -0
  461. package/dist/table-parts.d.ts +6 -0
  462. package/dist/table-parts.js +1 -0
  463. package/dist/table.d.ts +81 -1
  464. package/dist/table.js +1 -1
  465. package/dist/tabs-36-4SlRo.js +1 -0
  466. package/dist/tabs-CC_HAqr4.d.ts +193 -0
  467. package/dist/tabs-DayeszXP.js +1 -0
  468. package/dist/tabs-headless-tabs-parts.d.ts +6 -0
  469. package/dist/tabs-headless-tabs-parts.js +1 -0
  470. package/dist/tabs-parts.d.ts +237 -0
  471. package/dist/tabs-parts.js +1 -0
  472. package/dist/tabs.d.ts +43 -420
  473. package/dist/tabs.js +1 -1
  474. package/dist/text-area-D29JTaZg.js +1 -0
  475. package/dist/text-area.d.ts +2 -2
  476. package/dist/text-area.js +1 -1
  477. package/dist/theme-D6rP5Fy8.js +1 -0
  478. package/dist/theme-switcher-PKMCyJxT.js +1 -0
  479. package/dist/theme-switcher.d.ts +26 -22
  480. package/dist/theme-switcher.js +1 -1
  481. package/dist/theme-xoFnLba6.js +1 -0
  482. package/dist/theme.d.ts +84 -77
  483. package/dist/theme.js +1 -1
  484. package/dist/time-zone-CpWYKHdp.js +1 -0
  485. package/dist/time-zone-DZ4hUJ8K.js +1 -0
  486. package/dist/time-zone.d.ts +190 -0
  487. package/dist/time-zone.js +1 -0
  488. package/dist/toast-BJZ__22c.js +1 -0
  489. package/dist/toast-Cb9IN-6e.d.ts +185 -0
  490. package/dist/toast-DM_oq-3E.js +1 -0
  491. package/dist/toast-parts.d.ts +6 -0
  492. package/dist/toast-parts.js +1 -0
  493. package/dist/toast.d.ts +7 -256
  494. package/dist/toast.js +1 -1
  495. package/dist/tokens.dark.json +3026 -0
  496. package/dist/tokens.json +4867 -0
  497. package/dist/tokens.resolver.json +37 -0
  498. package/dist/tooltip-D4HZn19B.js +1 -0
  499. package/dist/tooltip-DP6Lz6jv.d.ts +180 -0
  500. package/dist/tooltip-Uy-kz0rK.d.ts +1 -0
  501. package/dist/tooltip-parts.d.ts +7 -0
  502. package/dist/tooltip-parts.js +1 -0
  503. package/dist/tooltip.d.ts +57 -1
  504. package/dist/tooltip.js +1 -1
  505. package/dist/truncated-text-B5u2AlNg.js +1 -0
  506. package/dist/truncated-text-BoXHP-cD.js +1 -0
  507. package/dist/truncated-text.d.ts +4 -6
  508. package/dist/truncated-text.js +1 -1
  509. package/dist/types.d.ts +1 -1
  510. package/dist/types.js +1 -1
  511. package/dist/typography-C2BmSH12.d.ts +148 -0
  512. package/dist/typography-parts.d.ts +6 -0
  513. package/dist/typography-parts.js +1 -0
  514. package/dist/typography.d.ts +52 -0
  515. package/dist/typography.js +1 -0
  516. package/dist/use-combobox-OhIEVioc.d.ts +23 -0
  517. package/dist/use-float-WEqqhXBE.d.ts +18 -0
  518. package/dist/use-listbox-D4uIonSN.d.ts +1 -0
  519. package/dist/utils-BN3rwHzz.js +1 -0
  520. package/dist/utils-BlLYcYik.js +1 -0
  521. package/dist/utils-C4astHJG.js +1 -0
  522. package/dist/utils-CPSttKPD.js +1 -0
  523. package/dist/{copy-to-clipboard-DInu78k_.js → utils-Dd83caRw.js} +1 -1
  524. package/dist/utils.d.ts +1 -1
  525. package/dist/utils.js +1 -1
  526. package/dist/visually-hidden.d.ts +2 -2
  527. package/dist/visually-hidden.js +1 -1
  528. package/dist/well.d.ts +2 -2
  529. package/dist/well.js +1 -1
  530. package/dist/world-map-BDd3N_Ap.d.ts +424 -0
  531. package/dist/world-map-D3c8Pq-h.js +1 -0
  532. package/dist/world-map-parts.d.ts +6 -0
  533. package/dist/world-map-parts.js +1 -0
  534. package/dist/world-map-t9U-IMKS.js +1 -0
  535. package/dist/world-map.d.ts +80 -0
  536. package/dist/world-map.js +1 -0
  537. package/package.json +30 -19
  538. package/dist/alert-CH99Rw-R.js +0 -1
  539. package/dist/anchor-CgcbWEUs.js +0 -1
  540. package/dist/browser-only-BTSrYWLj.js +0 -1
  541. package/dist/button-69InNC_m.js +0 -1
  542. package/dist/button-BQZ6eoD3.js +0 -1
  543. package/dist/button-BWGUuWnu.js +0 -1
  544. package/dist/button-Cu9e3SM7.js +0 -1
  545. package/dist/chart-BO9EwQ60.js +0 -1
  546. package/dist/chart-CE5Uaqz9.js +0 -1
  547. package/dist/chart-DCTGGlWL.js +0 -1
  548. package/dist/chart-DudCw24t.js +0 -2
  549. package/dist/checkbox-CS504fKk.js +0 -1
  550. package/dist/choice-BwfmbepO.d.ts +0 -405
  551. package/dist/choice-uyYccm0A.js +0 -1
  552. package/dist/clsx-DUGZgXfJ.js +0 -1
  553. package/dist/clsx-Dj3RWZ2l.js +0 -1
  554. package/dist/code-DUJzSl4K.js +0 -1
  555. package/dist/compose-refs-sFdxsL7k.js +0 -1
  556. package/dist/cx-CK7o_rVv.js +0 -1
  557. package/dist/dialog-B9JAGy_x.d.ts +0 -28
  558. package/dist/dialog-CsugEt2A.js +0 -1
  559. package/dist/dialog-DD5H3EH1.d.ts +0 -942
  560. package/dist/dropdown-menu-DHdgaw4P.js +0 -1
  561. package/dist/dropdown-menu-DmDxYPde.d.ts +0 -775
  562. package/dist/field-Bihblt8U.js +0 -1
  563. package/dist/field-CPvjazWN.js +0 -1
  564. package/dist/icon-BudQMD2S.js +0 -1
  565. package/dist/icon-kK0c-POG.js +0 -1
  566. package/dist/icons-4JA-SGfv.js +0 -1
  567. package/dist/icons-CDLz5lpI.js +0 -1
  568. package/dist/icons-CSwTVV2m.js +0 -1
  569. package/dist/input-DHovzBjS.js +0 -1
  570. package/dist/input-DQyN6gN0.js +0 -1
  571. package/dist/interactive-target-BXScNeOr.js +0 -1
  572. package/dist/kbd-CLHsJ99p.js +0 -1
  573. package/dist/label-DmDwzPD8.js +0 -1
  574. package/dist/layer-container-kEQiE4zV.js +0 -1
  575. package/dist/list-CO_yLdln.js +0 -1
  576. package/dist/live-region-DQ1QLv3L.js +0 -1
  577. package/dist/main-CC1L9IsH.js +0 -1
  578. package/dist/popover-BhTFutCz.d.ts +0 -1
  579. package/dist/popover-DxOqLKxy.js +0 -1
  580. package/dist/popover-lwkwWcRW.d.ts +0 -291
  581. package/dist/primitive-Dz9Al-us.js +0 -1
  582. package/dist/radio-group-jj2abc0t.js +0 -1
  583. package/dist/radio-group-sLz5AA9I.d.ts +0 -27
  584. package/dist/sandboxed-on-click-C7pPu-2M.js +0 -1
  585. package/dist/select-BqmpVJJT.d.ts +0 -890
  586. package/dist/select-C6Su0dU0.js +0 -1
  587. package/dist/separator-DfzxVutO.js +0 -1
  588. package/dist/shake-DL6WhMXM.js +0 -1
  589. package/dist/sheet-Bd2LIhzF.js +0 -1
  590. package/dist/skeleton-DBpI-ko5.js +0 -1
  591. package/dist/slot-D12N_fZJ.d.ts +0 -67
  592. package/dist/slot-DdYN1L1C.js +0 -1
  593. package/dist/table-CFHiDBW8.js +0 -1
  594. package/dist/theme-DdZgLvKH.js +0 -1
  595. package/dist/tooltip-CpK3XTor.d.ts +0 -283
  596. package/dist/tooltip-b6oiTaWq.js +0 -1
  597. package/dist/use-breakpoint--mo7kr9d.js +0 -1
  598. package/dist/use-callback-ref-BvVyI5K1.js +0 -1
  599. package/dist/use-copy-to-clipboard-Dy_0Qzb7.js +0 -1
  600. package/dist/use-inert-siblings-CNmNuS2h.js +0 -1
  601. package/dist/use-is-apple-platform-D4nifHMx.js +0 -1
  602. package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +0 -1
  603. package/dist/use-isomorphic-layout-effect-CLSmHzo4.js +0 -1
  604. package/dist/use-matches-media-query-m860lols.js +0 -1
  605. package/dist/use-prefers-reduced-motion-CU6mWmOe.js +0 -1
  606. package/dist/use-swipe-to-dismiss-i__cTF2v.js +0 -1
  607. /package/dist/{suggestions-Ciz2vaJO.js → query-filter-Ciz2vaJO.js} +0 -0
  608. /package/dist/{radio-group-HDVxTNPi.js → sidebar-HDVxTNPi.js} +0 -0
  609. /package/dist/{direction-CvDpql3O.js → sorting-CvDpql3O.js} +0 -0
  610. /package/dist/{booleanish-BfvnW6vy.js → types-BfvnW6vy.js} +0 -0
  611. /package/dist/{css-properties-D85fCNV3.js → types-D85fCNV3.js} +0 -0
  612. /package/dist/{alternate-announcement-BkH4bOKp.js → utils-BkH4bOKp.js} +0 -0
  613. /package/dist/{in-view-Dxv_GrUU.js → utils-Dxv_GrUU.js} +0 -0
  614. /package/dist/{data-slot-EM6s2WEU.js → utils-EM6s2WEU.js} +0 -0
  615. /package/dist/{cookie-ca4g5CKp.js → utils-ca4g5CKp.js} +0 -0
@@ -0,0 +1,1661 @@
1
+ # Every rule binds the local name of the Combobox import from
2
+ # `@ngrok/mantle/combobox`, so an aliased import matches and another library's
3
+ # `Combobox` does not.
4
+ id: combobox-root-selected-value
5
+ language: tsx
6
+ message: Combobox.Root takes value in place of selectedValue
7
+ utils:
8
+ scope:
9
+ any:
10
+ - kind: statement_block
11
+ - kind: function_declaration
12
+ - kind: generator_function_declaration
13
+ - kind: function_expression
14
+ - kind: generator_function
15
+ - kind: arrow_function
16
+ - kind: method_definition
17
+ - kind: class_body
18
+ - kind: class
19
+ - kind: for_statement
20
+ - kind: for_in_statement
21
+ - kind: catch_clause
22
+ # An identifier in a binding position: a parameter, a destructured name, a
23
+ # local variable, a function name, or a class name.
24
+ binding-name:
25
+ any:
26
+ - kind: shorthand_property_identifier_pattern
27
+ - kind: identifier
28
+ any:
29
+ - inside: { kind: variable_declarator, field: name }
30
+ - inside: { kind: function_declaration, field: name }
31
+ - inside: { kind: generator_function_declaration, field: name }
32
+ - inside: { kind: function_expression, field: name }
33
+ - inside: { kind: required_parameter, field: pattern }
34
+ - inside: { kind: optional_parameter, field: pattern }
35
+ - inside: { kind: assignment_pattern, field: left }
36
+ - inside: { kind: pair_pattern, field: value }
37
+ - inside: { kind: array_pattern }
38
+ - inside: { kind: rest_pattern }
39
+ - inside: { kind: arrow_function, field: parameter }
40
+ - inside: { kind: catch_clause, field: parameter }
41
+ - kind: type_identifier
42
+ any:
43
+ - inside: { kind: class_declaration, field: name }
44
+ - inside: { kind: class, field: name }
45
+ # A function declaration opens a scope, so the search above stops at it and
46
+ # never reads its name. This matches the declaration itself instead.
47
+ function-declaration:
48
+ any:
49
+ - kind: function_declaration
50
+ - kind: generator_function_declaration
51
+ combobox-import:
52
+ kind: import_statement
53
+ all:
54
+ - has:
55
+ field: source
56
+ regex: ^["']@ngrok/mantle/combobox["']$
57
+ - has:
58
+ stopBy: end
59
+ kind: import_specifier
60
+ has:
61
+ field: name
62
+ regex: ^Combobox$
63
+ any:
64
+ - kind: import_specifier
65
+ has:
66
+ field: alias
67
+ pattern: $COMBOBOX
68
+ - kind: import_specifier
69
+ not:
70
+ has:
71
+ field: alias
72
+ kind: identifier
73
+ has:
74
+ field: name
75
+ pattern: $COMBOBOX
76
+ combobox-root:
77
+ any:
78
+ - kind: jsx_opening_element
79
+ - kind: jsx_self_closing_element
80
+ has:
81
+ field: name
82
+ kind: member_expression
83
+ all:
84
+ - has:
85
+ field: object
86
+ pattern: $COMBOBOX
87
+ - has:
88
+ field: property
89
+ regex: ^Root$
90
+ - inside:
91
+ stopBy: end
92
+ kind: program
93
+ has:
94
+ matches: combobox-import
95
+ # Why: a parameter or a local under the import's name shadows it, and the
96
+ # rules cannot tell which binding the element reads.
97
+ - not:
98
+ inside:
99
+ stopBy: end
100
+ matches: scope
101
+ has:
102
+ stopBy:
103
+ matches: scope
104
+ any:
105
+ - matches: binding-name
106
+ pattern: $COMBOBOX
107
+ - matches: function-declaration
108
+ has:
109
+ field: name
110
+ pattern: $COMBOBOX
111
+ rule:
112
+ kind: property_identifier
113
+ regex: ^selectedValue$
114
+ inside:
115
+ kind: jsx_attribute
116
+ inside:
117
+ matches: combobox-root
118
+ fix: value
119
+ ---
120
+ id: combobox-root-default-selected-value
121
+ language: tsx
122
+ message: Combobox.Root takes defaultValue in place of defaultSelectedValue
123
+ utils:
124
+ scope:
125
+ any:
126
+ - kind: statement_block
127
+ - kind: function_declaration
128
+ - kind: generator_function_declaration
129
+ - kind: function_expression
130
+ - kind: generator_function
131
+ - kind: arrow_function
132
+ - kind: method_definition
133
+ - kind: class_body
134
+ - kind: class
135
+ - kind: for_statement
136
+ - kind: for_in_statement
137
+ - kind: catch_clause
138
+ # An identifier in a binding position: a parameter, a destructured name, a
139
+ # local variable, a function name, or a class name.
140
+ binding-name:
141
+ any:
142
+ - kind: shorthand_property_identifier_pattern
143
+ - kind: identifier
144
+ any:
145
+ - inside: { kind: variable_declarator, field: name }
146
+ - inside: { kind: function_declaration, field: name }
147
+ - inside: { kind: generator_function_declaration, field: name }
148
+ - inside: { kind: function_expression, field: name }
149
+ - inside: { kind: required_parameter, field: pattern }
150
+ - inside: { kind: optional_parameter, field: pattern }
151
+ - inside: { kind: assignment_pattern, field: left }
152
+ - inside: { kind: pair_pattern, field: value }
153
+ - inside: { kind: array_pattern }
154
+ - inside: { kind: rest_pattern }
155
+ - inside: { kind: arrow_function, field: parameter }
156
+ - inside: { kind: catch_clause, field: parameter }
157
+ - kind: type_identifier
158
+ any:
159
+ - inside: { kind: class_declaration, field: name }
160
+ - inside: { kind: class, field: name }
161
+ # A function declaration opens a scope, so the search above stops at it and
162
+ # never reads its name. This matches the declaration itself instead.
163
+ function-declaration:
164
+ any:
165
+ - kind: function_declaration
166
+ - kind: generator_function_declaration
167
+ combobox-import:
168
+ kind: import_statement
169
+ all:
170
+ - has:
171
+ field: source
172
+ regex: ^["']@ngrok/mantle/combobox["']$
173
+ - has:
174
+ stopBy: end
175
+ kind: import_specifier
176
+ has:
177
+ field: name
178
+ regex: ^Combobox$
179
+ any:
180
+ - kind: import_specifier
181
+ has:
182
+ field: alias
183
+ pattern: $COMBOBOX
184
+ - kind: import_specifier
185
+ not:
186
+ has:
187
+ field: alias
188
+ kind: identifier
189
+ has:
190
+ field: name
191
+ pattern: $COMBOBOX
192
+ combobox-root:
193
+ any:
194
+ - kind: jsx_opening_element
195
+ - kind: jsx_self_closing_element
196
+ has:
197
+ field: name
198
+ kind: member_expression
199
+ all:
200
+ - has:
201
+ field: object
202
+ pattern: $COMBOBOX
203
+ - has:
204
+ field: property
205
+ regex: ^Root$
206
+ - inside:
207
+ stopBy: end
208
+ kind: program
209
+ has:
210
+ matches: combobox-import
211
+ # Why: a parameter or a local under the import's name shadows it, and the
212
+ # rules cannot tell which binding the element reads.
213
+ - not:
214
+ inside:
215
+ stopBy: end
216
+ matches: scope
217
+ has:
218
+ stopBy:
219
+ matches: scope
220
+ any:
221
+ - matches: binding-name
222
+ pattern: $COMBOBOX
223
+ - matches: function-declaration
224
+ has:
225
+ field: name
226
+ pattern: $COMBOBOX
227
+ rule:
228
+ kind: property_identifier
229
+ regex: ^defaultSelectedValue$
230
+ inside:
231
+ kind: jsx_attribute
232
+ inside:
233
+ matches: combobox-root
234
+ fix: defaultValue
235
+ ---
236
+ id: combobox-root-set-selected-value
237
+ language: tsx
238
+ message: Combobox.Root takes onValueChange in place of setSelectedValue
239
+ utils:
240
+ scope:
241
+ any:
242
+ - kind: statement_block
243
+ - kind: function_declaration
244
+ - kind: generator_function_declaration
245
+ - kind: function_expression
246
+ - kind: generator_function
247
+ - kind: arrow_function
248
+ - kind: method_definition
249
+ - kind: class_body
250
+ - kind: class
251
+ - kind: for_statement
252
+ - kind: for_in_statement
253
+ - kind: catch_clause
254
+ # An identifier in a binding position: a parameter, a destructured name, a
255
+ # local variable, a function name, or a class name.
256
+ binding-name:
257
+ any:
258
+ - kind: shorthand_property_identifier_pattern
259
+ - kind: identifier
260
+ any:
261
+ - inside: { kind: variable_declarator, field: name }
262
+ - inside: { kind: function_declaration, field: name }
263
+ - inside: { kind: generator_function_declaration, field: name }
264
+ - inside: { kind: function_expression, field: name }
265
+ - inside: { kind: required_parameter, field: pattern }
266
+ - inside: { kind: optional_parameter, field: pattern }
267
+ - inside: { kind: assignment_pattern, field: left }
268
+ - inside: { kind: pair_pattern, field: value }
269
+ - inside: { kind: array_pattern }
270
+ - inside: { kind: rest_pattern }
271
+ - inside: { kind: arrow_function, field: parameter }
272
+ - inside: { kind: catch_clause, field: parameter }
273
+ - kind: type_identifier
274
+ any:
275
+ - inside: { kind: class_declaration, field: name }
276
+ - inside: { kind: class, field: name }
277
+ # A function declaration opens a scope, so the search above stops at it and
278
+ # never reads its name. This matches the declaration itself instead.
279
+ function-declaration:
280
+ any:
281
+ - kind: function_declaration
282
+ - kind: generator_function_declaration
283
+ combobox-import:
284
+ kind: import_statement
285
+ all:
286
+ - has:
287
+ field: source
288
+ regex: ^["']@ngrok/mantle/combobox["']$
289
+ - has:
290
+ stopBy: end
291
+ kind: import_specifier
292
+ has:
293
+ field: name
294
+ regex: ^Combobox$
295
+ any:
296
+ - kind: import_specifier
297
+ has:
298
+ field: alias
299
+ pattern: $COMBOBOX
300
+ - kind: import_specifier
301
+ not:
302
+ has:
303
+ field: alias
304
+ kind: identifier
305
+ has:
306
+ field: name
307
+ pattern: $COMBOBOX
308
+ combobox-root:
309
+ any:
310
+ - kind: jsx_opening_element
311
+ - kind: jsx_self_closing_element
312
+ has:
313
+ field: name
314
+ kind: member_expression
315
+ all:
316
+ - has:
317
+ field: object
318
+ pattern: $COMBOBOX
319
+ - has:
320
+ field: property
321
+ regex: ^Root$
322
+ - inside:
323
+ stopBy: end
324
+ kind: program
325
+ has:
326
+ matches: combobox-import
327
+ # Why: a parameter or a local under the import's name shadows it, and the
328
+ # rules cannot tell which binding the element reads.
329
+ - not:
330
+ inside:
331
+ stopBy: end
332
+ matches: scope
333
+ has:
334
+ stopBy:
335
+ matches: scope
336
+ any:
337
+ - matches: binding-name
338
+ pattern: $COMBOBOX
339
+ - matches: function-declaration
340
+ has:
341
+ field: name
342
+ pattern: $COMBOBOX
343
+ rule:
344
+ kind: property_identifier
345
+ regex: ^setSelectedValue$
346
+ inside:
347
+ kind: jsx_attribute
348
+ inside:
349
+ matches: combobox-root
350
+ fix: onValueChange
351
+ ---
352
+ id: combobox-root-set-value
353
+ language: tsx
354
+ message: Combobox.Root takes onInputValueChange in place of setValue
355
+ utils:
356
+ scope:
357
+ any:
358
+ - kind: statement_block
359
+ - kind: function_declaration
360
+ - kind: generator_function_declaration
361
+ - kind: function_expression
362
+ - kind: generator_function
363
+ - kind: arrow_function
364
+ - kind: method_definition
365
+ - kind: class_body
366
+ - kind: class
367
+ - kind: for_statement
368
+ - kind: for_in_statement
369
+ - kind: catch_clause
370
+ # An identifier in a binding position: a parameter, a destructured name, a
371
+ # local variable, a function name, or a class name.
372
+ binding-name:
373
+ any:
374
+ - kind: shorthand_property_identifier_pattern
375
+ - kind: identifier
376
+ any:
377
+ - inside: { kind: variable_declarator, field: name }
378
+ - inside: { kind: function_declaration, field: name }
379
+ - inside: { kind: generator_function_declaration, field: name }
380
+ - inside: { kind: function_expression, field: name }
381
+ - inside: { kind: required_parameter, field: pattern }
382
+ - inside: { kind: optional_parameter, field: pattern }
383
+ - inside: { kind: assignment_pattern, field: left }
384
+ - inside: { kind: pair_pattern, field: value }
385
+ - inside: { kind: array_pattern }
386
+ - inside: { kind: rest_pattern }
387
+ - inside: { kind: arrow_function, field: parameter }
388
+ - inside: { kind: catch_clause, field: parameter }
389
+ - kind: type_identifier
390
+ any:
391
+ - inside: { kind: class_declaration, field: name }
392
+ - inside: { kind: class, field: name }
393
+ # A function declaration opens a scope, so the search above stops at it and
394
+ # never reads its name. This matches the declaration itself instead.
395
+ function-declaration:
396
+ any:
397
+ - kind: function_declaration
398
+ - kind: generator_function_declaration
399
+ combobox-import:
400
+ kind: import_statement
401
+ all:
402
+ - has:
403
+ field: source
404
+ regex: ^["']@ngrok/mantle/combobox["']$
405
+ - has:
406
+ stopBy: end
407
+ kind: import_specifier
408
+ has:
409
+ field: name
410
+ regex: ^Combobox$
411
+ any:
412
+ - kind: import_specifier
413
+ has:
414
+ field: alias
415
+ pattern: $COMBOBOX
416
+ - kind: import_specifier
417
+ not:
418
+ has:
419
+ field: alias
420
+ kind: identifier
421
+ has:
422
+ field: name
423
+ pattern: $COMBOBOX
424
+ combobox-root:
425
+ any:
426
+ - kind: jsx_opening_element
427
+ - kind: jsx_self_closing_element
428
+ has:
429
+ field: name
430
+ kind: member_expression
431
+ all:
432
+ - has:
433
+ field: object
434
+ pattern: $COMBOBOX
435
+ - has:
436
+ field: property
437
+ regex: ^Root$
438
+ - inside:
439
+ stopBy: end
440
+ kind: program
441
+ has:
442
+ matches: combobox-import
443
+ # Why: a parameter or a local under the import's name shadows it, and the
444
+ # rules cannot tell which binding the element reads.
445
+ - not:
446
+ inside:
447
+ stopBy: end
448
+ matches: scope
449
+ has:
450
+ stopBy:
451
+ matches: scope
452
+ any:
453
+ - matches: binding-name
454
+ pattern: $COMBOBOX
455
+ - matches: function-declaration
456
+ has:
457
+ field: name
458
+ pattern: $COMBOBOX
459
+ rule:
460
+ kind: property_identifier
461
+ regex: ^setValue$
462
+ inside:
463
+ kind: jsx_attribute
464
+ inside:
465
+ matches: combobox-root
466
+ fix: onInputValueChange
467
+ ---
468
+ id: combobox-root-set-input-value
469
+ language: tsx
470
+ message: Combobox.Root takes onInputValueChange in place of setInputValue
471
+ utils:
472
+ scope:
473
+ any:
474
+ - kind: statement_block
475
+ - kind: function_declaration
476
+ - kind: generator_function_declaration
477
+ - kind: function_expression
478
+ - kind: generator_function
479
+ - kind: arrow_function
480
+ - kind: method_definition
481
+ - kind: class_body
482
+ - kind: class
483
+ - kind: for_statement
484
+ - kind: for_in_statement
485
+ - kind: catch_clause
486
+ # An identifier in a binding position: a parameter, a destructured name, a
487
+ # local variable, a function name, or a class name.
488
+ binding-name:
489
+ any:
490
+ - kind: shorthand_property_identifier_pattern
491
+ - kind: identifier
492
+ any:
493
+ - inside: { kind: variable_declarator, field: name }
494
+ - inside: { kind: function_declaration, field: name }
495
+ - inside: { kind: generator_function_declaration, field: name }
496
+ - inside: { kind: function_expression, field: name }
497
+ - inside: { kind: required_parameter, field: pattern }
498
+ - inside: { kind: optional_parameter, field: pattern }
499
+ - inside: { kind: assignment_pattern, field: left }
500
+ - inside: { kind: pair_pattern, field: value }
501
+ - inside: { kind: array_pattern }
502
+ - inside: { kind: rest_pattern }
503
+ - inside: { kind: arrow_function, field: parameter }
504
+ - inside: { kind: catch_clause, field: parameter }
505
+ - kind: type_identifier
506
+ any:
507
+ - inside: { kind: class_declaration, field: name }
508
+ - inside: { kind: class, field: name }
509
+ # A function declaration opens a scope, so the search above stops at it and
510
+ # never reads its name. This matches the declaration itself instead.
511
+ function-declaration:
512
+ any:
513
+ - kind: function_declaration
514
+ - kind: generator_function_declaration
515
+ combobox-import:
516
+ kind: import_statement
517
+ all:
518
+ - has:
519
+ field: source
520
+ regex: ^["']@ngrok/mantle/combobox["']$
521
+ - has:
522
+ stopBy: end
523
+ kind: import_specifier
524
+ has:
525
+ field: name
526
+ regex: ^Combobox$
527
+ any:
528
+ - kind: import_specifier
529
+ has:
530
+ field: alias
531
+ pattern: $COMBOBOX
532
+ - kind: import_specifier
533
+ not:
534
+ has:
535
+ field: alias
536
+ kind: identifier
537
+ has:
538
+ field: name
539
+ pattern: $COMBOBOX
540
+ combobox-root:
541
+ any:
542
+ - kind: jsx_opening_element
543
+ - kind: jsx_self_closing_element
544
+ has:
545
+ field: name
546
+ kind: member_expression
547
+ all:
548
+ - has:
549
+ field: object
550
+ pattern: $COMBOBOX
551
+ - has:
552
+ field: property
553
+ regex: ^Root$
554
+ - inside:
555
+ stopBy: end
556
+ kind: program
557
+ has:
558
+ matches: combobox-import
559
+ # Why: a parameter or a local under the import's name shadows it, and the
560
+ # rules cannot tell which binding the element reads.
561
+ - not:
562
+ inside:
563
+ stopBy: end
564
+ matches: scope
565
+ has:
566
+ stopBy:
567
+ matches: scope
568
+ any:
569
+ - matches: binding-name
570
+ pattern: $COMBOBOX
571
+ - matches: function-declaration
572
+ has:
573
+ field: name
574
+ pattern: $COMBOBOX
575
+ rule:
576
+ kind: property_identifier
577
+ regex: ^setInputValue$
578
+ inside:
579
+ kind: jsx_attribute
580
+ inside:
581
+ matches: combobox-root
582
+ fix: onInputValueChange
583
+ ---
584
+ id: combobox-root-set-open
585
+ language: tsx
586
+ message: Combobox.Root takes onOpenChange in place of setOpen
587
+ utils:
588
+ scope:
589
+ any:
590
+ - kind: statement_block
591
+ - kind: function_declaration
592
+ - kind: generator_function_declaration
593
+ - kind: function_expression
594
+ - kind: generator_function
595
+ - kind: arrow_function
596
+ - kind: method_definition
597
+ - kind: class_body
598
+ - kind: class
599
+ - kind: for_statement
600
+ - kind: for_in_statement
601
+ - kind: catch_clause
602
+ # An identifier in a binding position: a parameter, a destructured name, a
603
+ # local variable, a function name, or a class name.
604
+ binding-name:
605
+ any:
606
+ - kind: shorthand_property_identifier_pattern
607
+ - kind: identifier
608
+ any:
609
+ - inside: { kind: variable_declarator, field: name }
610
+ - inside: { kind: function_declaration, field: name }
611
+ - inside: { kind: generator_function_declaration, field: name }
612
+ - inside: { kind: function_expression, field: name }
613
+ - inside: { kind: required_parameter, field: pattern }
614
+ - inside: { kind: optional_parameter, field: pattern }
615
+ - inside: { kind: assignment_pattern, field: left }
616
+ - inside: { kind: pair_pattern, field: value }
617
+ - inside: { kind: array_pattern }
618
+ - inside: { kind: rest_pattern }
619
+ - inside: { kind: arrow_function, field: parameter }
620
+ - inside: { kind: catch_clause, field: parameter }
621
+ - kind: type_identifier
622
+ any:
623
+ - inside: { kind: class_declaration, field: name }
624
+ - inside: { kind: class, field: name }
625
+ # A function declaration opens a scope, so the search above stops at it and
626
+ # never reads its name. This matches the declaration itself instead.
627
+ function-declaration:
628
+ any:
629
+ - kind: function_declaration
630
+ - kind: generator_function_declaration
631
+ combobox-import:
632
+ kind: import_statement
633
+ all:
634
+ - has:
635
+ field: source
636
+ regex: ^["']@ngrok/mantle/combobox["']$
637
+ - has:
638
+ stopBy: end
639
+ kind: import_specifier
640
+ has:
641
+ field: name
642
+ regex: ^Combobox$
643
+ any:
644
+ - kind: import_specifier
645
+ has:
646
+ field: alias
647
+ pattern: $COMBOBOX
648
+ - kind: import_specifier
649
+ not:
650
+ has:
651
+ field: alias
652
+ kind: identifier
653
+ has:
654
+ field: name
655
+ pattern: $COMBOBOX
656
+ combobox-root:
657
+ any:
658
+ - kind: jsx_opening_element
659
+ - kind: jsx_self_closing_element
660
+ has:
661
+ field: name
662
+ kind: member_expression
663
+ all:
664
+ - has:
665
+ field: object
666
+ pattern: $COMBOBOX
667
+ - has:
668
+ field: property
669
+ regex: ^Root$
670
+ - inside:
671
+ stopBy: end
672
+ kind: program
673
+ has:
674
+ matches: combobox-import
675
+ # Why: a parameter or a local under the import's name shadows it, and the
676
+ # rules cannot tell which binding the element reads.
677
+ - not:
678
+ inside:
679
+ stopBy: end
680
+ matches: scope
681
+ has:
682
+ stopBy:
683
+ matches: scope
684
+ any:
685
+ - matches: binding-name
686
+ pattern: $COMBOBOX
687
+ - matches: function-declaration
688
+ has:
689
+ field: name
690
+ pattern: $COMBOBOX
691
+ rule:
692
+ kind: property_identifier
693
+ regex: ^setOpen$
694
+ inside:
695
+ kind: jsx_attribute
696
+ inside:
697
+ matches: combobox-root
698
+ fix: onOpenChange
699
+ ---
700
+ id: combobox-root-value-text
701
+ language: tsx
702
+ message: Combobox.Root takes inputValue for the text in place of value
703
+ utils:
704
+ scope:
705
+ any:
706
+ - kind: statement_block
707
+ - kind: function_declaration
708
+ - kind: generator_function_declaration
709
+ - kind: function_expression
710
+ - kind: generator_function
711
+ - kind: arrow_function
712
+ - kind: method_definition
713
+ - kind: class_body
714
+ - kind: class
715
+ - kind: for_statement
716
+ - kind: for_in_statement
717
+ - kind: catch_clause
718
+ # An identifier in a binding position: a parameter, a destructured name, a
719
+ # local variable, a function name, or a class name.
720
+ binding-name:
721
+ any:
722
+ - kind: shorthand_property_identifier_pattern
723
+ - kind: identifier
724
+ any:
725
+ - inside: { kind: variable_declarator, field: name }
726
+ - inside: { kind: function_declaration, field: name }
727
+ - inside: { kind: generator_function_declaration, field: name }
728
+ - inside: { kind: function_expression, field: name }
729
+ - inside: { kind: required_parameter, field: pattern }
730
+ - inside: { kind: optional_parameter, field: pattern }
731
+ - inside: { kind: assignment_pattern, field: left }
732
+ - inside: { kind: pair_pattern, field: value }
733
+ - inside: { kind: array_pattern }
734
+ - inside: { kind: rest_pattern }
735
+ - inside: { kind: arrow_function, field: parameter }
736
+ - inside: { kind: catch_clause, field: parameter }
737
+ - kind: type_identifier
738
+ any:
739
+ - inside: { kind: class_declaration, field: name }
740
+ - inside: { kind: class, field: name }
741
+ # A function declaration opens a scope, so the search above stops at it and
742
+ # never reads its name. This matches the declaration itself instead.
743
+ function-declaration:
744
+ any:
745
+ - kind: function_declaration
746
+ - kind: generator_function_declaration
747
+ combobox-import:
748
+ kind: import_statement
749
+ all:
750
+ - has:
751
+ field: source
752
+ regex: ^["']@ngrok/mantle/combobox["']$
753
+ - has:
754
+ stopBy: end
755
+ kind: import_specifier
756
+ has:
757
+ field: name
758
+ regex: ^Combobox$
759
+ any:
760
+ - kind: import_specifier
761
+ has:
762
+ field: alias
763
+ pattern: $COMBOBOX
764
+ - kind: import_specifier
765
+ not:
766
+ has:
767
+ field: alias
768
+ kind: identifier
769
+ has:
770
+ field: name
771
+ pattern: $COMBOBOX
772
+ combobox-root:
773
+ any:
774
+ - kind: jsx_opening_element
775
+ - kind: jsx_self_closing_element
776
+ has:
777
+ field: name
778
+ kind: member_expression
779
+ all:
780
+ - has:
781
+ field: object
782
+ pattern: $COMBOBOX
783
+ - has:
784
+ field: property
785
+ regex: ^Root$
786
+ - inside:
787
+ stopBy: end
788
+ kind: program
789
+ has:
790
+ matches: combobox-import
791
+ # Why: a parameter or a local under the import's name shadows it, and the
792
+ # rules cannot tell which binding the element reads.
793
+ - not:
794
+ inside:
795
+ stopBy: end
796
+ matches: scope
797
+ has:
798
+ stopBy:
799
+ matches: scope
800
+ any:
801
+ - matches: binding-name
802
+ pattern: $COMBOBOX
803
+ - matches: function-declaration
804
+ has:
805
+ field: name
806
+ pattern: $COMBOBOX
807
+ rule:
808
+ kind: property_identifier
809
+ regex: ^value$
810
+ inside:
811
+ kind: jsx_attribute
812
+ inside:
813
+ matches: combobox-root
814
+ has:
815
+ kind: jsx_attribute
816
+ has:
817
+ kind: property_identifier
818
+ regex: ^(setValue|setInputValue|selectedValue|defaultSelectedValue|setSelectedValue|setOpen)$
819
+ fix: inputValue
820
+ ---
821
+ id: combobox-root-value-check
822
+ language: tsx
823
+ message: Combobox.Root value now sets the picked value. If it set the text, rename it to inputValue
824
+ utils:
825
+ scope:
826
+ any:
827
+ - kind: statement_block
828
+ - kind: function_declaration
829
+ - kind: generator_function_declaration
830
+ - kind: function_expression
831
+ - kind: generator_function
832
+ - kind: arrow_function
833
+ - kind: method_definition
834
+ - kind: class_body
835
+ - kind: class
836
+ - kind: for_statement
837
+ - kind: for_in_statement
838
+ - kind: catch_clause
839
+ # An identifier in a binding position: a parameter, a destructured name, a
840
+ # local variable, a function name, or a class name.
841
+ binding-name:
842
+ any:
843
+ - kind: shorthand_property_identifier_pattern
844
+ - kind: identifier
845
+ any:
846
+ - inside: { kind: variable_declarator, field: name }
847
+ - inside: { kind: function_declaration, field: name }
848
+ - inside: { kind: generator_function_declaration, field: name }
849
+ - inside: { kind: function_expression, field: name }
850
+ - inside: { kind: required_parameter, field: pattern }
851
+ - inside: { kind: optional_parameter, field: pattern }
852
+ - inside: { kind: assignment_pattern, field: left }
853
+ - inside: { kind: pair_pattern, field: value }
854
+ - inside: { kind: array_pattern }
855
+ - inside: { kind: rest_pattern }
856
+ - inside: { kind: arrow_function, field: parameter }
857
+ - inside: { kind: catch_clause, field: parameter }
858
+ - kind: type_identifier
859
+ any:
860
+ - inside: { kind: class_declaration, field: name }
861
+ - inside: { kind: class, field: name }
862
+ # A function declaration opens a scope, so the search above stops at it and
863
+ # never reads its name. This matches the declaration itself instead.
864
+ function-declaration:
865
+ any:
866
+ - kind: function_declaration
867
+ - kind: generator_function_declaration
868
+ combobox-import:
869
+ kind: import_statement
870
+ all:
871
+ - has:
872
+ field: source
873
+ regex: ^["']@ngrok/mantle/combobox["']$
874
+ - has:
875
+ stopBy: end
876
+ kind: import_specifier
877
+ has:
878
+ field: name
879
+ regex: ^Combobox$
880
+ any:
881
+ - kind: import_specifier
882
+ has:
883
+ field: alias
884
+ pattern: $COMBOBOX
885
+ - kind: import_specifier
886
+ not:
887
+ has:
888
+ field: alias
889
+ kind: identifier
890
+ has:
891
+ field: name
892
+ pattern: $COMBOBOX
893
+ combobox-root:
894
+ any:
895
+ - kind: jsx_opening_element
896
+ - kind: jsx_self_closing_element
897
+ has:
898
+ field: name
899
+ kind: member_expression
900
+ all:
901
+ - has:
902
+ field: object
903
+ pattern: $COMBOBOX
904
+ - has:
905
+ field: property
906
+ regex: ^Root$
907
+ - inside:
908
+ stopBy: end
909
+ kind: program
910
+ has:
911
+ matches: combobox-import
912
+ # Why: a parameter or a local under the import's name shadows it, and the
913
+ # rules cannot tell which binding the element reads.
914
+ - not:
915
+ inside:
916
+ stopBy: end
917
+ matches: scope
918
+ has:
919
+ stopBy:
920
+ matches: scope
921
+ any:
922
+ - matches: binding-name
923
+ pattern: $COMBOBOX
924
+ - matches: function-declaration
925
+ has:
926
+ field: name
927
+ pattern: $COMBOBOX
928
+ rule:
929
+ kind: property_identifier
930
+ regex: ^value$
931
+ inside:
932
+ kind: jsx_attribute
933
+ inside:
934
+ matches: combobox-root
935
+ not:
936
+ has:
937
+ kind: jsx_attribute
938
+ has:
939
+ kind: property_identifier
940
+ regex: ^(setValue|setInputValue|selectedValue|defaultSelectedValue|setSelectedValue|setOpen|onValueChange|inputValue|defaultInputValue|onInputValueChange|onOpenChange)$
941
+ ---
942
+ id: combobox-root-default-value-text
943
+ language: tsx
944
+ message: Combobox.Root takes defaultInputValue for the text in place of defaultValue
945
+ utils:
946
+ scope:
947
+ any:
948
+ - kind: statement_block
949
+ - kind: function_declaration
950
+ - kind: generator_function_declaration
951
+ - kind: function_expression
952
+ - kind: generator_function
953
+ - kind: arrow_function
954
+ - kind: method_definition
955
+ - kind: class_body
956
+ - kind: class
957
+ - kind: for_statement
958
+ - kind: for_in_statement
959
+ - kind: catch_clause
960
+ # An identifier in a binding position: a parameter, a destructured name, a
961
+ # local variable, a function name, or a class name.
962
+ binding-name:
963
+ any:
964
+ - kind: shorthand_property_identifier_pattern
965
+ - kind: identifier
966
+ any:
967
+ - inside: { kind: variable_declarator, field: name }
968
+ - inside: { kind: function_declaration, field: name }
969
+ - inside: { kind: generator_function_declaration, field: name }
970
+ - inside: { kind: function_expression, field: name }
971
+ - inside: { kind: required_parameter, field: pattern }
972
+ - inside: { kind: optional_parameter, field: pattern }
973
+ - inside: { kind: assignment_pattern, field: left }
974
+ - inside: { kind: pair_pattern, field: value }
975
+ - inside: { kind: array_pattern }
976
+ - inside: { kind: rest_pattern }
977
+ - inside: { kind: arrow_function, field: parameter }
978
+ - inside: { kind: catch_clause, field: parameter }
979
+ - kind: type_identifier
980
+ any:
981
+ - inside: { kind: class_declaration, field: name }
982
+ - inside: { kind: class, field: name }
983
+ # A function declaration opens a scope, so the search above stops at it and
984
+ # never reads its name. This matches the declaration itself instead.
985
+ function-declaration:
986
+ any:
987
+ - kind: function_declaration
988
+ - kind: generator_function_declaration
989
+ combobox-import:
990
+ kind: import_statement
991
+ all:
992
+ - has:
993
+ field: source
994
+ regex: ^["']@ngrok/mantle/combobox["']$
995
+ - has:
996
+ stopBy: end
997
+ kind: import_specifier
998
+ has:
999
+ field: name
1000
+ regex: ^Combobox$
1001
+ any:
1002
+ - kind: import_specifier
1003
+ has:
1004
+ field: alias
1005
+ pattern: $COMBOBOX
1006
+ - kind: import_specifier
1007
+ not:
1008
+ has:
1009
+ field: alias
1010
+ kind: identifier
1011
+ has:
1012
+ field: name
1013
+ pattern: $COMBOBOX
1014
+ combobox-root:
1015
+ any:
1016
+ - kind: jsx_opening_element
1017
+ - kind: jsx_self_closing_element
1018
+ has:
1019
+ field: name
1020
+ kind: member_expression
1021
+ all:
1022
+ - has:
1023
+ field: object
1024
+ pattern: $COMBOBOX
1025
+ - has:
1026
+ field: property
1027
+ regex: ^Root$
1028
+ - inside:
1029
+ stopBy: end
1030
+ kind: program
1031
+ has:
1032
+ matches: combobox-import
1033
+ # Why: a parameter or a local under the import's name shadows it, and the
1034
+ # rules cannot tell which binding the element reads.
1035
+ - not:
1036
+ inside:
1037
+ stopBy: end
1038
+ matches: scope
1039
+ has:
1040
+ stopBy:
1041
+ matches: scope
1042
+ any:
1043
+ - matches: binding-name
1044
+ pattern: $COMBOBOX
1045
+ - matches: function-declaration
1046
+ has:
1047
+ field: name
1048
+ pattern: $COMBOBOX
1049
+ rule:
1050
+ kind: property_identifier
1051
+ regex: ^defaultValue$
1052
+ inside:
1053
+ kind: jsx_attribute
1054
+ inside:
1055
+ matches: combobox-root
1056
+ has:
1057
+ kind: jsx_attribute
1058
+ has:
1059
+ kind: property_identifier
1060
+ regex: ^(setValue|setInputValue|selectedValue|defaultSelectedValue|setSelectedValue|setOpen)$
1061
+ fix: defaultInputValue
1062
+ ---
1063
+ id: combobox-root-default-value-check
1064
+ language: tsx
1065
+ message: Combobox.Root defaultValue now sets the picked value. If it set the text, rename it to defaultInputValue
1066
+ utils:
1067
+ scope:
1068
+ any:
1069
+ - kind: statement_block
1070
+ - kind: function_declaration
1071
+ - kind: generator_function_declaration
1072
+ - kind: function_expression
1073
+ - kind: generator_function
1074
+ - kind: arrow_function
1075
+ - kind: method_definition
1076
+ - kind: class_body
1077
+ - kind: class
1078
+ - kind: for_statement
1079
+ - kind: for_in_statement
1080
+ - kind: catch_clause
1081
+ # An identifier in a binding position: a parameter, a destructured name, a
1082
+ # local variable, a function name, or a class name.
1083
+ binding-name:
1084
+ any:
1085
+ - kind: shorthand_property_identifier_pattern
1086
+ - kind: identifier
1087
+ any:
1088
+ - inside: { kind: variable_declarator, field: name }
1089
+ - inside: { kind: function_declaration, field: name }
1090
+ - inside: { kind: generator_function_declaration, field: name }
1091
+ - inside: { kind: function_expression, field: name }
1092
+ - inside: { kind: required_parameter, field: pattern }
1093
+ - inside: { kind: optional_parameter, field: pattern }
1094
+ - inside: { kind: assignment_pattern, field: left }
1095
+ - inside: { kind: pair_pattern, field: value }
1096
+ - inside: { kind: array_pattern }
1097
+ - inside: { kind: rest_pattern }
1098
+ - inside: { kind: arrow_function, field: parameter }
1099
+ - inside: { kind: catch_clause, field: parameter }
1100
+ - kind: type_identifier
1101
+ any:
1102
+ - inside: { kind: class_declaration, field: name }
1103
+ - inside: { kind: class, field: name }
1104
+ # A function declaration opens a scope, so the search above stops at it and
1105
+ # never reads its name. This matches the declaration itself instead.
1106
+ function-declaration:
1107
+ any:
1108
+ - kind: function_declaration
1109
+ - kind: generator_function_declaration
1110
+ combobox-import:
1111
+ kind: import_statement
1112
+ all:
1113
+ - has:
1114
+ field: source
1115
+ regex: ^["']@ngrok/mantle/combobox["']$
1116
+ - has:
1117
+ stopBy: end
1118
+ kind: import_specifier
1119
+ has:
1120
+ field: name
1121
+ regex: ^Combobox$
1122
+ any:
1123
+ - kind: import_specifier
1124
+ has:
1125
+ field: alias
1126
+ pattern: $COMBOBOX
1127
+ - kind: import_specifier
1128
+ not:
1129
+ has:
1130
+ field: alias
1131
+ kind: identifier
1132
+ has:
1133
+ field: name
1134
+ pattern: $COMBOBOX
1135
+ combobox-root:
1136
+ any:
1137
+ - kind: jsx_opening_element
1138
+ - kind: jsx_self_closing_element
1139
+ has:
1140
+ field: name
1141
+ kind: member_expression
1142
+ all:
1143
+ - has:
1144
+ field: object
1145
+ pattern: $COMBOBOX
1146
+ - has:
1147
+ field: property
1148
+ regex: ^Root$
1149
+ - inside:
1150
+ stopBy: end
1151
+ kind: program
1152
+ has:
1153
+ matches: combobox-import
1154
+ # Why: a parameter or a local under the import's name shadows it, and the
1155
+ # rules cannot tell which binding the element reads.
1156
+ - not:
1157
+ inside:
1158
+ stopBy: end
1159
+ matches: scope
1160
+ has:
1161
+ stopBy:
1162
+ matches: scope
1163
+ any:
1164
+ - matches: binding-name
1165
+ pattern: $COMBOBOX
1166
+ - matches: function-declaration
1167
+ has:
1168
+ field: name
1169
+ pattern: $COMBOBOX
1170
+ rule:
1171
+ kind: property_identifier
1172
+ regex: ^defaultValue$
1173
+ inside:
1174
+ kind: jsx_attribute
1175
+ inside:
1176
+ matches: combobox-root
1177
+ not:
1178
+ has:
1179
+ kind: jsx_attribute
1180
+ has:
1181
+ kind: property_identifier
1182
+ regex: ^(setValue|setInputValue|selectedValue|defaultSelectedValue|setSelectedValue|setOpen|onValueChange|inputValue|defaultInputValue|onInputValueChange|onOpenChange)$
1183
+ ---
1184
+ id: combobox-content-popover-props
1185
+ language: tsx
1186
+ message: Combobox.Content opens below its input, or above it when the space below is too small, and takes no popover props
1187
+ utils:
1188
+ scope:
1189
+ any:
1190
+ - kind: statement_block
1191
+ - kind: function_declaration
1192
+ - kind: generator_function_declaration
1193
+ - kind: function_expression
1194
+ - kind: generator_function
1195
+ - kind: arrow_function
1196
+ - kind: method_definition
1197
+ - kind: class_body
1198
+ - kind: class
1199
+ - kind: for_statement
1200
+ - kind: for_in_statement
1201
+ - kind: catch_clause
1202
+ # An identifier in a binding position: a parameter, a destructured name, a
1203
+ # local variable, a function name, or a class name.
1204
+ binding-name:
1205
+ any:
1206
+ - kind: shorthand_property_identifier_pattern
1207
+ - kind: identifier
1208
+ any:
1209
+ - inside: { kind: variable_declarator, field: name }
1210
+ - inside: { kind: function_declaration, field: name }
1211
+ - inside: { kind: generator_function_declaration, field: name }
1212
+ - inside: { kind: function_expression, field: name }
1213
+ - inside: { kind: required_parameter, field: pattern }
1214
+ - inside: { kind: optional_parameter, field: pattern }
1215
+ - inside: { kind: assignment_pattern, field: left }
1216
+ - inside: { kind: pair_pattern, field: value }
1217
+ - inside: { kind: array_pattern }
1218
+ - inside: { kind: rest_pattern }
1219
+ - inside: { kind: arrow_function, field: parameter }
1220
+ - inside: { kind: catch_clause, field: parameter }
1221
+ - kind: type_identifier
1222
+ any:
1223
+ - inside: { kind: class_declaration, field: name }
1224
+ - inside: { kind: class, field: name }
1225
+ # A function declaration opens a scope, so the search above stops at it and
1226
+ # never reads its name. This matches the declaration itself instead.
1227
+ function-declaration:
1228
+ any:
1229
+ - kind: function_declaration
1230
+ - kind: generator_function_declaration
1231
+ combobox-import:
1232
+ kind: import_statement
1233
+ all:
1234
+ - has:
1235
+ field: source
1236
+ regex: ^["']@ngrok/mantle/combobox["']$
1237
+ - has:
1238
+ stopBy: end
1239
+ kind: import_specifier
1240
+ has:
1241
+ field: name
1242
+ regex: ^Combobox$
1243
+ any:
1244
+ - kind: import_specifier
1245
+ has:
1246
+ field: alias
1247
+ pattern: $COMBOBOX
1248
+ - kind: import_specifier
1249
+ not:
1250
+ has:
1251
+ field: alias
1252
+ kind: identifier
1253
+ has:
1254
+ field: name
1255
+ pattern: $COMBOBOX
1256
+ combobox-content:
1257
+ any:
1258
+ - kind: jsx_opening_element
1259
+ - kind: jsx_self_closing_element
1260
+ has:
1261
+ field: name
1262
+ kind: member_expression
1263
+ all:
1264
+ - has:
1265
+ field: object
1266
+ pattern: $COMBOBOX
1267
+ - has:
1268
+ field: property
1269
+ regex: ^Content$
1270
+ - inside:
1271
+ stopBy: end
1272
+ kind: program
1273
+ has:
1274
+ matches: combobox-import
1275
+ # Why: a parameter or a local under the import's name shadows it, and the
1276
+ # rules cannot tell which binding the element reads.
1277
+ - not:
1278
+ inside:
1279
+ stopBy: end
1280
+ matches: scope
1281
+ has:
1282
+ stopBy:
1283
+ matches: scope
1284
+ any:
1285
+ - matches: binding-name
1286
+ pattern: $COMBOBOX
1287
+ - matches: function-declaration
1288
+ has:
1289
+ field: name
1290
+ pattern: $COMBOBOX
1291
+ rule:
1292
+ kind: jsx_attribute
1293
+ has:
1294
+ kind: property_identifier
1295
+ regex: ^(unmountOnHide|gutter|shift|placement|portal|fitViewport|flip|overflowPadding|updatePosition)$
1296
+ inside:
1297
+ matches: combobox-content
1298
+ fix: ""
1299
+ ---
1300
+ id: combobox-item-focus-on-hover
1301
+ language: tsx
1302
+ message: Combobox.Item always takes the highlight on hover
1303
+ utils:
1304
+ scope:
1305
+ any:
1306
+ - kind: statement_block
1307
+ - kind: function_declaration
1308
+ - kind: generator_function_declaration
1309
+ - kind: function_expression
1310
+ - kind: generator_function
1311
+ - kind: arrow_function
1312
+ - kind: method_definition
1313
+ - kind: class_body
1314
+ - kind: class
1315
+ - kind: for_statement
1316
+ - kind: for_in_statement
1317
+ - kind: catch_clause
1318
+ # An identifier in a binding position: a parameter, a destructured name, a
1319
+ # local variable, a function name, or a class name.
1320
+ binding-name:
1321
+ any:
1322
+ - kind: shorthand_property_identifier_pattern
1323
+ - kind: identifier
1324
+ any:
1325
+ - inside: { kind: variable_declarator, field: name }
1326
+ - inside: { kind: function_declaration, field: name }
1327
+ - inside: { kind: generator_function_declaration, field: name }
1328
+ - inside: { kind: function_expression, field: name }
1329
+ - inside: { kind: required_parameter, field: pattern }
1330
+ - inside: { kind: optional_parameter, field: pattern }
1331
+ - inside: { kind: assignment_pattern, field: left }
1332
+ - inside: { kind: pair_pattern, field: value }
1333
+ - inside: { kind: array_pattern }
1334
+ - inside: { kind: rest_pattern }
1335
+ - inside: { kind: arrow_function, field: parameter }
1336
+ - inside: { kind: catch_clause, field: parameter }
1337
+ - kind: type_identifier
1338
+ any:
1339
+ - inside: { kind: class_declaration, field: name }
1340
+ - inside: { kind: class, field: name }
1341
+ # A function declaration opens a scope, so the search above stops at it and
1342
+ # never reads its name. This matches the declaration itself instead.
1343
+ function-declaration:
1344
+ any:
1345
+ - kind: function_declaration
1346
+ - kind: generator_function_declaration
1347
+ combobox-import:
1348
+ kind: import_statement
1349
+ all:
1350
+ - has:
1351
+ field: source
1352
+ regex: ^["']@ngrok/mantle/combobox["']$
1353
+ - has:
1354
+ stopBy: end
1355
+ kind: import_specifier
1356
+ has:
1357
+ field: name
1358
+ regex: ^Combobox$
1359
+ any:
1360
+ - kind: import_specifier
1361
+ has:
1362
+ field: alias
1363
+ pattern: $COMBOBOX
1364
+ - kind: import_specifier
1365
+ not:
1366
+ has:
1367
+ field: alias
1368
+ kind: identifier
1369
+ has:
1370
+ field: name
1371
+ pattern: $COMBOBOX
1372
+ combobox-item:
1373
+ any:
1374
+ - kind: jsx_opening_element
1375
+ - kind: jsx_self_closing_element
1376
+ has:
1377
+ field: name
1378
+ kind: member_expression
1379
+ all:
1380
+ - has:
1381
+ field: object
1382
+ pattern: $COMBOBOX
1383
+ - has:
1384
+ field: property
1385
+ regex: ^Item$
1386
+ - inside:
1387
+ stopBy: end
1388
+ kind: program
1389
+ has:
1390
+ matches: combobox-import
1391
+ # Why: a parameter or a local under the import's name shadows it, and the
1392
+ # rules cannot tell which binding the element reads.
1393
+ - not:
1394
+ inside:
1395
+ stopBy: end
1396
+ matches: scope
1397
+ has:
1398
+ stopBy:
1399
+ matches: scope
1400
+ any:
1401
+ - matches: binding-name
1402
+ pattern: $COMBOBOX
1403
+ - matches: function-declaration
1404
+ has:
1405
+ field: name
1406
+ pattern: $COMBOBOX
1407
+ rule:
1408
+ kind: jsx_attribute
1409
+ has:
1410
+ kind: property_identifier
1411
+ regex: ^focusOnHover$
1412
+ inside:
1413
+ matches: combobox-item
1414
+ fix: ""
1415
+ ---
1416
+ id: combobox-item-click-opt-out
1417
+ language: tsx
1418
+ message: Combobox.Item always writes, picks, and closes on a click, so a bare or true opt-out does nothing
1419
+ utils:
1420
+ scope:
1421
+ any:
1422
+ - kind: statement_block
1423
+ - kind: function_declaration
1424
+ - kind: generator_function_declaration
1425
+ - kind: function_expression
1426
+ - kind: generator_function
1427
+ - kind: arrow_function
1428
+ - kind: method_definition
1429
+ - kind: class_body
1430
+ - kind: class
1431
+ - kind: for_statement
1432
+ - kind: for_in_statement
1433
+ - kind: catch_clause
1434
+ # An identifier in a binding position: a parameter, a destructured name, a
1435
+ # local variable, a function name, or a class name.
1436
+ binding-name:
1437
+ any:
1438
+ - kind: shorthand_property_identifier_pattern
1439
+ - kind: identifier
1440
+ any:
1441
+ - inside: { kind: variable_declarator, field: name }
1442
+ - inside: { kind: function_declaration, field: name }
1443
+ - inside: { kind: generator_function_declaration, field: name }
1444
+ - inside: { kind: function_expression, field: name }
1445
+ - inside: { kind: required_parameter, field: pattern }
1446
+ - inside: { kind: optional_parameter, field: pattern }
1447
+ - inside: { kind: assignment_pattern, field: left }
1448
+ - inside: { kind: pair_pattern, field: value }
1449
+ - inside: { kind: array_pattern }
1450
+ - inside: { kind: rest_pattern }
1451
+ - inside: { kind: arrow_function, field: parameter }
1452
+ - inside: { kind: catch_clause, field: parameter }
1453
+ - kind: type_identifier
1454
+ any:
1455
+ - inside: { kind: class_declaration, field: name }
1456
+ - inside: { kind: class, field: name }
1457
+ # A function declaration opens a scope, so the search above stops at it and
1458
+ # never reads its name. This matches the declaration itself instead.
1459
+ function-declaration:
1460
+ any:
1461
+ - kind: function_declaration
1462
+ - kind: generator_function_declaration
1463
+ combobox-import:
1464
+ kind: import_statement
1465
+ all:
1466
+ - has:
1467
+ field: source
1468
+ regex: ^["']@ngrok/mantle/combobox["']$
1469
+ - has:
1470
+ stopBy: end
1471
+ kind: import_specifier
1472
+ has:
1473
+ field: name
1474
+ regex: ^Combobox$
1475
+ any:
1476
+ - kind: import_specifier
1477
+ has:
1478
+ field: alias
1479
+ pattern: $COMBOBOX
1480
+ - kind: import_specifier
1481
+ not:
1482
+ has:
1483
+ field: alias
1484
+ kind: identifier
1485
+ has:
1486
+ field: name
1487
+ pattern: $COMBOBOX
1488
+ combobox-item:
1489
+ any:
1490
+ - kind: jsx_opening_element
1491
+ - kind: jsx_self_closing_element
1492
+ has:
1493
+ field: name
1494
+ kind: member_expression
1495
+ all:
1496
+ - has:
1497
+ field: object
1498
+ pattern: $COMBOBOX
1499
+ - has:
1500
+ field: property
1501
+ regex: ^Item$
1502
+ - inside:
1503
+ stopBy: end
1504
+ kind: program
1505
+ has:
1506
+ matches: combobox-import
1507
+ # Why: a parameter or a local under the import's name shadows it, and the
1508
+ # rules cannot tell which binding the element reads.
1509
+ - not:
1510
+ inside:
1511
+ stopBy: end
1512
+ matches: scope
1513
+ has:
1514
+ stopBy:
1515
+ matches: scope
1516
+ any:
1517
+ - matches: binding-name
1518
+ pattern: $COMBOBOX
1519
+ - matches: function-declaration
1520
+ has:
1521
+ field: name
1522
+ pattern: $COMBOBOX
1523
+ rule:
1524
+ kind: jsx_attribute
1525
+ has:
1526
+ kind: property_identifier
1527
+ regex: ^(hideOnClick|setValueOnClick|selectValueOnClick)$
1528
+ inside:
1529
+ matches: combobox-item
1530
+ any:
1531
+ # A bare prop, such as `hideOnClick`, is `true`.
1532
+ - kind: jsx_attribute
1533
+ not:
1534
+ has:
1535
+ kind: jsx_expression
1536
+ - kind: jsx_attribute
1537
+ has:
1538
+ kind: jsx_expression
1539
+ has:
1540
+ kind: "true"
1541
+ fix: ""
1542
+ ---
1543
+ id: combobox-item-click-opt-out-check
1544
+ language: tsx
1545
+ message: Combobox.Item takes no click opt-out. To keep a click from writing, picking, or closing, call event.preventDefault() in its onClick
1546
+ utils:
1547
+ scope:
1548
+ any:
1549
+ - kind: statement_block
1550
+ - kind: function_declaration
1551
+ - kind: generator_function_declaration
1552
+ - kind: function_expression
1553
+ - kind: generator_function
1554
+ - kind: arrow_function
1555
+ - kind: method_definition
1556
+ - kind: class_body
1557
+ - kind: class
1558
+ - kind: for_statement
1559
+ - kind: for_in_statement
1560
+ - kind: catch_clause
1561
+ # An identifier in a binding position: a parameter, a destructured name, a
1562
+ # local variable, a function name, or a class name.
1563
+ binding-name:
1564
+ any:
1565
+ - kind: shorthand_property_identifier_pattern
1566
+ - kind: identifier
1567
+ any:
1568
+ - inside: { kind: variable_declarator, field: name }
1569
+ - inside: { kind: function_declaration, field: name }
1570
+ - inside: { kind: generator_function_declaration, field: name }
1571
+ - inside: { kind: function_expression, field: name }
1572
+ - inside: { kind: required_parameter, field: pattern }
1573
+ - inside: { kind: optional_parameter, field: pattern }
1574
+ - inside: { kind: assignment_pattern, field: left }
1575
+ - inside: { kind: pair_pattern, field: value }
1576
+ - inside: { kind: array_pattern }
1577
+ - inside: { kind: rest_pattern }
1578
+ - inside: { kind: arrow_function, field: parameter }
1579
+ - inside: { kind: catch_clause, field: parameter }
1580
+ - kind: type_identifier
1581
+ any:
1582
+ - inside: { kind: class_declaration, field: name }
1583
+ - inside: { kind: class, field: name }
1584
+ # A function declaration opens a scope, so the search above stops at it and
1585
+ # never reads its name. This matches the declaration itself instead.
1586
+ function-declaration:
1587
+ any:
1588
+ - kind: function_declaration
1589
+ - kind: generator_function_declaration
1590
+ combobox-import:
1591
+ kind: import_statement
1592
+ all:
1593
+ - has:
1594
+ field: source
1595
+ regex: ^["']@ngrok/mantle/combobox["']$
1596
+ - has:
1597
+ stopBy: end
1598
+ kind: import_specifier
1599
+ has:
1600
+ field: name
1601
+ regex: ^Combobox$
1602
+ any:
1603
+ - kind: import_specifier
1604
+ has:
1605
+ field: alias
1606
+ pattern: $COMBOBOX
1607
+ - kind: import_specifier
1608
+ not:
1609
+ has:
1610
+ field: alias
1611
+ kind: identifier
1612
+ has:
1613
+ field: name
1614
+ pattern: $COMBOBOX
1615
+ combobox-item:
1616
+ any:
1617
+ - kind: jsx_opening_element
1618
+ - kind: jsx_self_closing_element
1619
+ has:
1620
+ field: name
1621
+ kind: member_expression
1622
+ all:
1623
+ - has:
1624
+ field: object
1625
+ pattern: $COMBOBOX
1626
+ - has:
1627
+ field: property
1628
+ regex: ^Item$
1629
+ - inside:
1630
+ stopBy: end
1631
+ kind: program
1632
+ has:
1633
+ matches: combobox-import
1634
+ # Why: a parameter or a local under the import's name shadows it, and the
1635
+ # rules cannot tell which binding the element reads.
1636
+ - not:
1637
+ inside:
1638
+ stopBy: end
1639
+ matches: scope
1640
+ has:
1641
+ stopBy:
1642
+ matches: scope
1643
+ any:
1644
+ - matches: binding-name
1645
+ pattern: $COMBOBOX
1646
+ - matches: function-declaration
1647
+ has:
1648
+ field: name
1649
+ pattern: $COMBOBOX
1650
+ rule:
1651
+ kind: property_identifier
1652
+ regex: ^(hideOnClick|setValueOnClick|selectValueOnClick)$
1653
+ inside:
1654
+ kind: jsx_attribute
1655
+ has:
1656
+ kind: jsx_expression
1657
+ not:
1658
+ has:
1659
+ kind: "true"
1660
+ inside:
1661
+ matches: combobox-item