@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,15 +1,19 @@
1
1
  import { type SchemaToProps } from '../../runtime';
2
2
  import { type ControlSize, type IndicatorPlacement, type Orientation } from '../common';
3
3
  declare const CHECKBOX_GROUP_ORIENTATIONS: readonly ["vertical", "horizontal"];
4
- declare const CHECKBOX_GROUP_VARIANTS: readonly ["default", "pills"];
4
+ declare const CHECKBOX_GROUP_VARIANTS: readonly ["default", "cards", "pills"];
5
5
  declare const CHECKBOX_PLACEMENTS: readonly ["leading", "trailing", "center", "top-leading", "top-trailing", "bottom-leading", "bottom-trailing"];
6
6
  declare const CHECKBOX_SIZES: readonly ["xs", "sm", "md", "lg", "xlg"];
7
- declare const CHECKBOX_VARIANTS: readonly ["default", "pills"];
7
+ declare const CHECKBOX_VARIANTS: readonly ["default", "cards", "pills"];
8
+ declare const CHECKBOX_COLORS: readonly ["neutral", "accent"];
9
+ declare const CHECKBOX_INTERACTIONS: readonly ["tonal", "edge", "combined"];
8
10
  type CheckboxGroupOrientation = Orientation;
9
11
  type CheckboxGroupVariant = (typeof CHECKBOX_GROUP_VARIANTS)[number];
10
12
  type CheckboxPlacement = IndicatorPlacement;
11
13
  type CheckboxSize = ControlSize;
12
14
  type CheckboxVariant = (typeof CHECKBOX_VARIANTS)[number];
15
+ type CheckboxColor = (typeof CHECKBOX_COLORS)[number];
16
+ type CheckboxInteraction = (typeof CHECKBOX_INTERACTIONS)[number];
13
17
  declare const checkboxControlSchema: {
14
18
  value: import("../../runtime/codecs").StringCodec;
15
19
  name: import("../../runtime/codecs").StringCodec;
@@ -23,7 +27,9 @@ declare const checkboxControlSchema: {
23
27
  indicator: import("../../runtime/codecs").BoolCodec;
24
28
  placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
25
29
  icon: import("../../runtime/codecs").StringCodec;
26
- variant: import("../../runtime/codecs").OneOfCodec<"default" | "pills">;
30
+ variant: import("../../runtime/codecs").OneOfCodec<"default" | "cards" | "pills">;
31
+ color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
32
+ interaction: import("../../runtime/codecs").OneOfCodec<"edge" | "tonal" | "combined">;
27
33
  size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
28
34
  inputClass: import("../../runtime/codecs").StringCodec;
29
35
  indicatorClass: import("../../runtime/codecs").StringCodec;
@@ -52,7 +58,9 @@ declare const checkboxSchema: {
52
58
  indicator: import("../../runtime/codecs").BoolCodec;
53
59
  placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
54
60
  icon: import("../../runtime/codecs").StringCodec;
55
- variant: import("../../runtime/codecs").OneOfCodec<"default" | "pills">;
61
+ variant: import("../../runtime/codecs").OneOfCodec<"default" | "cards" | "pills">;
62
+ color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
63
+ interaction: import("../../runtime/codecs").OneOfCodec<"edge" | "tonal" | "combined">;
56
64
  size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
57
65
  inputClass: import("../../runtime/codecs").StringCodec;
58
66
  indicatorClass: import("../../runtime/codecs").StringCodec;
@@ -66,7 +74,9 @@ declare const checkboxSchema: {
66
74
  declare const checkboxGroupSchema: {
67
75
  name: import("../../runtime/codecs").StringCodec;
68
76
  orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
69
- variant: import("../../runtime/codecs").OneOfCodec<"default" | "pills">;
77
+ variant: import("../../runtime/codecs").OneOfCodec<"default" | "cards" | "pills">;
78
+ color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
79
+ interaction: import("../../runtime/codecs").OneOfCodec<"edge" | "tonal" | "combined">;
70
80
  indicator: import("../../runtime/codecs").BoolCodec;
71
81
  placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
72
82
  disabled: import("../..").CodecFn<boolean>;
@@ -81,5 +91,5 @@ declare const checkboxIndicatorSchema: {
81
91
  type CheckboxControlProps = SchemaToProps<typeof checkboxControlSchema>;
82
92
  type CheckboxGroupProps = SchemaToProps<typeof checkboxGroupSchema>;
83
93
  type CheckboxProps = SchemaToProps<typeof checkboxSchema>;
84
- export { CHECKBOX_GROUP_ORIENTATIONS, CHECKBOX_GROUP_VARIANTS, CHECKBOX_PLACEMENTS, CHECKBOX_SIZES, CHECKBOX_VARIANTS, checkboxControlSchema, checkboxGroupSchema, checkboxIndicatorSchema, checkboxSchema, };
85
- export type { CheckboxControlProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxGroupVariant, CheckboxPlacement, CheckboxProps, CheckboxSize, CheckboxVariant, };
94
+ export { CHECKBOX_GROUP_ORIENTATIONS, CHECKBOX_GROUP_VARIANTS, CHECKBOX_COLORS, CHECKBOX_INTERACTIONS, CHECKBOX_PLACEMENTS, CHECKBOX_SIZES, CHECKBOX_VARIANTS, checkboxControlSchema, checkboxGroupSchema, checkboxIndicatorSchema, checkboxSchema, };
95
+ export type { CheckboxControlProps, CheckboxColor, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxGroupVariant, CheckboxInteraction, CheckboxPlacement, CheckboxProps, CheckboxSize, CheckboxVariant, };
@@ -97,6 +97,8 @@ declare const FIELD_CONTROL_ACTION_CLASSES: string[];
97
97
  declare const FIELD_CONTROL_NATIVE_CLASSES: string[];
98
98
  declare const POPOVER_GEOMETRY_CLASSES: string[];
99
99
  declare const INTERACTIVE_ITEM_CLASSES: string[];
100
+ declare const SELECTION_COLORS: readonly ["neutral", "accent"];
101
+ declare const INTERACTION_TREATMENTS: readonly ["tonal", "edge", "combined"];
100
102
  declare const OPTION_ITEM_CLASSES: string[];
101
103
  declare const OPTION_ICON_CLASSES = "size-icon shrink-0 fill-current text-current opacity-70";
102
104
  declare const OPTION_INDICATOR_CLASSES = "ml-auto size-icon shrink-0 fill-current text-current opacity-0 data-selected:opacity-100";
@@ -109,8 +111,11 @@ type Position = typeof POSITIONS[number];
109
111
  type EdgePosition = typeof EDGE_POSITIONS[number];
110
112
  type Orientation = typeof ORIENTATIONS[number];
111
113
  type IndicatorPlacement = typeof INDICATOR_PLACEMENTS[number];
114
+ type SelectionColor = typeof SELECTION_COLORS[number];
115
+ type InteractionTreatment = typeof INTERACTION_TREATMENTS[number];
112
116
  type DefaultVariant = typeof DEFAULT_VARIANTS[number];
113
117
  type HeadingLevel = typeof HEADING_LEVELS[number];
114
118
  type ComponentRadius = typeof COMPONENT_RADII[number];
115
- export { ABSOLUTE_SURFACE_REFERENCES, ALIGNMENTS, BUTTON_TYPES, COMPONENT_RADII, CONTROL_RADIUS_CLASSES, CONTROL_MIN_SIZE_CLASSES, CONTROL_MULTILINE_SIZE_CLASSES, CONTROL_SIZES, CONTROL_SIZE_CLASSES, CONTROL_TYPOGRAPHY_CLASSES, CONTROL_VARIANTS, DEFAULT_VARIANTS, EDGE_POSITIONS, ELEVATION_REFERENCES, FIELD_CONTROL_ACTION_CLASSES, FIELD_CONTROL_INPUT_CLASSES, FIELD_CONTROL_MULTILINE_ROOT_CLASSES, FIELD_CONTROL_NATIVE_CLASSES, FIELD_CONTROL_ROOT_CLASSES, elevationReferenceClasses, HEADING_LEVELS, ICON_COLORS, ICON_COLOR_CLASSES, ICON_VARIANTS, INDICATOR_PLACEMENTS, INTERACTIVE_ITEM_CLASSES, LAYOUT_GAP_CLASSES, LAYOUT_GAP_X_CLASSES, LAYOUT_GAP_Y_CLASSES, LAYOUT_MARGIN_CLASSES, LAYOUT_MARGIN_X_CLASSES, LAYOUT_MARGIN_Y_CLASSES, LAYOUT_PADDING_CLASSES, LAYOUT_PADDING_X_CLASSES, LAYOUT_PADDING_Y_CLASSES, LAYOUT_SPACES, OPTION_ICON_CLASSES, OPTION_INDICATOR_CLASSES, OPTION_ITEM_CLASSES, ORIENTATIONS, POPOVER_GEOMETRY_CLASSES, POSITIONS, SURFACE_RADIUS_CLASSES, SURFACE_REFERENCES, TYPOGRAPHY_COLOR_CLASSES, TYPOGRAPHY_COLORS, };
119
+ export { ABSOLUTE_SURFACE_REFERENCES, ALIGNMENTS, BUTTON_TYPES, COMPONENT_RADII, CONTROL_RADIUS_CLASSES, CONTROL_MIN_SIZE_CLASSES, CONTROL_MULTILINE_SIZE_CLASSES, CONTROL_SIZES, CONTROL_SIZE_CLASSES, CONTROL_TYPOGRAPHY_CLASSES, CONTROL_VARIANTS, DEFAULT_VARIANTS, EDGE_POSITIONS, ELEVATION_REFERENCES, FIELD_CONTROL_ACTION_CLASSES, FIELD_CONTROL_INPUT_CLASSES, FIELD_CONTROL_MULTILINE_ROOT_CLASSES, FIELD_CONTROL_NATIVE_CLASSES, FIELD_CONTROL_ROOT_CLASSES, elevationReferenceClasses, HEADING_LEVELS, ICON_COLORS, ICON_COLOR_CLASSES, ICON_VARIANTS, INDICATOR_PLACEMENTS, INTERACTION_TREATMENTS, INTERACTIVE_ITEM_CLASSES, LAYOUT_GAP_CLASSES, LAYOUT_GAP_X_CLASSES, LAYOUT_GAP_Y_CLASSES, LAYOUT_MARGIN_CLASSES, LAYOUT_MARGIN_X_CLASSES, LAYOUT_MARGIN_Y_CLASSES, LAYOUT_PADDING_CLASSES, LAYOUT_PADDING_X_CLASSES, LAYOUT_PADDING_Y_CLASSES, LAYOUT_SPACES, OPTION_ICON_CLASSES, OPTION_INDICATOR_CLASSES, OPTION_ITEM_CLASSES, ORIENTATIONS, POPOVER_GEOMETRY_CLASSES, POSITIONS, SELECTION_COLORS, SURFACE_RADIUS_CLASSES, SURFACE_REFERENCES, TYPOGRAPHY_COLOR_CLASSES, TYPOGRAPHY_COLORS, };
120
+ export type { InteractionTreatment, SelectionColor };
116
121
  export type { AbsoluteSurfaceReference, Alignment, CommonButtonType, ComponentRadius, ControlSize, ControlVariant, DefaultVariant, EdgePosition, ElevationReference, HeadingLevel, IconColor, IconVariant, IndicatorPlacement, LayoutSpace, Orientation, Position, SurfaceReference, TypographyColor, };
@@ -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 DatePickerProps } from './contract';
5
4
  import { type DatePickerContext, datePickerHooks } from './machine';
5
+ type DatePickerTransitionName = (typeof datePickerHooks)[number]['name'];
6
+ type DatePickerTransition<TName extends DatePickerTransitionName = DatePickerTransitionName> = TransitionForHook<Extract<(typeof datePickerHooks)[number], {
7
+ name: TName;
8
+ }>, HTMLElement>;
6
9
  /**
7
10
  * Public Alpine API for `ui.datePicker`.
8
11
  *
@@ -43,6 +46,6 @@ type DatePickerData = AlpineMachine<DatePickerContext, DatePickerProps, typeof d
43
46
  destroy(): void;
44
47
  };
45
48
  declare const UiDatePicker: () => TrellisAlpineComponent<DatePickerData>;
46
- declare const registerDatePicker: (AlpineInstance: Alpine.Alpine) => void;
49
+ declare const registerDatePicker: import("../../runtime").AlpineDataRegistrar;
47
50
  export { registerDatePicker, UiDatePicker };
48
- export type { DatePickerData, UiDatePickerApi };
51
+ export type { DatePickerData, DatePickerTransition, UiDatePickerApi };
@@ -33,252 +33,32 @@ type CreateDatePickerMachineOptions = {
33
33
  context: DatePickerContext;
34
34
  effects: DatePickerMachineEffects;
35
35
  };
36
- declare const datePickerHooks: readonly [Readonly<{
36
+ declare const datePickerHooks: 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<DatePickerContext>;
47
- props: Readonly<import("../..").SchemaToProps<{
48
- name: import("../../runtime/codecs").StringCodec;
49
- value: import("../../runtime/codecs").StringCodec;
50
- startName: import("../../runtime/codecs").StringCodec;
51
- endName: import("../../runtime/codecs").StringCodec;
52
- mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
53
- placeholder: import("../../runtime/codecs").StringCodec;
54
- min: import("../../runtime/codecs").StringCodec;
55
- max: import("../../runtime/codecs").StringCodec;
56
- today: import("../../runtime/codecs").StringCodec;
57
- openTo: import("../../runtime/codecs").StringCodec;
58
- forceOpenTo: import("../../runtime/codecs").BoolCodec;
59
- months: import("../../runtime/codecs").NumberCodec;
60
- firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
61
- locale: import("../../runtime/codecs").StringCodec;
62
- format: import("../../runtime/codecs").StringCodec;
63
- rangeSeparator: import("../../runtime/codecs").StringCodec;
64
- showOutsideDays: import("../../runtime/codecs").BoolCodec;
65
- showWeekNumbers: import("../../runtime/codecs").BoolCodec;
66
- fixedWeeks: import("../../runtime/codecs").BoolCodec;
67
- selectableHeader: import("../../runtime/codecs").BoolCodec;
68
- withToday: import("../../runtime/codecs").BoolCodec;
69
- clearable: import("../../runtime/codecs").BoolCodec;
70
- disabled: import("../../runtime/codecs").BoolCodec;
71
- readonly: import("../../runtime/codecs").BoolCodec;
72
- required: import("../../runtime/codecs").BoolCodec;
73
- invalid: import("../../runtime/codecs").BoolCodec;
74
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
75
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
76
- offset: import("../../runtime/codecs").NumberCodec;
77
- gap: import("../../runtime/codecs").NumberCodec;
78
- variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
79
- color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
80
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
81
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
82
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
83
- close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
84
- presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
85
- presetsPosition: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
86
- preset: import("../../runtime/codecs").StringCodec;
87
- presetName: import("../../runtime/codecs").StringCodec;
88
- triggerClass: import("../../runtime/codecs").StringCodec;
89
- inputClass: import("../../runtime/codecs").StringCodec;
90
- popoverClass: import("../../runtime/codecs").StringCodec;
91
- calendarClass: import("../../runtime/codecs").StringCodec;
92
- presetsClass: import("../../runtime/codecs").StringCodec;
93
- presetClass: import("../../runtime/codecs").StringCodec;
94
- class: import("../../runtime/codecs").StringCodec;
95
- form: import("../../runtime/codecs").StringCodec;
96
- }>>;
97
- generations: Readonly<Record<string, number>>;
98
- }>) => Record<string, never>;
99
- projectEach?: (snapshot: Readonly<{
100
- value: import("../..").MachineStateValue;
101
- tags: readonly string[];
102
- context: Readonly<DatePickerContext>;
103
- props: Readonly<import("../..").SchemaToProps<{
104
- name: import("../../runtime/codecs").StringCodec;
105
- value: import("../../runtime/codecs").StringCodec;
106
- startName: import("../../runtime/codecs").StringCodec;
107
- endName: import("../../runtime/codecs").StringCodec;
108
- mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
109
- placeholder: import("../../runtime/codecs").StringCodec;
110
- min: import("../../runtime/codecs").StringCodec;
111
- max: import("../../runtime/codecs").StringCodec;
112
- today: import("../../runtime/codecs").StringCodec;
113
- openTo: import("../../runtime/codecs").StringCodec;
114
- forceOpenTo: import("../../runtime/codecs").BoolCodec;
115
- months: import("../../runtime/codecs").NumberCodec;
116
- firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
117
- locale: import("../../runtime/codecs").StringCodec;
118
- format: import("../../runtime/codecs").StringCodec;
119
- rangeSeparator: import("../../runtime/codecs").StringCodec;
120
- showOutsideDays: import("../../runtime/codecs").BoolCodec;
121
- showWeekNumbers: import("../../runtime/codecs").BoolCodec;
122
- fixedWeeks: import("../../runtime/codecs").BoolCodec;
123
- selectableHeader: import("../../runtime/codecs").BoolCodec;
124
- withToday: import("../../runtime/codecs").BoolCodec;
125
- clearable: import("../../runtime/codecs").BoolCodec;
126
- disabled: import("../../runtime/codecs").BoolCodec;
127
- readonly: import("../../runtime/codecs").BoolCodec;
128
- required: import("../../runtime/codecs").BoolCodec;
129
- invalid: import("../../runtime/codecs").BoolCodec;
130
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
131
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
132
- offset: import("../../runtime/codecs").NumberCodec;
133
- gap: import("../../runtime/codecs").NumberCodec;
134
- variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
135
- color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
136
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
137
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
138
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
139
- close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
140
- presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
141
- presetsPosition: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
142
- preset: import("../../runtime/codecs").StringCodec;
143
- presetName: import("../../runtime/codecs").StringCodec;
144
- triggerClass: import("../../runtime/codecs").StringCodec;
145
- inputClass: import("../../runtime/codecs").StringCodec;
146
- popoverClass: import("../../runtime/codecs").StringCodec;
147
- calendarClass: import("../../runtime/codecs").StringCodec;
148
- presetsClass: import("../../runtime/codecs").StringCodec;
149
- presetClass: import("../../runtime/codecs").StringCodec;
150
- class: import("../../runtime/codecs").StringCodec;
151
- form: import("../../runtime/codecs").StringCodec;
152
- }>>;
153
- generations: Readonly<Record<string, number>>;
154
- }>) => readonly Record<string, never>[];
155
- }>, Readonly<{
42
+ sends: {
43
+ close: () => {
44
+ type: string;
45
+ };
46
+ };
47
+ }, {
156
48
  name: "closing";
157
49
  state: string;
50
+ project: () => {};
158
51
  onDone: string;
159
52
  onError: string;
160
- required?: boolean;
161
- sends?: Record<string, import("../..").TransitionEventCreator>;
162
- project?: (snapshot: Readonly<{
163
- value: import("../..").MachineStateValue;
164
- tags: readonly string[];
165
- context: Readonly<DatePickerContext>;
166
- props: Readonly<import("../..").SchemaToProps<{
167
- name: import("../../runtime/codecs").StringCodec;
168
- value: import("../../runtime/codecs").StringCodec;
169
- startName: import("../../runtime/codecs").StringCodec;
170
- endName: import("../../runtime/codecs").StringCodec;
171
- mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
172
- placeholder: import("../../runtime/codecs").StringCodec;
173
- min: import("../../runtime/codecs").StringCodec;
174
- max: import("../../runtime/codecs").StringCodec;
175
- today: import("../../runtime/codecs").StringCodec;
176
- openTo: import("../../runtime/codecs").StringCodec;
177
- forceOpenTo: import("../../runtime/codecs").BoolCodec;
178
- months: import("../../runtime/codecs").NumberCodec;
179
- firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
180
- locale: import("../../runtime/codecs").StringCodec;
181
- format: import("../../runtime/codecs").StringCodec;
182
- rangeSeparator: import("../../runtime/codecs").StringCodec;
183
- showOutsideDays: import("../../runtime/codecs").BoolCodec;
184
- showWeekNumbers: import("../../runtime/codecs").BoolCodec;
185
- fixedWeeks: import("../../runtime/codecs").BoolCodec;
186
- selectableHeader: import("../../runtime/codecs").BoolCodec;
187
- withToday: import("../../runtime/codecs").BoolCodec;
188
- clearable: import("../../runtime/codecs").BoolCodec;
189
- disabled: import("../../runtime/codecs").BoolCodec;
190
- readonly: import("../../runtime/codecs").BoolCodec;
191
- required: import("../../runtime/codecs").BoolCodec;
192
- invalid: import("../../runtime/codecs").BoolCodec;
193
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
194
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
195
- offset: import("../../runtime/codecs").NumberCodec;
196
- gap: import("../../runtime/codecs").NumberCodec;
197
- variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
198
- color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
199
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
200
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
201
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
202
- close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
203
- presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
204
- presetsPosition: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
205
- preset: import("../../runtime/codecs").StringCodec;
206
- presetName: import("../../runtime/codecs").StringCodec;
207
- triggerClass: import("../../runtime/codecs").StringCodec;
208
- inputClass: import("../../runtime/codecs").StringCodec;
209
- popoverClass: import("../../runtime/codecs").StringCodec;
210
- calendarClass: import("../../runtime/codecs").StringCodec;
211
- presetsClass: import("../../runtime/codecs").StringCodec;
212
- presetClass: import("../../runtime/codecs").StringCodec;
213
- class: import("../../runtime/codecs").StringCodec;
214
- form: import("../../runtime/codecs").StringCodec;
215
- }>>;
216
- generations: Readonly<Record<string, number>>;
217
- }>) => Record<string, never>;
218
- projectEach?: (snapshot: Readonly<{
219
- value: import("../..").MachineStateValue;
220
- tags: readonly string[];
221
- context: Readonly<DatePickerContext>;
222
- props: Readonly<import("../..").SchemaToProps<{
223
- name: import("../../runtime/codecs").StringCodec;
224
- value: import("../../runtime/codecs").StringCodec;
225
- startName: import("../../runtime/codecs").StringCodec;
226
- endName: import("../../runtime/codecs").StringCodec;
227
- mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
228
- placeholder: import("../../runtime/codecs").StringCodec;
229
- min: import("../../runtime/codecs").StringCodec;
230
- max: import("../../runtime/codecs").StringCodec;
231
- today: import("../../runtime/codecs").StringCodec;
232
- openTo: import("../../runtime/codecs").StringCodec;
233
- forceOpenTo: import("../../runtime/codecs").BoolCodec;
234
- months: import("../../runtime/codecs").NumberCodec;
235
- firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
236
- locale: import("../../runtime/codecs").StringCodec;
237
- format: import("../../runtime/codecs").StringCodec;
238
- rangeSeparator: import("../../runtime/codecs").StringCodec;
239
- showOutsideDays: import("../../runtime/codecs").BoolCodec;
240
- showWeekNumbers: import("../../runtime/codecs").BoolCodec;
241
- fixedWeeks: import("../../runtime/codecs").BoolCodec;
242
- selectableHeader: import("../../runtime/codecs").BoolCodec;
243
- withToday: import("../../runtime/codecs").BoolCodec;
244
- clearable: import("../../runtime/codecs").BoolCodec;
245
- disabled: import("../../runtime/codecs").BoolCodec;
246
- readonly: import("../../runtime/codecs").BoolCodec;
247
- required: import("../../runtime/codecs").BoolCodec;
248
- invalid: import("../../runtime/codecs").BoolCodec;
249
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
250
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
251
- offset: import("../../runtime/codecs").NumberCodec;
252
- gap: import("../../runtime/codecs").NumberCodec;
253
- variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
254
- color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
255
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
256
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
257
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
258
- close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
259
- presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
260
- presetsPosition: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
261
- preset: import("../../runtime/codecs").StringCodec;
262
- presetName: import("../../runtime/codecs").StringCodec;
263
- triggerClass: import("../../runtime/codecs").StringCodec;
264
- inputClass: import("../../runtime/codecs").StringCodec;
265
- popoverClass: import("../../runtime/codecs").StringCodec;
266
- calendarClass: import("../../runtime/codecs").StringCodec;
267
- presetsClass: import("../../runtime/codecs").StringCodec;
268
- presetClass: import("../../runtime/codecs").StringCodec;
269
- class: import("../../runtime/codecs").StringCodec;
270
- form: import("../../runtime/codecs").StringCodec;
271
- }>>;
272
- generations: Readonly<Record<string, number>>;
273
- }>) => readonly Record<string, never>[];
274
- }>, Readonly<{
53
+ sends: {
54
+ open: () => {
55
+ type: string;
56
+ };
57
+ };
58
+ }, {
275
59
  name: "parsing";
276
60
  state: string;
277
- onDone: string;
278
- onError: string;
279
- required?: boolean;
280
- sends?: Record<string, import("../..").TransitionEventCreator>;
281
- project?: (snapshot: Readonly<{
61
+ project: (snapshot: Readonly<{
282
62
  value: import("../..").MachineStateValue;
283
63
  tags: readonly string[];
284
64
  context: Readonly<DatePickerContext>;
@@ -336,72 +116,22 @@ declare const datePickerHooks: readonly [Readonly<{
336
116
  }>) => {
337
117
  input: string;
338
118
  };
339
- projectEach?: (snapshot: Readonly<{
340
- value: import("../..").MachineStateValue;
341
- tags: readonly string[];
342
- context: Readonly<DatePickerContext>;
343
- props: Readonly<import("../..").SchemaToProps<{
344
- name: import("../../runtime/codecs").StringCodec;
345
- value: import("../../runtime/codecs").StringCodec;
346
- startName: import("../../runtime/codecs").StringCodec;
347
- endName: import("../../runtime/codecs").StringCodec;
348
- mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
349
- placeholder: import("../../runtime/codecs").StringCodec;
350
- min: import("../../runtime/codecs").StringCodec;
351
- max: import("../../runtime/codecs").StringCodec;
352
- today: import("../../runtime/codecs").StringCodec;
353
- openTo: import("../../runtime/codecs").StringCodec;
354
- forceOpenTo: import("../../runtime/codecs").BoolCodec;
355
- months: import("../../runtime/codecs").NumberCodec;
356
- firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
357
- locale: import("../../runtime/codecs").StringCodec;
358
- format: import("../../runtime/codecs").StringCodec;
359
- rangeSeparator: import("../../runtime/codecs").StringCodec;
360
- showOutsideDays: import("../../runtime/codecs").BoolCodec;
361
- showWeekNumbers: import("../../runtime/codecs").BoolCodec;
362
- fixedWeeks: import("../../runtime/codecs").BoolCodec;
363
- selectableHeader: import("../../runtime/codecs").BoolCodec;
364
- withToday: import("../../runtime/codecs").BoolCodec;
365
- clearable: import("../../runtime/codecs").BoolCodec;
366
- disabled: import("../../runtime/codecs").BoolCodec;
367
- readonly: import("../../runtime/codecs").BoolCodec;
368
- required: import("../../runtime/codecs").BoolCodec;
369
- invalid: import("../../runtime/codecs").BoolCodec;
370
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
371
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
372
- offset: import("../../runtime/codecs").NumberCodec;
373
- gap: import("../../runtime/codecs").NumberCodec;
374
- variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
375
- color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
376
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
377
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
378
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
379
- close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
380
- presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
381
- presetsPosition: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
382
- preset: import("../../runtime/codecs").StringCodec;
383
- presetName: import("../../runtime/codecs").StringCodec;
384
- triggerClass: import("../../runtime/codecs").StringCodec;
385
- inputClass: import("../../runtime/codecs").StringCodec;
386
- popoverClass: import("../../runtime/codecs").StringCodec;
387
- calendarClass: import("../../runtime/codecs").StringCodec;
388
- presetsClass: import("../../runtime/codecs").StringCodec;
389
- presetClass: import("../../runtime/codecs").StringCodec;
390
- class: import("../../runtime/codecs").StringCodec;
391
- form: import("../../runtime/codecs").StringCodec;
392
- }>>;
393
- generations: Readonly<Record<string, number>>;
394
- }>) => readonly {
395
- input: string;
396
- }[];
397
- }>, Readonly<{
398
- name: "selecting";
399
- state: string;
400
119
  onDone: string;
401
120
  onError: string;
402
- required?: boolean;
403
- sends?: Record<string, import("../..").TransitionEventCreator>;
404
- project?: (snapshot: Readonly<{
121
+ sends: {
122
+ select: (value: string) => {
123
+ type: string;
124
+ value: string;
125
+ source: string;
126
+ };
127
+ clear: () => {
128
+ type: string;
129
+ };
130
+ };
131
+ }, {
132
+ name: "selecting";
133
+ state: string;
134
+ project: (snapshot: Readonly<{
405
135
  value: import("../..").MachineStateValue;
406
136
  tags: readonly string[];
407
137
  context: Readonly<DatePickerContext>;
@@ -462,68 +192,22 @@ declare const datePickerHooks: readonly [Readonly<{
462
192
  source: SelectionSource;
463
193
  preset: string;
464
194
  };
465
- projectEach?: (snapshot: Readonly<{
466
- value: import("../..").MachineStateValue;
467
- tags: readonly string[];
468
- context: Readonly<DatePickerContext>;
469
- props: Readonly<import("../..").SchemaToProps<{
470
- name: import("../../runtime/codecs").StringCodec;
471
- value: import("../../runtime/codecs").StringCodec;
472
- startName: import("../../runtime/codecs").StringCodec;
473
- endName: import("../../runtime/codecs").StringCodec;
474
- mode: import("../../runtime/codecs").OneOfCodec<"single" | "range">;
475
- placeholder: import("../../runtime/codecs").StringCodec;
476
- min: import("../../runtime/codecs").StringCodec;
477
- max: import("../../runtime/codecs").StringCodec;
478
- today: import("../../runtime/codecs").StringCodec;
479
- openTo: import("../../runtime/codecs").StringCodec;
480
- forceOpenTo: import("../../runtime/codecs").BoolCodec;
481
- months: import("../../runtime/codecs").NumberCodec;
482
- firstDayOfWeek: import("../../runtime/codecs").NumberCodec;
483
- locale: import("../../runtime/codecs").StringCodec;
484
- format: import("../../runtime/codecs").StringCodec;
485
- rangeSeparator: import("../../runtime/codecs").StringCodec;
486
- showOutsideDays: import("../../runtime/codecs").BoolCodec;
487
- showWeekNumbers: import("../../runtime/codecs").BoolCodec;
488
- fixedWeeks: import("../../runtime/codecs").BoolCodec;
489
- selectableHeader: import("../../runtime/codecs").BoolCodec;
490
- withToday: import("../../runtime/codecs").BoolCodec;
491
- clearable: import("../../runtime/codecs").BoolCodec;
492
- disabled: import("../../runtime/codecs").BoolCodec;
493
- readonly: import("../../runtime/codecs").BoolCodec;
494
- required: import("../../runtime/codecs").BoolCodec;
495
- invalid: import("../../runtime/codecs").BoolCodec;
496
- side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
497
- align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
498
- offset: import("../../runtime/codecs").NumberCodec;
499
- gap: import("../../runtime/codecs").NumberCodec;
500
- variant: import("../../runtime/codecs").OneOfCodec<"enhanced" | "native">;
501
- color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
502
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
503
- surface: import("../../runtime/codecs").OneOfCodec<"inherit" | "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
504
- elevation: import("../../runtime/codecs").OneOfCodec<"match" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "none">;
505
- close: import("../../runtime/codecs").OneOfCodec<"auto" | "confirm">;
506
- presets: import("../../runtime/codecs").JsonCodec<import("./contract").DatePickerPreset[]>;
507
- presetsPosition: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
508
- preset: import("../../runtime/codecs").StringCodec;
509
- presetName: import("../../runtime/codecs").StringCodec;
510
- triggerClass: import("../../runtime/codecs").StringCodec;
511
- inputClass: import("../../runtime/codecs").StringCodec;
512
- popoverClass: import("../../runtime/codecs").StringCodec;
513
- calendarClass: import("../../runtime/codecs").StringCodec;
514
- presetsClass: import("../../runtime/codecs").StringCodec;
515
- presetClass: import("../../runtime/codecs").StringCodec;
516
- class: import("../../runtime/codecs").StringCodec;
517
- form: import("../../runtime/codecs").StringCodec;
518
- }>>;
519
- generations: Readonly<Record<string, number>>;
520
- }>) => readonly {
521
- value: string;
522
- previousValue: string;
523
- source: SelectionSource;
524
- preset: string;
525
- }[];
526
- }>];
195
+ onDone: string;
196
+ onError: string;
197
+ sends: {
198
+ select: (value: string) => {
199
+ type: string;
200
+ value: string;
201
+ source: string;
202
+ };
203
+ clear: () => {
204
+ type: string;
205
+ };
206
+ close: () => {
207
+ type: string;
208
+ };
209
+ };
210
+ }];
527
211
  declare const createDatePickerMachine: ({ props, context, effects, }: CreateDatePickerMachineOptions) => Machine<DatePickerContext, DatePickerProps>;
528
212
  export { createDatePickerMachine, datePickerHooks };
529
213
  export type { CreateDatePickerMachineOptions, DatePickerContext, DatePickerMachineEffects, SelectionSource, };
@@ -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 DropdownProps } from './contract';
5
4
  import { dropdownHooks, type DropdownContext } from './machine';
5
+ type DropdownTransitionName = (typeof dropdownHooks)[number]['name'];
6
+ type DropdownTransition<TName extends DropdownTransitionName = DropdownTransitionName> = TransitionForHook<Extract<(typeof dropdownHooks)[number], {
7
+ name: TName;
8
+ }>, HTMLElement>;
6
9
  /**
7
10
  * Public Alpine API for `ui.dropdown`.
8
11
  *
@@ -25,6 +28,6 @@ type DropdownData = AlpineMachine<DropdownContext, DropdownProps, typeof dropdow
25
28
  destroy(): void;
26
29
  };
27
30
  declare const UiDropdown: () => TrellisAlpineComponent<DropdownData>;
28
- declare const registerDropdown: (AlpineInstance: Alpine.Alpine) => void;
31
+ declare const registerDropdown: import("../../runtime").AlpineDataRegistrar;
29
32
  export { registerDropdown, UiDropdown };
30
- export type { DropdownData, UiDropdownApi };
33
+ export type { DropdownData, DropdownTransition, UiDropdownApi };