@vireo-ai/trellis-ui 0.1.27 → 0.1.29

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 (192) hide show
  1. package/package.json +6 -1
  2. package/packages/client/src/components/checkbox/styles.css +7 -0
  3. package/packages/client/src/components/radio/styles.css +2 -8
  4. package/packages/client/src/styles/components.css +1 -0
  5. package/packages/client/src/styles/generated-sources.css +1 -1
  6. package/packages/client/src/styles/theme.css +54 -10
  7. package/packages/client/types/assets/full-runtime.generated.d.ts +1 -1
  8. package/packages/client/types/capabilities/motion.entry.generated.d.ts +3 -0
  9. package/packages/client/types/capabilities/resizable.entry.generated.d.ts +3 -0
  10. package/packages/client/types/capabilities/sortable.entry.generated.d.ts +3 -0
  11. package/packages/client/types/component-api.d.ts +10 -10
  12. package/packages/client/types/components/accordion/index.d.ts +7 -4
  13. package/packages/client/types/components/accordion/machine.d.ts +51 -57
  14. package/packages/client/types/components/card/contract.d.ts +5 -2
  15. package/packages/client/types/components/checkbox/contract.d.ts +17 -7
  16. package/packages/client/types/components/common.d.ts +6 -1
  17. package/packages/client/types/components/date-picker/index.d.ts +7 -4
  18. package/packages/client/types/components/date-picker/machine.d.ts +46 -362
  19. package/packages/client/types/components/dropdown/index.d.ts +7 -4
  20. package/packages/client/types/components/dropdown/machine.d.ts +5 -67
  21. package/packages/client/types/components/field/index.d.ts +1 -2
  22. package/packages/client/types/components/file-upload/index.d.ts +7 -4
  23. package/packages/client/types/components/file-upload/machine.d.ts +17 -39
  24. package/packages/client/types/components/input/index.d.ts +1 -2
  25. package/packages/client/types/components/modal/index.d.ts +6 -2
  26. package/packages/client/types/components/modal/machine.d.ts +5 -103
  27. package/packages/client/types/components/panels/index.d.ts +6 -2
  28. package/packages/client/types/components/panels/machine.d.ts +59 -81
  29. package/packages/client/types/components/radio/contract.d.ts +12 -4
  30. package/packages/client/types/components/runtime.d.ts +10 -10
  31. package/packages/client/types/components/scroll-area/index.d.ts +1 -2
  32. package/packages/client/types/components/select/index.d.ts +7 -4
  33. package/packages/client/types/components/select/machine.d.ts +37 -331
  34. package/packages/client/types/components/sidebar/index.d.ts +6 -2
  35. package/packages/client/types/components/sidebar/machine.d.ts +11 -47
  36. package/packages/client/types/components/slider/index.d.ts +1 -2
  37. package/packages/client/types/components/switch/index.d.ts +1 -2
  38. package/packages/client/types/components/tabs/contract.d.ts +6 -2
  39. package/packages/client/types/components/tabs/index.d.ts +7 -4
  40. package/packages/client/types/components/tabs/machine.d.ts +11 -29
  41. package/packages/client/types/components/toast/index.d.ts +6 -2
  42. package/packages/client/types/components/toast/machine.d.ts +7 -66
  43. package/packages/client/types/core.d.ts +2 -2
  44. package/packages/client/types/runtime/alpine-data.d.ts +6 -0
  45. package/packages/client/types/runtime/alpine-machine.d.ts +3 -8
  46. package/packages/client/types/runtime/engine/request.d.ts +1 -0
  47. package/packages/client/types/runtime/index.d.ts +7 -3
  48. package/packages/client/types/runtime/transition-coordinator.d.ts +41 -7
  49. package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +54 -107
  50. package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
  51. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/build-metadata.json +491 -375
  52. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/motion.js +2 -0
  53. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/motion.js.map +1 -0
  54. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/resizable.js +2 -0
  55. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/resizable.js.map +1 -0
  56. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/sortable.js +2 -0
  57. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/sortable.js.map +1 -0
  58. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/alpine-data-DZ17j0jc.js +2 -0
  59. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/alpine-data-DZ17j0jc.js.map +1 -0
  60. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/alpine-machine-D0Kqjm-1.js +2 -0
  61. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/alpine-machine-D0Kqjm-1.js.map +1 -0
  62. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-motion-Cog7tKk0.js +2 -0
  63. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-motion-Cog7tKk0.js.map +1 -0
  64. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-resizable-C6LKIbpv.js +2 -0
  65. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-resizable-C6LKIbpv.js.map +1 -0
  66. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-k107A8WE.js +3 -0
  67. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-k107A8WE.js.map +1 -0
  68. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{common-DAxHCzB-.js → common-BOd_thC-.js} +2 -2
  69. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{common-DAxHCzB-.js.map → common-BOd_thC-.js.map} +1 -1
  70. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-vW9Cglw8.js +2 -0
  71. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{core-DjoX4J-6.js.map → core-vW9Cglw8.js.map} +1 -1
  72. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/drag-and-drop-BV6kB47L.js +2 -0
  73. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/drag-and-drop-BV6kB47L.js.map +1 -0
  74. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bbm6qhVl.js +2 -0
  75. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bbm6qhVl.js.map +1 -0
  76. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BgnZZd0A.js +2 -0
  77. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BgnZZd0A.js.map +1 -0
  78. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BhPEF6oz.js +2 -0
  79. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-xcXw-cEl.js.map → entry.generated-BhPEF6oz.js.map} +1 -1
  80. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bhvs_TUM.js +2 -0
  81. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bhvs_TUM.js.map +1 -0
  82. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CGgRCeB5.js +2 -0
  83. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CGgRCeB5.js.map +1 -0
  84. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CgO0b8V6.js +2 -0
  85. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CgO0b8V6.js.map +1 -0
  86. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Cvgc61x9.js +2 -0
  87. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Cvgc61x9.js.map +1 -0
  88. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DFITIl56.js +2 -0
  89. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DFITIl56.js.map +1 -0
  90. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DMK37KS0.js +2 -0
  91. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DMK37KS0.js.map +1 -0
  92. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DMre0DbH.js +2 -0
  93. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DMre0DbH.js.map +1 -0
  94. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DOV8BDMY.js +2 -0
  95. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DOV8BDMY.js.map +1 -0
  96. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DT70Lo44.js +2 -0
  97. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DT70Lo44.js.map +1 -0
  98. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DVPnOfPb.js +2 -0
  99. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DVPnOfPb.js.map +1 -0
  100. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DiG5fS1F.js +2 -0
  101. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DiG5fS1F.js.map +1 -0
  102. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DnSxEcns.js +2 -0
  103. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DnSxEcns.js.map +1 -0
  104. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-JnbQA47P.js +2 -0
  105. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-JnbQA47P.js.map +1 -0
  106. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-byAFfb_v.js +2 -0
  107. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-byAFfb_v.js.map +1 -0
  108. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-dTc38DPe.js +2 -0
  109. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-dTc38DPe.js.map +1 -0
  110. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/machine-Dqut4h89.js +2 -0
  111. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/machine-Dqut4h89.js.map +1 -0
  112. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/motion-BRaHJwNf.js +3 -0
  113. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/motion-BRaHJwNf.js.map +1 -0
  114. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/semantic-observer-DS2ew4dT.js +2 -0
  115. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{semantic-observer-9VxzbQBi.js.map → semantic-observer-DS2ew4dT.js.map} +1 -1
  116. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/stream-uyKKe0QF.js +4 -0
  117. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/stream-uyKKe0QF.js.map +1 -0
  118. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-H3t7UHMs.js +2 -0
  119. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-H3t7UHMs.js.map +1 -0
  120. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/accordion.js +1 -1
  121. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/checkbox.js +1 -1
  122. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/date-picker.js +1 -1
  123. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/dropdown.js +1 -1
  124. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/field.js +1 -1
  125. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/file-upload.js +1 -1
  126. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/index.js +2 -1
  127. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/index.js.map +1 -0
  128. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/input.js +1 -1
  129. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/modal.js +1 -1
  130. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/panels.js +1 -1
  131. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/radio.js +1 -1
  132. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/scroll-area.js +1 -1
  133. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/select.js +1 -1
  134. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/sidebar.js +1 -1
  135. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/slider.js +1 -1
  136. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/switch.js +1 -1
  137. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/table.js +1 -1
  138. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/tabs.js +1 -1
  139. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/toast.js +1 -1
  140. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/core.js +1 -1
  141. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +1 -1
  142. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
  143. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/logical-entry-manifest.json +232 -127
  144. package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +9 -9
  145. package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +9 -9
  146. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-DjoX4J-6.js +0 -2
  147. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-5kNpQFGr.js +0 -2
  148. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-5kNpQFGr.js.map +0 -1
  149. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-B85L90Qp.js +0 -2
  150. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-B85L90Qp.js.map +0 -1
  151. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BGCM6LAW.js +0 -2
  152. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BGCM6LAW.js.map +0 -1
  153. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bc-uE56r.js +0 -2
  154. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bc-uE56r.js.map +0 -1
  155. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C6ldtrmy.js +0 -2
  156. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C6ldtrmy.js.map +0 -1
  157. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CPWoMIwn.js +0 -2
  158. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CPWoMIwn.js.map +0 -1
  159. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Co0bLLZE.js +0 -2
  160. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Co0bLLZE.js.map +0 -1
  161. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CtyXH8zf.js +0 -2
  162. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CtyXH8zf.js.map +0 -1
  163. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DGrOItIx.js +0 -2
  164. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DGrOItIx.js.map +0 -1
  165. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DHMRhcYF.js +0 -2
  166. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DHMRhcYF.js.map +0 -1
  167. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DgmqZx_W.js +0 -2
  168. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DgmqZx_W.js.map +0 -1
  169. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DoOgk6l4.js +0 -2
  170. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DoOgk6l4.js.map +0 -1
  171. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DxUOcPkU.js +0 -2
  172. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DxUOcPkU.js.map +0 -1
  173. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DyIjCOhT.js +0 -2
  174. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DyIjCOhT.js.map +0 -1
  175. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DzG9Lai4.js +0 -3
  176. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DzG9Lai4.js.map +0 -1
  177. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-K6qKowpw.js +0 -2
  178. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-K6qKowpw.js.map +0 -1
  179. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-oAIExc1V.js +0 -2
  180. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-oAIExc1V.js.map +0 -1
  181. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-wHjTggCn.js +0 -2
  182. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-wHjTggCn.js.map +0 -1
  183. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-xcXw-cEl.js +0 -2
  184. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/machine-CX3wFSoV.js +0 -2
  185. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/machine-CX3wFSoV.js.map +0 -1
  186. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/motion-Bpttk6iZ.js +0 -3
  187. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/motion-Bpttk6iZ.js.map +0 -1
  188. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/resizable-BixtYF9M.js +0 -2
  189. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/resizable-BixtYF9M.js.map +0 -1
  190. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/semantic-observer-9VxzbQBi.js +0 -2
  191. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-xTjuF3uC.js +0 -4
  192. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-xTjuF3uC.js.map +0 -1
@@ -1,34 +1,34 @@
1
1
  export { registerAccordion, UiAccordion } from './accordion';
2
- export type { AccordionData, UiAccordionApi } from './accordion';
2
+ export type { AccordionData, AccordionTransition, UiAccordionApi } from './accordion';
3
3
  export { registerButton, unregisterButton } from './button';
4
4
  export { registerCheckbox, UiCheckbox, UiCheckboxGroup, } from './checkbox';
5
5
  export type { CheckboxData, CheckboxGroupData, CheckboxState, UiCheckboxApi } from './checkbox';
6
6
  export { registerDatePicker, UiDatePicker } from './date-picker';
7
- export type { DatePickerData } from './date-picker';
7
+ export type { DatePickerData, DatePickerTransition } from './date-picker';
8
8
  export { registerDropdown, UiDropdown } from './dropdown';
9
- export type { DropdownData, UiDropdownApi } from './dropdown';
9
+ export type { DropdownData, DropdownTransition, UiDropdownApi } from './dropdown';
10
10
  export { registerField, UiField } from './field';
11
11
  export { registerFileUpload, UiFileUpload } from './file-upload';
12
- export type { FileTransferStatus, FileUploadData, FileUploadMetadata, FileUploadRecord, UiFileUploadApi } from './file-upload';
12
+ export type { FileTransferStatus, FileUploadData, FileUploadMetadata, FileUploadRecord, FileUploadTransition, UiFileUploadApi, } from './file-upload';
13
13
  export { registerInput, UiInput } from './input';
14
14
  export type { InputData, UiInputApi } from './input';
15
15
  export { registerModal, UiModal, UiModalTrigger, } from './modal';
16
- export type { ModalCancelDetail, UiModalApi, UiModalTriggerApi } from './modal';
16
+ export type { ModalCancelDetail, ModalTransition, UiModalApi, UiModalTriggerApi } from './modal';
17
17
  export { registerPanels, UiPanels, UiPanelToggle } from './panels';
18
- export type { PanelsData, UiPanelsApi } from './panels';
18
+ export type { PanelsData, PanelsTransition, UiPanelsApi } from './panels';
19
19
  export { registerRadio, UiRadio, UiRadioGroup } from './radio';
20
20
  export type { RadioData, RadioGroupData, UiRadioGroupApi } from './radio';
21
21
  export { registerScrollArea, UiScrollArea } from './scroll-area';
22
22
  export type { ScrollAreaData, ScrollAreaElements, UiScrollAreaApi } from './scroll-area';
23
23
  export { registerSelect, UiSelect } from './select';
24
- export type { SelectData, UiSelectApi } from './select';
24
+ export type { SelectData, SelectTransition, UiSelectApi } from './select';
25
25
  export { registerSidebar, UiSidebar, UiSidebarToggle, } from './sidebar';
26
- export type { SidebarController, SidebarData } from './sidebar';
26
+ export type { SidebarController, SidebarData, SidebarTransition } from './sidebar';
27
27
  export { registerSlider, UiSlider } from './slider';
28
28
  export type { SliderData, SliderElements, SliderThumbName, SliderValues, UiSliderApi } from './slider';
29
29
  export { registerSwitch, UiSwitch } from './switch';
30
30
  export type { SwitchData, UiSwitchApi } from './switch';
31
31
  export { registerTabs, UiTabs, type UiTabsApi } from './tabs';
32
- export type { TabsActivateDetail, TabsChangeDetail } from './tabs';
32
+ export type { TabsActivateDetail, TabsChangeDetail, TabsTransition } from './tabs';
33
33
  export { registerToast, UiToast, UiToastOutlet, } from './toast';
34
- export type { ToastData, ToastDetail, ToastOutletData } from './toast';
34
+ export type { ToastData, ToastDetail, ToastOutletData, ToastTransition } from './toast';
@@ -1,4 +1,3 @@
1
- import type Alpine from 'alpinejs';
2
1
  import { type AlpineMachine, type BindingObject, type TrellisAlpineComponent } from '../../runtime';
3
2
  import { type ScrollAreaProps } from './contract';
4
3
  import { type ScrollAreaContext, scrollAreaHooks } from './machine';
@@ -37,6 +36,6 @@ type ScrollAreaData = AlpineMachine<ScrollAreaContext, ScrollAreaProps, typeof s
37
36
  corner(el: HTMLElement): BindingObject;
38
37
  };
39
38
  declare const UiScrollArea: () => TrellisAlpineComponent<ScrollAreaData>;
40
- declare const registerScrollArea: (AlpineInstance: Alpine.Alpine) => void;
39
+ declare const registerScrollArea: import("../../runtime").AlpineDataRegistrar;
41
40
  export { registerScrollArea, UiScrollArea };
42
41
  export type { ScrollAreaData, ScrollAreaElements, UiScrollAreaApi };
@@ -1,8 +1,11 @@
1
- import type Alpine from 'alpinejs';
2
- import { type AlpineMachine, type TrellisAlpineComponent } from '../../runtime';
1
+ import { type AlpineMachine, type TransitionForHook, type TrellisAlpineComponent } from '../../runtime';
3
2
  import { type BindingObject } from '../../runtime/merge-bindings';
4
3
  import { type SelectProps } from './contract';
5
4
  import { type SelectContext, selectHooks } from './machine';
5
+ type SelectTransitionName = (typeof selectHooks)[number]['name'];
6
+ type SelectTransition<TName extends SelectTransitionName = SelectTransitionName> = TransitionForHook<Extract<(typeof selectHooks)[number], {
7
+ name: TName;
8
+ }>, HTMLElement>;
6
9
  /**
7
10
  * Public Alpine API for `ui.select`.
8
11
  *
@@ -46,6 +49,6 @@ type SelectData = AlpineMachine<SelectContext, SelectProps, typeof selectHooks>
46
49
  destroy(): void;
47
50
  };
48
51
  declare const UiSelect: () => TrellisAlpineComponent<SelectData>;
49
- declare const registerSelect: (AlpineInstance: Alpine.Alpine) => void;
52
+ declare const registerSelect: import("../../runtime").AlpineDataRegistrar;
50
53
  export { registerSelect, UiSelect };
51
- export type { SelectData, UiSelectApi };
54
+ export type { SelectData, SelectTransition, UiSelectApi };
@@ -33,232 +33,32 @@ type CreateSelectMachineOptions = {
33
33
  context: SelectContext;
34
34
  effects: SelectMachineEffects;
35
35
  };
36
- declare const selectHooks: readonly [Readonly<{
36
+ declare const selectHooks: readonly [{
37
37
  name: "opening";
38
38
  state: string;
39
+ project: () => {};
39
40
  onDone: string;
40
41
  onError: string;
41
- required?: boolean;
42
- sends?: Record<string, import("../..").TransitionEventCreator>;
43
- project?: (snapshot: Readonly<{
44
- value: import("../..").MachineStateValue;
45
- tags: readonly string[];
46
- context: Readonly<SelectContext>;
47
- props: Readonly<import("../..").SchemaToProps<{
48
- name: import("../../runtime/codecs").StringCodec;
49
- optionsId: import("../../runtime/codecs").StringCodec;
50
- value: import("../../runtime/codecs").StringCodec;
51
- values: import("../../runtime/codecs").JsonCodec<string[]>;
52
- placeholder: import("../../runtime/codecs").StringCodec;
53
- mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
54
- multiple: import("../../runtime/codecs").BoolCodec;
55
- searchable: import("../../runtime/codecs").BoolCodec;
56
- creatable: import("../../runtime/codecs").BoolCodec;
57
- filter: import("../../runtime/codecs").BoolCodec;
58
- clearable: import("../../runtime/codecs").BoolCodec;
59
- clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
60
- suffix: import("../../runtime/codecs").StringCodec;
61
- mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
62
- open: import("../../runtime/codecs").BoolCodec;
63
- disabled: import("../../runtime/codecs").BoolCodec;
64
- readonly: import("../../runtime/codecs").BoolCodec;
65
- required: import("../../runtime/codecs").BoolCodec;
66
- invalid: import("../../runtime/codecs").BoolCodec;
67
- autoHighlight: import("../../runtime/codecs").BoolCodec;
68
- loop: import("../../runtime/codecs").BoolCodec;
69
- path: import("../../runtime/codecs").StringCodec;
70
- size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
71
- variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
72
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
73
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
74
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
75
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
76
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
77
- offset: import("../../runtime/codecs").NumberCodec;
78
- gap: import("../../runtime/codecs").NumberCodec;
79
- empty: import("../../runtime/codecs").StringCodec;
80
- icon: import("../../runtime/codecs").StringCodec;
81
- iconTrailing: import("../../runtime/codecs").StringCodec;
82
- iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
83
- buttonClass: import("../../runtime/codecs").StringCodec;
84
- inputClass: import("../../runtime/codecs").StringCodec;
85
- listboxClass: import("../../runtime/codecs").StringCodec;
86
- optionClass: import("../../runtime/codecs").StringCodec;
87
- chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
88
- chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
89
- chipClass: import("../../runtime/codecs").StringCodec;
90
- class: import("../../runtime/codecs").StringCodec;
91
- }>>;
92
- generations: Readonly<Record<string, number>>;
93
- }>) => Record<string, never>;
94
- projectEach?: (snapshot: Readonly<{
95
- value: import("../..").MachineStateValue;
96
- tags: readonly string[];
97
- context: Readonly<SelectContext>;
98
- props: Readonly<import("../..").SchemaToProps<{
99
- name: import("../../runtime/codecs").StringCodec;
100
- optionsId: import("../../runtime/codecs").StringCodec;
101
- value: import("../../runtime/codecs").StringCodec;
102
- values: import("../../runtime/codecs").JsonCodec<string[]>;
103
- placeholder: import("../../runtime/codecs").StringCodec;
104
- mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
105
- multiple: import("../../runtime/codecs").BoolCodec;
106
- searchable: import("../../runtime/codecs").BoolCodec;
107
- creatable: import("../../runtime/codecs").BoolCodec;
108
- filter: import("../../runtime/codecs").BoolCodec;
109
- clearable: import("../../runtime/codecs").BoolCodec;
110
- clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
111
- suffix: import("../../runtime/codecs").StringCodec;
112
- mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
113
- open: import("../../runtime/codecs").BoolCodec;
114
- disabled: import("../../runtime/codecs").BoolCodec;
115
- readonly: import("../../runtime/codecs").BoolCodec;
116
- required: import("../../runtime/codecs").BoolCodec;
117
- invalid: import("../../runtime/codecs").BoolCodec;
118
- autoHighlight: import("../../runtime/codecs").BoolCodec;
119
- loop: import("../../runtime/codecs").BoolCodec;
120
- path: import("../../runtime/codecs").StringCodec;
121
- size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
122
- variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
123
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
124
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
125
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
126
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
127
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
128
- offset: import("../../runtime/codecs").NumberCodec;
129
- gap: import("../../runtime/codecs").NumberCodec;
130
- empty: import("../../runtime/codecs").StringCodec;
131
- icon: import("../../runtime/codecs").StringCodec;
132
- iconTrailing: import("../../runtime/codecs").StringCodec;
133
- iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
134
- buttonClass: import("../../runtime/codecs").StringCodec;
135
- inputClass: import("../../runtime/codecs").StringCodec;
136
- listboxClass: import("../../runtime/codecs").StringCodec;
137
- optionClass: import("../../runtime/codecs").StringCodec;
138
- chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
139
- chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
140
- chipClass: import("../../runtime/codecs").StringCodec;
141
- class: import("../../runtime/codecs").StringCodec;
142
- }>>;
143
- generations: Readonly<Record<string, number>>;
144
- }>) => readonly Record<string, never>[];
145
- }>, Readonly<{
42
+ sends: {
43
+ close: () => {
44
+ type: string;
45
+ };
46
+ };
47
+ }, {
146
48
  name: "closing";
147
49
  state: string;
50
+ project: () => {};
148
51
  onDone: string;
149
52
  onError: string;
150
- required?: boolean;
151
- sends?: Record<string, import("../..").TransitionEventCreator>;
152
- project?: (snapshot: Readonly<{
153
- value: import("../..").MachineStateValue;
154
- tags: readonly string[];
155
- context: Readonly<SelectContext>;
156
- props: Readonly<import("../..").SchemaToProps<{
157
- name: import("../../runtime/codecs").StringCodec;
158
- optionsId: import("../../runtime/codecs").StringCodec;
159
- value: import("../../runtime/codecs").StringCodec;
160
- values: import("../../runtime/codecs").JsonCodec<string[]>;
161
- placeholder: import("../../runtime/codecs").StringCodec;
162
- mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
163
- multiple: import("../../runtime/codecs").BoolCodec;
164
- searchable: import("../../runtime/codecs").BoolCodec;
165
- creatable: import("../../runtime/codecs").BoolCodec;
166
- filter: import("../../runtime/codecs").BoolCodec;
167
- clearable: import("../../runtime/codecs").BoolCodec;
168
- clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
169
- suffix: import("../../runtime/codecs").StringCodec;
170
- mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
171
- open: import("../../runtime/codecs").BoolCodec;
172
- disabled: import("../../runtime/codecs").BoolCodec;
173
- readonly: import("../../runtime/codecs").BoolCodec;
174
- required: import("../../runtime/codecs").BoolCodec;
175
- invalid: import("../../runtime/codecs").BoolCodec;
176
- autoHighlight: import("../../runtime/codecs").BoolCodec;
177
- loop: import("../../runtime/codecs").BoolCodec;
178
- path: import("../../runtime/codecs").StringCodec;
179
- size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
180
- variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
181
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
182
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
183
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
184
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
185
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
186
- offset: import("../../runtime/codecs").NumberCodec;
187
- gap: import("../../runtime/codecs").NumberCodec;
188
- empty: import("../../runtime/codecs").StringCodec;
189
- icon: import("../../runtime/codecs").StringCodec;
190
- iconTrailing: import("../../runtime/codecs").StringCodec;
191
- iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
192
- buttonClass: import("../../runtime/codecs").StringCodec;
193
- inputClass: import("../../runtime/codecs").StringCodec;
194
- listboxClass: import("../../runtime/codecs").StringCodec;
195
- optionClass: import("../../runtime/codecs").StringCodec;
196
- chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
197
- chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
198
- chipClass: import("../../runtime/codecs").StringCodec;
199
- class: import("../../runtime/codecs").StringCodec;
200
- }>>;
201
- generations: Readonly<Record<string, number>>;
202
- }>) => Record<string, never>;
203
- projectEach?: (snapshot: Readonly<{
204
- value: import("../..").MachineStateValue;
205
- tags: readonly string[];
206
- context: Readonly<SelectContext>;
207
- props: Readonly<import("../..").SchemaToProps<{
208
- name: import("../../runtime/codecs").StringCodec;
209
- optionsId: import("../../runtime/codecs").StringCodec;
210
- value: import("../../runtime/codecs").StringCodec;
211
- values: import("../../runtime/codecs").JsonCodec<string[]>;
212
- placeholder: import("../../runtime/codecs").StringCodec;
213
- mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
214
- multiple: import("../../runtime/codecs").BoolCodec;
215
- searchable: import("../../runtime/codecs").BoolCodec;
216
- creatable: import("../../runtime/codecs").BoolCodec;
217
- filter: import("../../runtime/codecs").BoolCodec;
218
- clearable: import("../../runtime/codecs").BoolCodec;
219
- clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
220
- suffix: import("../../runtime/codecs").StringCodec;
221
- mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
222
- open: import("../../runtime/codecs").BoolCodec;
223
- disabled: import("../../runtime/codecs").BoolCodec;
224
- readonly: import("../../runtime/codecs").BoolCodec;
225
- required: import("../../runtime/codecs").BoolCodec;
226
- invalid: import("../../runtime/codecs").BoolCodec;
227
- autoHighlight: import("../../runtime/codecs").BoolCodec;
228
- loop: import("../../runtime/codecs").BoolCodec;
229
- path: import("../../runtime/codecs").StringCodec;
230
- size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
231
- variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
232
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
233
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
234
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
235
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
236
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
237
- offset: import("../../runtime/codecs").NumberCodec;
238
- gap: import("../../runtime/codecs").NumberCodec;
239
- empty: import("../../runtime/codecs").StringCodec;
240
- icon: import("../../runtime/codecs").StringCodec;
241
- iconTrailing: import("../../runtime/codecs").StringCodec;
242
- iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
243
- buttonClass: import("../../runtime/codecs").StringCodec;
244
- inputClass: import("../../runtime/codecs").StringCodec;
245
- listboxClass: import("../../runtime/codecs").StringCodec;
246
- optionClass: import("../../runtime/codecs").StringCodec;
247
- chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
248
- chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
249
- chipClass: import("../../runtime/codecs").StringCodec;
250
- class: import("../../runtime/codecs").StringCodec;
251
- }>>;
252
- generations: Readonly<Record<string, number>>;
253
- }>) => readonly Record<string, never>[];
254
- }>, Readonly<{
53
+ sends: {
54
+ open: () => {
55
+ type: string;
56
+ };
57
+ };
58
+ }, {
255
59
  name: "searching";
256
60
  state: string;
257
- onDone: string;
258
- onError: string;
259
- required?: boolean;
260
- sends?: Record<string, import("../..").TransitionEventCreator>;
261
- project?: (snapshot: Readonly<{
61
+ project: (snapshot: Readonly<{
262
62
  value: import("../..").MachineStateValue;
263
63
  tags: readonly string[];
264
64
  context: Readonly<SelectContext>;
@@ -312,68 +112,21 @@ declare const selectHooks: readonly [Readonly<{
312
112
  query: string;
313
113
  optionsId: string;
314
114
  };
315
- projectEach?: (snapshot: Readonly<{
316
- value: import("../..").MachineStateValue;
317
- tags: readonly string[];
318
- context: Readonly<SelectContext>;
319
- props: Readonly<import("../..").SchemaToProps<{
320
- name: import("../../runtime/codecs").StringCodec;
321
- optionsId: import("../../runtime/codecs").StringCodec;
322
- value: import("../../runtime/codecs").StringCodec;
323
- values: import("../../runtime/codecs").JsonCodec<string[]>;
324
- placeholder: import("../../runtime/codecs").StringCodec;
325
- mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
326
- multiple: import("../../runtime/codecs").BoolCodec;
327
- searchable: import("../../runtime/codecs").BoolCodec;
328
- creatable: import("../../runtime/codecs").BoolCodec;
329
- filter: import("../../runtime/codecs").BoolCodec;
330
- clearable: import("../../runtime/codecs").BoolCodec;
331
- clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
332
- suffix: import("../../runtime/codecs").StringCodec;
333
- mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
334
- open: import("../../runtime/codecs").BoolCodec;
335
- disabled: import("../../runtime/codecs").BoolCodec;
336
- readonly: import("../../runtime/codecs").BoolCodec;
337
- required: import("../../runtime/codecs").BoolCodec;
338
- invalid: import("../../runtime/codecs").BoolCodec;
339
- autoHighlight: import("../../runtime/codecs").BoolCodec;
340
- loop: import("../../runtime/codecs").BoolCodec;
341
- path: import("../../runtime/codecs").StringCodec;
342
- size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
343
- variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
344
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
345
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
346
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
347
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
348
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
349
- offset: import("../../runtime/codecs").NumberCodec;
350
- gap: import("../../runtime/codecs").NumberCodec;
351
- empty: import("../../runtime/codecs").StringCodec;
352
- icon: import("../../runtime/codecs").StringCodec;
353
- iconTrailing: import("../../runtime/codecs").StringCodec;
354
- iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
355
- buttonClass: import("../../runtime/codecs").StringCodec;
356
- inputClass: import("../../runtime/codecs").StringCodec;
357
- listboxClass: import("../../runtime/codecs").StringCodec;
358
- optionClass: import("../../runtime/codecs").StringCodec;
359
- chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
360
- chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
361
- chipClass: import("../../runtime/codecs").StringCodec;
362
- class: import("../../runtime/codecs").StringCodec;
363
- }>>;
364
- generations: Readonly<Record<string, number>>;
365
- }>) => readonly {
366
- query: string;
367
- optionsId: string;
368
- }[];
369
- }>, Readonly<{
370
- name: "creating";
371
- state: string;
372
115
  onDone: string;
373
116
  onError: string;
374
- required?: boolean;
375
- sends?: Record<string, import("../..").TransitionEventCreator>;
376
- project?: (snapshot: Readonly<{
117
+ sends: {
118
+ search: (query: string) => {
119
+ type: string;
120
+ query: string;
121
+ };
122
+ close: () => {
123
+ type: string;
124
+ };
125
+ };
126
+ }, {
127
+ name: "creating";
128
+ state: string;
129
+ project: (snapshot: Readonly<{
377
130
  value: import("../..").MachineStateValue;
378
131
  tags: readonly string[];
379
132
  context: Readonly<SelectContext>;
@@ -427,61 +180,14 @@ declare const selectHooks: readonly [Readonly<{
427
180
  query: string;
428
181
  value: string;
429
182
  };
430
- projectEach?: (snapshot: Readonly<{
431
- value: import("../..").MachineStateValue;
432
- tags: readonly string[];
433
- context: Readonly<SelectContext>;
434
- props: Readonly<import("../..").SchemaToProps<{
435
- name: import("../../runtime/codecs").StringCodec;
436
- optionsId: import("../../runtime/codecs").StringCodec;
437
- value: import("../../runtime/codecs").StringCodec;
438
- values: import("../../runtime/codecs").JsonCodec<string[]>;
439
- placeholder: import("../../runtime/codecs").StringCodec;
440
- mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
441
- multiple: import("../../runtime/codecs").BoolCodec;
442
- searchable: import("../../runtime/codecs").BoolCodec;
443
- creatable: import("../../runtime/codecs").BoolCodec;
444
- filter: import("../../runtime/codecs").BoolCodec;
445
- clearable: import("../../runtime/codecs").BoolCodec;
446
- clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
447
- suffix: import("../../runtime/codecs").StringCodec;
448
- mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
449
- open: import("../../runtime/codecs").BoolCodec;
450
- disabled: import("../../runtime/codecs").BoolCodec;
451
- readonly: import("../../runtime/codecs").BoolCodec;
452
- required: import("../../runtime/codecs").BoolCodec;
453
- invalid: import("../../runtime/codecs").BoolCodec;
454
- autoHighlight: import("../../runtime/codecs").BoolCodec;
455
- loop: import("../../runtime/codecs").BoolCodec;
456
- path: import("../../runtime/codecs").StringCodec;
457
- size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
458
- variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
459
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
460
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
461
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
462
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
463
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
464
- offset: import("../../runtime/codecs").NumberCodec;
465
- gap: import("../../runtime/codecs").NumberCodec;
466
- empty: import("../../runtime/codecs").StringCodec;
467
- icon: import("../../runtime/codecs").StringCodec;
468
- iconTrailing: import("../../runtime/codecs").StringCodec;
469
- iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
470
- buttonClass: import("../../runtime/codecs").StringCodec;
471
- inputClass: import("../../runtime/codecs").StringCodec;
472
- listboxClass: import("../../runtime/codecs").StringCodec;
473
- optionClass: import("../../runtime/codecs").StringCodec;
474
- chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
475
- chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
476
- chipClass: import("../../runtime/codecs").StringCodec;
477
- class: import("../../runtime/codecs").StringCodec;
478
- }>>;
479
- generations: Readonly<Record<string, number>>;
480
- }>) => readonly {
481
- query: string;
482
- value: string;
483
- }[];
484
- }>];
183
+ onDone: string;
184
+ onError: string;
185
+ sends: {
186
+ close: () => {
187
+ type: string;
188
+ };
189
+ };
190
+ }];
485
191
  declare const createSelectMachine: ({ props, context, effects, }: CreateSelectMachineOptions) => Machine<SelectContext, SelectProps>;
486
192
  export { createSelectMachine, selectHooks };
487
193
  export type { CreateSelectMachineOptions, SelectContext, SelectMachineEffects, };
@@ -1,10 +1,14 @@
1
1
  import type Alpine from 'alpinejs';
2
- import { type AlpineMachine, type TrellisAlpineComponent } from '../../runtime';
2
+ import { type AlpineMachine, type TransitionForHook, type TrellisAlpineComponent } from '../../runtime';
3
3
  import { type SchemaToProps } from '../../runtime/codecs';
4
4
  import { type BindingObject } from '../../runtime/merge-bindings';
5
5
  import { type MotionHandle, type MotionTransitionSubject } from '../../motion';
6
6
  import { type SidebarProps, type SidebarToggleAction } from './contract';
7
7
  import { sidebarHooks, type SidebarContext, type SidebarMode } from './machine';
8
+ type SidebarTransitionName = (typeof sidebarHooks)[number]['name'];
9
+ type SidebarTransition<TName extends SidebarTransitionName = SidebarTransitionName> = TransitionForHook<Extract<(typeof sidebarHooks)[number], {
10
+ name: TName;
11
+ }>, HTMLElement>;
8
12
  type SidebarController = {
9
13
  readonly id: string;
10
14
  isExpanded(): boolean;
@@ -73,4 +77,4 @@ declare const UiSidebarEdge: () => TrellisAlpineComponent<{
73
77
  }>;
74
78
  declare const registerSidebar: (AlpineInstance: Alpine.Alpine) => void;
75
79
  export { registerSidebar, UiSidebar, UiSidebarEdge, UiSidebarToggle };
76
- export type { SidebarController, SidebarData, UiSidebarApi };
80
+ export type { SidebarController, SidebarData, SidebarTransition, UiSidebarApi };
@@ -32,69 +32,33 @@ type CreateSidebarMachineOptions = {
32
32
  desktopStashed: boolean;
33
33
  effects: SidebarMachineEffects;
34
34
  };
35
- declare const sidebarHooks: readonly [Readonly<{
35
+ declare const sidebarHooks: readonly [{
36
36
  name: "opening";
37
37
  state: string;
38
- onDone: string;
39
- onError: string;
40
- required?: boolean;
41
- sends?: Record<string, import("../..").TransitionEventCreator>;
42
- project?: (snapshot: Readonly<{
43
- value: import("../..").MachineStateValue;
44
- tags: readonly string[];
38
+ project: ({ context }: {
45
39
  context: Readonly<SidebarContext>;
46
- props: Readonly<unknown>;
47
- generations: Readonly<Record<string, number>>;
48
- }>) => {
40
+ }) => {
49
41
  mode: SidebarMode;
50
42
  presentation: SidebarPresentation;
51
43
  width: string;
52
44
  height: string;
53
45
  };
54
- projectEach?: (snapshot: Readonly<{
55
- value: import("../..").MachineStateValue;
56
- tags: readonly string[];
57
- context: Readonly<SidebarContext>;
58
- props: Readonly<unknown>;
59
- generations: Readonly<Record<string, number>>;
60
- }>) => readonly {
61
- mode: SidebarMode;
62
- presentation: SidebarPresentation;
63
- width: string;
64
- height: string;
65
- }[];
66
- }>, Readonly<{
67
- name: "closing";
68
- state: string;
69
46
  onDone: string;
70
47
  onError: string;
71
- required?: boolean;
72
- sends?: Record<string, import("../..").TransitionEventCreator>;
73
- project?: (snapshot: Readonly<{
74
- value: import("../..").MachineStateValue;
75
- tags: readonly string[];
48
+ }, {
49
+ name: "closing";
50
+ state: string;
51
+ project: ({ context }: {
76
52
  context: Readonly<SidebarContext>;
77
- props: Readonly<unknown>;
78
- generations: Readonly<Record<string, number>>;
79
- }>) => {
53
+ }) => {
80
54
  mode: SidebarMode;
81
55
  presentation: SidebarPresentation;
82
56
  width: string;
83
57
  height: string;
84
58
  };
85
- projectEach?: (snapshot: Readonly<{
86
- value: import("../..").MachineStateValue;
87
- tags: readonly string[];
88
- context: Readonly<SidebarContext>;
89
- props: Readonly<unknown>;
90
- generations: Readonly<Record<string, number>>;
91
- }>) => readonly {
92
- mode: SidebarMode;
93
- presentation: SidebarPresentation;
94
- width: string;
95
- height: string;
96
- }[];
97
- }>];
59
+ onDone: string;
60
+ onError: string;
61
+ }];
98
62
  declare const createSidebarMachine: ({ props, mode, desktopStashed, effects }: CreateSidebarMachineOptions) => Machine<SidebarContext, SidebarProps>;
99
63
  export { createSidebarMachine, sidebarHooks };
100
64
  export type { CreateSidebarMachineOptions, SidebarContext, SidebarMachineEffects, SidebarMode, SidebarPresentation, SidebarTarget };
@@ -1,4 +1,3 @@
1
- import type Alpine from 'alpinejs';
2
1
  import { type AlpineMachine, type TrellisAlpineComponent } from '../../runtime';
3
2
  import { type SliderProps } from './contract';
4
3
  import { type SliderContext, sliderHooks, type SliderThumbName, type SliderValues } from './machine';
@@ -32,6 +31,6 @@ type SliderData = AlpineMachine<SliderContext, SliderProps, typeof sliderHooks>
32
31
  destroy(): void;
33
32
  };
34
33
  declare const UiSlider: () => TrellisAlpineComponent<SliderData>;
35
- declare const registerSlider: (AlpineInstance: Alpine.Alpine) => void;
34
+ declare const registerSlider: import("../../runtime").AlpineDataRegistrar;
36
35
  export { registerSlider, UiSlider };
37
36
  export type { SliderData, SliderElements, SliderThumbName, SliderValues, UiSliderApi };
@@ -1,4 +1,3 @@
1
- import type Alpine from 'alpinejs';
2
1
  import { type AlpineMachine, type TrellisAlpineComponent } from '../../runtime';
3
2
  import { type SwitchControlProps } from './contract';
4
3
  import { switchHooks, type SwitchContext } from './machine';
@@ -14,6 +13,6 @@ type SwitchData = AlpineMachine<SwitchContext, SwitchControlProps, typeof switch
14
13
  destroy(): void;
15
14
  };
16
15
  declare const UiSwitch: () => TrellisAlpineComponent<SwitchData>;
17
- declare const registerSwitch: (AlpineInstance: Alpine.Alpine) => void;
16
+ declare const registerSwitch: import("../../runtime").AlpineDataRegistrar;
18
17
  export { registerSwitch, UiSwitch };
19
18
  export type { SwitchData, UiSwitchApi };