@vizejs/ui 0.387.0 → 0.389.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 (411) hide show
  1. package/dist/alert-BX93FNvj.d.mts +92 -0
  2. package/dist/alert-DvhiFK_R.mjs +92 -0
  3. package/dist/alert-dialog-D9tqXQ_Q.mjs +176 -0
  4. package/dist/alert-dialog.d.mts +2 -0
  5. package/dist/alert-dialog.mjs +3 -0
  6. package/dist/alert.d.mts +2 -0
  7. package/dist/alert.mjs +2 -0
  8. package/dist/announcer-CW079p2E.mjs +258 -0
  9. package/dist/announcer-CuBryPW9.d.mts +6829 -0
  10. package/dist/announcer.d.mts +2 -0
  11. package/dist/announcer.mjs +2 -0
  12. package/dist/aspect-ratio-DDqVT6Hg.d.mts +62 -0
  13. package/dist/aspect-ratio-_HLW6_5i.mjs +63 -0
  14. package/dist/aspect-ratio.d.mts +2 -0
  15. package/dist/aspect-ratio.mjs +2 -0
  16. package/dist/avatar-6fQfQ-1x.mjs +195 -0
  17. package/dist/avatar.d.mts +2 -0
  18. package/dist/avatar.mjs +2 -0
  19. package/dist/badge-BTOyu4i6.mjs +53 -0
  20. package/dist/badge.d.mts +2 -0
  21. package/dist/badge.mjs +2 -0
  22. package/dist/banner-CYiSiZJW.mjs +288 -0
  23. package/dist/banner.d.mts +2 -0
  24. package/dist/banner.mjs +2 -0
  25. package/dist/block-ui-Bd2m1m3K.mjs +111 -0
  26. package/dist/block-ui.d.mts +2 -0
  27. package/dist/block-ui.mjs +2 -0
  28. package/dist/blockquote-eTqp3b_r.mjs +65 -0
  29. package/dist/blockquote.d.mts +2 -0
  30. package/dist/blockquote.mjs +2 -0
  31. package/dist/breadcrumb-BvuPBfkj.mjs +212 -0
  32. package/dist/breadcrumb-Cdyh20z-.d.mts +202 -0
  33. package/dist/breadcrumb.d.mts +2 -0
  34. package/dist/breadcrumb.mjs +2 -0
  35. package/dist/{button-DYg1mIIq.d.mts → button-Dye0M41O.d.mts} +3 -3
  36. package/dist/{button-DT8AKlds.mjs → button-VVxUavbS.mjs} +6 -6
  37. package/dist/button-group-C_mR0Jfw.d.mts +137 -0
  38. package/dist/button-group-DyQbTCnY.mjs +418 -0
  39. package/dist/button-group.d.mts +2 -0
  40. package/dist/button-group.mjs +2 -0
  41. package/dist/button.d.mts +1 -1
  42. package/dist/button.mjs +2 -2
  43. package/dist/callout-DAu-98Ti.mjs +277 -0
  44. package/dist/callout.d.mts +2 -0
  45. package/dist/callout.mjs +2 -0
  46. package/dist/card-D94n04s5.mjs +66 -0
  47. package/dist/card.d.mts +2 -0
  48. package/dist/card.mjs +2 -0
  49. package/dist/catalog.d.mts +2112 -302
  50. package/dist/catalog.mjs +3831 -433
  51. package/dist/{checkbox-BgIvwjyC.mjs → checkbox-bM5y7vH8.mjs} +8 -8
  52. package/dist/checkbox.d.mts +1 -1
  53. package/dist/checkbox.mjs +2 -2
  54. package/dist/cluster-BWF028Xt.d.mts +133 -0
  55. package/dist/cluster-BydJTp9X.mjs +149 -0
  56. package/dist/cluster.d.mts +2 -0
  57. package/dist/cluster.mjs +2 -0
  58. package/dist/code-D93YXaeJ.mjs +66 -0
  59. package/dist/code.d.mts +2 -0
  60. package/dist/code.mjs +2 -0
  61. package/dist/collapsible-Cra5y_if.mjs +269 -0
  62. package/dist/collapsible.d.mts +2 -0
  63. package/dist/collapsible.mjs +2 -0
  64. package/dist/{collection-B_dFZOHO.d.mts → collection-BaPf8lgw.d.mts} +3 -3
  65. package/dist/{collection-eHN150dT.mjs → collection-Cncgrq4U.mjs} +5 -5
  66. package/dist/collection.d.mts +1 -1
  67. package/dist/collection.mjs +1 -1
  68. package/dist/command-CAH0yrMT.d.mts +105 -0
  69. package/dist/command.d.mts +2 -0
  70. package/dist/command.mjs +123 -0
  71. package/dist/{composite-navigation-Skx3LZsv.mjs → composite-navigation-D6WKS_BY.mjs} +4 -4
  72. package/dist/{composite-navigation-QINW9GLy.d.mts → composite-navigation-i7ocwmio.d.mts} +4 -4
  73. package/dist/composite-navigation.d.mts +1 -1
  74. package/dist/composite-navigation.mjs +1 -1
  75. package/dist/container-5lSCSbeX.mjs +113 -0
  76. package/dist/container-CYSiwCA-.d.mts +99 -0
  77. package/dist/container.d.mts +2 -0
  78. package/dist/container.mjs +2 -0
  79. package/dist/context-7SpwFHtK.d.mts +25 -0
  80. package/dist/context.d.mts +1 -24
  81. package/dist/context.mjs +1 -1
  82. package/dist/{controllable-state-BtoxKahh.d.mts → controllable-state-CZZF9Pw5.d.mts} +1 -1
  83. package/dist/controllable-state.d.mts +1 -1
  84. package/dist/controllable-state.mjs +1 -1
  85. package/dist/copy-button-BH2em7nG.mjs +212 -0
  86. package/dist/copy-button.d.mts +2 -0
  87. package/dist/copy-button.mjs +2 -0
  88. package/dist/{id-BV9AJ3cm.d.mts → deterministic-id-DYQJ7KzM.d.mts} +2 -35
  89. package/dist/{id-mziSyAse.mjs → deterministic-id-yMq4HfmS.mjs} +3 -46
  90. package/dist/dialog-trigger-ppGKikEP.mjs +717 -0
  91. package/dist/dialog.d.mts +2 -0
  92. package/dist/dialog.mjs +2 -0
  93. package/dist/{dismissable-layer-4icKahVs.d.mts → dismissable-layer-CTWSFZwj.d.mts} +2 -2
  94. package/dist/{dismissable-layer-CwG1gtdz.mjs → dismissable-layer-CpS07KUV.mjs} +3 -3
  95. package/dist/dismissable-layer.d.mts +1 -1
  96. package/dist/dismissable-layer.mjs +1 -1
  97. package/dist/drag-and-drop-BjYgWGcG.mjs +918 -0
  98. package/dist/drag-and-drop-CagE25Kt.d.mts +47 -0
  99. package/dist/drag-and-drop-controller-types-DoTSR_aM.d.mts +304 -0
  100. package/dist/drag-and-drop.d.mts +3 -0
  101. package/dist/drag-and-drop.mjs +2 -0
  102. package/dist/empty-state-DtyOxCA4.mjs +73 -0
  103. package/dist/empty-state.d.mts +2 -0
  104. package/dist/empty-state.mjs +2 -0
  105. package/dist/error-summary-6Xis_769.d.mts +65 -0
  106. package/dist/error-summary-DMe4IlM9.mjs +209 -0
  107. package/dist/error-summary-types-5ePaC9O3.d.mts +74 -0
  108. package/dist/error-summary.d.mts +3 -0
  109. package/dist/error-summary.mjs +2 -0
  110. package/dist/field-CBs2-Z9B.mjs +254 -0
  111. package/dist/field-WWPaJT1x.d.mts +235 -0
  112. package/dist/field-wiring-9Fy-G1rf.d.mts +14 -0
  113. package/dist/field-wiring-runtime-fQ3GoLuG.mjs +64 -0
  114. package/dist/field-wiring-types-Bfyis5hO.d.mts +73 -0
  115. package/dist/field-wiring.d.mts +3 -0
  116. package/dist/field-wiring.mjs +2 -0
  117. package/dist/field.d.mts +2 -0
  118. package/dist/field.mjs +2 -0
  119. package/dist/{focus-CAWi_I-0.mjs → focus-XxVWOwbs.mjs} +3 -3
  120. package/dist/{focus-K6dOifoZ.d.mts → focus-eObxGOtP.d.mts} +2 -2
  121. package/dist/{focus-guards-Bt0C-0qS.d.mts → focus-guards-BZa7vm6O.d.mts} +2 -2
  122. package/dist/{focus-guards-DhMPQAT8.mjs → focus-guards-DSxiemx7.mjs} +4 -4
  123. package/dist/focus-guards.d.mts +1 -1
  124. package/dist/focus-guards.mjs +1 -1
  125. package/dist/{focus-scope-CavhKWx0.d.mts → focus-scope-CsnioDR4.d.mts} +3 -3
  126. package/dist/{focus-scope-dom-DBwNEWxG.mjs → focus-scope-dom-L_EC5GsX.mjs} +2 -2
  127. package/dist/{focus-scope-D9U1aj67.mjs → focus-scope-mEg8UoeE.mjs} +5 -5
  128. package/dist/focus-scope.d.mts +1 -1
  129. package/dist/focus-scope.mjs +1 -1
  130. package/dist/focus.d.mts +1 -1
  131. package/dist/focus.mjs +1 -1
  132. package/dist/form-1V2V30Sv.d.mts +20 -0
  133. package/dist/form-runtime-CcMDY0Iq.mjs +166 -0
  134. package/dist/form-types-DXwZRLcs.d.mts +183 -0
  135. package/dist/form.d.mts +3 -0
  136. package/dist/form.mjs +2 -0
  137. package/dist/fullscreen-button-NTbC4R0W.mjs +276 -0
  138. package/dist/fullscreen-button.d.mts +2 -0
  139. package/dist/fullscreen-button.mjs +2 -0
  140. package/dist/grid-BSM9h2dL.d.mts +154 -0
  141. package/dist/grid-DeC4Wn7Y.mjs +157 -0
  142. package/dist/grid.d.mts +2 -0
  143. package/dist/grid.mjs +2 -0
  144. package/dist/heading-DToVOKV3.mjs +86 -0
  145. package/dist/heading.d.mts +2 -0
  146. package/dist/heading.mjs +2 -0
  147. package/dist/history-BDgNOjcV.mjs +304 -0
  148. package/dist/history-BkcOSOWb.d.mts +157 -0
  149. package/dist/history.d.mts +2 -0
  150. package/dist/history.mjs +2 -0
  151. package/dist/{hover-BXwwbSaO.d.mts → hover-ZiPRiZkb.d.mts} +2 -2
  152. package/dist/hover.d.mts +1 -1
  153. package/dist/hover.mjs +1 -1
  154. package/dist/icon-DhTTndMu.mjs +233 -0
  155. package/dist/icon-button-BuXquME1.mjs +188 -0
  156. package/dist/icon-button.d.mts +2 -0
  157. package/dist/icon-button.mjs +2 -0
  158. package/dist/icon.d.mts +2 -0
  159. package/dist/icon.mjs +2 -0
  160. package/dist/id-BYG8aXPF.mjs +47 -0
  161. package/dist/id-Ba8FHjAo.d.mts +34 -0
  162. package/dist/id.d.mts +2 -1
  163. package/dist/id.mjs +3 -2
  164. package/dist/index.d.mts +74 -24
  165. package/dist/index.mjs +113 -21
  166. package/dist/{inert-outside-tuHRmaqJ.d.mts → inert-outside-B6KdwAHY.d.mts} +2 -2
  167. package/dist/{inert-outside-CyqtoKQ4.mjs → inert-outside-DOufBTyy.mjs} +4 -4
  168. package/dist/inert-outside.d.mts +1 -1
  169. package/dist/inert-outside.mjs +1 -1
  170. package/dist/input-Blyx59CR.mjs +256 -0
  171. package/dist/input-C0fgeRnS.d.mts +159 -0
  172. package/dist/input.d.mts +2 -0
  173. package/dist/input.mjs +2 -0
  174. package/dist/{interaction-modality-DOZK0BpZ.mjs → interaction-modality-BHnjtU4S.mjs} +3 -3
  175. package/dist/{interaction-modality-jgHKjPFB.d.mts → interaction-modality-BTiZ7j98.d.mts} +2 -2
  176. package/dist/interaction-modality.d.mts +1 -1
  177. package/dist/interaction-modality.mjs +1 -1
  178. package/dist/kbd-sJdXIdIm.mjs +66 -0
  179. package/dist/kbd.d.mts +2 -0
  180. package/dist/kbd.mjs +2 -0
  181. package/dist/link-DDaCjrI5.mjs +154 -0
  182. package/dist/link-MbRDN6wJ.d.mts +94 -0
  183. package/dist/link.d.mts +2 -0
  184. package/dist/link.mjs +2 -0
  185. package/dist/list-DjyCLVfG.mjs +66 -0
  186. package/dist/list.d.mts +2 -0
  187. package/dist/list.mjs +2 -0
  188. package/dist/listbox-IaqaoiRn.mjs +549 -0
  189. package/dist/listbox.d.mts +2 -0
  190. package/dist/listbox.mjs +2 -0
  191. package/dist/live-region-DYSpwCTk.mjs +48 -0
  192. package/dist/live-region-G1iobPK5.d.mts +67 -0
  193. package/dist/live-region-runtime-DVUch8Lu.mjs +62 -0
  194. package/dist/live-region.d.mts +2 -0
  195. package/dist/live-region.mjs +3 -0
  196. package/dist/locale-DzWqhJZs.mjs +206 -0
  197. package/dist/locale.d.mts +2 -0
  198. package/dist/locale.mjs +2 -0
  199. package/dist/{long-press-cll6z2K9.d.mts → long-press-DyYxp191.d.mts} +3 -3
  200. package/dist/{long-press-Dsul69gk.mjs → long-press-yJk5zK0j.mjs} +4 -4
  201. package/dist/long-press.d.mts +1 -1
  202. package/dist/long-press.mjs +1 -1
  203. package/dist/measure-4I0YOAXD.d.mts +97 -0
  204. package/dist/measure-runtime-C4qYJp3_.mjs +170 -0
  205. package/dist/measure.d.mts +2 -0
  206. package/dist/measure.mjs +2 -0
  207. package/dist/media-pdf.d.mts +1 -1
  208. package/dist/media-pdf.mjs +1 -1
  209. package/dist/media-source.d.mts +1 -1
  210. package/dist/media-source.mjs +1 -1
  211. package/dist/media.d.mts +1 -1
  212. package/dist/media.mjs +1 -1
  213. package/dist/meter-B3m17_8g.d.mts +174 -0
  214. package/dist/meter-BwOXVWH8.mjs +243 -0
  215. package/dist/meter.d.mts +2 -0
  216. package/dist/meter.mjs +2 -0
  217. package/dist/motion-OdERKfZR.mjs +174 -0
  218. package/dist/motion-iUSBdWaI.d.mts +98 -0
  219. package/dist/motion.d.mts +2 -0
  220. package/dist/motion.mjs +2 -0
  221. package/dist/{move-BOmXDYbh.d.mts → move-BJGaV7Y9.d.mts} +2 -2
  222. package/dist/move-internal-BM_7g70h.mjs +172 -0
  223. package/dist/move.d.mts +1 -1
  224. package/dist/move.mjs +216 -1
  225. package/dist/native-select-H9qvaqQH.mjs +309 -0
  226. package/dist/native-select.d.mts +2 -0
  227. package/dist/native-select.mjs +2 -0
  228. package/dist/pagination-Bs4SBSE4.mjs +791 -0
  229. package/dist/pagination.d.mts +2 -0
  230. package/dist/pagination.mjs +2 -0
  231. package/dist/{pdf-source-zu1LkCeE.mjs → pdf-source-B5JSDKkQ.mjs} +1 -1
  232. package/dist/{pdf-source-BYFK2Pks.d.mts → pdf-source-adS6ZSmR.d.mts} +1 -1
  233. package/dist/pointer-grace-CAFcO4om.d.mts +57 -0
  234. package/dist/pointer-grace-DI0G3oRJ.mjs +162 -0
  235. package/dist/pointer-grace.d.mts +2 -0
  236. package/dist/pointer-grace.mjs +2 -0
  237. package/dist/popover-DeENBKXE.mjs +714 -0
  238. package/dist/popover.d.mts +2 -0
  239. package/dist/popover.mjs +2 -0
  240. package/dist/portal-DeHaLxGL.mjs +114 -0
  241. package/dist/portal-DhWXejr1.d.mts +71 -0
  242. package/dist/portal.d.mts +2 -0
  243. package/dist/portal.mjs +2 -0
  244. package/dist/positioner-BYJVA3Uy.d.mts +477 -0
  245. package/dist/positioner-BYmQk86M.mjs +38 -0
  246. package/dist/positioner-DaPo2YxM.mjs +708 -0
  247. package/dist/positioner.d.mts +2 -0
  248. package/dist/positioner.mjs +3 -0
  249. package/dist/presence-Bhv1qtvn.d.mts +57 -0
  250. package/dist/presence-CTG1EV3w.mjs +62 -0
  251. package/dist/presence-runtime-CYwCafSh.mjs +105 -0
  252. package/dist/presence-types-CRB4HbML.d.mts +45 -0
  253. package/dist/presence.d.mts +3 -0
  254. package/dist/presence.mjs +3 -0
  255. package/dist/{press-N_mE3Mgx.mjs → press-BjLm6bKg.mjs} +6 -6
  256. package/dist/press-R0_juZq2.d.mts +14 -0
  257. package/dist/{press-event-Cd2OPpmw.mjs → press-event-xlWYF9py.mjs} +1 -1
  258. package/dist/{press-types-CNqStzJf.d.mts → press-types-DfTNpqby.d.mts} +1 -1
  259. package/dist/press.d.mts +2 -13
  260. package/dist/press.mjs +1 -1
  261. package/dist/{primitive-C8jW7DLd.d.mts → primitive-BE2mdUcw.d.mts} +2 -2
  262. package/dist/{primitive-BX31dogp.mjs → primitive-beb2EEOc.mjs} +5 -5
  263. package/dist/primitive.d.mts +1 -1
  264. package/dist/primitive.mjs +2 -2
  265. package/dist/print-button-FqD5HqTV.mjs +206 -0
  266. package/dist/print-button.d.mts +2 -0
  267. package/dist/print-button.mjs +2 -0
  268. package/dist/progress--vbV2wTx.mjs +145 -0
  269. package/dist/progress-C4PlKwWq.d.mts +128 -0
  270. package/dist/progress-bar-BqS94auR.mjs +301 -0
  271. package/dist/progress-bar.d.mts +2 -0
  272. package/dist/progress-bar.mjs +2 -0
  273. package/dist/progress.d.mts +2 -0
  274. package/dist/progress.mjs +2 -0
  275. package/dist/radio-group-DbTmWcxl.mjs +317 -0
  276. package/dist/radio-group.d.mts +2 -0
  277. package/dist/radio-group.mjs +2 -0
  278. package/dist/rating-BjKLGPP6.mjs +569 -0
  279. package/dist/rating-souDdL9t.d.mts +273 -0
  280. package/dist/rating.d.mts +2 -0
  281. package/dist/rating.mjs +2 -0
  282. package/dist/scroll-area-BRSwoi9w.mjs +338 -0
  283. package/dist/scroll-area.d.mts +2 -0
  284. package/dist/scroll-area.mjs +2 -0
  285. package/dist/{scroll-lock-Ckbmm0-J.mjs → scroll-lock-BcmK0baN.mjs} +4 -4
  286. package/dist/{scroll-lock-BgVtX4wT.d.mts → scroll-lock-OfSQnfi0.d.mts} +2 -2
  287. package/dist/scroll-lock.d.mts +1 -1
  288. package/dist/scroll-lock.mjs +1 -1
  289. package/dist/search-field-70Kr2616.mjs +319 -0
  290. package/dist/search-field-Biw9vApG.d.mts +158 -0
  291. package/dist/search-field.d.mts +2 -0
  292. package/dist/search-field.mjs +2 -0
  293. package/dist/separator-CnNDqbdR.d.mts +59 -0
  294. package/dist/separator-DDj3tEAz.mjs +66 -0
  295. package/dist/separator.d.mts +2 -0
  296. package/dist/separator.mjs +2 -0
  297. package/dist/share-button-DfvUDFC-.mjs +243 -0
  298. package/dist/share-button.d.mts +2 -0
  299. package/dist/share-button.mjs +2 -0
  300. package/dist/shortcut-CvA_o0_F.mjs +631 -0
  301. package/dist/shortcut-DAZJ9LEd.d.mts +231 -0
  302. package/dist/shortcut.d.mts +2 -0
  303. package/dist/shortcut.mjs +2 -0
  304. package/dist/skeleton-BYXXcwTH.mjs +101 -0
  305. package/dist/skeleton-CQW-Tsnt.d.mts +99 -0
  306. package/dist/skeleton.d.mts +2 -0
  307. package/dist/skeleton.mjs +2 -0
  308. package/dist/skip-link-BUp9HXXt.mjs +164 -0
  309. package/dist/skip-link-DHDrtnP2.d.mts +98 -0
  310. package/dist/skip-link.d.mts +2 -0
  311. package/dist/skip-link.mjs +2 -0
  312. package/dist/slider-BiZSZLDp.mjs +475 -0
  313. package/dist/slider-CYBbxeNy.d.mts +246 -0
  314. package/dist/slider.d.mts +2 -0
  315. package/dist/slider.mjs +2 -0
  316. package/dist/sortable-BntjgYra.mjs +499 -0
  317. package/dist/sortable-DQl92bwo.d.mts +206 -0
  318. package/dist/sortable.d.mts +2 -0
  319. package/dist/sortable.mjs +2 -0
  320. package/dist/spacer-Bc0dInvi.mjs +117 -0
  321. package/dist/spacer-DFstG4G-.d.mts +105 -0
  322. package/dist/spacer.d.mts +2 -0
  323. package/dist/spacer.mjs +2 -0
  324. package/dist/{spatial-navigation-CHj9mDZH.d.mts → spatial-navigation-BPVJGSiJ.d.mts} +3 -3
  325. package/dist/{spatial-navigation-D6-UDavU.mjs → spatial-navigation-DwcUYMyc.mjs} +2 -2
  326. package/dist/spatial-navigation.d.mts +1 -1
  327. package/dist/spatial-navigation.mjs +1 -1
  328. package/dist/spinner-JnRs8fp-.d.mts +155 -0
  329. package/dist/spinner-bizL-oOg.mjs +200 -0
  330. package/dist/spinner.d.mts +2 -0
  331. package/dist/spinner.mjs +2 -0
  332. package/dist/stack-C7DOIxo-.mjs +137 -0
  333. package/dist/stack-CPtBckZB.d.mts +127 -0
  334. package/dist/stack.d.mts +2 -0
  335. package/dist/stack.mjs +2 -0
  336. package/dist/status-light-BGWgQRRf.mjs +125 -0
  337. package/dist/status-light.d.mts +2 -0
  338. package/dist/status-light.mjs +2 -0
  339. package/dist/stepper-CwX6BZaN.mjs +912 -0
  340. package/dist/stepper.d.mts +2 -0
  341. package/dist/stepper.mjs +2 -0
  342. package/dist/style.css +1 -1
  343. package/dist/surface-C2fnxL3g.mjs +102 -0
  344. package/dist/surface.d.mts +2 -0
  345. package/dist/surface.mjs +2 -0
  346. package/dist/switch-Ck5YmfXb.mjs +197 -0
  347. package/dist/switch.d.mts +2 -0
  348. package/dist/switch.mjs +2 -0
  349. package/dist/table-BxU7htxc.mjs +349 -0
  350. package/dist/table-Ce3yWwlH.d.mts +415 -0
  351. package/dist/table.d.mts +2 -0
  352. package/dist/table.mjs +2 -0
  353. package/dist/tabs-DSXIomI_.mjs +595 -0
  354. package/dist/tabs.d.mts +2 -0
  355. package/dist/tabs.mjs +2 -0
  356. package/dist/text-BVeNKPiv.mjs +76 -0
  357. package/dist/text.d.mts +2 -0
  358. package/dist/text.mjs +2 -0
  359. package/dist/textarea-4eIDNcvv.d.mts +175 -0
  360. package/dist/textarea-BZimEPBR.mjs +279 -0
  361. package/dist/textarea.d.mts +2 -0
  362. package/dist/textarea.mjs +2 -0
  363. package/dist/theme-C8Crmb8V.mjs +139 -0
  364. package/dist/theme-CNK06Pja.d.mts +38 -0
  365. package/dist/theme-constants-DAwnxG-P.mjs +29 -0
  366. package/dist/theme-preset-atelier.css +1 -0
  367. package/dist/theme-preset-headless.css +1 -0
  368. package/dist/theme-preset-high-contrast.css +1 -0
  369. package/dist/theme-preset-midnight.css +1 -0
  370. package/dist/theme-preset-paper.css +1 -0
  371. package/dist/theme-preset-play.css +1 -0
  372. package/dist/theme-preset-signal.css +1 -0
  373. package/dist/theme-scope.d.mts +25 -0
  374. package/dist/theme-scope.mjs +89 -0
  375. package/dist/theme-types-CkIa4Sa3.d.mts +71 -0
  376. package/dist/theme.css +1 -0
  377. package/dist/theme.d.mts +3 -0
  378. package/dist/theme.mjs +3 -0
  379. package/dist/toggle-CBTXzwze.mjs +141 -0
  380. package/dist/toggle-group-DO7eGEs3.d.mts +147 -0
  381. package/dist/toggle-group-DybU9N7k.mjs +523 -0
  382. package/dist/toggle-group.d.mts +2 -0
  383. package/dist/toggle-group.mjs +2 -0
  384. package/dist/toggle.d.mts +2 -0
  385. package/dist/toggle.mjs +2 -0
  386. package/dist/toolbar-CIU1bor0.d.mts +259 -0
  387. package/dist/toolbar-CXE8YCX-.mjs +425 -0
  388. package/dist/toolbar.d.mts +2 -0
  389. package/dist/toolbar.mjs +2 -0
  390. package/dist/tooltip-Cgii5xMx.mjs +485 -0
  391. package/dist/tooltip.d.mts +2 -0
  392. package/dist/tooltip.mjs +2 -0
  393. package/dist/transition-BmgFyzA6.mjs +168 -0
  394. package/dist/transition-BtIWNEFU.d.mts +82 -0
  395. package/dist/transition.d.mts +2 -0
  396. package/dist/transition.mjs +2 -0
  397. package/dist/{typeahead-B7KDxE_u.mjs → typeahead-DZSBI5m5.mjs} +2 -2
  398. package/dist/{typeahead-BbgUB2Bj.d.mts → typeahead-Dl6w5PAN.d.mts} +3 -3
  399. package/dist/typeahead.d.mts +1 -1
  400. package/dist/typeahead.mjs +1 -1
  401. package/dist/virtualizer-BlxKjT3W.mjs +793 -0
  402. package/dist/virtualizer-D9qfT4wS.d.mts +349 -0
  403. package/dist/virtualizer.d.mts +2 -0
  404. package/dist/virtualizer.mjs +2 -0
  405. package/dist/{visually-hidden-BOqfqBFt.d.mts → visually-hidden-CUr9BX0K.d.mts} +1 -1
  406. package/dist/{visually-hidden-BwDOx5yf.mjs → visually-hidden-SDjRJYRK.mjs} +5 -5
  407. package/dist/visually-hidden.d.mts +1 -1
  408. package/dist/visually-hidden.mjs +2 -2
  409. package/package.json +426 -7
  410. package/dist/checkbox-DP3_ko7D.d.mts +0 -61
  411. package/dist/move-BVvMHzxr.mjs +0 -386
@@ -0,0 +1,791 @@
1
+ import { a as useDeterministicId, n as deriveDeterministicId } from "./deterministic-id-yMq4HfmS.mjs";
2
+ import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.mjs";
3
+ import { createContext } from "./context.mjs";
4
+ import { useControllableState } from "./controllable-state.mjs";
5
+ import { computed, createBlock, createElementBlock, createTextVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useTemplateRef, withCtx } from "vue";
6
+ //#region src/families/navigation/pagination/pagination-context.ts
7
+ const paginationContext = createContext("Pagination");
8
+ //#endregion
9
+ //#region src/families/navigation/pagination/pagination-range.ts
10
+ /** Normalize an arbitrary page count into a finite positive integer. */
11
+ function normalizePaginationPageCount(value) {
12
+ if (!Number.isFinite(value)) return 1;
13
+ const integer = Math.trunc(value);
14
+ return integer < 1 ? 1 : integer;
15
+ }
16
+ /** Clamp a page value into the current page-count range. */
17
+ function normalizePaginationPage(value, pageCount) {
18
+ const normalizedCount = normalizePaginationPageCount(pageCount);
19
+ if (value == null || !Number.isFinite(value)) return 1;
20
+ const integer = Math.trunc(value);
21
+ if (integer < 1) return 1;
22
+ return integer > normalizedCount ? normalizedCount : integer;
23
+ }
24
+ /** Return an in-range page number, or `null` when a control points outside the range. */
25
+ function toPaginationPageInRange(value, pageCount) {
26
+ if (!Number.isFinite(value)) return null;
27
+ const integer = Math.trunc(value);
28
+ if (integer < 1 || integer > normalizePaginationPageCount(pageCount)) return null;
29
+ return integer;
30
+ }
31
+ /** Return a deterministic page id segment that never collides with valid page ids. */
32
+ function getPaginationPageIdSegment(value, pageCount) {
33
+ if (!Number.isFinite(value)) return `page-invalid-${String(value).toLowerCase()}`;
34
+ const integer = Math.trunc(value);
35
+ if (integer < 1) return `page-before-${Math.abs(integer)}`;
36
+ if (integer > normalizePaginationPageCount(pageCount)) return `page-after-${integer}`;
37
+ return `page-${integer}`;
38
+ }
39
+ /** Create a deterministic compact page range with one-page gaps expanded. */
40
+ function createPaginationRange(options) {
41
+ const pageCount = normalizePaginationPageCount(options.pageCount);
42
+ const page = normalizePaginationPage(options.page, pageCount);
43
+ const siblingCount = normalizeMargin(options.siblingCount ?? 1);
44
+ const boundaryCount = normalizeMargin(options.boundaryCount ?? 1);
45
+ const visible = /* @__PURE__ */ new Set();
46
+ addPages(visible, 1, boundaryCount, pageCount);
47
+ addPages(visible, pageCount - boundaryCount + 1, pageCount, pageCount);
48
+ addPages(visible, page - siblingCount, page + siblingCount, pageCount);
49
+ const pages = [...visible].sort((left, right) => left - right);
50
+ const range = [];
51
+ let previous = null;
52
+ for (const next of pages) {
53
+ if (previous !== null) {
54
+ const gap = next - previous;
55
+ if (gap === 2) range.push(createPage(previous + 1));
56
+ else if (gap > 2) range.push(createEllipsis(previous >= page ? "end" : "start"));
57
+ }
58
+ range.push(createPage(next));
59
+ previous = next;
60
+ }
61
+ return range;
62
+ }
63
+ function normalizeMargin(value) {
64
+ if (!Number.isFinite(value)) return 0;
65
+ const integer = Math.trunc(value);
66
+ return integer < 0 ? 0 : integer;
67
+ }
68
+ function addPages(target, start, end, pageCount) {
69
+ const first = Math.max(1, start);
70
+ const last = Math.min(pageCount, end);
71
+ for (let page = first; page <= last; page++) target.add(page);
72
+ }
73
+ function createPage(page) {
74
+ return {
75
+ key: `page-${page}`,
76
+ page,
77
+ type: "page"
78
+ };
79
+ }
80
+ function createEllipsis(position) {
81
+ return {
82
+ key: `ellipsis-${position}`,
83
+ position,
84
+ type: "ellipsis"
85
+ };
86
+ }
87
+ //#endregion
88
+ //#region src/families/navigation/pagination/pagination.vue
89
+ var pagination_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
90
+ __name: "pagination",
91
+ props: {
92
+ id: {
93
+ type: [String, null],
94
+ required: false,
95
+ default: () => void 0
96
+ },
97
+ pageCount: {
98
+ type: Number,
99
+ required: true
100
+ },
101
+ modelValue: {
102
+ type: Number,
103
+ required: false,
104
+ default: () => void 0
105
+ },
106
+ defaultValue: {
107
+ type: Number,
108
+ required: false,
109
+ default: () => void 0
110
+ },
111
+ disabled: {
112
+ type: Boolean,
113
+ required: false,
114
+ default: false
115
+ },
116
+ label: {
117
+ type: String,
118
+ required: false,
119
+ default: "Pagination"
120
+ },
121
+ siblingCount: {
122
+ type: Number,
123
+ required: false,
124
+ default: 1
125
+ },
126
+ boundaryCount: {
127
+ type: Number,
128
+ required: false,
129
+ default: 1
130
+ },
131
+ as: {
132
+ type: null,
133
+ required: false,
134
+ default: "nav"
135
+ }
136
+ },
137
+ emits: ["update:modelValue", "change"],
138
+ setup(__props, { expose: __expose, emit: __emit }) {
139
+ const emit = __emit;
140
+ const element = useTemplateRef("element");
141
+ const baseId = useDeterministicId({
142
+ id: () => __props.id,
143
+ hint: "pagination"
144
+ });
145
+ const listId = computed(() => deriveDeterministicId(baseId.value, "list"));
146
+ const previousId = computed(() => deriveDeterministicId(baseId.value, "previous"));
147
+ const nextId = computed(() => deriveDeterministicId(baseId.value, "next"));
148
+ const pageCountState = computed(() => normalizePaginationPageCount(__props.pageCount));
149
+ const disabledState = computed(() => __props.disabled);
150
+ const valueState = useControllableState({
151
+ value: () => __props.modelValue === void 0 ? void 0 : normalizePaginationPage(__props.modelValue, pageCountState.value),
152
+ defaultValue: () => normalizePaginationPage(__props.defaultValue, pageCountState.value),
153
+ equals: Object.is
154
+ });
155
+ const pageState = computed(() => normalizePaginationPage(valueState.value.value, pageCountState.value));
156
+ const previousPage = computed(() => pageState.value > 1 ? pageState.value - 1 : null);
157
+ const nextPage = computed(() => pageState.value < pageCountState.value ? pageState.value + 1 : null);
158
+ const canPrevious = computed(() => !disabledState.value && previousPage.value !== null);
159
+ const canNext = computed(() => !disabledState.value && nextPage.value !== null);
160
+ const state = computed(() => disabledState.value ? "disabled" : "active");
161
+ const range = computed(() => createPaginationRange({
162
+ boundaryCount: __props.boundaryCount,
163
+ page: pageState.value,
164
+ pageCount: pageCountState.value,
165
+ siblingCount: __props.siblingCount
166
+ }));
167
+ const slotState = computed(() => ({
168
+ canNext: canNext.value,
169
+ canPrevious: canPrevious.value,
170
+ disabled: disabledState.value,
171
+ nextPage: nextPage.value,
172
+ page: pageState.value,
173
+ pageCount: pageCountState.value,
174
+ previousPage: previousPage.value,
175
+ range: range.value,
176
+ state: state.value
177
+ }));
178
+ function getPageId(page) {
179
+ return deriveDeterministicId(baseId.value, getPaginationPageIdSegment(page, pageCountState.value));
180
+ }
181
+ function getPageLabel(page, current) {
182
+ return current ? `Page ${page}, current page` : `Go to page ${page}`;
183
+ }
184
+ function getPageState(page, pageDisabled) {
185
+ if (disabledState.value || pageDisabled) return "disabled";
186
+ return pageState.value === page ? "current" : "idle";
187
+ }
188
+ function getPreviousState(previousDisabled) {
189
+ return previousDisabled || !canPrevious.value ? "disabled" : "idle";
190
+ }
191
+ function getNextState(nextDisabled) {
192
+ return nextDisabled || !canNext.value ? "disabled" : "idle";
193
+ }
194
+ function getCurrentPage() {
195
+ return pageState.value;
196
+ }
197
+ function setPage(page, nativeEvent = null) {
198
+ if (disabledState.value) return false;
199
+ const next = normalizePaginationPage(page, pageCountState.value);
200
+ const previous = getCurrentPage();
201
+ if (Object.is(previous, next)) return false;
202
+ if (!valueState.set(next)) return false;
203
+ emit("update:modelValue", next);
204
+ emit("change", next, previous, nativeEvent);
205
+ return true;
206
+ }
207
+ function goPrevious(nativeEvent = null) {
208
+ return previousPage.value === null ? false : setPage(previousPage.value, nativeEvent);
209
+ }
210
+ function goNext(nativeEvent = null) {
211
+ return nextPage.value === null ? false : setPage(nextPage.value, nativeEvent);
212
+ }
213
+ function reset() {
214
+ return setPage(__props.defaultValue ?? 1, null);
215
+ }
216
+ function focus(options) {
217
+ focusCurrent(options);
218
+ }
219
+ function focusCurrent(options) {
220
+ const root = element.value instanceof Element ? element.value : null;
221
+ const target = root?.ownerDocument.getElementById(getPageId(pageState.value));
222
+ if (target instanceof HTMLElement && root?.contains(target)) target.focus(options);
223
+ }
224
+ const context = paginationContext.provide({
225
+ canNext,
226
+ canPrevious,
227
+ disabled: disabledState,
228
+ focusCurrent,
229
+ getNextState,
230
+ getPageId,
231
+ getPageLabel,
232
+ getPageState,
233
+ getPreviousState,
234
+ goNext,
235
+ goPrevious,
236
+ id: baseId,
237
+ listId,
238
+ nextId,
239
+ nextPage,
240
+ page: pageState,
241
+ pageCount: pageCountState,
242
+ previousId,
243
+ previousPage,
244
+ range,
245
+ setPage,
246
+ state
247
+ });
248
+ __expose({
249
+ canNext,
250
+ canPrevious,
251
+ disabled: disabledState,
252
+ element,
253
+ focus,
254
+ goNext,
255
+ goPrevious,
256
+ id: baseId,
257
+ listId,
258
+ nextPage,
259
+ page: pageState,
260
+ pageCount: pageCountState,
261
+ previousPage,
262
+ range,
263
+ reset,
264
+ setPage,
265
+ state
266
+ });
267
+ return (_ctx, _cache) => {
268
+ return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
269
+ id: unref(context).id.value,
270
+ ref_key: "element",
271
+ ref: element,
272
+ "aria-label": __props.label,
273
+ "data-vize-ui": "pagination",
274
+ part: "root",
275
+ "data-state": state.value,
276
+ "data-disabled": disabledState.value ? "true" : void 0,
277
+ "data-page": pageState.value,
278
+ "data-page-count": pageCountState.value
279
+ }, {
280
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
281
+ _: 3
282
+ }, 8, [
283
+ "id",
284
+ "aria-label",
285
+ "data-state",
286
+ "data-disabled",
287
+ "data-page",
288
+ "data-page-count"
289
+ ]);
290
+ };
291
+ }
292
+ }), [["__scopeId", "data-v-e0b00ef7"]]);
293
+ //#endregion
294
+ //#region src/families/navigation/pagination/pagination-ellipsis.vue?vue&type=script&setup=true&lang.ts
295
+ const disabled = true;
296
+ //#endregion
297
+ //#region src/families/navigation/pagination/pagination-ellipsis.vue
298
+ var pagination_ellipsis_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
299
+ __name: "pagination-ellipsis",
300
+ props: {
301
+ as: {
302
+ type: null,
303
+ required: false,
304
+ default: "span"
305
+ },
306
+ position: {
307
+ type: String,
308
+ required: false,
309
+ default: "end"
310
+ },
311
+ label: {
312
+ type: String,
313
+ required: false,
314
+ default: "More pages"
315
+ }
316
+ },
317
+ setup(__props, { expose: __expose }) {
318
+ paginationContext.use();
319
+ const element = useTemplateRef("element");
320
+ const slotState = computed(() => ({
321
+ disabled,
322
+ position: __props.position
323
+ }));
324
+ __expose({
325
+ disabled,
326
+ element,
327
+ position: computed(() => __props.position)
328
+ });
329
+ return (_ctx, _cache) => {
330
+ return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
331
+ ref_key: "element",
332
+ ref: element,
333
+ "aria-label": __props.label,
334
+ "data-vize-ui": "pagination-ellipsis",
335
+ part: "ellipsis",
336
+ "data-position": __props.position,
337
+ "data-disabled": "true"
338
+ }, {
339
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), () => [_cache[0] || (_cache[0] = createTextVNode("...", -1))], true)]),
340
+ _: 3
341
+ }, 8, ["aria-label", "data-position"]);
342
+ };
343
+ }
344
+ }), [["__scopeId", "data-v-b3407727"]]);
345
+ //#endregion
346
+ //#region src/families/navigation/pagination/pagination-item.vue
347
+ var pagination_item_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
348
+ __name: "pagination-item",
349
+ props: {
350
+ as: {
351
+ type: null,
352
+ required: false,
353
+ default: "li"
354
+ },
355
+ page: {
356
+ type: Number,
357
+ required: false,
358
+ default: () => void 0
359
+ },
360
+ disabled: {
361
+ type: Boolean,
362
+ required: false,
363
+ default: false
364
+ }
365
+ },
366
+ setup(__props, { expose: __expose }) {
367
+ const context = paginationContext.use();
368
+ const element = useTemplateRef("element");
369
+ const itemPage = computed(() => __props.page === void 0 ? void 0 : toPaginationPageInRange(__props.page, context.pageCount.value) ?? __props.page);
370
+ const current = computed(() => __props.page !== void 0 && toPaginationPageInRange(__props.page, context.pageCount.value) === context.page.value);
371
+ const itemDisabled = computed(() => context.disabled.value || __props.disabled || __props.page !== void 0 && toPaginationPageInRange(__props.page, context.pageCount.value) === null);
372
+ const itemState = computed(() => {
373
+ if (itemDisabled.value) return "disabled";
374
+ return current.value ? "current" : "idle";
375
+ });
376
+ const slotState = computed(() => ({
377
+ current: current.value,
378
+ disabled: itemDisabled.value,
379
+ page: itemPage.value,
380
+ state: itemState.value
381
+ }));
382
+ __expose({
383
+ current,
384
+ disabled: itemDisabled,
385
+ element,
386
+ page: itemPage,
387
+ state: itemState
388
+ });
389
+ return (_ctx, _cache) => {
390
+ return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
391
+ ref_key: "element",
392
+ ref: element,
393
+ "data-vize-ui": "pagination-item",
394
+ part: "item",
395
+ "data-state": itemState.value,
396
+ "data-page": itemPage.value,
397
+ "data-current": current.value ? "true" : void 0,
398
+ "data-disabled": itemDisabled.value ? "true" : void 0
399
+ }, {
400
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
401
+ _: 3
402
+ }, 8, [
403
+ "data-state",
404
+ "data-page",
405
+ "data-current",
406
+ "data-disabled"
407
+ ]);
408
+ };
409
+ }
410
+ }), [["__scopeId", "data-v-635e7169"]]);
411
+ //#endregion
412
+ //#region src/families/navigation/pagination/pagination-list.vue
413
+ var pagination_list_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
414
+ __name: "pagination-list",
415
+ props: { as: {
416
+ type: null,
417
+ required: false,
418
+ default: "ol"
419
+ } },
420
+ setup(__props, { expose: __expose }) {
421
+ const context = paginationContext.use();
422
+ const element = useTemplateRef("element");
423
+ const slotState = computed(() => ({
424
+ canNext: context.canNext.value,
425
+ canPrevious: context.canPrevious.value,
426
+ disabled: context.disabled.value,
427
+ listId: context.listId.value,
428
+ nextPage: context.nextPage.value,
429
+ page: context.page.value,
430
+ pageCount: context.pageCount.value,
431
+ previousPage: context.previousPage.value,
432
+ range: context.range.value,
433
+ state: context.state.value
434
+ }));
435
+ __expose({
436
+ canNext: context.canNext,
437
+ canPrevious: context.canPrevious,
438
+ disabled: context.disabled,
439
+ element,
440
+ focus: context.focusCurrent,
441
+ listId: context.listId,
442
+ nextPage: context.nextPage,
443
+ page: context.page,
444
+ pageCount: context.pageCount,
445
+ previousPage: context.previousPage,
446
+ range: context.range,
447
+ state: context.state
448
+ });
449
+ return (_ctx, _cache) => {
450
+ return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
451
+ id: unref(context).listId.value,
452
+ ref_key: "element",
453
+ ref: element,
454
+ "data-vize-ui": "pagination-list",
455
+ part: "list",
456
+ "data-state": unref(context).state.value,
457
+ "data-disabled": unref(context).disabled.value ? "true" : void 0,
458
+ "data-page": unref(context).page.value,
459
+ "data-page-count": unref(context).pageCount.value
460
+ }, {
461
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)]),
462
+ _: 3
463
+ }, 8, [
464
+ "id",
465
+ "data-state",
466
+ "data-disabled",
467
+ "data-page",
468
+ "data-page-count"
469
+ ]);
470
+ };
471
+ }
472
+ }), [["__scopeId", "data-v-5d5ca16d"]]);
473
+ //#endregion
474
+ //#region src/families/navigation/pagination/pagination-next.vue?vue&type=script&setup=true&lang.ts
475
+ const _hoisted_1$2 = [
476
+ "id",
477
+ "type",
478
+ "disabled",
479
+ "aria-label",
480
+ "aria-labelledby",
481
+ "aria-describedby",
482
+ "data-state",
483
+ "data-target-page",
484
+ "data-disabled"
485
+ ];
486
+ //#endregion
487
+ //#region src/families/navigation/pagination/pagination-next.vue
488
+ var pagination_next_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
489
+ __name: "pagination-next",
490
+ props: {
491
+ type: {
492
+ type: String,
493
+ required: false,
494
+ default: "button"
495
+ },
496
+ disabled: {
497
+ type: Boolean,
498
+ required: false,
499
+ default: false
500
+ },
501
+ ariaLabel: {
502
+ type: String,
503
+ required: false,
504
+ default: "Go to next page"
505
+ },
506
+ ariaLabelledby: {
507
+ type: String,
508
+ required: false,
509
+ default: () => void 0
510
+ },
511
+ ariaDescribedby: {
512
+ type: String,
513
+ required: false,
514
+ default: () => void 0
515
+ }
516
+ },
517
+ emits: ["click"],
518
+ setup(__props, { expose: __expose, emit: __emit }) {
519
+ const emit = __emit;
520
+ const context = paginationContext.use();
521
+ const element = useTemplateRef("element");
522
+ const controlDisabled = computed(() => __props.disabled || context.getNextState(false) === "disabled");
523
+ const controlState = computed(() => context.getNextState(__props.disabled));
524
+ const slotState = computed(() => ({
525
+ disabled: controlDisabled.value,
526
+ state: controlState.value,
527
+ targetPage: context.nextPage.value
528
+ }));
529
+ function onClick(event) {
530
+ if (controlDisabled.value) {
531
+ event.preventDefault();
532
+ event.stopImmediatePropagation();
533
+ return;
534
+ }
535
+ emit("click", event);
536
+ if (!event.defaultPrevented) context.goNext(event);
537
+ }
538
+ function focus(options) {
539
+ element.value?.focus(options);
540
+ }
541
+ function select() {
542
+ if (controlDisabled.value) return false;
543
+ return context.goNext(null);
544
+ }
545
+ __expose({
546
+ disabled: controlDisabled,
547
+ element,
548
+ focus,
549
+ id: context.nextId,
550
+ select,
551
+ state: controlState,
552
+ targetPage: context.nextPage
553
+ });
554
+ return (_ctx, _cache) => {
555
+ return openBlock(), createElementBlock("button", {
556
+ id: unref(context).nextId.value,
557
+ ref_key: "element",
558
+ ref: element,
559
+ type: __props.type,
560
+ disabled: controlDisabled.value,
561
+ "aria-label": __props.ariaLabelledby === void 0 ? __props.ariaLabel : void 0,
562
+ "aria-labelledby": __props.ariaLabelledby,
563
+ "aria-describedby": __props.ariaDescribedby,
564
+ "data-vize-ui": "pagination-next",
565
+ part: "next",
566
+ "data-state": controlState.value,
567
+ "data-target-page": unref(context).nextPage.value ?? void 0,
568
+ "data-disabled": controlDisabled.value ? "true" : void 0,
569
+ onClick
570
+ }, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 8, _hoisted_1$2);
571
+ };
572
+ }
573
+ }), [["__scopeId", "data-v-9e9669a4"]]);
574
+ //#endregion
575
+ //#region src/families/navigation/pagination/pagination-page.vue?vue&type=script&setup=true&lang.ts
576
+ const _hoisted_1$1 = [
577
+ "id",
578
+ "type",
579
+ "disabled",
580
+ "aria-label",
581
+ "aria-labelledby",
582
+ "aria-describedby",
583
+ "aria-current",
584
+ "data-state",
585
+ "data-page",
586
+ "data-current",
587
+ "data-disabled"
588
+ ];
589
+ //#endregion
590
+ //#region src/families/navigation/pagination/pagination-page.vue
591
+ var pagination_page_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
592
+ __name: "pagination-page",
593
+ props: {
594
+ page: {
595
+ type: Number,
596
+ required: true
597
+ },
598
+ type: {
599
+ type: String,
600
+ required: false,
601
+ default: "button"
602
+ },
603
+ disabled: {
604
+ type: Boolean,
605
+ required: false,
606
+ default: false
607
+ },
608
+ ariaLabel: {
609
+ type: String,
610
+ required: false,
611
+ default: () => void 0
612
+ },
613
+ ariaLabelledby: {
614
+ type: String,
615
+ required: false,
616
+ default: () => void 0
617
+ },
618
+ ariaDescribedby: {
619
+ type: String,
620
+ required: false,
621
+ default: () => void 0
622
+ }
623
+ },
624
+ emits: ["click"],
625
+ setup(__props, { expose: __expose, emit: __emit }) {
626
+ const emit = __emit;
627
+ const context = paginationContext.use();
628
+ const element = useTemplateRef("element");
629
+ const targetPage = computed(() => toPaginationPageInRange(__props.page, context.pageCount.value));
630
+ const current = computed(() => targetPage.value !== null && context.page.value === targetPage.value);
631
+ const pageDisabled = computed(() => context.disabled.value || __props.disabled || targetPage.value === null);
632
+ const pageState = computed(() => targetPage.value === null ? "disabled" : context.getPageState(targetPage.value, __props.disabled));
633
+ const pageId = computed(() => context.getPageId(__props.page));
634
+ const accessibleLabel = computed(() => __props.ariaLabel ?? context.getPageLabel(targetPage.value ?? __props.page, current.value));
635
+ const slotState = computed(() => ({
636
+ current: current.value,
637
+ disabled: pageDisabled.value,
638
+ page: targetPage.value ?? __props.page,
639
+ state: pageState.value
640
+ }));
641
+ function onClick(event) {
642
+ if (pageDisabled.value) {
643
+ event.preventDefault();
644
+ event.stopImmediatePropagation();
645
+ return;
646
+ }
647
+ emit("click", event);
648
+ if (!event.defaultPrevented && targetPage.value !== null) context.setPage(targetPage.value, event);
649
+ }
650
+ function focus(options) {
651
+ element.value?.focus(options);
652
+ }
653
+ function select() {
654
+ if (pageDisabled.value || targetPage.value === null) return false;
655
+ return context.setPage(targetPage.value, null);
656
+ }
657
+ __expose({
658
+ current,
659
+ disabled: pageDisabled,
660
+ element,
661
+ focus,
662
+ id: pageId,
663
+ page: computed(() => targetPage.value ?? __props.page),
664
+ select,
665
+ state: pageState
666
+ });
667
+ return (_ctx, _cache) => {
668
+ return openBlock(), createElementBlock("button", {
669
+ id: pageId.value,
670
+ ref_key: "element",
671
+ ref: element,
672
+ type: __props.type,
673
+ disabled: pageDisabled.value,
674
+ "aria-label": __props.ariaLabelledby === void 0 ? accessibleLabel.value : void 0,
675
+ "aria-labelledby": __props.ariaLabelledby,
676
+ "aria-describedby": __props.ariaDescribedby,
677
+ "aria-current": current.value ? "page" : void 0,
678
+ "data-vize-ui": "pagination-page",
679
+ part: "page",
680
+ "data-state": pageState.value,
681
+ "data-page": targetPage.value ?? __props.page,
682
+ "data-current": current.value ? "true" : void 0,
683
+ "data-disabled": pageDisabled.value ? "true" : void 0,
684
+ onClick
685
+ }, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 8, _hoisted_1$1);
686
+ };
687
+ }
688
+ }), [["__scopeId", "data-v-1e466ba6"]]);
689
+ //#endregion
690
+ //#region src/families/navigation/pagination/pagination-previous.vue?vue&type=script&setup=true&lang.ts
691
+ const _hoisted_1 = [
692
+ "id",
693
+ "type",
694
+ "disabled",
695
+ "aria-label",
696
+ "aria-labelledby",
697
+ "aria-describedby",
698
+ "data-state",
699
+ "data-target-page",
700
+ "data-disabled"
701
+ ];
702
+ //#endregion
703
+ //#region src/families/navigation/pagination/pagination-previous.vue
704
+ var pagination_previous_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
705
+ __name: "pagination-previous",
706
+ props: {
707
+ type: {
708
+ type: String,
709
+ required: false,
710
+ default: "button"
711
+ },
712
+ disabled: {
713
+ type: Boolean,
714
+ required: false,
715
+ default: false
716
+ },
717
+ ariaLabel: {
718
+ type: String,
719
+ required: false,
720
+ default: "Go to previous page"
721
+ },
722
+ ariaLabelledby: {
723
+ type: String,
724
+ required: false,
725
+ default: () => void 0
726
+ },
727
+ ariaDescribedby: {
728
+ type: String,
729
+ required: false,
730
+ default: () => void 0
731
+ }
732
+ },
733
+ emits: ["click"],
734
+ setup(__props, { expose: __expose, emit: __emit }) {
735
+ const emit = __emit;
736
+ const context = paginationContext.use();
737
+ const element = useTemplateRef("element");
738
+ const controlDisabled = computed(() => __props.disabled || context.getPreviousState(false) === "disabled");
739
+ const controlState = computed(() => context.getPreviousState(__props.disabled));
740
+ const slotState = computed(() => ({
741
+ disabled: controlDisabled.value,
742
+ state: controlState.value,
743
+ targetPage: context.previousPage.value
744
+ }));
745
+ function onClick(event) {
746
+ if (controlDisabled.value) {
747
+ event.preventDefault();
748
+ event.stopImmediatePropagation();
749
+ return;
750
+ }
751
+ emit("click", event);
752
+ if (!event.defaultPrevented) context.goPrevious(event);
753
+ }
754
+ function focus(options) {
755
+ element.value?.focus(options);
756
+ }
757
+ function select() {
758
+ if (controlDisabled.value) return false;
759
+ return context.goPrevious(null);
760
+ }
761
+ __expose({
762
+ disabled: controlDisabled,
763
+ element,
764
+ focus,
765
+ id: context.previousId,
766
+ select,
767
+ state: controlState,
768
+ targetPage: context.previousPage
769
+ });
770
+ return (_ctx, _cache) => {
771
+ return openBlock(), createElementBlock("button", {
772
+ id: unref(context).previousId.value,
773
+ ref_key: "element",
774
+ ref: element,
775
+ type: __props.type,
776
+ disabled: controlDisabled.value,
777
+ "aria-label": __props.ariaLabelledby === void 0 ? __props.ariaLabel : void 0,
778
+ "aria-labelledby": __props.ariaLabelledby,
779
+ "aria-describedby": __props.ariaDescribedby,
780
+ "data-vize-ui": "pagination-previous",
781
+ part: "previous",
782
+ "data-state": controlState.value,
783
+ "data-target-page": unref(context).previousPage.value ?? void 0,
784
+ "data-disabled": controlDisabled.value ? "true" : void 0,
785
+ onClick
786
+ }, [renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotState.value)), void 0, true)], 8, _hoisted_1);
787
+ };
788
+ }
789
+ }), [["__scopeId", "data-v-13a4faee"]]);
790
+ //#endregion
791
+ export { pagination_item_default as a, createPaginationRange as c, normalizePaginationPageCount as d, toPaginationPageInRange as f, pagination_list_default as i, getPaginationPageIdSegment as l, pagination_page_default as n, pagination_ellipsis_default as o, pagination_next_default as r, pagination_default as s, pagination_previous_default as t, normalizePaginationPage as u };