@vireo-ai/trellis-ui 0.1.27 → 0.1.30
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.
- package/package.json +7 -2
- package/packages/client/src/components/checkbox/styles.css +7 -0
- package/packages/client/src/components/field/styles.css +71 -0
- package/packages/client/src/components/file-upload/styles.css +68 -0
- package/packages/client/src/components/radio/styles.css +2 -8
- package/packages/client/src/components/tabs/styles.css +73 -0
- package/packages/client/src/components/toast/styles.css +123 -0
- package/packages/client/src/styles/components.css +15 -4
- package/packages/client/src/styles/generated/theme-fonts.css +1 -1
- package/packages/client/src/styles/generated/theme-palette.css +77 -1462
- package/packages/client/src/styles/generated/theme-runtime.css +1 -1390
- package/packages/client/src/styles/generated-sources.css +1 -1
- package/packages/client/src/styles/recipes/action.css +175 -0
- package/packages/client/src/styles/recipes/disabled.css +16 -0
- package/packages/client/src/styles/recipes/option.css +123 -0
- package/packages/client/src/styles/recipes/selection.css +78 -0
- package/packages/client/src/styles/theme.css +45 -719
- package/packages/client/types/assets/full-runtime.generated.d.ts +1 -1
- package/packages/client/types/capabilities/motion.entry.generated.d.ts +3 -0
- package/packages/client/types/capabilities/resizable.entry.generated.d.ts +3 -0
- package/packages/client/types/capabilities/sortable.entry.generated.d.ts +3 -0
- package/packages/client/types/component-api.d.ts +10 -10
- package/packages/client/types/components/accordion/index.d.ts +7 -4
- package/packages/client/types/components/accordion/machine.d.ts +51 -57
- package/packages/client/types/components/card/contract.d.ts +5 -2
- package/packages/client/types/components/checkbox/contract.d.ts +17 -7
- package/packages/client/types/components/common.d.ts +6 -1
- package/packages/client/types/components/date-picker/index.d.ts +7 -4
- package/packages/client/types/components/date-picker/machine.d.ts +46 -362
- package/packages/client/types/components/dropdown/index.d.ts +7 -4
- package/packages/client/types/components/dropdown/machine.d.ts +5 -67
- package/packages/client/types/components/field/index.d.ts +1 -2
- package/packages/client/types/components/file-upload/index.d.ts +7 -4
- package/packages/client/types/components/file-upload/machine.d.ts +17 -39
- package/packages/client/types/components/input/index.d.ts +1 -2
- package/packages/client/types/components/modal/index.d.ts +6 -2
- package/packages/client/types/components/modal/machine.d.ts +5 -103
- package/packages/client/types/components/panels/index.d.ts +6 -2
- package/packages/client/types/components/panels/machine.d.ts +59 -81
- package/packages/client/types/components/radio/contract.d.ts +12 -4
- package/packages/client/types/components/runtime.d.ts +10 -10
- package/packages/client/types/components/scroll-area/index.d.ts +1 -2
- package/packages/client/types/components/select/index.d.ts +7 -4
- package/packages/client/types/components/select/machine.d.ts +37 -331
- package/packages/client/types/components/sidebar/index.d.ts +6 -2
- package/packages/client/types/components/sidebar/machine.d.ts +11 -47
- package/packages/client/types/components/slider/index.d.ts +1 -2
- package/packages/client/types/components/switch/index.d.ts +1 -2
- package/packages/client/types/components/tabs/contract.d.ts +6 -2
- package/packages/client/types/components/tabs/index.d.ts +7 -4
- package/packages/client/types/components/tabs/machine.d.ts +11 -29
- package/packages/client/types/components/toast/index.d.ts +6 -2
- package/packages/client/types/components/toast/machine.d.ts +7 -66
- package/packages/client/types/core.d.ts +2 -2
- package/packages/client/types/runtime/alpine-data.d.ts +6 -0
- package/packages/client/types/runtime/alpine-machine.d.ts +3 -8
- package/packages/client/types/runtime/engine/request.d.ts +1 -0
- package/packages/client/types/runtime/index.d.ts +7 -3
- package/packages/client/types/runtime/transition-coordinator.d.ts +41 -7
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +638 -3428
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/build-metadata.json +492 -376
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/motion.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/motion.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/resizable.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/resizable.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/sortable.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/sortable.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/alpine-data-DZ17j0jc.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/alpine-data-DZ17j0jc.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/alpine-machine-BS13dbK4.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/alpine-machine-BS13dbK4.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-motion-wMoceguq.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-motion-wMoceguq.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-resizable-C6LKIbpv.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-resizable-C6LKIbpv.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-BurX5yRd.js +3 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-BurX5yRd.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{common-DAxHCzB-.js → common-BOd_thC-.js} +2 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{common-DAxHCzB-.js.map → common-BOd_thC-.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-BuKz1uWk.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{core-DjoX4J-6.js.map → core-BuKz1uWk.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/drag-and-drop-BV6kB47L.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/drag-and-drop-BV6kB47L.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-9sxiaVVI.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-9sxiaVVI.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BehM6Hle.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BehM6Hle.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BhPEF6oz.js +2 -0
- 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
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BqOi_tIN.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BqOi_tIN.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BuXeU4zt.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BuXeU4zt.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C-MH09sf.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C-MH09sf.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C3h9Czzn.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C3h9Czzn.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C5Bueyfb.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C5Bueyfb.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CCka3fIO.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CCka3fIO.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CSxEK8G9.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CSxEK8G9.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CoJxfxlc.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CoJxfxlc.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-D6cdmqiV.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-D6cdmqiV.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DBSwLHmm.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DBSwLHmm.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DEiL4FhC.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DEiL4FhC.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DRqap77P.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DRqap77P.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Dzw2Rg5F.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Dzw2Rg5F.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-EtCfrZfr.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-EtCfrZfr.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-cMueWbY7.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-cMueWbY7.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/machine-Dqut4h89.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/machine-Dqut4h89.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/motion-BRaHJwNf.js +3 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/motion-BRaHJwNf.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/semantic-observer-BUswpsNx.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{semantic-observer-9VxzbQBi.js.map → semantic-observer-BUswpsNx.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/stream-pMBGbBZH.js +4 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/stream-pMBGbBZH.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-H3t7UHMs.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-H3t7UHMs.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/accordion.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/checkbox.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/date-picker.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/dropdown.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/field.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/file-upload.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/index.js +2 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/index.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/input.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/modal.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/panels.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/radio.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/scroll-area.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/select.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/sidebar.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/slider.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/switch.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/table.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/tabs.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/toast.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/core.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/logical-entry-manifest.json +232 -127
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +9 -9
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +9 -9
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-DjoX4J-6.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-5kNpQFGr.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-5kNpQFGr.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-B85L90Qp.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-B85L90Qp.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BGCM6LAW.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BGCM6LAW.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bc-uE56r.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bc-uE56r.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C6ldtrmy.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-C6ldtrmy.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CPWoMIwn.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CPWoMIwn.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Co0bLLZE.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Co0bLLZE.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CtyXH8zf.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CtyXH8zf.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DGrOItIx.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DGrOItIx.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DHMRhcYF.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DHMRhcYF.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DgmqZx_W.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DgmqZx_W.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DoOgk6l4.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DoOgk6l4.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DxUOcPkU.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DxUOcPkU.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DyIjCOhT.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DyIjCOhT.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DzG9Lai4.js +0 -3
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DzG9Lai4.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-K6qKowpw.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-K6qKowpw.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-oAIExc1V.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-oAIExc1V.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-wHjTggCn.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-wHjTggCn.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-xcXw-cEl.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/machine-CX3wFSoV.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/machine-CX3wFSoV.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/motion-Bpttk6iZ.js +0 -3
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/motion-Bpttk6iZ.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/resizable-BixtYF9M.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/resizable-BixtYF9M.js.map +0 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/semantic-observer-9VxzbQBi.js +0 -2
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-xTjuF3uC.js +0 -4
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-xTjuF3uC.js.map +0 -1
|
@@ -49,14 +49,10 @@ type CreateFileUploadMachineOptions = {
|
|
|
49
49
|
context: FileUploadContext;
|
|
50
50
|
effects: FileUploadMachineEffects;
|
|
51
51
|
};
|
|
52
|
-
declare const fileUploadHooks: readonly [
|
|
52
|
+
declare const fileUploadHooks: readonly [{
|
|
53
53
|
name: "uploading";
|
|
54
54
|
state: string;
|
|
55
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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: (
|
|
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 [
|
|
16
|
+
declare const modalHooks: readonly [{
|
|
17
17
|
name: "opening";
|
|
18
18
|
state: string;
|
|
19
|
+
project: () => {};
|
|
19
20
|
onDone: string;
|
|
20
21
|
onError: string;
|
|
21
|
-
|
|
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
|
-
|
|
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 [
|
|
61
|
+
declare const panelsHooks: readonly [{
|
|
62
62
|
name: "opening";
|
|
63
63
|
state: string;
|
|
64
|
-
|
|
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
|
-
}>) =>
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
state: string;
|
|
76
|
+
}>) => {
|
|
77
|
+
panelId: string;
|
|
78
|
+
}[];
|
|
97
79
|
onDone: string;
|
|
98
80
|
onError: string;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
}>) =>
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
state: string;
|
|
110
|
+
}>) => {
|
|
111
|
+
panelId: string;
|
|
112
|
+
}[];
|
|
130
113
|
onDone: string;
|
|
131
114
|
onError: string;
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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
|
-
}>) =>
|
|
160
|
-
}>, Readonly<{
|
|
161
|
-
name: "persisting";
|
|
162
|
-
state: string;
|
|
144
|
+
}>) => PanelSizingTransitionData[];
|
|
163
145
|
onDone: string;
|
|
164
146
|
onError: string;
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
}>) =>
|
|
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" | "
|
|
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" | "
|
|
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, };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
export { registerAccordion, UiAccordion } from './accordion';
|
|
2
|
-
export type { AccordionData, UiAccordionApi } from './accordion';
|
|
2
|
+
export type { AccordionData, AccordionTransition, UiAccordionApi } from './accordion';
|
|
3
3
|
export { registerButton, unregisterButton } from './button';
|
|
4
4
|
export { registerCheckbox, UiCheckbox, UiCheckboxGroup, } from './checkbox';
|
|
5
5
|
export type { CheckboxData, CheckboxGroupData, CheckboxState, UiCheckboxApi } from './checkbox';
|
|
6
6
|
export { registerDatePicker, UiDatePicker } from './date-picker';
|
|
7
|
-
export type { DatePickerData } from './date-picker';
|
|
7
|
+
export type { DatePickerData, DatePickerTransition } from './date-picker';
|
|
8
8
|
export { registerDropdown, UiDropdown } from './dropdown';
|
|
9
|
-
export type { DropdownData, UiDropdownApi } from './dropdown';
|
|
9
|
+
export type { DropdownData, DropdownTransition, UiDropdownApi } from './dropdown';
|
|
10
10
|
export { registerField, UiField } from './field';
|
|
11
11
|
export { registerFileUpload, UiFileUpload } from './file-upload';
|
|
12
|
-
export type { FileTransferStatus, FileUploadData, FileUploadMetadata, FileUploadRecord, UiFileUploadApi } from './file-upload';
|
|
12
|
+
export type { FileTransferStatus, FileUploadData, FileUploadMetadata, FileUploadRecord, FileUploadTransition, UiFileUploadApi, } from './file-upload';
|
|
13
13
|
export { registerInput, UiInput } from './input';
|
|
14
14
|
export type { InputData, UiInputApi } from './input';
|
|
15
15
|
export { registerModal, UiModal, UiModalTrigger, } from './modal';
|
|
16
|
-
export type { ModalCancelDetail, UiModalApi, UiModalTriggerApi } from './modal';
|
|
16
|
+
export type { ModalCancelDetail, ModalTransition, UiModalApi, UiModalTriggerApi } from './modal';
|
|
17
17
|
export { registerPanels, UiPanels, UiPanelToggle } from './panels';
|
|
18
|
-
export type { PanelsData, UiPanelsApi } from './panels';
|
|
18
|
+
export type { PanelsData, PanelsTransition, UiPanelsApi } from './panels';
|
|
19
19
|
export { registerRadio, UiRadio, UiRadioGroup } from './radio';
|
|
20
20
|
export type { RadioData, RadioGroupData, UiRadioGroupApi } from './radio';
|
|
21
21
|
export { registerScrollArea, UiScrollArea } from './scroll-area';
|
|
22
22
|
export type { ScrollAreaData, ScrollAreaElements, UiScrollAreaApi } from './scroll-area';
|
|
23
23
|
export { registerSelect, UiSelect } from './select';
|
|
24
|
-
export type { SelectData, UiSelectApi } from './select';
|
|
24
|
+
export type { SelectData, SelectTransition, UiSelectApi } from './select';
|
|
25
25
|
export { registerSidebar, UiSidebar, UiSidebarToggle, } from './sidebar';
|
|
26
|
-
export type { SidebarController, SidebarData } from './sidebar';
|
|
26
|
+
export type { SidebarController, SidebarData, SidebarTransition } from './sidebar';
|
|
27
27
|
export { registerSlider, UiSlider } from './slider';
|
|
28
28
|
export type { SliderData, SliderElements, SliderThumbName, SliderValues, UiSliderApi } from './slider';
|
|
29
29
|
export { registerSwitch, UiSwitch } from './switch';
|
|
30
30
|
export type { SwitchData, UiSwitchApi } from './switch';
|
|
31
31
|
export { registerTabs, UiTabs, type UiTabsApi } from './tabs';
|
|
32
|
-
export type { TabsActivateDetail, TabsChangeDetail } from './tabs';
|
|
32
|
+
export type { TabsActivateDetail, TabsChangeDetail, TabsTransition } from './tabs';
|
|
33
33
|
export { registerToast, UiToast, UiToastOutlet, } from './toast';
|
|
34
|
-
export type { ToastData, ToastDetail, ToastOutletData } from './toast';
|
|
34
|
+
export type { ToastData, ToastDetail, ToastOutletData, ToastTransition } from './toast';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type Alpine from 'alpinejs';
|
|
2
1
|
import { type AlpineMachine, type BindingObject, type TrellisAlpineComponent } from '../../runtime';
|
|
3
2
|
import { type ScrollAreaProps } from './contract';
|
|
4
3
|
import { type ScrollAreaContext, scrollAreaHooks } from './machine';
|
|
@@ -37,6 +36,6 @@ type ScrollAreaData = AlpineMachine<ScrollAreaContext, ScrollAreaProps, typeof s
|
|
|
37
36
|
corner(el: HTMLElement): BindingObject;
|
|
38
37
|
};
|
|
39
38
|
declare const UiScrollArea: () => TrellisAlpineComponent<ScrollAreaData>;
|
|
40
|
-
declare const registerScrollArea: (
|
|
39
|
+
declare const registerScrollArea: import("../../runtime").AlpineDataRegistrar;
|
|
41
40
|
export { registerScrollArea, UiScrollArea };
|
|
42
41
|
export type { ScrollAreaData, ScrollAreaElements, UiScrollAreaApi };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type AlpineMachine, type TrellisAlpineComponent } from '../../runtime';
|
|
1
|
+
import { type AlpineMachine, type TransitionForHook, type TrellisAlpineComponent } from '../../runtime';
|
|
3
2
|
import { type BindingObject } from '../../runtime/merge-bindings';
|
|
4
3
|
import { type SelectProps } from './contract';
|
|
5
4
|
import { type SelectContext, selectHooks } from './machine';
|
|
5
|
+
type SelectTransitionName = (typeof selectHooks)[number]['name'];
|
|
6
|
+
type SelectTransition<TName extends SelectTransitionName = SelectTransitionName> = TransitionForHook<Extract<(typeof selectHooks)[number], {
|
|
7
|
+
name: TName;
|
|
8
|
+
}>, HTMLElement>;
|
|
6
9
|
/**
|
|
7
10
|
* Public Alpine API for `ui.select`.
|
|
8
11
|
*
|
|
@@ -46,6 +49,6 @@ type SelectData = AlpineMachine<SelectContext, SelectProps, typeof selectHooks>
|
|
|
46
49
|
destroy(): void;
|
|
47
50
|
};
|
|
48
51
|
declare const UiSelect: () => TrellisAlpineComponent<SelectData>;
|
|
49
|
-
declare const registerSelect: (
|
|
52
|
+
declare const registerSelect: import("../../runtime").AlpineDataRegistrar;
|
|
50
53
|
export { registerSelect, UiSelect };
|
|
51
|
-
export type { SelectData, UiSelectApi };
|
|
54
|
+
export type { SelectData, SelectTransition, UiSelectApi };
|