@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,1954 @@
1
+ # Rewrites `space-*` and `divide-*` in the className of a mantle part whose own
2
+ # spacing or dividers now use the `between:` variant, so that `cx` replaces the
3
+ # part's class again. Each rule binds $NS to the local name of one namespace
4
+ # import, so an aliased import matches and another library's part does not.
5
+ # Classes on other elements stay: Tailwind's utilities still work there.
6
+ id: space-divide-to-between-accordion
7
+ language: tsx
8
+ message: Accordion spaces or divides its children with `between:`; write the override with `between:` so `cx` replaces it
9
+ utils:
10
+ # A node that opens a lexical scope. The shadow search below stops at a
11
+ # nested one, so a sibling function's local name does not count.
12
+ scope:
13
+ any:
14
+ - kind: statement_block
15
+ - kind: function_declaration
16
+ - kind: generator_function_declaration
17
+ - kind: function_expression
18
+ - kind: generator_function
19
+ - kind: arrow_function
20
+ - kind: method_definition
21
+ - kind: class_body
22
+ - kind: for_statement
23
+ - kind: for_in_statement
24
+ - kind: catch_clause
25
+ # An identifier in a binding position: a parameter, a destructured name, a
26
+ # local variable, a function name, or a class name.
27
+ binding-name:
28
+ any:
29
+ - kind: shorthand_property_identifier_pattern
30
+ - kind: identifier
31
+ any:
32
+ - inside: { kind: variable_declarator, field: name }
33
+ - inside: { kind: function_declaration, field: name }
34
+ - inside: { kind: generator_function_declaration, field: name }
35
+ - inside: { kind: function_expression, field: name }
36
+ - inside: { kind: required_parameter, field: pattern }
37
+ - inside: { kind: optional_parameter, field: pattern }
38
+ - inside: { kind: assignment_pattern, field: left }
39
+ - inside: { kind: pair_pattern, field: value }
40
+ - inside: { kind: array_pattern }
41
+ - inside: { kind: rest_pattern }
42
+ - inside: { kind: arrow_function, field: parameter }
43
+ - inside: { kind: catch_clause, field: parameter }
44
+ - kind: type_identifier
45
+ inside: { kind: class_declaration, field: name }
46
+ # A function declaration opens a scope, so the search above stops at it and
47
+ # never reads its name. This matches the declaration itself instead.
48
+ function-declaration:
49
+ any:
50
+ - kind: function_declaration
51
+ - kind: generator_function_declaration
52
+ ns-import:
53
+ kind: import_statement
54
+ all:
55
+ - has:
56
+ field: source
57
+ regex: ^["']@ngrok/mantle/accordion["']$
58
+ - has:
59
+ stopBy: end
60
+ kind: import_specifier
61
+ has:
62
+ field: name
63
+ regex: ^Accordion$
64
+ any:
65
+ - kind: import_specifier
66
+ has:
67
+ field: alias
68
+ pattern: $NS
69
+ - kind: import_specifier
70
+ not:
71
+ has:
72
+ field: alias
73
+ kind: identifier
74
+ has:
75
+ field: name
76
+ pattern: $NS
77
+ # The opening tag of an affected part, in a file that imports the namespace,
78
+ # where no parameter or local shadows the import's name.
79
+ part-tag:
80
+ any:
81
+ - kind: jsx_opening_element
82
+ - kind: jsx_self_closing_element
83
+ all:
84
+ - has:
85
+ field: name
86
+ kind: member_expression
87
+ all:
88
+ - has:
89
+ field: object
90
+ pattern: $NS
91
+ - has:
92
+ field: property
93
+ regex: ^(Root)$
94
+ - inside:
95
+ stopBy: end
96
+ kind: program
97
+ has:
98
+ matches: ns-import
99
+ - not:
100
+ inside:
101
+ stopBy: end
102
+ matches: scope
103
+ has:
104
+ stopBy:
105
+ matches: scope
106
+ any:
107
+ - matches: binding-name
108
+ pattern: $NS
109
+ - matches: function-declaration
110
+ has:
111
+ field: name
112
+ pattern: $NS
113
+ as-child:
114
+ kind: jsx_attribute
115
+ has:
116
+ kind: property_identifier
117
+ regex: ^asChild$
118
+ # The className of the part, or of the one element that an `asChild` part
119
+ # renders, because Slot merges that element's classes after the part's.
120
+ part-class:
121
+ inside:
122
+ stopBy: end
123
+ kind: jsx_attribute
124
+ has:
125
+ kind: property_identifier
126
+ regex: ^className$
127
+ inside:
128
+ any:
129
+ - matches: part-tag
130
+ - all:
131
+ - any:
132
+ - kind: jsx_opening_element
133
+ - kind: jsx_self_closing_element
134
+ - any:
135
+ - inside:
136
+ kind: jsx_element
137
+ has:
138
+ field: open_tag
139
+ matches: part-tag
140
+ has:
141
+ matches: as-child
142
+ - inside:
143
+ kind: jsx_element
144
+ inside:
145
+ kind: jsx_element
146
+ has:
147
+ field: open_tag
148
+ matches: part-tag
149
+ has:
150
+ matches: as-child
151
+ rule:
152
+ kind: string_fragment
153
+ regex: '(^|[\s:])-?(space-[xy]-|divide-)'
154
+ pattern: $F
155
+ all:
156
+ - matches: part-class
157
+ # Why: a reverse utility has no `between:` form; it stays manual.
158
+ - not:
159
+ regex: "(space|divide)-[xy]-reverse"
160
+ # Why: a colon inside an arbitrary variant is not a variant boundary.
161
+ - not:
162
+ regex: '(space-[xy]-|divide-)[^\s]*\]'
163
+ # Why: a string compared with `===` chooses a class; it is not one.
164
+ - not:
165
+ inside:
166
+ kind: string
167
+ inside:
168
+ any:
169
+ - pattern: $A === $B
170
+ - pattern: $A !== $B
171
+ - pattern: $A == $B
172
+ - pattern: $A != $B
173
+ transform:
174
+ T1:
175
+ replace:
176
+ source: $F
177
+ replace: '(^|[\s:])(-?)space-y-'
178
+ by: "${1}between:${2}mbe-"
179
+ T2:
180
+ replace:
181
+ source: $T1
182
+ replace: '(^|[\s:])(-?)space-x-'
183
+ by: "${1}between:${2}me-"
184
+ T3:
185
+ replace:
186
+ source: $T2
187
+ replace: '(^|[\s:])divide-y\b'
188
+ by: "${1}between:border-b"
189
+ T4:
190
+ replace:
191
+ source: $T3
192
+ replace: '(^|[\s:])divide-x\b'
193
+ by: "${1}between:border-e"
194
+ T5:
195
+ replace:
196
+ source: $T4
197
+ replace: '(^|[\s:])divide-'
198
+ by: "${1}between:border-"
199
+ fix: $T5
200
+ ---
201
+ id: space-divide-to-between-strata
202
+ language: tsx
203
+ message: Strata spaces or divides its children with `between:`; write the override with `between:` so `cx` replaces it
204
+ utils:
205
+ # A node that opens a lexical scope. The shadow search below stops at a
206
+ # nested one, so a sibling function's local name does not count.
207
+ scope:
208
+ any:
209
+ - kind: statement_block
210
+ - kind: function_declaration
211
+ - kind: generator_function_declaration
212
+ - kind: function_expression
213
+ - kind: generator_function
214
+ - kind: arrow_function
215
+ - kind: method_definition
216
+ - kind: class_body
217
+ - kind: for_statement
218
+ - kind: for_in_statement
219
+ - kind: catch_clause
220
+ # An identifier in a binding position: a parameter, a destructured name, a
221
+ # local variable, a function name, or a class name.
222
+ binding-name:
223
+ any:
224
+ - kind: shorthand_property_identifier_pattern
225
+ - kind: identifier
226
+ any:
227
+ - inside: { kind: variable_declarator, field: name }
228
+ - inside: { kind: function_declaration, field: name }
229
+ - inside: { kind: generator_function_declaration, field: name }
230
+ - inside: { kind: function_expression, field: name }
231
+ - inside: { kind: required_parameter, field: pattern }
232
+ - inside: { kind: optional_parameter, field: pattern }
233
+ - inside: { kind: assignment_pattern, field: left }
234
+ - inside: { kind: pair_pattern, field: value }
235
+ - inside: { kind: array_pattern }
236
+ - inside: { kind: rest_pattern }
237
+ - inside: { kind: arrow_function, field: parameter }
238
+ - inside: { kind: catch_clause, field: parameter }
239
+ - kind: type_identifier
240
+ inside: { kind: class_declaration, field: name }
241
+ # A function declaration opens a scope, so the search above stops at it and
242
+ # never reads its name. This matches the declaration itself instead.
243
+ function-declaration:
244
+ any:
245
+ - kind: function_declaration
246
+ - kind: generator_function_declaration
247
+ ns-import:
248
+ kind: import_statement
249
+ all:
250
+ - has:
251
+ field: source
252
+ regex: ^["']@ngrok/mantle/strata["']$
253
+ - has:
254
+ stopBy: end
255
+ kind: import_specifier
256
+ has:
257
+ field: name
258
+ regex: ^Strata$
259
+ any:
260
+ - kind: import_specifier
261
+ has:
262
+ field: alias
263
+ pattern: $NS
264
+ - kind: import_specifier
265
+ not:
266
+ has:
267
+ field: alias
268
+ kind: identifier
269
+ has:
270
+ field: name
271
+ pattern: $NS
272
+ # The opening tag of an affected part, in a file that imports the namespace,
273
+ # where no parameter or local shadows the import's name.
274
+ part-tag:
275
+ any:
276
+ - kind: jsx_opening_element
277
+ - kind: jsx_self_closing_element
278
+ all:
279
+ - has:
280
+ field: name
281
+ kind: member_expression
282
+ all:
283
+ - has:
284
+ field: object
285
+ pattern: $NS
286
+ - has:
287
+ field: property
288
+ regex: ^(Root)$
289
+ - inside:
290
+ stopBy: end
291
+ kind: program
292
+ has:
293
+ matches: ns-import
294
+ - not:
295
+ inside:
296
+ stopBy: end
297
+ matches: scope
298
+ has:
299
+ stopBy:
300
+ matches: scope
301
+ any:
302
+ - matches: binding-name
303
+ pattern: $NS
304
+ - matches: function-declaration
305
+ has:
306
+ field: name
307
+ pattern: $NS
308
+ as-child:
309
+ kind: jsx_attribute
310
+ has:
311
+ kind: property_identifier
312
+ regex: ^asChild$
313
+ # The className of the part, or of the one element that an `asChild` part
314
+ # renders, because Slot merges that element's classes after the part's.
315
+ part-class:
316
+ inside:
317
+ stopBy: end
318
+ kind: jsx_attribute
319
+ has:
320
+ kind: property_identifier
321
+ regex: ^className$
322
+ inside:
323
+ any:
324
+ - matches: part-tag
325
+ - all:
326
+ - any:
327
+ - kind: jsx_opening_element
328
+ - kind: jsx_self_closing_element
329
+ - any:
330
+ - inside:
331
+ kind: jsx_element
332
+ has:
333
+ field: open_tag
334
+ matches: part-tag
335
+ has:
336
+ matches: as-child
337
+ - inside:
338
+ kind: jsx_element
339
+ inside:
340
+ kind: jsx_element
341
+ has:
342
+ field: open_tag
343
+ matches: part-tag
344
+ has:
345
+ matches: as-child
346
+ rule:
347
+ kind: string_fragment
348
+ regex: '(^|[\s:])-?(space-[xy]-|divide-)'
349
+ pattern: $F
350
+ all:
351
+ - matches: part-class
352
+ # Why: a reverse utility has no `between:` form; it stays manual.
353
+ - not:
354
+ regex: "(space|divide)-[xy]-reverse"
355
+ # Why: a colon inside an arbitrary variant is not a variant boundary.
356
+ - not:
357
+ regex: '(space-[xy]-|divide-)[^\s]*\]'
358
+ # Why: a string compared with `===` chooses a class; it is not one.
359
+ - not:
360
+ inside:
361
+ kind: string
362
+ inside:
363
+ any:
364
+ - pattern: $A === $B
365
+ - pattern: $A !== $B
366
+ - pattern: $A == $B
367
+ - pattern: $A != $B
368
+ transform:
369
+ T1:
370
+ replace:
371
+ source: $F
372
+ replace: '(^|[\s:])(-?)space-y-'
373
+ by: "${1}between:${2}mbe-"
374
+ T2:
375
+ replace:
376
+ source: $T1
377
+ replace: '(^|[\s:])(-?)space-x-'
378
+ by: "${1}between:${2}me-"
379
+ T3:
380
+ replace:
381
+ source: $T2
382
+ replace: '(^|[\s:])divide-y\b'
383
+ by: "${1}between:border-b"
384
+ T4:
385
+ replace:
386
+ source: $T3
387
+ replace: '(^|[\s:])divide-x\b'
388
+ by: "${1}between:border-e"
389
+ T5:
390
+ replace:
391
+ source: $T4
392
+ replace: '(^|[\s:])divide-'
393
+ by: "${1}between:border-"
394
+ fix: $T5
395
+ ---
396
+ id: space-divide-to-between-alert-dialog
397
+ language: tsx
398
+ message: AlertDialog spaces or divides its children with `between:`; write the override with `between:` so `cx` replaces it
399
+ utils:
400
+ # A node that opens a lexical scope. The shadow search below stops at a
401
+ # nested one, so a sibling function's local name does not count.
402
+ scope:
403
+ any:
404
+ - kind: statement_block
405
+ - kind: function_declaration
406
+ - kind: generator_function_declaration
407
+ - kind: function_expression
408
+ - kind: generator_function
409
+ - kind: arrow_function
410
+ - kind: method_definition
411
+ - kind: class_body
412
+ - kind: for_statement
413
+ - kind: for_in_statement
414
+ - kind: catch_clause
415
+ # An identifier in a binding position: a parameter, a destructured name, a
416
+ # local variable, a function name, or a class name.
417
+ binding-name:
418
+ any:
419
+ - kind: shorthand_property_identifier_pattern
420
+ - kind: identifier
421
+ any:
422
+ - inside: { kind: variable_declarator, field: name }
423
+ - inside: { kind: function_declaration, field: name }
424
+ - inside: { kind: generator_function_declaration, field: name }
425
+ - inside: { kind: function_expression, field: name }
426
+ - inside: { kind: required_parameter, field: pattern }
427
+ - inside: { kind: optional_parameter, field: pattern }
428
+ - inside: { kind: assignment_pattern, field: left }
429
+ - inside: { kind: pair_pattern, field: value }
430
+ - inside: { kind: array_pattern }
431
+ - inside: { kind: rest_pattern }
432
+ - inside: { kind: arrow_function, field: parameter }
433
+ - inside: { kind: catch_clause, field: parameter }
434
+ - kind: type_identifier
435
+ inside: { kind: class_declaration, field: name }
436
+ # A function declaration opens a scope, so the search above stops at it and
437
+ # never reads its name. This matches the declaration itself instead.
438
+ function-declaration:
439
+ any:
440
+ - kind: function_declaration
441
+ - kind: generator_function_declaration
442
+ ns-import:
443
+ kind: import_statement
444
+ all:
445
+ - has:
446
+ field: source
447
+ regex: ^["']@ngrok/mantle/alert-dialog["']$
448
+ - has:
449
+ stopBy: end
450
+ kind: import_specifier
451
+ has:
452
+ field: name
453
+ regex: ^AlertDialog$
454
+ any:
455
+ - kind: import_specifier
456
+ has:
457
+ field: alias
458
+ pattern: $NS
459
+ - kind: import_specifier
460
+ not:
461
+ has:
462
+ field: alias
463
+ kind: identifier
464
+ has:
465
+ field: name
466
+ pattern: $NS
467
+ # The opening tag of an affected part, in a file that imports the namespace,
468
+ # where no parameter or local shadows the import's name.
469
+ part-tag:
470
+ any:
471
+ - kind: jsx_opening_element
472
+ - kind: jsx_self_closing_element
473
+ all:
474
+ - has:
475
+ field: name
476
+ kind: member_expression
477
+ all:
478
+ - has:
479
+ field: object
480
+ pattern: $NS
481
+ - has:
482
+ field: property
483
+ regex: ^(Body|Header|Footer)$
484
+ - inside:
485
+ stopBy: end
486
+ kind: program
487
+ has:
488
+ matches: ns-import
489
+ - not:
490
+ inside:
491
+ stopBy: end
492
+ matches: scope
493
+ has:
494
+ stopBy:
495
+ matches: scope
496
+ any:
497
+ - matches: binding-name
498
+ pattern: $NS
499
+ - matches: function-declaration
500
+ has:
501
+ field: name
502
+ pattern: $NS
503
+ as-child:
504
+ kind: jsx_attribute
505
+ has:
506
+ kind: property_identifier
507
+ regex: ^asChild$
508
+ # The className of the part, or of the one element that an `asChild` part
509
+ # renders, because Slot merges that element's classes after the part's.
510
+ part-class:
511
+ inside:
512
+ stopBy: end
513
+ kind: jsx_attribute
514
+ has:
515
+ kind: property_identifier
516
+ regex: ^className$
517
+ inside:
518
+ any:
519
+ - matches: part-tag
520
+ - all:
521
+ - any:
522
+ - kind: jsx_opening_element
523
+ - kind: jsx_self_closing_element
524
+ - any:
525
+ - inside:
526
+ kind: jsx_element
527
+ has:
528
+ field: open_tag
529
+ matches: part-tag
530
+ has:
531
+ matches: as-child
532
+ - inside:
533
+ kind: jsx_element
534
+ inside:
535
+ kind: jsx_element
536
+ has:
537
+ field: open_tag
538
+ matches: part-tag
539
+ has:
540
+ matches: as-child
541
+ rule:
542
+ kind: string_fragment
543
+ regex: '(^|[\s:])-?(space-[xy]-|divide-)'
544
+ pattern: $F
545
+ all:
546
+ - matches: part-class
547
+ # Why: a reverse utility has no `between:` form; it stays manual.
548
+ - not:
549
+ regex: "(space|divide)-[xy]-reverse"
550
+ # Why: a colon inside an arbitrary variant is not a variant boundary.
551
+ - not:
552
+ regex: '(space-[xy]-|divide-)[^\s]*\]'
553
+ # Why: a string compared with `===` chooses a class; it is not one.
554
+ - not:
555
+ inside:
556
+ kind: string
557
+ inside:
558
+ any:
559
+ - pattern: $A === $B
560
+ - pattern: $A !== $B
561
+ - pattern: $A == $B
562
+ - pattern: $A != $B
563
+ transform:
564
+ T1:
565
+ replace:
566
+ source: $F
567
+ replace: '(^|[\s:])(-?)space-y-'
568
+ by: "${1}between:${2}mbe-"
569
+ T2:
570
+ replace:
571
+ source: $T1
572
+ replace: '(^|[\s:])(-?)space-x-'
573
+ by: "${1}between:${2}me-"
574
+ T3:
575
+ replace:
576
+ source: $T2
577
+ replace: '(^|[\s:])divide-y\b'
578
+ by: "${1}between:border-b"
579
+ T4:
580
+ replace:
581
+ source: $T3
582
+ replace: '(^|[\s:])divide-x\b'
583
+ by: "${1}between:border-e"
584
+ T5:
585
+ replace:
586
+ source: $T4
587
+ replace: '(^|[\s:])divide-'
588
+ by: "${1}between:border-"
589
+ fix: $T5
590
+ ---
591
+ id: space-divide-to-between-empty
592
+ language: tsx
593
+ message: Empty spaces or divides its children with `between:`; write the override with `between:` so `cx` replaces it
594
+ utils:
595
+ # A node that opens a lexical scope. The shadow search below stops at a
596
+ # nested one, so a sibling function's local name does not count.
597
+ scope:
598
+ any:
599
+ - kind: statement_block
600
+ - kind: function_declaration
601
+ - kind: generator_function_declaration
602
+ - kind: function_expression
603
+ - kind: generator_function
604
+ - kind: arrow_function
605
+ - kind: method_definition
606
+ - kind: class_body
607
+ - kind: for_statement
608
+ - kind: for_in_statement
609
+ - kind: catch_clause
610
+ # An identifier in a binding position: a parameter, a destructured name, a
611
+ # local variable, a function name, or a class name.
612
+ binding-name:
613
+ any:
614
+ - kind: shorthand_property_identifier_pattern
615
+ - kind: identifier
616
+ any:
617
+ - inside: { kind: variable_declarator, field: name }
618
+ - inside: { kind: function_declaration, field: name }
619
+ - inside: { kind: generator_function_declaration, field: name }
620
+ - inside: { kind: function_expression, field: name }
621
+ - inside: { kind: required_parameter, field: pattern }
622
+ - inside: { kind: optional_parameter, field: pattern }
623
+ - inside: { kind: assignment_pattern, field: left }
624
+ - inside: { kind: pair_pattern, field: value }
625
+ - inside: { kind: array_pattern }
626
+ - inside: { kind: rest_pattern }
627
+ - inside: { kind: arrow_function, field: parameter }
628
+ - inside: { kind: catch_clause, field: parameter }
629
+ - kind: type_identifier
630
+ inside: { kind: class_declaration, field: name }
631
+ # A function declaration opens a scope, so the search above stops at it and
632
+ # never reads its name. This matches the declaration itself instead.
633
+ function-declaration:
634
+ any:
635
+ - kind: function_declaration
636
+ - kind: generator_function_declaration
637
+ ns-import:
638
+ kind: import_statement
639
+ all:
640
+ - has:
641
+ field: source
642
+ regex: ^["']@ngrok/mantle/empty["']$
643
+ - has:
644
+ stopBy: end
645
+ kind: import_specifier
646
+ has:
647
+ field: name
648
+ regex: ^Empty$
649
+ any:
650
+ - kind: import_specifier
651
+ has:
652
+ field: alias
653
+ pattern: $NS
654
+ - kind: import_specifier
655
+ not:
656
+ has:
657
+ field: alias
658
+ kind: identifier
659
+ has:
660
+ field: name
661
+ pattern: $NS
662
+ # The opening tag of an affected part, in a file that imports the namespace,
663
+ # where no parameter or local shadows the import's name.
664
+ part-tag:
665
+ any:
666
+ - kind: jsx_opening_element
667
+ - kind: jsx_self_closing_element
668
+ all:
669
+ - has:
670
+ field: name
671
+ kind: member_expression
672
+ all:
673
+ - has:
674
+ field: object
675
+ pattern: $NS
676
+ - has:
677
+ field: property
678
+ regex: ^(Description)$
679
+ - inside:
680
+ stopBy: end
681
+ kind: program
682
+ has:
683
+ matches: ns-import
684
+ - not:
685
+ inside:
686
+ stopBy: end
687
+ matches: scope
688
+ has:
689
+ stopBy:
690
+ matches: scope
691
+ any:
692
+ - matches: binding-name
693
+ pattern: $NS
694
+ - matches: function-declaration
695
+ has:
696
+ field: name
697
+ pattern: $NS
698
+ as-child:
699
+ kind: jsx_attribute
700
+ has:
701
+ kind: property_identifier
702
+ regex: ^asChild$
703
+ # The className of the part, or of the one element that an `asChild` part
704
+ # renders, because Slot merges that element's classes after the part's.
705
+ part-class:
706
+ inside:
707
+ stopBy: end
708
+ kind: jsx_attribute
709
+ has:
710
+ kind: property_identifier
711
+ regex: ^className$
712
+ inside:
713
+ any:
714
+ - matches: part-tag
715
+ - all:
716
+ - any:
717
+ - kind: jsx_opening_element
718
+ - kind: jsx_self_closing_element
719
+ - any:
720
+ - inside:
721
+ kind: jsx_element
722
+ has:
723
+ field: open_tag
724
+ matches: part-tag
725
+ has:
726
+ matches: as-child
727
+ - inside:
728
+ kind: jsx_element
729
+ inside:
730
+ kind: jsx_element
731
+ has:
732
+ field: open_tag
733
+ matches: part-tag
734
+ has:
735
+ matches: as-child
736
+ rule:
737
+ kind: string_fragment
738
+ regex: '(^|[\s:])-?(space-[xy]-|divide-)'
739
+ pattern: $F
740
+ all:
741
+ - matches: part-class
742
+ # Why: a reverse utility has no `between:` form; it stays manual.
743
+ - not:
744
+ regex: "(space|divide)-[xy]-reverse"
745
+ # Why: a colon inside an arbitrary variant is not a variant boundary.
746
+ - not:
747
+ regex: '(space-[xy]-|divide-)[^\s]*\]'
748
+ # Why: a string compared with `===` chooses a class; it is not one.
749
+ - not:
750
+ inside:
751
+ kind: string
752
+ inside:
753
+ any:
754
+ - pattern: $A === $B
755
+ - pattern: $A !== $B
756
+ - pattern: $A == $B
757
+ - pattern: $A != $B
758
+ transform:
759
+ T1:
760
+ replace:
761
+ source: $F
762
+ replace: '(^|[\s:])(-?)space-y-'
763
+ by: "${1}between:${2}mbe-"
764
+ T2:
765
+ replace:
766
+ source: $T1
767
+ replace: '(^|[\s:])(-?)space-x-'
768
+ by: "${1}between:${2}me-"
769
+ T3:
770
+ replace:
771
+ source: $T2
772
+ replace: '(^|[\s:])divide-y\b'
773
+ by: "${1}between:border-b"
774
+ T4:
775
+ replace:
776
+ source: $T3
777
+ replace: '(^|[\s:])divide-x\b'
778
+ by: "${1}between:border-e"
779
+ T5:
780
+ replace:
781
+ source: $T4
782
+ replace: '(^|[\s:])divide-'
783
+ by: "${1}between:border-"
784
+ fix: $T5
785
+ ---
786
+ id: space-divide-to-between-select
787
+ language: tsx
788
+ message: Select spaces or divides its children with `between:`; write the override with `between:` so `cx` replaces it
789
+ utils:
790
+ # A node that opens a lexical scope. The shadow search below stops at a
791
+ # nested one, so a sibling function's local name does not count.
792
+ scope:
793
+ any:
794
+ - kind: statement_block
795
+ - kind: function_declaration
796
+ - kind: generator_function_declaration
797
+ - kind: function_expression
798
+ - kind: generator_function
799
+ - kind: arrow_function
800
+ - kind: method_definition
801
+ - kind: class_body
802
+ - kind: for_statement
803
+ - kind: for_in_statement
804
+ - kind: catch_clause
805
+ # An identifier in a binding position: a parameter, a destructured name, a
806
+ # local variable, a function name, or a class name.
807
+ binding-name:
808
+ any:
809
+ - kind: shorthand_property_identifier_pattern
810
+ - kind: identifier
811
+ any:
812
+ - inside: { kind: variable_declarator, field: name }
813
+ - inside: { kind: function_declaration, field: name }
814
+ - inside: { kind: generator_function_declaration, field: name }
815
+ - inside: { kind: function_expression, field: name }
816
+ - inside: { kind: required_parameter, field: pattern }
817
+ - inside: { kind: optional_parameter, field: pattern }
818
+ - inside: { kind: assignment_pattern, field: left }
819
+ - inside: { kind: pair_pattern, field: value }
820
+ - inside: { kind: array_pattern }
821
+ - inside: { kind: rest_pattern }
822
+ - inside: { kind: arrow_function, field: parameter }
823
+ - inside: { kind: catch_clause, field: parameter }
824
+ - kind: type_identifier
825
+ inside: { kind: class_declaration, field: name }
826
+ # A function declaration opens a scope, so the search above stops at it and
827
+ # never reads its name. This matches the declaration itself instead.
828
+ function-declaration:
829
+ any:
830
+ - kind: function_declaration
831
+ - kind: generator_function_declaration
832
+ ns-import:
833
+ kind: import_statement
834
+ all:
835
+ - has:
836
+ field: source
837
+ regex: ^["']@ngrok/mantle/select["']$
838
+ - has:
839
+ stopBy: end
840
+ kind: import_specifier
841
+ has:
842
+ field: name
843
+ regex: ^Select$
844
+ any:
845
+ - kind: import_specifier
846
+ has:
847
+ field: alias
848
+ pattern: $NS
849
+ - kind: import_specifier
850
+ not:
851
+ has:
852
+ field: alias
853
+ kind: identifier
854
+ has:
855
+ field: name
856
+ pattern: $NS
857
+ # The opening tag of an affected part, in a file that imports the namespace,
858
+ # where no parameter or local shadows the import's name.
859
+ part-tag:
860
+ any:
861
+ - kind: jsx_opening_element
862
+ - kind: jsx_self_closing_element
863
+ all:
864
+ - has:
865
+ field: name
866
+ kind: member_expression
867
+ all:
868
+ - has:
869
+ field: object
870
+ pattern: $NS
871
+ - has:
872
+ field: property
873
+ regex: ^(Group|Content)$
874
+ - inside:
875
+ stopBy: end
876
+ kind: program
877
+ has:
878
+ matches: ns-import
879
+ - not:
880
+ inside:
881
+ stopBy: end
882
+ matches: scope
883
+ has:
884
+ stopBy:
885
+ matches: scope
886
+ any:
887
+ - matches: binding-name
888
+ pattern: $NS
889
+ - matches: function-declaration
890
+ has:
891
+ field: name
892
+ pattern: $NS
893
+ as-child:
894
+ kind: jsx_attribute
895
+ has:
896
+ kind: property_identifier
897
+ regex: ^asChild$
898
+ # The className of the part, or of the one element that an `asChild` part
899
+ # renders, because Slot merges that element's classes after the part's.
900
+ part-class:
901
+ inside:
902
+ stopBy: end
903
+ kind: jsx_attribute
904
+ has:
905
+ kind: property_identifier
906
+ regex: ^className$
907
+ inside:
908
+ any:
909
+ - matches: part-tag
910
+ - all:
911
+ - any:
912
+ - kind: jsx_opening_element
913
+ - kind: jsx_self_closing_element
914
+ - any:
915
+ - inside:
916
+ kind: jsx_element
917
+ has:
918
+ field: open_tag
919
+ matches: part-tag
920
+ has:
921
+ matches: as-child
922
+ - inside:
923
+ kind: jsx_element
924
+ inside:
925
+ kind: jsx_element
926
+ has:
927
+ field: open_tag
928
+ matches: part-tag
929
+ has:
930
+ matches: as-child
931
+ rule:
932
+ kind: string_fragment
933
+ regex: '(^|[\s:])-?(space-[xy]-|divide-)'
934
+ pattern: $F
935
+ all:
936
+ - matches: part-class
937
+ # Why: a reverse utility has no `between:` form; it stays manual.
938
+ - not:
939
+ regex: "(space|divide)-[xy]-reverse"
940
+ # Why: a colon inside an arbitrary variant is not a variant boundary.
941
+ - not:
942
+ regex: '(space-[xy]-|divide-)[^\s]*\]'
943
+ # Why: a string compared with `===` chooses a class; it is not one.
944
+ - not:
945
+ inside:
946
+ kind: string
947
+ inside:
948
+ any:
949
+ - pattern: $A === $B
950
+ - pattern: $A !== $B
951
+ - pattern: $A == $B
952
+ - pattern: $A != $B
953
+ transform:
954
+ T1:
955
+ replace:
956
+ source: $F
957
+ replace: '(^|[\s:])(-?)space-y-'
958
+ by: "${1}between:${2}mbe-"
959
+ T2:
960
+ replace:
961
+ source: $T1
962
+ replace: '(^|[\s:])(-?)space-x-'
963
+ by: "${1}between:${2}me-"
964
+ T3:
965
+ replace:
966
+ source: $T2
967
+ replace: '(^|[\s:])divide-y\b'
968
+ by: "${1}between:border-b"
969
+ T4:
970
+ replace:
971
+ source: $T3
972
+ replace: '(^|[\s:])divide-x\b'
973
+ by: "${1}between:border-e"
974
+ T5:
975
+ replace:
976
+ source: $T4
977
+ replace: '(^|[\s:])divide-'
978
+ by: "${1}between:border-"
979
+ fix: $T5
980
+ ---
981
+ id: space-divide-to-between-dropdown-menu
982
+ language: tsx
983
+ message: DropdownMenu spaces or divides its children with `between:`; write the override with `between:` so `cx` replaces it
984
+ utils:
985
+ # A node that opens a lexical scope. The shadow search below stops at a
986
+ # nested one, so a sibling function's local name does not count.
987
+ scope:
988
+ any:
989
+ - kind: statement_block
990
+ - kind: function_declaration
991
+ - kind: generator_function_declaration
992
+ - kind: function_expression
993
+ - kind: generator_function
994
+ - kind: arrow_function
995
+ - kind: method_definition
996
+ - kind: class_body
997
+ - kind: for_statement
998
+ - kind: for_in_statement
999
+ - kind: catch_clause
1000
+ # An identifier in a binding position: a parameter, a destructured name, a
1001
+ # local variable, a function name, or a class name.
1002
+ binding-name:
1003
+ any:
1004
+ - kind: shorthand_property_identifier_pattern
1005
+ - kind: identifier
1006
+ any:
1007
+ - inside: { kind: variable_declarator, field: name }
1008
+ - inside: { kind: function_declaration, field: name }
1009
+ - inside: { kind: generator_function_declaration, field: name }
1010
+ - inside: { kind: function_expression, field: name }
1011
+ - inside: { kind: required_parameter, field: pattern }
1012
+ - inside: { kind: optional_parameter, field: pattern }
1013
+ - inside: { kind: assignment_pattern, field: left }
1014
+ - inside: { kind: pair_pattern, field: value }
1015
+ - inside: { kind: array_pattern }
1016
+ - inside: { kind: rest_pattern }
1017
+ - inside: { kind: arrow_function, field: parameter }
1018
+ - inside: { kind: catch_clause, field: parameter }
1019
+ - kind: type_identifier
1020
+ inside: { kind: class_declaration, field: name }
1021
+ # A function declaration opens a scope, so the search above stops at it and
1022
+ # never reads its name. This matches the declaration itself instead.
1023
+ function-declaration:
1024
+ any:
1025
+ - kind: function_declaration
1026
+ - kind: generator_function_declaration
1027
+ ns-import:
1028
+ kind: import_statement
1029
+ all:
1030
+ - has:
1031
+ field: source
1032
+ regex: ^["']@ngrok/mantle/dropdown-menu["']$
1033
+ - has:
1034
+ stopBy: end
1035
+ kind: import_specifier
1036
+ has:
1037
+ field: name
1038
+ regex: ^DropdownMenu$
1039
+ any:
1040
+ - kind: import_specifier
1041
+ has:
1042
+ field: alias
1043
+ pattern: $NS
1044
+ - kind: import_specifier
1045
+ not:
1046
+ has:
1047
+ field: alias
1048
+ kind: identifier
1049
+ has:
1050
+ field: name
1051
+ pattern: $NS
1052
+ # The opening tag of an affected part, in a file that imports the namespace,
1053
+ # where no parameter or local shadows the import's name.
1054
+ part-tag:
1055
+ any:
1056
+ - kind: jsx_opening_element
1057
+ - kind: jsx_self_closing_element
1058
+ all:
1059
+ - has:
1060
+ field: name
1061
+ kind: member_expression
1062
+ all:
1063
+ - has:
1064
+ field: object
1065
+ pattern: $NS
1066
+ - has:
1067
+ field: property
1068
+ regex: ^(Group|RadioGroup|Content|SubContent)$
1069
+ - inside:
1070
+ stopBy: end
1071
+ kind: program
1072
+ has:
1073
+ matches: ns-import
1074
+ - not:
1075
+ inside:
1076
+ stopBy: end
1077
+ matches: scope
1078
+ has:
1079
+ stopBy:
1080
+ matches: scope
1081
+ any:
1082
+ - matches: binding-name
1083
+ pattern: $NS
1084
+ - matches: function-declaration
1085
+ has:
1086
+ field: name
1087
+ pattern: $NS
1088
+ as-child:
1089
+ kind: jsx_attribute
1090
+ has:
1091
+ kind: property_identifier
1092
+ regex: ^asChild$
1093
+ # The className of the part, or of the one element that an `asChild` part
1094
+ # renders, because Slot merges that element's classes after the part's.
1095
+ part-class:
1096
+ inside:
1097
+ stopBy: end
1098
+ kind: jsx_attribute
1099
+ has:
1100
+ kind: property_identifier
1101
+ regex: ^className$
1102
+ inside:
1103
+ any:
1104
+ - matches: part-tag
1105
+ - all:
1106
+ - any:
1107
+ - kind: jsx_opening_element
1108
+ - kind: jsx_self_closing_element
1109
+ - any:
1110
+ - inside:
1111
+ kind: jsx_element
1112
+ has:
1113
+ field: open_tag
1114
+ matches: part-tag
1115
+ has:
1116
+ matches: as-child
1117
+ - inside:
1118
+ kind: jsx_element
1119
+ inside:
1120
+ kind: jsx_element
1121
+ has:
1122
+ field: open_tag
1123
+ matches: part-tag
1124
+ has:
1125
+ matches: as-child
1126
+ rule:
1127
+ kind: string_fragment
1128
+ regex: '(^|[\s:])-?(space-[xy]-|divide-)'
1129
+ pattern: $F
1130
+ all:
1131
+ - matches: part-class
1132
+ # Why: a reverse utility has no `between:` form; it stays manual.
1133
+ - not:
1134
+ regex: "(space|divide)-[xy]-reverse"
1135
+ # Why: a colon inside an arbitrary variant is not a variant boundary.
1136
+ - not:
1137
+ regex: '(space-[xy]-|divide-)[^\s]*\]'
1138
+ # Why: a string compared with `===` chooses a class; it is not one.
1139
+ - not:
1140
+ inside:
1141
+ kind: string
1142
+ inside:
1143
+ any:
1144
+ - pattern: $A === $B
1145
+ - pattern: $A !== $B
1146
+ - pattern: $A == $B
1147
+ - pattern: $A != $B
1148
+ transform:
1149
+ T1:
1150
+ replace:
1151
+ source: $F
1152
+ replace: '(^|[\s:])(-?)space-y-'
1153
+ by: "${1}between:${2}mbe-"
1154
+ T2:
1155
+ replace:
1156
+ source: $T1
1157
+ replace: '(^|[\s:])(-?)space-x-'
1158
+ by: "${1}between:${2}me-"
1159
+ T3:
1160
+ replace:
1161
+ source: $T2
1162
+ replace: '(^|[\s:])divide-y\b'
1163
+ by: "${1}between:border-b"
1164
+ T4:
1165
+ replace:
1166
+ source: $T3
1167
+ replace: '(^|[\s:])divide-x\b'
1168
+ by: "${1}between:border-e"
1169
+ T5:
1170
+ replace:
1171
+ source: $T4
1172
+ replace: '(^|[\s:])divide-'
1173
+ by: "${1}between:border-"
1174
+ fix: $T5
1175
+ ---
1176
+ id: space-divide-to-between-split-button
1177
+ language: tsx
1178
+ message: SplitButton spaces or divides its children with `between:`; write the override with `between:` so `cx` replaces it
1179
+ utils:
1180
+ # A node that opens a lexical scope. The shadow search below stops at a
1181
+ # nested one, so a sibling function's local name does not count.
1182
+ scope:
1183
+ any:
1184
+ - kind: statement_block
1185
+ - kind: function_declaration
1186
+ - kind: generator_function_declaration
1187
+ - kind: function_expression
1188
+ - kind: generator_function
1189
+ - kind: arrow_function
1190
+ - kind: method_definition
1191
+ - kind: class_body
1192
+ - kind: for_statement
1193
+ - kind: for_in_statement
1194
+ - kind: catch_clause
1195
+ # An identifier in a binding position: a parameter, a destructured name, a
1196
+ # local variable, a function name, or a class name.
1197
+ binding-name:
1198
+ any:
1199
+ - kind: shorthand_property_identifier_pattern
1200
+ - kind: identifier
1201
+ any:
1202
+ - inside: { kind: variable_declarator, field: name }
1203
+ - inside: { kind: function_declaration, field: name }
1204
+ - inside: { kind: generator_function_declaration, field: name }
1205
+ - inside: { kind: function_expression, field: name }
1206
+ - inside: { kind: required_parameter, field: pattern }
1207
+ - inside: { kind: optional_parameter, field: pattern }
1208
+ - inside: { kind: assignment_pattern, field: left }
1209
+ - inside: { kind: pair_pattern, field: value }
1210
+ - inside: { kind: array_pattern }
1211
+ - inside: { kind: rest_pattern }
1212
+ - inside: { kind: arrow_function, field: parameter }
1213
+ - inside: { kind: catch_clause, field: parameter }
1214
+ - kind: type_identifier
1215
+ inside: { kind: class_declaration, field: name }
1216
+ # A function declaration opens a scope, so the search above stops at it and
1217
+ # never reads its name. This matches the declaration itself instead.
1218
+ function-declaration:
1219
+ any:
1220
+ - kind: function_declaration
1221
+ - kind: generator_function_declaration
1222
+ ns-import:
1223
+ kind: import_statement
1224
+ all:
1225
+ - has:
1226
+ field: source
1227
+ regex: ^["']@ngrok/mantle/split-button["']$
1228
+ - has:
1229
+ stopBy: end
1230
+ kind: import_specifier
1231
+ has:
1232
+ field: name
1233
+ regex: ^SplitButton$
1234
+ any:
1235
+ - kind: import_specifier
1236
+ has:
1237
+ field: alias
1238
+ pattern: $NS
1239
+ - kind: import_specifier
1240
+ not:
1241
+ has:
1242
+ field: alias
1243
+ kind: identifier
1244
+ has:
1245
+ field: name
1246
+ pattern: $NS
1247
+ # The opening tag of an affected part, in a file that imports the namespace,
1248
+ # where no parameter or local shadows the import's name.
1249
+ part-tag:
1250
+ any:
1251
+ - kind: jsx_opening_element
1252
+ - kind: jsx_self_closing_element
1253
+ all:
1254
+ - has:
1255
+ field: name
1256
+ kind: member_expression
1257
+ all:
1258
+ - has:
1259
+ field: object
1260
+ pattern: $NS
1261
+ - has:
1262
+ field: property
1263
+ regex: ^(MenuContent)$
1264
+ - inside:
1265
+ stopBy: end
1266
+ kind: program
1267
+ has:
1268
+ matches: ns-import
1269
+ - not:
1270
+ inside:
1271
+ stopBy: end
1272
+ matches: scope
1273
+ has:
1274
+ stopBy:
1275
+ matches: scope
1276
+ any:
1277
+ - matches: binding-name
1278
+ pattern: $NS
1279
+ - matches: function-declaration
1280
+ has:
1281
+ field: name
1282
+ pattern: $NS
1283
+ as-child:
1284
+ kind: jsx_attribute
1285
+ has:
1286
+ kind: property_identifier
1287
+ regex: ^asChild$
1288
+ # The className of the part, or of the one element that an `asChild` part
1289
+ # renders, because Slot merges that element's classes after the part's.
1290
+ part-class:
1291
+ inside:
1292
+ stopBy: end
1293
+ kind: jsx_attribute
1294
+ has:
1295
+ kind: property_identifier
1296
+ regex: ^className$
1297
+ inside:
1298
+ any:
1299
+ - matches: part-tag
1300
+ - all:
1301
+ - any:
1302
+ - kind: jsx_opening_element
1303
+ - kind: jsx_self_closing_element
1304
+ - any:
1305
+ - inside:
1306
+ kind: jsx_element
1307
+ has:
1308
+ field: open_tag
1309
+ matches: part-tag
1310
+ has:
1311
+ matches: as-child
1312
+ - inside:
1313
+ kind: jsx_element
1314
+ inside:
1315
+ kind: jsx_element
1316
+ has:
1317
+ field: open_tag
1318
+ matches: part-tag
1319
+ has:
1320
+ matches: as-child
1321
+ rule:
1322
+ kind: string_fragment
1323
+ regex: '(^|[\s:])-?(space-[xy]-|divide-)'
1324
+ pattern: $F
1325
+ all:
1326
+ - matches: part-class
1327
+ # Why: a reverse utility has no `between:` form; it stays manual.
1328
+ - not:
1329
+ regex: "(space|divide)-[xy]-reverse"
1330
+ # Why: a colon inside an arbitrary variant is not a variant boundary.
1331
+ - not:
1332
+ regex: '(space-[xy]-|divide-)[^\s]*\]'
1333
+ # Why: a string compared with `===` chooses a class; it is not one.
1334
+ - not:
1335
+ inside:
1336
+ kind: string
1337
+ inside:
1338
+ any:
1339
+ - pattern: $A === $B
1340
+ - pattern: $A !== $B
1341
+ - pattern: $A == $B
1342
+ - pattern: $A != $B
1343
+ transform:
1344
+ T1:
1345
+ replace:
1346
+ source: $F
1347
+ replace: '(^|[\s:])(-?)space-y-'
1348
+ by: "${1}between:${2}mbe-"
1349
+ T2:
1350
+ replace:
1351
+ source: $T1
1352
+ replace: '(^|[\s:])(-?)space-x-'
1353
+ by: "${1}between:${2}me-"
1354
+ T3:
1355
+ replace:
1356
+ source: $T2
1357
+ replace: '(^|[\s:])divide-y\b'
1358
+ by: "${1}between:border-b"
1359
+ T4:
1360
+ replace:
1361
+ source: $T3
1362
+ replace: '(^|[\s:])divide-x\b'
1363
+ by: "${1}between:border-e"
1364
+ T5:
1365
+ replace:
1366
+ source: $T4
1367
+ replace: '(^|[\s:])divide-'
1368
+ by: "${1}between:border-"
1369
+ fix: $T5
1370
+ ---
1371
+ id: space-divide-to-between-multi-select
1372
+ language: tsx
1373
+ message: MultiSelect spaces or divides its children with `between:`; write the override with `between:` so `cx` replaces it
1374
+ utils:
1375
+ # A node that opens a lexical scope. The shadow search below stops at a
1376
+ # nested one, so a sibling function's local name does not count.
1377
+ scope:
1378
+ any:
1379
+ - kind: statement_block
1380
+ - kind: function_declaration
1381
+ - kind: generator_function_declaration
1382
+ - kind: function_expression
1383
+ - kind: generator_function
1384
+ - kind: arrow_function
1385
+ - kind: method_definition
1386
+ - kind: class_body
1387
+ - kind: for_statement
1388
+ - kind: for_in_statement
1389
+ - kind: catch_clause
1390
+ # An identifier in a binding position: a parameter, a destructured name, a
1391
+ # local variable, a function name, or a class name.
1392
+ binding-name:
1393
+ any:
1394
+ - kind: shorthand_property_identifier_pattern
1395
+ - kind: identifier
1396
+ any:
1397
+ - inside: { kind: variable_declarator, field: name }
1398
+ - inside: { kind: function_declaration, field: name }
1399
+ - inside: { kind: generator_function_declaration, field: name }
1400
+ - inside: { kind: function_expression, field: name }
1401
+ - inside: { kind: required_parameter, field: pattern }
1402
+ - inside: { kind: optional_parameter, field: pattern }
1403
+ - inside: { kind: assignment_pattern, field: left }
1404
+ - inside: { kind: pair_pattern, field: value }
1405
+ - inside: { kind: array_pattern }
1406
+ - inside: { kind: rest_pattern }
1407
+ - inside: { kind: arrow_function, field: parameter }
1408
+ - inside: { kind: catch_clause, field: parameter }
1409
+ - kind: type_identifier
1410
+ inside: { kind: class_declaration, field: name }
1411
+ # A function declaration opens a scope, so the search above stops at it and
1412
+ # never reads its name. This matches the declaration itself instead.
1413
+ function-declaration:
1414
+ any:
1415
+ - kind: function_declaration
1416
+ - kind: generator_function_declaration
1417
+ ns-import:
1418
+ kind: import_statement
1419
+ all:
1420
+ - has:
1421
+ field: source
1422
+ regex: ^["']@ngrok/mantle/multi-select["']$
1423
+ - has:
1424
+ stopBy: end
1425
+ kind: import_specifier
1426
+ has:
1427
+ field: name
1428
+ regex: ^MultiSelect$
1429
+ any:
1430
+ - kind: import_specifier
1431
+ has:
1432
+ field: alias
1433
+ pattern: $NS
1434
+ - kind: import_specifier
1435
+ not:
1436
+ has:
1437
+ field: alias
1438
+ kind: identifier
1439
+ has:
1440
+ field: name
1441
+ pattern: $NS
1442
+ # The opening tag of an affected part, in a file that imports the namespace,
1443
+ # where no parameter or local shadows the import's name.
1444
+ part-tag:
1445
+ any:
1446
+ - kind: jsx_opening_element
1447
+ - kind: jsx_self_closing_element
1448
+ all:
1449
+ - has:
1450
+ field: name
1451
+ kind: member_expression
1452
+ all:
1453
+ - has:
1454
+ field: object
1455
+ pattern: $NS
1456
+ - has:
1457
+ field: property
1458
+ regex: ^(Content)$
1459
+ - inside:
1460
+ stopBy: end
1461
+ kind: program
1462
+ has:
1463
+ matches: ns-import
1464
+ - not:
1465
+ inside:
1466
+ stopBy: end
1467
+ matches: scope
1468
+ has:
1469
+ stopBy:
1470
+ matches: scope
1471
+ any:
1472
+ - matches: binding-name
1473
+ pattern: $NS
1474
+ - matches: function-declaration
1475
+ has:
1476
+ field: name
1477
+ pattern: $NS
1478
+ as-child:
1479
+ kind: jsx_attribute
1480
+ has:
1481
+ kind: property_identifier
1482
+ regex: ^asChild$
1483
+ # The className of the part, or of the one element that an `asChild` part
1484
+ # renders, because Slot merges that element's classes after the part's.
1485
+ part-class:
1486
+ inside:
1487
+ stopBy: end
1488
+ kind: jsx_attribute
1489
+ has:
1490
+ kind: property_identifier
1491
+ regex: ^className$
1492
+ inside:
1493
+ any:
1494
+ - matches: part-tag
1495
+ - all:
1496
+ - any:
1497
+ - kind: jsx_opening_element
1498
+ - kind: jsx_self_closing_element
1499
+ - any:
1500
+ - inside:
1501
+ kind: jsx_element
1502
+ has:
1503
+ field: open_tag
1504
+ matches: part-tag
1505
+ has:
1506
+ matches: as-child
1507
+ - inside:
1508
+ kind: jsx_element
1509
+ inside:
1510
+ kind: jsx_element
1511
+ has:
1512
+ field: open_tag
1513
+ matches: part-tag
1514
+ has:
1515
+ matches: as-child
1516
+ rule:
1517
+ kind: string_fragment
1518
+ regex: '(^|[\s:])-?(space-[xy]-|divide-)'
1519
+ pattern: $F
1520
+ all:
1521
+ - matches: part-class
1522
+ # Why: a reverse utility has no `between:` form; it stays manual.
1523
+ - not:
1524
+ regex: "(space|divide)-[xy]-reverse"
1525
+ # Why: a colon inside an arbitrary variant is not a variant boundary.
1526
+ - not:
1527
+ regex: '(space-[xy]-|divide-)[^\s]*\]'
1528
+ # Why: a string compared with `===` chooses a class; it is not one.
1529
+ - not:
1530
+ inside:
1531
+ kind: string
1532
+ inside:
1533
+ any:
1534
+ - pattern: $A === $B
1535
+ - pattern: $A !== $B
1536
+ - pattern: $A == $B
1537
+ - pattern: $A != $B
1538
+ transform:
1539
+ T1:
1540
+ replace:
1541
+ source: $F
1542
+ replace: '(^|[\s:])(-?)space-y-'
1543
+ by: "${1}between:${2}mbe-"
1544
+ T2:
1545
+ replace:
1546
+ source: $T1
1547
+ replace: '(^|[\s:])(-?)space-x-'
1548
+ by: "${1}between:${2}me-"
1549
+ T3:
1550
+ replace:
1551
+ source: $T2
1552
+ replace: '(^|[\s:])divide-y\b'
1553
+ by: "${1}between:border-b"
1554
+ T4:
1555
+ replace:
1556
+ source: $T3
1557
+ replace: '(^|[\s:])divide-x\b'
1558
+ by: "${1}between:border-e"
1559
+ T5:
1560
+ replace:
1561
+ source: $T4
1562
+ replace: '(^|[\s:])divide-'
1563
+ by: "${1}between:border-"
1564
+ fix: $T5
1565
+ ---
1566
+ id: space-divide-to-between-combobox
1567
+ language: tsx
1568
+ message: Combobox spaces or divides its children with `between:`; write the override with `between:` so `cx` replaces it
1569
+ utils:
1570
+ # A node that opens a lexical scope. The shadow search below stops at a
1571
+ # nested one, so a sibling function's local name does not count.
1572
+ scope:
1573
+ any:
1574
+ - kind: statement_block
1575
+ - kind: function_declaration
1576
+ - kind: generator_function_declaration
1577
+ - kind: function_expression
1578
+ - kind: generator_function
1579
+ - kind: arrow_function
1580
+ - kind: method_definition
1581
+ - kind: class_body
1582
+ - kind: for_statement
1583
+ - kind: for_in_statement
1584
+ - kind: catch_clause
1585
+ # An identifier in a binding position: a parameter, a destructured name, a
1586
+ # local variable, a function name, or a class name.
1587
+ binding-name:
1588
+ any:
1589
+ - kind: shorthand_property_identifier_pattern
1590
+ - kind: identifier
1591
+ any:
1592
+ - inside: { kind: variable_declarator, field: name }
1593
+ - inside: { kind: function_declaration, field: name }
1594
+ - inside: { kind: generator_function_declaration, field: name }
1595
+ - inside: { kind: function_expression, field: name }
1596
+ - inside: { kind: required_parameter, field: pattern }
1597
+ - inside: { kind: optional_parameter, field: pattern }
1598
+ - inside: { kind: assignment_pattern, field: left }
1599
+ - inside: { kind: pair_pattern, field: value }
1600
+ - inside: { kind: array_pattern }
1601
+ - inside: { kind: rest_pattern }
1602
+ - inside: { kind: arrow_function, field: parameter }
1603
+ - inside: { kind: catch_clause, field: parameter }
1604
+ - kind: type_identifier
1605
+ inside: { kind: class_declaration, field: name }
1606
+ # A function declaration opens a scope, so the search above stops at it and
1607
+ # never reads its name. This matches the declaration itself instead.
1608
+ function-declaration:
1609
+ any:
1610
+ - kind: function_declaration
1611
+ - kind: generator_function_declaration
1612
+ ns-import:
1613
+ kind: import_statement
1614
+ all:
1615
+ - has:
1616
+ field: source
1617
+ regex: ^["']@ngrok/mantle/combobox["']$
1618
+ - has:
1619
+ stopBy: end
1620
+ kind: import_specifier
1621
+ has:
1622
+ field: name
1623
+ regex: ^Combobox$
1624
+ any:
1625
+ - kind: import_specifier
1626
+ has:
1627
+ field: alias
1628
+ pattern: $NS
1629
+ - kind: import_specifier
1630
+ not:
1631
+ has:
1632
+ field: alias
1633
+ kind: identifier
1634
+ has:
1635
+ field: name
1636
+ pattern: $NS
1637
+ # The opening tag of an affected part, in a file that imports the namespace,
1638
+ # where no parameter or local shadows the import's name.
1639
+ part-tag:
1640
+ any:
1641
+ - kind: jsx_opening_element
1642
+ - kind: jsx_self_closing_element
1643
+ all:
1644
+ - has:
1645
+ field: name
1646
+ kind: member_expression
1647
+ all:
1648
+ - has:
1649
+ field: object
1650
+ pattern: $NS
1651
+ - has:
1652
+ field: property
1653
+ regex: ^(Content|Group)$
1654
+ - inside:
1655
+ stopBy: end
1656
+ kind: program
1657
+ has:
1658
+ matches: ns-import
1659
+ - not:
1660
+ inside:
1661
+ stopBy: end
1662
+ matches: scope
1663
+ has:
1664
+ stopBy:
1665
+ matches: scope
1666
+ any:
1667
+ - matches: binding-name
1668
+ pattern: $NS
1669
+ - matches: function-declaration
1670
+ has:
1671
+ field: name
1672
+ pattern: $NS
1673
+ as-child:
1674
+ kind: jsx_attribute
1675
+ has:
1676
+ kind: property_identifier
1677
+ regex: ^asChild$
1678
+ # The className of the part, or of the one element that an `asChild` part
1679
+ # renders, because Slot merges that element's classes after the part's.
1680
+ part-class:
1681
+ inside:
1682
+ stopBy: end
1683
+ kind: jsx_attribute
1684
+ has:
1685
+ kind: property_identifier
1686
+ regex: ^className$
1687
+ inside:
1688
+ any:
1689
+ - matches: part-tag
1690
+ - all:
1691
+ - any:
1692
+ - kind: jsx_opening_element
1693
+ - kind: jsx_self_closing_element
1694
+ - any:
1695
+ - inside:
1696
+ kind: jsx_element
1697
+ has:
1698
+ field: open_tag
1699
+ matches: part-tag
1700
+ has:
1701
+ matches: as-child
1702
+ - inside:
1703
+ kind: jsx_element
1704
+ inside:
1705
+ kind: jsx_element
1706
+ has:
1707
+ field: open_tag
1708
+ matches: part-tag
1709
+ has:
1710
+ matches: as-child
1711
+ rule:
1712
+ kind: string_fragment
1713
+ regex: '(^|[\s:])-?(space-[xy]-|divide-)'
1714
+ pattern: $F
1715
+ all:
1716
+ - matches: part-class
1717
+ # Why: a reverse utility has no `between:` form; it stays manual.
1718
+ - not:
1719
+ regex: "(space|divide)-[xy]-reverse"
1720
+ # Why: a colon inside an arbitrary variant is not a variant boundary.
1721
+ - not:
1722
+ regex: '(space-[xy]-|divide-)[^\s]*\]'
1723
+ # Why: a string compared with `===` chooses a class; it is not one.
1724
+ - not:
1725
+ inside:
1726
+ kind: string
1727
+ inside:
1728
+ any:
1729
+ - pattern: $A === $B
1730
+ - pattern: $A !== $B
1731
+ - pattern: $A == $B
1732
+ - pattern: $A != $B
1733
+ transform:
1734
+ T1:
1735
+ replace:
1736
+ source: $F
1737
+ replace: '(^|[\s:])(-?)space-y-'
1738
+ by: "${1}between:${2}mbe-"
1739
+ T2:
1740
+ replace:
1741
+ source: $T1
1742
+ replace: '(^|[\s:])(-?)space-x-'
1743
+ by: "${1}between:${2}me-"
1744
+ T3:
1745
+ replace:
1746
+ source: $T2
1747
+ replace: '(^|[\s:])divide-y\b'
1748
+ by: "${1}between:border-b"
1749
+ T4:
1750
+ replace:
1751
+ source: $T3
1752
+ replace: '(^|[\s:])divide-x\b'
1753
+ by: "${1}between:border-e"
1754
+ T5:
1755
+ replace:
1756
+ source: $T4
1757
+ replace: '(^|[\s:])divide-'
1758
+ by: "${1}between:border-"
1759
+ fix: $T5
1760
+ ---
1761
+ id: space-divide-to-between-sidebar
1762
+ language: tsx
1763
+ message: Sidebar spaces or divides its children with `between:`; write the override with `between:` so `cx` replaces it
1764
+ utils:
1765
+ # A node that opens a lexical scope. The shadow search below stops at a
1766
+ # nested one, so a sibling function's local name does not count.
1767
+ scope:
1768
+ any:
1769
+ - kind: statement_block
1770
+ - kind: function_declaration
1771
+ - kind: generator_function_declaration
1772
+ - kind: function_expression
1773
+ - kind: generator_function
1774
+ - kind: arrow_function
1775
+ - kind: method_definition
1776
+ - kind: class_body
1777
+ - kind: for_statement
1778
+ - kind: for_in_statement
1779
+ - kind: catch_clause
1780
+ # An identifier in a binding position: a parameter, a destructured name, a
1781
+ # local variable, a function name, or a class name.
1782
+ binding-name:
1783
+ any:
1784
+ - kind: shorthand_property_identifier_pattern
1785
+ - kind: identifier
1786
+ any:
1787
+ - inside: { kind: variable_declarator, field: name }
1788
+ - inside: { kind: function_declaration, field: name }
1789
+ - inside: { kind: generator_function_declaration, field: name }
1790
+ - inside: { kind: function_expression, field: name }
1791
+ - inside: { kind: required_parameter, field: pattern }
1792
+ - inside: { kind: optional_parameter, field: pattern }
1793
+ - inside: { kind: assignment_pattern, field: left }
1794
+ - inside: { kind: pair_pattern, field: value }
1795
+ - inside: { kind: array_pattern }
1796
+ - inside: { kind: rest_pattern }
1797
+ - inside: { kind: arrow_function, field: parameter }
1798
+ - inside: { kind: catch_clause, field: parameter }
1799
+ - kind: type_identifier
1800
+ inside: { kind: class_declaration, field: name }
1801
+ # A function declaration opens a scope, so the search above stops at it and
1802
+ # never reads its name. This matches the declaration itself instead.
1803
+ function-declaration:
1804
+ any:
1805
+ - kind: function_declaration
1806
+ - kind: generator_function_declaration
1807
+ ns-import:
1808
+ kind: import_statement
1809
+ all:
1810
+ - has:
1811
+ field: source
1812
+ regex: ^["']@ngrok/mantle/sidebar["']$
1813
+ - has:
1814
+ stopBy: end
1815
+ kind: import_specifier
1816
+ has:
1817
+ field: name
1818
+ regex: ^Sidebar$
1819
+ any:
1820
+ - kind: import_specifier
1821
+ has:
1822
+ field: alias
1823
+ pattern: $NS
1824
+ - kind: import_specifier
1825
+ not:
1826
+ has:
1827
+ field: alias
1828
+ kind: identifier
1829
+ has:
1830
+ field: name
1831
+ pattern: $NS
1832
+ # The opening tag of an affected part, in a file that imports the namespace,
1833
+ # where no parameter or local shadows the import's name.
1834
+ part-tag:
1835
+ any:
1836
+ - kind: jsx_opening_element
1837
+ - kind: jsx_self_closing_element
1838
+ all:
1839
+ - has:
1840
+ field: name
1841
+ kind: member_expression
1842
+ all:
1843
+ - has:
1844
+ field: object
1845
+ pattern: $NS
1846
+ - has:
1847
+ field: property
1848
+ regex: ^(Body|List)$
1849
+ - inside:
1850
+ stopBy: end
1851
+ kind: program
1852
+ has:
1853
+ matches: ns-import
1854
+ - not:
1855
+ inside:
1856
+ stopBy: end
1857
+ matches: scope
1858
+ has:
1859
+ stopBy:
1860
+ matches: scope
1861
+ any:
1862
+ - matches: binding-name
1863
+ pattern: $NS
1864
+ - matches: function-declaration
1865
+ has:
1866
+ field: name
1867
+ pattern: $NS
1868
+ as-child:
1869
+ kind: jsx_attribute
1870
+ has:
1871
+ kind: property_identifier
1872
+ regex: ^asChild$
1873
+ # The className of the part, or of the one element that an `asChild` part
1874
+ # renders, because Slot merges that element's classes after the part's.
1875
+ part-class:
1876
+ inside:
1877
+ stopBy: end
1878
+ kind: jsx_attribute
1879
+ has:
1880
+ kind: property_identifier
1881
+ regex: ^className$
1882
+ inside:
1883
+ any:
1884
+ - matches: part-tag
1885
+ - all:
1886
+ - any:
1887
+ - kind: jsx_opening_element
1888
+ - kind: jsx_self_closing_element
1889
+ - any:
1890
+ - inside:
1891
+ kind: jsx_element
1892
+ has:
1893
+ field: open_tag
1894
+ matches: part-tag
1895
+ has:
1896
+ matches: as-child
1897
+ - inside:
1898
+ kind: jsx_element
1899
+ inside:
1900
+ kind: jsx_element
1901
+ has:
1902
+ field: open_tag
1903
+ matches: part-tag
1904
+ has:
1905
+ matches: as-child
1906
+ rule:
1907
+ kind: string_fragment
1908
+ regex: '(^|[\s:])-?(space-[xy]-|divide-)'
1909
+ pattern: $F
1910
+ all:
1911
+ - matches: part-class
1912
+ # Why: a reverse utility has no `between:` form; it stays manual.
1913
+ - not:
1914
+ regex: "(space|divide)-[xy]-reverse"
1915
+ # Why: a colon inside an arbitrary variant is not a variant boundary.
1916
+ - not:
1917
+ regex: '(space-[xy]-|divide-)[^\s]*\]'
1918
+ # Why: a string compared with `===` chooses a class; it is not one.
1919
+ - not:
1920
+ inside:
1921
+ kind: string
1922
+ inside:
1923
+ any:
1924
+ - pattern: $A === $B
1925
+ - pattern: $A !== $B
1926
+ - pattern: $A == $B
1927
+ - pattern: $A != $B
1928
+ transform:
1929
+ T1:
1930
+ replace:
1931
+ source: $F
1932
+ replace: '(^|[\s:])(-?)space-y-'
1933
+ by: "${1}between:${2}mbe-"
1934
+ T2:
1935
+ replace:
1936
+ source: $T1
1937
+ replace: '(^|[\s:])(-?)space-x-'
1938
+ by: "${1}between:${2}me-"
1939
+ T3:
1940
+ replace:
1941
+ source: $T2
1942
+ replace: '(^|[\s:])divide-y\b'
1943
+ by: "${1}between:border-b"
1944
+ T4:
1945
+ replace:
1946
+ source: $T3
1947
+ replace: '(^|[\s:])divide-x\b'
1948
+ by: "${1}between:border-e"
1949
+ T5:
1950
+ replace:
1951
+ source: $T4
1952
+ replace: '(^|[\s:])divide-'
1953
+ by: "${1}between:border-"
1954
+ fix: $T5