bits-ui 1.0.0-next.8 → 1.0.0-next.81

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 (837) hide show
  1. package/dist/app.d.ts +14 -0
  2. package/dist/bits/accordion/accordion.svelte.d.ts +15 -16
  3. package/dist/bits/accordion/accordion.svelte.js +40 -41
  4. package/dist/bits/accordion/components/accordion-content.svelte +3 -4
  5. package/dist/bits/accordion/components/accordion-content.svelte.d.ts +2 -17
  6. package/dist/bits/accordion/components/accordion-header.svelte +2 -3
  7. package/dist/bits/accordion/components/accordion-header.svelte.d.ts +2 -17
  8. package/dist/bits/accordion/components/accordion-item.svelte +2 -3
  9. package/dist/bits/accordion/components/accordion-item.svelte.d.ts +2 -17
  10. package/dist/bits/accordion/components/accordion-trigger.svelte +2 -3
  11. package/dist/bits/accordion/components/accordion-trigger.svelte.d.ts +2 -17
  12. package/dist/bits/accordion/components/accordion.svelte +8 -13
  13. package/dist/bits/accordion/components/accordion.svelte.d.ts +3 -18
  14. package/dist/bits/accordion/exports.d.ts +6 -0
  15. package/dist/bits/accordion/exports.js +5 -0
  16. package/dist/bits/accordion/index.d.ts +1 -6
  17. package/dist/bits/accordion/index.js +1 -5
  18. package/dist/bits/accordion/types.d.ts +9 -18
  19. package/dist/bits/alert-dialog/components/alert-dialog-action.svelte +4 -5
  20. package/dist/bits/alert-dialog/components/alert-dialog-action.svelte.d.ts +2 -17
  21. package/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte +6 -5
  22. package/dist/bits/alert-dialog/components/alert-dialog-cancel.svelte.d.ts +2 -17
  23. package/dist/bits/alert-dialog/components/alert-dialog-content.svelte +20 -17
  24. package/dist/bits/alert-dialog/components/alert-dialog-content.svelte.d.ts +2 -17
  25. package/dist/bits/alert-dialog/components/alert-dialog.svelte +5 -14
  26. package/dist/bits/alert-dialog/components/alert-dialog.svelte.d.ts +2 -17
  27. package/dist/bits/alert-dialog/exports.d.ts +10 -0
  28. package/dist/bits/alert-dialog/exports.js +9 -0
  29. package/dist/bits/alert-dialog/index.d.ts +1 -10
  30. package/dist/bits/alert-dialog/index.js +1 -9
  31. package/dist/bits/alert-dialog/types.d.ts +1 -1
  32. package/dist/bits/aspect-ratio/aspect-ratio.svelte.js +1 -1
  33. package/dist/bits/aspect-ratio/components/aspect-ratio.svelte +4 -5
  34. package/dist/bits/aspect-ratio/components/aspect-ratio.svelte.d.ts +3 -18
  35. package/dist/bits/aspect-ratio/exports.d.ts +2 -0
  36. package/dist/bits/aspect-ratio/exports.js +1 -0
  37. package/dist/bits/aspect-ratio/index.d.ts +1 -2
  38. package/dist/bits/aspect-ratio/index.js +1 -1
  39. package/dist/bits/aspect-ratio/types.d.ts +3 -3
  40. package/dist/bits/avatar/avatar.svelte.d.ts +1 -3
  41. package/dist/bits/avatar/avatar.svelte.js +11 -17
  42. package/dist/bits/avatar/components/avatar-fallback.svelte +4 -5
  43. package/dist/bits/avatar/components/avatar-fallback.svelte.d.ts +3 -18
  44. package/dist/bits/avatar/components/avatar-image.svelte +4 -5
  45. package/dist/bits/avatar/components/avatar-image.svelte.d.ts +3 -18
  46. package/dist/bits/avatar/components/avatar.svelte +4 -5
  47. package/dist/bits/avatar/components/avatar.svelte.d.ts +3 -18
  48. package/dist/bits/avatar/exports.d.ts +4 -0
  49. package/dist/bits/avatar/exports.js +3 -0
  50. package/dist/bits/avatar/index.d.ts +1 -4
  51. package/dist/bits/avatar/index.js +1 -3
  52. package/dist/bits/avatar/types.d.ts +4 -4
  53. package/dist/bits/button/components/button.svelte +14 -4
  54. package/dist/bits/button/components/button.svelte.d.ts +3 -18
  55. package/dist/bits/button/exports.d.ts +2 -0
  56. package/dist/bits/button/exports.js +1 -0
  57. package/dist/bits/button/index.d.ts +1 -2
  58. package/dist/bits/button/index.js +1 -1
  59. package/dist/bits/button/types.d.ts +6 -4
  60. package/dist/bits/calendar/calendar.svelte.d.ts +36 -76
  61. package/dist/bits/calendar/calendar.svelte.js +77 -89
  62. package/dist/bits/calendar/components/calendar-cell.svelte +4 -5
  63. package/dist/bits/calendar/components/calendar-cell.svelte.d.ts +3 -18
  64. package/dist/bits/calendar/components/calendar-day.svelte +10 -5
  65. package/dist/bits/calendar/components/calendar-day.svelte.d.ts +3 -18
  66. package/dist/bits/calendar/components/calendar-grid-body.svelte +4 -5
  67. package/dist/bits/calendar/components/calendar-grid-body.svelte.d.ts +3 -18
  68. package/dist/bits/calendar/components/calendar-grid-head.svelte +4 -5
  69. package/dist/bits/calendar/components/calendar-grid-head.svelte.d.ts +3 -18
  70. package/dist/bits/calendar/components/calendar-grid-row.svelte +4 -5
  71. package/dist/bits/calendar/components/calendar-grid-row.svelte.d.ts +3 -18
  72. package/dist/bits/calendar/components/calendar-grid.svelte +4 -5
  73. package/dist/bits/calendar/components/calendar-grid.svelte.d.ts +3 -18
  74. package/dist/bits/calendar/components/calendar-head-cell.svelte +4 -5
  75. package/dist/bits/calendar/components/calendar-head-cell.svelte.d.ts +3 -18
  76. package/dist/bits/calendar/components/calendar-header.svelte +4 -5
  77. package/dist/bits/calendar/components/calendar-header.svelte.d.ts +3 -18
  78. package/dist/bits/calendar/components/calendar-heading.svelte +4 -5
  79. package/dist/bits/calendar/components/calendar-heading.svelte.d.ts +3 -18
  80. package/dist/bits/calendar/components/calendar-next-button.svelte +4 -5
  81. package/dist/bits/calendar/components/calendar-next-button.svelte.d.ts +3 -18
  82. package/dist/bits/calendar/components/calendar-prev-button.svelte +4 -5
  83. package/dist/bits/calendar/components/calendar-prev-button.svelte.d.ts +3 -18
  84. package/dist/bits/calendar/components/calendar.svelte +18 -23
  85. package/dist/bits/calendar/components/calendar.svelte.d.ts +3 -18
  86. package/dist/bits/calendar/exports.d.ts +13 -0
  87. package/dist/bits/calendar/exports.js +12 -0
  88. package/dist/bits/calendar/index.d.ts +1 -13
  89. package/dist/bits/calendar/index.js +1 -12
  90. package/dist/bits/calendar/types.d.ts +15 -33
  91. package/dist/bits/checkbox/checkbox.svelte.d.ts +63 -12
  92. package/dist/bits/checkbox/checkbox.svelte.js +180 -44
  93. package/dist/bits/checkbox/components/checkbox-group-label.svelte +32 -0
  94. package/dist/bits/checkbox/components/checkbox-group-label.svelte.d.ts +4 -0
  95. package/dist/bits/checkbox/components/checkbox-group.svelte +45 -0
  96. package/dist/bits/checkbox/components/checkbox-group.svelte.d.ts +4 -0
  97. package/dist/bits/checkbox/components/checkbox.svelte +22 -16
  98. package/dist/bits/checkbox/components/checkbox.svelte.d.ts +3 -18
  99. package/dist/bits/checkbox/exports.d.ts +4 -0
  100. package/dist/bits/checkbox/exports.js +3 -0
  101. package/dist/bits/checkbox/index.d.ts +1 -2
  102. package/dist/bits/checkbox/index.js +1 -1
  103. package/dist/bits/checkbox/types.d.ts +54 -12
  104. package/dist/bits/collapsible/collapsible.svelte.d.ts +6 -5
  105. package/dist/bits/collapsible/collapsible.svelte.js +29 -23
  106. package/dist/bits/collapsible/components/collapsible-content.svelte +3 -4
  107. package/dist/bits/collapsible/components/collapsible-content.svelte.d.ts +5 -27
  108. package/dist/bits/collapsible/components/collapsible-trigger.svelte +4 -5
  109. package/dist/bits/collapsible/components/collapsible-trigger.svelte.d.ts +3 -18
  110. package/dist/bits/collapsible/components/collapsible.svelte +7 -13
  111. package/dist/bits/collapsible/components/collapsible.svelte.d.ts +3 -18
  112. package/dist/bits/collapsible/exports.d.ts +4 -0
  113. package/dist/bits/collapsible/exports.js +3 -0
  114. package/dist/bits/collapsible/index.d.ts +1 -4
  115. package/dist/bits/collapsible/index.js +1 -3
  116. package/dist/bits/collapsible/types.d.ts +6 -14
  117. package/dist/bits/combobox/components/combobox-input.svelte +6 -7
  118. package/dist/bits/combobox/components/combobox-input.svelte.d.ts +3 -18
  119. package/dist/bits/combobox/components/combobox-trigger.svelte +8 -8
  120. package/dist/bits/combobox/components/combobox-trigger.svelte.d.ts +3 -18
  121. package/dist/bits/combobox/components/combobox.svelte +23 -34
  122. package/dist/bits/combobox/components/combobox.svelte.d.ts +2 -17
  123. package/dist/bits/combobox/exports.d.ts +15 -0
  124. package/dist/bits/combobox/exports.js +14 -0
  125. package/dist/bits/combobox/index.d.ts +1 -8
  126. package/dist/bits/combobox/index.js +1 -7
  127. package/dist/bits/combobox/types.d.ts +3 -3
  128. package/dist/bits/command/command-score.js +1 -2
  129. package/dist/bits/command/command.svelte.d.ts +21 -27
  130. package/dist/bits/command/command.svelte.js +108 -122
  131. package/dist/bits/command/components/_command-label.svelte +2 -2
  132. package/dist/bits/command/components/_command-label.svelte.d.ts +3 -18
  133. package/dist/bits/command/components/command-empty.svelte +4 -5
  134. package/dist/bits/command/components/command-empty.svelte.d.ts +3 -18
  135. package/dist/bits/command/components/command-group-heading.svelte +4 -5
  136. package/dist/bits/command/components/command-group-heading.svelte.d.ts +3 -18
  137. package/dist/bits/command/components/command-group-items.svelte +4 -5
  138. package/dist/bits/command/components/command-group-items.svelte.d.ts +3 -18
  139. package/dist/bits/command/components/command-group.svelte +2 -3
  140. package/dist/bits/command/components/command-group.svelte.d.ts +2 -17
  141. package/dist/bits/command/components/command-input.svelte +4 -5
  142. package/dist/bits/command/components/command-input.svelte.d.ts +3 -18
  143. package/dist/bits/command/components/command-item.svelte +7 -8
  144. package/dist/bits/command/components/command-item.svelte.d.ts +3 -18
  145. package/dist/bits/command/components/command-link-item.svelte +7 -8
  146. package/dist/bits/command/components/command-link-item.svelte.d.ts +3 -18
  147. package/dist/bits/command/components/command-list.svelte +4 -5
  148. package/dist/bits/command/components/command-list.svelte.d.ts +3 -18
  149. package/dist/bits/command/components/command-loading.svelte +4 -5
  150. package/dist/bits/command/components/command-loading.svelte.d.ts +3 -18
  151. package/dist/bits/command/components/command-separator.svelte +4 -5
  152. package/dist/bits/command/components/command-separator.svelte.d.ts +3 -18
  153. package/dist/bits/command/components/command-viewport.svelte +3 -3
  154. package/dist/bits/command/components/command-viewport.svelte.d.ts +3 -18
  155. package/dist/bits/command/components/command.svelte +9 -13
  156. package/dist/bits/command/components/command.svelte.d.ts +3 -18
  157. package/dist/bits/command/exports.d.ts +13 -0
  158. package/dist/bits/command/exports.js +12 -0
  159. package/dist/bits/command/index.d.ts +1 -13
  160. package/dist/bits/command/index.js +1 -12
  161. package/dist/bits/command/types.d.ts +17 -21
  162. package/dist/bits/context-menu/components/context-menu-content-static.svelte +80 -45
  163. package/dist/bits/context-menu/components/context-menu-content-static.svelte.d.ts +3 -18
  164. package/dist/bits/context-menu/components/context-menu-content.svelte +79 -51
  165. package/dist/bits/context-menu/components/context-menu-content.svelte.d.ts +3 -18
  166. package/dist/bits/context-menu/components/context-menu-trigger.svelte +4 -5
  167. package/dist/bits/context-menu/components/context-menu-trigger.svelte.d.ts +3 -18
  168. package/dist/bits/context-menu/components/context-menu.svelte +10 -19
  169. package/dist/bits/context-menu/components/context-menu.svelte.d.ts +2 -18
  170. package/dist/bits/context-menu/exports.d.ts +18 -0
  171. package/dist/bits/context-menu/exports.js +17 -0
  172. package/dist/bits/context-menu/index.d.ts +1 -18
  173. package/dist/bits/context-menu/index.js +1 -17
  174. package/dist/bits/context-menu/types.d.ts +3 -3
  175. package/dist/bits/date-field/components/date-field-input.svelte +4 -5
  176. package/dist/bits/date-field/components/date-field-input.svelte.d.ts +3 -18
  177. package/dist/bits/date-field/components/date-field-label.svelte +4 -5
  178. package/dist/bits/date-field/components/date-field-label.svelte.d.ts +3 -18
  179. package/dist/bits/date-field/components/date-field-segment.svelte +4 -5
  180. package/dist/bits/date-field/components/date-field-segment.svelte.d.ts +3 -18
  181. package/dist/bits/date-field/components/date-field.svelte +9 -23
  182. package/dist/bits/date-field/components/date-field.svelte.d.ts +2 -17
  183. package/dist/bits/date-field/date-field.svelte.d.ts +83 -77
  184. package/dist/bits/date-field/date-field.svelte.js +167 -150
  185. package/dist/bits/date-field/exports.d.ts +5 -0
  186. package/dist/bits/date-field/exports.js +4 -0
  187. package/dist/bits/date-field/index.d.ts +1 -5
  188. package/dist/bits/date-field/index.js +1 -4
  189. package/dist/bits/date-field/types.d.ts +8 -26
  190. package/dist/bits/date-picker/components/date-picker-calendar.svelte +6 -7
  191. package/dist/bits/date-picker/components/date-picker-calendar.svelte.d.ts +3 -18
  192. package/dist/bits/date-picker/components/date-picker-content-static.svelte +8 -4
  193. package/dist/bits/date-picker/components/date-picker-content-static.svelte.d.ts +3 -18
  194. package/dist/bits/date-picker/components/date-picker-content.svelte +5 -5
  195. package/dist/bits/date-picker/components/date-picker-content.svelte.d.ts +3 -18
  196. package/dist/bits/date-picker/components/date-picker-trigger.svelte +8 -5
  197. package/dist/bits/date-picker/components/date-picker-trigger.svelte.d.ts +3 -18
  198. package/dist/bits/date-picker/components/date-picker.svelte +13 -36
  199. package/dist/bits/date-picker/components/date-picker.svelte.d.ts +2 -17
  200. package/dist/bits/date-picker/date-picker.svelte.d.ts +4 -3
  201. package/dist/bits/date-picker/date-picker.svelte.js +3 -3
  202. package/dist/bits/date-picker/exports.d.ts +22 -0
  203. package/dist/bits/date-picker/exports.js +21 -0
  204. package/dist/bits/date-picker/index.d.ts +1 -22
  205. package/dist/bits/date-picker/index.js +1 -21
  206. package/dist/bits/date-picker/types.d.ts +4 -30
  207. package/dist/bits/date-range-field/components/date-range-field-input.svelte +4 -5
  208. package/dist/bits/date-range-field/components/date-range-field-input.svelte.d.ts +3 -18
  209. package/dist/bits/date-range-field/components/date-range-field-label.svelte +4 -5
  210. package/dist/bits/date-range-field/components/date-range-field-label.svelte.d.ts +3 -18
  211. package/dist/bits/date-range-field/components/date-range-field.svelte +13 -31
  212. package/dist/bits/date-range-field/components/date-range-field.svelte.d.ts +3 -18
  213. package/dist/bits/date-range-field/date-range-field.svelte.d.ts +9 -29
  214. package/dist/bits/date-range-field/date-range-field.svelte.js +37 -60
  215. package/dist/bits/date-range-field/exports.d.ts +5 -0
  216. package/dist/bits/date-range-field/exports.js +4 -0
  217. package/dist/bits/date-range-field/index.d.ts +1 -5
  218. package/dist/bits/date-range-field/index.js +1 -4
  219. package/dist/bits/date-range-field/types.d.ts +9 -26
  220. package/dist/bits/date-range-picker/components/date-range-picker-calendar.svelte +6 -7
  221. package/dist/bits/date-range-picker/components/date-range-picker-calendar.svelte.d.ts +3 -18
  222. package/dist/bits/date-range-picker/components/date-range-picker-trigger.svelte +8 -5
  223. package/dist/bits/date-range-picker/components/date-range-picker-trigger.svelte.d.ts +3 -18
  224. package/dist/bits/date-range-picker/components/date-range-picker.svelte +20 -47
  225. package/dist/bits/date-range-picker/components/date-range-picker.svelte.d.ts +3 -18
  226. package/dist/bits/date-range-picker/date-range-picker.svelte.d.ts +4 -3
  227. package/dist/bits/date-range-picker/date-range-picker.svelte.js +3 -3
  228. package/dist/bits/date-range-picker/exports.d.ts +21 -0
  229. package/dist/bits/date-range-picker/exports.js +20 -0
  230. package/dist/bits/date-range-picker/index.d.ts +1 -21
  231. package/dist/bits/date-range-picker/index.js +1 -20
  232. package/dist/bits/date-range-picker/types.d.ts +5 -32
  233. package/dist/bits/dialog/components/dialog-close.svelte +6 -5
  234. package/dist/bits/dialog/components/dialog-close.svelte.d.ts +2 -17
  235. package/dist/bits/dialog/components/dialog-content.svelte +20 -17
  236. package/dist/bits/dialog/components/dialog-content.svelte.d.ts +3 -18
  237. package/dist/bits/dialog/components/dialog-description.svelte +4 -5
  238. package/dist/bits/dialog/components/dialog-description.svelte.d.ts +3 -18
  239. package/dist/bits/dialog/components/dialog-overlay.svelte +4 -5
  240. package/dist/bits/dialog/components/dialog-overlay.svelte.d.ts +3 -18
  241. package/dist/bits/dialog/components/dialog-title.svelte +4 -5
  242. package/dist/bits/dialog/components/dialog-title.svelte.d.ts +3 -18
  243. package/dist/bits/dialog/components/dialog-trigger.svelte +6 -5
  244. package/dist/bits/dialog/components/dialog-trigger.svelte.d.ts +3 -18
  245. package/dist/bits/dialog/components/dialog.svelte +5 -14
  246. package/dist/bits/dialog/components/dialog.svelte.d.ts +2 -17
  247. package/dist/bits/dialog/dialog.svelte.d.ts +34 -18
  248. package/dist/bits/dialog/dialog.svelte.js +106 -54
  249. package/dist/bits/dialog/exports.d.ts +9 -0
  250. package/dist/bits/dialog/exports.js +8 -0
  251. package/dist/bits/dialog/index.d.ts +1 -9
  252. package/dist/bits/dialog/index.js +1 -8
  253. package/dist/bits/dialog/types.d.ts +9 -18
  254. package/dist/bits/dropdown-menu/components/dropdown-menu-content-static.svelte +67 -33
  255. package/dist/bits/dropdown-menu/components/dropdown-menu-content-static.svelte.d.ts +3 -18
  256. package/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte +68 -34
  257. package/dist/bits/dropdown-menu/components/dropdown-menu-content.svelte.d.ts +3 -18
  258. package/dist/bits/dropdown-menu/exports.d.ts +18 -0
  259. package/dist/bits/dropdown-menu/exports.js +17 -0
  260. package/dist/bits/dropdown-menu/index.d.ts +1 -18
  261. package/dist/bits/dropdown-menu/index.js +1 -17
  262. package/dist/bits/dropdown-menu/types.d.ts +1 -1
  263. package/dist/bits/index.d.ts +38 -38
  264. package/dist/bits/index.js +38 -38
  265. package/dist/bits/label/components/label.svelte +4 -5
  266. package/dist/bits/label/components/label.svelte.d.ts +3 -18
  267. package/dist/bits/label/exports.d.ts +2 -0
  268. package/dist/bits/label/exports.js +1 -0
  269. package/dist/bits/label/index.d.ts +1 -2
  270. package/dist/bits/label/index.js +1 -1
  271. package/dist/bits/label/label.svelte.d.ts +4 -3
  272. package/dist/bits/label/label.svelte.js +5 -4
  273. package/dist/bits/label/types.d.ts +2 -2
  274. package/dist/bits/link-preview/components/link-preview-content-static.svelte +72 -33
  275. package/dist/bits/link-preview/components/link-preview-content-static.svelte.d.ts +3 -18
  276. package/dist/bits/link-preview/components/link-preview-content.svelte +75 -35
  277. package/dist/bits/link-preview/components/link-preview-content.svelte.d.ts +3 -18
  278. package/dist/bits/link-preview/components/link-preview-trigger.svelte +4 -5
  279. package/dist/bits/link-preview/components/link-preview-trigger.svelte.d.ts +3 -18
  280. package/dist/bits/link-preview/components/link-preview.svelte +5 -10
  281. package/dist/bits/link-preview/components/link-preview.svelte.d.ts +2 -17
  282. package/dist/bits/link-preview/exports.d.ts +7 -0
  283. package/dist/bits/link-preview/exports.js +6 -0
  284. package/dist/bits/link-preview/index.d.ts +1 -7
  285. package/dist/bits/link-preview/index.js +1 -6
  286. package/dist/bits/link-preview/link-preview.svelte.d.ts +22 -19
  287. package/dist/bits/link-preview/link-preview.svelte.js +67 -57
  288. package/dist/bits/link-preview/types.d.ts +10 -24
  289. package/dist/bits/menu/components/menu-arrow.svelte +5 -5
  290. package/dist/bits/menu/components/menu-arrow.svelte.d.ts +2 -17
  291. package/dist/bits/menu/components/menu-checkbox-item.svelte +20 -15
  292. package/dist/bits/menu/components/menu-checkbox-item.svelte.d.ts +3 -18
  293. package/dist/bits/menu/components/menu-content-static.svelte +73 -48
  294. package/dist/bits/menu/components/menu-content-static.svelte.d.ts +3 -18
  295. package/dist/bits/menu/components/menu-content.svelte +74 -48
  296. package/dist/bits/menu/components/menu-content.svelte.d.ts +3 -18
  297. package/dist/bits/menu/components/menu-group-heading.svelte +4 -5
  298. package/dist/bits/menu/components/menu-group-heading.svelte.d.ts +3 -18
  299. package/dist/bits/menu/components/menu-group.svelte +4 -5
  300. package/dist/bits/menu/components/menu-group.svelte.d.ts +3 -18
  301. package/dist/bits/menu/components/menu-item.svelte +7 -6
  302. package/dist/bits/menu/components/menu-item.svelte.d.ts +3 -18
  303. package/dist/bits/menu/components/menu-radio-group.svelte +7 -13
  304. package/dist/bits/menu/components/menu-radio-group.svelte.d.ts +3 -18
  305. package/dist/bits/menu/components/menu-radio-item.svelte +7 -6
  306. package/dist/bits/menu/components/menu-radio-item.svelte.d.ts +3 -18
  307. package/dist/bits/menu/components/menu-separator.svelte +4 -5
  308. package/dist/bits/menu/components/menu-separator.svelte.d.ts +3 -18
  309. package/dist/bits/menu/components/menu-sub-content-static.svelte +89 -56
  310. package/dist/bits/menu/components/menu-sub-content-static.svelte.d.ts +3 -18
  311. package/dist/bits/menu/components/menu-sub-content.svelte +102 -59
  312. package/dist/bits/menu/components/menu-sub-content.svelte.d.ts +3 -18
  313. package/dist/bits/menu/components/menu-sub-trigger.svelte +7 -8
  314. package/dist/bits/menu/components/menu-sub-trigger.svelte.d.ts +3 -18
  315. package/dist/bits/menu/components/menu-sub.svelte +8 -17
  316. package/dist/bits/menu/components/menu-sub.svelte.d.ts +2 -18
  317. package/dist/bits/menu/components/menu-trigger.svelte +9 -9
  318. package/dist/bits/menu/components/menu-trigger.svelte.d.ts +3 -18
  319. package/dist/bits/menu/components/menu.svelte +10 -19
  320. package/dist/bits/menu/components/menu.svelte.d.ts +5 -25
  321. package/dist/bits/menu/menu.svelte.d.ts +115 -111
  322. package/dist/bits/menu/menu.svelte.js +258 -296
  323. package/dist/bits/menu/types.d.ts +50 -59
  324. package/dist/bits/menubar/components/menubar-content-static.svelte +4 -5
  325. package/dist/bits/menubar/components/menubar-content-static.svelte.d.ts +3 -18
  326. package/dist/bits/menubar/components/menubar-content.svelte +4 -5
  327. package/dist/bits/menubar/components/menubar-content.svelte.d.ts +3 -18
  328. package/dist/bits/menubar/components/menubar-menu.svelte +3 -3
  329. package/dist/bits/menubar/components/menubar-menu.svelte.d.ts +2 -17
  330. package/dist/bits/menubar/components/menubar-trigger.svelte +4 -5
  331. package/dist/bits/menubar/components/menubar-trigger.svelte.d.ts +3 -18
  332. package/dist/bits/menubar/components/menubar.svelte +7 -13
  333. package/dist/bits/menubar/components/menubar.svelte.d.ts +3 -18
  334. package/dist/bits/menubar/exports.d.ts +20 -0
  335. package/dist/bits/menubar/exports.js +18 -0
  336. package/dist/bits/menubar/index.d.ts +1 -19
  337. package/dist/bits/menubar/index.js +1 -17
  338. package/dist/bits/menubar/menubar.svelte.d.ts +35 -33
  339. package/dist/bits/menubar/menubar.svelte.js +78 -85
  340. package/dist/bits/menubar/types.d.ts +5 -13
  341. package/dist/bits/navigation-menu/components/navigation-menu-content.svelte +5 -6
  342. package/dist/bits/navigation-menu/components/navigation-menu-content.svelte.d.ts +3 -18
  343. package/dist/bits/navigation-menu/components/navigation-menu-indicator.svelte +4 -5
  344. package/dist/bits/navigation-menu/components/navigation-menu-indicator.svelte.d.ts +3 -18
  345. package/dist/bits/navigation-menu/components/navigation-menu-item.svelte +4 -5
  346. package/dist/bits/navigation-menu/components/navigation-menu-item.svelte.d.ts +3 -18
  347. package/dist/bits/navigation-menu/components/navigation-menu-link.svelte +5 -6
  348. package/dist/bits/navigation-menu/components/navigation-menu-link.svelte.d.ts +3 -18
  349. package/dist/bits/navigation-menu/components/navigation-menu-list.svelte +4 -5
  350. package/dist/bits/navigation-menu/components/navigation-menu-list.svelte.d.ts +3 -18
  351. package/dist/bits/navigation-menu/components/navigation-menu-trigger.svelte +4 -5
  352. package/dist/bits/navigation-menu/components/navigation-menu-trigger.svelte.d.ts +3 -18
  353. package/dist/bits/navigation-menu/components/navigation-menu-viewport.svelte +4 -5
  354. package/dist/bits/navigation-menu/components/navigation-menu-viewport.svelte.d.ts +3 -18
  355. package/dist/bits/navigation-menu/components/navigation-menu.svelte +7 -13
  356. package/dist/bits/navigation-menu/components/navigation-menu.svelte.d.ts +3 -18
  357. package/dist/bits/navigation-menu/exports.d.ts +9 -0
  358. package/dist/bits/navigation-menu/exports.js +8 -0
  359. package/dist/bits/navigation-menu/index.d.ts +1 -9
  360. package/dist/bits/navigation-menu/index.js +1 -8
  361. package/dist/bits/navigation-menu/navigation-menu.svelte.d.ts +53 -61
  362. package/dist/bits/navigation-menu/navigation-menu.svelte.js +138 -170
  363. package/dist/bits/navigation-menu/types.d.ts +11 -18
  364. package/dist/bits/pagination/components/pagination-next-button.svelte +6 -5
  365. package/dist/bits/pagination/components/pagination-next-button.svelte.d.ts +3 -18
  366. package/dist/bits/pagination/components/pagination-page.svelte +6 -5
  367. package/dist/bits/pagination/components/pagination-page.svelte.d.ts +3 -18
  368. package/dist/bits/pagination/components/pagination-prev-button.svelte +6 -5
  369. package/dist/bits/pagination/components/pagination-prev-button.svelte.d.ts +3 -18
  370. package/dist/bits/pagination/components/pagination.svelte +7 -13
  371. package/dist/bits/pagination/components/pagination.svelte.d.ts +3 -18
  372. package/dist/bits/pagination/exports.d.ts +5 -0
  373. package/dist/bits/pagination/exports.js +4 -0
  374. package/dist/bits/pagination/index.d.ts +1 -5
  375. package/dist/bits/pagination/index.js +1 -4
  376. package/dist/bits/pagination/pagination.svelte.d.ts +24 -15
  377. package/dist/bits/pagination/pagination.svelte.js +82 -43
  378. package/dist/bits/pagination/types.d.ts +6 -13
  379. package/dist/bits/pin-input/components/pin-input-cell.svelte +4 -5
  380. package/dist/bits/pin-input/components/pin-input-cell.svelte.d.ts +3 -18
  381. package/dist/bits/pin-input/components/pin-input.svelte +9 -15
  382. package/dist/bits/pin-input/components/pin-input.svelte.d.ts +3 -18
  383. package/dist/bits/pin-input/exports.d.ts +3 -0
  384. package/dist/bits/pin-input/exports.js +2 -0
  385. package/dist/bits/pin-input/index.d.ts +1 -3
  386. package/dist/bits/pin-input/index.js +1 -2
  387. package/dist/bits/pin-input/pin-input.svelte.d.ts +19 -17
  388. package/dist/bits/pin-input/pin-input.svelte.js +82 -27
  389. package/dist/bits/pin-input/types.d.ts +3 -12
  390. package/dist/bits/pin-input/usePasswordManager.svelte.js +6 -6
  391. package/dist/bits/popover/components/popover-arrow.svelte +4 -4
  392. package/dist/bits/popover/components/popover-arrow.svelte.d.ts +2 -17
  393. package/dist/bits/popover/components/popover-close.svelte +4 -5
  394. package/dist/bits/popover/components/popover-close.svelte.d.ts +3 -18
  395. package/dist/bits/popover/components/popover-content-static.svelte +67 -44
  396. package/dist/bits/popover/components/popover-content-static.svelte.d.ts +3 -18
  397. package/dist/bits/popover/components/popover-content.svelte +66 -44
  398. package/dist/bits/popover/components/popover-content.svelte.d.ts +3 -18
  399. package/dist/bits/popover/components/popover-trigger.svelte +9 -8
  400. package/dist/bits/popover/components/popover-trigger.svelte.d.ts +3 -18
  401. package/dist/bits/popover/components/popover.svelte +8 -17
  402. package/dist/bits/popover/components/popover.svelte.d.ts +2 -17
  403. package/dist/bits/popover/exports.d.ts +9 -0
  404. package/dist/bits/popover/exports.js +7 -0
  405. package/dist/bits/popover/index.d.ts +1 -9
  406. package/dist/bits/popover/index.js +1 -7
  407. package/dist/bits/popover/popover.svelte.d.ts +34 -18
  408. package/dist/bits/popover/popover.svelte.js +92 -42
  409. package/dist/bits/popover/types.d.ts +9 -23
  410. package/dist/bits/progress/components/progress.svelte +4 -5
  411. package/dist/bits/progress/components/progress.svelte.d.ts +3 -18
  412. package/dist/bits/progress/exports.d.ts +2 -0
  413. package/dist/bits/progress/exports.js +1 -0
  414. package/dist/bits/progress/index.d.ts +1 -2
  415. package/dist/bits/progress/index.js +1 -1
  416. package/dist/bits/progress/progress.svelte.js +1 -7
  417. package/dist/bits/progress/types.d.ts +2 -2
  418. package/dist/bits/radio-group/components/radio-group-item.svelte +4 -5
  419. package/dist/bits/radio-group/components/radio-group-item.svelte.d.ts +3 -18
  420. package/dist/bits/radio-group/components/radio-group.svelte +8 -13
  421. package/dist/bits/radio-group/components/radio-group.svelte.d.ts +3 -18
  422. package/dist/bits/radio-group/exports.d.ts +3 -0
  423. package/dist/bits/radio-group/exports.js +2 -0
  424. package/dist/bits/radio-group/index.d.ts +1 -3
  425. package/dist/bits/radio-group/index.js +1 -2
  426. package/dist/bits/radio-group/radio-group.svelte.d.ts +13 -11
  427. package/dist/bits/radio-group/radio-group.svelte.js +42 -33
  428. package/dist/bits/radio-group/types.d.ts +3 -11
  429. package/dist/bits/range-calendar/components/range-calendar-cell.svelte +4 -5
  430. package/dist/bits/range-calendar/components/range-calendar-cell.svelte.d.ts +3 -18
  431. package/dist/bits/range-calendar/components/range-calendar-day.svelte +10 -5
  432. package/dist/bits/range-calendar/components/range-calendar-day.svelte.d.ts +3 -18
  433. package/dist/bits/range-calendar/components/range-calendar.svelte +12 -34
  434. package/dist/bits/range-calendar/components/range-calendar.svelte.d.ts +3 -18
  435. package/dist/bits/range-calendar/exports.d.ts +13 -0
  436. package/dist/bits/range-calendar/exports.js +12 -0
  437. package/dist/bits/range-calendar/index.d.ts +1 -13
  438. package/dist/bits/range-calendar/index.js +1 -12
  439. package/dist/bits/range-calendar/range-calendar.svelte.d.ts +33 -41
  440. package/dist/bits/range-calendar/range-calendar.svelte.js +158 -162
  441. package/dist/bits/range-calendar/types.d.ts +3 -21
  442. package/dist/bits/scroll-area/components/scroll-area-corner-impl.svelte +3 -4
  443. package/dist/bits/scroll-area/components/scroll-area-corner-impl.svelte.d.ts +5 -19
  444. package/dist/bits/scroll-area/components/scroll-area-corner.svelte +5 -5
  445. package/dist/bits/scroll-area/components/scroll-area-corner.svelte.d.ts +3 -18
  446. package/dist/bits/scroll-area/components/scroll-area-scrollbar-auto.svelte +2 -2
  447. package/dist/bits/scroll-area/components/scroll-area-scrollbar-auto.svelte.d.ts +2 -17
  448. package/dist/bits/scroll-area/components/scroll-area-scrollbar-hover.svelte +2 -2
  449. package/dist/bits/scroll-area/components/scroll-area-scrollbar-hover.svelte.d.ts +2 -17
  450. package/dist/bits/scroll-area/components/scroll-area-scrollbar-scroll.svelte +2 -2
  451. package/dist/bits/scroll-area/components/scroll-area-scrollbar-scroll.svelte.d.ts +2 -17
  452. package/dist/bits/scroll-area/components/scroll-area-scrollbar-shared.svelte +1 -1
  453. package/dist/bits/scroll-area/components/scroll-area-scrollbar-shared.svelte.d.ts +2 -17
  454. package/dist/bits/scroll-area/components/scroll-area-scrollbar-visible.svelte.d.ts +2 -17
  455. package/dist/bits/scroll-area/components/scroll-area-scrollbar-x.svelte +3 -3
  456. package/dist/bits/scroll-area/components/scroll-area-scrollbar-x.svelte.d.ts +2 -17
  457. package/dist/bits/scroll-area/components/scroll-area-scrollbar-y.svelte +3 -3
  458. package/dist/bits/scroll-area/components/scroll-area-scrollbar-y.svelte.d.ts +2 -17
  459. package/dist/bits/scroll-area/components/scroll-area-scrollbar.svelte +3 -3
  460. package/dist/bits/scroll-area/components/scroll-area-scrollbar.svelte.d.ts +3 -18
  461. package/dist/bits/scroll-area/components/scroll-area-thumb-impl.svelte +3 -4
  462. package/dist/bits/scroll-area/components/scroll-area-thumb-impl.svelte.d.ts +5 -19
  463. package/dist/bits/scroll-area/components/scroll-area-thumb.svelte +6 -6
  464. package/dist/bits/scroll-area/components/scroll-area-thumb.svelte.d.ts +3 -18
  465. package/dist/bits/scroll-area/components/scroll-area-viewport.svelte +18 -5
  466. package/dist/bits/scroll-area/components/scroll-area-viewport.svelte.d.ts +3 -18
  467. package/dist/bits/scroll-area/components/scroll-area.svelte +4 -5
  468. package/dist/bits/scroll-area/components/scroll-area.svelte.d.ts +3 -18
  469. package/dist/bits/scroll-area/exports.d.ts +6 -0
  470. package/dist/bits/scroll-area/exports.js +5 -0
  471. package/dist/bits/scroll-area/index.d.ts +1 -6
  472. package/dist/bits/scroll-area/index.js +1 -5
  473. package/dist/bits/scroll-area/scroll-area.svelte.d.ts +51 -51
  474. package/dist/bits/scroll-area/scroll-area.svelte.js +113 -129
  475. package/dist/bits/scroll-area/types.d.ts +6 -6
  476. package/dist/bits/select/components/select-content-static.svelte +100 -0
  477. package/dist/bits/select/components/select-content-static.svelte.d.ts +4 -0
  478. package/dist/bits/select/components/select-content.svelte +87 -36
  479. package/dist/bits/select/components/select-content.svelte.d.ts +3 -18
  480. package/dist/bits/select/components/select-group-heading.svelte +7 -8
  481. package/dist/bits/select/components/select-group-heading.svelte.d.ts +3 -18
  482. package/dist/bits/select/components/select-group.svelte +7 -7
  483. package/dist/bits/select/components/select-group.svelte.d.ts +3 -18
  484. package/dist/bits/{listbox/components/listbox-hidden-input.svelte → select/components/select-hidden-input.svelte} +4 -4
  485. package/dist/bits/select/components/select-hidden-input.svelte.d.ts +6 -0
  486. package/dist/bits/select/components/select-item.svelte +24 -13
  487. package/dist/bits/select/components/select-item.svelte.d.ts +3 -18
  488. package/dist/bits/select/components/select-scroll-down-button.svelte +22 -12
  489. package/dist/bits/select/components/select-scroll-down-button.svelte.d.ts +3 -18
  490. package/dist/bits/select/components/select-scroll-up-button.svelte +24 -14
  491. package/dist/bits/select/components/select-scroll-up-button.svelte.d.ts +3 -18
  492. package/dist/bits/select/components/select-trigger.svelte +7 -9
  493. package/dist/bits/select/components/select-trigger.svelte.d.ts +3 -18
  494. package/dist/bits/select/components/select-viewport.svelte +14 -5
  495. package/dist/bits/select/components/select-viewport.svelte.d.ts +3 -18
  496. package/dist/bits/select/components/select.svelte +52 -66
  497. package/dist/bits/select/components/select.svelte.d.ts +2 -17
  498. package/dist/bits/select/exports.d.ts +12 -0
  499. package/dist/bits/select/exports.js +11 -0
  500. package/dist/bits/select/index.d.ts +1 -15
  501. package/dist/bits/select/index.js +1 -14
  502. package/dist/bits/select/select.svelte.d.ts +320 -286
  503. package/dist/bits/select/select.svelte.js +830 -918
  504. package/dist/bits/select/types.d.ts +123 -91
  505. package/dist/bits/separator/components/separator.svelte +4 -5
  506. package/dist/bits/separator/components/separator.svelte.d.ts +3 -18
  507. package/dist/bits/separator/exports.d.ts +2 -0
  508. package/dist/bits/separator/exports.js +1 -0
  509. package/dist/bits/separator/index.d.ts +1 -2
  510. package/dist/bits/separator/index.js +1 -1
  511. package/dist/bits/separator/separator.svelte.js +1 -1
  512. package/dist/bits/separator/types.d.ts +2 -2
  513. package/dist/bits/slider/components/slider-range.svelte +4 -5
  514. package/dist/bits/slider/components/slider-range.svelte.d.ts +3 -18
  515. package/dist/bits/slider/components/slider-thumb.svelte +4 -5
  516. package/dist/bits/slider/components/slider-thumb.svelte.d.ts +3 -18
  517. package/dist/bits/slider/components/slider-tick.svelte +4 -5
  518. package/dist/bits/slider/components/slider-tick.svelte.d.ts +3 -18
  519. package/dist/bits/slider/components/slider.svelte +19 -17
  520. package/dist/bits/slider/components/slider.svelte.d.ts +3 -18
  521. package/dist/bits/slider/exports.d.ts +5 -0
  522. package/dist/bits/slider/exports.js +4 -0
  523. package/dist/bits/slider/index.d.ts +1 -5
  524. package/dist/bits/slider/index.js +1 -4
  525. package/dist/bits/slider/slider.svelte.d.ts +119 -48
  526. package/dist/bits/slider/slider.svelte.js +281 -95
  527. package/dist/bits/slider/types.d.ts +54 -28
  528. package/dist/bits/switch/components/switch-thumb.svelte +4 -5
  529. package/dist/bits/switch/components/switch-thumb.svelte.d.ts +3 -18
  530. package/dist/bits/switch/components/switch.svelte +7 -13
  531. package/dist/bits/switch/components/switch.svelte.d.ts +3 -18
  532. package/dist/bits/switch/exports.d.ts +3 -0
  533. package/dist/bits/switch/exports.js +2 -0
  534. package/dist/bits/switch/index.d.ts +1 -3
  535. package/dist/bits/switch/index.js +1 -2
  536. package/dist/bits/switch/switch.svelte.d.ts +7 -7
  537. package/dist/bits/switch/switch.svelte.js +16 -24
  538. package/dist/bits/switch/types.d.ts +3 -12
  539. package/dist/bits/tabs/components/tabs-content.svelte +4 -5
  540. package/dist/bits/tabs/components/tabs-content.svelte.d.ts +3 -18
  541. package/dist/bits/tabs/components/tabs-list.svelte +4 -5
  542. package/dist/bits/tabs/components/tabs-list.svelte.d.ts +3 -18
  543. package/dist/bits/tabs/components/tabs-trigger.svelte +4 -5
  544. package/dist/bits/tabs/components/tabs-trigger.svelte.d.ts +3 -18
  545. package/dist/bits/tabs/components/tabs.svelte +7 -13
  546. package/dist/bits/tabs/components/tabs.svelte.d.ts +3 -18
  547. package/dist/bits/tabs/exports.d.ts +5 -0
  548. package/dist/bits/tabs/exports.js +4 -0
  549. package/dist/bits/tabs/index.d.ts +1 -5
  550. package/dist/bits/tabs/index.js +1 -4
  551. package/dist/bits/tabs/tabs.svelte.d.ts +12 -13
  552. package/dist/bits/tabs/tabs.svelte.js +44 -71
  553. package/dist/bits/tabs/types.d.ts +5 -13
  554. package/dist/bits/toggle/components/toggle.svelte +7 -13
  555. package/dist/bits/toggle/components/toggle.svelte.d.ts +3 -18
  556. package/dist/bits/toggle/exports.d.ts +2 -0
  557. package/dist/bits/toggle/exports.js +1 -0
  558. package/dist/bits/toggle/index.d.ts +1 -2
  559. package/dist/bits/toggle/index.js +1 -1
  560. package/dist/bits/toggle/toggle.svelte.d.ts +6 -5
  561. package/dist/bits/toggle/toggle.svelte.js +9 -19
  562. package/dist/bits/toggle/types.d.ts +2 -11
  563. package/dist/bits/toggle-group/components/toggle-group-item.svelte +4 -5
  564. package/dist/bits/toggle-group/components/toggle-group-item.svelte.d.ts +3 -18
  565. package/dist/bits/toggle-group/components/toggle-group.svelte +10 -17
  566. package/dist/bits/toggle-group/components/toggle-group.svelte.d.ts +3 -18
  567. package/dist/bits/toggle-group/exports.d.ts +3 -0
  568. package/dist/bits/toggle-group/exports.js +2 -0
  569. package/dist/bits/toggle-group/index.d.ts +1 -3
  570. package/dist/bits/toggle-group/index.js +1 -2
  571. package/dist/bits/toggle-group/toggle-group.svelte.d.ts +14 -13
  572. package/dist/bits/toggle-group/toggle-group.svelte.js +38 -32
  573. package/dist/bits/toggle-group/types.d.ts +5 -13
  574. package/dist/bits/toolbar/components/toolbar-button.svelte +4 -5
  575. package/dist/bits/toolbar/components/toolbar-button.svelte.d.ts +3 -18
  576. package/dist/bits/toolbar/components/toolbar-group-item.svelte +4 -5
  577. package/dist/bits/toolbar/components/toolbar-group-item.svelte.d.ts +2 -17
  578. package/dist/bits/toolbar/components/toolbar-group.svelte +9 -17
  579. package/dist/bits/toolbar/components/toolbar-group.svelte.d.ts +3 -18
  580. package/dist/bits/toolbar/components/toolbar-link.svelte +4 -5
  581. package/dist/bits/toolbar/components/toolbar-link.svelte.d.ts +3 -18
  582. package/dist/bits/toolbar/components/toolbar.svelte +4 -5
  583. package/dist/bits/toolbar/components/toolbar.svelte.d.ts +3 -18
  584. package/dist/bits/toolbar/exports.d.ts +6 -0
  585. package/dist/bits/toolbar/exports.js +5 -0
  586. package/dist/bits/toolbar/index.d.ts +1 -6
  587. package/dist/bits/toolbar/index.js +1 -5
  588. package/dist/bits/toolbar/toolbar.svelte.d.ts +17 -19
  589. package/dist/bits/toolbar/toolbar.svelte.js +57 -59
  590. package/dist/bits/toolbar/types.d.ts +5 -5
  591. package/dist/bits/tooltip/components/tooltip-arrow.svelte +4 -4
  592. package/dist/bits/tooltip/components/tooltip-arrow.svelte.d.ts +2 -17
  593. package/dist/bits/tooltip/components/tooltip-content-static.svelte +71 -32
  594. package/dist/bits/tooltip/components/tooltip-content-static.svelte.d.ts +3 -18
  595. package/dist/bits/tooltip/components/tooltip-content.svelte +71 -33
  596. package/dist/bits/tooltip/components/tooltip-content.svelte.d.ts +3 -18
  597. package/dist/bits/tooltip/components/tooltip-provider.svelte +2 -2
  598. package/dist/bits/tooltip/components/tooltip-provider.svelte.d.ts +2 -18
  599. package/dist/bits/tooltip/components/tooltip-trigger.svelte +7 -8
  600. package/dist/bits/tooltip/components/tooltip-trigger.svelte.d.ts +3 -18
  601. package/dist/bits/tooltip/components/tooltip.svelte +11 -16
  602. package/dist/bits/tooltip/components/tooltip.svelte.d.ts +2 -18
  603. package/dist/bits/tooltip/exports.d.ts +9 -0
  604. package/dist/bits/tooltip/exports.js +7 -0
  605. package/dist/bits/tooltip/index.d.ts +1 -9
  606. package/dist/bits/tooltip/index.js +1 -7
  607. package/dist/bits/tooltip/tooltip.svelte.d.ts +14 -10
  608. package/dist/bits/tooltip/tooltip.svelte.js +42 -52
  609. package/dist/bits/tooltip/types.d.ts +10 -24
  610. package/dist/bits/utilities/arrow/arrow.svelte +3 -3
  611. package/dist/bits/utilities/arrow/arrow.svelte.d.ts +2 -17
  612. package/dist/bits/utilities/arrow/types.d.ts +2 -2
  613. package/dist/bits/utilities/dismissible-layer/dismissible-layer.svelte +1 -3
  614. package/dist/bits/utilities/dismissible-layer/dismissible-layer.svelte.d.ts +2 -17
  615. package/dist/bits/utilities/dismissible-layer/types.d.ts +3 -14
  616. package/dist/bits/utilities/dismissible-layer/{useDismissibleLayer.svelte.js → use-dismissable-layer.svelte.js} +95 -78
  617. package/dist/bits/utilities/escape-layer/escape-layer.svelte +1 -1
  618. package/dist/bits/utilities/escape-layer/escape-layer.svelte.d.ts +2 -17
  619. package/dist/bits/utilities/escape-layer/{useEscapeLayer.svelte.js → use-escape-layer.svelte.js} +10 -10
  620. package/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte +1 -1
  621. package/dist/bits/utilities/floating-layer/components/floating-layer-anchor.svelte.d.ts +2 -17
  622. package/dist/bits/utilities/floating-layer/components/floating-layer-arrow.svelte +4 -6
  623. package/dist/bits/utilities/floating-layer/components/floating-layer-arrow.svelte.d.ts +2 -17
  624. package/dist/bits/utilities/floating-layer/components/floating-layer-content-static.svelte +4 -2
  625. package/dist/bits/utilities/floating-layer/components/floating-layer-content-static.svelte.d.ts +10 -21
  626. package/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte +4 -7
  627. package/dist/bits/utilities/floating-layer/components/floating-layer-content.svelte.d.ts +2 -17
  628. package/dist/bits/utilities/floating-layer/components/floating-layer.svelte +1 -1
  629. package/dist/bits/utilities/floating-layer/components/floating-layer.svelte.d.ts +4 -18
  630. package/dist/bits/utilities/floating-layer/types.d.ts +9 -1
  631. package/dist/bits/utilities/floating-layer/{useFloatingLayer.svelte.d.ts → use-floating-layer.svelte.d.ts} +10 -13
  632. package/dist/bits/utilities/floating-layer/{useFloatingLayer.svelte.js → use-floating-layer.svelte.js} +19 -42
  633. package/dist/bits/utilities/focus-scope/focus-scope-stack.svelte.js +2 -2
  634. package/dist/bits/utilities/focus-scope/focus-scope.svelte +4 -2
  635. package/dist/bits/utilities/focus-scope/focus-scope.svelte.d.ts +2 -17
  636. package/dist/bits/utilities/focus-scope/types.d.ts +5 -1
  637. package/dist/bits/utilities/focus-scope/{useFocusScope.svelte.d.ts → use-focus-scope.svelte.d.ts} +5 -1
  638. package/dist/bits/utilities/focus-scope/{useFocusScope.svelte.js → use-focus-scope.svelte.js} +74 -65
  639. package/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.d.ts +13 -0
  640. package/dist/bits/utilities/is-using-keyboard/is-using-keyboard.svelte.js +51 -0
  641. package/dist/bits/utilities/mounted.svelte +5 -7
  642. package/dist/bits/utilities/mounted.svelte.d.ts +4 -18
  643. package/dist/bits/utilities/popper-layer/popper-content.svelte.d.ts +5 -23
  644. package/dist/bits/utilities/popper-layer/popper-layer-force-mount.svelte +85 -0
  645. package/dist/bits/utilities/popper-layer/popper-layer-force-mount.svelte.d.ts +7 -0
  646. package/dist/bits/utilities/popper-layer/popper-layer-inner.svelte +127 -0
  647. package/dist/bits/utilities/popper-layer/popper-layer-inner.svelte.d.ts +7 -0
  648. package/dist/bits/utilities/popper-layer/popper-layer.svelte +23 -67
  649. package/dist/bits/utilities/popper-layer/popper-layer.svelte.d.ts +2 -17
  650. package/dist/bits/utilities/popper-layer/types.d.ts +8 -5
  651. package/dist/bits/utilities/portal/portal-consumer.svelte.d.ts +4 -18
  652. package/dist/bits/utilities/portal/portal.svelte +19 -18
  653. package/dist/bits/utilities/portal/portal.svelte.d.ts +2 -17
  654. package/dist/bits/utilities/presence-layer/presence-layer.svelte +1 -1
  655. package/dist/bits/utilities/presence-layer/presence-layer.svelte.d.ts +2 -17
  656. package/dist/bits/utilities/presence-layer/{usePresence.svelte.d.ts → use-presence.svelte.d.ts} +1 -1
  657. package/dist/bits/utilities/presence-layer/{usePresence.svelte.js → use-presence.svelte.js} +16 -26
  658. package/dist/bits/utilities/scroll-lock/index.d.ts +10 -0
  659. package/dist/bits/utilities/scroll-lock/scroll-lock.svelte +3 -3
  660. package/dist/bits/utilities/scroll-lock/scroll-lock.svelte.d.ts +2 -17
  661. package/dist/bits/utilities/text-selection-layer/text-selection-layer.svelte +1 -1
  662. package/dist/bits/utilities/text-selection-layer/text-selection-layer.svelte.d.ts +2 -17
  663. package/dist/bits/utilities/text-selection-layer/{useTextSelectionLayer.svelte.js → use-text-selection-layer.svelte.js} +13 -15
  664. package/dist/bits/utilities/visually-hidden/types.d.ts +2 -2
  665. package/dist/bits/utilities/visually-hidden/visually-hidden.svelte +1 -1
  666. package/dist/bits/utilities/visually-hidden/visually-hidden.svelte.d.ts +2 -17
  667. package/dist/index.d.ts +1 -2
  668. package/dist/index.js +1 -1
  669. package/dist/internal/arrays.d.ts +23 -0
  670. package/dist/internal/arrays.js +35 -0
  671. package/dist/internal/attrs.d.ts +1 -1
  672. package/dist/internal/attrs.js +3 -3
  673. package/dist/internal/{createEventHook.svelte.js → create-event-hook.svelte.js} +1 -1
  674. package/dist/{shared/date → internal/date-time}/announcer.js +3 -14
  675. package/dist/{shared/date → internal/date-time}/calendar-helpers.svelte.d.ts +3 -6
  676. package/dist/{shared/date → internal/date-time}/calendar-helpers.svelte.js +15 -15
  677. package/dist/{shared/date → internal/date-time}/field/helpers.d.ts +2 -1
  678. package/dist/{shared/date → internal/date-time}/field/helpers.js +15 -15
  679. package/dist/{shared/date/field.js → internal/date-time/field/segments.js} +4 -5
  680. package/dist/{shared/date → internal/date-time}/formatter.d.ts +2 -1
  681. package/dist/{shared/date → internal/date-time}/formatter.js +3 -2
  682. package/dist/{shared/date → internal/date-time}/utils.d.ts +1 -1
  683. package/dist/{shared/date → internal/date-time}/utils.js +0 -12
  684. package/dist/internal/debounce.js +1 -1
  685. package/dist/internal/events.d.ts +14 -0
  686. package/dist/internal/events.js +32 -0
  687. package/dist/internal/focus.js +1 -1
  688. package/dist/internal/is.js +0 -1
  689. package/dist/internal/kbd-constants.d.ts +40 -0
  690. package/dist/internal/kbd-constants.js +40 -0
  691. package/dist/internal/kbd.d.ts +1 -77
  692. package/dist/internal/kbd.js +1 -79
  693. package/dist/internal/should-trap-focus.d.ts +6 -0
  694. package/dist/internal/should-trap-focus.js +6 -0
  695. package/dist/internal/types.d.ts +35 -0
  696. package/dist/internal/{useBodyScrollLock.svelte.d.ts → use-body-scroll-lock.svelte.d.ts} +2 -1
  697. package/dist/internal/use-body-scroll-lock.svelte.js +110 -0
  698. package/dist/internal/use-data-typeahead.svelte.d.ts +12 -0
  699. package/dist/internal/use-data-typeahead.svelte.js +30 -0
  700. package/dist/internal/use-dom-typeahead.svelte.d.ts +11 -0
  701. package/dist/internal/use-dom-typeahead.svelte.js +30 -0
  702. package/dist/internal/use-grace-area.svelte.d.ts +5 -0
  703. package/dist/internal/{useGraceArea.svelte.js → use-grace-area.svelte.js} +18 -22
  704. package/dist/internal/use-id.js +8 -0
  705. package/dist/internal/{useRovingFocus.svelte.d.ts → use-roving-focus.svelte.d.ts} +1 -1
  706. package/dist/internal/{useRovingFocus.svelte.js → use-roving-focus.svelte.js} +8 -2
  707. package/dist/internal/{useSize.svelte.d.ts → use-size.svelte.d.ts} +1 -1
  708. package/dist/internal/{useSize.svelte.js → use-size.svelte.js} +1 -1
  709. package/dist/internal/{useStateMachine.svelte.js → use-state-machine.svelte.js} +1 -0
  710. package/dist/internal/{useTimeoutFn.svelte.js → use-timeout-fn.svelte.js} +1 -2
  711. package/dist/shared/attributes.d.ts +28 -28
  712. package/dist/shared/css.d.ts +2 -1
  713. package/dist/shared/date/types.d.ts +25 -0
  714. package/dist/shared/index.d.ts +6 -9
  715. package/dist/shared/index.js +4 -2
  716. package/dist/shared/types.d.ts +13 -0
  717. package/dist/types.d.ts +1 -1
  718. package/package.json +19 -28
  719. package/dist/bits/listbox/components/listbox-content-static.svelte +0 -69
  720. package/dist/bits/listbox/components/listbox-content-static.svelte.d.ts +0 -19
  721. package/dist/bits/listbox/components/listbox-content.svelte +0 -77
  722. package/dist/bits/listbox/components/listbox-content.svelte.d.ts +0 -19
  723. package/dist/bits/listbox/components/listbox-group-label.svelte +0 -33
  724. package/dist/bits/listbox/components/listbox-group-label.svelte.d.ts +0 -19
  725. package/dist/bits/listbox/components/listbox-group.svelte +0 -33
  726. package/dist/bits/listbox/components/listbox-group.svelte.d.ts +0 -19
  727. package/dist/bits/listbox/components/listbox-hidden-input.svelte.d.ts +0 -20
  728. package/dist/bits/listbox/components/listbox-item.svelte +0 -44
  729. package/dist/bits/listbox/components/listbox-item.svelte.d.ts +0 -19
  730. package/dist/bits/listbox/components/listbox-label.svelte +0 -33
  731. package/dist/bits/listbox/components/listbox-label.svelte.d.ts +0 -18
  732. package/dist/bits/listbox/components/listbox-scroll-down-button.svelte +0 -40
  733. package/dist/bits/listbox/components/listbox-scroll-down-button.svelte.d.ts +0 -19
  734. package/dist/bits/listbox/components/listbox-scroll-up-button.svelte +0 -40
  735. package/dist/bits/listbox/components/listbox-scroll-up-button.svelte.d.ts +0 -19
  736. package/dist/bits/listbox/components/listbox-trigger.svelte +0 -36
  737. package/dist/bits/listbox/components/listbox-trigger.svelte.d.ts +0 -19
  738. package/dist/bits/listbox/components/listbox-viewport.svelte +0 -55
  739. package/dist/bits/listbox/components/listbox-viewport.svelte.d.ts +0 -19
  740. package/dist/bits/listbox/components/listbox.svelte +0 -81
  741. package/dist/bits/listbox/components/listbox.svelte.d.ts +0 -18
  742. package/dist/bits/listbox/index.d.ts +0 -13
  743. package/dist/bits/listbox/index.js +0 -12
  744. package/dist/bits/listbox/listbox.svelte.d.ts +0 -414
  745. package/dist/bits/listbox/listbox.svelte.js +0 -1023
  746. package/dist/bits/listbox/types.d.ts +0 -177
  747. package/dist/bits/navigation-menu/components/navigation-menu-sub.svelte +0 -48
  748. package/dist/bits/navigation-menu/components/navigation-menu-sub.svelte.d.ts +0 -18
  749. package/dist/bits/select/components/select-arrow.svelte +0 -22
  750. package/dist/bits/select/components/select-arrow.svelte.d.ts +0 -18
  751. package/dist/bits/select/components/select-content-floating.svelte +0 -73
  752. package/dist/bits/select/components/select-content-floating.svelte.d.ts +0 -34
  753. package/dist/bits/select/components/select-content-impl.svelte +0 -90
  754. package/dist/bits/select/components/select-content-impl.svelte.d.ts +0 -90
  755. package/dist/bits/select/components/select-content-item-aligned.svelte +0 -38
  756. package/dist/bits/select/components/select-content-item-aligned.svelte.d.ts +0 -29
  757. package/dist/bits/select/components/select-icon.svelte +0 -37
  758. package/dist/bits/select/components/select-icon.svelte.d.ts +0 -19
  759. package/dist/bits/select/components/select-item-text.svelte +0 -40
  760. package/dist/bits/select/components/select-item-text.svelte.d.ts +0 -19
  761. package/dist/bits/select/components/select-native.svelte +0 -36
  762. package/dist/bits/select/components/select-native.svelte.d.ts +0 -30
  763. package/dist/bits/select/components/select-provider.svelte +0 -10
  764. package/dist/bits/select/components/select-provider.svelte.d.ts +0 -23
  765. package/dist/bits/select/components/select-scroll-down-button-mounted.svelte +0 -33
  766. package/dist/bits/select/components/select-scroll-down-button-mounted.svelte.d.ts +0 -29
  767. package/dist/bits/select/components/select-scroll-up-button-mounted.svelte +0 -33
  768. package/dist/bits/select/components/select-scroll-up-button-mounted.svelte.d.ts +0 -29
  769. package/dist/bits/select/components/select-separator.svelte +0 -33
  770. package/dist/bits/select/components/select-separator.svelte.d.ts +0 -19
  771. package/dist/bits/select/components/select-value.svelte +0 -35
  772. package/dist/bits/select/components/select-value.svelte.d.ts +0 -19
  773. package/dist/internal/afterSleep.d.ts +0 -4
  774. package/dist/internal/afterSleep.js +0 -6
  775. package/dist/internal/afterTick.d.ts +0 -5
  776. package/dist/internal/afterTick.js +0 -7
  777. package/dist/internal/callbacks.d.ts +0 -11
  778. package/dist/internal/callbacks.js +0 -21
  779. package/dist/internal/composeHandlers.d.ts +0 -8
  780. package/dist/internal/composeHandlers.js +0 -21
  781. package/dist/internal/createContext.d.ts +0 -1
  782. package/dist/internal/createContext.js +0 -56
  783. package/dist/internal/cssToStyleObj.d.ts +0 -2
  784. package/dist/internal/cssToStyleObj.js +0 -23
  785. package/dist/internal/executeCallbacks.d.ts +0 -7
  786. package/dist/internal/executeCallbacks.js +0 -15
  787. package/dist/internal/mergeProps.d.ts +0 -22
  788. package/dist/internal/mergeProps.js +0 -98
  789. package/dist/internal/onDestroyEffect.svelte.d.ts +0 -1
  790. package/dist/internal/onDestroyEffect.svelte.js +0 -7
  791. package/dist/internal/strings.d.ts +0 -3
  792. package/dist/internal/strings.js +0 -70
  793. package/dist/internal/style.d.ts +0 -3
  794. package/dist/internal/style.js +0 -16
  795. package/dist/internal/styleToCSS.d.ts +0 -1
  796. package/dist/internal/styleToCSS.js +0 -23
  797. package/dist/internal/useBodyScrollLock.svelte.js +0 -88
  798. package/dist/internal/useGraceArea.svelte.d.ts +0 -5
  799. package/dist/internal/useId.js +0 -8
  800. package/dist/internal/useRefById.svelte.d.ts +0 -28
  801. package/dist/internal/useRefById.svelte.js +0 -27
  802. package/dist/internal/useTypeahead.svelte.d.ts +0 -34
  803. package/dist/internal/useTypeahead.svelte.js +0 -64
  804. package/dist/shared/date/index.d.ts +0 -7
  805. package/dist/shared/date/index.js +0 -7
  806. /package/dist/bits/menu/{index.d.ts → exports.d.ts} +0 -0
  807. /package/dist/bits/menu/{index.js → exports.js} +0 -0
  808. /package/dist/bits/utilities/dismissible-layer/{useDismissibleLayer.svelte.d.ts → use-dismissable-layer.svelte.d.ts} +0 -0
  809. /package/dist/bits/utilities/escape-layer/{useEscapeLayer.svelte.d.ts → use-escape-layer.svelte.d.ts} +0 -0
  810. /package/dist/bits/utilities/text-selection-layer/{useTextSelectionLayer.svelte.d.ts → use-text-selection-layer.svelte.d.ts} +0 -0
  811. /package/dist/internal/{boxAutoReset.svelte.d.ts → box-auto-reset.svelte.d.ts} +0 -0
  812. /package/dist/internal/{boxAutoReset.svelte.js → box-auto-reset.svelte.js} +0 -0
  813. /package/dist/internal/{createEventHook.svelte.d.ts → create-event-hook.svelte.d.ts} +0 -0
  814. /package/dist/internal/{createSharedHook.svelte.d.ts → create-shared-hook.svelte.d.ts} +0 -0
  815. /package/dist/internal/{createSharedHook.svelte.js → create-shared-hook.svelte.js} +0 -0
  816. /package/dist/{shared/date → internal/date-time}/announcer.d.ts +0 -0
  817. /package/dist/{shared/date → internal/date-time}/field/parts.d.ts +0 -0
  818. /package/dist/{shared/date → internal/date-time}/field/parts.js +0 -0
  819. /package/dist/{shared/date/field.d.ts → internal/date-time/field/segments.d.ts} +0 -0
  820. /package/dist/{shared/date → internal/date-time}/field/types.d.ts +0 -0
  821. /package/dist/{bits/listbox → internal/date-time/field}/types.js +0 -0
  822. /package/dist/{shared/date → internal/date-time}/placeholders.d.ts +0 -0
  823. /package/dist/{shared/date → internal/date-time}/placeholders.js +0 -0
  824. /package/dist/internal/floating-svelte/{useFloating.svelte.d.ts → use-floating.svelte.d.ts} +0 -0
  825. /package/dist/internal/floating-svelte/{useFloating.svelte.js → use-floating.svelte.js} +0 -0
  826. /package/dist/internal/{getDirectionalKeys.d.ts → get-directional-keys.d.ts} +0 -0
  827. /package/dist/internal/{getDirectionalKeys.js → get-directional-keys.js} +0 -0
  828. /package/dist/internal/{useArrowNavigation.d.ts → use-arrow-navigation.d.ts} +0 -0
  829. /package/dist/internal/{useArrowNavigation.js → use-arrow-navigation.js} +0 -0
  830. /package/dist/internal/{useFormControl.svelte.d.ts → use-form-control.svelte.d.ts} +0 -0
  831. /package/dist/internal/{useFormControl.svelte.js → use-form-control.svelte.js} +0 -0
  832. /package/dist/internal/{useId.d.ts → use-id.d.ts} +0 -0
  833. /package/dist/internal/{useResizeObserver.svelte.d.ts → use-resize-observer.svelte.d.ts} +0 -0
  834. /package/dist/internal/{useResizeObserver.svelte.js → use-resize-observer.svelte.js} +0 -0
  835. /package/dist/internal/{useStateMachine.svelte.d.ts → use-state-machine.svelte.d.ts} +0 -0
  836. /package/dist/internal/{useTimeoutFn.svelte.d.ts → use-timeout-fn.svelte.d.ts} +0 -0
  837. /package/dist/shared/{date/field/types.js → types.js} +0 -0
@@ -1,10 +1,10 @@
1
- import { useRefById } from "../../internal/useRefById.svelte.js";
1
+ import { useRefById } from "svelte-toolbelt";
2
+ import { Context } from "runed";
2
3
  import { getDataOrientation } from "../../internal/attrs.js";
3
4
  import { getElemDirection } from "../../internal/locale.js";
4
5
  import { kbd } from "../../internal/kbd.js";
5
- import { getDirectionalKeys } from "../../internal/getDirectionalKeys.js";
6
+ import { getDirectionalKeys } from "../../internal/get-directional-keys.js";
6
7
  import { useId } from "../../shared/index.js";
7
- import { createContext } from "../../internal/createContext.js";
8
8
  const ROOT_ATTR = "data-pagination-root";
9
9
  const PAGE_ATTR = "data-pagination-page";
10
10
  const PREV_ATTR = "data-pagination-prev";
@@ -18,7 +18,11 @@ class PaginationRootState {
18
18
  siblingCount;
19
19
  page;
20
20
  loop;
21
- totalPages = $derived.by(() => Math.ceil(this.count.current / this.perPage.current));
21
+ totalPages = $derived.by(() => {
22
+ if (this.count.current === 0)
23
+ return 1;
24
+ return Math.ceil(this.count.current / this.perPage.current);
25
+ });
22
26
  range = $derived.by(() => {
23
27
  const start = (this.page.current - 1) * this.perPage.current;
24
28
  const end = Math.min(start + this.perPage.current, this.count.current);
@@ -43,36 +47,33 @@ class PaginationRootState {
43
47
  ref: this.ref,
44
48
  });
45
49
  }
46
- setPage = (page) => {
50
+ setPage(page) {
47
51
  this.page.current = page;
48
- };
49
- getPageTriggerNodes = () => {
52
+ }
53
+ getPageTriggerNodes() {
50
54
  const node = this.ref.current;
51
55
  if (!node)
52
56
  return [];
53
57
  return Array.from(node.querySelectorAll("[data-pagination-page]"));
54
- };
55
- getButtonNode = (type) => {
58
+ }
59
+ getButtonNode(type) {
56
60
  const node = this.ref.current;
57
61
  if (!node)
58
62
  return;
59
63
  return node.querySelector(`[data-pagination-${type}]`);
60
- };
61
- prevPage = () => {
64
+ }
65
+ hasPrevPage = $derived.by(() => this.page.current > 1);
66
+ hasNextPage = $derived.by(() => this.page.current < this.totalPages);
67
+ prevPage() {
62
68
  this.page.current = Math.max(this.page.current - 1, 1);
63
- };
64
- nextPage = () => {
69
+ }
70
+ nextPage() {
65
71
  this.page.current = Math.min(this.page.current + 1, this.totalPages);
66
- };
67
- createPage = (props) => {
68
- return new PaginationPage(props, this);
69
- };
70
- createButton = (props) => {
71
- return new PaginationButtonState(props, this);
72
- };
72
+ }
73
73
  snippetProps = $derived.by(() => ({
74
74
  pages: this.pages,
75
75
  range: this.range,
76
+ currentPage: this.page.current,
76
77
  }));
77
78
  props = $derived.by(() => ({
78
79
  id: this.id.current,
@@ -80,10 +81,11 @@ class PaginationRootState {
80
81
  [ROOT_ATTR]: "",
81
82
  }));
82
83
  }
83
- class PaginationPage {
84
+ class PaginationPageState {
84
85
  #id;
85
86
  #ref;
86
87
  #root;
88
+ #disabled;
87
89
  page;
88
90
  #isSelected = $derived.by(() => this.page.current.value === this.#root.page.current);
89
91
  constructor(props, root) {
@@ -91,31 +93,45 @@ class PaginationPage {
91
93
  this.#id = props.id;
92
94
  this.page = props.page;
93
95
  this.#ref = props.ref;
96
+ this.#disabled = props.disabled;
94
97
  useRefById({
95
98
  id: this.#id,
96
99
  ref: this.#ref,
97
100
  });
101
+ this.onclick = this.onclick.bind(this);
102
+ this.onkeydown = this.onkeydown.bind(this);
98
103
  }
99
- #onclick = () => {
104
+ onclick(e) {
105
+ if (this.#disabled.current)
106
+ return;
107
+ if (e.button !== 0)
108
+ return;
100
109
  this.#root.setPage(this.page.current.value);
101
- };
102
- #onkeydown = (e) => {
103
- handleTriggerKeydown(e, this.#ref.current, this.#root);
104
- };
110
+ }
111
+ onkeydown(e) {
112
+ if (e.key === kbd.SPACE || e.key === kbd.ENTER) {
113
+ e.preventDefault();
114
+ this.#root.setPage(this.page.current.value);
115
+ }
116
+ else {
117
+ handleTriggerKeydown(e, this.#ref.current, this.#root);
118
+ }
119
+ }
105
120
  props = $derived.by(() => ({
106
121
  id: this.#id.current,
107
- "aria-label": `Page ${this.page.current}`,
122
+ "aria-label": `Page ${this.page.current.value}`,
108
123
  "data-value": `${this.page.current.value}`,
109
124
  "data-selected": this.#isSelected ? "" : undefined,
110
125
  [PAGE_ATTR]: "",
111
126
  //
112
- onclick: this.#onclick,
113
- onkeydown: this.#onkeydown,
127
+ onclick: this.onclick,
128
+ onkeydown: this.onkeydown,
114
129
  }));
115
130
  }
116
131
  class PaginationButtonState {
117
132
  id;
118
133
  #ref;
134
+ #disabled;
119
135
  #root;
120
136
  type = $state();
121
137
  constructor(props, root) {
@@ -123,24 +139,50 @@ class PaginationButtonState {
123
139
  this.id = props.id;
124
140
  this.type = props.type;
125
141
  this.#ref = props.ref;
142
+ this.#disabled = props.disabled;
126
143
  useRefById({
127
144
  id: this.id,
128
145
  ref: this.#ref,
129
146
  });
147
+ this.onclick = this.onclick.bind(this);
148
+ this.onkeydown = this.onkeydown.bind(this);
130
149
  }
131
- #onclick = () => {
150
+ #action() {
132
151
  this.type === "prev" ? this.#root.prevPage() : this.#root.nextPage();
133
- };
134
- #onkeydown = (e) => {
135
- handleTriggerKeydown(e, this.#ref.current, this.#root);
136
- };
152
+ }
153
+ #isDisabled = $derived.by(() => {
154
+ if (this.#disabled.current)
155
+ return true;
156
+ if (this.type === "prev")
157
+ return !this.#root.hasPrevPage;
158
+ if (this.type === "next")
159
+ return !this.#root.hasNextPage;
160
+ return false;
161
+ });
162
+ onclick(e) {
163
+ if (this.#disabled.current)
164
+ return;
165
+ if (e.button !== 0)
166
+ return;
167
+ this.#action();
168
+ }
169
+ onkeydown(e) {
170
+ if (e.key === kbd.SPACE || e.key === kbd.ENTER) {
171
+ e.preventDefault();
172
+ this.#action();
173
+ }
174
+ else {
175
+ handleTriggerKeydown(e, this.#ref.current, this.#root);
176
+ }
177
+ }
137
178
  props = $derived.by(() => ({
138
179
  id: this.id.current,
139
180
  [PREV_ATTR]: this.type === "prev" ? "" : undefined,
140
181
  [NEXT_ATTR]: this.type === "next" ? "" : undefined,
182
+ disabled: this.#isDisabled,
141
183
  //
142
- onclick: this.#onclick,
143
- onkeydown: this.#onkeydown,
184
+ onclick: this.onclick,
185
+ onkeydown: this.onkeydown,
144
186
  }));
145
187
  }
146
188
  //
@@ -240,16 +282,13 @@ function getPageItems({ page = 1, totalPages, siblingCount = 1 }) {
240
282
  }
241
283
  return pageItems;
242
284
  }
243
- //
244
- // CONTEXT METHODS
245
- //
246
- const [setPaginationRootContext, getPaginationRootContext] = createContext("Pagination.Root");
285
+ const PaginationRootContext = new Context("Pagination.Root");
247
286
  export function usePaginationRoot(props) {
248
- return setPaginationRootContext(new PaginationRootState(props));
287
+ return PaginationRootContext.set(new PaginationRootState(props));
249
288
  }
250
289
  export function usePaginationPage(props) {
251
- return getPaginationRootContext().createPage(props);
290
+ return new PaginationPageState(props, PaginationRootContext.get());
252
291
  }
253
292
  export function usePaginationButton(props) {
254
- return getPaginationRootContext().createButton(props);
293
+ return new PaginationButtonState(props, PaginationRootContext.get());
255
294
  }
@@ -1,11 +1,12 @@
1
1
  import type { OnChangeFn, WithChild, Without } from "../../internal/types.js";
2
- import type { PrimitiveButtonAttributes, PrimitiveDivAttributes } from "../../shared/attributes.js";
2
+ import type { BitsPrimitiveButtonAttributes, BitsPrimitiveDivAttributes } from "../../shared/attributes.js";
3
3
  type PaginationSnippetProps = {
4
4
  pages: PageItem[];
5
5
  range: {
6
6
  start: number;
7
7
  end: number;
8
8
  };
9
+ currentPage: number;
9
10
  };
10
11
  export type PaginationRootPropsWithoutHTML = WithChild<{
11
12
  /**
@@ -49,24 +50,16 @@ export type PaginationRootPropsWithoutHTML = WithChild<{
49
50
  * @defaultValue "horizontal"
50
51
  */
51
52
  orientation?: "horizontal" | "vertical";
52
- /**
53
- * Whether or not the page state is controlled or not. If `true`, the component will not update
54
- * the page state internally, instead it will call `onPageChange` when it would have
55
- * otherwise, and it is up to you to update the `page` prop that is passed to the component.
56
- *
57
- * @defaultValue false
58
- */
59
- controlledPage?: boolean;
60
53
  }, PaginationSnippetProps>;
61
- export type PaginationRootProps = PaginationRootPropsWithoutHTML & Without<PrimitiveDivAttributes, PaginationRootPropsWithoutHTML>;
54
+ export type PaginationRootProps = PaginationRootPropsWithoutHTML & Without<BitsPrimitiveDivAttributes, PaginationRootPropsWithoutHTML>;
62
55
  export type PaginationPagePropsWithoutHTML = WithChild<{
63
56
  page: Page;
64
57
  }>;
65
- export type PaginationPageProps = PaginationPagePropsWithoutHTML & Without<PrimitiveButtonAttributes, PaginationPagePropsWithoutHTML>;
58
+ export type PaginationPageProps = PaginationPagePropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, PaginationPagePropsWithoutHTML>;
66
59
  export type PaginationPrevButtonPropsWithoutHTML = WithChild;
67
- export type PaginationPrevButtonProps = PaginationPrevButtonPropsWithoutHTML & Without<PrimitiveButtonAttributes, PaginationPrevButtonPropsWithoutHTML>;
60
+ export type PaginationPrevButtonProps = PaginationPrevButtonPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, PaginationPrevButtonPropsWithoutHTML>;
68
61
  export type PaginationNextButtonPropsWithoutHTML = WithChild;
69
- export type PaginationNextButtonProps = PaginationNextButtonPropsWithoutHTML & Without<PrimitiveButtonAttributes, PaginationNextButtonPropsWithoutHTML>;
62
+ export type PaginationNextButtonProps = PaginationNextButtonPropsWithoutHTML & Without<BitsPrimitiveButtonAttributes, PaginationNextButtonPropsWithoutHTML>;
70
63
  export type Page = {
71
64
  type: "page";
72
65
  value: number;
@@ -1,9 +1,8 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
3
- import type { CellProps } from "../index.js";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
+ import type { PinInputCellProps } from "../types.js";
4
4
  import { usePinInputCell } from "../pin-input.svelte.js";
5
- import { useId } from "../../../internal/useId.js";
6
- import { mergeProps } from "../../../internal/mergeProps.js";
5
+ import { useId } from "../../../internal/use-id.js";
7
6
 
8
7
  let {
9
8
  id = useId(),
@@ -12,7 +11,7 @@
12
11
  child,
13
12
  children,
14
13
  ...restProps
15
- }: CellProps = $props();
14
+ }: PinInputCellProps = $props();
16
15
 
17
16
  const cellState = usePinInputCell({
18
17
  id: box.with(() => id),
@@ -1,19 +1,4 @@
1
- import type { CellProps } from "../index.js";
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: Props & {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
14
- }
15
- declare const PinInputCell: $$__sveltets_2_IsomorphicComponent<CellProps, {
16
- [evt: string]: CustomEvent<any>;
17
- }, {}, {}, "ref">;
18
- type PinInputCell = InstanceType<typeof PinInputCell>;
1
+ import type { PinInputCellProps } from "../types.js";
2
+ declare const PinInputCell: import("svelte").Component<PinInputCellProps, {}, "ref">;
3
+ type PinInputCell = ReturnType<typeof PinInputCell>;
19
4
  export default PinInputCell;
@@ -1,10 +1,9 @@
1
1
  <script lang="ts">
2
- import { box } from "svelte-toolbelt";
3
- import type { RootProps } from "../index.js";
4
- import { REGEXP_ONLY_DIGITS, usePinInput } from "../pin-input.svelte.js";
5
- import { useId } from "../../../internal/useId.js";
6
- import { noop } from "../../../internal/callbacks.js";
7
- import { mergeProps } from "../../../internal/mergeProps.js";
2
+ import { box, mergeProps } from "svelte-toolbelt";
3
+ import type { PinInputRootProps } from "../types.js";
4
+ import { usePinInput } from "../pin-input.svelte.js";
5
+ import { useId } from "../../../internal/use-id.js";
6
+ import { noop } from "../../../internal/noop.js";
8
7
 
9
8
  let {
10
9
  id = useId(),
@@ -12,7 +11,7 @@
12
11
  ref = $bindable(null),
13
12
  maxlength = 6,
14
13
  textalign = "left",
15
- pattern = REGEXP_ONLY_DIGITS,
14
+ pattern,
16
15
  inputmode = "numeric",
17
16
  onComplete = noop,
18
17
  pushPasswordManagerStrategy = "increase-width",
@@ -22,10 +21,9 @@
22
21
  disabled = false,
23
22
  value = $bindable(""),
24
23
  onValueChange = noop,
25
- controlledValue = false,
26
24
  onPaste,
27
25
  ...restProps
28
- }: RootProps = $props();
26
+ }: PinInputRootProps = $props();
29
27
 
30
28
  const rootState = usePinInput({
31
29
  id: box.with(() => id),
@@ -44,12 +42,8 @@
44
42
  value: box.with(
45
43
  () => value,
46
44
  (v) => {
47
- if (controlledValue) {
48
- onValueChange(v);
49
- } else {
50
- value = v;
51
- onValueChange(v);
52
- }
45
+ value = v;
46
+ onValueChange(v);
53
47
  }
54
48
  ),
55
49
  pushPasswordManagerStrategy: box.with(() => pushPasswordManagerStrategy),
@@ -1,19 +1,4 @@
1
- import type { RootProps } from "../index.js";
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: Props & {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
14
- }
15
- declare const PinInput: $$__sveltets_2_IsomorphicComponent<RootProps, {
16
- [evt: string]: CustomEvent<any>;
17
- }, {}, {}, "value" | "ref">;
18
- type PinInput = InstanceType<typeof PinInput>;
1
+ import type { PinInputRootProps } from "../types.js";
2
+ declare const PinInput: import("svelte").Component<PinInputRootProps, {}, "value" | "ref">;
3
+ type PinInput = ReturnType<typeof PinInput>;
19
4
  export default PinInput;
@@ -0,0 +1,3 @@
1
+ export { default as Root } from "./components/pin-input.svelte";
2
+ export { default as Cell } from "./components/pin-input-cell.svelte";
3
+ export type { PinInputRootProps as RootProps, PinInputCellProps as CellProps } from "./types.js";
@@ -0,0 +1,2 @@
1
+ export { default as Root } from "./components/pin-input.svelte";
2
+ export { default as Cell } from "./components/pin-input-cell.svelte";
@@ -1,3 +1 @@
1
- export { default as Root } from "./components/pin-input.svelte";
2
- export { default as Cell } from "./components/pin-input-cell.svelte";
3
- export type { PinInputRootProps as RootProps, PinInputCellProps as CellProps } from "./types.js";
1
+ export * as PinInput from "./exports.js";
@@ -1,2 +1 @@
1
- export { default as Root } from "./components/pin-input.svelte";
2
- export { default as Cell } from "./components/pin-input-cell.svelte";
1
+ export * as PinInput from "./exports.js";
@@ -1,6 +1,6 @@
1
1
  import type { PinInputCell, PinInputRootProps as RootComponentProps } from "./types.js";
2
2
  import type { ReadableBoxedValues, WritableBoxedValues } from "../../internal/box.svelte.js";
3
- import type { WithRefProps } from "../../internal/types.js";
3
+ import type { BitsEvent, BitsFocusEvent, BitsKeyboardEvent, BitsMouseEvent, WithRefProps } from "../../internal/types.js";
4
4
  export declare const REGEXP_ONLY_DIGITS = "^\\d+$";
5
5
  export declare const REGEXP_ONLY_CHARS = "^[a-zA-Z]+$";
6
6
  export declare const REGEXP_ONLY_DIGITS_AND_CHARS = "^[a-zA-Z0-9]+$";
@@ -22,6 +22,8 @@ declare class PinInputRootState {
22
22
  #private;
23
23
  value: PinInputRootStateProps["value"];
24
24
  constructor(props: PinInputRootStateProps);
25
+ keysToIgnore: string[];
26
+ onkeydown(e: BitsKeyboardEvent): void;
25
27
  rootProps: {
26
28
  readonly id: string;
27
29
  readonly "data-pin-input-root": "";
@@ -40,7 +42,12 @@ declare class PinInputRootState {
40
42
  readonly pointerEvents: "none";
41
43
  };
42
44
  };
43
- applyStyles: () => void;
45
+ oninput(e: BitsEvent<Event, HTMLInputElement>): void;
46
+ onfocus: (_: BitsFocusEvent<HTMLInputElement>) => void;
47
+ onpaste: (e: BitsEvent<ClipboardEvent>) => void;
48
+ onmouseover: (_: BitsMouseEvent) => void;
49
+ onmouseleave: (_: BitsMouseEvent) => void;
50
+ onblur: (_: BitsFocusEvent) => void;
44
51
  inputProps: {
45
52
  id: string;
46
53
  style: {
@@ -50,7 +57,7 @@ declare class PinInputRootState {
50
57
  clipPath: string | undefined;
51
58
  height: string;
52
59
  display: string;
53
- textAlign: "center" | "left" | "right" | undefined;
60
+ textAlign: "left" | "center" | "right" | undefined;
54
61
  opacity: string;
55
62
  color: string;
56
63
  pointerEvents: string;
@@ -65,27 +72,22 @@ declare class PinInputRootState {
65
72
  fontFamily: string;
66
73
  fontVariantNumeric: string;
67
74
  };
68
- autocomplete: "on" | "name" | "off" | "tel" | "url" | "email" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national" | "home tel" | "home email" | "home tel-area-code" | "home tel-country-code" | "home tel-extension" | "home tel-local" | "home tel-local-prefix" | "home tel-local-suffix" | "home tel-national" | "mobile tel" | "mobile email" | "mobile tel-area-code" | "mobile tel-country-code" | "mobile tel-extension" | "mobile tel-local" | "mobile tel-local-prefix" | "mobile tel-local-suffix" | "mobile tel-national" | "work tel" | "work email" | "work tel-area-code" | "work tel-country-code" | "work tel-extension" | "work tel-local" | "work tel-local-prefix" | "work tel-local-suffix" | "work tel-national" | "name webauthn" | "additional-name webauthn" | "address-level1 webauthn" | "address-level2 webauthn" | "address-level3 webauthn" | "address-level4 webauthn" | "address-line1 webauthn" | "address-line2 webauthn" | "address-line3 webauthn" | "bday-day webauthn" | "bday-month webauthn" | "bday-year webauthn" | "cc-csc webauthn" | "cc-exp webauthn" | "cc-exp-month webauthn" | "cc-exp-year webauthn" | "cc-family-name webauthn" | "cc-given-name webauthn" | "cc-name webauthn" | "cc-number webauthn" | "cc-type webauthn" | "country webauthn" | "country-name webauthn" | "current-password webauthn" | "family-name webauthn" | "given-name webauthn" | "honorific-prefix webauthn" | "honorific-suffix webauthn" | "new-password webauthn" | "one-time-code webauthn" | "organization webauthn" | "postal-code webauthn" | "street-address webauthn" | "transaction-amount webauthn" | "transaction-currency webauthn" | "username webauthn" | "tel webauthn" | "email webauthn" | "tel-area-code webauthn" | "tel-country-code webauthn" | "tel-extension webauthn" | "tel-local webauthn" | "tel-local-prefix webauthn" | "tel-local-suffix webauthn" | "tel-national webauthn" | "home tel webauthn" | "home email webauthn" | "home tel-area-code webauthn" | "home tel-country-code webauthn" | "home tel-extension webauthn" | "home tel-local webauthn" | "home tel-local-prefix webauthn" | "home tel-local-suffix webauthn" | "home tel-national webauthn" | "mobile tel webauthn" | "mobile email webauthn" | "mobile tel-area-code webauthn" | "mobile tel-country-code webauthn" | "mobile tel-extension webauthn" | "mobile tel-local webauthn" | "mobile tel-local-prefix webauthn" | "mobile tel-local-suffix webauthn" | "mobile tel-national webauthn" | "work tel webauthn" | "work email webauthn" | "work tel-area-code webauthn" | "work tel-country-code webauthn" | "work tel-extension webauthn" | "work tel-local webauthn" | "work tel-local-prefix webauthn" | "work tel-local-suffix webauthn" | "work tel-national webauthn" | "billing name" | "billing name webauthn" | "billing additional-name" | "billing additional-name webauthn" | "billing address-level1" | "billing address-level1 webauthn" | "billing address-level2" | "billing address-level2 webauthn" | "billing address-level3" | "billing address-level3 webauthn" | "billing address-level4" | "billing address-level4 webauthn" | "billing address-line1" | "billing address-line1 webauthn" | "billing address-line2" | "billing address-line2 webauthn" | "billing address-line3" | "billing address-line3 webauthn" | "billing bday-day" | "billing bday-day webauthn" | "billing bday-month" | "billing bday-month webauthn" | "billing bday-year" | "billing bday-year webauthn" | "billing cc-csc" | "billing cc-csc webauthn" | "billing cc-exp" | "billing cc-exp webauthn" | "billing cc-exp-month" | "billing cc-exp-month webauthn" | "billing cc-exp-year" | "billing cc-exp-year webauthn" | "billing cc-family-name" | "billing cc-family-name webauthn" | "billing cc-given-name" | "billing cc-given-name webauthn" | "billing cc-name" | "billing cc-name webauthn" | "billing cc-number" | "billing cc-number webauthn" | "billing cc-type" | "billing cc-type webauthn" | "billing country" | "billing country webauthn" | "billing country-name" | "billing country-name webauthn" | "billing current-password" | "billing current-password webauthn" | "billing family-name" | "billing family-name webauthn" | "billing given-name" | "billing given-name webauthn" | "billing honorific-prefix" | "billing honorific-prefix webauthn" | "billing honorific-suffix" | "billing honorific-suffix webauthn" | "billing new-password" | "billing new-password webauthn" | "billing one-time-code" | "billing one-time-code webauthn" | "billing organization" | "billing organization webauthn" | "billing postal-code" | "billing postal-code webauthn" | "billing street-address" | "billing street-address webauthn" | "billing transaction-amount" | "billing transaction-amount webauthn" | "billing transaction-currency" | "billing transaction-currency webauthn" | "billing username" | "billing username webauthn" | "billing tel" | "billing tel webauthn" | "billing email" | "billing email webauthn" | "billing tel-area-code" | "billing tel-area-code webauthn" | "billing tel-country-code" | "billing tel-country-code webauthn" | "billing tel-extension" | "billing tel-extension webauthn" | "billing tel-local" | "billing tel-local webauthn" | "billing tel-local-prefix" | "billing tel-local-prefix webauthn" | "billing tel-local-suffix" | "billing tel-local-suffix webauthn" | "billing tel-national" | "billing tel-national webauthn" | "billing home tel" | "billing home tel webauthn" | "billing home email" | "billing home email webauthn" | "billing home tel-area-code" | "billing home tel-area-code webauthn" | "billing home tel-country-code" | "billing home tel-country-code webauthn" | "billing home tel-extension" | "billing home tel-extension webauthn" | "billing home tel-local" | "billing home tel-local webauthn" | "billing home tel-local-prefix" | "billing home tel-local-prefix webauthn" | "billing home tel-local-suffix" | "billing home tel-local-suffix webauthn" | "billing home tel-national" | "billing home tel-national webauthn" | "billing mobile tel" | "billing mobile tel webauthn" | "billing mobile email" | "billing mobile email webauthn" | "billing mobile tel-area-code" | "billing mobile tel-area-code webauthn" | "billing mobile tel-country-code" | "billing mobile tel-country-code webauthn" | "billing mobile tel-extension" | "billing mobile tel-extension webauthn" | "billing mobile tel-local" | "billing mobile tel-local webauthn" | "billing mobile tel-local-prefix" | "billing mobile tel-local-prefix webauthn" | "billing mobile tel-local-suffix" | "billing mobile tel-local-suffix webauthn" | "billing mobile tel-national" | "billing mobile tel-national webauthn" | "billing work tel" | "billing work tel webauthn" | "billing work email" | "billing work email webauthn" | "billing work tel-area-code" | "billing work tel-area-code webauthn" | "billing work tel-country-code" | "billing work tel-country-code webauthn" | "billing work tel-extension" | "billing work tel-extension webauthn" | "billing work tel-local" | "billing work tel-local webauthn" | "billing work tel-local-prefix" | "billing work tel-local-prefix webauthn" | "billing work tel-local-suffix" | "billing work tel-local-suffix webauthn" | "billing work tel-national" | "billing work tel-national webauthn" | "shipping name" | "shipping name webauthn" | "shipping additional-name" | "shipping additional-name webauthn" | "shipping address-level1" | "shipping address-level1 webauthn" | "shipping address-level2" | "shipping address-level2 webauthn" | "shipping address-level3" | "shipping address-level3 webauthn" | "shipping address-level4" | "shipping address-level4 webauthn" | "shipping address-line1" | "shipping address-line1 webauthn" | "shipping address-line2" | "shipping address-line2 webauthn" | "shipping address-line3" | "shipping address-line3 webauthn" | "shipping bday-day" | "shipping bday-day webauthn" | "shipping bday-month" | "shipping bday-month webauthn" | "shipping bday-year" | "shipping bday-year webauthn" | "shipping cc-csc" | "shipping cc-csc webauthn" | "shipping cc-exp" | "shipping cc-exp webauthn" | "shipping cc-exp-month" | "shipping cc-exp-month webauthn" | "shipping cc-exp-year" | "shipping cc-exp-year webauthn" | "shipping cc-family-name" | "shipping cc-family-name webauthn" | "shipping cc-given-name" | "shipping cc-given-name webauthn" | "shipping cc-name" | "shipping cc-name webauthn" | "shipping cc-number" | "shipping cc-number webauthn" | "shipping cc-type" | "shipping cc-type webauthn" | "shipping country" | "shipping country webauthn" | "shipping country-name" | "shipping country-name webauthn" | "shipping current-password" | "shipping current-password webauthn" | "shipping family-name" | "shipping family-name webauthn" | "shipping given-name" | "shipping given-name webauthn" | "shipping honorific-prefix" | "shipping honorific-prefix webauthn" | "shipping honorific-suffix" | "shipping honorific-suffix webauthn" | "shipping new-password" | "shipping new-password webauthn" | "shipping one-time-code" | "shipping one-time-code webauthn" | "shipping organization" | "shipping organization webauthn" | "shipping postal-code" | "shipping postal-code webauthn" | "shipping street-address" | "shipping street-address webauthn" | "shipping transaction-amount" | "shipping transaction-amount webauthn" | "shipping transaction-currency" | "shipping transaction-currency webauthn" | "shipping username" | "shipping username webauthn" | "shipping tel" | "shipping tel webauthn" | "shipping email" | "shipping email webauthn" | "shipping tel-area-code" | "shipping tel-area-code webauthn" | "shipping tel-country-code" | "shipping tel-country-code webauthn" | "shipping tel-extension" | "shipping tel-extension webauthn" | "shipping tel-local" | "shipping tel-local webauthn" | "shipping tel-local-prefix" | "shipping tel-local-prefix webauthn" | "shipping tel-local-suffix" | "shipping tel-local-suffix webauthn" | "shipping tel-national" | "shipping tel-national webauthn" | "shipping home tel" | "shipping home tel webauthn" | "shipping home email" | "shipping home email webauthn" | "shipping home tel-area-code" | "shipping home tel-area-code webauthn" | "shipping home tel-country-code" | "shipping home tel-country-code webauthn" | "shipping home tel-extension" | "shipping home tel-extension webauthn" | "shipping home tel-local" | "shipping home tel-local webauthn" | "shipping home tel-local-prefix" | "shipping home tel-local-prefix webauthn" | "shipping home tel-local-suffix" | "shipping home tel-local-suffix webauthn" | "shipping home tel-national" | "shipping home tel-national webauthn" | "shipping mobile tel" | "shipping mobile tel webauthn" | "shipping mobile email" | "shipping mobile email webauthn" | "shipping mobile tel-area-code" | "shipping mobile tel-area-code webauthn" | "shipping mobile tel-country-code" | "shipping mobile tel-country-code webauthn" | "shipping mobile tel-extension" | "shipping mobile tel-extension webauthn" | "shipping mobile tel-local" | "shipping mobile tel-local webauthn" | "shipping mobile tel-local-prefix" | "shipping mobile tel-local-prefix webauthn" | "shipping mobile tel-local-suffix" | "shipping mobile tel-local-suffix webauthn" | "shipping mobile tel-national" | "shipping mobile tel-national webauthn" | "shipping work tel" | "shipping work tel webauthn" | "shipping work email" | "shipping work email webauthn" | "shipping work tel-area-code" | "shipping work tel-area-code webauthn" | "shipping work tel-country-code" | "shipping work tel-country-code webauthn" | "shipping work tel-extension" | "shipping work tel-extension webauthn" | "shipping work tel-local" | "shipping work tel-local webauthn" | "shipping work tel-local-prefix" | "shipping work tel-local-prefix webauthn" | "shipping work tel-local-suffix" | "shipping work tel-local-suffix webauthn" | "shipping work tel-national" | "shipping work tel-national webauthn" | `section-${string} name` | `section-${string} name webauthn` | `section-${string} additional-name` | `section-${string} additional-name webauthn` | `section-${string} address-level1` | `section-${string} address-level1 webauthn` | `section-${string} address-level2` | `section-${string} address-level2 webauthn` | `section-${string} address-level3` | `section-${string} address-level3 webauthn` | `section-${string} address-level4` | `section-${string} address-level4 webauthn` | `section-${string} address-line1` | `section-${string} address-line1 webauthn` | `section-${string} address-line2` | `section-${string} address-line2 webauthn` | `section-${string} address-line3` | `section-${string} address-line3 webauthn` | `section-${string} bday-day` | `section-${string} bday-day webauthn` | `section-${string} bday-month` | `section-${string} bday-month webauthn` | `section-${string} bday-year` | `section-${string} bday-year webauthn` | `section-${string} cc-csc` | `section-${string} cc-csc webauthn` | `section-${string} cc-exp` | `section-${string} cc-exp webauthn` | `section-${string} cc-exp-month` | `section-${string} cc-exp-month webauthn` | `section-${string} cc-exp-year` | `section-${string} cc-exp-year webauthn` | `section-${string} cc-family-name` | `section-${string} cc-family-name webauthn` | `section-${string} cc-given-name` | `section-${string} cc-given-name webauthn` | `section-${string} cc-name` | `section-${string} cc-name webauthn` | `section-${string} cc-number` | `section-${string} cc-number webauthn` | `section-${string} cc-type` | `section-${string} cc-type webauthn` | `section-${string} country` | `section-${string} country webauthn` | `section-${string} country-name` | `section-${string} country-name webauthn` | `section-${string} current-password` | `section-${string} current-password webauthn` | `section-${string} family-name` | `section-${string} family-name webauthn` | `section-${string} given-name` | `section-${string} given-name webauthn` | `section-${string} honorific-prefix` | `section-${string} honorific-prefix webauthn` | `section-${string} honorific-suffix` | `section-${string} honorific-suffix webauthn` | `section-${string} new-password` | `section-${string} new-password webauthn` | `section-${string} one-time-code` | `section-${string} one-time-code webauthn` | `section-${string} organization` | `section-${string} organization webauthn` | `section-${string} postal-code` | `section-${string} postal-code webauthn` | `section-${string} street-address` | `section-${string} street-address webauthn` | `section-${string} transaction-amount` | `section-${string} transaction-amount webauthn` | `section-${string} transaction-currency` | `section-${string} transaction-currency webauthn` | `section-${string} username` | `section-${string} username webauthn` | `section-${string} tel` | `section-${string} tel webauthn` | `section-${string} email` | `section-${string} email webauthn` | `section-${string} tel-area-code` | `section-${string} tel-area-code webauthn` | `section-${string} tel-country-code` | `section-${string} tel-country-code webauthn` | `section-${string} tel-extension` | `section-${string} tel-extension webauthn` | `section-${string} tel-local` | `section-${string} tel-local webauthn` | `section-${string} tel-local-prefix` | `section-${string} tel-local-prefix webauthn` | `section-${string} tel-local-suffix` | `section-${string} tel-local-suffix webauthn` | `section-${string} tel-national` | `section-${string} tel-national webauthn` | "bday" | "cc-additional-name" | "billing cc-additional-name" | "shipping cc-additional-name" | "nickname" | "language" | "organization-title" | "photo" | "sex";
75
+ autocomplete: "name" | "off" | "on" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username" | "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national" | "home email" | "home tel" | "home tel-area-code" | "home tel-country-code" | "home tel-extension" | "home tel-local" | "home tel-local-prefix" | "home tel-local-suffix" | "home tel-national" | "mobile email" | "mobile tel" | "mobile tel-area-code" | "mobile tel-country-code" | "mobile tel-extension" | "mobile tel-local" | "mobile tel-local-prefix" | "mobile tel-local-suffix" | "mobile tel-national" | "work email" | "work tel" | "work tel-area-code" | "work tel-country-code" | "work tel-extension" | "work tel-local" | "work tel-local-prefix" | "work tel-local-suffix" | "work tel-national" | "name webauthn" | "additional-name webauthn" | "address-level1 webauthn" | "address-level2 webauthn" | "address-level3 webauthn" | "address-level4 webauthn" | "address-line1 webauthn" | "address-line2 webauthn" | "address-line3 webauthn" | "bday-day webauthn" | "bday-month webauthn" | "bday-year webauthn" | "cc-csc webauthn" | "cc-exp webauthn" | "cc-exp-month webauthn" | "cc-exp-year webauthn" | "cc-family-name webauthn" | "cc-given-name webauthn" | "cc-name webauthn" | "cc-number webauthn" | "cc-type webauthn" | "country webauthn" | "country-name webauthn" | "current-password webauthn" | "family-name webauthn" | "given-name webauthn" | "honorific-prefix webauthn" | "honorific-suffix webauthn" | "new-password webauthn" | "one-time-code webauthn" | "organization webauthn" | "postal-code webauthn" | "street-address webauthn" | "transaction-amount webauthn" | "transaction-currency webauthn" | "username webauthn" | "email webauthn" | "tel webauthn" | "tel-area-code webauthn" | "tel-country-code webauthn" | "tel-extension webauthn" | "tel-local webauthn" | "tel-local-prefix webauthn" | "tel-local-suffix webauthn" | "tel-national webauthn" | "home email webauthn" | "home tel webauthn" | "home tel-area-code webauthn" | "home tel-country-code webauthn" | "home tel-extension webauthn" | "home tel-local webauthn" | "home tel-local-prefix webauthn" | "home tel-local-suffix webauthn" | "home tel-national webauthn" | "mobile email webauthn" | "mobile tel webauthn" | "mobile tel-area-code webauthn" | "mobile tel-country-code webauthn" | "mobile tel-extension webauthn" | "mobile tel-local webauthn" | "mobile tel-local-prefix webauthn" | "mobile tel-local-suffix webauthn" | "mobile tel-national webauthn" | "work email webauthn" | "work tel webauthn" | "work tel-area-code webauthn" | "work tel-country-code webauthn" | "work tel-extension webauthn" | "work tel-local webauthn" | "work tel-local-prefix webauthn" | "work tel-local-suffix webauthn" | "work tel-national webauthn" | "billing name" | "billing name webauthn" | "billing additional-name" | "billing additional-name webauthn" | "billing address-level1" | "billing address-level1 webauthn" | "billing address-level2" | "billing address-level2 webauthn" | "billing address-level3" | "billing address-level3 webauthn" | "billing address-level4" | "billing address-level4 webauthn" | "billing address-line1" | "billing address-line1 webauthn" | "billing address-line2" | "billing address-line2 webauthn" | "billing address-line3" | "billing address-line3 webauthn" | "billing bday-day" | "billing bday-day webauthn" | "billing bday-month" | "billing bday-month webauthn" | "billing bday-year" | "billing bday-year webauthn" | "billing cc-csc" | "billing cc-csc webauthn" | "billing cc-exp" | "billing cc-exp webauthn" | "billing cc-exp-month" | "billing cc-exp-month webauthn" | "billing cc-exp-year" | "billing cc-exp-year webauthn" | "billing cc-family-name" | "billing cc-family-name webauthn" | "billing cc-given-name" | "billing cc-given-name webauthn" | "billing cc-name" | "billing cc-name webauthn" | "billing cc-number" | "billing cc-number webauthn" | "billing cc-type" | "billing cc-type webauthn" | "billing country" | "billing country webauthn" | "billing country-name" | "billing country-name webauthn" | "billing current-password" | "billing current-password webauthn" | "billing family-name" | "billing family-name webauthn" | "billing given-name" | "billing given-name webauthn" | "billing honorific-prefix" | "billing honorific-prefix webauthn" | "billing honorific-suffix" | "billing honorific-suffix webauthn" | "billing new-password" | "billing new-password webauthn" | "billing one-time-code" | "billing one-time-code webauthn" | "billing organization" | "billing organization webauthn" | "billing postal-code" | "billing postal-code webauthn" | "billing street-address" | "billing street-address webauthn" | "billing transaction-amount" | "billing transaction-amount webauthn" | "billing transaction-currency" | "billing transaction-currency webauthn" | "billing username" | "billing username webauthn" | "billing email" | "billing email webauthn" | "billing tel" | "billing tel webauthn" | "billing tel-area-code" | "billing tel-area-code webauthn" | "billing tel-country-code" | "billing tel-country-code webauthn" | "billing tel-extension" | "billing tel-extension webauthn" | "billing tel-local" | "billing tel-local webauthn" | "billing tel-local-prefix" | "billing tel-local-prefix webauthn" | "billing tel-local-suffix" | "billing tel-local-suffix webauthn" | "billing tel-national" | "billing tel-national webauthn" | "billing home email" | "billing home email webauthn" | "billing home tel" | "billing home tel webauthn" | "billing home tel-area-code" | "billing home tel-area-code webauthn" | "billing home tel-country-code" | "billing home tel-country-code webauthn" | "billing home tel-extension" | "billing home tel-extension webauthn" | "billing home tel-local" | "billing home tel-local webauthn" | "billing home tel-local-prefix" | "billing home tel-local-prefix webauthn" | "billing home tel-local-suffix" | "billing home tel-local-suffix webauthn" | "billing home tel-national" | "billing home tel-national webauthn" | "billing mobile email" | "billing mobile email webauthn" | "billing mobile tel" | "billing mobile tel webauthn" | "billing mobile tel-area-code" | "billing mobile tel-area-code webauthn" | "billing mobile tel-country-code" | "billing mobile tel-country-code webauthn" | "billing mobile tel-extension" | "billing mobile tel-extension webauthn" | "billing mobile tel-local" | "billing mobile tel-local webauthn" | "billing mobile tel-local-prefix" | "billing mobile tel-local-prefix webauthn" | "billing mobile tel-local-suffix" | "billing mobile tel-local-suffix webauthn" | "billing mobile tel-national" | "billing mobile tel-national webauthn" | "billing work email" | "billing work email webauthn" | "billing work tel" | "billing work tel webauthn" | "billing work tel-area-code" | "billing work tel-area-code webauthn" | "billing work tel-country-code" | "billing work tel-country-code webauthn" | "billing work tel-extension" | "billing work tel-extension webauthn" | "billing work tel-local" | "billing work tel-local webauthn" | "billing work tel-local-prefix" | "billing work tel-local-prefix webauthn" | "billing work tel-local-suffix" | "billing work tel-local-suffix webauthn" | "billing work tel-national" | "billing work tel-national webauthn" | "shipping name" | "shipping name webauthn" | "shipping additional-name" | "shipping additional-name webauthn" | "shipping address-level1" | "shipping address-level1 webauthn" | "shipping address-level2" | "shipping address-level2 webauthn" | "shipping address-level3" | "shipping address-level3 webauthn" | "shipping address-level4" | "shipping address-level4 webauthn" | "shipping address-line1" | "shipping address-line1 webauthn" | "shipping address-line2" | "shipping address-line2 webauthn" | "shipping address-line3" | "shipping address-line3 webauthn" | "shipping bday-day" | "shipping bday-day webauthn" | "shipping bday-month" | "shipping bday-month webauthn" | "shipping bday-year" | "shipping bday-year webauthn" | "shipping cc-csc" | "shipping cc-csc webauthn" | "shipping cc-exp" | "shipping cc-exp webauthn" | "shipping cc-exp-month" | "shipping cc-exp-month webauthn" | "shipping cc-exp-year" | "shipping cc-exp-year webauthn" | "shipping cc-family-name" | "shipping cc-family-name webauthn" | "shipping cc-given-name" | "shipping cc-given-name webauthn" | "shipping cc-name" | "shipping cc-name webauthn" | "shipping cc-number" | "shipping cc-number webauthn" | "shipping cc-type" | "shipping cc-type webauthn" | "shipping country" | "shipping country webauthn" | "shipping country-name" | "shipping country-name webauthn" | "shipping current-password" | "shipping current-password webauthn" | "shipping family-name" | "shipping family-name webauthn" | "shipping given-name" | "shipping given-name webauthn" | "shipping honorific-prefix" | "shipping honorific-prefix webauthn" | "shipping honorific-suffix" | "shipping honorific-suffix webauthn" | "shipping new-password" | "shipping new-password webauthn" | "shipping one-time-code" | "shipping one-time-code webauthn" | "shipping organization" | "shipping organization webauthn" | "shipping postal-code" | "shipping postal-code webauthn" | "shipping street-address" | "shipping street-address webauthn" | "shipping transaction-amount" | "shipping transaction-amount webauthn" | "shipping transaction-currency" | "shipping transaction-currency webauthn" | "shipping username" | "shipping username webauthn" | "shipping email" | "shipping email webauthn" | "shipping tel" | "shipping tel webauthn" | "shipping tel-area-code" | "shipping tel-area-code webauthn" | "shipping tel-country-code" | "shipping tel-country-code webauthn" | "shipping tel-extension" | "shipping tel-extension webauthn" | "shipping tel-local" | "shipping tel-local webauthn" | "shipping tel-local-prefix" | "shipping tel-local-prefix webauthn" | "shipping tel-local-suffix" | "shipping tel-local-suffix webauthn" | "shipping tel-national" | "shipping tel-national webauthn" | "shipping home email" | "shipping home email webauthn" | "shipping home tel" | "shipping home tel webauthn" | "shipping home tel-area-code" | "shipping home tel-area-code webauthn" | "shipping home tel-country-code" | "shipping home tel-country-code webauthn" | "shipping home tel-extension" | "shipping home tel-extension webauthn" | "shipping home tel-local" | "shipping home tel-local webauthn" | "shipping home tel-local-prefix" | "shipping home tel-local-prefix webauthn" | "shipping home tel-local-suffix" | "shipping home tel-local-suffix webauthn" | "shipping home tel-national" | "shipping home tel-national webauthn" | "shipping mobile email" | "shipping mobile email webauthn" | "shipping mobile tel" | "shipping mobile tel webauthn" | "shipping mobile tel-area-code" | "shipping mobile tel-area-code webauthn" | "shipping mobile tel-country-code" | "shipping mobile tel-country-code webauthn" | "shipping mobile tel-extension" | "shipping mobile tel-extension webauthn" | "shipping mobile tel-local" | "shipping mobile tel-local webauthn" | "shipping mobile tel-local-prefix" | "shipping mobile tel-local-prefix webauthn" | "shipping mobile tel-local-suffix" | "shipping mobile tel-local-suffix webauthn" | "shipping mobile tel-national" | "shipping mobile tel-national webauthn" | "shipping work email" | "shipping work email webauthn" | "shipping work tel" | "shipping work tel webauthn" | "shipping work tel-area-code" | "shipping work tel-area-code webauthn" | "shipping work tel-country-code" | "shipping work tel-country-code webauthn" | "shipping work tel-extension" | "shipping work tel-extension webauthn" | "shipping work tel-local" | "shipping work tel-local webauthn" | "shipping work tel-local-prefix" | "shipping work tel-local-prefix webauthn" | "shipping work tel-local-suffix" | "shipping work tel-local-suffix webauthn" | "shipping work tel-national" | "shipping work tel-national webauthn" | `section-${string} name` | `section-${string} name webauthn` | `section-${string} additional-name` | `section-${string} additional-name webauthn` | `section-${string} address-level1` | `section-${string} address-level1 webauthn` | `section-${string} address-level2` | `section-${string} address-level2 webauthn` | `section-${string} address-level3` | `section-${string} address-level3 webauthn` | `section-${string} address-level4` | `section-${string} address-level4 webauthn` | `section-${string} address-line1` | `section-${string} address-line1 webauthn` | `section-${string} address-line2` | `section-${string} address-line2 webauthn` | `section-${string} address-line3` | `section-${string} address-line3 webauthn` | `section-${string} bday-day` | `section-${string} bday-day webauthn` | `section-${string} bday-month` | `section-${string} bday-month webauthn` | `section-${string} bday-year` | `section-${string} bday-year webauthn` | `section-${string} cc-csc` | `section-${string} cc-csc webauthn` | `section-${string} cc-exp` | `section-${string} cc-exp webauthn` | `section-${string} cc-exp-month` | `section-${string} cc-exp-month webauthn` | `section-${string} cc-exp-year` | `section-${string} cc-exp-year webauthn` | `section-${string} cc-family-name` | `section-${string} cc-family-name webauthn` | `section-${string} cc-given-name` | `section-${string} cc-given-name webauthn` | `section-${string} cc-name` | `section-${string} cc-name webauthn` | `section-${string} cc-number` | `section-${string} cc-number webauthn` | `section-${string} cc-type` | `section-${string} cc-type webauthn` | `section-${string} country` | `section-${string} country webauthn` | `section-${string} country-name` | `section-${string} country-name webauthn` | `section-${string} current-password` | `section-${string} current-password webauthn` | `section-${string} family-name` | `section-${string} family-name webauthn` | `section-${string} given-name` | `section-${string} given-name webauthn` | `section-${string} honorific-prefix` | `section-${string} honorific-prefix webauthn` | `section-${string} honorific-suffix` | `section-${string} honorific-suffix webauthn` | `section-${string} new-password` | `section-${string} new-password webauthn` | `section-${string} one-time-code` | `section-${string} one-time-code webauthn` | `section-${string} organization` | `section-${string} organization webauthn` | `section-${string} postal-code` | `section-${string} postal-code webauthn` | `section-${string} street-address` | `section-${string} street-address webauthn` | `section-${string} transaction-amount` | `section-${string} transaction-amount webauthn` | `section-${string} transaction-currency` | `section-${string} transaction-currency webauthn` | `section-${string} username` | `section-${string} username webauthn` | `section-${string} email` | `section-${string} email webauthn` | `section-${string} tel` | `section-${string} tel webauthn` | `section-${string} tel-area-code` | `section-${string} tel-area-code webauthn` | `section-${string} tel-country-code` | `section-${string} tel-country-code webauthn` | `section-${string} tel-extension` | `section-${string} tel-extension webauthn` | `section-${string} tel-local` | `section-${string} tel-local webauthn` | `section-${string} tel-local-prefix` | `section-${string} tel-local-prefix webauthn` | `section-${string} tel-local-suffix` | `section-${string} tel-local-suffix webauthn` | `section-${string} tel-national` | `section-${string} tel-national webauthn` | "bday" | "cc-additional-name" | "billing cc-additional-name" | "shipping cc-additional-name" | "nickname" | "language" | "organization-title" | "photo" | "sex" | "url";
69
76
  "data-pin-input-input": string;
70
77
  "data-pin-input-input-mss": number | null;
71
78
  "data-pin-input-input-mse": number | null;
72
- inputmode: "none" | "text" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | null | undefined;
79
+ inputmode: "none" | "search" | "text" | "email" | "tel" | "url" | "numeric" | "decimal" | null | undefined;
73
80
  pattern: any;
74
81
  maxlength: number;
75
82
  value: string;
76
83
  disabled: true | undefined;
77
- onpaste: (e: ClipboardEvent & {
78
- currentTarget: HTMLInputElement;
79
- }) => void;
80
- oninput: (e: Event & {
81
- currentTarget: HTMLInputElement;
82
- }) => void;
83
- onmouseover: () => void;
84
- onmouseleave: () => void;
85
- onfocus: (_: FocusEvent & {
86
- currentTarget: HTMLInputElement;
87
- }) => void;
88
- onblur: () => void;
84
+ onpaste: (e: BitsEvent<ClipboardEvent>) => void;
85
+ oninput: (e: BitsEvent<Event, HTMLInputElement>) => void;
86
+ onkeydown: (e: BitsKeyboardEvent) => void;
87
+ onmouseover: (_: BitsMouseEvent) => void;
88
+ onmouseleave: (_: BitsMouseEvent) => void;
89
+ onfocus: (_: BitsFocusEvent<HTMLInputElement>) => void;
90
+ onblur: (_: BitsFocusEvent) => void;
89
91
  };
90
92
  snippetProps: {
91
93
  cells: {