@ngrok/mantle 0.94.1 → 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 (601) hide show
  1. package/README.md +2 -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 +4 -395
  33. package/dist/accordion.js +1 -1
  34. package/dist/agent.json +409 -42
  35. package/dist/alert-DCGSrVTa.js +1 -0
  36. package/dist/{alert-D0zRRUHV.d.ts → alert-Dz541Ve9.d.ts} +7 -193
  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 +6 -587
  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 +2 -1065
  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 +1 -1
  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 +4 -579
  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 +3 -275
  72. package/dist/avatar.js +1 -1
  73. package/dist/badge.d.ts +3 -2
  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 +53 -543
  97. package/dist/breadcrumb.js +1 -1
  98. package/dist/browser-only-CokCtIvB.js +1 -0
  99. package/dist/browser-only.js +1 -1
  100. package/dist/button-Bqm7U0OC.js +1 -0
  101. package/dist/{button-5Pc7Mby_.d.ts → button-C6-6TecO.d.ts} +4 -4
  102. package/dist/{button-DnYv7IOT.d.ts → button-CL17Dxza.d.ts} +7 -5
  103. package/dist/button-CRCiBPEF.js +1 -0
  104. package/dist/{button-Ddj6yr10.d.ts → button-CRMoQyum.d.ts} +2 -3
  105. package/dist/button-Cr2iY2cI.js +1 -0
  106. package/dist/button-DhoE-BbZ.js +1 -0
  107. package/dist/button.d.ts +3 -3
  108. package/dist/button.js +1 -1
  109. package/dist/calendar-DQtapcSC.js +1 -0
  110. package/dist/calendar.d.ts +1 -1
  111. package/dist/calendar.js +1 -1
  112. package/dist/card-DbtGVKyo.d.ts +129 -0
  113. package/dist/card-parts.d.ts +6 -0
  114. package/dist/card-parts.js +1 -0
  115. package/dist/card.d.ts +3 -228
  116. package/dist/card.js +1 -1
  117. package/dist/centered-layout-parts.d.ts +169 -0
  118. package/dist/centered-layout-parts.js +1 -0
  119. package/dist/centered-layout.d.ts +2 -299
  120. package/dist/centered-layout.js +1 -1
  121. package/dist/chart-B0n2xyYi.js +1 -0
  122. package/dist/chart-BPsMxs1f.js +1 -0
  123. package/dist/chart-BmZoTjRu.js +1 -0
  124. package/dist/chart-Bybyh2Dc.js +1 -0
  125. package/dist/chart-CACfdGlp.d.ts +86 -0
  126. package/dist/chart-CBQJUTIX.js +1 -0
  127. package/dist/chart-Cb0MBaZx.js +1 -0
  128. package/dist/chart-CmMcfDmv.js +1 -0
  129. package/dist/chart-Dlp9FidW.js +2 -0
  130. package/dist/{chart-Dl8gFo_D.d.ts → chart-XvStK-oM.d.ts} +3 -79
  131. package/dist/chart-wTwYzUMJ.js +1 -0
  132. package/dist/checkbox-DH7WFfuR.js +1 -0
  133. package/dist/checkbox-DsVXD96X.js +1 -0
  134. package/dist/checkbox-TX74-Iep.js +1 -0
  135. package/dist/checkbox-group-parts.d.ts +197 -0
  136. package/dist/checkbox-group-parts.js +1 -0
  137. package/dist/checkbox.d.ts +59 -8
  138. package/dist/checkbox.js +1 -1
  139. package/dist/{choice-CNiOSzqV.d.ts → choice-BekuLm-b.d.ts} +16 -204
  140. package/dist/choice-DGI8VNR9.d.ts +1 -0
  141. package/dist/choice-PDT386cc.js +1 -0
  142. package/dist/choice-parts.d.ts +7 -0
  143. package/dist/choice-parts.js +1 -0
  144. package/dist/choice.d.ts +63 -1
  145. package/dist/choice.js +1 -1
  146. package/dist/code-UKPv6LVP.js +1 -0
  147. package/dist/{code-block-CKzsAMzj.js → code-block-B-xD4_RW.js} +3 -3
  148. package/dist/code-block-B7XPzZnp.js +1 -0
  149. package/dist/code-block-BXXceNVo.js +1 -0
  150. package/dist/code-block-C7uzLs8t.js +1 -0
  151. package/dist/{code-block-BDw6MEwH.d.ts → code-block-Cs1Lcmdr.d.ts} +81 -252
  152. package/dist/code-block-Erv7wuWW.d.ts +173 -0
  153. package/dist/code-block-parts.d.ts +380 -0
  154. package/dist/code-block-parts.js +1 -0
  155. package/dist/code-block.d.ts +66 -691
  156. package/dist/code-block.js +6 -6
  157. package/dist/code-block_highlight-utils.d.ts +2 -1
  158. package/dist/code-block_highlight-utils.js +1 -1
  159. package/dist/code.d.ts +1 -1
  160. package/dist/code.js +1 -1
  161. package/dist/combobox-6LXe1cLx.js +1 -0
  162. package/dist/combobox-parts.d.ts +303 -0
  163. package/dist/combobox-parts.js +1 -0
  164. package/dist/combobox.d.ts +2 -465
  165. package/dist/combobox.js +1 -1
  166. package/dist/command-B8L-zjGt.js +1 -0
  167. package/dist/command-CCMWCjAK.js +1 -0
  168. package/dist/command-VKj84zAX.d.ts +859 -0
  169. package/dist/command-cbgO9CiG.js +1 -0
  170. package/dist/command-parts.d.ts +6 -0
  171. package/dist/command-parts.js +1 -0
  172. package/dist/command.d.ts +71 -1115
  173. package/dist/command.js +1 -1
  174. package/dist/compose-refs-Ce1vWUz0.js +1 -0
  175. package/dist/cx-CfAFHj5_.js +73 -0
  176. package/dist/cx-DhYnQ07J.js +1 -0
  177. package/dist/cx.d.ts +20 -14
  178. package/dist/cx.js +1 -1
  179. package/dist/data-table-C-FgaN3_.js +1 -0
  180. package/dist/data-table-Cw9dUo1w.js +1 -0
  181. package/dist/data-table-CwqrMtp0.js +1 -0
  182. package/dist/data-table-GUbt8mzo.d.ts +38 -0
  183. package/dist/data-table-parts.d.ts +763 -0
  184. package/dist/data-table-parts.js +1 -0
  185. package/dist/data-table.d.ts +12 -1208
  186. package/dist/data-table.js +1 -1
  187. package/dist/description-list-CjcKOOnr.d.ts +110 -0
  188. package/dist/description-list-parts.d.ts +6 -0
  189. package/dist/description-list-parts.js +1 -0
  190. package/dist/description-list.d.ts +3 -183
  191. package/dist/description-list.js +1 -1
  192. package/dist/dialog-4Ed3U7hz.js +1 -0
  193. package/dist/dialog-BDb_obii.d.ts +166 -0
  194. package/dist/dialog-BaR9D58J.js +1 -0
  195. package/dist/dialog-BkNxAcol.d.ts +467 -0
  196. package/dist/dialog-DSYuhFD5.js +1 -0
  197. package/dist/dialog-fXMCxM9W.js +1 -0
  198. package/dist/dialog-parts.d.ts +6 -0
  199. package/dist/dialog-parts.js +1 -0
  200. package/dist/dialog.d.ts +88 -2
  201. package/dist/dialog.js +1 -1
  202. package/dist/dropdown-menu-BuluRn0Z.js +1 -0
  203. package/dist/dropdown-menu-CDXlp0QT.d.ts +507 -0
  204. package/dist/dropdown-menu-parts.d.ts +6 -0
  205. package/dist/dropdown-menu-parts.js +1 -0
  206. package/dist/dropdown-menu.d.ts +57 -1
  207. package/dist/dropdown-menu.js +1 -1
  208. package/dist/empty-parts.d.ts +120 -0
  209. package/dist/empty-parts.js +1 -0
  210. package/dist/empty.d.ts +2 -216
  211. package/dist/empty.js +1 -1
  212. package/dist/field-BRYypbjO.js +1 -0
  213. package/dist/field-BVMx7HoG.js +1 -0
  214. package/dist/field-BwCq1b9R.js +1 -0
  215. package/dist/field-CYAaNexp.js +1 -0
  216. package/dist/field-DRHAcM1s.js +1 -0
  217. package/dist/field-parts.d.ts +767 -0
  218. package/dist/field-parts.js +1 -0
  219. package/dist/field.d.ts +21 -1201
  220. package/dist/field.js +1 -1
  221. package/dist/flag.d.ts +1 -1
  222. package/dist/flag.js +1 -1
  223. package/dist/float-C_vwTtzU.js +1 -0
  224. package/dist/float-JmSzKDHd.js +1 -0
  225. package/dist/float-OhVY3cf4.js +1 -0
  226. package/dist/hooks-B-Cd15iL.js +1 -0
  227. package/dist/hooks-BP_uqBsI.js +1 -0
  228. package/dist/hooks-BsOjpTgs.js +1 -0
  229. package/dist/hooks-BybaGF7O.js +1 -0
  230. package/dist/hooks-C9b-2wGy.js +1 -0
  231. package/dist/hooks-CMmpICCH.js +1 -0
  232. package/dist/hooks-CUYIUcp6.js +1 -0
  233. package/dist/hooks-DKbOd_pQ.js +1 -0
  234. package/dist/hooks-DejuqCNF.js +1 -0
  235. package/dist/hooks-GsDfo7Zl.js +1 -0
  236. package/dist/hooks-PsYFJkz2.js +1 -0
  237. package/dist/hooks-lDz_S9UG.js +1 -0
  238. package/dist/hooks.d.ts +96 -7
  239. package/dist/hooks.js +1 -1
  240. package/dist/hover-card-BEC5EQiH.js +1 -0
  241. package/dist/hover-card-parts.d.ts +160 -0
  242. package/dist/hover-card-parts.js +1 -0
  243. package/dist/hover-card.d.ts +8 -280
  244. package/dist/hover-card.js +1 -1
  245. package/dist/icon-0RoVrpGj.js +1 -0
  246. package/dist/icon-BSGMvJ0W.js +1 -0
  247. package/dist/icon-DIiKxRTh.js +1 -0
  248. package/dist/{icon-QCm1ui29.d.ts → icon-Dqn_LLrR.d.ts} +1 -1
  249. package/dist/{icon-DuIYoyft.d.ts → icon-KTcDR4--.d.ts} +1 -1
  250. package/dist/icon.d.ts +2 -2
  251. package/dist/icon.js +1 -1
  252. package/dist/icons-CVgj9Whd.js +1 -0
  253. package/dist/icons-D_4cZaL1.js +1 -0
  254. package/dist/icons-DucrvIOa.js +1 -0
  255. package/dist/icons.js +1 -1
  256. package/dist/{index-KJ06KK6t.d.ts → index-CCkilmv8.d.ts} +1 -1
  257. package/dist/input-83xaPZWK.js +1 -0
  258. package/dist/input-B78ah4AB.js +1 -0
  259. package/dist/{input-DC4nW0Sr.d.ts → input-Bvpu3ruQ.d.ts} +1 -1
  260. package/dist/input.d.ts +2 -2
  261. package/dist/input.js +1 -1
  262. package/dist/kbd-Bz_Rbpv8.js +1 -0
  263. package/dist/kbd.d.ts +1 -1
  264. package/dist/kbd.js +1 -1
  265. package/dist/{label-epgtywRz.d.ts → label-DZpKu3Pu.d.ts} +1 -1
  266. package/dist/label-DmkAp9xI.js +1 -0
  267. package/dist/label.d.ts +1 -1
  268. package/dist/label.js +1 -1
  269. package/dist/layer-container-DDOZJ0fn.js +1 -0
  270. package/dist/layer-container.d.ts +9 -1
  271. package/dist/layer-container.js +1 -1
  272. package/dist/line-chart-CBL7eCqF.js +1 -0
  273. package/dist/line-chart-CIDFDkyb.d.ts +380 -0
  274. package/dist/line-chart-parts.d.ts +6 -0
  275. package/dist/line-chart-parts.js +1 -0
  276. package/dist/line-chart.d.ts +4 -568
  277. package/dist/line-chart.js +1 -1
  278. package/dist/list-CC3Pi__V.js +1 -0
  279. package/dist/list-Cx4KNfgC.d.ts +286 -0
  280. package/dist/list-FiFQJ0BU.js +1 -0
  281. package/dist/list-parts.d.ts +6 -0
  282. package/dist/list-parts.js +1 -0
  283. package/dist/list.d.ts +3 -400
  284. package/dist/list.js +1 -1
  285. package/dist/live-region-78gbKwlB.js +1 -0
  286. package/dist/live-region.d.ts +1 -1
  287. package/dist/live-region.js +1 -1
  288. package/dist/llms.txt +33 -10
  289. package/dist/main-9d96oUPG.js +1 -0
  290. package/dist/main.d.ts +1 -1
  291. package/dist/main.js +1 -1
  292. package/dist/mantle.css +1287 -893
  293. package/dist/media-object-parts.d.ts +65 -0
  294. package/dist/media-object-parts.js +1 -0
  295. package/dist/media-object.d.ts +2 -118
  296. package/dist/media-object.js +1 -1
  297. package/dist/migrations/0017-select-owned-behavior.yml +117 -0
  298. package/dist/migrations/0018-combobox-owned-behavior.yml +1661 -0
  299. package/dist/migrations/0019-multi-select-owned-behavior.yml +1414 -0
  300. package/dist/migrations/0020-native-floats.yml +823 -0
  301. package/dist/migrations/0021-native-radio-group.yml +397 -0
  302. package/dist/migrations/0024-command-owned-behavior.yml +66 -0
  303. package/dist/migrations/0026-native-dropdown-menu.yml +351 -0
  304. package/dist/migrations/0029-data-attribute-contract.yml +1707 -0
  305. package/dist/migrations/0030-between-variant.yml +1954 -0
  306. package/dist/multi-select-parts.d.ts +487 -0
  307. package/dist/multi-select-parts.js +1 -0
  308. package/dist/multi-select-qC0BuYKD.js +1 -0
  309. package/dist/multi-select.d.ts +6 -803
  310. package/dist/multi-select.js +1 -1
  311. package/dist/otp-input-LPdkb_Fg.js +1 -0
  312. package/dist/otp-input-parts.d.ts +211 -0
  313. package/dist/otp-input-parts.js +1 -0
  314. package/dist/otp-input-zl6MVio6.js +1 -0
  315. package/dist/otp-input.d.ts +11 -252
  316. package/dist/otp-input.js +1 -1
  317. package/dist/overlay-prompt-BIzMQvx7.js +1 -0
  318. package/dist/overlay-prompt-CDnhSoPJ.js +1 -0
  319. package/dist/overlay-prompt.d.ts +57 -0
  320. package/dist/overlay-prompt.js +1 -0
  321. package/dist/pagination-B2ESEbMI.d.ts +171 -0
  322. package/dist/pagination-CxaLKZcE.js +1 -0
  323. package/dist/pagination-Df1gTCN-.js +1 -0
  324. package/dist/pagination-cursor-pagination-parts.d.ts +6 -0
  325. package/dist/pagination-cursor-pagination-parts.js +1 -0
  326. package/dist/pagination.d.ts +38 -303
  327. package/dist/pagination.js +1 -1
  328. package/dist/popover-DOd6zLvE.d.ts +226 -0
  329. package/dist/popover-DWvHbepV.js +1 -0
  330. package/dist/popover-parts.d.ts +6 -0
  331. package/dist/popover-parts.js +1 -0
  332. package/dist/popover.d.ts +60 -2
  333. package/dist/popover.js +1 -1
  334. package/dist/position-Cv3XpSur.d.ts +5 -0
  335. package/dist/progress-BE0c8GW8.js +1 -0
  336. package/dist/progress-ZhFJhv9u.js +1 -0
  337. package/dist/progress-bar-parts.d.ts +86 -0
  338. package/dist/progress-bar-parts.js +1 -0
  339. package/dist/progress-donut-parts.d.ts +94 -0
  340. package/dist/progress-donut-parts.js +1 -0
  341. package/dist/progress-mJQMhxMX.js +1 -0
  342. package/dist/progress-zDpT3TY4.d.ts +2 -0
  343. package/dist/progress.d.ts +4 -268
  344. package/dist/progress.js +1 -1
  345. package/dist/qr-code-0zh10iIE.d.ts +148 -0
  346. package/dist/qr-code-BOOubA9x.js +1 -0
  347. package/dist/qr-code-D8tBKtjP.js +1 -0
  348. package/dist/qr-code-DzJjumoc.d.ts +46 -0
  349. package/dist/qr-code-encoder.browser.d.ts +15 -0
  350. package/dist/qr-code-encoder.browser.js +1 -0
  351. package/dist/qr-code-encoder.d.ts +15 -0
  352. package/dist/qr-code-encoder.js +1 -0
  353. package/dist/qr-code-parts.d.ts +6 -0
  354. package/dist/qr-code-parts.js +1 -0
  355. package/dist/qr-code.d.ts +4 -227
  356. package/dist/qr-code.js +1 -1
  357. package/dist/query-C0e5VYNp.d.ts +440 -0
  358. package/dist/query-V5NifJGs.js +1 -0
  359. package/dist/query-filter.js +1 -1
  360. package/dist/query-parts.d.ts +6 -0
  361. package/dist/query-parts.js +1 -0
  362. package/dist/query.d.ts +3 -637
  363. package/dist/query.js +1 -1
  364. package/dist/radio-group-B9jtIbV1.d.ts +39 -0
  365. package/dist/radio-group-f3ThXQCx.js +1 -0
  366. package/dist/radio-group-parts.d.ts +249 -0
  367. package/dist/radio-group-parts.js +1 -0
  368. package/dist/radio-group-zA5DjlLg.js +1 -0
  369. package/dist/radio-group.d.ts +7 -399
  370. package/dist/radio-group.js +1 -1
  371. package/dist/sandbar-Cm2yMjEZ.js +1 -0
  372. package/dist/sandbar-DU4wpKRc.d.ts +345 -0
  373. package/dist/sandbar-parts.d.ts +6 -0
  374. package/dist/sandbar-parts.js +1 -0
  375. package/dist/sandbar.d.ts +3 -438
  376. package/dist/sandbar.js +1 -1
  377. package/dist/sandboxed-on-click-Cg3lewoG.js +1 -0
  378. package/dist/sandboxed-on-click-DOw_Jkhk.js +1 -0
  379. package/dist/sandboxed-on-click.d.ts +1 -1
  380. package/dist/sandboxed-on-click.js +1 -1
  381. package/dist/scatter-plot-1vFxkpjT.js +1 -0
  382. package/dist/scatter-plot-D25jLIVw.d.ts +388 -0
  383. package/dist/scatter-plot-parts.d.ts +6 -0
  384. package/dist/scatter-plot-parts.js +1 -0
  385. package/dist/scatter-plot.d.ts +4 -573
  386. package/dist/scatter-plot.js +1 -1
  387. package/dist/segmented-control-DuiDPKDZ.js +1 -0
  388. package/dist/segmented-control-parts.d.ts +72 -0
  389. package/dist/segmented-control-parts.js +1 -0
  390. package/dist/segmented-control.d.ts +4 -100
  391. package/dist/segmented-control.js +1 -1
  392. package/dist/select-08IEtypH.js +1 -0
  393. package/dist/select-DM2wWfOO.d.ts +478 -0
  394. package/dist/select-parts.d.ts +6 -0
  395. package/dist/select-parts.js +1 -0
  396. package/dist/select.d.ts +63 -1
  397. package/dist/select.js +1 -1
  398. package/dist/selectable-list-Ax5F2Gz1.js +1 -0
  399. package/dist/selectable-list-CyLc3EEt.d.ts +407 -0
  400. package/dist/selectable-list-GcpbbRM1.js +1 -0
  401. package/dist/selectable-list-parts.d.ts +6 -0
  402. package/dist/selectable-list-parts.js +1 -0
  403. package/dist/selectable-list.d.ts +3 -643
  404. package/dist/selectable-list.js +1 -1
  405. package/dist/separator-BB1ohsjn.js +1 -0
  406. package/dist/{separator-Ck4sPrdN.d.ts → separator-BzHNVyyv.d.ts} +1 -1
  407. package/dist/separator.d.ts +1 -1
  408. package/dist/separator.js +1 -1
  409. package/dist/sheet-5JgxVaWC.js +1 -0
  410. package/dist/sheet-parts.d.ts +732 -0
  411. package/dist/sheet-parts.js +1 -0
  412. package/dist/sheet-qYPi5MP8.js +1 -0
  413. package/dist/sheet.d.ts +11 -1224
  414. package/dist/sheet.js +1 -1
  415. package/dist/sidebar-CsC9fyPL.js +1 -0
  416. package/dist/sidebar-HDVxTNPi.js +1 -0
  417. package/dist/sidebar-OBA7L42d.d.ts +1480 -0
  418. package/dist/sidebar-parts.d.ts +6 -0
  419. package/dist/sidebar-parts.js +1 -0
  420. package/dist/sidebar.d.ts +108 -2518
  421. package/dist/sidebar.js +1 -1
  422. package/dist/skeleton-DB0oQyAx.js +1 -0
  423. package/dist/skeleton.d.ts +1 -1
  424. package/dist/skeleton.js +1 -1
  425. package/dist/skip-to-main-link-BGhAWSqB.js +1 -0
  426. package/dist/skip-to-main-link.d.ts +1 -1
  427. package/dist/skip-to-main-link.js +1 -1
  428. package/dist/slider-YlBozcPQ.js +1 -0
  429. package/dist/slider.d.ts +149 -15
  430. package/dist/slider.js +1 -1
  431. package/dist/slot-5ZSmrISx.d.ts +19 -0
  432. package/dist/slot-BxngGBJ2.js +1 -0
  433. package/dist/slot-CBcGhRdV.js +1 -0
  434. package/dist/{slot-BEMQMbk3.d.ts → slot-tuk2J6bY.d.ts} +6 -23
  435. package/dist/slot.d.ts +1 -1
  436. package/dist/slot.js +1 -1
  437. package/dist/split-button-DvJHD7cZ.js +1 -0
  438. package/dist/split-button-parts.d.ts +178 -0
  439. package/dist/split-button-parts.js +1 -0
  440. package/dist/split-button.d.ts +2 -314
  441. package/dist/split-button.js +1 -1
  442. package/dist/strata-parts.d.ts +256 -0
  443. package/dist/strata-parts.js +1 -0
  444. package/dist/strata.d.ts +4 -493
  445. package/dist/strata.js +1 -1
  446. package/dist/switch-DajWYrq3.js +1 -0
  447. package/dist/switch.d.ts +36 -4
  448. package/dist/switch.js +1 -1
  449. package/dist/{table-Ii9hHUWN.d.ts → table-C2KnE83u.d.ts} +5 -444
  450. package/dist/table-DJHK48-8.js +1 -0
  451. package/dist/table-parts.d.ts +6 -0
  452. package/dist/table-parts.js +1 -0
  453. package/dist/table.d.ts +81 -1
  454. package/dist/table.js +1 -1
  455. package/dist/tabs-36-4SlRo.js +1 -0
  456. package/dist/tabs-CC_HAqr4.d.ts +193 -0
  457. package/dist/tabs-DayeszXP.js +1 -0
  458. package/dist/tabs-headless-tabs-parts.d.ts +6 -0
  459. package/dist/tabs-headless-tabs-parts.js +1 -0
  460. package/dist/tabs-parts.d.ts +237 -0
  461. package/dist/tabs-parts.js +1 -0
  462. package/dist/tabs.d.ts +43 -420
  463. package/dist/tabs.js +1 -1
  464. package/dist/text-area-D29JTaZg.js +1 -0
  465. package/dist/text-area.d.ts +1 -1
  466. package/dist/text-area.js +1 -1
  467. package/dist/theme-D6rP5Fy8.js +1 -0
  468. package/dist/theme-switcher-PKMCyJxT.js +1 -0
  469. package/dist/theme-switcher.d.ts +23 -19
  470. package/dist/theme-switcher.js +1 -1
  471. package/dist/theme-xoFnLba6.js +1 -0
  472. package/dist/theme.d.ts +70 -65
  473. package/dist/theme.js +1 -1
  474. package/dist/time-zone-CpWYKHdp.js +1 -0
  475. package/dist/time-zone-DZ4hUJ8K.js +1 -0
  476. package/dist/time-zone.d.ts +190 -0
  477. package/dist/time-zone.js +1 -0
  478. package/dist/toast-BJZ__22c.js +1 -0
  479. package/dist/toast-Cb9IN-6e.d.ts +185 -0
  480. package/dist/toast-DM_oq-3E.js +1 -0
  481. package/dist/toast-parts.d.ts +6 -0
  482. package/dist/toast-parts.js +1 -0
  483. package/dist/toast.d.ts +7 -256
  484. package/dist/toast.js +1 -1
  485. package/dist/tokens.dark.json +31 -266
  486. package/dist/tokens.json +139 -205
  487. package/dist/tooltip-D4HZn19B.js +1 -0
  488. package/dist/tooltip-DP6Lz6jv.d.ts +180 -0
  489. package/dist/tooltip-Uy-kz0rK.d.ts +1 -0
  490. package/dist/tooltip-parts.d.ts +7 -0
  491. package/dist/tooltip-parts.js +1 -0
  492. package/dist/tooltip.d.ts +57 -1
  493. package/dist/tooltip.js +1 -1
  494. package/dist/truncated-text-B5u2AlNg.js +1 -0
  495. package/dist/truncated-text-BoXHP-cD.js +1 -0
  496. package/dist/truncated-text.d.ts +3 -5
  497. package/dist/truncated-text.js +1 -1
  498. package/dist/types.d.ts +1 -1
  499. package/dist/types.js +1 -1
  500. package/dist/typography-C2BmSH12.d.ts +148 -0
  501. package/dist/typography-parts.d.ts +6 -0
  502. package/dist/typography-parts.js +1 -0
  503. package/dist/typography.d.ts +52 -0
  504. package/dist/typography.js +1 -0
  505. package/dist/use-combobox-OhIEVioc.d.ts +23 -0
  506. package/dist/use-float-WEqqhXBE.d.ts +18 -0
  507. package/dist/use-listbox-D4uIonSN.d.ts +1 -0
  508. package/dist/utils-BN3rwHzz.js +1 -0
  509. package/dist/utils-BlLYcYik.js +1 -0
  510. package/dist/utils-C4astHJG.js +1 -0
  511. package/dist/utils-CPSttKPD.js +1 -0
  512. package/dist/utils.js +1 -1
  513. package/dist/visually-hidden.d.ts +1 -1
  514. package/dist/visually-hidden.js +1 -1
  515. package/dist/well.d.ts +2 -2
  516. package/dist/well.js +1 -1
  517. package/dist/world-map-BDd3N_Ap.d.ts +424 -0
  518. package/dist/world-map-D3c8Pq-h.js +1 -0
  519. package/dist/world-map-parts.d.ts +6 -0
  520. package/dist/world-map-parts.js +1 -0
  521. package/dist/world-map-t9U-IMKS.js +1 -0
  522. package/dist/world-map.d.ts +80 -0
  523. package/dist/world-map.js +1 -0
  524. package/package.json +15 -18
  525. package/dist/alert-BkJHDx9X.js +0 -1
  526. package/dist/anchor-Dc6IgvXV.js +0 -1
  527. package/dist/browser-only-CZfkNw5A.js +0 -1
  528. package/dist/button-B9bChDgl.js +0 -1
  529. package/dist/button-BQZ6eoD3.js +0 -1
  530. package/dist/button-D8jixIbH.js +0 -1
  531. package/dist/button-DNLTJ32M.js +0 -1
  532. package/dist/chart-BLCqzt56.js +0 -1
  533. package/dist/chart-CChZiCrt.js +0 -1
  534. package/dist/chart-CUmSu9d7.js +0 -1
  535. package/dist/chart-DtgZBAas.js +0 -2
  536. package/dist/checkbox-Cu5cgZmk.js +0 -1
  537. package/dist/choice-CCVG2hb9.js +0 -1
  538. package/dist/clsx-DUGZgXfJ.js +0 -1
  539. package/dist/clsx-Dj3RWZ2l.js +0 -1
  540. package/dist/code-BPKNY1_w.js +0 -1
  541. package/dist/cx-CK7o_rVv.js +0 -1
  542. package/dist/dialog-CIEuwNys.d.ts +0 -958
  543. package/dist/dialog-CbEEA0fl.d.ts +0 -32
  544. package/dist/dialog-DmzoDfY3.js +0 -1
  545. package/dist/dropdown-menu-CeY498yk.d.ts +0 -775
  546. package/dist/dropdown-menu-uheL0prz.js +0 -1
  547. package/dist/field-Bpvn4tQp.js +0 -1
  548. package/dist/field-Cai_4c1l.js +0 -1
  549. package/dist/icon-BudQMD2S.js +0 -1
  550. package/dist/icon-xb7d9M7X.js +0 -1
  551. package/dist/icons-DEDCLZ8B.js +0 -1
  552. package/dist/icons-DXadFwpo.js +0 -1
  553. package/dist/icons-DcesO4Ng.js +0 -1
  554. package/dist/input-DQyN6gN0.js +0 -1
  555. package/dist/input-fW8QSZEO.js +0 -1
  556. package/dist/interactive-target-BXScNeOr.js +0 -1
  557. package/dist/kbd-P1nQshWo.js +0 -1
  558. package/dist/label-DO1RlMKl.js +0 -1
  559. package/dist/layer-container-DL4yclOu.js +0 -1
  560. package/dist/list-cQZPSjfz.js +0 -1
  561. package/dist/live-region-Dhapu8a5.js +0 -1
  562. package/dist/main-CHyWYDak.js +0 -1
  563. package/dist/popover-Bei0jyfH.d.ts +0 -357
  564. package/dist/popover-DhgunktK.js +0 -1
  565. package/dist/popover-T2EyaqGK.d.ts +0 -1
  566. package/dist/primitive-D8CzV_Ft.js +0 -1
  567. package/dist/radio-group-BJQ6EOqh.d.ts +0 -27
  568. package/dist/radio-group-ggEkCi0V.js +0 -1
  569. package/dist/sandboxed-on-click-D4PL5_GR.js +0 -1
  570. package/dist/select-1xuUx_os.js +0 -1
  571. package/dist/select-BpaXHxJm.d.ts +0 -890
  572. package/dist/separator-DnvhwY2J.js +0 -1
  573. package/dist/shake-CAUpKBHe.js +0 -1
  574. package/dist/sheet-DHy_vlme.js +0 -1
  575. package/dist/skeleton-DHfyjuQi.js +0 -1
  576. package/dist/slot-B7rwscwd.js +0 -1
  577. package/dist/table-BnLdXUai.js +0 -1
  578. package/dist/theme-BNdZl352.js +0 -1
  579. package/dist/tooltip-CstGDKwy.d.ts +0 -283
  580. package/dist/tooltip-DQO40Mrq.js +0 -1
  581. package/dist/use-breakpoint-B4Kh0xE6.js +0 -1
  582. package/dist/use-callback-ref-DiOXFQzM.js +0 -1
  583. package/dist/use-composed-refs-DPYmLDSe.js +0 -1
  584. package/dist/use-copy-to-clipboard-hBL6_65i.js +0 -1
  585. package/dist/use-inert-siblings-C4RHXrZc.js +0 -1
  586. package/dist/use-is-apple-platform-Bq6_KbVX.js +0 -1
  587. package/dist/use-is-hydrated-after-paint-CrHt3OHw.js +0 -1
  588. package/dist/use-isomorphic-layout-effect-CL6iq0Bj.js +0 -1
  589. package/dist/use-matches-media-query-FfvtNKQe.js +0 -1
  590. package/dist/use-prefers-reduced-motion-Ck6dnOM9.js +0 -1
  591. package/dist/use-swipe-to-dismiss-BYdlca8r.js +0 -1
  592. /package/dist/{use-is-hydrated-BeLOGKwE.js → hooks-BeLOGKwE.js} +0 -0
  593. /package/dist/{suggestions-Ciz2vaJO.js → query-filter-Ciz2vaJO.js} +0 -0
  594. /package/dist/{direction-CvDpql3O.js → sorting-CvDpql3O.js} +0 -0
  595. /package/dist/{booleanish-BfvnW6vy.js → types-BfvnW6vy.js} +0 -0
  596. /package/dist/{css-properties-D85fCNV3.js → types-D85fCNV3.js} +0 -0
  597. /package/dist/{alternate-announcement-BkH4bOKp.js → utils-BkH4bOKp.js} +0 -0
  598. /package/dist/{copy-to-clipboard-Dd83caRw.js → utils-Dd83caRw.js} +0 -0
  599. /package/dist/{in-view-Dxv_GrUU.js → utils-Dxv_GrUU.js} +0 -0
  600. /package/dist/{data-slot-EM6s2WEU.js → utils-EM6s2WEU.js} +0 -0
  601. /package/dist/{cookie-ca4g5CKp.js → utils-ca4g5CKp.js} +0 -0
@@ -0,0 +1,1414 @@
1
+ # Every rule binds the local name of the MultiSelect import from
2
+ # `@ngrok/mantle/multi-select`, so an aliased import matches and another library's
3
+ # `MultiSelect` does not.
4
+ id: multi-select-root-selected-value
5
+ language: tsx
6
+ message: MultiSelect.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
+ multi-select-import:
52
+ kind: import_statement
53
+ all:
54
+ - has:
55
+ field: source
56
+ regex: ^["']@ngrok/mantle/multi-select["']$
57
+ - has:
58
+ stopBy: end
59
+ kind: import_specifier
60
+ has:
61
+ field: name
62
+ regex: ^MultiSelect$
63
+ any:
64
+ - kind: import_specifier
65
+ has:
66
+ field: alias
67
+ pattern: $MULTI
68
+ - kind: import_specifier
69
+ not:
70
+ has:
71
+ field: alias
72
+ kind: identifier
73
+ has:
74
+ field: name
75
+ pattern: $MULTI
76
+ multi-select-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: $MULTI
87
+ - has:
88
+ field: property
89
+ regex: ^Root$
90
+ - inside:
91
+ stopBy: end
92
+ kind: program
93
+ has:
94
+ matches: multi-select-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: $MULTI
107
+ - matches: function-declaration
108
+ has:
109
+ field: name
110
+ pattern: $MULTI
111
+ rule:
112
+ kind: property_identifier
113
+ regex: ^selectedValue$
114
+ inside:
115
+ kind: jsx_attribute
116
+ inside:
117
+ matches: multi-select-root
118
+ fix: value
119
+ ---
120
+ id: multi-select-root-default-selected-value
121
+ language: tsx
122
+ message: MultiSelect.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
+ multi-select-import:
168
+ kind: import_statement
169
+ all:
170
+ - has:
171
+ field: source
172
+ regex: ^["']@ngrok/mantle/multi-select["']$
173
+ - has:
174
+ stopBy: end
175
+ kind: import_specifier
176
+ has:
177
+ field: name
178
+ regex: ^MultiSelect$
179
+ any:
180
+ - kind: import_specifier
181
+ has:
182
+ field: alias
183
+ pattern: $MULTI
184
+ - kind: import_specifier
185
+ not:
186
+ has:
187
+ field: alias
188
+ kind: identifier
189
+ has:
190
+ field: name
191
+ pattern: $MULTI
192
+ multi-select-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: $MULTI
203
+ - has:
204
+ field: property
205
+ regex: ^Root$
206
+ - inside:
207
+ stopBy: end
208
+ kind: program
209
+ has:
210
+ matches: multi-select-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: $MULTI
223
+ - matches: function-declaration
224
+ has:
225
+ field: name
226
+ pattern: $MULTI
227
+ rule:
228
+ kind: property_identifier
229
+ regex: ^defaultSelectedValue$
230
+ inside:
231
+ kind: jsx_attribute
232
+ inside:
233
+ matches: multi-select-root
234
+ fix: defaultValue
235
+ ---
236
+ id: multi-select-root-set-selected-value
237
+ language: tsx
238
+ message: MultiSelect.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
+ multi-select-import:
284
+ kind: import_statement
285
+ all:
286
+ - has:
287
+ field: source
288
+ regex: ^["']@ngrok/mantle/multi-select["']$
289
+ - has:
290
+ stopBy: end
291
+ kind: import_specifier
292
+ has:
293
+ field: name
294
+ regex: ^MultiSelect$
295
+ any:
296
+ - kind: import_specifier
297
+ has:
298
+ field: alias
299
+ pattern: $MULTI
300
+ - kind: import_specifier
301
+ not:
302
+ has:
303
+ field: alias
304
+ kind: identifier
305
+ has:
306
+ field: name
307
+ pattern: $MULTI
308
+ multi-select-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: $MULTI
319
+ - has:
320
+ field: property
321
+ regex: ^Root$
322
+ - inside:
323
+ stopBy: end
324
+ kind: program
325
+ has:
326
+ matches: multi-select-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: $MULTI
339
+ - matches: function-declaration
340
+ has:
341
+ field: name
342
+ pattern: $MULTI
343
+ rule:
344
+ kind: property_identifier
345
+ regex: ^setSelectedValue$
346
+ inside:
347
+ kind: jsx_attribute
348
+ inside:
349
+ matches: multi-select-root
350
+ fix: onValueChange
351
+ ---
352
+ id: multi-select-root-set-value
353
+ language: tsx
354
+ message: MultiSelect.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
+ multi-select-import:
400
+ kind: import_statement
401
+ all:
402
+ - has:
403
+ field: source
404
+ regex: ^["']@ngrok/mantle/multi-select["']$
405
+ - has:
406
+ stopBy: end
407
+ kind: import_specifier
408
+ has:
409
+ field: name
410
+ regex: ^MultiSelect$
411
+ any:
412
+ - kind: import_specifier
413
+ has:
414
+ field: alias
415
+ pattern: $MULTI
416
+ - kind: import_specifier
417
+ not:
418
+ has:
419
+ field: alias
420
+ kind: identifier
421
+ has:
422
+ field: name
423
+ pattern: $MULTI
424
+ multi-select-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: $MULTI
435
+ - has:
436
+ field: property
437
+ regex: ^Root$
438
+ - inside:
439
+ stopBy: end
440
+ kind: program
441
+ has:
442
+ matches: multi-select-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: $MULTI
455
+ - matches: function-declaration
456
+ has:
457
+ field: name
458
+ pattern: $MULTI
459
+ rule:
460
+ kind: property_identifier
461
+ regex: ^setValue$
462
+ inside:
463
+ kind: jsx_attribute
464
+ inside:
465
+ matches: multi-select-root
466
+ fix: onInputValueChange
467
+ ---
468
+ id: multi-select-root-set-input-value
469
+ language: tsx
470
+ message: MultiSelect.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
+ multi-select-import:
516
+ kind: import_statement
517
+ all:
518
+ - has:
519
+ field: source
520
+ regex: ^["']@ngrok/mantle/multi-select["']$
521
+ - has:
522
+ stopBy: end
523
+ kind: import_specifier
524
+ has:
525
+ field: name
526
+ regex: ^MultiSelect$
527
+ any:
528
+ - kind: import_specifier
529
+ has:
530
+ field: alias
531
+ pattern: $MULTI
532
+ - kind: import_specifier
533
+ not:
534
+ has:
535
+ field: alias
536
+ kind: identifier
537
+ has:
538
+ field: name
539
+ pattern: $MULTI
540
+ multi-select-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: $MULTI
551
+ - has:
552
+ field: property
553
+ regex: ^Root$
554
+ - inside:
555
+ stopBy: end
556
+ kind: program
557
+ has:
558
+ matches: multi-select-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: $MULTI
571
+ - matches: function-declaration
572
+ has:
573
+ field: name
574
+ pattern: $MULTI
575
+ rule:
576
+ kind: property_identifier
577
+ regex: ^setInputValue$
578
+ inside:
579
+ kind: jsx_attribute
580
+ inside:
581
+ matches: multi-select-root
582
+ fix: onInputValueChange
583
+ ---
584
+ id: multi-select-root-set-open
585
+ language: tsx
586
+ message: MultiSelect.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
+ multi-select-import:
632
+ kind: import_statement
633
+ all:
634
+ - has:
635
+ field: source
636
+ regex: ^["']@ngrok/mantle/multi-select["']$
637
+ - has:
638
+ stopBy: end
639
+ kind: import_specifier
640
+ has:
641
+ field: name
642
+ regex: ^MultiSelect$
643
+ any:
644
+ - kind: import_specifier
645
+ has:
646
+ field: alias
647
+ pattern: $MULTI
648
+ - kind: import_specifier
649
+ not:
650
+ has:
651
+ field: alias
652
+ kind: identifier
653
+ has:
654
+ field: name
655
+ pattern: $MULTI
656
+ multi-select-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: $MULTI
667
+ - has:
668
+ field: property
669
+ regex: ^Root$
670
+ - inside:
671
+ stopBy: end
672
+ kind: program
673
+ has:
674
+ matches: multi-select-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: $MULTI
687
+ - matches: function-declaration
688
+ has:
689
+ field: name
690
+ pattern: $MULTI
691
+ rule:
692
+ kind: property_identifier
693
+ regex: ^setOpen$
694
+ inside:
695
+ kind: jsx_attribute
696
+ inside:
697
+ matches: multi-select-root
698
+ fix: onOpenChange
699
+ ---
700
+ id: multi-select-root-value-text
701
+ language: tsx
702
+ message: MultiSelect.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
+ multi-select-import:
748
+ kind: import_statement
749
+ all:
750
+ - has:
751
+ field: source
752
+ regex: ^["']@ngrok/mantle/multi-select["']$
753
+ - has:
754
+ stopBy: end
755
+ kind: import_specifier
756
+ has:
757
+ field: name
758
+ regex: ^MultiSelect$
759
+ any:
760
+ - kind: import_specifier
761
+ has:
762
+ field: alias
763
+ pattern: $MULTI
764
+ - kind: import_specifier
765
+ not:
766
+ has:
767
+ field: alias
768
+ kind: identifier
769
+ has:
770
+ field: name
771
+ pattern: $MULTI
772
+ multi-select-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: $MULTI
783
+ - has:
784
+ field: property
785
+ regex: ^Root$
786
+ - inside:
787
+ stopBy: end
788
+ kind: program
789
+ has:
790
+ matches: multi-select-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: $MULTI
803
+ - matches: function-declaration
804
+ has:
805
+ field: name
806
+ pattern: $MULTI
807
+ rule:
808
+ kind: property_identifier
809
+ regex: ^value$
810
+ inside:
811
+ kind: jsx_attribute
812
+ inside:
813
+ matches: multi-select-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: multi-select-root-value-check
822
+ language: tsx
823
+ message: MultiSelect.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
+ multi-select-import:
869
+ kind: import_statement
870
+ all:
871
+ - has:
872
+ field: source
873
+ regex: ^["']@ngrok/mantle/multi-select["']$
874
+ - has:
875
+ stopBy: end
876
+ kind: import_specifier
877
+ has:
878
+ field: name
879
+ regex: ^MultiSelect$
880
+ any:
881
+ - kind: import_specifier
882
+ has:
883
+ field: alias
884
+ pattern: $MULTI
885
+ - kind: import_specifier
886
+ not:
887
+ has:
888
+ field: alias
889
+ kind: identifier
890
+ has:
891
+ field: name
892
+ pattern: $MULTI
893
+ multi-select-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: $MULTI
904
+ - has:
905
+ field: property
906
+ regex: ^Root$
907
+ - inside:
908
+ stopBy: end
909
+ kind: program
910
+ has:
911
+ matches: multi-select-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: $MULTI
924
+ - matches: function-declaration
925
+ has:
926
+ field: name
927
+ pattern: $MULTI
928
+ rule:
929
+ kind: property_identifier
930
+ regex: ^value$
931
+ inside:
932
+ kind: jsx_attribute
933
+ inside:
934
+ matches: multi-select-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: multi-select-root-default-value-text
943
+ language: tsx
944
+ message: MultiSelect.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
+ multi-select-import:
990
+ kind: import_statement
991
+ all:
992
+ - has:
993
+ field: source
994
+ regex: ^["']@ngrok/mantle/multi-select["']$
995
+ - has:
996
+ stopBy: end
997
+ kind: import_specifier
998
+ has:
999
+ field: name
1000
+ regex: ^MultiSelect$
1001
+ any:
1002
+ - kind: import_specifier
1003
+ has:
1004
+ field: alias
1005
+ pattern: $MULTI
1006
+ - kind: import_specifier
1007
+ not:
1008
+ has:
1009
+ field: alias
1010
+ kind: identifier
1011
+ has:
1012
+ field: name
1013
+ pattern: $MULTI
1014
+ multi-select-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: $MULTI
1025
+ - has:
1026
+ field: property
1027
+ regex: ^Root$
1028
+ - inside:
1029
+ stopBy: end
1030
+ kind: program
1031
+ has:
1032
+ matches: multi-select-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: $MULTI
1045
+ - matches: function-declaration
1046
+ has:
1047
+ field: name
1048
+ pattern: $MULTI
1049
+ rule:
1050
+ kind: property_identifier
1051
+ regex: ^defaultValue$
1052
+ inside:
1053
+ kind: jsx_attribute
1054
+ inside:
1055
+ matches: multi-select-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: multi-select-root-default-value-check
1064
+ language: tsx
1065
+ message: MultiSelect.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
+ multi-select-import:
1111
+ kind: import_statement
1112
+ all:
1113
+ - has:
1114
+ field: source
1115
+ regex: ^["']@ngrok/mantle/multi-select["']$
1116
+ - has:
1117
+ stopBy: end
1118
+ kind: import_specifier
1119
+ has:
1120
+ field: name
1121
+ regex: ^MultiSelect$
1122
+ any:
1123
+ - kind: import_specifier
1124
+ has:
1125
+ field: alias
1126
+ pattern: $MULTI
1127
+ - kind: import_specifier
1128
+ not:
1129
+ has:
1130
+ field: alias
1131
+ kind: identifier
1132
+ has:
1133
+ field: name
1134
+ pattern: $MULTI
1135
+ multi-select-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: $MULTI
1146
+ - has:
1147
+ field: property
1148
+ regex: ^Root$
1149
+ - inside:
1150
+ stopBy: end
1151
+ kind: program
1152
+ has:
1153
+ matches: multi-select-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: $MULTI
1166
+ - matches: function-declaration
1167
+ has:
1168
+ field: name
1169
+ pattern: $MULTI
1170
+ rule:
1171
+ kind: property_identifier
1172
+ regex: ^defaultValue$
1173
+ inside:
1174
+ kind: jsx_attribute
1175
+ inside:
1176
+ matches: multi-select-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: multi-select-content-popover-props
1185
+ language: tsx
1186
+ message: MultiSelect.Content opens below its trigger, 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
+ multi-select-import:
1232
+ kind: import_statement
1233
+ all:
1234
+ - has:
1235
+ field: source
1236
+ regex: ^["']@ngrok/mantle/multi-select["']$
1237
+ - has:
1238
+ stopBy: end
1239
+ kind: import_specifier
1240
+ has:
1241
+ field: name
1242
+ regex: ^MultiSelect$
1243
+ any:
1244
+ - kind: import_specifier
1245
+ has:
1246
+ field: alias
1247
+ pattern: $MULTI
1248
+ - kind: import_specifier
1249
+ not:
1250
+ has:
1251
+ field: alias
1252
+ kind: identifier
1253
+ has:
1254
+ field: name
1255
+ pattern: $MULTI
1256
+ multi-select-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: $MULTI
1267
+ - has:
1268
+ field: property
1269
+ regex: ^Content$
1270
+ - inside:
1271
+ stopBy: end
1272
+ kind: program
1273
+ has:
1274
+ matches: multi-select-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: $MULTI
1287
+ - matches: function-declaration
1288
+ has:
1289
+ field: name
1290
+ pattern: $MULTI
1291
+ rule:
1292
+ kind: jsx_attribute
1293
+ has:
1294
+ kind: property_identifier
1295
+ regex: ^(unmountOnHide|gutter|shift|placement|portal|portalElement|fitViewport|flip|overflowPadding|updatePosition|modal|backdrop|preventBodyScroll)$
1296
+ inside:
1297
+ matches: multi-select-content
1298
+ fix: ""
1299
+ ---
1300
+ id: multi-select-item-focus-on-hover
1301
+ language: tsx
1302
+ message: MultiSelect.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
+ multi-select-import:
1348
+ kind: import_statement
1349
+ all:
1350
+ - has:
1351
+ field: source
1352
+ regex: ^["']@ngrok/mantle/multi-select["']$
1353
+ - has:
1354
+ stopBy: end
1355
+ kind: import_specifier
1356
+ has:
1357
+ field: name
1358
+ regex: ^MultiSelect$
1359
+ any:
1360
+ - kind: import_specifier
1361
+ has:
1362
+ field: alias
1363
+ pattern: $MULTI
1364
+ - kind: import_specifier
1365
+ not:
1366
+ has:
1367
+ field: alias
1368
+ kind: identifier
1369
+ has:
1370
+ field: name
1371
+ pattern: $MULTI
1372
+ multi-select-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: $MULTI
1383
+ - has:
1384
+ field: property
1385
+ regex: ^Item$
1386
+ - inside:
1387
+ stopBy: end
1388
+ kind: program
1389
+ has:
1390
+ matches: multi-select-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: $MULTI
1403
+ - matches: function-declaration
1404
+ has:
1405
+ field: name
1406
+ pattern: $MULTI
1407
+ rule:
1408
+ kind: jsx_attribute
1409
+ has:
1410
+ kind: property_identifier
1411
+ regex: ^focusOnHover$
1412
+ inside:
1413
+ matches: multi-select-item
1414
+ fix: ""