@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.
- package/package.json +6 -1
- package/packages/client/src/components/checkbox/styles.css +7 -0
- package/packages/client/src/components/radio/styles.css +2 -8
- package/packages/client/src/styles/components.css +1 -0
- package/packages/client/src/styles/generated-sources.css +1 -1
- package/packages/client/src/styles/theme.css +54 -10
- 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 +54 -107
- 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 +491 -375
- 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-D0Kqjm-1.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/alpine-machine-D0Kqjm-1.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-motion-Cog7tKk0.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-motion-Cog7tKk0.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-k107A8WE.js +3 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/capability-sortable-k107A8WE.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-vW9Cglw8.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{core-DjoX4J-6.js.map → core-vW9Cglw8.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-Bbm6qhVl.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bbm6qhVl.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BgnZZd0A.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BgnZZd0A.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-Bhvs_TUM.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Bhvs_TUM.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CGgRCeB5.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CGgRCeB5.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CgO0b8V6.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-CgO0b8V6.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Cvgc61x9.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-Cvgc61x9.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DFITIl56.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DFITIl56.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DMK37KS0.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DMK37KS0.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DMre0DbH.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DMre0DbH.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DOV8BDMY.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DOV8BDMY.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DT70Lo44.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DT70Lo44.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DVPnOfPb.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DVPnOfPb.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DiG5fS1F.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DiG5fS1F.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DnSxEcns.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DnSxEcns.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-JnbQA47P.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-JnbQA47P.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-byAFfb_v.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-byAFfb_v.js.map +1 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-dTc38DPe.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-dTc38DPe.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-DS2ew4dT.js +2 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{semantic-observer-9VxzbQBi.js.map → semantic-observer-DS2ew4dT.js.map} +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/stream-uyKKe0QF.js +4 -0
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/stream-uyKKe0QF.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
|
@@ -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
|
|
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: (
|
|
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 [
|
|
36
|
+
declare const datePickerHooks: readonly [{
|
|
37
37
|
name: "opening";
|
|
38
38
|
state: string;
|
|
39
|
+
project: () => {};
|
|
39
40
|
onDone: string;
|
|
40
41
|
onError: string;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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
|
-
|
|
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
|
-
|
|
403
|
-
|
|
404
|
-
|
|
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
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
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
|
|
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: (
|
|
31
|
+
declare const registerDropdown: import("../../runtime").AlpineDataRegistrar;
|
|
29
32
|
export { registerDropdown, UiDropdown };
|
|
30
|
-
export type { DropdownData, UiDropdownApi };
|
|
33
|
+
export type { DropdownData, DropdownTransition, UiDropdownApi };
|