@spinjs/components 0.1.0-preview.1 → 0.2.0-alpha.1
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/README.md +15 -5
- package/dist/angle-slider/angle-slider.events.d.ts +2 -3
- package/dist/angle-slider/angle-slider.machine.d.ts +4 -5
- package/dist/angle-slider/angle-slider.machine.js +2 -2
- package/dist/angle-slider/angle-slider.presentation.d.ts +11 -12
- package/dist/angle-slider/angle-slider.presentation.js +2 -2
- package/dist/angle-slider/angle-slider.state.d.ts +1 -2
- package/dist/angle-slider/angle-slider.state.js +1 -1
- package/dist/angle-slider/angle-slider.transitions.d.ts +2 -3
- package/dist/angle-slider/examples/basic.html +2 -2
- package/dist/angle-slider/examples/basic.html.js +5 -0
- package/dist/angle-slider/examples/knob.html +1 -1
- package/dist/angle-slider/examples/knob.html.js +5 -0
- package/dist/angle-slider/examples/labeled.html +11 -11
- package/dist/angle-slider/examples/labeled.html.js +5 -0
- package/dist/angle-slider/examples/marks.html +2 -2
- package/dist/angle-slider/examples/marks.html.js +5 -0
- package/dist/async-list/async-list.events.d.ts +2 -3
- package/dist/async-list/async-list.machine.d.ts +2 -3
- package/dist/async-list/async-list.machine.js +1 -1
- package/dist/async-list/async-list.presentation.d.ts +13 -14
- package/dist/async-list/async-list.presentation.js +2 -2
- package/dist/async-list/async-list.state.d.ts +1 -2
- package/dist/async-list/async-list.state.js +1 -1
- package/dist/async-list/async-list.transitions.d.ts +3 -4
- package/dist/async-list/examples/basic.html +7 -7
- package/dist/async-list/examples/basic.html.js +5 -0
- package/dist/avatar/avatar.events.d.ts +2 -3
- package/dist/avatar/avatar.machine.d.ts +12 -4
- package/dist/avatar/avatar.machine.js +1 -1
- package/dist/avatar/avatar.presentation.d.ts +5 -6
- package/dist/avatar/avatar.presentation.js +1 -1
- package/dist/avatar/avatar.state.d.ts +1 -2
- package/dist/avatar/avatar.state.js +1 -1
- package/dist/avatar/avatar.transitions.d.ts +2 -3
- package/dist/avatar/examples/badge.html +2 -2
- package/dist/avatar/examples/badge.html.js +5 -0
- package/dist/avatar/examples/badgeminimal.html +1 -1
- package/dist/avatar/examples/badgeminimal.html.js +5 -0
- package/dist/avatar/examples/basic.html +1 -1
- package/dist/avatar/examples/basic.html.js +5 -0
- package/dist/avatar/examples/count.html +5 -5
- package/dist/avatar/examples/count.html.js +5 -0
- package/dist/avatar/examples/fallback.html +1 -1
- package/dist/avatar/examples/fallback.html.js +5 -0
- package/dist/avatar/examples/group.html +4 -4
- package/dist/avatar/examples/group.html.js +5 -0
- package/dist/avatar/examples/icon.html +2 -2
- package/dist/avatar/examples/icon.html.js +5 -0
- package/dist/avatar/examples/multiples.html +4 -4
- package/dist/avatar/examples/multiples.html.js +5 -0
- package/dist/avatar/examples/pills.html +12 -12
- package/dist/avatar/examples/pills.html.js +5 -0
- package/dist/avatar/examples/pillsolid.html +4 -4
- package/dist/avatar/examples/pillsolid.html.js +5 -0
- package/dist/avatar/examples/rounded.html +1 -1
- package/dist/avatar/examples/rounded.html.js +5 -0
- package/dist/avatar/examples/status.html +2 -2
- package/dist/avatar/examples/status.html.js +5 -0
- package/dist/avatar/examples/statusminimal.html +1 -1
- package/dist/avatar/examples/statusminimal.html.js +5 -0
- package/dist/avatar/examples/trusted.html +6 -6
- package/dist/avatar/examples/trusted.html.js +5 -0
- package/dist/avatar/examples/verification.html +3 -3
- package/dist/avatar/examples/verification.html.js +5 -0
- package/dist/carousel/carousel.events.d.ts +2 -3
- package/dist/carousel/carousel.machine.d.ts +3 -4
- package/dist/carousel/carousel.machine.js +1 -1
- package/dist/carousel/carousel.presentation.d.ts +14 -15
- package/dist/carousel/carousel.presentation.js +2 -2
- package/dist/carousel/carousel.state.d.ts +1 -2
- package/dist/carousel/carousel.state.js +1 -1
- package/dist/carousel/carousel.transitions.d.ts +2 -3
- package/dist/carousel/examples/autoplay.html +8 -8
- package/dist/carousel/examples/autoplay.html.js +5 -0
- package/dist/carousel/examples/basic.html +7 -7
- package/dist/carousel/examples/basic.html.js +5 -0
- package/dist/carousel/examples/cards.html +8 -8
- package/dist/carousel/examples/cards.html.js +5 -0
- package/dist/carousel/examples/hero.html +6 -6
- package/dist/carousel/examples/hero.html.js +5 -0
- package/dist/carousel/examples/infinite.html +7 -7
- package/dist/carousel/examples/infinite.html.js +5 -0
- package/dist/carousel/examples/minimal.html +5 -5
- package/dist/carousel/examples/minimal.html.js +5 -0
- package/dist/carousel/examples/testimonials.html +10 -10
- package/dist/carousel/examples/testimonials.html.js +5 -0
- package/dist/carousel/examples/thumbnails.html +8 -8
- package/dist/carousel/examples/thumbnails.html.js +5 -0
- package/dist/carousel/examples/vertical.html +8 -8
- package/dist/carousel/examples/vertical.html.js +5 -0
- package/dist/cascade-select/cascade.events.d.ts +2 -3
- package/dist/cascade-select/cascade.machine.d.ts +3 -4
- package/dist/cascade-select/cascade.machine.js +1 -1
- package/dist/cascade-select/cascade.presentation.d.ts +8 -9
- package/dist/cascade-select/cascade.presentation.js +12 -12
- package/dist/cascade-select/cascade.state.d.ts +1 -2
- package/dist/cascade-select/cascade.state.js +1 -1
- package/dist/cascade-select/cascade.transitions.d.ts +2 -3
- package/dist/cascade-select/examples/basic.html +13 -11
- package/dist/cascade-select/examples/basic.html.js +5 -0
- package/dist/color-picker/color-picker.events.d.ts +3 -4
- package/dist/color-picker/color-picker.machine.d.ts +3 -3
- package/dist/color-picker/color-picker.machine.js +1 -1
- package/dist/color-picker/color-picker.presentation.d.ts +20 -21
- package/dist/color-picker/color-picker.presentation.js +4 -5
- package/dist/color-picker/color-picker.state.d.ts +2 -3
- package/dist/color-picker/color-picker.state.js +2 -2
- package/dist/color-picker/color-picker.transitions.d.ts +3 -4
- package/dist/color-picker/color.d.ts +39 -0
- package/dist/color-picker/color.js +401 -0
- package/dist/color-picker/examples/basic.html +14 -14
- package/dist/color-picker/examples/basic.html.js +5 -0
- package/dist/color-picker/examples/hue-wheel.html +9 -9
- package/dist/color-picker/examples/hue-wheel.html.js +5 -0
- package/dist/color-picker/examples/inline.html +8 -8
- package/dist/color-picker/examples/inline.html.js +5 -0
- package/dist/color-picker/examples/with-presets.html +10 -10
- package/dist/color-picker/examples/with-presets.html.js +5 -0
- package/dist/combobox/combobox.events.d.ts +2 -3
- package/dist/combobox/combobox.machine.d.ts +3 -4
- package/dist/combobox/combobox.machine.js +1 -1
- package/dist/combobox/combobox.presentation.d.ts +8 -9
- package/dist/combobox/combobox.presentation.js +3 -3
- package/dist/combobox/combobox.state.d.ts +1 -2
- package/dist/combobox/combobox.state.js +1 -1
- package/dist/combobox/combobox.transitions.d.ts +3 -4
- package/dist/combobox/examples/basic.html +7 -7
- package/dist/combobox/examples/basic.html.js +5 -0
- package/dist/combobox/examples/directory.html +7 -7
- package/dist/combobox/examples/directory.html.js +5 -0
- package/dist/combobox/examples/grouping.html +7 -7
- package/dist/combobox/examples/grouping.html.js +5 -0
- package/dist/combobox/examples/multiple.html +8 -8
- package/dist/combobox/examples/multiple.html.js +5 -0
- package/dist/compiler/emit.d.ts +6 -0
- package/dist/compiler/emit.js +217 -0
- package/dist/compiler/transform.d.ts +52 -0
- package/dist/compiler/transform.js +169 -0
- package/dist/controller.d.ts +2 -3
- package/dist/controller.js +1 -1
- package/dist/date-input/date-input.events.d.ts +2 -3
- package/dist/date-input/date-input.machine.d.ts +3 -3
- package/dist/date-input/date-input.machine.js +1 -1
- package/dist/date-input/date-input.presentation.d.ts +6 -7
- package/dist/date-input/date-input.presentation.js +1 -1
- package/dist/date-input/date-input.state.d.ts +1 -2
- package/dist/date-input/date-input.state.js +1 -1
- package/dist/date-input/date-input.transitions.d.ts +3 -4
- package/dist/date-input/examples/basic.html +3 -3
- package/dist/date-input/examples/basic.html.js +5 -0
- package/dist/date-picker/date-picker.events.d.ts +2 -3
- package/dist/date-picker/date-picker.machine.d.ts +2 -3
- package/dist/date-picker/date-picker.machine.js +1 -1
- package/dist/date-picker/date-picker.presentation.d.ts +14 -15
- package/dist/date-picker/date-picker.presentation.js +2 -2
- package/dist/date-picker/date-picker.state.d.ts +1 -2
- package/dist/date-picker/date-picker.state.js +1 -1
- package/dist/date-picker/date-picker.transitions.d.ts +3 -4
- package/dist/date-picker/examples/appointment.html +7 -7
- package/dist/date-picker/examples/appointment.html.js +5 -0
- package/dist/date-picker/examples/basic.html.js +5 -0
- package/dist/date-picker/examples/multiple.html.js +5 -0
- package/dist/date-picker/examples/pricing.html.js +5 -0
- package/dist/date-picker/examples/range.html.js +5 -0
- package/dist/date-picker/examples/unavailable.html.js +5 -0
- package/dist/editable/editable.events.d.ts +2 -3
- package/dist/editable/editable.machine.d.ts +3 -4
- package/dist/editable/editable.machine.js +1 -1
- package/dist/editable/editable.presentation.d.ts +6 -7
- package/dist/editable/editable.presentation.js +1 -1
- package/dist/editable/editable.state.d.ts +1 -2
- package/dist/editable/editable.state.js +1 -1
- package/dist/editable/editable.transitions.d.ts +3 -4
- package/dist/editable/examples/basic.html +7 -7
- package/dist/editable/examples/basic.html.js +5 -0
- package/dist/editable/examples/doubleclick.html +6 -6
- package/dist/editable/examples/doubleclick.html.js +5 -0
- package/dist/editable/examples/inline-edit.html +4 -4
- package/dist/editable/examples/inline-edit.html.js +5 -0
- package/dist/editable/examples/profile-field.html +7 -7
- package/dist/editable/examples/profile-field.html.js +5 -0
- package/dist/editable/examples/resize.html +6 -6
- package/dist/editable/examples/resize.html.js +5 -0
- package/dist/editable/examples/task-item.html +7 -7
- package/dist/editable/examples/task-item.html.js +5 -0
- package/dist/editable/examples/title-editor.html +3 -3
- package/dist/editable/examples/title-editor.html.js +5 -0
- package/dist/editable/examples/with-controls.html +4 -4
- package/dist/editable/examples/with-controls.html.js +5 -0
- package/dist/examples.d.ts +22 -0
- package/dist/examples.js +501 -0
- package/dist/file-upload/examples/avatar.html +8 -8
- package/dist/file-upload/examples/avatar.html.js +5 -0
- package/dist/file-upload/examples/basic.html +8 -8
- package/dist/file-upload/examples/basic.html.js +5 -0
- package/dist/file-upload/examples/directory.html +8 -8
- package/dist/file-upload/examples/directory.html.js +5 -0
- package/dist/file-upload/examples/dragdrop.html +8 -8
- package/dist/file-upload/examples/dragdrop.html.js +5 -0
- package/dist/file-upload/examples/files.html +9 -9
- package/dist/file-upload/examples/files.html.js +5 -0
- package/dist/file-upload/examples/images.html +8 -8
- package/dist/file-upload/examples/images.html.js +5 -0
- package/dist/file-upload/examples/paste.html +8 -8
- package/dist/file-upload/examples/paste.html.js +5 -0
- package/dist/file-upload/examples/table.html +7 -7
- package/dist/file-upload/examples/table.html.js +5 -0
- package/dist/file-upload/file-upload.events.d.ts +2 -3
- package/dist/file-upload/file-upload.machine.d.ts +5 -3
- package/dist/file-upload/file-upload.machine.js +1 -1
- package/dist/file-upload/file-upload.presentation.d.ts +10 -11
- package/dist/file-upload/file-upload.presentation.js +1 -1
- package/dist/file-upload/file-upload.state.d.ts +1 -2
- package/dist/file-upload/file-upload.state.js +1 -1
- package/dist/file-upload/file-upload.transitions.d.ts +3 -4
- package/dist/floating-panel/examples/basic.html +22 -23
- package/dist/floating-panel/examples/basic.html.js +5 -0
- package/dist/floating-panel/examples/calculator.html +41 -41
- package/dist/floating-panel/examples/calculator.html.js +5 -0
- package/dist/floating-panel/examples/chat.html +29 -29
- package/dist/floating-panel/examples/chat.html.js +5 -0
- package/dist/floating-panel/examples/media-player.html +27 -27
- package/dist/floating-panel/examples/media-player.html.js +5 -0
- package/dist/floating-panel/examples/notes.html +36 -36
- package/dist/floating-panel/examples/notes.html.js +5 -0
- package/dist/floating-panel/examples/settings.html +34 -34
- package/dist/floating-panel/examples/settings.html.js +5 -0
- package/dist/floating-panel/examples/task.html +40 -40
- package/dist/floating-panel/examples/task.html.js +5 -0
- package/dist/floating-panel/examples/video-call.html +25 -25
- package/dist/floating-panel/examples/video-call.html.js +5 -0
- package/dist/floating-panel/floating-panel.events.d.ts +2 -3
- package/dist/floating-panel/floating-panel.machine.d.ts +2 -3
- package/dist/floating-panel/floating-panel.machine.js +1 -1
- package/dist/floating-panel/floating-panel.presentation.d.ts +11 -13
- package/dist/floating-panel/floating-panel.presentation.js +3 -6
- package/dist/floating-panel/floating-panel.state.d.ts +1 -2
- package/dist/floating-panel/floating-panel.state.js +1 -1
- package/dist/floating-panel/floating-panel.transitions.d.ts +3 -4
- package/dist/hover-card/examples/basic.html +5 -5
- package/dist/hover-card/examples/basic.html.js +5 -0
- package/dist/hover-card/examples/controlled.html +9 -10
- package/dist/hover-card/examples/controlled.html.js +5 -0
- package/dist/hover-card/examples/custom-positioning.html +8 -8
- package/dist/hover-card/examples/custom-positioning.html.js +5 -0
- package/dist/hover-card/examples/link.html +2 -2
- package/dist/hover-card/examples/link.html.js +5 -0
- package/dist/hover-card/examples/product.html +9 -9
- package/dist/hover-card/examples/product.html.js +5 -0
- package/dist/hover-card/examples/user.html +11 -11
- package/dist/hover-card/examples/user.html.js +5 -0
- package/dist/hover-card/examples/with-arrow.html +9 -9
- package/dist/hover-card/examples/with-arrow.html.js +5 -0
- package/dist/hover-card/hover-card.controller-def.d.ts +2 -4
- package/dist/hover-card/hover-card.controller-def.js +1 -1
- package/dist/image-cropper/crop-geometry.d.ts +1 -2
- package/dist/image-cropper/crop-geometry.js +1 -1
- package/dist/image-cropper/examples/basic.html +3 -3
- package/dist/image-cropper/examples/basic.html.js +5 -0
- package/dist/image-cropper/examples/circle.html +3 -3
- package/dist/image-cropper/examples/circle.html.js +5 -0
- package/dist/image-cropper/image-cropper.events.d.ts +2 -3
- package/dist/image-cropper/image-cropper.machine.d.ts +3 -4
- package/dist/image-cropper/image-cropper.machine.js +2 -2
- package/dist/image-cropper/image-cropper.presentation.d.ts +7 -8
- package/dist/image-cropper/image-cropper.presentation.js +2 -2
- package/dist/image-cropper/image-cropper.state.d.ts +1 -2
- package/dist/image-cropper/image-cropper.state.js +1 -1
- package/dist/image-cropper/image-cropper.transitions.d.ts +3 -4
- package/dist/index.d.ts +28 -13
- package/dist/index.js +21 -14
- package/dist/listbox/examples/basic.html +9 -9
- package/dist/listbox/examples/basic.html.js +5 -0
- package/dist/listbox/examples/controlled.html +9 -9
- package/dist/listbox/examples/controlled.html.js +5 -0
- package/dist/listbox/examples/countries.html +9 -9
- package/dist/listbox/examples/countries.html.js +5 -0
- package/dist/listbox/examples/grouped.html +9 -9
- package/dist/listbox/examples/grouped.html.js +5 -0
- package/dist/listbox/examples/icons.html +10 -10
- package/dist/listbox/examples/icons.html.js +5 -0
- package/dist/listbox/examples/multiple.html +9 -9
- package/dist/listbox/examples/multiple.html.js +5 -0
- package/dist/listbox/examples/priority.html +9 -9
- package/dist/listbox/examples/priority.html.js +5 -0
- package/dist/listbox/examples/settings.html +9 -9
- package/dist/listbox/examples/settings.html.js +5 -0
- package/dist/listbox/listbox.events.d.ts +2 -3
- package/dist/listbox/listbox.machine.d.ts +2 -3
- package/dist/listbox/listbox.machine.js +1 -1
- package/dist/listbox/listbox.presentation.d.ts +6 -5
- package/dist/listbox/listbox.presentation.js +1 -1
- package/dist/listbox/listbox.state.d.ts +1 -2
- package/dist/listbox/listbox.state.js +1 -1
- package/dist/listbox/listbox.transitions.d.ts +3 -4
- package/dist/menu/examples/basic.html +15 -13
- package/dist/menu/examples/basic.html.js +5 -0
- package/dist/menu/examples/context.html +14 -12
- package/dist/menu/examples/context.html.js +5 -0
- package/dist/menu/examples/groups.html +15 -13
- package/dist/menu/examples/groups.html.js +5 -0
- package/dist/menu/examples/icons.html +17 -15
- package/dist/menu/examples/icons.html.js +5 -0
- package/dist/menu/examples/nested.html +15 -13
- package/dist/menu/examples/nested.html.js +5 -0
- package/dist/menu/examples/user.html +21 -19
- package/dist/menu/examples/user.html.js +5 -0
- package/dist/menu/menu.events.d.ts +2 -3
- package/dist/menu/menu.machine.d.ts +2 -3
- package/dist/menu/menu.machine.js +1 -1
- package/dist/menu/menu.presentation.d.ts +6 -8
- package/dist/menu/menu.presentation.js +4 -5
- package/dist/menu/menu.state.d.ts +1 -2
- package/dist/menu/menu.state.js +1 -1
- package/dist/mode-picker/examples/basic.html +1 -1
- package/dist/mode-picker/examples/basic.html.js +5 -0
- package/dist/mode-picker/examples/minimal.html +1 -1
- package/dist/mode-picker/examples/minimal.html.js +5 -0
- package/dist/mode-picker/examples/pill.html +1 -1
- package/dist/mode-picker/examples/pill.html.js +5 -0
- package/dist/mode-picker/mode-picker.events.d.ts +2 -3
- package/dist/mode-picker/mode-picker.machine.d.ts +3 -3
- package/dist/mode-picker/mode-picker.machine.js +1 -1
- package/dist/mode-picker/mode-picker.presentation.d.ts +7 -8
- package/dist/mode-picker/mode-picker.presentation.js +2 -2
- package/dist/mode-picker/mode-picker.state.d.ts +1 -2
- package/dist/mode-picker/mode-picker.transitions.d.ts +3 -4
- package/dist/navigation-menu/examples/basic.html +6 -6
- package/dist/navigation-menu/examples/basic.html.js +5 -0
- package/dist/navigation-menu/examples/grouped.html +14 -12
- package/dist/navigation-menu/examples/grouped.html.js +5 -0
- package/dist/navigation-menu/examples/minimal.html +7 -5
- package/dist/navigation-menu/examples/minimal.html.js +5 -0
- package/dist/navigation-menu/navigation-menu.events.d.ts +2 -3
- package/dist/navigation-menu/navigation-menu.machine.d.ts +3 -3
- package/dist/navigation-menu/navigation-menu.machine.js +1 -1
- package/dist/navigation-menu/navigation-menu.presentation.d.ts +6 -7
- package/dist/navigation-menu/navigation-menu.presentation.js +2 -2
- package/dist/navigation-menu/navigation-menu.state.d.ts +1 -2
- package/dist/navigation-menu/navigation-menu.state.js +1 -1
- package/dist/navigation-menu/navigation-menu.transitions.d.ts +3 -4
- package/dist/number-input/examples/basic.html +10 -10
- package/dist/number-input/examples/basic.html.js +5 -0
- package/dist/number-input/examples/currency.html +6 -6
- package/dist/number-input/examples/currency.html.js +5 -0
- package/dist/number-input/examples/decimal.html +4 -4
- package/dist/number-input/examples/decimal.html.js +5 -0
- package/dist/number-input/examples/limits.html +6 -6
- package/dist/number-input/examples/limits.html.js +5 -0
- package/dist/number-input/examples/percentage.html +6 -6
- package/dist/number-input/examples/percentage.html.js +5 -0
- package/dist/number-input/examples/quantity.html +6 -6
- package/dist/number-input/examples/quantity.html.js +5 -0
- package/dist/number-input/examples/scrubber.html +11 -11
- package/dist/number-input/examples/scrubber.html.js +5 -0
- package/dist/number-input/examples/wheel.html +7 -7
- package/dist/number-input/examples/wheel.html.js +5 -0
- package/dist/number-input/number-input.events.d.ts +2 -3
- package/dist/number-input/number-input.machine.d.ts +4 -4
- package/dist/number-input/number-input.machine.js +1 -1
- package/dist/number-input/number-input.presentation.d.ts +7 -8
- package/dist/number-input/number-input.presentation.js +4 -4
- package/dist/number-input/number-input.state.d.ts +1 -2
- package/dist/number-input/number-input.state.js +1 -1
- package/dist/number-input/number-input.transitions.d.ts +3 -4
- package/dist/pagination/examples/basic.html +2 -2
- package/dist/pagination/examples/basic.html.js +5 -0
- package/dist/pagination/examples/dropdown.html +2 -2
- package/dist/pagination/examples/dropdown.html.js +5 -0
- package/dist/pagination/examples/info.html +3 -3
- package/dist/pagination/examples/info.html.js +5 -0
- package/dist/pagination/examples/jump.html +2 -2
- package/dist/pagination/examples/jump.html.js +5 -0
- package/dist/pagination/examples/numbered.html +2 -2
- package/dist/pagination/examples/numbered.html.js +5 -0
- package/dist/pagination/examples/pagesize.html +4 -4
- package/dist/pagination/examples/pagesize.html.js +5 -0
- package/dist/pagination/pagination.events.d.ts +2 -3
- package/dist/pagination/pagination.machine.d.ts +4 -4
- package/dist/pagination/pagination.machine.js +1 -1
- package/dist/pagination/pagination.presentation.d.ts +4 -5
- package/dist/pagination/pagination.presentation.js +1 -1
- package/dist/pagination/pagination.state.d.ts +1 -2
- package/dist/pagination/pagination.state.js +1 -1
- package/dist/pagination/pagination.transitions.d.ts +2 -3
- package/dist/pin-input/examples/basic.html +2 -2
- package/dist/pin-input/examples/basic.html.js +5 -0
- package/dist/pin-input/examples/field.html +4 -4
- package/dist/pin-input/examples/field.html.js +5 -0
- package/dist/pin-input/examples/masked.html +3 -3
- package/dist/pin-input/examples/masked.html.js +5 -0
- package/dist/pin-input/examples/placeholder.html +3 -3
- package/dist/pin-input/examples/placeholder.html.js +5 -0
- package/dist/pin-input/examples/twofactor.html +4 -4
- package/dist/pin-input/examples/twofactor.html.js +5 -0
- package/dist/pin-input/examples/verification.html +6 -6
- package/dist/pin-input/examples/verification.html.js +5 -0
- package/dist/pin-input/pin-input.events.d.ts +2 -3
- package/dist/pin-input/pin-input.machine.d.ts +3 -3
- package/dist/pin-input/pin-input.machine.js +1 -1
- package/dist/pin-input/pin-input.presentation.d.ts +4 -5
- package/dist/pin-input/pin-input.presentation.js +2 -2
- package/dist/pin-input/pin-input.state.d.ts +1 -2
- package/dist/pin-input/pin-input.state.js +1 -1
- package/dist/pin-input/pin-input.transitions.d.ts +1 -2
- package/dist/popover/examples/basic.html +4 -4
- package/dist/popover/examples/basic.html.js +5 -0
- package/dist/popover/examples/feedback.html +5 -5
- package/dist/popover/examples/feedback.html.js +5 -0
- package/dist/popover/examples/notifications.html +5 -5
- package/dist/popover/examples/notifications.html.js +5 -0
- package/dist/popover/examples/settings.html +8 -8
- package/dist/popover/examples/settings.html.js +5 -0
- package/dist/popover/examples/share.html +5 -5
- package/dist/popover/examples/share.html.js +5 -0
- package/dist/popover/examples/user.html +10 -10
- package/dist/popover/examples/user.html.js +5 -0
- package/dist/popover/popover.controller-def.d.ts +2 -4
- package/dist/popover/popover.controller-def.js +1 -1
- package/dist/rating-group/examples/basic.html +9 -9
- package/dist/rating-group/examples/basic.html.js +5 -0
- package/dist/rating-group/examples/movie.html +11 -11
- package/dist/rating-group/examples/movie.html.js +5 -0
- package/dist/rating-group/examples/product-review.html +13 -13
- package/dist/rating-group/examples/product-review.html.js +5 -0
- package/dist/rating-group/examples/service-evaluation.html +5 -5
- package/dist/rating-group/examples/service-evaluation.html.js +5 -0
- package/dist/rating-group/rating-group.events.d.ts +2 -3
- package/dist/rating-group/rating-group.machine.d.ts +2 -3
- package/dist/rating-group/rating-group.machine.js +1 -1
- package/dist/rating-group/rating-group.presentation.d.ts +6 -7
- package/dist/rating-group/rating-group.presentation.js +2 -2
- package/dist/rating-group/rating-group.state.d.ts +1 -2
- package/dist/rating-group/rating-group.state.js +1 -1
- package/dist/rating-group/rating-group.transitions.d.ts +3 -4
- package/dist/react/react.d.ts +2 -3
- package/dist/runtime/actions/action.d.ts +64 -0
- package/dist/runtime/actions/action.js +45 -0
- package/dist/runtime/actions/anchor.d.ts +43 -0
- package/dist/runtime/actions/anchor.js +127 -0
- package/dist/runtime/actions/date-picker-focus.d.ts +19 -0
- package/dist/runtime/actions/date-picker-focus.js +16 -0
- package/dist/runtime/actions/drag.d.ts +66 -0
- package/dist/runtime/actions/drag.js +118 -0
- package/dist/runtime/actions/form-control.d.ts +18 -0
- package/dist/runtime/actions/form-control.js +41 -0
- package/dist/runtime/actions/hover-delay.d.ts +26 -0
- package/dist/runtime/actions/hover-delay.js +61 -0
- package/dist/runtime/actions/index.d.ts +113 -0
- package/dist/runtime/actions/index.js +240 -0
- package/dist/runtime/actions/infinite-scroll.d.ts +22 -0
- package/dist/runtime/actions/infinite-scroll.js +33 -0
- package/dist/runtime/actions/interact-outside.d.ts +43 -0
- package/dist/runtime/actions/interact-outside.js +72 -0
- package/dist/runtime/actions/observe.d.ts +27 -0
- package/dist/runtime/actions/observe.js +25 -0
- package/dist/runtime/actions/scroll-into-view.d.ts +32 -0
- package/dist/runtime/actions/scroll-into-view.js +36 -0
- package/dist/runtime/actions/select-focus.d.ts +17 -0
- package/dist/runtime/actions/select-focus.js +16 -0
- package/dist/runtime/actions/select-options.d.ts +25 -0
- package/dist/runtime/actions/select-options.js +27 -0
- package/dist/runtime/actions/toast-actions.d.ts +65 -0
- package/dist/runtime/actions/toast-actions.js +143 -0
- package/dist/runtime/aria.d.ts +231 -0
- package/dist/runtime/aria.js +193 -0
- package/dist/runtime/component/define.d.ts +242 -0
- package/dist/runtime/component/define.js +12 -0
- package/dist/runtime/component/ids.d.ts +14 -0
- package/dist/runtime/component/ids.js +35 -0
- package/dist/runtime/component/synthesize.d.ts +32 -0
- package/dist/runtime/component/synthesize.js +385 -0
- package/dist/runtime/core/signal.d.ts +57 -0
- package/dist/runtime/core/signal.js +100 -0
- package/dist/runtime/core/style.d.ts +14 -0
- package/dist/runtime/core/style.js +31 -0
- package/dist/runtime/directives/bind.d.ts +38 -0
- package/dist/runtime/directives/bind.js +244 -0
- package/dist/runtime/directives/for.d.ts +12 -0
- package/dist/runtime/directives/for.js +104 -0
- package/dist/runtime/directives/if.d.ts +10 -0
- package/dist/runtime/directives/if.js +45 -0
- package/dist/runtime/directives/load.d.ts +13 -0
- package/dist/runtime/directives/load.js +119 -0
- package/dist/runtime/directives/spread.d.ts +17 -0
- package/dist/runtime/directives/spread.js +121 -0
- package/dist/runtime/directives/tpl.d.ts +11 -0
- package/dist/runtime/directives/tpl.js +39 -0
- package/dist/runtime/directives/use.d.ts +13 -0
- package/dist/runtime/directives/use.js +34 -0
- package/dist/runtime/index.d.ts +101 -0
- package/dist/runtime/index.js +40 -0
- package/dist/runtime/machine/fsm/machine.d.ts +192 -0
- package/dist/runtime/machine/fsm/machine.js +248 -0
- package/dist/runtime/math/index.d.ts +2 -0
- package/dist/runtime/math/index.js +1 -0
- package/dist/runtime/math/numbers.d.ts +58 -0
- package/dist/runtime/math/numbers.js +115 -0
- package/dist/runtime/props.d.ts +61 -0
- package/dist/runtime/props.js +113 -0
- package/dist/runtime/scope/element.d.ts +86 -0
- package/dist/runtime/scope/element.js +226 -0
- package/dist/runtime/scope/table.d.ts +55 -0
- package/dist/runtime/scope/table.js +174 -0
- package/dist/runtime/syntax/braces.d.ts +2 -0
- package/dist/runtime/syntax/braces.js +35 -0
- package/dist/runtime/syntax/classes.d.ts +22 -0
- package/dist/runtime/syntax/classes.js +119 -0
- package/dist/runtime/syntax/display.d.ts +25 -0
- package/dist/runtime/syntax/display.js +344 -0
- package/dist/runtime/syntax/expand-groups.d.ts +12 -0
- package/dist/runtime/syntax/expand-groups.js +31 -0
- package/dist/runtime/syntax/ir.d.ts +76 -0
- package/dist/runtime/syntax/ir.js +11 -0
- package/dist/runtime/syntax/parse.d.ts +2 -0
- package/dist/runtime/syntax/parse.js +407 -0
- package/dist/runtime/syntax/script-block.d.ts +43 -0
- package/dist/runtime/syntax/script-block.js +190 -0
- package/dist/runtime/testing.d.ts +11 -0
- package/dist/runtime/testing.js +1 -0
- package/dist/select/examples/basic.html +9 -9
- package/dist/select/examples/basic.html.js +5 -0
- package/dist/select/examples/category.html +10 -10
- package/dist/select/examples/category.html.js +5 -0
- package/dist/select/examples/country.html +10 -10
- package/dist/select/examples/country.html.js +5 -0
- package/dist/select/examples/language.html.js +5 -0
- package/dist/select/examples/multiple.html.js +5 -0
- package/dist/select/examples/profile.html +10 -10
- package/dist/select/examples/profile.html.js +5 -0
- package/dist/select/examples/theme.html.js +5 -0
- package/dist/select/examples/with-overlapping-label.html +8 -8
- package/dist/select/examples/with-overlapping-label.html.js +5 -0
- package/dist/select/select.events.d.ts +2 -3
- package/dist/select/select.machine.d.ts +2 -3
- package/dist/select/select.machine.js +1 -1
- package/dist/select/select.presentation.d.ts +16 -20
- package/dist/select/select.presentation.js +6 -6
- package/dist/select/select.shared.d.ts +1 -2
- package/dist/select/select.state.d.ts +1 -2
- package/dist/select/select.state.js +1 -1
- package/dist/select/select.transitions.d.ts +2 -3
- package/dist/shared/keyboard.d.ts +1 -2
- package/dist/signature-pad/examples/basic.html +3 -3
- package/dist/signature-pad/examples/basic.html.js +5 -0
- package/dist/signature-pad/examples/contract.html +7 -7
- package/dist/signature-pad/examples/contract.html.js +5 -0
- package/dist/signature-pad/examples/receipt.html +8 -8
- package/dist/signature-pad/examples/receipt.html.js +5 -0
- package/dist/signature-pad/examples/with-preview.html +6 -6
- package/dist/signature-pad/examples/with-preview.html.js +5 -0
- package/dist/signature-pad/signature-pad.events.d.ts +2 -3
- package/dist/signature-pad/signature-pad.machine.d.ts +4 -4
- package/dist/signature-pad/signature-pad.machine.js +2 -2
- package/dist/signature-pad/signature-pad.presentation.d.ts +10 -11
- package/dist/signature-pad/signature-pad.presentation.js +2 -2
- package/dist/signature-pad/signature-pad.state.d.ts +1 -2
- package/dist/signature-pad/signature-pad.state.js +1 -1
- package/dist/signature-pad/signature-pad.transitions.d.ts +3 -4
- package/dist/slider/examples/basic.html +1 -1
- package/dist/slider/examples/basic.html.js +5 -0
- package/dist/slider/examples/equalizer.html +13 -13
- package/dist/slider/examples/equalizer.html.js +5 -0
- package/dist/slider/examples/fractional.html.js +5 -0
- package/dist/slider/examples/marks.html +2 -2
- package/dist/slider/examples/marks.html.js +5 -0
- package/dist/slider/examples/range.html +1 -1
- package/dist/slider/examples/range.html.js +5 -0
- package/dist/slider/examples/stepped.html.js +5 -0
- package/dist/slider/examples/ticks.html +2 -2
- package/dist/slider/examples/ticks.html.js +5 -0
- package/dist/slider/examples/vertical.html.js +5 -0
- package/dist/slider/slider.events.d.ts +2 -3
- package/dist/slider/slider.machine.d.ts +3 -3
- package/dist/slider/slider.machine.js +2 -2
- package/dist/slider/slider.presentation.d.ts +7 -8
- package/dist/slider/slider.presentation.js +2 -2
- package/dist/slider/slider.state.d.ts +1 -2
- package/dist/slider/slider.state.js +1 -1
- package/dist/slider/slider.transitions.d.ts +3 -4
- package/dist/slider/slider.transitions.js +1 -1
- package/dist/solid/solid.d.ts +2 -3
- package/dist/spin-element.d.ts +1 -2
- package/dist/spin-element.js +1 -1
- package/dist/splitter/examples/basic.html +2 -2
- package/dist/splitter/examples/basic.html.js +5 -0
- package/dist/splitter/examples/nested.html +4 -4
- package/dist/splitter/examples/nested.html.js +5 -0
- package/dist/splitter/examples/threepanels.html +2 -2
- package/dist/splitter/examples/threepanels.html.js +5 -0
- package/dist/splitter/examples/vertical.html +2 -2
- package/dist/splitter/examples/vertical.html.js +5 -0
- package/dist/splitter/splitter.events.d.ts +2 -3
- package/dist/splitter/splitter.machine.d.ts +2 -3
- package/dist/splitter/splitter.machine.js +1 -1
- package/dist/splitter/splitter.presentation.d.ts +5 -6
- package/dist/splitter/splitter.presentation.js +1 -1
- package/dist/splitter/splitter.state.d.ts +1 -2
- package/dist/splitter/splitter.state.js +1 -1
- package/dist/splitter/splitter.transitions.d.ts +2 -3
- package/dist/steps/examples/basic.html +5 -5
- package/dist/steps/examples/basic.html.js +5 -0
- package/dist/steps/examples/checkmarks.html +4 -4
- package/dist/steps/examples/checkmarks.html.js +5 -0
- package/dist/steps/examples/content.html +5 -5
- package/dist/steps/examples/content.html.js +5 -0
- package/dist/steps/examples/descriptions.html +2 -2
- package/dist/steps/examples/descriptions.html.js +5 -0
- package/dist/steps/examples/icons.html +2 -2
- package/dist/steps/examples/icons.html.js +5 -0
- package/dist/steps/examples/lines.html +2 -2
- package/dist/steps/examples/lines.html.js +5 -0
- package/dist/steps/examples/navigation.html +4 -4
- package/dist/steps/examples/navigation.html.js +5 -0
- package/dist/steps/examples/onboarding.html +4 -4
- package/dist/steps/examples/onboarding.html.js +5 -0
- package/dist/steps/examples/progress.html +3 -3
- package/dist/steps/examples/progress.html.js +5 -0
- package/dist/steps/examples/segmented.html +6 -6
- package/dist/steps/examples/segmented.html.js +5 -0
- package/dist/steps/examples/vertical.html +5 -5
- package/dist/steps/examples/vertical.html.js +5 -0
- package/dist/steps/examples/verticallabels.html +2 -2
- package/dist/steps/examples/verticallabels.html.js +5 -0
- package/dist/steps/examples/verticalnavigation.html +2 -2
- package/dist/steps/examples/verticalnavigation.html.js +5 -0
- package/dist/steps/steps.events.d.ts +2 -3
- package/dist/steps/steps.machine.d.ts +3 -3
- package/dist/steps/steps.machine.js +1 -1
- package/dist/steps/steps.presentation.d.ts +4 -5
- package/dist/steps/steps.presentation.js +1 -1
- package/dist/steps/steps.state.d.ts +1 -2
- package/dist/steps/steps.state.js +1 -1
- package/dist/steps/steps.transitions.d.ts +3 -4
- package/dist/tabs/examples/basic.html +2 -2
- package/dist/tabs/examples/basic.html.js +5 -0
- package/dist/tabs/examples/dashboard.html +42 -42
- package/dist/tabs/examples/dashboard.html.js +5 -0
- package/dist/tabs/examples/ghost.html +2 -2
- package/dist/tabs/examples/ghost.html.js +5 -0
- package/dist/tabs/examples/icon-above.html +6 -6
- package/dist/tabs/examples/icon-above.html.js +5 -0
- package/dist/tabs/examples/icon-only.html +3 -3
- package/dist/tabs/examples/icon-only.html.js +5 -0
- package/dist/tabs/examples/outline-with-icons.html +6 -6
- package/dist/tabs/examples/outline-with-icons.html.js +5 -0
- package/dist/tabs/examples/outline.html +3 -3
- package/dist/tabs/examples/outline.html.js +5 -0
- package/dist/tabs/examples/pills.html +2 -2
- package/dist/tabs/examples/pills.html.js +5 -0
- package/dist/tabs/examples/project.html +33 -33
- package/dist/tabs/examples/project.html.js +5 -0
- package/dist/tabs/examples/settings.html +35 -35
- package/dist/tabs/examples/settings.html.js +5 -0
- package/dist/tabs/examples/stack-with-icons.html +7 -7
- package/dist/tabs/examples/stack-with-icons.html.js +5 -0
- package/dist/tabs/examples/stack.html +3 -3
- package/dist/tabs/examples/stack.html.js +5 -0
- package/dist/tabs/examples/underline.html +3 -3
- package/dist/tabs/examples/underline.html.js +5 -0
- package/dist/tabs/examples/vertical-ghost.html +3 -3
- package/dist/tabs/examples/vertical-ghost.html.js +5 -0
- package/dist/tabs/examples/vertical-icons.html +5 -5
- package/dist/tabs/examples/vertical-icons.html.js +5 -0
- package/dist/tabs/examples/vertical-underline.html +4 -4
- package/dist/tabs/examples/vertical-underline.html.js +5 -0
- package/dist/tabs/examples/vertical-with-icons.html +6 -6
- package/dist/tabs/examples/vertical-with-icons.html.js +5 -0
- package/dist/tabs/examples/vertical.html +2 -2
- package/dist/tabs/examples/vertical.html.js +5 -0
- package/dist/tabs/examples/with-badges.html +3 -3
- package/dist/tabs/examples/with-badges.html.js +5 -0
- package/dist/tabs/examples/with-icons.html +4 -4
- package/dist/tabs/examples/with-icons.html.js +5 -0
- package/dist/tabs/tabs.events.d.ts +2 -3
- package/dist/tabs/tabs.machine.d.ts +3 -3
- package/dist/tabs/tabs.machine.js +1 -1
- package/dist/tabs/tabs.presentation.d.ts +6 -7
- package/dist/tabs/tabs.presentation.js +1 -1
- package/dist/tabs/tabs.state.d.ts +1 -2
- package/dist/tabs/tabs.state.js +1 -1
- package/dist/tabs/tabs.transitions.d.ts +3 -4
- package/dist/tags-input/examples/basic.html +9 -9
- package/dist/tags-input/examples/basic.html.js +5 -0
- package/dist/tags-input/examples/with-combobox.html +14 -14
- package/dist/tags-input/examples/with-combobox.html.js +5 -0
- package/dist/tags-input/tags.events.d.ts +2 -3
- package/dist/tags-input/tags.machine.d.ts +6 -4
- package/dist/tags-input/tags.machine.js +2 -2
- package/dist/tags-input/tags.presentation.d.ts +6 -7
- package/dist/tags-input/tags.presentation.js +1 -1
- package/dist/tags-input/tags.state.d.ts +1 -2
- package/dist/tags-input/tags.state.js +2 -2
- package/dist/tags-input/tags.transitions.d.ts +2 -3
- package/dist/theme-picker/examples/basic.html +6 -6
- package/dist/theme-picker/examples/basic.html.js +5 -0
- package/dist/theme-picker/examples/cards.html +4 -4
- package/dist/theme-picker/examples/cards.html.js +5 -0
- package/dist/theme-picker/examples/compact.html +3 -3
- package/dist/theme-picker/examples/compact.html.js +5 -0
- package/dist/theme-picker/examples/swatches.html +2 -2
- package/dist/theme-picker/examples/swatches.html.js +5 -0
- package/dist/theme-picker/theme-picker.events.d.ts +2 -3
- package/dist/theme-picker/theme-picker.machine.d.ts +3 -3
- package/dist/theme-picker/theme-picker.machine.js +1 -1
- package/dist/theme-picker/theme-picker.presentation.d.ts +9 -10
- package/dist/theme-picker/theme-picker.presentation.js +2 -2
- package/dist/theme-picker/theme-picker.state.d.ts +1 -2
- package/dist/theme-picker/theme-picker.transitions.d.ts +3 -4
- package/dist/timer/examples/basic.html +1 -1
- package/dist/timer/examples/basic.html.js +5 -0
- package/dist/timer/examples/card.html +4 -4
- package/dist/timer/examples/card.html.js +5 -0
- package/dist/timer/examples/compact.html +5 -5
- package/dist/timer/examples/compact.html.js +5 -0
- package/dist/timer/examples/countdown.html +3 -3
- package/dist/timer/examples/countdown.html.js +5 -0
- package/dist/timer/examples/labels.html +3 -3
- package/dist/timer/examples/labels.html.js +5 -0
- package/dist/timer/examples/large.html +2 -2
- package/dist/timer/examples/large.html.js +5 -0
- package/dist/timer/examples/minimal.html +1 -1
- package/dist/timer/examples/minimal.html.js +5 -0
- package/dist/timer/examples/pomodoro.html +3 -3
- package/dist/timer/examples/pomodoro.html.js +5 -0
- package/dist/timer/examples/workout.html +4 -4
- package/dist/timer/examples/workout.html.js +5 -0
- package/dist/timer/timer.events.d.ts +2 -3
- package/dist/timer/timer.machine.d.ts +2 -3
- package/dist/timer/timer.machine.js +1 -1
- package/dist/timer/timer.presentation.d.ts +7 -8
- package/dist/timer/timer.presentation.js +1 -1
- package/dist/timer/timer.state.d.ts +1 -2
- package/dist/timer/timer.state.js +1 -1
- package/dist/timer/timer.transitions.d.ts +2 -3
- package/dist/toast/examples/action.html +3 -3
- package/dist/toast/examples/action.html.js +5 -0
- package/dist/toast/examples/basic.html +3 -3
- package/dist/toast/examples/basic.html.js +5 -0
- package/dist/toast/examples/bottomcenter.html +3 -3
- package/dist/toast/examples/bottomcenter.html.js +5 -0
- package/dist/toast/examples/bottomleft.html +3 -3
- package/dist/toast/examples/bottomleft.html.js +5 -0
- package/dist/toast/examples/bottomright.html +3 -3
- package/dist/toast/examples/bottomright.html.js +5 -0
- package/dist/toast/examples/duration.html +3 -3
- package/dist/toast/examples/duration.html.js +5 -0
- package/dist/toast/examples/promise.html +6 -6
- package/dist/toast/examples/promise.html.js +5 -0
- package/dist/toast/examples/topcenter.html +3 -3
- package/dist/toast/examples/topcenter.html.js +5 -0
- package/dist/toast/examples/topleft.html +3 -3
- package/dist/toast/examples/topleft.html.js +5 -0
- package/dist/toast/examples/topright.html +3 -3
- package/dist/toast/examples/topright.html.js +5 -0
- package/dist/toast/examples/types.html +3 -3
- package/dist/toast/examples/types.html.js +5 -0
- package/dist/toast/examples/updatable.html.js +5 -0
- package/dist/toast/toast.events.d.ts +2 -3
- package/dist/toast/toast.machine.d.ts +4 -4
- package/dist/toast/toast.machine.js +1 -1
- package/dist/toast/toast.presentation.d.ts +5 -6
- package/dist/toast/toast.presentation.js +1 -1
- package/dist/toast/toast.state.d.ts +1 -2
- package/dist/toast/toast.state.js +3 -3
- package/dist/toast/toast.transitions.d.ts +3 -4
- package/dist/toc/examples/basic.html +31 -0
- package/dist/toc/examples/basic.html.js +5 -0
- package/dist/toc/toc.events.d.ts +19 -0
- package/dist/toc/toc.events.js +1 -0
- package/dist/toc/toc.machine.d.ts +5 -0
- package/dist/toc/toc.machine.js +59 -0
- package/dist/toc/toc.presentation.d.ts +127 -0
- package/dist/toc/toc.presentation.js +117 -0
- package/dist/toc/toc.state.d.ts +41 -0
- package/dist/toc/toc.state.js +64 -0
- package/dist/toc/toc.transitions.d.ts +8 -0
- package/dist/toc/toc.transitions.js +27 -0
- package/dist/toggle-group/examples/basic.html +2 -2
- package/dist/toggle-group/examples/basic.html.js +5 -0
- package/dist/toggle-group/examples/ghost.html +1 -1
- package/dist/toggle-group/examples/ghost.html.js +5 -0
- package/dist/toggle-group/examples/icons.html +3 -3
- package/dist/toggle-group/examples/icons.html.js +5 -0
- package/dist/toggle-group/examples/multiple.html.js +5 -0
- package/dist/toggle-group/examples/outline.html +2 -2
- package/dist/toggle-group/examples/outline.html.js +5 -0
- package/dist/toggle-group/examples/toolbar.html +3 -3
- package/dist/toggle-group/examples/toolbar.html.js +5 -0
- package/dist/toggle-group/toggle-group.events.d.ts +2 -3
- package/dist/toggle-group/toggle-group.machine.d.ts +3 -3
- package/dist/toggle-group/toggle-group.machine.js +1 -1
- package/dist/toggle-group/toggle-group.presentation.d.ts +6 -7
- package/dist/toggle-group/toggle-group.presentation.js +2 -2
- package/dist/toggle-group/toggle-group.state.d.ts +1 -2
- package/dist/toggle-group/toggle-group.state.js +1 -1
- package/dist/toggle-group/toggle-group.transitions.d.ts +3 -4
- package/dist/tooltip/examples/basic.html.js +5 -0
- package/dist/tooltip/examples/metrics.html +9 -9
- package/dist/tooltip/examples/metrics.html.js +5 -0
- package/dist/tooltip/examples/positioning.html +4 -4
- package/dist/tooltip/examples/positioning.html.js +5 -0
- package/dist/tooltip/examples/status.html +10 -10
- package/dist/tooltip/examples/status.html.js +5 -0
- package/dist/tooltip/examples/video.html +6 -6
- package/dist/tooltip/examples/video.html.js +5 -0
- package/dist/tooltip/examples/with-arrow.html +1 -1
- package/dist/tooltip/examples/with-arrow.html.js +5 -0
- package/dist/tooltip/tooltip.controller-def.d.ts +3 -5
- package/dist/tooltip/tooltip.controller-def.js +1 -1
- package/dist/tour/examples/basic.html +5 -5
- package/dist/tour/examples/basic.html.js +5 -0
- package/dist/tour/tour.events.d.ts +2 -3
- package/dist/tour/tour.machine.d.ts +7 -3
- package/dist/tour/tour.machine.js +1 -1
- package/dist/tour/tour.presentation.d.ts +6 -7
- package/dist/tour/tour.presentation.js +1 -1
- package/dist/tour/tour.state.d.ts +1 -2
- package/dist/tour/tour.state.js +1 -1
- package/dist/tour/tour.transitions.d.ts +3 -4
- package/dist/tree-view/examples/basic.html +10 -10
- package/dist/tree-view/examples/basic.html.js +5 -0
- package/dist/tree-view/examples/loading.html +11 -11
- package/dist/tree-view/examples/loading.html.js +5 -0
- package/dist/tree-view/tree-view.events.d.ts +2 -3
- package/dist/tree-view/tree-view.machine.d.ts +2 -3
- package/dist/tree-view/tree-view.machine.js +1 -1
- package/dist/tree-view/tree-view.presentation.d.ts +9 -10
- package/dist/tree-view/tree-view.presentation.js +2 -2
- package/dist/tree-view/tree-view.state.d.ts +1 -2
- package/dist/tree-view/tree-view.state.js +1 -1
- package/dist/tree-view/tree-view.transitions.d.ts +3 -4
- package/package.json +43 -8
|
@@ -47,5 +47,4 @@ export interface SelectArgs {
|
|
|
47
47
|
export declare const rowsOf: (raw: unknown) => SelectRow[];
|
|
48
48
|
export declare function initial(args: SelectArgs, authored?: (name: string) => boolean): SelectContext;
|
|
49
49
|
export declare const selectLabel: (ctx: SelectContext) => string;
|
|
50
|
-
export declare const inCollection: (ctx: SelectContext, value: string | null) => value is string;
|
|
51
|
-
//# sourceMappingURL=select.state.d.ts.map
|
|
50
|
+
export declare const inCollection: (ctx: SelectContext, value: string | null) => value is string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SelectContext } from "./select.state.js";
|
|
2
2
|
import { SelectEvents } from "./select.events.js";
|
|
3
|
-
import { AssignFor, GuardFor } from "@spinjs/
|
|
3
|
+
import { AssignFor, GuardFor } from "@spinjs/components/fsm";
|
|
4
4
|
type SelectAssign<K extends keyof SelectEvents = keyof SelectEvents> = AssignFor<SelectContext, SelectEvents, K>;
|
|
5
5
|
declare const setHighlighted: SelectAssign<"HIGHLIGHTED_VALUE.SET" | "ITEM.POINTER_MOVE">;
|
|
6
6
|
declare const clearHighlighted: () => Partial<SelectContext>;
|
|
@@ -11,5 +11,4 @@ declare const highlightFirst: (ctx: SelectContext) => Partial<SelectContext>;
|
|
|
11
11
|
declare const highlightLast: (ctx: SelectContext) => Partial<SelectContext>;
|
|
12
12
|
declare const single: GuardFor<SelectContext, SelectEvents>;
|
|
13
13
|
declare const restoreFocus: GuardFor<SelectContext, SelectEvents>;
|
|
14
|
-
export { type SelectAssign, clearHighlighted, clearValue, highlightFirst, highlightFirstOrSelected, highlightLast, restoreFocus, selectClicked, setHighlighted, single };
|
|
15
|
-
//# sourceMappingURL=select.transitions.d.ts.map
|
|
14
|
+
export { type SelectAssign, clearHighlighted, clearValue, highlightFirst, highlightFirstOrSelected, highlightLast, restoreFocus, selectClicked, setHighlighted, single };
|
|
@@ -25,5 +25,4 @@ export type KeyIntent = {
|
|
|
25
25
|
/** A key → intent table; missing keys are simply not handled. */
|
|
26
26
|
export type KeyTable = Readonly<Record<string, KeyIntent | undefined>>;
|
|
27
27
|
/** Roving keys on both axes with implicit loop wrap (tabs' model). */
|
|
28
|
-
export declare const ROVING_KEYS: KeyTable;
|
|
29
|
-
//# sourceMappingURL=keyboard.d.ts.map
|
|
28
|
+
export declare const ROVING_KEYS: KeyTable;
|
|
@@ -4,10 +4,10 @@ import { signaturePad } from "../signature-pad.presentation.js";
|
|
|
4
4
|
const machine = signaturePad({});
|
|
5
5
|
</script>
|
|
6
6
|
<div class="w-full" {...machine.getRootProps()}>
|
|
7
|
-
<label class="block
|
|
7
|
+
<label class="block"
|
|
8
8
|
{...machine.getLabelProps()}>Sign below</label>
|
|
9
9
|
<div
|
|
10
|
-
class={["relative h-60 w-full touch-none overflow-hidden rounded-lg border
|
|
10
|
+
class={["relative h-60 w-full touch-none overflow-hidden rounded-lg border bg-surface select-none transition-colors duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
11
11
|
{...machine.getControlProps()}
|
|
12
12
|
>
|
|
13
13
|
<svg {...machine.getSegmentProps()}>
|
|
@@ -18,7 +18,7 @@ const machine = signaturePad({});
|
|
|
18
18
|
{...machine.getSegmentPathProps({ path: machine.currentPath })}></path>
|
|
19
19
|
</svg>
|
|
20
20
|
<span show={machine.empty && !machine.drawing}
|
|
21
|
-
class="pointer-events-none absolute inset-0 flex items-center justify-center
|
|
21
|
+
class="pointer-events-none absolute inset-0 flex items-center justify-center type-body text-muted"
|
|
22
22
|
{...machine.getGuideProps()}>Sign here</span>
|
|
23
23
|
<button show={!machine.empty && !machine.drawing}
|
|
24
24
|
class="absolute right-2 top-2 ghost icon s-sm transition-colors duration-fast ease-decelerate"
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/signature-pad/examples/basic.html
|
|
2
|
+
var basic_default = "<script lang=\"ts\">\nimport { signaturePad } from \"../signature-pad.presentation.ts\";\n\nconst machine = signaturePad({});\n<\/script>\n<div class=\"w-full\" {...machine.getRootProps()}>\n <label class=\"block\"\n {...machine.getLabelProps()}>Sign below</label>\n <div\n class={[\"relative h-60 w-full touch-none overflow-hidden rounded-lg border bg-surface select-none transition-colors duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getControlProps()}\n >\n <svg {...machine.getSegmentProps()}>\n <template for={machine.paths} as={row} key={row}>\n <path {...machine.getSegmentPathProps({ path: row })}></path>\n </template>\n <path show={machine.drawing}\n {...machine.getSegmentPathProps({ path: machine.currentPath })}></path>\n </svg>\n <span show={machine.empty && !machine.drawing}\n class=\"pointer-events-none absolute inset-0 flex items-center justify-center type-body text-muted\"\n {...machine.getGuideProps()}>Sign here</span>\n <button show={!machine.empty && !machine.drawing}\n class=\"absolute right-2 top-2 ghost icon s-sm transition-colors duration-fast ease-decelerate\"\n {...machine.getClearTriggerProps(\"Clear signature\")}\n >Clear</button>\n </div>\n <input {...machine.getHiddenInputProps()} />\n</div>\n";
|
|
3
|
+
export { basic_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=basic.html.js.map
|
|
@@ -4,17 +4,17 @@ import { signaturePad } from "../signature-pad.presentation.js";
|
|
|
4
4
|
const machine = signaturePad({});
|
|
5
5
|
</script>
|
|
6
6
|
<div
|
|
7
|
-
class="mx-auto w-full max-w-md rounded-lg border
|
|
7
|
+
class="mx-auto w-full max-w-md rounded-lg border bg-surface-raised p-4 shadow-sm"
|
|
8
8
|
{...machine.getRootProps()}>
|
|
9
|
-
<div class="mb-3 border-b
|
|
10
|
-
<strong
|
|
9
|
+
<div class="mb-3 border-b pb-3">
|
|
10
|
+
<strong>Service Level Agreement</strong>
|
|
11
11
|
<p
|
|
12
|
-
class="text-
|
|
12
|
+
class="text-muted">By signing below, you accept the enterprise platform terms and uptime guarantees.</p>
|
|
13
13
|
</div>
|
|
14
|
-
<label class="mb-1 block
|
|
14
|
+
<label class="mb-1 block"
|
|
15
15
|
{...machine.getLabelProps()}>Authorized Signature</label>
|
|
16
16
|
<div
|
|
17
|
-
class={["relative h-40 w-full touch-none overflow-hidden rounded-lg border
|
|
17
|
+
class={["relative h-40 w-full touch-none overflow-hidden rounded-lg border bg-surface select-none transition-colors duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
18
18
|
{...machine.getControlProps()}
|
|
19
19
|
>
|
|
20
20
|
<svg {...machine.getSegmentProps()}>
|
|
@@ -25,7 +25,7 @@ const machine = signaturePad({});
|
|
|
25
25
|
{...machine.getSegmentPathProps({ path: machine.currentPath })}></path>
|
|
26
26
|
</svg>
|
|
27
27
|
<span show={machine.empty && !machine.drawing}
|
|
28
|
-
class="pointer-events-none absolute inset-0 flex items-center justify-center
|
|
28
|
+
class="pointer-events-none absolute inset-0 flex items-center justify-center type-caption text-muted"
|
|
29
29
|
{...machine.getGuideProps()}>Draw signature to execute contract</span>
|
|
30
30
|
<button show={!machine.empty && !machine.drawing}
|
|
31
31
|
class="absolute right-2 top-2 ghost icon s-sm transition-colors duration-fast ease-decelerate"
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/signature-pad/examples/contract.html
|
|
2
|
+
var contract_default = "<script lang=\"ts\">\nimport { signaturePad } from \"../signature-pad.presentation.ts\";\n\nconst machine = signaturePad({});\n<\/script>\n<div\n class=\"mx-auto w-full max-w-md rounded-lg border bg-surface-raised p-4 shadow-sm\"\n {...machine.getRootProps()}>\n <div class=\"mb-3 border-b pb-3\">\n <strong>Service Level Agreement</strong>\n <p\n class=\"text-muted\">By signing below, you accept the enterprise platform terms and uptime guarantees.</p>\n </div>\n <label class=\"mb-1 block\"\n {...machine.getLabelProps()}>Authorized Signature</label>\n <div\n class={[\"relative h-40 w-full touch-none overflow-hidden rounded-lg border bg-surface select-none transition-colors duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getControlProps()}\n >\n <svg {...machine.getSegmentProps()}>\n <template for={machine.paths} as={row} key={row}>\n <path {...machine.getSegmentPathProps({ path: row })}></path>\n </template>\n <path show={machine.drawing}\n {...machine.getSegmentPathProps({ path: machine.currentPath })}></path>\n </svg>\n <span show={machine.empty && !machine.drawing}\n class=\"pointer-events-none absolute inset-0 flex items-center justify-center type-caption text-muted\"\n {...machine.getGuideProps()}>Draw signature to execute contract</span>\n <button show={!machine.empty && !machine.drawing}\n class=\"absolute right-2 top-2 ghost icon s-sm transition-colors duration-fast ease-decelerate\"\n {...machine.getClearTriggerProps(\"Clear signature\")}\n >Clear</button>\n </div>\n <input {...machine.getHiddenInputProps()} />\n</div>\n";
|
|
3
|
+
export { contract_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=contract.html.js.map
|
|
@@ -4,21 +4,21 @@ import { signaturePad } from "../signature-pad.presentation.js";
|
|
|
4
4
|
const machine = signaturePad({});
|
|
5
5
|
</script>
|
|
6
6
|
<div
|
|
7
|
-
class="mx-auto w-full max-w-sm rounded-lg border
|
|
7
|
+
class="mx-auto w-full max-w-sm rounded-lg border bg-surface-raised p-4 shadow-sm"
|
|
8
8
|
{...machine.getRootProps()}>
|
|
9
9
|
<div
|
|
10
|
-
class="mb-3 flex items-center justify-between border-b
|
|
10
|
+
class="mb-3 flex items-center justify-between border-b pb-3">
|
|
11
11
|
<div>
|
|
12
|
-
<span class="block
|
|
12
|
+
<span class="block type-caption text-muted">Merchant Receipt #4821</span>
|
|
13
13
|
<span
|
|
14
|
-
class="
|
|
14
|
+
class="type-label">Cloud Compute — Annual</span>
|
|
15
15
|
</div>
|
|
16
|
-
<span class="
|
|
16
|
+
<span class="type-code">$1,240.00</span>
|
|
17
17
|
</div>
|
|
18
|
-
<label class="mb-1 block
|
|
18
|
+
<label class="mb-1 block"
|
|
19
19
|
{...machine.getLabelProps()}>Cardholder Signature</label>
|
|
20
20
|
<div
|
|
21
|
-
class={["relative h-36 w-full touch-none overflow-hidden rounded-lg border
|
|
21
|
+
class={["relative h-36 w-full touch-none overflow-hidden rounded-lg border bg-surface select-none transition-colors duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
22
22
|
{...machine.getControlProps()}
|
|
23
23
|
>
|
|
24
24
|
<svg {...machine.getSegmentProps()}>
|
|
@@ -29,7 +29,7 @@ const machine = signaturePad({});
|
|
|
29
29
|
{...machine.getSegmentPathProps({ path: machine.currentPath })}></path>
|
|
30
30
|
</svg>
|
|
31
31
|
<span show={machine.empty && !machine.drawing}
|
|
32
|
-
class="pointer-events-none absolute inset-0 flex items-center justify-center
|
|
32
|
+
class="pointer-events-none absolute inset-0 flex items-center justify-center type-caption text-muted"
|
|
33
33
|
{...machine.getGuideProps()}>Sign to authorize payment</span>
|
|
34
34
|
<button show={!machine.empty && !machine.drawing}
|
|
35
35
|
class="absolute right-2 top-2 ghost icon s-sm transition-colors duration-fast ease-decelerate"
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/signature-pad/examples/receipt.html
|
|
2
|
+
var receipt_default = "<script lang=\"ts\">\nimport { signaturePad } from \"../signature-pad.presentation.ts\";\n\nconst machine = signaturePad({});\n<\/script>\n<div\n class=\"mx-auto w-full max-w-sm rounded-lg border bg-surface-raised p-4 shadow-sm\"\n {...machine.getRootProps()}>\n <div\n class=\"mb-3 flex items-center justify-between border-b pb-3\">\n <div>\n <span class=\"block type-caption text-muted\">Merchant Receipt #4821</span>\n <span\n class=\"type-label\">Cloud Compute — Annual</span>\n </div>\n <span class=\"type-code\">$1,240.00</span>\n </div>\n <label class=\"mb-1 block\"\n {...machine.getLabelProps()}>Cardholder Signature</label>\n <div\n class={[\"relative h-36 w-full touch-none overflow-hidden rounded-lg border bg-surface select-none transition-colors duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getControlProps()}\n >\n <svg {...machine.getSegmentProps()}>\n <template for={machine.paths} as={row} key={row}>\n <path {...machine.getSegmentPathProps({ path: row })}></path>\n </template>\n <path show={machine.drawing}\n {...machine.getSegmentPathProps({ path: machine.currentPath })}></path>\n </svg>\n <span show={machine.empty && !machine.drawing}\n class=\"pointer-events-none absolute inset-0 flex items-center justify-center type-caption text-muted\"\n {...machine.getGuideProps()}>Sign to authorize payment</span>\n <button show={!machine.empty && !machine.drawing}\n class=\"absolute right-2 top-2 ghost icon s-sm transition-colors duration-fast ease-decelerate\"\n {...machine.getClearTriggerProps(\"Clear signature\")}\n >Clear</button>\n </div>\n <input {...machine.getHiddenInputProps()} />\n</div>\n";
|
|
3
|
+
export { receipt_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=receipt.html.js.map
|
|
@@ -4,10 +4,10 @@ import { signaturePad } from "../signature-pad.presentation.js";
|
|
|
4
4
|
const machine = signaturePad({});
|
|
5
5
|
</script>
|
|
6
6
|
<div class="w-full" {...machine.getRootProps()}>
|
|
7
|
-
<label class="block
|
|
7
|
+
<label class="block"
|
|
8
8
|
{...machine.getLabelProps()}>Sign below</label>
|
|
9
9
|
<div
|
|
10
|
-
class={["relative h-60 w-full touch-none overflow-hidden rounded-lg border
|
|
10
|
+
class={["relative h-60 w-full touch-none overflow-hidden rounded-lg border bg-surface select-none transition-colors duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
11
11
|
{...machine.getControlProps()}
|
|
12
12
|
>
|
|
13
13
|
<svg {...machine.getSegmentProps()}>
|
|
@@ -18,7 +18,7 @@ const machine = signaturePad({});
|
|
|
18
18
|
{...machine.getSegmentPathProps({ path: machine.currentPath })}></path>
|
|
19
19
|
</svg>
|
|
20
20
|
<span show={machine.empty && !machine.drawing}
|
|
21
|
-
class="pointer-events-none absolute inset-0 flex items-center justify-center
|
|
21
|
+
class="pointer-events-none absolute inset-0 flex items-center justify-center type-body text-muted"
|
|
22
22
|
{...machine.getGuideProps()}>Sign here</span>
|
|
23
23
|
<button show={!machine.empty && !machine.drawing}
|
|
24
24
|
class="absolute right-2 top-2 ghost icon s-sm transition-colors duration-fast ease-decelerate"
|
|
@@ -28,9 +28,9 @@ const machine = signaturePad({});
|
|
|
28
28
|
<input {...machine.getHiddenInputProps()} />
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
|
-
<div show={!machine.empty} class="mt-4
|
|
32
|
-
<strong
|
|
33
|
-
<div class="relative h-24 w-full overflow-hidden rounded-lg border
|
|
31
|
+
<div show={!machine.empty} class="mt-4 flex flex-col gap-2">
|
|
32
|
+
<strong>Signature Preview</strong>
|
|
33
|
+
<div class="relative h-24 w-full overflow-hidden rounded-lg border bg-surface-sunken">
|
|
34
34
|
<svg {...machine.getPreviewProps()}>
|
|
35
35
|
<template for={machine.paths} as={row} key={row}>
|
|
36
36
|
<path {...machine.getSegmentPathProps({ path: row })}></path>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/signature-pad/examples/with-preview.html
|
|
2
|
+
var with_preview_default = "<script lang=\"ts\">\nimport { signaturePad } from \"../signature-pad.presentation.ts\";\n\nconst machine = signaturePad({});\n<\/script>\n<div class=\"w-full\" {...machine.getRootProps()}>\n <label class=\"block\"\n {...machine.getLabelProps()}>Sign below</label>\n <div\n class={[\"relative h-60 w-full touch-none overflow-hidden rounded-lg border bg-surface select-none transition-colors duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getControlProps()}\n >\n <svg {...machine.getSegmentProps()}>\n <template for={machine.paths} as={row} key={row}>\n <path {...machine.getSegmentPathProps({ path: row })}></path>\n </template>\n <path show={machine.drawing}\n {...machine.getSegmentPathProps({ path: machine.currentPath })}></path>\n </svg>\n <span show={machine.empty && !machine.drawing}\n class=\"pointer-events-none absolute inset-0 flex items-center justify-center type-body text-muted\"\n {...machine.getGuideProps()}>Sign here</span>\n <button show={!machine.empty && !machine.drawing}\n class=\"absolute right-2 top-2 ghost icon s-sm transition-colors duration-fast ease-decelerate\"\n {...machine.getClearTriggerProps(\"Clear signature\")}\n >Clear</button>\n </div>\n <input {...machine.getHiddenInputProps()} />\n</div>\n\n<div show={!machine.empty} class=\"mt-4 flex flex-col gap-2\">\n <strong>Signature Preview</strong>\n <div class=\"relative h-24 w-full overflow-hidden rounded-lg border bg-surface-sunken\">\n <svg {...machine.getPreviewProps()}>\n <template for={machine.paths} as={row} key={row}>\n <path {...machine.getSegmentPathProps({ path: row })}></path>\n </template>\n </svg>\n </div>\n</div>\n";
|
|
3
|
+
export { with_preview_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=with-preview.html.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DrawingTuning, SignaturePoint } from "./signature-pad.state.js";
|
|
2
|
-
import { EventUnion } from "@spinjs/
|
|
2
|
+
import { EventUnion } from "@spinjs/components/fsm";
|
|
3
3
|
export interface SignaturePadEvents {
|
|
4
4
|
"POINTER_DOWN": {
|
|
5
5
|
point: SignaturePoint;
|
|
@@ -22,5 +22,4 @@ export type SignaturePadEvent = EventUnion<SignaturePadEvents>;
|
|
|
22
22
|
export type SignaturePadDrawDetails = {
|
|
23
23
|
readonly paths: string[];
|
|
24
24
|
readonly currentPath: string | null;
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=signature-pad.events.d.ts.map
|
|
25
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/** Signature-pad machine: idle/drawing over two states. */
|
|
1
2
|
import { DrawingTuning, SignaturePadArgs, SignaturePadContext, SignaturePadState, SignaturePoint, defaultTuning, initial, isEmpty, isInteractive, pathsOf, strokePath, svgPathFromStroke, tuningOf } from "./signature-pad.state.js";
|
|
2
3
|
import { SignaturePadDrawDetails, SignaturePadEvents } from "./signature-pad.events.js";
|
|
3
|
-
import { Machine } from "@spinjs/
|
|
4
|
-
import { defaultTwin } from "@spinjs/runtime";
|
|
4
|
+
import { Machine } from "@spinjs/components/fsm";
|
|
5
|
+
import { defaultTwin } from "@spinjs/components/runtime";
|
|
5
6
|
export declare function signaturePad(args?: SignaturePadArgs, authored?: (name: string) => boolean): Machine<SignaturePadContext, SignaturePadEvents, SignaturePadState>;
|
|
6
|
-
export { DrawingTuning, SignaturePadArgs, SignaturePadContext, type SignaturePadDrawDetails, type SignaturePadEvents, SignaturePadState, SignaturePoint, defaultTuning, defaultTwin, initial, isEmpty, isInteractive, pathsOf, strokePath, svgPathFromStroke, tuningOf };
|
|
7
|
-
//# sourceMappingURL=signature-pad.machine.d.ts.map
|
|
7
|
+
export { DrawingTuning, SignaturePadArgs, SignaturePadContext, type SignaturePadDrawDetails, type SignaturePadEvents, SignaturePadState, SignaturePoint, defaultTuning, defaultTwin, initial, isEmpty, isInteractive, pathsOf, strokePath, svgPathFromStroke, tuningOf };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultTuning, initial, isEmpty, isInteractive, pathsOf, strokePath, svgPathFromStroke, tuningOf } from "./signature-pad.state.js";
|
|
2
2
|
import { clear, pointerDown, pointerMove, pointerUp, setPaths, setTuning } from "./signature-pad.transitions.js";
|
|
3
|
-
import { createMachine } from "@spinjs/
|
|
4
|
-
import { defaultTwin } from "@spinjs/runtime";
|
|
3
|
+
import { createMachine } from "@spinjs/components/fsm";
|
|
4
|
+
import { defaultTwin } from "@spinjs/components/runtime";
|
|
5
5
|
// src/signature-pad/signature-pad.machine.ts
|
|
6
6
|
/** Signature-pad machine: idle/drawing over two states. */
|
|
7
7
|
function signaturePad(args = {}, authored = () => false) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SignaturePadArgs, SignaturePadContext, SignaturePadState } from "./signature-pad.state.js";
|
|
2
2
|
import { SignaturePadDrawDetails, SignaturePadEvents } from "./signature-pad.events.js";
|
|
3
|
-
import { ApiOf, ViewFor } from "@spinjs/runtime";
|
|
4
|
-
import { DragDelta, DragPress } from "@spinjs/
|
|
3
|
+
import { ApiOf, ViewFor } from "@spinjs/components/runtime";
|
|
4
|
+
import { DragDelta, DragPress } from "@spinjs/components/actions";
|
|
5
5
|
export interface SegmentSlotProps {
|
|
6
6
|
readonly path: string;
|
|
7
7
|
}
|
|
8
8
|
type ScopeLike = ViewFor<SignaturePadContext, SignaturePadEvents, SignaturePadState>;
|
|
9
9
|
export declare const def: {
|
|
10
10
|
name: string;
|
|
11
|
-
machine: (args: SignaturePadArgs, authored: (name: string) => boolean) => import("@spinjs/runtime").Machine<SignaturePadContext, SignaturePadEvents, SignaturePadState>;
|
|
11
|
+
machine: (args: SignaturePadArgs, authored: (name: string) => boolean) => import("@spinjs/components/runtime").Machine<SignaturePadContext, SignaturePadEvents, SignaturePadState>;
|
|
12
12
|
start: "idle";
|
|
13
13
|
reconcile: ({ context, send }: {
|
|
14
14
|
readonly context: SignaturePadContext;
|
|
@@ -21,13 +21,13 @@ export declare const def: {
|
|
|
21
21
|
}) => boolean;
|
|
22
22
|
parts: {
|
|
23
23
|
root: {
|
|
24
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, SignaturePadContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<SignaturePadEvents>, SignaturePadState>) => {
|
|
24
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, SignaturePadContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<SignaturePadEvents>, SignaturePadState>) => {
|
|
25
25
|
dir: "ltr" | "rtl";
|
|
26
26
|
"data-disabled": string | undefined;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
29
29
|
label: {
|
|
30
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, SignaturePadContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<SignaturePadEvents>, SignaturePadState>) => {
|
|
30
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, SignaturePadContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<SignaturePadEvents>, SignaturePadState>) => {
|
|
31
31
|
dir: "ltr" | "rtl";
|
|
32
32
|
"data-disabled": string | undefined;
|
|
33
33
|
for: string;
|
|
@@ -35,7 +35,7 @@ export declare const def: {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
control: {
|
|
38
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, SignaturePadContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<SignaturePadEvents>, SignaturePadState>) => {
|
|
38
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, SignaturePadContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<SignaturePadEvents>, SignaturePadState>) => {
|
|
39
39
|
tabindex: string | undefined;
|
|
40
40
|
"data-disabled": string | undefined;
|
|
41
41
|
style: {
|
|
@@ -85,12 +85,12 @@ export declare const def: {
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
segmentPath: {
|
|
88
|
-
attrs: (_scope: import("@spinjs/runtime").PartView<unknown, SignaturePadContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<SignaturePadEvents>, SignaturePadState>, _arg: unknown) => {
|
|
88
|
+
attrs: (_scope: import("@spinjs/components/runtime").PartView<unknown, SignaturePadContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<SignaturePadEvents>, SignaturePadState>, _arg: unknown) => {
|
|
89
89
|
d: string;
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
guide: {
|
|
93
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, SignaturePadContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<SignaturePadEvents>, SignaturePadState>) => {
|
|
93
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, SignaturePadContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<SignaturePadEvents>, SignaturePadState>) => {
|
|
94
94
|
dir: "ltr" | "rtl";
|
|
95
95
|
"data-disabled": string | undefined;
|
|
96
96
|
};
|
|
@@ -179,6 +179,5 @@ export declare const def: {
|
|
|
179
179
|
};
|
|
180
180
|
};
|
|
181
181
|
export type SignaturePadApi = ApiOf<typeof def>;
|
|
182
|
-
export declare const signaturePad: import("@spinjs/runtime").DefinedComponent<SignaturePadApi, SignaturePadArgs>;
|
|
183
|
-
export type { SignaturePadDrawDetails };
|
|
184
|
-
//# sourceMappingURL=signature-pad.presentation.d.ts.map
|
|
182
|
+
export declare const signaturePad: import("@spinjs/components/runtime").DefinedComponent<SignaturePadApi, SignaturePadArgs>;
|
|
183
|
+
export type { SignaturePadDrawDetails };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isEmpty, isInteractive as isInteractive$1, tuningOf } from "./signature-pad.state.js";
|
|
2
1
|
import { signaturePad as signaturePad$1 } from "./signature-pad.machine.js";
|
|
3
|
-
import {
|
|
2
|
+
import { isEmpty, isInteractive as isInteractive$1, tuningOf } from "./signature-pad.state.js";
|
|
3
|
+
import { ariaDisabled, ariaRoleDescription, dataAttr, defineComponent, focuser, isRecord } from "@spinjs/components/runtime";
|
|
4
4
|
// src/signature-pad/signature-pad.presentation.ts
|
|
5
5
|
const controlPoint = (scope, clientX, clientY) => {
|
|
6
6
|
const rect = scope.measure("control");
|
|
@@ -36,5 +36,4 @@ export declare function svgPathFromStroke(points: readonly (readonly number[])[]
|
|
|
36
36
|
export declare function strokePath(points: readonly SignaturePoint[], tuning: DrawingTuning): string;
|
|
37
37
|
export declare function isInteractive(ctx: SignaturePadContext): boolean;
|
|
38
38
|
export declare function isEmpty(ctx: SignaturePadContext): boolean;
|
|
39
|
-
export declare function initial(args: SignaturePadArgs, authored: (name: string) => boolean): SignaturePadContext;
|
|
40
|
-
//# sourceMappingURL=signature-pad.state.d.ts.map
|
|
39
|
+
export declare function initial(args: SignaturePadArgs, authored: (name: string) => boolean): SignaturePadContext;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SignaturePadContext } from "./signature-pad.state.js";
|
|
2
1
|
import { SignaturePadEvents } from "./signature-pad.events.js";
|
|
3
|
-
import {
|
|
2
|
+
import { SignaturePadContext } from "./signature-pad.state.js";
|
|
3
|
+
import { AssignFor } from "@spinjs/components/fsm";
|
|
4
4
|
type SignaturePadAssign<K extends keyof SignaturePadEvents = keyof SignaturePadEvents> = AssignFor<SignaturePadContext, SignaturePadEvents, K>;
|
|
5
5
|
export declare const clear: SignaturePadAssign<"CLEAR">;
|
|
6
6
|
export declare const setPaths: SignaturePadAssign<"SET_PATHS">;
|
|
@@ -8,5 +8,4 @@ export declare const setTuning: SignaturePadAssign<"SET_TUNING">;
|
|
|
8
8
|
export declare const pointerDown: SignaturePadAssign<"POINTER_DOWN">;
|
|
9
9
|
export declare const pointerMove: SignaturePadAssign<"POINTER_MOVE">;
|
|
10
10
|
export declare const pointerUp: SignaturePadAssign<"POINTER_UP">;
|
|
11
|
-
export {};
|
|
12
|
-
//# sourceMappingURL=signature-pad.transitions.d.ts.map
|
|
11
|
+
export {};
|
|
@@ -6,7 +6,7 @@ const machine = slider({ value: [50] });
|
|
|
6
6
|
|
|
7
7
|
<div class="mx-auto w-full max-w-md" {...machine.getRootProps()}>
|
|
8
8
|
<div
|
|
9
|
-
class={["mb-4
|
|
9
|
+
class={["mb-4 type-code text-muted", { "text-primary": machine.state === "focus" }]}
|
|
10
10
|
{...machine.getValueTextProps()}>{machine.valueText}</div>
|
|
11
11
|
<div
|
|
12
12
|
class="relative flex h-4 w-full touch-none items-center select-none"
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/slider/examples/basic.html
|
|
2
|
+
var basic_default = "<script lang=\"ts\">\nimport { slider } from \"../slider.presentation.ts\";\n\nconst machine = slider({ value: [50] });\n<\/script>\n\n<div class=\"mx-auto w-full max-w-md\" {...machine.getRootProps()}>\n <div\n class={[\"mb-4 type-code text-muted\", { \"text-primary\": machine.state === \"focus\" }]}\n {...machine.getValueTextProps()}>{machine.valueText}</div>\n <div\n class=\"relative flex h-4 w-full touch-none items-center select-none\"\n {...machine.getControlProps()}\n >\n <div\n class=\"relative h-2 w-full overflow-hidden rounded-full bg-surface-sunken\"\n {...machine.getTrackProps()}\n >\n <div\n class=\"absolute inset-y-0 rounded-full bg-primary\"\n {...machine.getRangeProps()}\n ></div>\n </div>\n <template for={machine.getThumbIndexes()} as={row} key={row}>\n <span\n class={[\"bare absolute top-1/2 -mt-2 -ml-2 h-4 w-4 rounded-full border-2 border-solid border-primary bg-surface\", { \"ring-2 ring-border-strong\": machine.state === \"focus\" && machine.focusedIndex === row, \"scale-110\": machine.state === \"dragging\" && machine.focusedIndex === row, \"opacity-50\": machine.disabled }]}\n {...machine.getThumbProps(row)}\n ></span>\n <input {...machine.getHiddenInputProps(row)} />\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { basic_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=basic.html.js.map
|
|
@@ -9,14 +9,14 @@ const air = slider({ value: [80], orientation: "vertical" });
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<div
|
|
12
|
-
class="mx-auto w-full max-w-md rounded-lg border
|
|
12
|
+
class="mx-auto w-full max-w-md rounded-lg border bg-surface-raised p-4">
|
|
13
13
|
<div class="mb-3 flex items-center justify-between">
|
|
14
|
-
<span class="
|
|
15
|
-
<span class="
|
|
14
|
+
<span class="type-label">5-Band Equalizer</span>
|
|
15
|
+
<span class="type-caption text-muted">Studio Preset</span>
|
|
16
16
|
</div>
|
|
17
17
|
<div class="grid grid-cols-5 gap-4">
|
|
18
18
|
<div class="flex flex-col items-center gap-2" {...sub.getRootProps()}>
|
|
19
|
-
<span class="
|
|
19
|
+
<span class="type-code text-muted">{sub.getThumbValue(0)}</span>
|
|
20
20
|
<div
|
|
21
21
|
class="relative flex h-36 w-4 touch-none flex-col items-center select-none"
|
|
22
22
|
{...sub.getControlProps()}>
|
|
@@ -33,10 +33,10 @@ const air = slider({ value: [80], orientation: "vertical" });
|
|
|
33
33
|
<input {...sub.getHiddenInputProps(row)} />
|
|
34
34
|
</template>
|
|
35
35
|
</div>
|
|
36
|
-
<span class="text-
|
|
36
|
+
<span class="text-muted" {...sub.getLabelProps()}>60Hz</span>
|
|
37
37
|
</div>
|
|
38
38
|
<div class="flex flex-col items-center gap-2" {...low.getRootProps()}>
|
|
39
|
-
<span class="
|
|
39
|
+
<span class="type-code text-muted">{low.getThumbValue(0)}</span>
|
|
40
40
|
<div
|
|
41
41
|
class="relative flex h-36 w-4 touch-none flex-col items-center select-none"
|
|
42
42
|
{...low.getControlProps()}>
|
|
@@ -53,10 +53,10 @@ const air = slider({ value: [80], orientation: "vertical" });
|
|
|
53
53
|
<input {...low.getHiddenInputProps(row)} />
|
|
54
54
|
</template>
|
|
55
55
|
</div>
|
|
56
|
-
<span class="text-
|
|
56
|
+
<span class="text-muted" {...low.getLabelProps()}>250Hz</span>
|
|
57
57
|
</div>
|
|
58
58
|
<div class="flex flex-col items-center gap-2" {...mid.getRootProps()}>
|
|
59
|
-
<span class="
|
|
59
|
+
<span class="type-code text-muted">{mid.getThumbValue(0)}</span>
|
|
60
60
|
<div
|
|
61
61
|
class="relative flex h-36 w-4 touch-none flex-col items-center select-none"
|
|
62
62
|
{...mid.getControlProps()}>
|
|
@@ -73,10 +73,10 @@ const air = slider({ value: [80], orientation: "vertical" });
|
|
|
73
73
|
<input {...mid.getHiddenInputProps(row)} />
|
|
74
74
|
</template>
|
|
75
75
|
</div>
|
|
76
|
-
<span class="text-
|
|
76
|
+
<span class="text-muted" {...mid.getLabelProps()}>1kHz</span>
|
|
77
77
|
</div>
|
|
78
78
|
<div class="flex flex-col items-center gap-2" {...high.getRootProps()}>
|
|
79
|
-
<span class="
|
|
79
|
+
<span class="type-code text-muted">{high.getThumbValue(0)}</span>
|
|
80
80
|
<div
|
|
81
81
|
class="relative flex h-36 w-4 touch-none flex-col items-center select-none"
|
|
82
82
|
{...high.getControlProps()}>
|
|
@@ -93,10 +93,10 @@ const air = slider({ value: [80], orientation: "vertical" });
|
|
|
93
93
|
<input {...high.getHiddenInputProps(row)} />
|
|
94
94
|
</template>
|
|
95
95
|
</div>
|
|
96
|
-
<span class="text-
|
|
96
|
+
<span class="text-muted" {...high.getLabelProps()}>4kHz</span>
|
|
97
97
|
</div>
|
|
98
98
|
<div class="flex flex-col items-center gap-2" {...air.getRootProps()}>
|
|
99
|
-
<span class="
|
|
99
|
+
<span class="type-code text-muted">{air.getThumbValue(0)}</span>
|
|
100
100
|
<div
|
|
101
101
|
class="relative flex h-36 w-4 touch-none flex-col items-center select-none"
|
|
102
102
|
{...air.getControlProps()}>
|
|
@@ -113,7 +113,7 @@ const air = slider({ value: [80], orientation: "vertical" });
|
|
|
113
113
|
<input {...air.getHiddenInputProps(row)} />
|
|
114
114
|
</template>
|
|
115
115
|
</div>
|
|
116
|
-
<span class="text-
|
|
116
|
+
<span class="text-muted" {...air.getLabelProps()}>16kHz</span>
|
|
117
117
|
</div>
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/slider/examples/equalizer.html
|
|
2
|
+
var equalizer_default = "<script lang=\"ts\">\nimport { slider } from \"../slider.presentation.ts\";\n\nconst sub = slider({ value: [70], orientation: \"vertical\" });\nconst low = slider({ value: [55], orientation: \"vertical\" });\nconst mid = slider({ value: [45], orientation: \"vertical\" });\nconst high = slider({ value: [65], orientation: \"vertical\" });\nconst air = slider({ value: [80], orientation: \"vertical\" });\n<\/script>\n\n<div\n class=\"mx-auto w-full max-w-md rounded-lg border bg-surface-raised p-4\">\n <div class=\"mb-3 flex items-center justify-between\">\n <span class=\"type-label\">5-Band Equalizer</span>\n <span class=\"type-caption text-muted\">Studio Preset</span>\n </div>\n <div class=\"grid grid-cols-5 gap-4\">\n <div class=\"flex flex-col items-center gap-2\" {...sub.getRootProps()}>\n <span class=\"type-code text-muted\">{sub.getThumbValue(0)}</span>\n <div\n class=\"relative flex h-36 w-4 touch-none flex-col items-center select-none\"\n {...sub.getControlProps()}>\n <div\n class=\"relative w-2 flex-1 overflow-hidden rounded-full bg-surface-sunken\"\n {...sub.getTrackProps()}>\n <div class=\"absolute inset-x-0 rounded-full bg-primary\"\n {...sub.getRangeProps()}></div>\n </div>\n <template for={sub.getThumbIndexes()} as={row} key={row}>\n <span\n class=\"absolute left-1/2 -mb-2 -ml-2 h-4 w-4 rounded-full border-2 border-solid border-primary bg-surface\"\n {...sub.getThumbProps(row)}></span>\n <input {...sub.getHiddenInputProps(row)} />\n </template>\n </div>\n <span class=\"text-muted\" {...sub.getLabelProps()}>60Hz</span>\n </div>\n <div class=\"flex flex-col items-center gap-2\" {...low.getRootProps()}>\n <span class=\"type-code text-muted\">{low.getThumbValue(0)}</span>\n <div\n class=\"relative flex h-36 w-4 touch-none flex-col items-center select-none\"\n {...low.getControlProps()}>\n <div\n class=\"relative w-2 flex-1 overflow-hidden rounded-full bg-surface-sunken\"\n {...low.getTrackProps()}>\n <div class=\"absolute inset-x-0 rounded-full bg-primary\"\n {...low.getRangeProps()}></div>\n </div>\n <template for={low.getThumbIndexes()} as={row} key={row}>\n <span\n class=\"absolute left-1/2 -mb-2 -ml-2 h-4 w-4 rounded-full border-2 border-solid border-primary bg-surface\"\n {...low.getThumbProps(row)}></span>\n <input {...low.getHiddenInputProps(row)} />\n </template>\n </div>\n <span class=\"text-muted\" {...low.getLabelProps()}>250Hz</span>\n </div>\n <div class=\"flex flex-col items-center gap-2\" {...mid.getRootProps()}>\n <span class=\"type-code text-muted\">{mid.getThumbValue(0)}</span>\n <div\n class=\"relative flex h-36 w-4 touch-none flex-col items-center select-none\"\n {...mid.getControlProps()}>\n <div\n class=\"relative w-2 flex-1 overflow-hidden rounded-full bg-surface-sunken\"\n {...mid.getTrackProps()}>\n <div class=\"absolute inset-x-0 rounded-full bg-primary\"\n {...mid.getRangeProps()}></div>\n </div>\n <template for={mid.getThumbIndexes()} as={row} key={row}>\n <span\n class=\"absolute left-1/2 -mb-2 -ml-2 h-4 w-4 rounded-full border-2 border-solid border-primary bg-surface\"\n {...mid.getThumbProps(row)}></span>\n <input {...mid.getHiddenInputProps(row)} />\n </template>\n </div>\n <span class=\"text-muted\" {...mid.getLabelProps()}>1kHz</span>\n </div>\n <div class=\"flex flex-col items-center gap-2\" {...high.getRootProps()}>\n <span class=\"type-code text-muted\">{high.getThumbValue(0)}</span>\n <div\n class=\"relative flex h-36 w-4 touch-none flex-col items-center select-none\"\n {...high.getControlProps()}>\n <div\n class=\"relative w-2 flex-1 overflow-hidden rounded-full bg-surface-sunken\"\n {...high.getTrackProps()}>\n <div class=\"absolute inset-x-0 rounded-full bg-primary\"\n {...high.getRangeProps()}></div>\n </div>\n <template for={high.getThumbIndexes()} as={row} key={row}>\n <span\n class=\"absolute left-1/2 -mb-2 -ml-2 h-4 w-4 rounded-full border-2 border-solid border-primary bg-surface\"\n {...high.getThumbProps(row)}></span>\n <input {...high.getHiddenInputProps(row)} />\n </template>\n </div>\n <span class=\"text-muted\" {...high.getLabelProps()}>4kHz</span>\n </div>\n <div class=\"flex flex-col items-center gap-2\" {...air.getRootProps()}>\n <span class=\"type-code text-muted\">{air.getThumbValue(0)}</span>\n <div\n class=\"relative flex h-36 w-4 touch-none flex-col items-center select-none\"\n {...air.getControlProps()}>\n <div\n class=\"relative w-2 flex-1 overflow-hidden rounded-full bg-surface-sunken\"\n {...air.getTrackProps()}>\n <div class=\"absolute inset-x-0 rounded-full bg-primary\"\n {...air.getRangeProps()}></div>\n </div>\n <template for={air.getThumbIndexes()} as={row} key={row}>\n <span\n class=\"absolute left-1/2 -mb-2 -ml-2 h-4 w-4 rounded-full border-2 border-solid border-primary bg-surface\"\n {...air.getThumbProps(row)}></span>\n <input {...air.getHiddenInputProps(row)} />\n </template>\n </div>\n <span class=\"text-muted\" {...air.getLabelProps()}>16kHz</span>\n </div>\n </div>\n</div>\n";
|
|
3
|
+
export { equalizer_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=equalizer.html.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/slider/examples/fractional.html
|
|
2
|
+
var fractional_default = "<script lang=\"ts\">\nimport { slider } from \"../slider.presentation.ts\";\n\nconst machine = slider({ value: [7.5], min: 5, max: 10, step: 0.01 });\n<\/script>\n\n<include file=\"./basic.html\" />\n";
|
|
3
|
+
export { fractional_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=fractional.html.js.map
|
|
@@ -5,7 +5,7 @@ const machine = slider({ value: [50], markers: [0, 25, 50, 75, 100] });
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<div class="mx-auto w-full max-w-md" {...machine.getRootProps()}>
|
|
8
|
-
<div class="mb-4
|
|
8
|
+
<div class="mb-4 type-code text-muted"
|
|
9
9
|
{...machine.getValueTextProps()}>{machine.valueText}</div>
|
|
10
10
|
<div
|
|
11
11
|
class="relative flex h-4 w-full touch-none items-center select-none"
|
|
@@ -31,7 +31,7 @@ const machine = slider({ value: [50], markers: [0, 25, 50, 75, 100] });
|
|
|
31
31
|
<div class="relative mt-2 h-8" {...machine.getMarkerGroupProps()}>
|
|
32
32
|
<template for={machine.getMarkers()} as={row} key={row}>
|
|
33
33
|
<span
|
|
34
|
-
class="absolute top-0 flex w-0 justify-center pt-4
|
|
34
|
+
class="absolute top-0 flex w-0 justify-center pt-4 type-caption text-muted"
|
|
35
35
|
{...machine.getMarkerProps(row)}
|
|
36
36
|
>
|
|
37
37
|
<span class={["absolute left-1/2 top-0 ml-0 h-1 w-1 rounded-full bg-border-strong", { "bg-primary": row < (machine.value[0] ?? 0) }]} aria-hidden="true"></span>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/slider/examples/marks.html
|
|
2
|
+
var marks_default = "<script lang=\"ts\">\nimport { slider } from \"../slider.presentation.ts\";\n\nconst machine = slider({ value: [50], markers: [0, 25, 50, 75, 100] });\n<\/script>\n\n<div class=\"mx-auto w-full max-w-md\" {...machine.getRootProps()}>\n <div class=\"mb-4 type-code text-muted\"\n {...machine.getValueTextProps()}>{machine.valueText}</div>\n <div\n class=\"relative flex h-4 w-full touch-none items-center select-none\"\n {...machine.getControlProps()}\n >\n <div\n class=\"relative h-2 w-full overflow-hidden rounded-full bg-surface-sunken\"\n {...machine.getTrackProps()}\n >\n <div\n class=\"absolute inset-y-0 rounded-full bg-primary\"\n {...machine.getRangeProps()}\n ></div>\n </div>\n <template for={machine.getThumbIndexes()} as={row} key={row}>\n <span\n class={[\"bare absolute top-1/2 -mt-2 -ml-2 h-4 w-4 rounded-full border-2 border-solid border-primary bg-surface\", { \"ring-2 ring-border-strong\": machine.state === \"focus\" && machine.focusedIndex === row, \"scale-110\": machine.state === \"dragging\" && machine.focusedIndex === row, \"opacity-50\": machine.disabled }]}\n {...machine.getThumbProps(row)}\n ></span>\n <input {...machine.getHiddenInputProps(row)} />\n </template>\n </div>\n <div class=\"relative mt-2 h-8\" {...machine.getMarkerGroupProps()}>\n <template for={machine.getMarkers()} as={row} key={row}>\n <span\n class=\"absolute top-0 flex w-0 justify-center pt-4 type-caption text-muted\"\n {...machine.getMarkerProps(row)}\n >\n <span class={[\"absolute left-1/2 top-0 ml-0 h-1 w-1 rounded-full bg-border-strong\", { \"bg-primary\": row < (machine.value[0] ?? 0) }]} aria-hidden=\"true\"></span>\n {row}\n </span>\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { marks_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=marks.html.js.map
|
|
@@ -5,7 +5,7 @@ const machine = slider({ value: [20, 80] });
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<div class="mx-auto w-full max-w-md" {...machine.getRootProps()}>
|
|
8
|
-
<div class="mb-4
|
|
8
|
+
<div class="mb-4 type-code text-muted"
|
|
9
9
|
{...machine.getValueTextProps()}>{machine.getThumbValue(0)} - {machine.getThumbValue(1)}</div>
|
|
10
10
|
<div
|
|
11
11
|
class="relative flex h-4 w-full touch-none items-center select-none"
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/slider/examples/range.html
|
|
2
|
+
var range_default = "<script lang=\"ts\">\nimport { slider } from \"../slider.presentation.ts\";\n\nconst machine = slider({ value: [20, 80] });\n<\/script>\n\n<div class=\"mx-auto w-full max-w-md\" {...machine.getRootProps()}>\n <div class=\"mb-4 type-code text-muted\"\n {...machine.getValueTextProps()}>{machine.getThumbValue(0)} - {machine.getThumbValue(1)}</div>\n <div\n class=\"relative flex h-4 w-full touch-none items-center select-none\"\n {...machine.getControlProps()}\n >\n <div\n class=\"relative h-2 w-full overflow-hidden rounded-full bg-surface-sunken\"\n {...machine.getTrackProps()}\n >\n <div\n class=\"absolute inset-y-0 rounded-full bg-primary\"\n {...machine.getRangeProps()}\n ></div>\n </div>\n <template for={machine.getThumbIndexes()} as={row} key={row}>\n <span\n class={[\"bare absolute top-1/2 -mt-2 -ml-2 h-4 w-4 rounded-full border-2 border-solid border-primary bg-surface\", { \"ring-2 ring-border-strong\": machine.state === \"focus\" && machine.focusedIndex === row, \"scale-110\": machine.state === \"dragging\" && machine.focusedIndex === row, \"opacity-50\": machine.disabled }]}\n {...machine.getThumbProps(row)}\n ></span>\n <input {...machine.getHiddenInputProps(row)} />\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { range_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=range.html.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/slider/examples/stepped.html
|
|
2
|
+
var stepped_default = "<script lang=\"ts\">\nimport { slider } from \"../slider.presentation.ts\";\n\nconst machine = slider({ value: [50], step: 5 });\n<\/script>\n\n<include file=\"./basic.html\" />\n";
|
|
3
|
+
export { stepped_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=stepped.html.js.map
|
|
@@ -30,7 +30,7 @@ const machine = slider({
|
|
|
30
30
|
</script>
|
|
31
31
|
|
|
32
32
|
<div class="mx-auto w-full max-w-md" {...machine.getRootProps()}>
|
|
33
|
-
<div class="mb-4
|
|
33
|
+
<div class="mb-4 type-code text-muted"
|
|
34
34
|
{...machine.getValueTextProps()}>{machine.valueText}</div>
|
|
35
35
|
<div
|
|
36
36
|
class="relative flex h-4 w-full touch-none items-center select-none"
|
|
@@ -56,7 +56,7 @@ const machine = slider({
|
|
|
56
56
|
<div class="relative mt-2 h-8" {...machine.getMarkerGroupProps()}>
|
|
57
57
|
<template for={machine.getMarkers()} as={row} key={row}>
|
|
58
58
|
<span
|
|
59
|
-
class="absolute top-0 flex w-0 justify-center pt-4
|
|
59
|
+
class="absolute top-0 flex w-0 justify-center pt-4 type-caption text-muted"
|
|
60
60
|
{...machine.getMarkerProps(row)}
|
|
61
61
|
>
|
|
62
62
|
<span
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/slider/examples/ticks.html
|
|
2
|
+
var ticks_default = "<script lang=\"ts\">\nimport { slider } from \"../slider.presentation.ts\";\n\nconst machine = slider({\n value: [50],\n markers: [\n 0,\n 5,\n 10,\n 15,\n 20,\n 25,\n 30,\n 35,\n 40,\n 45,\n 50,\n 55,\n 60,\n 65,\n 70,\n 75,\n 80,\n 85,\n 90,\n 95,\n 100,\n ],\n});\n<\/script>\n\n<div class=\"mx-auto w-full max-w-md\" {...machine.getRootProps()}>\n <div class=\"mb-4 type-code text-muted\"\n {...machine.getValueTextProps()}>{machine.valueText}</div>\n <div\n class=\"relative flex h-4 w-full touch-none items-center select-none\"\n {...machine.getControlProps()}\n >\n <div\n class=\"relative h-2 w-full overflow-hidden rounded-full bg-surface-sunken\"\n {...machine.getTrackProps()}\n >\n <div\n class=\"absolute inset-y-0 rounded-full bg-primary\"\n {...machine.getRangeProps()}\n ></div>\n </div>\n <template for={machine.getThumbIndexes()} as={row} key={row}>\n <span\n class={[\"bare absolute top-1/2 -mt-2 -ml-2 h-4 w-4 rounded-full border-2 border-solid border-primary bg-surface\", { \"ring-2 ring-border-strong\": machine.state === \"focus\" && machine.focusedIndex === row, \"scale-110\": machine.state === \"dragging\" && machine.focusedIndex === row, \"opacity-50\": machine.disabled }]}\n {...machine.getThumbProps(row)}\n ></span>\n <input {...machine.getHiddenInputProps(row)} />\n </template>\n </div>\n <div class=\"relative mt-2 h-8\" {...machine.getMarkerGroupProps()}>\n <template for={machine.getMarkers()} as={row} key={row}>\n <span\n class=\"absolute top-0 flex w-0 justify-center pt-4 type-caption text-muted\"\n {...machine.getMarkerProps(row)}\n >\n <span\n class={[\"absolute left-1/2 top-0 ml-0 h-2 w-[1px] bg-border-strong\", { \"bg-primary\": row < (machine.value[0] ?? 0) }]}\n aria-hidden=\"true\" show={row % 10 === 0}></span>\n <span\n class={[\"absolute left-1/2 top-0 ml-0 h-1 w-[1px] bg-border-strong\", { \"bg-primary\": row < (machine.value[0] ?? 0) }]}\n aria-hidden=\"true\" show={row % 10 !== 0}></span>\n <span show={row % 10 === 0}>{row}</span>\n </span>\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { ticks_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ticks.html.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/slider/examples/vertical.html
|
|
2
|
+
var vertical_default = "<script lang=\"ts\">\nimport { slider } from \"../slider.presentation.ts\";\n\nconst machine = slider({ value: [50], orientation: \"vertical\" });\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-md justify-center\"\n {...machine.getRootProps()}>\n <div\n class=\"relative flex h-[16rem] w-4 touch-none flex-col items-center select-none\"\n {...machine.getControlProps()}\n >\n <div\n class=\"relative w-2 flex-1 overflow-hidden rounded-full bg-surface-sunken\"\n {...machine.getTrackProps()}\n >\n <div\n class=\"absolute inset-x-0 rounded-full bg-primary\"\n {...machine.getRangeProps()}\n ></div>\n </div>\n <template for={machine.getThumbIndexes()} as={row} key={row}>\n <span\n class={[\"absolute left-1/2 -mb-2 -ml-2 h-4 w-4 rounded-full border-2 border-solid border-primary bg-surface\", { \"ring-2 ring-border-strong\": machine.state === \"focus\" && machine.focusedIndex === row, \"scale-110\": machine.state === \"dragging\" && machine.focusedIndex === row, \"opacity-50\": machine.disabled }]}\n {...machine.getThumbProps(row)}\n ></span>\n <input {...machine.getHiddenInputProps(row)} />\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { vertical_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=vertical.html.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventUnion } from "@spinjs/
|
|
1
|
+
import { EventUnion } from "@spinjs/components/fsm";
|
|
2
2
|
export interface SliderEvents {
|
|
3
3
|
"SET_VALUE": {
|
|
4
4
|
value: readonly number[];
|
|
@@ -46,5 +46,4 @@ export type SliderFocusChange = {
|
|
|
46
46
|
};
|
|
47
47
|
export type SliderValueChangeEnd = {
|
|
48
48
|
readonly value: number[];
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=slider.events.d.ts.map
|
|
49
|
+
};
|