@qw-ui/core 0.3.0-next.40 → 0.3.0-next.42

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 (402) hide show
  1. package/README.md +21 -37
  2. package/dist/action-sheet/action-sheet.d.ts +110 -0
  3. package/dist/action-sheet/index.d.ts +2 -0
  4. package/dist/action-sheet/index.js +2 -0
  5. package/dist/action-sheet-Cvcr1S_m.js +183 -0
  6. package/dist/action-sheet-Cvcr1S_m.js.map +1 -0
  7. package/dist/area-picker/area-picker.d.ts +113 -0
  8. package/dist/area-picker/index.d.ts +1 -0
  9. package/dist/area-picker/index.js +348 -0
  10. package/dist/area-picker/index.js.map +1 -0
  11. package/dist/aria-description-CimD2M_C.js +13 -0
  12. package/dist/aria-description-CimD2M_C.js.map +1 -0
  13. package/dist/aria-description.d.ts +2 -0
  14. package/dist/avatar/avatar-load.d.ts +76 -0
  15. package/dist/avatar/avatar.d.ts +22 -5
  16. package/dist/avatar/index.d.ts +1 -0
  17. package/dist/avatar/index.js +57 -18
  18. package/dist/avatar/index.js.map +1 -1
  19. package/dist/avatar-load-w9dq05oV.js +139 -0
  20. package/dist/avatar-load-w9dq05oV.js.map +1 -0
  21. package/dist/back-top/back-top.d.ts +77 -0
  22. package/dist/back-top/index.d.ts +1 -0
  23. package/dist/back-top/index.js +189 -0
  24. package/dist/back-top/index.js.map +1 -0
  25. package/dist/badge/badge.d.ts +9 -0
  26. package/dist/badge/index.js +14 -1
  27. package/dist/badge/index.js.map +1 -1
  28. package/dist/button/button.d.ts +13 -0
  29. package/dist/button/index.js +3 -5
  30. package/dist/button/index.js.map +1 -1
  31. package/dist/calendar/calendar.d.ts +100 -0
  32. package/dist/calendar/index.d.ts +1 -0
  33. package/dist/calendar/index.js +2 -0
  34. package/dist/calendar-CmpK3stz.js +363 -0
  35. package/dist/calendar-CmpK3stz.js.map +1 -0
  36. package/dist/card/card.d.ts +68 -0
  37. package/dist/card/index.d.ts +2 -0
  38. package/dist/card/index.js +2 -0
  39. package/dist/card-DRtWa6Cr.js +107 -0
  40. package/dist/card-DRtWa6Cr.js.map +1 -0
  41. package/dist/cascader/cascader.d.ts +115 -0
  42. package/dist/cascader/index.d.ts +1 -0
  43. package/dist/cascader/index.js +2 -0
  44. package/dist/cascader-D-xMjs7P.js +333 -0
  45. package/dist/cascader-D-xMjs7P.js.map +1 -0
  46. package/dist/cell/cell.d.ts +41 -0
  47. package/dist/cell/index.d.ts +1 -0
  48. package/dist/cell/index.js +43 -0
  49. package/dist/cell/index.js.map +1 -0
  50. package/dist/check-list/check-list.d.ts +78 -0
  51. package/dist/check-list/index.d.ts +2 -0
  52. package/dist/check-list/index.js +2 -0
  53. package/dist/check-list-BvZHQt5w.js +60 -0
  54. package/dist/check-list-BvZHQt5w.js.map +1 -0
  55. package/dist/checkbox/checkbox.d.ts +59 -0
  56. package/dist/checkbox/index.d.ts +2 -0
  57. package/dist/checkbox/index.js +2 -0
  58. package/dist/checkbox-BlndJrz5.js +127 -0
  59. package/dist/checkbox-BlndJrz5.js.map +1 -0
  60. package/dist/checkbox-group/checkbox-group.d.ts +86 -0
  61. package/dist/checkbox-group/index.d.ts +3 -0
  62. package/dist/checkbox-group/index.js +2 -0
  63. package/dist/checkbox-group-gGfsTv-e.js +223 -0
  64. package/dist/checkbox-group-gGfsTv-e.js.map +1 -0
  65. package/dist/choice-group-C4c9m0qe.js +373 -0
  66. package/dist/choice-group-C4c9m0qe.js.map +1 -0
  67. package/dist/circle/circle.d.ts +97 -0
  68. package/dist/circle/index.d.ts +1 -0
  69. package/dist/circle/index.js +119 -0
  70. package/dist/circle/index.js.map +1 -0
  71. package/dist/collapse/collapse.d.ts +98 -0
  72. package/dist/collapse/index.d.ts +2 -0
  73. package/dist/collapse/index.js +2 -0
  74. package/dist/collapse-B969h7-H.js +226 -0
  75. package/dist/collapse-B969h7-H.js.map +1 -0
  76. package/dist/countdown/countdown.d.ts +114 -0
  77. package/dist/countdown/index.d.ts +1 -0
  78. package/dist/countdown/index.js +309 -0
  79. package/dist/countdown/index.js.map +1 -0
  80. package/dist/date-picker/date-picker.d.ts +168 -0
  81. package/dist/date-picker/index.d.ts +1 -0
  82. package/dist/date-picker/index.js +401 -0
  83. package/dist/date-picker/index.js.map +1 -0
  84. package/dist/descriptions/descriptions.d.ts +69 -0
  85. package/dist/descriptions/index.d.ts +1 -0
  86. package/dist/descriptions/index.js +86 -0
  87. package/dist/descriptions/index.js.map +1 -0
  88. package/dist/dialog/dialog.d.ts +32 -3
  89. package/dist/dialog/index.js +58 -3
  90. package/dist/dialog/index.js.map +1 -1
  91. package/dist/divider/divider.d.ts +18 -2
  92. package/dist/divider/index.js +20 -2
  93. package/dist/divider/index.js.map +1 -1
  94. package/dist/dropdown/dropdown.d.ts +172 -0
  95. package/dist/dropdown/index.d.ts +2 -0
  96. package/dist/dropdown/index.js +467 -0
  97. package/dist/dropdown/index.js.map +1 -0
  98. package/dist/ellipsis/ellipsis-layout.d.ts +34 -0
  99. package/dist/ellipsis/ellipsis.d.ts +88 -0
  100. package/dist/ellipsis/index.d.ts +2 -0
  101. package/dist/ellipsis/index.js +320 -0
  102. package/dist/ellipsis/index.js.map +1 -0
  103. package/dist/empty/empty-illustration.d.ts +3 -0
  104. package/dist/empty/empty.d.ts +43 -1
  105. package/dist/empty/index.js +2 -21
  106. package/dist/empty-CAgyvhUI.js +166 -0
  107. package/dist/empty-CAgyvhUI.js.map +1 -0
  108. package/dist/field/field.d.ts +95 -0
  109. package/dist/field/index.d.ts +2 -0
  110. package/dist/field/index.js +2 -0
  111. package/dist/field-DMHGIMZF.js +241 -0
  112. package/dist/field-DMHGIMZF.js.map +1 -0
  113. package/dist/floating-bubble/floating-bubble.d.ts +116 -0
  114. package/dist/floating-bubble/index.d.ts +1 -0
  115. package/dist/floating-bubble/index.js +333 -0
  116. package/dist/floating-bubble/index.js.map +1 -0
  117. package/dist/floating-panel/floating-panel.d.ts +80 -0
  118. package/dist/floating-panel/index.d.ts +2 -0
  119. package/dist/floating-panel/index.js +2 -0
  120. package/dist/floating-panel-Cbm5njBJ.js +363 -0
  121. package/dist/floating-panel-Cbm5njBJ.js.map +1 -0
  122. package/dist/footer/footer.d.ts +94 -0
  123. package/dist/footer/index.d.ts +1 -0
  124. package/dist/footer/index.js +154 -0
  125. package/dist/footer/index.js.map +1 -0
  126. package/dist/form/connect.d.ts +6 -0
  127. package/dist/form/form.d.ts +100 -0
  128. package/dist/form/ids.d.ts +14 -0
  129. package/dist/form/index.d.ts +13 -0
  130. package/dist/form/index.js +3 -0
  131. package/dist/form/methods.d.ts +5 -0
  132. package/dist/form/model.d.ts +24 -0
  133. package/dist/form/native.d.ts +25 -0
  134. package/dist/form/rules.d.ts +40 -0
  135. package/dist/form/ssr.d.ts +7 -0
  136. package/dist/form/types.d.ts +150 -0
  137. package/dist/form-BAGkIEMY.js +1354 -0
  138. package/dist/form-BAGkIEMY.js.map +1 -0
  139. package/dist/format-BDUY0C_c.js +89 -0
  140. package/dist/format-BDUY0C_c.js.map +1 -0
  141. package/dist/gesture-_SRHIvBm.js +30 -0
  142. package/dist/gesture-_SRHIvBm.js.map +1 -0
  143. package/dist/grid/grid-item.d.ts +22 -0
  144. package/dist/grid/grid.d.ts +42 -0
  145. package/dist/grid/index.d.ts +2 -0
  146. package/dist/grid/index.js +73 -0
  147. package/dist/grid/index.js.map +1 -0
  148. package/dist/icon/icon.d.ts +37 -1
  149. package/dist/icon/identity.d.ts +3 -0
  150. package/dist/icon/index.js +2 -20
  151. package/dist/icon-Cgdbnk1u.js +77 -0
  152. package/dist/icon-Cgdbnk1u.js.map +1 -0
  153. package/dist/image/image-load.d.ts +24 -0
  154. package/dist/image/image.d.ts +45 -8
  155. package/dist/image/index.d.ts +1 -0
  156. package/dist/image/index.js +116 -14
  157. package/dist/image/index.js.map +1 -1
  158. package/dist/image-preview/image-preview.d.ts +124 -0
  159. package/dist/image-preview/index.d.ts +1 -0
  160. package/dist/image-preview/index.js +450 -0
  161. package/dist/image-preview/index.js.map +1 -0
  162. package/dist/index-bar/index-bar.d.ts +121 -0
  163. package/dist/index-bar/index.d.ts +1 -0
  164. package/dist/index-bar/index.js +386 -0
  165. package/dist/index-bar/index.js.map +1 -0
  166. package/dist/index.d.ts +107 -14
  167. package/dist/index.js +148 -14
  168. package/dist/index.js.map +1 -0
  169. package/dist/infinite-scroll/index.d.ts +1 -0
  170. package/dist/infinite-scroll/index.js +248 -0
  171. package/dist/infinite-scroll/index.js.map +1 -0
  172. package/dist/infinite-scroll/infinite-scroll.d.ts +95 -0
  173. package/dist/input/index.js +181 -22
  174. package/dist/input/index.js.map +1 -1
  175. package/dist/input/input.d.ts +44 -1
  176. package/dist/layer-IpFrl5--.js +414 -0
  177. package/dist/layer-IpFrl5--.js.map +1 -0
  178. package/dist/layout-BRSqi4AQ.js +43 -0
  179. package/dist/layout-BRSqi4AQ.js.map +1 -0
  180. package/dist/layout.d.ts +13 -0
  181. package/dist/list/index.d.ts +2 -0
  182. package/dist/list/index.js +2 -0
  183. package/dist/list/list.d.ts +30 -0
  184. package/dist/list-6-iz-Irh.js +28 -0
  185. package/dist/list-6-iz-Irh.js.map +1 -0
  186. package/dist/loading/index.js +45 -2
  187. package/dist/loading/index.js.map +1 -1
  188. package/dist/loading/loading.d.ts +45 -2
  189. package/dist/modal-dialog-machine-CF9_z3Dm.js +487 -0
  190. package/dist/modal-dialog-machine-CF9_z3Dm.js.map +1 -0
  191. package/dist/modal-dialog-machine.d.ts +21 -0
  192. package/dist/modal-dismissable-lifetime.d.ts +21 -0
  193. package/dist/modal-registry.d.ts +24 -0
  194. package/dist/modal-render-hydration.d.ts +35 -0
  195. package/dist/modal-render-runtime.d.ts +19 -0
  196. package/dist/modal-render-scope.d.ts +63 -0
  197. package/dist/nav-bar/index.d.ts +1 -0
  198. package/dist/nav-bar/index.js +115 -0
  199. package/dist/nav-bar/index.js.map +1 -0
  200. package/dist/nav-bar/nav-bar.d.ts +76 -0
  201. package/dist/notice-bar/index.d.ts +2 -0
  202. package/dist/notice-bar/index.js +2 -0
  203. package/dist/notice-bar/notice-bar.d.ts +103 -0
  204. package/dist/notice-bar-DMpwLvRb.js +231 -0
  205. package/dist/notice-bar-DMpwLvRb.js.map +1 -0
  206. package/dist/notify/index.d.ts +1 -0
  207. package/dist/notify/index.js +251 -0
  208. package/dist/notify/index.js.map +1 -0
  209. package/dist/notify/notify.d.ts +123 -0
  210. package/dist/number-keyboard/index.d.ts +1 -0
  211. package/dist/number-keyboard/index.js +333 -0
  212. package/dist/number-keyboard/index.js.map +1 -0
  213. package/dist/number-keyboard/number-keyboard.d.ts +141 -0
  214. package/dist/page-indicator/index.d.ts +1 -0
  215. package/dist/page-indicator/index.js +138 -0
  216. package/dist/page-indicator/index.js.map +1 -0
  217. package/dist/page-indicator/page-indicator.d.ts +93 -0
  218. package/dist/pagination/index.d.ts +1 -0
  219. package/dist/pagination/index.js +198 -0
  220. package/dist/pagination/index.js.map +1 -0
  221. package/dist/pagination/pagination.d.ts +125 -0
  222. package/dist/password-input/index.d.ts +1 -0
  223. package/dist/password-input/index.js +317 -0
  224. package/dist/password-input/index.js.map +1 -0
  225. package/dist/password-input/password-input.d.ts +144 -0
  226. package/dist/picker/index.d.ts +8 -0
  227. package/dist/picker/index.js +2 -0
  228. package/dist/picker/picker-machine.d.ts +80 -0
  229. package/dist/picker/picker.d.ts +121 -0
  230. package/dist/picker/platform.d.ts +84 -0
  231. package/dist/picker/selection-connect.d.ts +90 -0
  232. package/dist/picker/selection-model.d.ts +211 -0
  233. package/dist/picker-BykFntQN.js +1675 -0
  234. package/dist/picker-BykFntQN.js.map +1 -0
  235. package/dist/popover/index.d.ts +3 -0
  236. package/dist/popover/index.js +253 -0
  237. package/dist/popover/index.js.map +1 -0
  238. package/dist/popover/layer.d.ts +44 -0
  239. package/dist/popover/popover.d.ts +104 -0
  240. package/dist/popover/positioning.d.ts +132 -0
  241. package/dist/popup/index.d.ts +2 -0
  242. package/dist/popup/index.js +2 -0
  243. package/dist/popup/popup.d.ts +60 -0
  244. package/dist/popup-z5d8IYCt.js +576 -0
  245. package/dist/popup-z5d8IYCt.js.map +1 -0
  246. package/dist/portal-BHCNTWhg.js +78 -0
  247. package/dist/portal-BHCNTWhg.js.map +1 -0
  248. package/dist/portal.d.ts +61 -0
  249. package/dist/price/format.d.ts +19 -0
  250. package/dist/price/index.d.ts +1 -0
  251. package/dist/price/index.js +154 -0
  252. package/dist/price/index.js.map +1 -0
  253. package/dist/price/price.d.ts +88 -0
  254. package/dist/progress/index.d.ts +1 -0
  255. package/dist/progress/index.js +2 -0
  256. package/dist/progress/progress.d.ts +32 -0
  257. package/dist/progress-f3iYEfdA.js +37 -0
  258. package/dist/progress-f3iYEfdA.js.map +1 -0
  259. package/dist/pull-refresh/index.d.ts +1 -0
  260. package/dist/pull-refresh/index.js +414 -0
  261. package/dist/pull-refresh/index.js.map +1 -0
  262. package/dist/pull-refresh/pull-refresh.d.ts +118 -0
  263. package/dist/radio-group/index.d.ts +3 -0
  264. package/dist/radio-group/index.js +2 -0
  265. package/dist/radio-group/radio-group.d.ts +78 -0
  266. package/dist/radio-group-BOIMuqnS.js +230 -0
  267. package/dist/radio-group-BOIMuqnS.js.map +1 -0
  268. package/dist/rate/index.d.ts +1 -0
  269. package/dist/rate/index.js +2 -0
  270. package/dist/rate/rate-form.d.ts +28 -0
  271. package/dist/rate/rate.d.ts +144 -0
  272. package/dist/rate-5XsU2QkY.js +631 -0
  273. package/dist/rate-5XsU2QkY.js.map +1 -0
  274. package/dist/reorder/index.d.ts +1 -0
  275. package/dist/reorder/index.js +720 -0
  276. package/dist/reorder/index.js.map +1 -0
  277. package/dist/reorder/reorder.d.ts +190 -0
  278. package/dist/result/index.d.ts +1 -0
  279. package/dist/result/index.js +123 -0
  280. package/dist/result/index.js.map +1 -0
  281. package/dist/result/result.d.ts +88 -0
  282. package/dist/safe-area/index.d.ts +1 -0
  283. package/dist/safe-area/index.js +42 -0
  284. package/dist/safe-area/index.js.map +1 -0
  285. package/dist/safe-area/safe-area.d.ts +28 -0
  286. package/dist/search-bar/index.js +3 -1
  287. package/dist/search-bar/index.js.map +1 -1
  288. package/dist/search-bar/search-bar.d.ts +4 -0
  289. package/dist/segmented/index.d.ts +2 -0
  290. package/dist/segmented/index.js +2 -0
  291. package/dist/segmented/segmented.d.ts +127 -0
  292. package/dist/segmented-BaU38_L4.js +367 -0
  293. package/dist/segmented-BaU38_L4.js.map +1 -0
  294. package/dist/selection-form-BOM_odUk.js +88 -0
  295. package/dist/selection-form-BOM_odUk.js.map +1 -0
  296. package/dist/selection-form.d.ts +27 -0
  297. package/dist/selection-ivXqO1eu.js +55 -0
  298. package/dist/selection-ivXqO1eu.js.map +1 -0
  299. package/dist/selection.d.ts +29 -0
  300. package/dist/selector/choice-group.d.ts +114 -0
  301. package/dist/selector/index.d.ts +2 -0
  302. package/dist/selector/index.js +2 -0
  303. package/dist/selector/selector.d.ts +90 -0
  304. package/dist/selector-BU2MMJ4N.js +93 -0
  305. package/dist/selector-BU2MMJ4N.js.map +1 -0
  306. package/dist/share-sheet/index.d.ts +1 -0
  307. package/dist/share-sheet/index.js +138 -0
  308. package/dist/share-sheet/index.js.map +1 -0
  309. package/dist/share-sheet/share-sheet.d.ts +139 -0
  310. package/dist/skeleton/index.js +51 -2
  311. package/dist/skeleton/index.js.map +1 -1
  312. package/dist/skeleton/skeleton.d.ts +34 -3
  313. package/dist/slider/index.d.ts +1 -0
  314. package/dist/slider/index.js +482 -0
  315. package/dist/slider/index.js.map +1 -0
  316. package/dist/slider/slider.d.ts +174 -0
  317. package/dist/space/index.d.ts +1 -0
  318. package/dist/space/index.js +52 -0
  319. package/dist/space/index.js.map +1 -0
  320. package/dist/space/space.d.ts +46 -0
  321. package/dist/statistic/index.d.ts +1 -0
  322. package/dist/statistic/index.js +152 -0
  323. package/dist/statistic/index.js.map +1 -0
  324. package/dist/statistic/statistic.d.ts +101 -0
  325. package/dist/stepper/index.js +62 -3
  326. package/dist/stepper/index.js.map +1 -1
  327. package/dist/stepper/stepper.d.ts +44 -4
  328. package/dist/steps/index.d.ts +1 -0
  329. package/dist/steps/index.js +72 -0
  330. package/dist/steps/index.js.map +1 -0
  331. package/dist/steps/steps.d.ts +67 -0
  332. package/dist/sticky/index.d.ts +1 -0
  333. package/dist/sticky/index.js +145 -0
  334. package/dist/sticky/index.js.map +1 -0
  335. package/dist/sticky/sticky.d.ts +70 -0
  336. package/dist/swipe-action/index.d.ts +1 -0
  337. package/dist/swipe-action/index.js +417 -0
  338. package/dist/swipe-action/index.js.map +1 -0
  339. package/dist/swipe-action/swipe-action.d.ts +148 -0
  340. package/dist/swiper/gesture.d.ts +32 -0
  341. package/dist/swiper/index.d.ts +1 -0
  342. package/dist/swiper/index.js +2 -0
  343. package/dist/swiper/swiper.d.ts +177 -0
  344. package/dist/swiper-BKivDkHp.js +550 -0
  345. package/dist/swiper-BKivDkHp.js.map +1 -0
  346. package/dist/switch/index.js +135 -10
  347. package/dist/switch/index.js.map +1 -1
  348. package/dist/switch/switch.d.ts +93 -6
  349. package/dist/tabbar/index.js +46 -1
  350. package/dist/tabbar/index.js.map +1 -1
  351. package/dist/tabbar/tabbar.d.ts +50 -0
  352. package/dist/tabs/index.js +22 -1
  353. package/dist/tabs/index.js.map +1 -1
  354. package/dist/tabs/tabs.d.ts +12 -8
  355. package/dist/tag/index.js +123 -2
  356. package/dist/tag/index.js.map +1 -1
  357. package/dist/tag/tag.d.ts +67 -1
  358. package/dist/textarea/index.d.ts +2 -0
  359. package/dist/textarea/index.js +2 -242
  360. package/dist/textarea/platform.d.ts +22 -0
  361. package/dist/textarea/textarea.d.ts +165 -46
  362. package/dist/textarea-qbnruDUG.js +775 -0
  363. package/dist/textarea-qbnruDUG.js.map +1 -0
  364. package/dist/time-picker/index.d.ts +1 -0
  365. package/dist/time-picker/index.js +228 -0
  366. package/dist/time-picker/index.js.map +1 -0
  367. package/dist/time-picker/time-picker.d.ts +83 -0
  368. package/dist/timeline/index.d.ts +1 -0
  369. package/dist/timeline/index.js +131 -0
  370. package/dist/timeline/index.js.map +1 -0
  371. package/dist/timeline/timeline.d.ts +79 -0
  372. package/dist/toast/index.js +47 -4
  373. package/dist/toast/index.js.map +1 -1
  374. package/dist/toast/toast.d.ts +26 -3
  375. package/dist/top-bar/index.js +16 -2
  376. package/dist/top-bar/index.js.map +1 -1
  377. package/dist/top-bar/top-bar.d.ts +13 -2
  378. package/dist/tree-select/index.d.ts +1 -0
  379. package/dist/tree-select/index.js +512 -0
  380. package/dist/tree-select/index.js.map +1 -0
  381. package/dist/tree-select/tree-select.d.ts +215 -0
  382. package/dist/typography/index.d.ts +1 -0
  383. package/dist/typography/index.js +82 -0
  384. package/dist/typography/index.js.map +1 -0
  385. package/dist/typography/typography.d.ts +54 -0
  386. package/dist/upload/index.d.ts +1 -0
  387. package/dist/upload/index.js +458 -0
  388. package/dist/upload/index.js.map +1 -0
  389. package/dist/upload/upload.d.ts +172 -0
  390. package/dist/virtual-list/index.d.ts +1 -0
  391. package/dist/virtual-list/index.js +445 -0
  392. package/dist/virtual-list/index.js.map +1 -0
  393. package/dist/virtual-list/virtual-list.d.ts +160 -0
  394. package/dist/visual-manifest.d.ts +6 -0
  395. package/dist/watermark/index.d.ts +1 -0
  396. package/dist/watermark/index.js +260 -0
  397. package/dist/watermark/index.js.map +1 -0
  398. package/dist/watermark/watermark.d.ts +106 -0
  399. package/package.json +399 -50
  400. package/dist/empty/index.js.map +0 -1
  401. package/dist/icon/index.js.map +0 -1
  402. package/dist/textarea/index.js.map +0 -1
@@ -0,0 +1,386 @@
1
+ import { createMachine } from "@zag-js/core";
2
+ import { visuallyHiddenStyle } from "@zag-js/dom-query";
3
+ //#region src/index-bar/index-bar.ts
4
+ /** Stable DOM parts shared by every adapter. */
5
+ const INDEX_BAR_PARTS = [
6
+ "root",
7
+ "index",
8
+ "index-item",
9
+ "indicator",
10
+ "list",
11
+ "group",
12
+ "anchor",
13
+ "group-content",
14
+ "status"
15
+ ];
16
+ const text = (value, fallback) => typeof value === "string" && value.trim() ? value : fallback;
17
+ function resolveIndexBarState(props = {}) {
18
+ const groups = [], seen = /* @__PURE__ */ new Set();
19
+ for (const group of Array.isArray(props.groups) ? props.groups : []) {
20
+ if (!group || typeof group.key !== "string" || !group.key.trim() || seen.has(group.key)) continue;
21
+ seen.add(group.key);
22
+ groups.push({
23
+ key: group.key,
24
+ title: text(group.title, group.key),
25
+ content: typeof group.content === "string" ? group.content : "",
26
+ index: groups.length
27
+ });
28
+ }
29
+ const keys = Array.isArray(props.indexes) ? props.indexes.filter((key) => typeof key === "string" && !!key.trim()) : groups.map((group) => group.key);
30
+ const items = [], listed = /* @__PURE__ */ new Set();
31
+ for (const key of keys) {
32
+ if (listed.has(key)) continue;
33
+ listed.add(key);
34
+ const group = groups.find((item) => item.key === key);
35
+ items.push({
36
+ key,
37
+ title: group?.title ?? key,
38
+ disabled: !group,
39
+ group: group?.index ?? -1
40
+ });
41
+ }
42
+ const offset = props.stickyOffset;
43
+ return {
44
+ groups,
45
+ items,
46
+ target: typeof props.target === "string" && props.target.trim() ? props.target : void 0,
47
+ stickyOffset: typeof offset === "number" && Number.isFinite(offset) && offset >= 0 ? offset : 0,
48
+ sticky: props.sticky !== false,
49
+ indexLabel: text(props.indexLabel, "索引"),
50
+ jumpLabel: text(props.jumpLabel, "跳转到 {title} 组")
51
+ };
52
+ }
53
+ /** The key under a pointer position, from item rects measured top-down. Disabled items are skipped. */
54
+ function resolveIndexBarKeyAt(y, rects) {
55
+ if (!rects.length || !Number.isFinite(y)) return null;
56
+ for (const rect of rects) if (y < rect.bottom) return rect.key;
57
+ return rects[rects.length - 1].key;
58
+ }
59
+ /** Current group: the last one whose top has reached the sticky offset; the first group before any is reached. */
60
+ function resolveIndexBarActive(tops, offset) {
61
+ let active = tops[0]?.key ?? null;
62
+ for (const item of tops) if (item.top - offset <= 1) active = item.key;
63
+ else break;
64
+ return active;
65
+ }
66
+ function createIndexBarProps(props = {}) {
67
+ if (props.id !== void 0 && (typeof props.id !== "string" || !props.id.trim())) throw new TypeError("IndexBar requires a nonempty instance id when provided");
68
+ return { ...props };
69
+ }
70
+ const ids = (scope) => {
71
+ const base = `index-bar:${scope.id}`;
72
+ return {
73
+ root: base,
74
+ index: `${base}:index`,
75
+ status: `${base}:status`,
76
+ group: (index) => `${base}:group:${index}`,
77
+ anchor: (index) => `${base}:anchor:${index}`,
78
+ item: (key) => `${base}:item:${encodeURIComponent(key)}`
79
+ };
80
+ };
81
+ const live = (service) => resolveIndexBarState({
82
+ groups: service.prop("groups"),
83
+ indexes: service.prop("indexes"),
84
+ target: service.prop("target"),
85
+ stickyOffset: service.prop("stickyOffset"),
86
+ sticky: service.prop("sticky"),
87
+ indexLabel: service.prop("indexLabel"),
88
+ jumpLabel: service.prop("jumpLabel")
89
+ });
90
+ const scrollable = (value) => value === "auto" || value === "scroll" || value === "overlay";
91
+ /** Resolved scroll container: target id, nearest scrollable ancestor, or null for the viewport. */
92
+ function containerOf(root, target) {
93
+ const doc = root.ownerDocument, win = doc.defaultView;
94
+ if (target) {
95
+ const element = root.getRootNode().getElementById?.(target) ?? doc.getElementById(target);
96
+ if (element) return element;
97
+ }
98
+ for (let node = root.parentElement; node && node !== doc.body && node !== doc.documentElement; node = node.parentElement) if (win && scrollable(win.getComputedStyle(node).overflowY)) return node;
99
+ return null;
100
+ }
101
+ const viewportTop = (container) => container ? container.getBoundingClientRect().top : 0;
102
+ const enabledKeys = (state) => state.items.filter((item) => !item.disabled).map((item) => item.key);
103
+ /** Core owns scroll tracking, jumping, drag measurement, roving focus and listener cleanup. */
104
+ const indexBarMachine = createMachine({
105
+ props: ({ props }) => createIndexBarProps(props),
106
+ initialState: () => "ready",
107
+ states: { ready: {} },
108
+ context: ({ bindable, prop }) => ({
109
+ active: bindable(() => ({
110
+ defaultValue: null,
111
+ onChange(key) {
112
+ if (key !== null) prop("onChange")?.({ key });
113
+ }
114
+ })),
115
+ focusKey: bindable(() => ({ defaultValue: null })),
116
+ indicator: bindable(() => ({ defaultValue: null }))
117
+ }),
118
+ refs: () => ({
119
+ suppressScroll: false,
120
+ sync: null
121
+ }),
122
+ watch({ track, prop, send }) {
123
+ const signature = () => {
124
+ const state = live({ prop });
125
+ return `${state.groups.map((group) => group.key).join("\0")}\u0001${state.items.map((item) => item.key).join("\0")}`;
126
+ };
127
+ track([
128
+ signature,
129
+ () => prop("target"),
130
+ () => prop("stickyOffset")
131
+ ], () => send({ type: "GROUPS.CHANGE" }));
132
+ },
133
+ on: {
134
+ "ACTIVE.SYNC": { actions: ["syncActive"] },
135
+ JUMP: { actions: ["jump"] },
136
+ "DRAG.END": { actions: ["dragEnd"] },
137
+ "FOCUS.MOVE": { actions: ["focusItem"] },
138
+ "GROUPS.CHANGE": { actions: ["resync"] }
139
+ },
140
+ effects: ["trackScroll"],
141
+ implementations: {
142
+ actions: {
143
+ syncActive({ event, context }) {
144
+ if (event.type === "ACTIVE.SYNC" && event.key !== context.get("active")) context.set("active", event.key);
145
+ },
146
+ resync({ refs }) {
147
+ refs.get("sync")?.();
148
+ },
149
+ jump({ event, context, prop, scope, refs }) {
150
+ if (event.type !== "JUMP") return;
151
+ const state = live({ prop }), item = state.items.find((entry) => entry.key === event.key && !entry.disabled);
152
+ if (!item) return;
153
+ if (event.drag) context.set("indicator", item.key);
154
+ const id = ids(scope), root = scope.getById(id.root), section = scope.getById(id.group(item.group));
155
+ if (root && section) {
156
+ const container = containerOf(root, state.target), win = root.ownerDocument.defaultView;
157
+ const delta = section.getBoundingClientRect().top - viewportTop(container) - state.stickyOffset;
158
+ const scroller = container ?? root.ownerDocument.scrollingElement ?? root.ownerDocument.documentElement;
159
+ refs.set("suppressScroll", true);
160
+ scroller.scrollTop = Math.max(0, scroller.scrollTop + delta);
161
+ win?.requestAnimationFrame(() => refs.set("suppressScroll", false));
162
+ }
163
+ if (context.get("active") !== item.key) context.set("active", item.key);
164
+ },
165
+ dragEnd({ context }) {
166
+ context.set("indicator", null);
167
+ },
168
+ focusItem({ event, context, prop, scope }) {
169
+ if (event.type !== "FOCUS.MOVE" || !enabledKeys(live({ prop })).includes(event.key)) return;
170
+ context.set("focusKey", event.key);
171
+ if (event.focus) scope.getById(ids(scope).item(event.key))?.focus();
172
+ }
173
+ },
174
+ effects: { trackScroll({ scope, prop, send, refs }) {
175
+ const id = ids(scope), root = scope.getById(id.root), win = root?.ownerDocument.defaultView;
176
+ if (!root || !win) return;
177
+ let frame = 0, disposed = false, container = null, scrollTarget = null;
178
+ const measure = () => {
179
+ frame = 0;
180
+ if (disposed) return;
181
+ const state = live({ prop }), top = viewportTop(container);
182
+ send({
183
+ type: "ACTIVE.SYNC",
184
+ key: resolveIndexBarActive(state.groups.flatMap((group) => {
185
+ const element = scope.getById(id.group(group.index));
186
+ return element ? [{
187
+ key: group.key,
188
+ top: element.getBoundingClientRect().top - top
189
+ }] : [];
190
+ }), state.stickyOffset)
191
+ });
192
+ };
193
+ const schedule = () => {
194
+ if (!disposed && !frame) frame = win.requestAnimationFrame(measure);
195
+ };
196
+ const onScroll = () => {
197
+ if (!refs.get("suppressScroll")) schedule();
198
+ };
199
+ const bind = () => {
200
+ scrollTarget?.removeEventListener("scroll", onScroll);
201
+ container = containerOf(root, live({ prop }).target);
202
+ scrollTarget = container ?? win;
203
+ scrollTarget.addEventListener("scroll", onScroll, { passive: true });
204
+ schedule();
205
+ };
206
+ const index = scope.getById(id.index);
207
+ let drag = null;
208
+ const keyAt = (y) => drag ? resolveIndexBarKeyAt(y, drag.rects) : null;
209
+ const onDown = (event) => {
210
+ if (event.pointerType === "mouse" && event.button !== 0) return;
211
+ const rects = live({ prop }).items.flatMap((item) => {
212
+ const element = item.disabled ? null : scope.getById(id.item(item.key));
213
+ if (!element) return [];
214
+ const rect = element.getBoundingClientRect();
215
+ return [{
216
+ key: item.key,
217
+ top: rect.top,
218
+ bottom: rect.bottom
219
+ }];
220
+ });
221
+ drag = {
222
+ pointer: event.pointerId,
223
+ rects,
224
+ key: null
225
+ };
226
+ try {
227
+ index?.setPointerCapture?.(event.pointerId);
228
+ } catch {}
229
+ const key = keyAt(event.clientY);
230
+ if (key) {
231
+ drag.key = key;
232
+ send({
233
+ type: "JUMP",
234
+ key,
235
+ drag: true
236
+ });
237
+ }
238
+ };
239
+ const onMove = (event) => {
240
+ if (!drag || event.pointerId !== drag.pointer) return;
241
+ const key = keyAt(event.clientY);
242
+ if (key && key !== drag.key) {
243
+ drag.key = key;
244
+ send({
245
+ type: "JUMP",
246
+ key,
247
+ drag: true
248
+ });
249
+ }
250
+ };
251
+ const onUp = (event) => {
252
+ if (drag && event.pointerId === drag.pointer) {
253
+ drag = null;
254
+ send({ type: "DRAG.END" });
255
+ }
256
+ };
257
+ index?.addEventListener("pointerdown", onDown);
258
+ index?.addEventListener("pointermove", onMove);
259
+ index?.addEventListener("pointerup", onUp);
260
+ index?.addEventListener("pointercancel", onUp);
261
+ win.addEventListener("resize", schedule);
262
+ const Observer = win.ResizeObserver, observer = Observer ? new Observer(schedule) : null;
263
+ observer?.observe(root);
264
+ refs.set("sync", bind);
265
+ bind();
266
+ return () => {
267
+ disposed = true;
268
+ refs.set("sync", null);
269
+ drag = null;
270
+ if (frame) win.cancelAnimationFrame(frame);
271
+ scrollTarget?.removeEventListener("scroll", onScroll);
272
+ win.removeEventListener("resize", schedule);
273
+ observer?.disconnect();
274
+ index?.removeEventListener("pointerdown", onDown);
275
+ index?.removeEventListener("pointermove", onMove);
276
+ index?.removeEventListener("pointerup", onUp);
277
+ index?.removeEventListener("pointercancel", onUp);
278
+ };
279
+ } }
280
+ }
281
+ });
282
+ function connectIndexBar(service, normalize) {
283
+ const state = live(service), id = ids(service.scope), keys = enabledKeys(state);
284
+ const activeRaw = service.context.get("active"), active = state.groups.some((group) => group.key === activeRaw) ? activeRaw : state.groups[0]?.key ?? null;
285
+ const indicator = service.context.get("indicator"), focusRaw = service.context.get("focusKey");
286
+ const roving = focusRaw && keys.includes(focusRaw) ? focusRaw : active && keys.includes(active) ? active : keys[0] ?? null;
287
+ const part = (name) => ({
288
+ "data-scope": "index-bar",
289
+ "data-part": name
290
+ });
291
+ const scrollTo = (key) => service.send({
292
+ type: "JUMP",
293
+ key
294
+ });
295
+ const titleOf = (key) => state.items.find((item) => item.key === key)?.title ?? "";
296
+ return {
297
+ groups: state.groups,
298
+ items: state.items,
299
+ active,
300
+ indicator,
301
+ statusText: indicator ? titleOf(indicator) : "",
302
+ scrollTo,
303
+ getRootProps: () => normalize.element({
304
+ ...part("root"),
305
+ id: id.root,
306
+ "data-sticky": state.sticky ? "true" : void 0,
307
+ style: { "--qw-index-bar-sticky-offset": `${state.stickyOffset}px` }
308
+ }),
309
+ getIndexProps: () => normalize.element({
310
+ ...part("index"),
311
+ id: id.index,
312
+ role: "toolbar",
313
+ "aria-orientation": "vertical",
314
+ "aria-label": state.indexLabel,
315
+ "data-dragging": indicator ? "true" : void 0,
316
+ onKeyDown(event) {
317
+ if (event.defaultPrevented || !roving) return;
318
+ const focused = event.target?.getAttribute?.("data-key");
319
+ const at = keys.indexOf(focused && keys.includes(focused) ? focused : roving);
320
+ const next = event.key === "ArrowDown" ? keys[Math.min(keys.length - 1, at + 1)] : event.key === "ArrowUp" ? keys[Math.max(0, at - 1)] : event.key === "Home" ? keys[0] : event.key === "End" ? keys[keys.length - 1] : void 0;
321
+ if (next === void 0) return;
322
+ event.preventDefault();
323
+ service.send({
324
+ type: "FOCUS.MOVE",
325
+ key: next,
326
+ focus: true
327
+ });
328
+ }
329
+ }),
330
+ getIndexItemProps: (item) => normalize.button({
331
+ ...part("index-item"),
332
+ id: id.item(item.key),
333
+ type: "button",
334
+ "data-key": item.key,
335
+ disabled: item.disabled || void 0,
336
+ tabIndex: item.key === roving ? 0 : -1,
337
+ "aria-label": state.jumpLabel.replace(/\{title\}/g, item.title),
338
+ "aria-current": item.key === active ? "true" : void 0,
339
+ "data-active": item.key === active ? "true" : void 0,
340
+ onFocus() {
341
+ if (focusRaw !== item.key) service.send({
342
+ type: "FOCUS.MOVE",
343
+ key: item.key
344
+ });
345
+ },
346
+ onClick(event) {
347
+ if (!event.defaultPrevented) scrollTo(item.key);
348
+ }
349
+ }),
350
+ getIndicatorProps: () => normalize.element({
351
+ ...part("indicator"),
352
+ "aria-hidden": true,
353
+ hidden: !indicator || void 0
354
+ }),
355
+ getListProps: () => normalize.element({ ...part("list") }),
356
+ getGroupProps: (group) => normalize.element({
357
+ ...part("group"),
358
+ id: id.group(group.index),
359
+ role: "group",
360
+ "aria-labelledby": id.anchor(group.index),
361
+ "data-key": group.key,
362
+ "data-active": group.key === active ? "true" : void 0
363
+ }),
364
+ getAnchorProps: (group) => normalize.element({
365
+ ...part("anchor"),
366
+ id: id.anchor(group.index),
367
+ "data-key": group.key,
368
+ "data-active": group.key === active ? "true" : void 0
369
+ }),
370
+ getGroupContentProps: (group) => normalize.element({
371
+ ...part("group-content"),
372
+ "data-key": group.key
373
+ }),
374
+ getStatusProps: () => normalize.element({
375
+ ...part("status"),
376
+ id: id.status,
377
+ role: "status",
378
+ "aria-live": "polite",
379
+ style: visuallyHiddenStyle
380
+ })
381
+ };
382
+ }
383
+ //#endregion
384
+ export { INDEX_BAR_PARTS, connectIndexBar, createIndexBarProps, indexBarMachine, resolveIndexBarActive, resolveIndexBarKeyAt, resolveIndexBarState };
385
+
386
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/index-bar/index-bar.ts"],"sourcesContent":["import { createMachine, type Machine, type Service } from \"@zag-js/core\";\nimport { visuallyHiddenStyle } from \"@zag-js/dom-query\";\nimport type { NormalizeProps, PropTypes } from \"@zag-js/types\";\n\n/** Stable DOM parts shared by every adapter. */\nexport const INDEX_BAR_PARTS = [\"root\", \"index\", \"index-item\", \"indicator\", \"list\", \"group\", \"anchor\", \"group-content\", \"status\"] as const;\n/** Caller data: Core owns key/title; content is a scalar fallback that adapters may replace with nodes/slots. */\nexport interface QwIndexBarGroup { key: string; title?: string; content?: string }\nexport interface IndexBarChangeDetails { key: string }\nexport interface ResolvedIndexBarGroup { key: string; title: string; content: string; index: number }\nexport interface ResolvedIndexBarItem { key: string; title: string; disabled: boolean; group: number }\n\nexport interface QwIndexBarProps {\n /** Page-unique instance identity; adapters generate one when omitted. */\n id?: string;\n /** Ordered groups. Empty/duplicate keys are dropped. */\n groups?: readonly QwIndexBarGroup[];\n /** Sidebar keys; defaults to the group keys. Keys without a group render disabled and are skipped. */\n indexes?: readonly string[];\n /** Element id of the scrolling container. Omitted/missing: nearest scrollable ancestor, then the viewport. */\n target?: string;\n /** Pixels reserved at the top of the container (for example a fixed NavBar); default 0. */\n stickyOffset?: number;\n /** Keep the current group's anchor title stuck at stickyOffset; default true. */\n sticky?: boolean;\n /** Accessible name of the index toolbar; default 索引. */\n indexLabel?: string;\n /** Accessible name template of an index item with {title}; default 跳转到 {title} 组. */\n jumpLabel?: string;\n /** The current group changed (scrolling or jumping). */\n onChange?: (details: IndexBarChangeDetails) => void;\n}\nexport interface ResolvedIndexBarState {\n groups: ResolvedIndexBarGroup[]; items: ResolvedIndexBarItem[]; target: string | undefined; stickyOffset: number; sticky: boolean; indexLabel: string; jumpLabel: string;\n}\nconst text = (value: unknown, fallback: string): string => typeof value === \"string\" && value.trim() ? value : fallback;\n\nexport function resolveIndexBarState(props: QwIndexBarProps = {}): ResolvedIndexBarState {\n const groups: ResolvedIndexBarGroup[] = [], seen = new Set<string>();\n for (const group of Array.isArray(props.groups) ? props.groups : []) {\n if (!group || typeof group.key !== \"string\" || !group.key.trim() || seen.has(group.key)) continue;\n seen.add(group.key); groups.push({ key: group.key, title: text(group.title, group.key), content: typeof group.content === \"string\" ? group.content : \"\", index: groups.length });\n }\n const keys = Array.isArray(props.indexes) ? props.indexes.filter((key): key is string => typeof key === \"string\" && !!key.trim()) : groups.map((group) => group.key);\n const items: ResolvedIndexBarItem[] = [], listed = new Set<string>();\n for (const key of keys) {\n if (listed.has(key)) continue;\n listed.add(key);\n const group = groups.find((item) => item.key === key);\n items.push({ key, title: group?.title ?? key, disabled: !group, group: group?.index ?? -1 });\n }\n const offset = props.stickyOffset;\n return {\n groups, items, target: typeof props.target === \"string\" && props.target.trim() ? props.target : undefined,\n stickyOffset: typeof offset === \"number\" && Number.isFinite(offset) && offset >= 0 ? offset : 0, sticky: props.sticky !== false,\n indexLabel: text(props.indexLabel, \"索引\"), jumpLabel: text(props.jumpLabel, \"跳转到 {title} 组\"),\n };\n}\n/** The key under a pointer position, from item rects measured top-down. Disabled items are skipped. */\nexport function resolveIndexBarKeyAt(y: number, rects: readonly { key: string; top: number; bottom: number }[]): string | null {\n if (!rects.length || !Number.isFinite(y)) return null;\n for (const rect of rects) if (y < rect.bottom) return rect.key;\n return rects[rects.length - 1]!.key;\n}\n/** Current group: the last one whose top has reached the sticky offset; the first group before any is reached. */\nexport function resolveIndexBarActive(tops: readonly { key: string; top: number }[], offset: number): string | null {\n let active: string | null = tops[0]?.key ?? null;\n for (const item of tops) { if (item.top - offset <= 1) active = item.key; else break; }\n return active;\n}\nexport function createIndexBarProps(props: QwIndexBarProps = {}): QwIndexBarProps {\n if (props.id !== undefined && (typeof props.id !== \"string\" || !props.id.trim())) throw new TypeError(\"IndexBar requires a nonempty instance id when provided\");\n return { ...props };\n}\n\nexport interface QwIndexBarSchema {\n props: QwIndexBarProps;\n context: { active: string | null; focusKey: string | null; indicator: string | null };\n refs: { suppressScroll: boolean; sync: (() => void) | null };\n state: \"ready\";\n action: \"syncActive\" | \"jump\" | \"dragEnd\" | \"focusItem\" | \"resync\";\n effect: \"trackScroll\";\n event:\n | { type: \"ACTIVE.SYNC\"; key: string | null }\n | { type: \"JUMP\"; key: string; drag?: boolean }\n | { type: \"DRAG.END\" }\n | { type: \"FOCUS.MOVE\"; key: string; focus?: boolean }\n | { type: \"GROUPS.CHANGE\" };\n}\nexport type QwIndexBarMachine = Machine<QwIndexBarSchema>;\nexport type QwIndexBarService = Service<QwIndexBarSchema>;\ntype Scope = QwIndexBarService[\"scope\"];\nconst ids = (scope: Scope) => {\n const base = `index-bar:${scope.id}`;\n return { root: base, index: `${base}:index`, status: `${base}:status`, group: (index: number) => `${base}:group:${index}`, anchor: (index: number) => `${base}:anchor:${index}`, item: (key: string) => `${base}:item:${encodeURIComponent(key)}` };\n};\nconst live = (service: Pick<QwIndexBarService, \"prop\">) => resolveIndexBarState({\n groups: service.prop(\"groups\"), indexes: service.prop(\"indexes\"), target: service.prop(\"target\"), stickyOffset: service.prop(\"stickyOffset\"),\n sticky: service.prop(\"sticky\"), indexLabel: service.prop(\"indexLabel\"), jumpLabel: service.prop(\"jumpLabel\"),\n});\nconst scrollable = (value: string) => value === \"auto\" || value === \"scroll\" || value === \"overlay\";\n/** Resolved scroll container: target id, nearest scrollable ancestor, or null for the viewport. */\nfunction containerOf(root: HTMLElement, target: string | undefined): HTMLElement | null {\n const doc = root.ownerDocument, win = doc.defaultView;\n if (target) {\n const owner = root.getRootNode() as Document | ShadowRoot;\n const element = owner.getElementById?.(target) ?? doc.getElementById(target);\n if (element) return element as HTMLElement;\n }\n for (let node = root.parentElement; node && node !== doc.body && node !== doc.documentElement; node = node.parentElement) {\n if (win && scrollable(win.getComputedStyle(node).overflowY)) return node;\n }\n return null;\n}\nconst viewportTop = (container: HTMLElement | null) => container ? container.getBoundingClientRect().top : 0;\nconst enabledKeys = (state: ResolvedIndexBarState) => state.items.filter((item) => !item.disabled).map((item) => item.key);\n\n/** Core owns scroll tracking, jumping, drag measurement, roving focus and listener cleanup. */\nexport const indexBarMachine: QwIndexBarMachine = createMachine<QwIndexBarSchema>({\n props: ({ props }) => createIndexBarProps(props), initialState: () => \"ready\", states: { ready: {} },\n context: ({ bindable, prop }) => ({\n active: bindable<string | null>(() => ({ defaultValue: null, onChange(key) { if (key !== null) prop(\"onChange\")?.({ key }); } })),\n focusKey: bindable<string | null>(() => ({ defaultValue: null })), indicator: bindable<string | null>(() => ({ defaultValue: null })),\n }),\n refs: () => ({ suppressScroll: false, sync: null }),\n watch({ track, prop, send }) {\n // Track a primitive signature: re-measure when group or index keys change, not on every new array identity.\n const signature = () => { const state = live({ prop }); return `${state.groups.map((group) => group.key).join(\"\\u0000\")}\\u0001${state.items.map((item) => item.key).join(\"\\u0000\")}`; };\n track([signature, () => prop(\"target\"), () => prop(\"stickyOffset\")], () => send({ type: \"GROUPS.CHANGE\" }));\n },\n on: {\n \"ACTIVE.SYNC\": { actions: [\"syncActive\"] }, JUMP: { actions: [\"jump\"] }, \"DRAG.END\": { actions: [\"dragEnd\"] },\n \"FOCUS.MOVE\": { actions: [\"focusItem\"] }, \"GROUPS.CHANGE\": { actions: [\"resync\"] },\n },\n effects: [\"trackScroll\"],\n implementations: {\n actions: {\n syncActive({ event, context }) { if (event.type === \"ACTIVE.SYNC\" && event.key !== context.get(\"active\")) context.set(\"active\", event.key); },\n resync({ refs }) { refs.get(\"sync\")?.(); },\n jump({ event, context, prop, scope, refs }) {\n if (event.type !== \"JUMP\") return;\n const state = live({ prop }), item = state.items.find((entry) => entry.key === event.key && !entry.disabled);\n if (!item) return;\n if (event.drag) context.set(\"indicator\", item.key);\n const id = ids(scope), root = scope.getById<HTMLElement>(id.root), section = scope.getById<HTMLElement>(id.group(item.group));\n if (root && section) {\n const container = containerOf(root, state.target), win = root.ownerDocument.defaultView;\n const delta = section.getBoundingClientRect().top - viewportTop(container) - state.stickyOffset;\n const scroller = container ?? root.ownerDocument.scrollingElement ?? root.ownerDocument.documentElement;\n // The scroll event caused by this jump must not override the requested group (the last groups may not reach the top).\n refs.set(\"suppressScroll\", true);\n scroller.scrollTop = Math.max(0, scroller.scrollTop + delta);\n win?.requestAnimationFrame(() => refs.set(\"suppressScroll\", false));\n }\n if (context.get(\"active\") !== item.key) context.set(\"active\", item.key);\n },\n dragEnd({ context }) { context.set(\"indicator\", null); },\n focusItem({ event, context, prop, scope }) {\n if (event.type !== \"FOCUS.MOVE\" || !enabledKeys(live({ prop })).includes(event.key)) return;\n context.set(\"focusKey\", event.key);\n if (event.focus) scope.getById<HTMLElement>(ids(scope).item(event.key))?.focus();\n },\n },\n effects: {\n trackScroll({ scope, prop, send, refs }) {\n const id = ids(scope), root = scope.getById<HTMLElement>(id.root), win = root?.ownerDocument.defaultView;\n if (!root || !win) return;\n let frame = 0, disposed = false, container: HTMLElement | null = null, scrollTarget: EventTarget | null = null;\n const measure = () => {\n frame = 0;\n if (disposed) return;\n const state = live({ prop }), top = viewportTop(container);\n const tops = state.groups.flatMap((group) => { const element = scope.getById<HTMLElement>(id.group(group.index)); return element ? [{ key: group.key, top: element.getBoundingClientRect().top - top }] : []; });\n send({ type: \"ACTIVE.SYNC\", key: resolveIndexBarActive(tops, state.stickyOffset) });\n };\n const schedule = () => { if (!disposed && !frame) frame = win.requestAnimationFrame(measure); };\n const onScroll = () => { if (!refs.get(\"suppressScroll\")) schedule(); };\n const bind = () => {\n scrollTarget?.removeEventListener(\"scroll\", onScroll);\n container = containerOf(root, live({ prop }).target); scrollTarget = container ?? win;\n scrollTarget.addEventListener(\"scroll\", onScroll, { passive: true });\n schedule();\n };\n // Drag across the index: rects are measured once per gesture, no elementFromPoint.\n const index = scope.getById<HTMLElement>(id.index);\n let drag: { pointer: number; rects: { key: string; top: number; bottom: number }[]; key: string | null } | null = null;\n const keyAt = (y: number) => drag ? resolveIndexBarKeyAt(y, drag.rects) : null;\n const onDown = (event: PointerEvent) => {\n if (event.pointerType === \"mouse\" && event.button !== 0) return;\n const state = live({ prop });\n const rects = state.items.flatMap((item) => { const element = item.disabled ? null : scope.getById<HTMLElement>(id.item(item.key)); if (!element) return []; const rect = element.getBoundingClientRect(); return [{ key: item.key, top: rect.top, bottom: rect.bottom }]; });\n drag = { pointer: event.pointerId, rects, key: null };\n try { index?.setPointerCapture?.(event.pointerId); } catch { /* released */ }\n const key = keyAt(event.clientY);\n if (key) { drag.key = key; send({ type: \"JUMP\", key, drag: true }); }\n };\n const onMove = (event: PointerEvent) => {\n if (!drag || event.pointerId !== drag.pointer) return;\n const key = keyAt(event.clientY);\n if (key && key !== drag.key) { drag.key = key; send({ type: \"JUMP\", key, drag: true }); }\n };\n const onUp = (event: PointerEvent) => { if (drag && event.pointerId === drag.pointer) { drag = null; send({ type: \"DRAG.END\" }); } };\n index?.addEventListener(\"pointerdown\", onDown); index?.addEventListener(\"pointermove\", onMove);\n index?.addEventListener(\"pointerup\", onUp); index?.addEventListener(\"pointercancel\", onUp);\n win.addEventListener(\"resize\", schedule);\n const Observer = win.ResizeObserver, observer = Observer ? new Observer(schedule) : null;\n observer?.observe(root);\n refs.set(\"sync\", bind); bind();\n return () => {\n disposed = true; refs.set(\"sync\", null); drag = null;\n if (frame) win.cancelAnimationFrame(frame);\n scrollTarget?.removeEventListener(\"scroll\", onScroll); win.removeEventListener(\"resize\", schedule); observer?.disconnect();\n index?.removeEventListener(\"pointerdown\", onDown); index?.removeEventListener(\"pointermove\", onMove);\n index?.removeEventListener(\"pointerup\", onUp); index?.removeEventListener(\"pointercancel\", onUp);\n };\n },\n },\n },\n});\n\nexport interface QwIndexBarApi<T extends PropTypes = PropTypes> {\n groups: ResolvedIndexBarGroup[]; items: ResolvedIndexBarItem[]; active: string | null; indicator: string | null; statusText: string;\n /** Scroll the container so the group's top meets stickyOffset. Unknown/disabled keys are ignored. */\n scrollTo(key: string): void;\n getRootProps(): T[\"element\"];\n getIndexProps(): T[\"element\"];\n getIndexItemProps(item: ResolvedIndexBarItem): T[\"button\"];\n getIndicatorProps(): T[\"element\"];\n getListProps(): T[\"element\"];\n getGroupProps(group: ResolvedIndexBarGroup): T[\"element\"];\n getAnchorProps(group: ResolvedIndexBarGroup): T[\"element\"];\n getGroupContentProps(group: ResolvedIndexBarGroup): T[\"element\"];\n getStatusProps(): T[\"element\"];\n}\ninterface KeyLike { key: string; defaultPrevented: boolean; preventDefault(): void; target?: unknown }\n\nexport function connectIndexBar<T extends PropTypes>(service: QwIndexBarService, normalize: NormalizeProps<T>): QwIndexBarApi<T> {\n const state = live(service), id = ids(service.scope), keys = enabledKeys(state);\n const activeRaw = service.context.get(\"active\"), active = state.groups.some((group) => group.key === activeRaw) ? activeRaw : state.groups[0]?.key ?? null;\n const indicator = service.context.get(\"indicator\"), focusRaw = service.context.get(\"focusKey\");\n const roving = focusRaw && keys.includes(focusRaw) ? focusRaw : active && keys.includes(active) ? active : keys[0] ?? null;\n const part = (name: string) => ({ \"data-scope\": \"index-bar\", \"data-part\": name });\n const scrollTo = (key: string) => service.send({ type: \"JUMP\", key });\n const titleOf = (key: string | null) => state.items.find((item) => item.key === key)?.title ?? \"\";\n return {\n groups: state.groups, items: state.items, active, indicator, statusText: indicator ? titleOf(indicator) : \"\", scrollTo,\n getRootProps: () => normalize.element({ ...part(\"root\"), id: id.root, \"data-sticky\": state.sticky ? \"true\" : undefined, style: { \"--qw-index-bar-sticky-offset\": `${state.stickyOffset}px` } }),\n getIndexProps: () => normalize.element({ ...part(\"index\"), id: id.index, role: \"toolbar\", \"aria-orientation\": \"vertical\", \"aria-label\": state.indexLabel,\n \"data-dragging\": indicator ? \"true\" : undefined,\n onKeyDown(event: KeyLike) {\n if (event.defaultPrevented || !roving) return;\n // The focused button is the DOM truth; fall back to the roving key.\n const focused = (event.target as { getAttribute?(name: string): string | null } | undefined)?.getAttribute?.(\"data-key\");\n const at = keys.indexOf(focused && keys.includes(focused) ? focused : roving);\n const next = event.key === \"ArrowDown\" ? keys[Math.min(keys.length - 1, at + 1)] : event.key === \"ArrowUp\" ? keys[Math.max(0, at - 1)]\n : event.key === \"Home\" ? keys[0] : event.key === \"End\" ? keys[keys.length - 1] : undefined;\n if (next === undefined) return;\n event.preventDefault(); service.send({ type: \"FOCUS.MOVE\", key: next, focus: true });\n } }),\n getIndexItemProps: (item) => normalize.button({ ...part(\"index-item\"), id: id.item(item.key), type: \"button\", \"data-key\": item.key, disabled: item.disabled || undefined,\n tabIndex: item.key === roving ? 0 : -1, \"aria-label\": state.jumpLabel.replace(/\\{title\\}/g, item.title), \"aria-current\": item.key === active ? \"true\" : undefined,\n \"data-active\": item.key === active ? \"true\" : undefined,\n onFocus() { if (focusRaw !== item.key) service.send({ type: \"FOCUS.MOVE\", key: item.key }); },\n onClick(event: { defaultPrevented: boolean }) { if (!event.defaultPrevented) scrollTo(item.key); } }),\n getIndicatorProps: () => normalize.element({ ...part(\"indicator\"), \"aria-hidden\": true, hidden: !indicator || undefined }),\n getListProps: () => normalize.element({ ...part(\"list\") }),\n getGroupProps: (group) => normalize.element({ ...part(\"group\"), id: id.group(group.index), role: \"group\", \"aria-labelledby\": id.anchor(group.index), \"data-key\": group.key,\n \"data-active\": group.key === active ? \"true\" : undefined }),\n getAnchorProps: (group) => normalize.element({ ...part(\"anchor\"), id: id.anchor(group.index), \"data-key\": group.key, \"data-active\": group.key === active ? \"true\" : undefined }),\n getGroupContentProps: (group) => normalize.element({ ...part(\"group-content\"), \"data-key\": group.key }),\n getStatusProps: () => normalize.element({ ...part(\"status\"), id: id.status, role: \"status\", \"aria-live\": \"polite\", style: visuallyHiddenStyle }),\n };\n}\n"],"mappings":";;;;AAKA,MAAa,kBAAkB;CAAC;CAAQ;CAAS;CAAc;CAAa;CAAQ;CAAS;CAAU;CAAiB;AAAQ;AA8BhI,MAAM,QAAQ,OAAgB,aAA6B,OAAO,UAAU,YAAY,MAAM,KAAK,IAAI,QAAQ;AAE/G,SAAgB,qBAAqB,QAAyB,CAAC,GAA0B;CACvF,MAAM,SAAkC,CAAC,GAAG,uBAAO,IAAI,IAAY;CACnE,KAAK,MAAM,SAAS,MAAM,QAAQ,MAAM,MAAM,IAAI,MAAM,SAAS,CAAC,GAAG;EACnE,IAAI,CAAC,SAAS,OAAO,MAAM,QAAQ,YAAY,CAAC,MAAM,IAAI,KAAK,KAAK,KAAK,IAAI,MAAM,GAAG,GAAG;EACzF,KAAK,IAAI,MAAM,GAAG;EAAG,OAAO,KAAK;GAAE,KAAK,MAAM;GAAK,OAAO,KAAK,MAAM,OAAO,MAAM,GAAG;GAAG,SAAS,OAAO,MAAM,YAAY,WAAW,MAAM,UAAU;GAAI,OAAO,OAAO;EAAO,CAAC;CACjL;CACA,MAAM,OAAO,MAAM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AC9C,UAAU;IAAE,IAAI,aAAa,KAAK,KAAK,QAAQ,KAAK;KAAE,MAAM;KAAc,KAAK,KAAK;IAAI,CAAC;GAAG;GAC5F,QAAQ,OAAsC;IAAE,IAAI,CAAC,MAAM,kBAAkB,SAAS,KAAK,GAAG;GAAG;EAAE,CAAC;EACtG,yBAAyB,UAAU,QAAQ;GAAE,GAAG,KAAK,WAAW;GAAG,eAAe;GAAM,QAAQ,CAAC,aAAa,KAAA;EAAU,CAAC;EACzH,oBAAoB,UAAU,QAAQ,EAAE,GAAG,KAAK,MAAM,EAAE,CAAC;EACzD,gBAAgB,UAAU,UAAU,QAAQ;GAAE,GAAG,KAAK,OAAO;GAAG,IAAI,GAAG,MAAM,MAAM,KAAK;GAAG,MAAM;GAAS,mBAAmB,GAAG,OAAO,MAAM,KAAK;GAAG,YAAY,MAAM;GACrK,eAAe,MAAM,QAAQ,SAAS,SAAS,KAAA;EAAU,CAAC;EAC5D,iBAAiB,UAAU,UAAU,QAAQ;GAAE,GAAG,KAAK,QAAQ;GAAG,IAAI,GAAG,OAAO,MAAM,KAAK;GAAG,YAAY,MAAM;GAAK,eAAe,MAAM,QAAQ,SAAS,SAAS,KAAA;EAAU,CAAC;EAC/K,uBAAuB,UAAU,UAAU,QAAQ;GAAE,GAAG,KAAK,eAAe;GAAG,YAAY,MAAM;EAAI,CAAC;EACtG,sBAAsB,UAAU,QAAQ;GAAE,GAAG,KAAK,QAAQ;GAAG,IAAI,GAAG;GAAQ,MAAM;GAAU,aAAa;GAAU,OAAO;EAAoB,CAAC;CACjJ;AACF"}
package/dist/index.d.ts CHANGED
@@ -1,13 +1,18 @@
1
1
  export { dialogMachine, connect, createDialogProps, } from "./dialog/index.js";
2
+ export { checkboxGroupMachine, createCheckboxGroupProps, connect as checkboxGroupConnect } from "./checkbox-group/index.js";
3
+ export type { QwCheckboxGroupProps, QwCheckboxGroupSchema, QwCheckboxGroupMachine, QwCheckboxGroupService, QwCheckboxGroupApi, QwCheckboxGroupItemProps, QwSelectionItem } from "./checkbox-group/index.js";
4
+ export { radioGroupMachine, createRadioGroupProps, connect as radioGroupConnect } from "./radio-group/index.js";
5
+ export type { QwRadioGroupProps, QwRadioGroupSchema, QwRadioGroupMachine, QwRadioGroupService, QwRadioGroupApi, QwRadioGroupItemProps } from "./radio-group/index.js";
2
6
  export type { QwDialogProps, QwDialogApi } from "./dialog/index.js";
7
+ export { syncModalRegistration, hasOtherModal, disposeModalSession } from "./modal-registry.js";
3
8
  export { DEFAULT_OVERLAY_PANEL_HEADER_HEIGHT, OVERLAY_PANEL_PARTS, resolveOverlayPanelHeight, } from "./overlay-panel/index.js";
4
9
  export type { OverlayPanelHeight, OverlayPanelPart, QwOverlayPanelProps, } from "./overlay-panel/index.js";
5
10
  export { tabsMachine, createTabsProps } from "./tabs/index.js";
6
11
  export type { QwTabsProps, QwTabsApi } from "./tabs/index.js";
7
12
  export { TOAST_POSITIONS, TOAST_ICON_TYPES, TOAST_PARTS, DEFAULT_TOAST_DURATION, DEFAULT_TOAST_POSITION, isToastIconType, resolveToastDuration, } from "./toast/index.js";
8
- export type { QwToastOptions, QwToast, QwToastPosition, QwToastIconType, QwToastPart, } from "./toast/index.js";
13
+ export type { QwToastOptions, QwToast, ToastOwnedHandle, QwToastPosition, QwToastIconType, QwToastPart, } from "./toast/index.js";
9
14
  export { BUTTON_ICON_POSITIONS, BUTTON_PARTS, BUTTON_SHAPES, BUTTON_SIZES, BUTTON_TONES, BUTTON_VARIANTS, getButtonRootProps, resolveButtonState, } from "./button/index.js";
10
- export type { ButtonContentPresence, ButtonIconPosition, ButtonPart, ButtonRootProps, ButtonShape, ResolvedButtonState, ButtonVariant, ButtonTone, ButtonSize, QwButtonProps, } from "./button/index.js";
15
+ export type { ButtonContentPresence, ButtonControlAria, ButtonControlRootProps, ButtonIconPosition, ButtonPart, ButtonRootProps, ButtonShape, ResolvedButtonState, ButtonVariant, ButtonTone, ButtonSize, QwButtonProps, } from "./button/index.js";
11
16
  export { LOADING_SIZES } from "./loading/index.js";
12
17
  export type { LoadingSize, QwLoadingProps } from "./loading/index.js";
13
18
  export { SKELETON_VARIANTS, SKELETON_ANIMATIONS, SKELETON_RADII, SKELETON_PARTS, } from "./skeleton/index.js";
@@ -18,23 +23,111 @@ export { EMPTY_PARTS } from "./empty/index.js";
18
23
  export type { EmptyPart } from "./empty/index.js";
19
24
  export { createTopBarProps, TOPBAR_VARIANTS, } from "./top-bar/index.js";
20
25
  export type { TopBarVariant, TopBarItem, QwTopBarProps, ResolvedTopBarProps, } from "./top-bar/index.js";
21
- export { ICON_FALLBACK_NAME, ICON_PARTS, resolveIconName } from "./icon/index.js";
22
- export type { IconName, IconNameInput, IconPart } from "./icon/index.js";
26
+ export { ICON_FALLBACK_NAME, ICON_PARTS, resolveIconName, resolveIconState, getIconRootProps, getIconVector } from "./icon/index.js";
27
+ export type { IconName, IconNameInput, IconPart, IconConfig, IconState, IconVectorNode } from "./icon/index.js";
23
28
  export { AVATAR_BADGE_TYPES, AVATAR_LOAD_STATUS, AVATAR_PARTS, AVATAR_SHAPES, AVATAR_SIZES, BADGE_COUNT_MAX, extractInitials, getAvatarBadgeProps, getAvatarFallbackProps, getAvatarImageElementProps, getAvatarImageProps, getAvatarRootProps, resolveAvatarState, } from "./avatar/index.js";
29
+ export { createImageRequestFrames, getImageRequestStatus, avatarLoadMachine, connectAvatarLoad, createAvatarResourceBinding } from "./avatar/index.js";
30
+ export { getAvatarContentPresence, getAvatarImageDescriptor, getAvatarRootStyle, getAvatarBadgeContent } from "./avatar/index.js";
31
+ export type { AvatarRootOptions } from "./avatar/index.js";
32
+ export type { ImageRequestFrame, ImageRequestDescriptor, ImageResourceSnapshot, ImageRequestResult, ImageResourceBinding, ImageRequestFrames, QwAvatarLoadProps, QwAvatarLoadSchema, QwAvatarLoadService, QwAvatarLoadMachine, QwAvatarLoadApi } from "./avatar/index.js";
24
33
  export type { AvatarBadgeProps, AvatarContentPresence, AvatarFallbackProps, AvatarImageElementProps, AvatarImageProps, AvatarLoadStatus, AvatarPart, AvatarRootProps, AvatarShape, AvatarSize, BadgeConfig, BadgeType, FallbackMode, QwAvatarProps, ResolvedAvatarState, } from "./avatar/index.js";
25
- export { machine as textAreaMachine, connect as textAreaConnect, createTextAreaProps } from "./textarea/index.js";
26
- export type { QwTextAreaProps, TextAreaApi } from "./textarea/index.js";
27
- export { TAG_PARTS, TAG_SIZES, TAG_VARIANTS } from "./tag/index.js";
28
- export type { TagPart, TagSize, TagVariant, QwTagProps } from "./tag/index.js";
29
- export { createInputProps } from "./input/index.js";
30
- export type { QwInputProps, InputApi, InputMode, InputReadOnlyOverflow } from "./input/index.js";
34
+ export { machine as textAreaMachine, connect as textAreaConnect, createTextAreaProps, clampUtf16, computeTextAreaHeight } from "./textarea/index.js";
35
+ export type { QwTextAreaProps, TextAreaApi, TextAreaSchema, TextAreaBoxSizing, TextAreaClipboardFailure, TextAreaClipboardReadError, TextAreaControlSnapshot, TextAreaEditEvent, TextAreaHeightInput, TextAreaPasteDetail, TextAreaPlatformClient, TextAreaPlatformSink, TextAreaResetNotice, TextAreaSizeSnapshot } from "./textarea/index.js";
36
+ export { TAG_PARTS, TAG_SIZES, TAG_VARIANTS, tagMachine, createTagProps, connectTag } from "./tag/index.js";
37
+ export type { TagPart, TagSize, TagVariant, QwTagProps, TagSchema, TagApi } from "./tag/index.js";
38
+ export { createInputProps, INPUT_TYPES } from "./input/index.js";
39
+ export type { QwInputProps, InputApi, InputMode, InputReadOnlyOverflow, InputType, InputInputMode } from "./input/index.js";
31
40
  export { SWITCH_PARTS, getSwitchRootProps, getSwitchThumbProps, resolveSwitchState } from "./switch/index.js";
32
41
  export type { SwitchPart, QwSwitchProps, ResolvedSwitchState, SwitchRootProps, SwitchThumbProps } from "./switch/index.js";
33
42
  export { STEPPER_SIZES, STEPPER_PARTS, clampStepperValue, getStepperRootProps, getStepperDecrementProps, getStepperDecrementValue, getStepperIncrementProps, getStepperIncrementValue, getStepperValueProps, resolveStepperState, } from "./stepper/index.js";
34
43
  export type { StepperPart, StepperSize, QwStepperProps, ResolvedStepperState, StepperRootProps, StepperDecrementProps, StepperIncrementProps, StepperValueProps, } from "./stepper/index.js";
35
- export { BADGE_KINDS, BADGE_PARTS, BADGE_VARIANTS, DEFAULT_BADGE_MAX_COUNT, getBadgeRootProps, resolveBadgeState, } from "./badge/index.js";
36
- export type { BadgeAriaTexts, BadgeKind, BadgePart, BadgeRootProps, BadgeVariant, QwBadgeProps, ResolvedBadgeState, } from "./badge/index.js";
37
- export { TABBAR_ITEM_TONES, TABBAR_ITEM_VARIANTS, TABBAR_PARTS, getTabBarItemButtonProps, getTabBarRootProps, resolveTabBarState, } from "./tabbar/index.js";
38
- export type { QwTabBarItemProps, QwTabBarProps, ResolvedTabBarItemState, ResolvedTabBarState, TabBarItemButtonProps, TabBarItemTone, TabBarItemVariant, TabBarPart, TabBarRootProps, } from "./tabbar/index.js";
44
+ export { BADGE_KINDS, BADGE_PARTS, BADGE_VARIANTS, DEFAULT_BADGE_MAX_COUNT, getBadgeRootProps, getBadgeRetainedRootProps, resolveBadgeState, } from "./badge/index.js";
45
+ export type { BadgeAriaTexts, BadgeKind, BadgePart, BadgeRootProps, BadgeRetainedRootProps, BadgeVariant, QwBadgeProps, ResolvedBadgeState, } from "./badge/index.js";
46
+ export { TABBAR_ITEM_TONES, TABBAR_ITEM_VARIANTS, TABBAR_PARTS, getTabBarItemButtonProps, getTabBarNavigationItemTag, getTabBarNavigationItemProps, getTabBarNavigationRootProps, getTabBarRootProps, resolveTabBarState, resolveTabBarNavigation, } from "./tabbar/index.js";
47
+ export type { QwTabBarItemProps, TabBarNavigationItem, TabBarValueChangeDetails, TabBarNavigationItemProps, QwTabBarProps, ResolvedTabBarItemState, ResolvedTabBarState, TabBarItemButtonProps, TabBarItemTone, TabBarItemVariant, TabBarPart, TabBarRootProps, } from "./tabbar/index.js";
39
48
  export { SIDENAV_PARTS, getSideNavGroupLabelProps, getSideNavItemProps, getSideNavRootProps, resolveSideNavState, } from "./side-nav/index.js";
40
49
  export type { QwSideNavGroupProps, QwSideNavItemProps, QwSideNavProps, ResolvedSideNavGroupState, ResolvedSideNavItemState, ResolvedSideNavState, SideNavGroupLabelProps, SideNavItemAdjacent, SideNavItemProps, SideNavPart, SideNavRootProps, } from "./side-nav/index.js";
50
+ export * from "./cell/index.js";
51
+ export * from "./list/index.js";
52
+ export * from "./card/index.js";
53
+ export * from "./progress/index.js";
54
+ export * from "./steps/index.js";
55
+ export { checkboxMachine, createCheckboxProps, connect as checkboxConnect } from "./checkbox/index.js";
56
+ export type { CheckboxCheckedState, QwCheckboxProps, QwCheckboxSchema, QwCheckboxMachine, QwCheckboxService, QwCheckboxApi } from "./checkbox/index.js";
57
+ export { resolveDividerState, getDividerRootProps } from "./divider/index.js";
58
+ export type { ResolvedDividerState, DividerRootProps } from "./divider/index.js";
59
+ export { resolveSkeletonState, getSkeletonRootProps, getSkeletonStyle, getSkeletonLineProps } from "./skeleton/index.js";
60
+ export type { ResolvedSkeletonState, SkeletonLine, SkeletonRootProps, SkeletonLineProps } from "./skeleton/index.js";
61
+ export { LOADING_PARTS, resolveLoadingState, getLoadingRootProps, getLoadingPartProps } from "./loading/index.js";
62
+ export type { LoadingPart, LoadingRenderOptions, ResolvedLoadingState, LoadingRootProps, LoadingPartProps } from "./loading/index.js";
63
+ export * from "./space/index.js";
64
+ export * from "./grid/index.js";
65
+ export * from "./safe-area/index.js";
66
+ export * from "./typography/index.js";
67
+ export { PAGINATION_MODES, PAGINATION_PARTS, resolvePaginationState, getPaginationItems, createPaginationProps, paginationMachine, connect as connectPagination } from "./pagination/index.js";
68
+ export type { PaginationMode, PaginationPageChangeDetails, QwPaginationProps, ResolvedPaginationState, PaginationItem, QwPaginationSchema, QwPaginationMachine, QwPaginationService, QwPaginationApi } from "./pagination/index.js";
69
+ export { resolveTagState, getTagRootProps, getTagStyle } from "./tag/index.js";
70
+ export type { TagState } from "./tag/index.js";
71
+ export { resolveEmptyState, getEmptyRootProps, getEmptyPartProps, getEmptyIllustration } from "./empty/index.js";
72
+ export type { QwEmptyProps, EmptyContentPresence, EmptyState, EmptyVectorNode } from "./empty/index.js";
73
+ export { SEGMENTED_MODES, SEGMENTED_SIZES, SEGMENTED_PARTS, normalizeSegmentedItems, normalizeSegmentedValue, createSegmentedProps, segmentedMachine, connect as connectSegmented } from "./segmented/index.js";
74
+ export type { SegmentedSelectionMode, SegmentedSize, SegmentedValueChangeDetails, QwSegmentedItem, QwSegmentedProps, QwSegmentedSchema, QwSegmentedMachine, QwSegmentedService, QwSegmentedItemProps, QwSegmentedItemState, QwSegmentedApi } from "./segmented/index.js";
75
+ export * from "./image/index.js";
76
+ export * from "./result/index.js";
77
+ export { SWITCH_TYPES, createSwitchProps, switchMachine, connectSwitch } from "./switch/index.js";
78
+ export type { SwitchButtonType, QwSwitchSchema, QwSwitchMachine, QwSwitchService, QwSwitchApi, SwitchActivationEvent, SwitchClickHandler, SwitchConnectOptions, SwitchRootOptions } from "./switch/index.js";
79
+ export type { SwitchStateSnapshot } from "./switch/index.js";
80
+ export type { QwInputControlProps } from "./input/index.js";
81
+ export * from "./form/index.js";
82
+ export * from "./field/index.js";
83
+ export { RATE_SIZES, RATE_PARTS, normalizeRateCount, normalizeRateValue, getRatePointValue, rateTouchCoverageForGlyphFill, createRateProps, rateMachine, connect as connectRate } from "./rate/index.js";
84
+ export type { RateSize, RatePart, RateValueChangeDetails, RatePreviewChangeDetails, RateItem, RateItemRect, QwRateProps, QwRateSchema, QwRateMachine, QwRateService, QwRateApi } from "./rate/index.js";
85
+ export { createModalRenderScope, createModalTicketCursor, wantsModalOpen } from "./modal-render-scope.js";
86
+ export type { ModalRenderInputs, ModalRenderKind, ModalRenderOwner, ModalRenderPhase, ModalRenderTicket, ModalRenderScopeOptions, ModalRenderScope, ModalRenderLease, ModalTicketCursor } from "./modal-render-scope.js";
87
+ export { MODAL_STACK_ATTRIBUTE, MODAL_TICKET_ATTRIBUTE, adoptModalHydration, adoptModalHydrationMarkers, scanModalHydrationMarkers } from "./modal-render-hydration.js";
88
+ export type { ModalHydrationMarker, ModalRenderStack } from "./modal-render-hydration.js";
89
+ export { syncModalRender, disposeModalRender, updateModalRenderIdentity } from "./modal-render-runtime.js";
90
+ export type { ModalRenderRuntime } from "./modal-render-runtime.js";
91
+ export * from "./ellipsis/index.js";
92
+ export * from "./footer/index.js";
93
+ export * from "./descriptions/index.js";
94
+ export * from "./timeline/index.js";
95
+ export * from "./price/index.js";
96
+ export * from "./statistic/index.js";
97
+ export * from "./countdown/index.js";
98
+ export * from "./circle/index.js";
99
+ export * from "./selector/index.js";
100
+ export * from "./check-list/index.js";
101
+ export * from "./collapse/index.js";
102
+ export * from "./notice-bar/index.js";
103
+ export * from "./page-indicator/index.js";
104
+ export * from "./sticky/index.js";
105
+ export * from "./back-top/index.js";
106
+ export * from "./infinite-scroll/index.js";
107
+ export * from "./swipe-action/index.js";
108
+ export * from "./swiper/index.js";
109
+ export * from "./slider/index.js";
110
+ export * from "./watermark/index.js";
111
+ export * from "./pull-refresh/index.js";
112
+ export * from "./nav-bar/index.js";
113
+ export * from "./index-bar/index.js";
114
+ export * from "./notify/index.js";
115
+ export * from "./upload/index.js";
116
+ export * from "./floating-bubble/index.js";
117
+ export * from "./calendar/index.js";
118
+ export * from "./cascader/index.js";
119
+ export * from "./date-picker/index.js";
120
+ export * from "./picker/index.js";
121
+ export * from "./dropdown/index.js";
122
+ export * from "./popover/index.js";
123
+ export * from "./tree-select/index.js";
124
+ export * from "./reorder/index.js";
125
+ export * from "./password-input/index.js";
126
+ export * from "./virtual-list/index.js";
127
+ export * from "./number-keyboard/index.js";
128
+ export * from "./action-sheet/index.js";
129
+ export * from "./time-picker/index.js";
130
+ export * from "./area-picker/index.js";
131
+ export * from "./share-sheet/index.js";
132
+ export * from "./image-preview/index.js";
133
+ export * from "./floating-panel/index.js";