@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/** Slider machine: idle/focus/dragging over three states. */
|
|
1
2
|
import { SliderArgs, SliderContext, SliderState } from "./slider.state.js";
|
|
2
3
|
import { SliderEvents } from "./slider.events.js";
|
|
3
|
-
import { Machine } from "@spinjs/
|
|
4
|
-
export declare function slider(args?: SliderArgs, authored?: (name: string) => boolean): Machine<SliderContext, SliderEvents, SliderState>;
|
|
5
|
-
//# sourceMappingURL=slider.machine.d.ts.map
|
|
4
|
+
import { Machine } from "@spinjs/components/fsm";
|
|
5
|
+
export declare function slider(args?: SliderArgs, authored?: (name: string) => boolean): Machine<SliderContext, SliderEvents, SliderState>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { initial } from "./slider.state.js";
|
|
2
2
|
import { clearFocusedIndex, decrementThumb, hasIndex, incrementThumb, setAllValues, setClosestThumb, setEndValue, setFocusedIndex, setHomeValue, setIndexedValue, setPointerValue } from "./slider.transitions.js";
|
|
3
|
-
import { createMachine } from "@spinjs/
|
|
4
|
-
import { isInteractive } from "@spinjs/runtime";
|
|
3
|
+
import { createMachine } from "@spinjs/components/fsm";
|
|
4
|
+
import { isInteractive } from "@spinjs/components/runtime";
|
|
5
5
|
// src/slider/slider.machine.ts
|
|
6
6
|
/** Slider machine: idle/focus/dragging over three states. */
|
|
7
7
|
function slider(args = {}, authored = () => false) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SliderArgs, SliderContext, SliderState, ThumbCollisionBehavior } from "./slider.state.js";
|
|
2
2
|
import { SliderEvents } from "./slider.events.js";
|
|
3
|
-
import { ApiOf, SlotViewFor, ViewFor } from "@spinjs/runtime";
|
|
4
|
-
import { DragDelta, DragPress } from "@spinjs/
|
|
3
|
+
import { ApiOf, SlotViewFor, ViewFor } from "@spinjs/components/runtime";
|
|
4
|
+
import { DragDelta, DragPress } from "@spinjs/components/actions";
|
|
5
5
|
type ScopeLike = ViewFor<SliderContext, SliderEvents, SliderState>;
|
|
6
6
|
type SlotLike<R> = SlotViewFor<R, SliderContext, SliderEvents, SliderState>;
|
|
7
7
|
export declare const def: {
|
|
8
8
|
name: string;
|
|
9
|
-
machine: (args: SliderArgs, authored: (name: string) => boolean) => import("@spinjs/runtime").Machine<SliderContext, SliderEvents, SliderState>;
|
|
9
|
+
machine: (args: SliderArgs, authored: (name: string) => boolean) => import("@spinjs/components/runtime").Machine<SliderContext, SliderEvents, SliderState>;
|
|
10
10
|
start: "idle";
|
|
11
11
|
commitEvents: ("POINTER_UP" | "SET_VALUE" | "HOME" | "END" | "INCREMENT" | "ARROW_INC" | "DECREMENT" | "ARROW_DEC")[];
|
|
12
12
|
parts: {
|
|
@@ -229,7 +229,7 @@ export declare const def: {
|
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
231
|
settled: ({ event, after, focus }: {
|
|
232
|
-
readonly event: import("@spinjs/runtime").AnyEvent;
|
|
232
|
+
readonly event: import("@spinjs/components/runtime").AnyEvent;
|
|
233
233
|
readonly before: {
|
|
234
234
|
readonly context: SliderContext;
|
|
235
235
|
readonly state: SliderState;
|
|
@@ -243,10 +243,9 @@ export declare const def: {
|
|
|
243
243
|
readonly id: (part: string, slot?: unknown) => string;
|
|
244
244
|
readonly focus: (part: string, slot?: unknown) => void;
|
|
245
245
|
readonly measure: (part: string, slot?: unknown) => DOMRect | null;
|
|
246
|
-
readonly send: (event: import("@spinjs/runtime").AnyEvent) => void;
|
|
246
|
+
readonly send: (event: import("@spinjs/components/runtime").AnyEvent) => void;
|
|
247
247
|
}) => void;
|
|
248
248
|
};
|
|
249
249
|
export type SliderApi = ApiOf<typeof def>;
|
|
250
|
-
export declare const slider: import("@spinjs/runtime").DefinedComponent<SliderApi, SliderArgs>;
|
|
251
|
-
export type { SliderArgs, SliderState, ThumbCollisionBehavior };
|
|
252
|
-
//# sourceMappingURL=slider.presentation.d.ts.map
|
|
250
|
+
export declare const slider: import("@spinjs/components/runtime").DefinedComponent<SliderApi, SliderArgs>;
|
|
251
|
+
export type { SliderArgs, SliderState, ThumbCollisionBehavior };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { percentOf, thumbRange, valueOfPercent } from "./slider.state.js";
|
|
2
1
|
import { slider as slider$1 } from "./slider.machine.js";
|
|
3
|
-
import {
|
|
2
|
+
import { percentOf, thumbRange, valueOfPercent } from "./slider.state.js";
|
|
3
|
+
import { ariaDisabled, ariaOrientation, defineComponent, isComposing, isInteractive, sliderThumb } from "@spinjs/components/runtime";
|
|
4
4
|
// src/slider/slider.presentation.ts
|
|
5
5
|
/** A client point as a stepped track value, measured off the track node. */
|
|
6
6
|
const trackValue = (measure, orientation, dir, context, clientX, clientY) => {
|
|
@@ -68,5 +68,4 @@ export declare function thumbRange(ctx: SliderContext, index: number): {
|
|
|
68
68
|
};
|
|
69
69
|
export declare function percentOf(ctx: SliderContext, value: number): number;
|
|
70
70
|
export declare function valueOfPercent(ctx: SliderContext, percent: number): number;
|
|
71
|
-
export { constrain, handlePush, normalizeAll, rangeAt, resolveNone };
|
|
72
|
-
//# sourceMappingURL=slider.state.d.ts.map
|
|
71
|
+
export { constrain, handlePush, normalizeAll, rangeAt, resolveNone };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { clampValue, getPercentValue, getValuePercent, getValueRanges, round10, snapValueToStep } from "@spinjs/runtime";
|
|
1
|
+
import { clampValue, getPercentValue, getValuePercent, getValueRanges, round10, snapValueToStep } from "@spinjs/components/runtime";
|
|
2
2
|
// src/slider/slider.state.ts
|
|
3
3
|
/**
|
|
4
4
|
* The machine's context, built from its arguments: what the args did not
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SliderContext } from "./slider.state.js";
|
|
2
1
|
import { SliderEvents } from "./slider.events.js";
|
|
3
|
-
import {
|
|
2
|
+
import { SliderContext } from "./slider.state.js";
|
|
3
|
+
import { AssignFor, GuardFor } from "@spinjs/components/fsm";
|
|
4
4
|
type SliderAssign<K extends keyof SliderEvents = keyof SliderEvents> = AssignFor<SliderContext, SliderEvents, K>;
|
|
5
5
|
export declare const incrementThumb: SliderAssign<"INCREMENT" | "ARROW_INC">;
|
|
6
6
|
export declare const decrementThumb: SliderAssign<"DECREMENT" | "ARROW_DEC">;
|
|
@@ -13,5 +13,4 @@ export declare const setIndexedValue: SliderAssign<"SET_VALUE">;
|
|
|
13
13
|
export declare const setAllValues: SliderAssign<"SET_VALUE">;
|
|
14
14
|
export declare const setHomeValue: (ctx: SliderContext) => Partial<SliderContext>;
|
|
15
15
|
export declare const setEndValue: (ctx: SliderContext) => Partial<SliderContext>;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=slider.transitions.d.ts.map
|
|
16
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { constrain, handlePush, movableIndex, normalizeAll, rangeAt, resolveNone } from "./slider.state.js";
|
|
2
|
-
import { clampValue, closestIndex, getNextStepValue, getPreviousStepValue } from "@spinjs/runtime";
|
|
2
|
+
import { clampValue, closestIndex, getNextStepValue, getPreviousStepValue } from "@spinjs/components/runtime";
|
|
3
3
|
// src/slider/slider.transitions.ts
|
|
4
4
|
const incrementThumb = (ctx, event) => {
|
|
5
5
|
const index = event.type === "INCREMENT" && event.index !== void 0 ? event.index : ctx.focusedIndex;
|
package/dist/solid/solid.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CtlFor, ElementTarget, SpinComponentCtl, spinComponentCtl } from "../controller.js";
|
|
2
|
-
import { DefinedComponent } from "@spinjs/runtime";
|
|
2
|
+
import { DefinedComponent } from "@spinjs/components/runtime";
|
|
3
3
|
/**
|
|
4
4
|
* Solid adapter: `createSpinComponent(el)` is the app controller's
|
|
5
5
|
* instrument.
|
|
@@ -32,5 +32,4 @@ export type SpinComponentCtlAccessor<TCommands extends object = object, TState e
|
|
|
32
32
|
export declare function createSpinComponent<D extends DefinedComponent<any, any>>(def: D): (() => CtlFor<D>) & CtlFor<D>;
|
|
33
33
|
export declare function createSpinComponent<D extends DefinedComponent<any, any>>(target: ElementTarget, def: D): (() => CtlFor<D>) & CtlFor<D>;
|
|
34
34
|
export declare function createSpinComponent<TCommands extends object = object, TState extends object = Record<string, () => unknown>, TProps extends object = Record<string, unknown>>(el: ElementTarget, handle?: object): SpinComponentCtlAccessor<TCommands, TState, TProps>;
|
|
35
|
-
export { spinComponentCtl };
|
|
36
|
-
//# sourceMappingURL=solid.d.ts.map
|
|
35
|
+
export { spinComponentCtl };
|
package/dist/spin-element.d.ts
CHANGED
|
@@ -9,5 +9,4 @@ export interface SpinHookOptions<TProps extends object> {
|
|
|
9
9
|
readonly on?: Readonly<Record<string, (event: CustomEvent) => void>> | undefined;
|
|
10
10
|
}
|
|
11
11
|
/** Attach-time work shared by every adapter: write props, bind events. */
|
|
12
|
-
export declare function bindSpinElement<TProps extends object>(el: Element, { props, on }: SpinHookOptions<TProps>): () => void;
|
|
13
|
-
//# sourceMappingURL=spin-element.d.ts.map
|
|
12
|
+
export declare function bindSpinElement<TProps extends object>(el: Element, { props, on }: SpinHookOptions<TProps>): () => void;
|
package/dist/spin-element.js
CHANGED
|
@@ -11,9 +11,9 @@ const machine = splitter({
|
|
|
11
11
|
<div class="gap-2" {...machine.getRootProps()}>
|
|
12
12
|
<template for={machine.getItems()} as={row} key={row.id}>
|
|
13
13
|
<div
|
|
14
|
-
class={["min-h-0 min-w-0 rounded-md border
|
|
14
|
+
class={["min-h-0 min-w-0 rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate", { "grid shrink-0 place-items-center border-transparent bg-transparent hover:bg-surface-sunken focus:bg-surface-sunken": row.type === "handle", "w-2 cursor-col-resize": machine.orientation === "horizontal" && row.type === "handle", "h-2 cursor-row-resize": machine.orientation === "vertical" && row.type === "handle" }]}
|
|
15
15
|
{...machine.getItemProps(row)}
|
|
16
|
-
><span class={["block p-2
|
|
16
|
+
><span class={["block p-2 type-caption text-muted", { "hidden": row.type === "handle" }]} {...machine.getItemLabelProps(row)}>{row.id}</span><span
|
|
17
17
|
class={["hidden rounded-full bg-border-strong transition-all duration-fast ease-decelerate", { "block": row.type === "handle", "h-8 w-1": machine.orientation === "horizontal" && row.type === "handle", "h-1 w-8": machine.orientation === "vertical" && row.type === "handle" }]}
|
|
18
18
|
{...machine.getItemIndicatorProps(row)}
|
|
19
19
|
></span></div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/splitter/examples/basic.html
|
|
2
|
+
var basic_default = "<script lang=\"ts\">\nimport { splitter } from \"../splitter.presentation.ts\";\n\nconst machine = splitter({\n panels: '[{\"id\":\"nav\"},{\"id\":\"main\"},{\"id\":\"inspector\"}]',\n size: \"[30, 50, 20]\",\n});\n<\/script>\n\n<div class=\"h-60 w-full\">\n <div class=\"gap-2\" {...machine.getRootProps()}>\n <template for={machine.getItems()} as={row} key={row.id}>\n <div\n class={[\"min-h-0 min-w-0 rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate\", { \"grid shrink-0 place-items-center border-transparent bg-transparent hover:bg-surface-sunken focus:bg-surface-sunken\": row.type === \"handle\", \"w-2 cursor-col-resize\": machine.orientation === \"horizontal\" && row.type === \"handle\", \"h-2 cursor-row-resize\": machine.orientation === \"vertical\" && row.type === \"handle\" }]}\n {...machine.getItemProps(row)}\n ><span class={[\"block p-2 type-caption text-muted\", { \"hidden\": row.type === \"handle\" }]} {...machine.getItemLabelProps(row)}>{row.id}</span><span\n class={[\"hidden rounded-full bg-border-strong transition-all duration-fast ease-decelerate\", { \"block\": row.type === \"handle\", \"h-8 w-1\": machine.orientation === \"horizontal\" && row.type === \"handle\", \"h-1 w-8\": machine.orientation === \"vertical\" && row.type === \"handle\" }]}\n {...machine.getItemIndicatorProps(row)}\n ></span></div>\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { basic_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=basic.html.js.map
|
|
@@ -16,9 +16,9 @@ const inner = splitter({
|
|
|
16
16
|
<div class="gap-2" {...outer.getRootProps()}>
|
|
17
17
|
<template for={outer.getItems()} as={row} key={row.id}>
|
|
18
18
|
<div
|
|
19
|
-
class={["min-h-0 min-w-0 rounded-md border
|
|
19
|
+
class={["min-h-0 min-w-0 rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate", { "grid shrink-0 place-items-center border-transparent bg-transparent hover:bg-surface-sunken focus:bg-surface-sunken": row.type === "handle", "w-2 cursor-col-resize": outer.orientation === "horizontal" && row.type === "handle", "h-2 cursor-row-resize": outer.orientation === "vertical" && row.type === "handle" }]}
|
|
20
20
|
{...outer.getItemProps(row)}
|
|
21
|
-
><span class={["block p-2
|
|
21
|
+
><span class={["block p-2 type-caption text-muted", { "hidden": row.type === "handle" || row.id === "middle" }]} {...outer.getItemLabelProps(row)}>{row.id}</span><span
|
|
22
22
|
class={["hidden rounded-full bg-border-strong transition-all duration-fast ease-decelerate", { "block": row.type === "handle", "h-8 w-1": outer.orientation === "horizontal" && row.type === "handle", "h-1 w-8": outer.orientation === "vertical" && row.type === "handle" }]}
|
|
23
23
|
{...outer.getItemIndicatorProps(row)}
|
|
24
24
|
></span><div
|
|
@@ -28,9 +28,9 @@ const inner = splitter({
|
|
|
28
28
|
>
|
|
29
29
|
<template for={inner.getItems()} as={cell} key={cell.id}>
|
|
30
30
|
<div
|
|
31
|
-
class={["min-h-0 min-w-0 rounded-md border
|
|
31
|
+
class={["min-h-0 min-w-0 rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate", { "grid shrink-0 place-items-center border-transparent bg-transparent hover:bg-surface-sunken focus:bg-surface-sunken": cell.type === "handle", "w-2 cursor-col-resize": inner.orientation === "horizontal" && cell.type === "handle", "h-2 cursor-row-resize": inner.orientation === "vertical" && cell.type === "handle" }]}
|
|
32
32
|
{...inner.getItemProps(cell)}
|
|
33
|
-
><span class={["block p-2
|
|
33
|
+
><span class={["block p-2 type-caption text-muted", { "hidden": cell.type === "handle" }]} {...inner.getItemLabelProps(cell)}>{cell.id}</span><span
|
|
34
34
|
class={["hidden rounded-full bg-border-strong transition-all duration-fast ease-decelerate", { "block": cell.type === "handle", "h-8 w-1": inner.orientation === "horizontal" && cell.type === "handle", "h-1 w-8": inner.orientation === "vertical" && cell.type === "handle" }]}
|
|
35
35
|
{...inner.getItemIndicatorProps(cell)}
|
|
36
36
|
></span></div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/splitter/examples/nested.html
|
|
2
|
+
var nested_default = "<script lang=\"ts\">\nimport { splitter } from \"../splitter.presentation.ts\";\n\nconst outer = splitter({\n panels: '[{\"id\":\"nav\"},{\"id\":\"middle\"},{\"id\":\"inspector\"}]',\n size: \"[25, 50, 25]\",\n});\nconst inner = splitter({\n panels: '[{\"id\":\"top\"},{\"id\":\"bottom\"}]',\n size: \"[50, 50]\",\n orientation: \"vertical\",\n});\n<\/script>\n\n<div class=\"h-60 w-full\">\n <div class=\"gap-2\" {...outer.getRootProps()}>\n <template for={outer.getItems()} as={row} key={row.id}>\n <div\n class={[\"min-h-0 min-w-0 rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate\", { \"grid shrink-0 place-items-center border-transparent bg-transparent hover:bg-surface-sunken focus:bg-surface-sunken\": row.type === \"handle\", \"w-2 cursor-col-resize\": outer.orientation === \"horizontal\" && row.type === \"handle\", \"h-2 cursor-row-resize\": outer.orientation === \"vertical\" && row.type === \"handle\" }]}\n {...outer.getItemProps(row)}\n ><span class={[\"block p-2 type-caption text-muted\", { \"hidden\": row.type === \"handle\" || row.id === \"middle\" }]} {...outer.getItemLabelProps(row)}>{row.id}</span><span\n class={[\"hidden rounded-full bg-border-strong transition-all duration-fast ease-decelerate\", { \"block\": row.type === \"handle\", \"h-8 w-1\": outer.orientation === \"horizontal\" && row.type === \"handle\", \"h-1 w-8\": outer.orientation === \"vertical\" && row.type === \"handle\" }]}\n {...outer.getItemIndicatorProps(row)}\n ></span><div\n class=\"h-full w-full gap-2\"\n {...inner.getRootProps()}\n show={row.id === \"middle\"}\n >\n <template for={inner.getItems()} as={cell} key={cell.id}>\n <div\n class={[\"min-h-0 min-w-0 rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate\", { \"grid shrink-0 place-items-center border-transparent bg-transparent hover:bg-surface-sunken focus:bg-surface-sunken\": cell.type === \"handle\", \"w-2 cursor-col-resize\": inner.orientation === \"horizontal\" && cell.type === \"handle\", \"h-2 cursor-row-resize\": inner.orientation === \"vertical\" && cell.type === \"handle\" }]}\n {...inner.getItemProps(cell)}\n ><span class={[\"block p-2 type-caption text-muted\", { \"hidden\": cell.type === \"handle\" }]} {...inner.getItemLabelProps(cell)}>{cell.id}</span><span\n class={[\"hidden rounded-full bg-border-strong transition-all duration-fast ease-decelerate\", { \"block\": cell.type === \"handle\", \"h-8 w-1\": inner.orientation === \"horizontal\" && cell.type === \"handle\", \"h-1 w-8\": inner.orientation === \"vertical\" && cell.type === \"handle\" }]}\n {...inner.getItemIndicatorProps(cell)}\n ></span></div>\n </template>\n </div></div>\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { nested_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=nested.html.js.map
|
|
@@ -12,9 +12,9 @@ const machine = splitter({
|
|
|
12
12
|
<div class="gap-2" {...machine.getRootProps()}>
|
|
13
13
|
<template for={machine.getItems()} as={row} key={row.id}>
|
|
14
14
|
<div
|
|
15
|
-
class={["min-h-0 min-w-0 rounded-md border
|
|
15
|
+
class={["min-h-0 min-w-0 rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate", { "grid shrink-0 place-items-center border-transparent bg-transparent hover:bg-surface-sunken focus:bg-surface-sunken": row.type === "handle", "w-2 cursor-col-resize": machine.orientation === "horizontal" && row.type === "handle", "h-2 cursor-row-resize": machine.orientation === "vertical" && row.type === "handle" }]}
|
|
16
16
|
{...machine.getItemProps(row)}
|
|
17
|
-
><span class={["block p-3
|
|
17
|
+
><span class={["block p-3 type-caption-emphasized text-muted", { "hidden": row.type === "handle" }]} {...machine.getItemLabelProps(row)}>{row.id}</span><span
|
|
18
18
|
class={["hidden rounded-full bg-border-strong transition-all duration-fast ease-decelerate", { "block": row.type === "handle", "h-8 w-1": machine.orientation === "horizontal" && row.type === "handle", "h-1 w-8": machine.orientation === "vertical" && row.type === "handle" }]}
|
|
19
19
|
{...machine.getItemIndicatorProps(row)}
|
|
20
20
|
></span></div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/splitter/examples/threepanels.html
|
|
2
|
+
var threepanels_default = "<script lang=\"ts\">\nimport { splitter } from \"../splitter.presentation.ts\";\n\nconst machine = splitter({\n panels:\n '[{\"id\":\"explorer\",\"minSize\":15},{\"id\":\"editor\",\"minSize\":30},{\"id\":\"inspector\",\"minSize\":15}]',\n size: \"[25, 50, 25]\",\n});\n<\/script>\n\n<div class=\"h-60 w-full\">\n <div class=\"gap-2\" {...machine.getRootProps()}>\n <template for={machine.getItems()} as={row} key={row.id}>\n <div\n class={[\"min-h-0 min-w-0 rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate\", { \"grid shrink-0 place-items-center border-transparent bg-transparent hover:bg-surface-sunken focus:bg-surface-sunken\": row.type === \"handle\", \"w-2 cursor-col-resize\": machine.orientation === \"horizontal\" && row.type === \"handle\", \"h-2 cursor-row-resize\": machine.orientation === \"vertical\" && row.type === \"handle\" }]}\n {...machine.getItemProps(row)}\n ><span class={[\"block p-3 type-caption-emphasized text-muted\", { \"hidden\": row.type === \"handle\" }]} {...machine.getItemLabelProps(row)}>{row.id}</span><span\n class={[\"hidden rounded-full bg-border-strong transition-all duration-fast ease-decelerate\", { \"block\": row.type === \"handle\", \"h-8 w-1\": machine.orientation === \"horizontal\" && row.type === \"handle\", \"h-1 w-8\": machine.orientation === \"vertical\" && row.type === \"handle\" }]}\n {...machine.getItemIndicatorProps(row)}\n ></span></div>\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { threepanels_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=threepanels.html.js.map
|
|
@@ -12,9 +12,9 @@ const machine = splitter({
|
|
|
12
12
|
<div class="gap-2" {...machine.getRootProps()}>
|
|
13
13
|
<template for={machine.getItems()} as={row} key={row.id}>
|
|
14
14
|
<div
|
|
15
|
-
class={["min-h-0 min-w-0 rounded-md border
|
|
15
|
+
class={["min-h-0 min-w-0 rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate", { "grid shrink-0 place-items-center border-transparent bg-transparent hover:bg-surface-sunken focus:bg-surface-sunken": row.type === "handle", "w-2 cursor-col-resize": machine.orientation === "horizontal" && row.type === "handle", "h-2 cursor-row-resize": machine.orientation === "vertical" && row.type === "handle" }]}
|
|
16
16
|
{...machine.getItemProps(row)}
|
|
17
|
-
><span class={["block p-3
|
|
17
|
+
><span class={["block p-3 type-caption-emphasized text-muted", { "hidden": row.type === "handle" }]} {...machine.getItemLabelProps(row)}>{row.id}</span><span
|
|
18
18
|
class={["hidden rounded-full bg-border-strong transition-all duration-fast ease-decelerate", { "block": row.type === "handle", "h-8 w-1": machine.orientation === "horizontal" && row.type === "handle", "h-1 w-8": machine.orientation === "vertical" && row.type === "handle" }]}
|
|
19
19
|
{...machine.getItemIndicatorProps(row)}
|
|
20
20
|
></span></div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/splitter/examples/vertical.html
|
|
2
|
+
var vertical_default = "<script lang=\"ts\">\nimport { splitter } from \"../splitter.presentation.ts\";\n\nconst machine = splitter({\n orientation: \"vertical\",\n panels: '[{\"id\":\"editor\",\"minSize\":25},{\"id\":\"terminal\",\"minSize\":20}]',\n size: \"[65, 35]\",\n});\n<\/script>\n\n<div class=\"h-60 w-full\">\n <div class=\"gap-2\" {...machine.getRootProps()}>\n <template for={machine.getItems()} as={row} key={row.id}>\n <div\n class={[\"min-h-0 min-w-0 rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate\", { \"grid shrink-0 place-items-center border-transparent bg-transparent hover:bg-surface-sunken focus:bg-surface-sunken\": row.type === \"handle\", \"w-2 cursor-col-resize\": machine.orientation === \"horizontal\" && row.type === \"handle\", \"h-2 cursor-row-resize\": machine.orientation === \"vertical\" && row.type === \"handle\" }]}\n {...machine.getItemProps(row)}\n ><span class={[\"block p-3 type-caption-emphasized text-muted\", { \"hidden\": row.type === \"handle\" }]} {...machine.getItemLabelProps(row)}>{row.id}</span><span\n class={[\"hidden rounded-full bg-border-strong transition-all duration-fast ease-decelerate\", { \"block\": row.type === \"handle\", \"h-8 w-1\": machine.orientation === \"horizontal\" && row.type === \"handle\", \"h-1 w-8\": machine.orientation === \"vertical\" && row.type === \"handle\" }]}\n {...machine.getItemIndicatorProps(row)}\n ></span></div>\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 SplitterEvents {
|
|
3
3
|
"SET_SIZE": {
|
|
4
4
|
size: readonly number[];
|
|
@@ -48,5 +48,4 @@ export type SplitterEvent = EventUnion<SplitterEvents>;
|
|
|
48
48
|
export type SplitterResizeDetails = {
|
|
49
49
|
readonly size: number[];
|
|
50
50
|
readonly handleId: string | null;
|
|
51
|
-
};
|
|
52
|
-
//# sourceMappingURL=splitter.events.d.ts.map
|
|
51
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SplitterArgs, SplitterContext, SplitterDragState, SplitterPanel, SplitterState } from "./splitter.state.js";
|
|
2
2
|
import { SplitterEvent, SplitterEvents, SplitterResizeDetails } from "./splitter.events.js";
|
|
3
|
-
import { Machine } from "@spinjs/
|
|
3
|
+
import { Machine } from "@spinjs/components/fsm";
|
|
4
4
|
export declare function splitter(args: SplitterArgs | undefined, authored: (name: string) => boolean): Machine<SplitterContext, SplitterEvents, SplitterState>;
|
|
5
|
-
export type { SplitterArgs, SplitterContext, SplitterDragState, SplitterEvent, SplitterEvents, SplitterPanel, SplitterResizeDetails, SplitterState };
|
|
6
|
-
//# sourceMappingURL=splitter.machine.d.ts.map
|
|
5
|
+
export type { SplitterArgs, SplitterContext, SplitterDragState, SplitterEvent, SplitterEvents, SplitterPanel, SplitterResizeDetails, SplitterState };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initial } from "./splitter.state.js";
|
|
2
2
|
import { clearDrag, clearFocus, collapsePanel, expandPanel, isHandleFocused, keyboardMove, pointerMove, resetSize, resizePanel, setFocusedHandle, setPanels, setSize, startDrag, toggleCollapseOnEnter } from "./splitter.transitions.js";
|
|
3
|
-
import { createMachine } from "@spinjs/
|
|
3
|
+
import { createMachine } from "@spinjs/components/fsm";
|
|
4
4
|
// src/splitter/splitter.machine.ts
|
|
5
5
|
function splitter(args = {}, authored) {
|
|
6
6
|
return createMachine({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SplitterArgs, SplitterContext, SplitterState } from "./splitter.state.js";
|
|
2
2
|
import { SplitterEvents, SplitterResizeDetails } from "./splitter.events.js";
|
|
3
|
-
import { ApiOf, SlotViewFor, ViewFor } from "@spinjs/runtime";
|
|
3
|
+
import { ApiOf, SlotViewFor, ViewFor } from "@spinjs/components/runtime";
|
|
4
4
|
export interface SplitterPanelSlotProps {
|
|
5
5
|
readonly id: string;
|
|
6
6
|
}
|
|
@@ -28,7 +28,7 @@ type ItemSlot = {
|
|
|
28
28
|
/** The component's public state: the names the markup may key on. */
|
|
29
29
|
declare const def: {
|
|
30
30
|
name: string;
|
|
31
|
-
machine: (props: SplitterArgs, authored: (name: string) => boolean) => import("@spinjs/runtime").Machine<SplitterContext, SplitterEvents, SplitterState>;
|
|
31
|
+
machine: (props: SplitterArgs, authored: (name: string) => boolean) => import("@spinjs/components/runtime").Machine<SplitterContext, SplitterEvents, SplitterState>;
|
|
32
32
|
reconcile: ({ context }: {
|
|
33
33
|
readonly context: SplitterContext;
|
|
34
34
|
readonly state: SplitterState;
|
|
@@ -38,7 +38,7 @@ declare const def: {
|
|
|
38
38
|
type: string;
|
|
39
39
|
} & Record<string, unknown>) => void;
|
|
40
40
|
}) => boolean;
|
|
41
|
-
commitEvents: ("POINTER_UP" | "SET_SIZE" | "COLLAPSE_PANEL" | "EXPAND_PANEL" | "RESIZE_PANEL" | "KEYBOARD_MOVE"
|
|
41
|
+
commitEvents: ("POINTER_UP" | "ENTER" | "SET_SIZE" | "COLLAPSE_PANEL" | "EXPAND_PANEL" | "RESIZE_PANEL" | "KEYBOARD_MOVE")[];
|
|
42
42
|
parts: {
|
|
43
43
|
root: {
|
|
44
44
|
attrs: (scope: ScopeLike) => {
|
|
@@ -199,6 +199,5 @@ declare const def: {
|
|
|
199
199
|
};
|
|
200
200
|
};
|
|
201
201
|
export type SplitterApi = ApiOf<typeof def>;
|
|
202
|
-
export declare const splitter: import("@spinjs/runtime").DefinedComponent<SplitterApi, SplitterArgs>;
|
|
203
|
-
export type { SplitterResizeDetails };
|
|
204
|
-
//# sourceMappingURL=splitter.presentation.d.ts.map
|
|
202
|
+
export declare const splitter: import("@spinjs/components/runtime").DefinedComponent<SplitterApi, SplitterArgs>;
|
|
203
|
+
export type { SplitterResizeDetails };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defaultSizes, handleId, isInteractive as isInteractive$1, panelCollapsed, validateSizes } from "./splitter.state.js";
|
|
2
2
|
import { splitter as splitter$1 } from "./splitter.machine.js";
|
|
3
|
-
import { ariaControls, ariaOrientation, defineComponent, focuser, isComposing, sliderThumb } from "@spinjs/runtime";
|
|
3
|
+
import { ariaControls, ariaOrientation, defineComponent, focuser, isComposing, sliderThumb } from "@spinjs/components/runtime";
|
|
4
4
|
// src/splitter/splitter.presentation.ts
|
|
5
5
|
const sameSizes = (a, b) => a.length === b.length && a.every((value, index) => value === b[index]);
|
|
6
6
|
/** The sends that end the gesture: release, keyboard, and the programmatic
|
|
@@ -44,5 +44,4 @@ export declare function panelCollapsed(panels: SplitterPanel[], size: readonly n
|
|
|
44
44
|
export declare function parsePanels(raw: unknown): SplitterPanel[];
|
|
45
45
|
declare const sizesOf: (raw: unknown) => number[] | null;
|
|
46
46
|
export declare function initial(args: SplitterArgs | undefined, authored: (name: string) => boolean): SplitterContext;
|
|
47
|
-
export { sizesOf };
|
|
48
|
-
//# sourceMappingURL=splitter.state.d.ts.map
|
|
47
|
+
export { sizesOf };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SplitterContext } from "./splitter.state.js";
|
|
2
2
|
import { SplitterEvents } from "./splitter.events.js";
|
|
3
|
-
import { AssignFor, GuardFor } from "@spinjs/
|
|
3
|
+
import { AssignFor, GuardFor } from "@spinjs/components/fsm";
|
|
4
4
|
type SplitterAssign<K extends keyof SplitterEvents = keyof SplitterEvents> = AssignFor<SplitterContext, SplitterEvents, K>;
|
|
5
5
|
export declare const setFocusedHandle: SplitterAssign<"POINTER_OVER" | "FOCUS">;
|
|
6
6
|
export declare const startDrag: SplitterAssign<"POINTER_DOWN">;
|
|
@@ -16,5 +16,4 @@ export declare const toggleCollapseOnEnter: SplitterAssign<"ENTER">;
|
|
|
16
16
|
export declare const keyboardMove: SplitterAssign<"KEYBOARD_MOVE">;
|
|
17
17
|
export declare const pointerMove: SplitterAssign<"POINTER_MOVE">;
|
|
18
18
|
export declare const isHandleFocused: GuardFor<SplitterContext, SplitterEvents>;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=splitter.transitions.d.ts.map
|
|
19
|
+
export {};
|
|
@@ -10,9 +10,9 @@ const machine = steps({
|
|
|
10
10
|
|
|
11
11
|
<div class="w-full" {...machine.getRootProps()}>
|
|
12
12
|
<div class="mb-3 flex items-center justify-between gap-2">
|
|
13
|
-
<span class="
|
|
13
|
+
<span class="type-label">Checkout</span>
|
|
14
14
|
<span
|
|
15
|
-
class="
|
|
15
|
+
class="type-caption text-muted">Step {machine.value + 1} of {machine.count}</span>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<ol class="row-list items-start gap-1" {...machine.getListProps()}>
|
|
@@ -23,9 +23,9 @@ const machine = steps({
|
|
|
23
23
|
class="bare flex shrink-0 items-center gap-3 bg-transparent text-left"
|
|
24
24
|
{...machine.getTriggerProps(row)}
|
|
25
25
|
><span
|
|
26
|
-
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid
|
|
26
|
+
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label", { "border bg-surface-raised text-muted": machine.getItemState(row).incomplete, "border-primary bg-primary text-on-primary": machine.getItemState(row).current || machine.getItemState(row).completed }]}
|
|
27
27
|
{...machine.getIndicatorProps(row)}
|
|
28
|
-
><span aria-hidden="true" show={machine.getItemState(row).completed}><span class="i-lucide-check
|
|
28
|
+
><span aria-hidden="true" show={machine.getItemState(row).completed}><span class="i-lucide-check type-code"></span></span><span aria-hidden="true" show={machine.getItemState(row).completed === false}>{row + 1}</span></span><span class="type-label">{machine.getItemTitle(row)}</span></button><span aria-hidden="true" class={["mx-3 h-1 flex-1 bg-border", { "bg-primary": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>
|
|
29
29
|
</li>
|
|
30
30
|
</template>
|
|
31
31
|
</ol>
|
|
@@ -41,7 +41,7 @@ const machine = steps({
|
|
|
41
41
|
|
|
42
42
|
<div class="mt-3 hidden" {...machine.getContentProps(machine.value)}>
|
|
43
43
|
<p
|
|
44
|
-
class="rounded-md border
|
|
44
|
+
class="rounded-md border bg-surface-raised p-3">{machine.getItemTitle(machine.value)}</p>
|
|
45
45
|
</div>
|
|
46
46
|
|
|
47
47
|
<div class="mt-3 flex items-center gap-2">
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/steps/examples/basic.html
|
|
2
|
+
var basic_default = "<script lang=\"ts\">\nimport { steps } from \"../steps.presentation.ts\";\n\nconst machine = steps({\n count: 4,\n titles: [\"Cart\", \"Shipping\", \"Payment\", \"Review\"],\n step: 1,\n});\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <div class=\"mb-3 flex items-center justify-between gap-2\">\n <span class=\"type-label\">Checkout</span>\n <span\n class=\"type-caption text-muted\">Step {machine.value + 1} of {machine.count}</span>\n </div>\n\n <ol class=\"row-list items-start gap-1\" {...machine.getListProps()}>\n <template for={machine.getItems()} as={row} key={row}>\n <li class=\"relative flex min-w-0 items-center not-last:flex-1\"\n {...machine.getItemProps(row)}>\n <button\n class=\"bare flex shrink-0 items-center gap-3 bg-transparent text-left\"\n {...machine.getTriggerProps(row)}\n ><span\n class={[\"relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label\", { \"border bg-surface-raised text-muted\": machine.getItemState(row).incomplete, \"border-primary bg-primary text-on-primary\": machine.getItemState(row).current || machine.getItemState(row).completed }]}\n {...machine.getIndicatorProps(row)}\n ><span aria-hidden=\"true\" show={machine.getItemState(row).completed}><span class=\"i-lucide-check type-code\"></span></span><span aria-hidden=\"true\" show={machine.getItemState(row).completed === false}>{row + 1}</span></span><span class=\"type-label\">{machine.getItemTitle(row)}</span></button><span aria-hidden=\"true\" class={[\"mx-3 h-1 flex-1 bg-border\", { \"bg-primary\": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>\n </li>\n </template>\n </ol>\n\n <div\n class=\"mt-3 h-2 w-full overflow-hidden rounded-full bg-surface-sunken\"\n {...machine.getProgressProps()}\n >\n <div\n class=\"h-full rounded-full bg-primary transition-all duration-fast ease-decelerate\"\n {...machine.getProgressFillProps()}></div>\n </div>\n\n <div class=\"mt-3 hidden\" {...machine.getContentProps(machine.value)}>\n <p\n class=\"rounded-md border bg-surface-raised p-3\">{machine.getItemTitle(machine.value)}</p>\n </div>\n\n <div class=\"mt-3 flex items-center gap-2\">\n <button\n class=\"secondary s-sm disabled:opacity-50\"\n {...machine.getPrevTriggerProps()}\n >Back</button>\n <button\n class=\"s-sm disabled:opacity-50\"\n {...machine.getNextTriggerProps()}\n >Next</button>\n </div>\n</div>\n";
|
|
3
|
+
export { basic_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=basic.html.js.map
|
|
@@ -10,9 +10,9 @@ const machine = steps({
|
|
|
10
10
|
|
|
11
11
|
<div class="w-full" {...machine.getRootProps()}>
|
|
12
12
|
<div class="mb-3 flex items-center justify-between gap-2">
|
|
13
|
-
<span class="
|
|
13
|
+
<span class="type-label">Deploy #4821</span>
|
|
14
14
|
<span
|
|
15
|
-
class="
|
|
15
|
+
class="type-caption text-muted">Step {machine.value + 1} of {machine.count}</span>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<ol class="row-list items-start gap-1" {...machine.getListProps()}>
|
|
@@ -23,9 +23,9 @@ const machine = steps({
|
|
|
23
23
|
class="bare flex shrink-0 items-center gap-3 bg-transparent text-left"
|
|
24
24
|
{...machine.getTriggerProps(row)}
|
|
25
25
|
><span
|
|
26
|
-
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid
|
|
26
|
+
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label", { "border bg-surface-raised text-muted": machine.getItemState(row).incomplete, "border-primary bg-primary text-on-primary": machine.getItemState(row).current || machine.getItemState(row).completed }]}
|
|
27
27
|
{...machine.getIndicatorProps(row)}
|
|
28
|
-
><span aria-hidden="true" show={machine.getItemState(row).completed}><span class="i-lucide-check
|
|
28
|
+
><span aria-hidden="true" show={machine.getItemState(row).completed}><span class="i-lucide-check type-code"></span></span><span aria-hidden="true" show={machine.getItemState(row).completed === false}>{row + 1}</span></span><span class="type-label">{machine.getItemTitle(row)}</span></button><span show={row < machine.count - 1} aria-hidden="true" class={["mx-3 h-1 flex-1", { "bg-border": machine.getItemState(row).completed === false, "bg-primary": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>
|
|
29
29
|
</li>
|
|
30
30
|
</template>
|
|
31
31
|
</ol>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/steps/examples/checkmarks.html
|
|
2
|
+
var checkmarks_default = "<script lang=\"ts\">\nimport { steps } from \"../steps.presentation.ts\";\n\nconst machine = steps({\n count: 4,\n titles: [\"Build\", \"Test\", \"Rollout\", \"Verify\"],\n step: 2,\n});\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <div class=\"mb-3 flex items-center justify-between gap-2\">\n <span class=\"type-label\">Deploy #4821</span>\n <span\n class=\"type-caption text-muted\">Step {machine.value + 1} of {machine.count}</span>\n </div>\n\n <ol class=\"row-list items-start gap-1\" {...machine.getListProps()}>\n <template for={machine.getItems()} as={row} key={row}>\n <li class=\"relative flex min-w-0 items-center not-last:flex-1\"\n {...machine.getItemProps(row)}>\n <button\n class=\"bare flex shrink-0 items-center gap-3 bg-transparent text-left\"\n {...machine.getTriggerProps(row)}\n ><span\n class={[\"relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label\", { \"border bg-surface-raised text-muted\": machine.getItemState(row).incomplete, \"border-primary bg-primary text-on-primary\": machine.getItemState(row).current || machine.getItemState(row).completed }]}\n {...machine.getIndicatorProps(row)}\n ><span aria-hidden=\"true\" show={machine.getItemState(row).completed}><span class=\"i-lucide-check type-code\"></span></span><span aria-hidden=\"true\" show={machine.getItemState(row).completed === false}>{row + 1}</span></span><span class=\"type-label\">{machine.getItemTitle(row)}</span></button><span show={row < machine.count - 1} aria-hidden=\"true\" class={[\"mx-3 h-1 flex-1\", { \"bg-border\": machine.getItemState(row).completed === false, \"bg-primary\": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>\n </li>\n </template>\n </ol>\n</div>\n";
|
|
3
|
+
export { checkmarks_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=checkmarks.html.js.map
|
|
@@ -10,9 +10,9 @@ const machine = steps({
|
|
|
10
10
|
|
|
11
11
|
<div class="w-full" {...machine.getRootProps()}>
|
|
12
12
|
<div class="mb-3 flex items-center justify-between gap-2">
|
|
13
|
-
<span class="
|
|
13
|
+
<span class="type-label">Deploy #4821</span>
|
|
14
14
|
<span
|
|
15
|
-
class="
|
|
15
|
+
class="type-caption text-muted">Step {machine.value + 1} of {machine.count}</span>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<ol class="row-list items-start gap-1" {...machine.getListProps()}>
|
|
@@ -23,15 +23,15 @@ const machine = steps({
|
|
|
23
23
|
class="bare flex shrink-0 items-center gap-3 bg-transparent text-left"
|
|
24
24
|
{...machine.getTriggerProps(row)}
|
|
25
25
|
><span
|
|
26
|
-
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid
|
|
26
|
+
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label", { "border bg-surface-raised text-muted": machine.getItemState(row).incomplete, "border-primary bg-primary text-on-primary": machine.getItemState(row).current || machine.getItemState(row).completed }]}
|
|
27
27
|
{...machine.getIndicatorProps(row)}
|
|
28
|
-
><span aria-hidden="true" show={machine.getItemState(row).completed}><span class="i-lucide-check
|
|
28
|
+
><span aria-hidden="true" show={machine.getItemState(row).completed}><span class="i-lucide-check type-code"></span></span><span aria-hidden="true" show={machine.getItemState(row).completed === false}>{row + 1}</span></span><span class="type-label">{machine.getItemTitle(row)}</span></button><span show={row < machine.count - 1} aria-hidden="true" class={["mx-3 h-1 flex-1", { "bg-border": machine.getItemState(row).completed === false, "bg-primary": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>
|
|
29
29
|
</li>
|
|
30
30
|
</template>
|
|
31
31
|
</ol>
|
|
32
32
|
|
|
33
33
|
<div
|
|
34
|
-
class="mt-3 rounded-md border
|
|
34
|
+
class="mt-3 rounded-md border bg-surface-raised p-3 type-body"
|
|
35
35
|
{...machine.getContentProps(machine.value)}>{machine.getItemTitle(machine.value)}</div>
|
|
36
36
|
|
|
37
37
|
<div class="mt-3 flex items-center gap-2">
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/steps/examples/content.html
|
|
2
|
+
var content_default = "<script lang=\"ts\">\nimport { steps } from \"../steps.presentation.ts\";\n\nconst machine = steps({\n count: 3,\n titles: [\"Image\", \"Rollout\", \"Health checks\"],\n step: 1,\n});\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <div class=\"mb-3 flex items-center justify-between gap-2\">\n <span class=\"type-label\">Deploy #4821</span>\n <span\n class=\"type-caption text-muted\">Step {machine.value + 1} of {machine.count}</span>\n </div>\n\n <ol class=\"row-list items-start gap-1\" {...machine.getListProps()}>\n <template for={machine.getItems()} as={row} key={row}>\n <li class=\"relative flex min-w-0 items-center not-last:flex-1\"\n {...machine.getItemProps(row)}>\n <button\n class=\"bare flex shrink-0 items-center gap-3 bg-transparent text-left\"\n {...machine.getTriggerProps(row)}\n ><span\n class={[\"relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label\", { \"border bg-surface-raised text-muted\": machine.getItemState(row).incomplete, \"border-primary bg-primary text-on-primary\": machine.getItemState(row).current || machine.getItemState(row).completed }]}\n {...machine.getIndicatorProps(row)}\n ><span aria-hidden=\"true\" show={machine.getItemState(row).completed}><span class=\"i-lucide-check type-code\"></span></span><span aria-hidden=\"true\" show={machine.getItemState(row).completed === false}>{row + 1}</span></span><span class=\"type-label\">{machine.getItemTitle(row)}</span></button><span show={row < machine.count - 1} aria-hidden=\"true\" class={[\"mx-3 h-1 flex-1\", { \"bg-border\": machine.getItemState(row).completed === false, \"bg-primary\": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>\n </li>\n </template>\n </ol>\n\n <div\n class=\"mt-3 rounded-md border bg-surface-raised p-3 type-body\"\n {...machine.getContentProps(machine.value)}>{machine.getItemTitle(machine.value)}</div>\n\n <div class=\"mt-3 flex items-center gap-2\">\n <button\n class=\"secondary s-sm disabled:opacity-50\"\n {...machine.getPrevTriggerProps()}>Back</button>\n <button\n class=\"s-sm disabled:opacity-50\"\n {...machine.getNextTriggerProps()}>Next</button>\n </div>\n</div>\n";
|
|
3
|
+
export { content_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=content.html.js.map
|
|
@@ -17,9 +17,9 @@ const machine = steps({
|
|
|
17
17
|
class="bare flex shrink-0 items-center gap-3 bg-transparent text-left"
|
|
18
18
|
{...machine.getTriggerProps(row)}
|
|
19
19
|
><span
|
|
20
|
-
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid
|
|
20
|
+
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label", { "border bg-surface-raised text-muted": machine.getItemState(row).incomplete, "border-primary bg-primary text-on-primary": machine.getItemState(row).current || machine.getItemState(row).completed }]}
|
|
21
21
|
{...machine.getIndicatorProps(row)}
|
|
22
|
-
><span aria-hidden="true" show={machine.getItemState(row).completed}><span class="i-lucide-check
|
|
22
|
+
><span aria-hidden="true" show={machine.getItemState(row).completed}><span class="i-lucide-check type-code"></span></span><span aria-hidden="true" show={machine.getItemState(row).completed === false}>{row + 1}</span></span><span class="flex flex-col"><span class="type-label">{machine.getItemTitle(row)}</span><span class="type-caption text-muted" show={row === 0}>Image & tags</span><span class="type-caption text-muted" show={row === 1}>Canary & regions</span><span class="type-caption text-muted" show={row === 2}>Health & rollback</span></span></button><span show={row < machine.count - 1} aria-hidden="true" class={["mx-3 h-1 flex-1", { "bg-border": machine.getItemState(row).completed === false, "bg-primary": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>
|
|
23
23
|
</li>
|
|
24
24
|
</template>
|
|
25
25
|
</ol>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/steps/examples/descriptions.html
|
|
2
|
+
var descriptions_default = "<script lang=\"ts\">\nimport { steps } from \"../steps.presentation.ts\";\n\nconst machine = steps({\n count: 3,\n titles: [\"Build\", \"Rollout\", \"Verify\"],\n step: 1,\n});\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <ol class=\"row-list items-start gap-1\" {...machine.getListProps()}>\n <template for={machine.getItems()} as={row} key={row}>\n <li class=\"relative flex min-w-0 items-center not-last:flex-1\"\n {...machine.getItemProps(row)}>\n <button\n class=\"bare flex shrink-0 items-center gap-3 bg-transparent text-left\"\n {...machine.getTriggerProps(row)}\n ><span\n class={[\"relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label\", { \"border bg-surface-raised text-muted\": machine.getItemState(row).incomplete, \"border-primary bg-primary text-on-primary\": machine.getItemState(row).current || machine.getItemState(row).completed }]}\n {...machine.getIndicatorProps(row)}\n ><span aria-hidden=\"true\" show={machine.getItemState(row).completed}><span class=\"i-lucide-check type-code\"></span></span><span aria-hidden=\"true\" show={machine.getItemState(row).completed === false}>{row + 1}</span></span><span class=\"flex flex-col\"><span class=\"type-label\">{machine.getItemTitle(row)}</span><span class=\"type-caption text-muted\" show={row === 0}>Image & tags</span><span class=\"type-caption text-muted\" show={row === 1}>Canary & regions</span><span class=\"type-caption text-muted\" show={row === 2}>Health & rollback</span></span></button><span show={row < machine.count - 1} aria-hidden=\"true\" class={[\"mx-3 h-1 flex-1\", { \"bg-border\": machine.getItemState(row).completed === false, \"bg-primary\": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>\n </li>\n </template>\n </ol>\n</div>\n";
|
|
3
|
+
export { descriptions_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=descriptions.html.js.map
|
|
@@ -17,9 +17,9 @@ const machine = steps({
|
|
|
17
17
|
class="bare flex shrink-0 items-center gap-3 bg-transparent text-left"
|
|
18
18
|
{...machine.getTriggerProps(row)}
|
|
19
19
|
><span
|
|
20
|
-
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid
|
|
20
|
+
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label", { "border bg-surface-raised text-muted": machine.getItemState(row).incomplete, "border-primary bg-primary text-on-primary": machine.getItemState(row).current || machine.getItemState(row).completed }]}
|
|
21
21
|
{...machine.getIndicatorProps(row)}
|
|
22
|
-
><span class="i-lucide-user
|
|
22
|
+
><span class="i-lucide-user type-code" aria-hidden="true" show={row === 0}></span><span class="i-lucide-settings type-code" aria-hidden="true" show={row === 1}></span><span class="i-lucide-refresh-cw type-code" aria-hidden="true" show={row === 2}></span><span class="i-lucide-check type-code" aria-hidden="true" show={row === 3}></span></span><span class="type-label">{machine.getItemTitle(row)}</span></button><span show={row < machine.count - 1} aria-hidden="true" class={["mx-3 h-1 flex-1", { "bg-border": machine.getItemState(row).completed === false, "bg-primary": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>
|
|
23
23
|
</li>
|
|
24
24
|
</template>
|
|
25
25
|
</ol>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/steps/examples/icons.html
|
|
2
|
+
var icons_default = "<script lang=\"ts\">\nimport { steps } from \"../steps.presentation.ts\";\n\nconst machine = steps({\n count: 4,\n titles: [\"Profile\", \"Settings\", \"Sync\", \"Complete\"],\n step: 1,\n});\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <ol class=\"row-list items-start gap-1\" {...machine.getListProps()}>\n <template for={machine.getItems()} as={row} key={row}>\n <li class=\"relative flex min-w-0 items-center not-last:flex-1\"\n {...machine.getItemProps(row)}>\n <button\n class=\"bare flex shrink-0 items-center gap-3 bg-transparent text-left\"\n {...machine.getTriggerProps(row)}\n ><span\n class={[\"relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label\", { \"border bg-surface-raised text-muted\": machine.getItemState(row).incomplete, \"border-primary bg-primary text-on-primary\": machine.getItemState(row).current || machine.getItemState(row).completed }]}\n {...machine.getIndicatorProps(row)}\n ><span class=\"i-lucide-user type-code\" aria-hidden=\"true\" show={row === 0}></span><span class=\"i-lucide-settings type-code\" aria-hidden=\"true\" show={row === 1}></span><span class=\"i-lucide-refresh-cw type-code\" aria-hidden=\"true\" show={row === 2}></span><span class=\"i-lucide-check type-code\" aria-hidden=\"true\" show={row === 3}></span></span><span class=\"type-label\">{machine.getItemTitle(row)}</span></button><span show={row < machine.count - 1} aria-hidden=\"true\" class={[\"mx-3 h-1 flex-1\", { \"bg-border\": machine.getItemState(row).completed === false, \"bg-primary\": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>\n </li>\n </template>\n </ol>\n</div>\n";
|
|
3
|
+
export { icons_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=icons.html.js.map
|
|
@@ -17,9 +17,9 @@ const machine = steps({
|
|
|
17
17
|
class="bare flex shrink-0 items-center gap-3 bg-transparent text-left"
|
|
18
18
|
{...machine.getTriggerProps(row)}
|
|
19
19
|
><span
|
|
20
|
-
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid
|
|
20
|
+
class={["relative grid h-8 w-8 shrink-0 place-items-center rounded-full border-2 border-solid type-label", { "border bg-surface-raised text-muted": machine.getItemState(row).incomplete, "border-primary bg-primary text-on-primary": machine.getItemState(row).current || machine.getItemState(row).completed }]}
|
|
21
21
|
{...machine.getIndicatorProps(row)}
|
|
22
|
-
><span aria-hidden="true" show={machine.getItemState(row).completed}><span class="i-lucide-check
|
|
22
|
+
><span aria-hidden="true" show={machine.getItemState(row).completed}><span class="i-lucide-check type-code"></span></span><span aria-hidden="true" show={machine.getItemState(row).completed === false}>{row + 1}</span></span><span class="type-label">{machine.getItemTitle(row)}</span></button><span show={row < machine.count - 1} aria-hidden="true" class={["mx-3 h-1 flex-1", { "bg-border": machine.getItemState(row).completed === false, "bg-primary": machine.getItemState(row).completed }]} {...machine.getSeparatorProps(row)}></span>
|
|
23
23
|
</li>
|
|
24
24
|
</template>
|
|
25
25
|
</ol>
|