@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
@@ -13,81 +13,19 @@ type CreateDropdownMachineOptions = {
13
13
  props: DropdownProps;
14
14
  effects: DropdownMachineEffects;
15
15
  };
16
- declare const dropdownHooks: readonly [Readonly<{
16
+ declare const dropdownHooks: readonly [{
17
17
  name: "opening";
18
18
  state: string;
19
+ project: () => {};
19
20
  onDone: string;
20
21
  onError: string;
21
- required?: boolean;
22
- sends?: Record<string, import("../..").TransitionEventCreator>;
23
- project?: (snapshot: Readonly<{
24
- value: import("../..").MachineStateValue;
25
- tags: readonly string[];
26
- context: Readonly<DropdownContext>;
27
- props: Readonly<import("../..").SchemaToProps<{
28
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
29
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
30
- offset: import("../../runtime/codecs").NumberCodec;
31
- gap: import("../../runtime/codecs").NumberCodec;
32
- open: import("../../runtime/codecs").BoolCodec;
33
- disabled: import("../../runtime/codecs").BoolCodec;
34
- class: import("../../runtime/codecs").StringCodec;
35
- }>>;
36
- generations: Readonly<Record<string, number>>;
37
- }>) => Record<string, never>;
38
- projectEach?: (snapshot: Readonly<{
39
- value: import("../..").MachineStateValue;
40
- tags: readonly string[];
41
- context: Readonly<DropdownContext>;
42
- props: Readonly<import("../..").SchemaToProps<{
43
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
44
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
45
- offset: import("../../runtime/codecs").NumberCodec;
46
- gap: import("../../runtime/codecs").NumberCodec;
47
- open: import("../../runtime/codecs").BoolCodec;
48
- disabled: import("../../runtime/codecs").BoolCodec;
49
- class: import("../../runtime/codecs").StringCodec;
50
- }>>;
51
- generations: Readonly<Record<string, number>>;
52
- }>) => readonly Record<string, never>[];
53
- }>, Readonly<{
22
+ }, {
54
23
  name: "closing";
55
24
  state: string;
25
+ project: () => {};
56
26
  onDone: string;
57
27
  onError: string;
58
- required?: boolean;
59
- sends?: Record<string, import("../..").TransitionEventCreator>;
60
- project?: (snapshot: Readonly<{
61
- value: import("../..").MachineStateValue;
62
- tags: readonly string[];
63
- context: Readonly<DropdownContext>;
64
- props: Readonly<import("../..").SchemaToProps<{
65
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
66
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
67
- offset: import("../../runtime/codecs").NumberCodec;
68
- gap: import("../../runtime/codecs").NumberCodec;
69
- open: import("../../runtime/codecs").BoolCodec;
70
- disabled: import("../../runtime/codecs").BoolCodec;
71
- class: import("../../runtime/codecs").StringCodec;
72
- }>>;
73
- generations: Readonly<Record<string, number>>;
74
- }>) => Record<string, never>;
75
- projectEach?: (snapshot: Readonly<{
76
- value: import("../..").MachineStateValue;
77
- tags: readonly string[];
78
- context: Readonly<DropdownContext>;
79
- props: Readonly<import("../..").SchemaToProps<{
80
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
81
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
82
- offset: import("../../runtime/codecs").NumberCodec;
83
- gap: import("../../runtime/codecs").NumberCodec;
84
- open: import("../../runtime/codecs").BoolCodec;
85
- disabled: import("../../runtime/codecs").BoolCodec;
86
- class: import("../../runtime/codecs").StringCodec;
87
- }>>;
88
- generations: Readonly<Record<string, number>>;
89
- }>) => readonly Record<string, never>[];
90
- }>];
28
+ }];
91
29
  declare const createDropdownMachine: ({ props, effects, }: CreateDropdownMachineOptions) => Machine<DropdownContext, DropdownProps>;
92
30
  export { createDropdownMachine, dropdownHooks };
93
31
  export type { CreateDropdownMachineOptions, DropdownContext, DropdownFocus, DropdownMachineEffects, };
@@ -1,4 +1,3 @@
1
- import type Alpine from 'alpinejs';
2
1
  import { type AlpineMachine, type TrellisAlpineComponent } from '../../runtime';
3
2
  import { type FieldRuntimeProps } from './contract';
4
3
  import { fieldHooks, type FieldContext } from './machine';
@@ -7,5 +6,5 @@ type FieldData = AlpineMachine<FieldContext, FieldRuntimeProps, typeof fieldHook
7
6
  destroy(): void;
8
7
  };
9
8
  declare const UiField: () => TrellisAlpineComponent<FieldData>;
10
- declare const registerField: (AlpineInstance: Alpine.Alpine) => void;
9
+ declare const registerField: import("../../runtime").AlpineDataRegistrar;
11
10
  export { registerField, UiField };
@@ -1,7 +1,10 @@
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 FileUploadProps } from './contract';
4
3
  import { fileUploadHooks, type FileTransferStatus, type FileUploadContext, type FileUploadMetadata, type FileUploadRecord } from './machine';
4
+ type FileUploadTransitionName = (typeof fileUploadHooks)[number]['name'];
5
+ type FileUploadTransition<TName extends FileUploadTransitionName = FileUploadTransitionName> = TransitionForHook<Extract<(typeof fileUploadHooks)[number], {
6
+ name: TName;
7
+ }>, HTMLElement>;
5
8
  /**
6
9
  * Public Alpine API for `ui.file-upload`.
7
10
  *
@@ -34,6 +37,6 @@ type FileUploadData = AlpineMachine<FileUploadContext, FileUploadProps, typeof f
34
37
  destroy(): void;
35
38
  };
36
39
  declare const UiFileUpload: () => TrellisAlpineComponent<FileUploadData>;
37
- declare const registerFileUpload: (AlpineInstance: Alpine.Alpine) => void;
40
+ declare const registerFileUpload: import("../../runtime").AlpineDataRegistrar;
38
41
  export { registerFileUpload, UiFileUpload };
39
- export type { FileTransferStatus, FileUploadData, FileUploadMetadata, FileUploadRecord, UiFileUploadApi };
42
+ export type { FileTransferStatus, FileUploadData, FileUploadMetadata, FileUploadRecord, FileUploadTransition, UiFileUploadApi, };
@@ -49,14 +49,10 @@ type CreateFileUploadMachineOptions = {
49
49
  context: FileUploadContext;
50
50
  effects: FileUploadMachineEffects;
51
51
  };
52
- declare const fileUploadHooks: readonly [Readonly<{
52
+ declare const fileUploadHooks: readonly [{
53
53
  name: "uploading";
54
54
  state: string;
55
- onDone: string;
56
- onError: string;
57
- required?: boolean;
58
- sends?: Record<string, import("../..").TransitionEventCreator>;
59
- project?: (snapshot: Readonly<{
55
+ project: (snapshot: Readonly<{
60
56
  value: import("../..").MachineStateValue;
61
57
  tags: readonly string[];
62
58
  context: Readonly<FileUploadContext>;
@@ -88,39 +84,21 @@ declare const fileUploadHooks: readonly [Readonly<{
88
84
  }>) => {
89
85
  files: FileUploadMetadata[];
90
86
  };
91
- projectEach?: (snapshot: Readonly<{
92
- value: import("../..").MachineStateValue;
93
- tags: readonly string[];
94
- context: Readonly<FileUploadContext>;
95
- props: Readonly<import("../..").SchemaToProps<{
96
- name: import("../../runtime/codecs").StringCodec;
97
- accept: import("../../runtime/codecs").StringCodec;
98
- capture: import("../../runtime/codecs").StringCodec;
99
- multiple: import("../../runtime/codecs").BoolCodec;
100
- required: import("../../runtime/codecs").BoolCodec;
101
- disabled: import("../../runtime/codecs").BoolCodec;
102
- invalid: import("../../runtime/codecs").BoolCodec;
103
- preview: import("../../runtime/codecs").OneOfCodec<"image" | "auto" | "none">;
104
- layout: import("../../runtime/codecs").OneOfCodec<"stack" | "inline">;
105
- size: import("../../runtime/codecs").OneOfCodec<"sm" | "md" | "lg">;
106
- heading: import("../../runtime/codecs").StringCodec;
107
- text: import("../../runtime/codecs").StringCodec;
108
- browseLabel: import("../../runtime/codecs").StringCodec;
109
- empty: import("../../runtime/codecs").StringCodec;
110
- maxItems: import("../../runtime/codecs").NumberCodec;
111
- clearable: import("../../runtime/codecs").BoolCodec;
112
- transport: import("../../runtime/codecs").OneOfCodec<"native" | "direct">;
113
- rootClass: import("../../runtime/codecs").StringCodec;
114
- dropzoneClass: import("../../runtime/codecs").StringCodec;
115
- listClass: import("../../runtime/codecs").StringCodec;
116
- itemClass: import("../../runtime/codecs").StringCodec;
117
- class: import("../../runtime/codecs").StringCodec;
118
- }>>;
119
- generations: Readonly<Record<string, number>>;
120
- }>) => readonly {
121
- files: FileUploadMetadata[];
122
- }[];
123
- }>];
87
+ onDone: string;
88
+ onError: string;
89
+ required: true;
90
+ sends: {
91
+ progress: (id: string, loaded: number, total: number) => {
92
+ type: string;
93
+ id: string;
94
+ loaded: number;
95
+ total: number;
96
+ };
97
+ cancel: () => {
98
+ type: string;
99
+ };
100
+ };
101
+ }];
124
102
  declare const createFileUploadMachine: ({ props, context, effects }: CreateFileUploadMachineOptions) => Machine<FileUploadContext, FileUploadProps>;
125
103
  declare const recordsFromSnapshot: (context: Readonly<FileUploadContext>) => FileUploadRecord[];
126
104
  export { createFileUploadMachine, fileUploadHooks, recordsFromSnapshot };
@@ -1,4 +1,3 @@
1
- import type Alpine from 'alpinejs';
2
1
  import { type AlpineMachine, type TrellisAlpineComponent } from '../../runtime';
3
2
  import { type InputProps } from './contract';
4
3
  import { inputHooks, type InputContext } from './machine';
@@ -16,6 +15,6 @@ type InputData = AlpineMachine<InputContext, InputProps, typeof inputHooks> & Ui
16
15
  destroy(): void;
17
16
  };
18
17
  declare const UiInput: () => TrellisAlpineComponent<InputData>;
19
- declare const registerInput: (AlpineInstance: Alpine.Alpine) => void;
18
+ declare const registerInput: import("../../runtime").AlpineDataRegistrar;
20
19
  export { registerInput, UiInput };
21
20
  export type { InputData, UiInputApi };
@@ -1,8 +1,12 @@
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 BindingObject } from '../../runtime/merge-bindings';
4
4
  import { type ModalProps } from './contract';
5
5
  import { modalHooks, type ModalContext } from './machine';
6
+ type ModalTransitionName = (typeof modalHooks)[number]['name'];
7
+ type ModalTransition<TName extends ModalTransitionName = ModalTransitionName> = TransitionForHook<Extract<(typeof modalHooks)[number], {
8
+ name: TName;
9
+ }>, HTMLElement>;
6
10
  type CancelReason = 'escape' | 'outside';
7
11
  type ModalCancelDetail = {
8
12
  reason: CancelReason;
@@ -51,4 +55,4 @@ declare const UiModal: () => TrellisAlpineComponent<ModalData>;
51
55
  declare const UiModalTrigger: () => TrellisAlpineComponent<ModalTriggerData>;
52
56
  declare const registerModal: (AlpineInstance: Alpine.Alpine) => void;
53
57
  export { registerModal, UiModal, UiModalTrigger };
54
- export type { ModalCancelDetail, UiModalApi, UiModalTriggerApi };
58
+ export type { ModalCancelDetail, ModalTransition, UiModalApi, UiModalTriggerApi };
@@ -13,117 +13,19 @@ type CreateModalMachineOptions = {
13
13
  props: ModalProps;
14
14
  effects: ModalMachineEffects;
15
15
  };
16
- declare const modalHooks: readonly [Readonly<{
16
+ declare const modalHooks: readonly [{
17
17
  name: "opening";
18
18
  state: string;
19
+ project: () => {};
19
20
  onDone: string;
20
21
  onError: string;
21
- required?: boolean;
22
- sends?: Record<string, import("../..").TransitionEventCreator>;
23
- project?: (snapshot: Readonly<{
24
- value: import("../..").MachineStateValue;
25
- tags: readonly string[];
26
- context: Readonly<ModalContext>;
27
- props: Readonly<import("../..").SchemaToProps<{
28
- name: import("../../runtime/codecs").StringCodec;
29
- open: import("../../runtime/codecs").BoolCodec;
30
- mode: import("../../runtime/codecs").OneOfCodec<"modal" | "sheet">;
31
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
32
- size: import("../../runtime/codecs").OneOfCodec<"sm" | "md" | "lg" | "full" | "xl">;
33
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
34
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
35
- dismissible: import("../../runtime/codecs").BoolCodec;
36
- closable: import("../../runtime/codecs").BoolCodec;
37
- disabled: import("../../runtime/codecs").BoolCodec;
38
- autofocusTitle: import("../../runtime/codecs").BoolCodec;
39
- label: import("../../runtime/codecs").StringCodec;
40
- descriptionId: import("../../runtime/codecs").StringCodec;
41
- panelClass: import("../../runtime/codecs").StringCodec;
42
- overlayClass: import("../../runtime/codecs").StringCodec;
43
- class: import("../../runtime/codecs").StringCodec;
44
- }>>;
45
- generations: Readonly<Record<string, number>>;
46
- }>) => Record<string, never>;
47
- projectEach?: (snapshot: Readonly<{
48
- value: import("../..").MachineStateValue;
49
- tags: readonly string[];
50
- context: Readonly<ModalContext>;
51
- props: Readonly<import("../..").SchemaToProps<{
52
- name: import("../../runtime/codecs").StringCodec;
53
- open: import("../../runtime/codecs").BoolCodec;
54
- mode: import("../../runtime/codecs").OneOfCodec<"modal" | "sheet">;
55
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
56
- size: import("../../runtime/codecs").OneOfCodec<"sm" | "md" | "lg" | "full" | "xl">;
57
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
58
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
59
- dismissible: import("../../runtime/codecs").BoolCodec;
60
- closable: import("../../runtime/codecs").BoolCodec;
61
- disabled: import("../../runtime/codecs").BoolCodec;
62
- autofocusTitle: import("../../runtime/codecs").BoolCodec;
63
- label: import("../../runtime/codecs").StringCodec;
64
- descriptionId: import("../../runtime/codecs").StringCodec;
65
- panelClass: import("../../runtime/codecs").StringCodec;
66
- overlayClass: import("../../runtime/codecs").StringCodec;
67
- class: import("../../runtime/codecs").StringCodec;
68
- }>>;
69
- generations: Readonly<Record<string, number>>;
70
- }>) => readonly Record<string, never>[];
71
- }>, Readonly<{
22
+ }, {
72
23
  name: "closing";
73
24
  state: string;
25
+ project: () => {};
74
26
  onDone: string;
75
27
  onError: string;
76
- required?: boolean;
77
- sends?: Record<string, import("../..").TransitionEventCreator>;
78
- project?: (snapshot: Readonly<{
79
- value: import("../..").MachineStateValue;
80
- tags: readonly string[];
81
- context: Readonly<ModalContext>;
82
- props: Readonly<import("../..").SchemaToProps<{
83
- name: import("../../runtime/codecs").StringCodec;
84
- open: import("../../runtime/codecs").BoolCodec;
85
- mode: import("../../runtime/codecs").OneOfCodec<"modal" | "sheet">;
86
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
87
- size: import("../../runtime/codecs").OneOfCodec<"sm" | "md" | "lg" | "full" | "xl">;
88
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
89
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
90
- dismissible: import("../../runtime/codecs").BoolCodec;
91
- closable: import("../../runtime/codecs").BoolCodec;
92
- disabled: import("../../runtime/codecs").BoolCodec;
93
- autofocusTitle: import("../../runtime/codecs").BoolCodec;
94
- label: import("../../runtime/codecs").StringCodec;
95
- descriptionId: import("../../runtime/codecs").StringCodec;
96
- panelClass: import("../../runtime/codecs").StringCodec;
97
- overlayClass: import("../../runtime/codecs").StringCodec;
98
- class: import("../../runtime/codecs").StringCodec;
99
- }>>;
100
- generations: Readonly<Record<string, number>>;
101
- }>) => Record<string, never>;
102
- projectEach?: (snapshot: Readonly<{
103
- value: import("../..").MachineStateValue;
104
- tags: readonly string[];
105
- context: Readonly<ModalContext>;
106
- props: Readonly<import("../..").SchemaToProps<{
107
- name: import("../../runtime/codecs").StringCodec;
108
- open: import("../../runtime/codecs").BoolCodec;
109
- mode: import("../../runtime/codecs").OneOfCodec<"modal" | "sheet">;
110
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
111
- size: import("../../runtime/codecs").OneOfCodec<"sm" | "md" | "lg" | "full" | "xl">;
112
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
113
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
114
- dismissible: import("../../runtime/codecs").BoolCodec;
115
- closable: import("../../runtime/codecs").BoolCodec;
116
- disabled: import("../../runtime/codecs").BoolCodec;
117
- autofocusTitle: import("../../runtime/codecs").BoolCodec;
118
- label: import("../../runtime/codecs").StringCodec;
119
- descriptionId: import("../../runtime/codecs").StringCodec;
120
- panelClass: import("../../runtime/codecs").StringCodec;
121
- overlayClass: import("../../runtime/codecs").StringCodec;
122
- class: import("../../runtime/codecs").StringCodec;
123
- }>>;
124
- generations: Readonly<Record<string, number>>;
125
- }>) => readonly Record<string, never>[];
126
- }>];
28
+ }];
127
29
  declare const createModalMachine: ({ props, effects, }: CreateModalMachineOptions) => Machine<ModalContext, ModalProps>;
128
30
  export { createModalMachine, modalHooks };
129
31
  export type { CreateModalMachineOptions, ModalContext, ModalMachineEffects };
@@ -1,8 +1,12 @@
1
1
  import type Alpine from 'alpinejs';
2
- import { type AlpineMachine, type BindingObject, type TrellisAlpineComponent } from '../../runtime';
2
+ import { type AlpineMachine, type BindingObject, type TransitionForHook, type TrellisAlpineComponent } from '../../runtime';
3
3
  import { type MotionHandle, type MotionTransitionSubject } from '../../motion';
4
4
  import { type PanelToggleAction, type PanelToggleProps, type PanelsProps } from './contract';
5
5
  import { panelsHooks, type PanelsContext, type PanelsPersistTransitionData, type PanelSizingTransitionData, type PanelTransitionData } from './machine';
6
+ type PanelsTransitionName = (typeof panelsHooks)[number]['name'];
7
+ type PanelsTransition<TName extends PanelsTransitionName = PanelsTransitionName> = TransitionForHook<Extract<(typeof panelsHooks)[number], {
8
+ name: TName;
9
+ }>, HTMLElement>;
6
10
  type PanelEventDetail = {
7
11
  panelId?: string;
8
12
  groupId?: string;
@@ -58,4 +62,4 @@ declare const UiPanelToggle: () => TrellisAlpineComponent<{
58
62
  }>;
59
63
  declare const registerPanels: (AlpineInstance: Alpine.Alpine) => void;
60
64
  export { registerPanels, UiPanels, UiPanelToggle };
61
- export type { PanelEventDetail, PanelsData, PanelsPersistTransitionData, PanelSizingTransitionData, UiPanelsApi, };
65
+ export type { PanelEventDetail, PanelsData, PanelsPersistTransitionData, PanelSizingTransitionData, PanelsTransition, UiPanelsApi, };
@@ -58,27 +58,10 @@ type CreatePanelsMachineOptions = {
58
58
  context: PanelsContext;
59
59
  effects: PanelsMachineEffects;
60
60
  };
61
- declare const panelsHooks: readonly [Readonly<{
61
+ declare const panelsHooks: readonly [{
62
62
  name: "opening";
63
63
  state: string;
64
- onDone: string;
65
- onError: string;
66
- required?: boolean;
67
- sends?: Record<string, import("../..").TransitionEventCreator>;
68
- project?: (snapshot: Readonly<{
69
- value: import("../..").MachineStateValue;
70
- tags: readonly string[];
71
- context: Readonly<PanelsContext>;
72
- props: Readonly<import("../..").SchemaToProps<{
73
- id: import("../../runtime/codecs").StringCodec;
74
- orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
75
- persist: import("../../runtime/codecs").BoolCodec;
76
- divider: import("../../runtime/codecs").BoolCodec;
77
- class: import("../../runtime/codecs").StringCodec;
78
- }>>;
79
- generations: Readonly<Record<string, number>>;
80
- }>) => PanelTransitionData;
81
- projectEach?: (snapshot: Readonly<{
64
+ projectEach: (snapshot: Readonly<{
82
65
  value: import("../..").MachineStateValue;
83
66
  tags: readonly string[];
84
67
  context: Readonly<PanelsContext>;
@@ -90,28 +73,29 @@ declare const panelsHooks: readonly [Readonly<{
90
73
  class: import("../../runtime/codecs").StringCodec;
91
74
  }>>;
92
75
  generations: Readonly<Record<string, number>>;
93
- }>) => readonly PanelTransitionData[];
94
- }>, Readonly<{
95
- name: "closing";
96
- state: string;
76
+ }>) => {
77
+ panelId: string;
78
+ }[];
97
79
  onDone: string;
98
80
  onError: string;
99
- required?: boolean;
100
- sends?: Record<string, import("../..").TransitionEventCreator>;
101
- project?: (snapshot: Readonly<{
102
- value: import("../..").MachineStateValue;
103
- tags: readonly string[];
104
- context: Readonly<PanelsContext>;
105
- props: Readonly<import("../..").SchemaToProps<{
106
- id: import("../../runtime/codecs").StringCodec;
107
- orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
108
- persist: import("../../runtime/codecs").BoolCodec;
109
- divider: import("../../runtime/codecs").BoolCodec;
110
- class: import("../../runtime/codecs").StringCodec;
111
- }>>;
112
- generations: Readonly<Record<string, number>>;
113
- }>) => PanelTransitionData;
114
- projectEach?: (snapshot: Readonly<{
81
+ sends: {
82
+ expand: (panelId: string) => {
83
+ type: string;
84
+ panelId: string;
85
+ };
86
+ collapse: (panelId: string) => {
87
+ type: string;
88
+ panelId: string;
89
+ };
90
+ toggle: (panelId: string) => {
91
+ type: string;
92
+ panelId: string;
93
+ };
94
+ };
95
+ }, {
96
+ name: "closing";
97
+ state: string;
98
+ projectEach: (snapshot: Readonly<{
115
99
  value: import("../..").MachineStateValue;
116
100
  tags: readonly string[];
117
101
  context: Readonly<PanelsContext>;
@@ -123,28 +107,29 @@ declare const panelsHooks: readonly [Readonly<{
123
107
  class: import("../../runtime/codecs").StringCodec;
124
108
  }>>;
125
109
  generations: Readonly<Record<string, number>>;
126
- }>) => readonly PanelTransitionData[];
127
- }>, Readonly<{
128
- name: "sizing";
129
- state: string;
110
+ }>) => {
111
+ panelId: string;
112
+ }[];
130
113
  onDone: string;
131
114
  onError: string;
132
- required?: boolean;
133
- sends?: Record<string, import("../..").TransitionEventCreator>;
134
- project?: (snapshot: Readonly<{
135
- value: import("../..").MachineStateValue;
136
- tags: readonly string[];
137
- context: Readonly<PanelsContext>;
138
- props: Readonly<import("../..").SchemaToProps<{
139
- id: import("../../runtime/codecs").StringCodec;
140
- orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
141
- persist: import("../../runtime/codecs").BoolCodec;
142
- divider: import("../../runtime/codecs").BoolCodec;
143
- class: import("../../runtime/codecs").StringCodec;
144
- }>>;
145
- generations: Readonly<Record<string, number>>;
146
- }>) => PanelSizingTransitionData;
147
- projectEach?: (snapshot: Readonly<{
115
+ sends: {
116
+ expand: (panelId: string) => {
117
+ type: string;
118
+ panelId: string;
119
+ };
120
+ collapse: (panelId: string) => {
121
+ type: string;
122
+ panelId: string;
123
+ };
124
+ toggle: (panelId: string) => {
125
+ type: string;
126
+ panelId: string;
127
+ };
128
+ };
129
+ }, {
130
+ name: "sizing";
131
+ state: string;
132
+ projectEach: (snapshot: Readonly<{
148
133
  value: import("../..").MachineStateValue;
149
134
  tags: readonly string[];
150
135
  context: Readonly<PanelsContext>;
@@ -156,28 +141,13 @@ declare const panelsHooks: readonly [Readonly<{
156
141
  class: import("../../runtime/codecs").StringCodec;
157
142
  }>>;
158
143
  generations: Readonly<Record<string, number>>;
159
- }>) => readonly PanelSizingTransitionData[];
160
- }>, Readonly<{
161
- name: "persisting";
162
- state: string;
144
+ }>) => PanelSizingTransitionData[];
163
145
  onDone: string;
164
146
  onError: string;
165
- required?: boolean;
166
- sends?: Record<string, import("../..").TransitionEventCreator>;
167
- project?: (snapshot: Readonly<{
168
- value: import("../..").MachineStateValue;
169
- tags: readonly string[];
170
- context: Readonly<PanelsContext>;
171
- props: Readonly<import("../..").SchemaToProps<{
172
- id: import("../../runtime/codecs").StringCodec;
173
- orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
174
- persist: import("../../runtime/codecs").BoolCodec;
175
- divider: import("../../runtime/codecs").BoolCodec;
176
- class: import("../../runtime/codecs").StringCodec;
177
- }>>;
178
- generations: Readonly<Record<string, number>>;
179
- }>) => PanelsPersistTransitionData;
180
- projectEach?: (snapshot: Readonly<{
147
+ }, {
148
+ name: "persisting";
149
+ state: string;
150
+ project: (snapshot: Readonly<{
181
151
  value: import("../..").MachineStateValue;
182
152
  tags: readonly string[];
183
153
  context: Readonly<PanelsContext>;
@@ -189,8 +159,16 @@ declare const panelsHooks: readonly [Readonly<{
189
159
  class: import("../../runtime/codecs").StringCodec;
190
160
  }>>;
191
161
  generations: Readonly<Record<string, number>>;
192
- }>) => readonly PanelsPersistTransitionData[];
193
- }>];
162
+ }>) => {
163
+ groupId: string;
164
+ collapsed: string[];
165
+ sizes: {
166
+ [x: string]: number;
167
+ };
168
+ };
169
+ onDone: string;
170
+ onError: string;
171
+ }];
194
172
  declare const createPanelsMachine: ({ props, context, effects, }: CreatePanelsMachineOptions) => Machine<PanelsContext, PanelsProps>;
195
173
  export { createPanelsMachine, panelsHooks };
196
174
  export type { CreatePanelsMachineOptions, PanelsContext, PanelsMachineEffects, PanelsPersistTransitionData, PanelSizingTransitionData, PanelTransitionData, };
@@ -5,16 +5,22 @@ declare const RADIO_GROUP_VARIANTS: readonly ["default", "cards", "pills"];
5
5
  declare const RADIO_PLACEMENTS: readonly ["leading", "trailing", "center", "top-leading", "top-trailing", "bottom-leading", "bottom-trailing"];
6
6
  declare const RADIO_SIZES: readonly ["xs", "sm", "md", "lg", "xlg"];
7
7
  declare const RADIO_VARIANTS: readonly ["default", "cards", "pills"];
8
+ declare const RADIO_COLORS: readonly ["neutral", "accent"];
9
+ declare const RADIO_INTERACTIONS: readonly ["tonal", "edge", "combined"];
8
10
  type RadioGroupOrientation = Orientation;
9
11
  type RadioGroupVariant = typeof RADIO_GROUP_VARIANTS[number];
10
12
  type RadioPlacement = IndicatorPlacement;
11
13
  type RadioSize = ControlSize;
12
14
  type RadioVariant = typeof RADIO_VARIANTS[number];
15
+ type RadioColor = typeof RADIO_COLORS[number];
16
+ type RadioInteraction = typeof RADIO_INTERACTIONS[number];
13
17
  declare const radioGroupSchema: {
14
18
  name: import("../../runtime/codecs").StringCodec;
15
19
  value: import("../..").CodecFn<string>;
16
20
  orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
17
- variant: import("../../runtime/codecs").OneOfCodec<"default" | "pills" | "cards">;
21
+ variant: import("../../runtime/codecs").OneOfCodec<"default" | "cards" | "pills">;
22
+ color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
23
+ interaction: import("../../runtime/codecs").OneOfCodec<"edge" | "tonal" | "combined">;
18
24
  indicator: import("../../runtime/codecs").BoolCodec;
19
25
  placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
20
26
  disabled: import("../..").CodecFn<boolean>;
@@ -35,7 +41,9 @@ declare const radioSchema: {
35
41
  indicator: import("../../runtime/codecs").BoolCodec;
36
42
  placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
37
43
  icon: import("../../runtime/codecs").StringCodec;
38
- variant: import("../../runtime/codecs").OneOfCodec<"default" | "pills" | "cards">;
44
+ variant: import("../../runtime/codecs").OneOfCodec<"default" | "cards" | "pills">;
45
+ color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
46
+ interaction: import("../../runtime/codecs").OneOfCodec<"edge" | "tonal" | "combined">;
39
47
  size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
40
48
  inputClass: import("../../runtime/codecs").StringCodec;
41
49
  indicatorClass: import("../../runtime/codecs").StringCodec;
@@ -51,5 +59,5 @@ declare const radioIndicatorSchema: {
51
59
  };
52
60
  type RadioGroupProps = SchemaToProps<typeof radioGroupSchema>;
53
61
  type RadioProps = SchemaToProps<typeof radioSchema>;
54
- export { RADIO_GROUP_ORIENTATIONS, RADIO_GROUP_VARIANTS, RADIO_PLACEMENTS, RADIO_SIZES, RADIO_VARIANTS, radioGroupSchema, radioIndicatorSchema, radioSchema, };
55
- export type { RadioGroupOrientation, RadioGroupProps, RadioGroupVariant, RadioPlacement, RadioProps, RadioSize, RadioVariant };
62
+ export { RADIO_GROUP_ORIENTATIONS, RADIO_GROUP_VARIANTS, RADIO_COLORS, RADIO_INTERACTIONS, RADIO_PLACEMENTS, RADIO_SIZES, RADIO_VARIANTS, radioGroupSchema, radioIndicatorSchema, radioSchema, };
63
+ export type { RadioColor, RadioGroupOrientation, RadioGroupProps, RadioGroupVariant, RadioInteraction, RadioPlacement, RadioProps, RadioSize, RadioVariant, };