@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,6 +1,6 @@
|
|
|
1
1
|
import { initial, parseItems } from "./navigation-menu.state.js";
|
|
2
2
|
import { closeAll, openItem, setValue, swapItem, toggleOpen } from "./navigation-menu.transitions.js";
|
|
3
|
-
import { createMachine } from "@spinjs/
|
|
3
|
+
import { createMachine } from "@spinjs/components/fsm";
|
|
4
4
|
// src/navigation-menu/navigation-menu.machine.ts
|
|
5
5
|
/** Navigation-menu machine: the closed and open modes. */
|
|
6
6
|
function navigationMenu(args = {}, authored) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { NavItemRecord, NavigationMenuArgs, NavigationMenuContext, NavigationMenuState } from "./navigation-menu.state.js";
|
|
2
2
|
import { NavigationMenuEvents, NavigationMenuValueChange } from "./navigation-menu.events.js";
|
|
3
|
-
import { ApiOf, ViewFor } from "@spinjs/runtime";
|
|
3
|
+
import { ApiOf, ViewFor } from "@spinjs/components/runtime";
|
|
4
4
|
type ScopeLike = ViewFor<NavigationMenuContext, NavigationMenuEvents, NavigationMenuState>;
|
|
5
5
|
type ItemScope = ScopeLike & {
|
|
6
6
|
readonly slot: NavItemRecord;
|
|
7
7
|
};
|
|
8
8
|
export declare const def: {
|
|
9
9
|
name: string;
|
|
10
|
-
machine: (args: NavigationMenuArgs, authored: (name: string) => boolean) => import("@spinjs/runtime").Machine<NavigationMenuContext, NavigationMenuEvents, NavigationMenuState>;
|
|
10
|
+
machine: (args: NavigationMenuArgs, authored: (name: string) => boolean) => import("@spinjs/components/runtime").Machine<NavigationMenuContext, NavigationMenuEvents, NavigationMenuState>;
|
|
11
11
|
args: (props: Record<string, unknown>) => NavigationMenuArgs;
|
|
12
12
|
start: (props: Record<string, unknown>, authored: (name: string) => boolean) => NavigationMenuState;
|
|
13
13
|
parts: {
|
|
@@ -109,7 +109,7 @@ export declare const def: {
|
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
111
|
settled: ({ after, event, focus, root }: {
|
|
112
|
-
readonly event: import("@spinjs/runtime").AnyEvent;
|
|
112
|
+
readonly event: import("@spinjs/components/runtime").AnyEvent;
|
|
113
113
|
readonly before: {
|
|
114
114
|
readonly context: NavigationMenuContext;
|
|
115
115
|
readonly state: NavigationMenuState;
|
|
@@ -123,10 +123,9 @@ export declare const def: {
|
|
|
123
123
|
readonly id: (part: string, slot?: unknown) => string;
|
|
124
124
|
readonly focus: (part: string, slot?: unknown) => void;
|
|
125
125
|
readonly measure: (part: string, slot?: unknown) => DOMRect | null;
|
|
126
|
-
readonly send: (event: import("@spinjs/runtime").AnyEvent) => void;
|
|
126
|
+
readonly send: (event: import("@spinjs/components/runtime").AnyEvent) => void;
|
|
127
127
|
}) => void;
|
|
128
128
|
};
|
|
129
129
|
export type NavigationMenuApi = ApiOf<typeof def>;
|
|
130
|
-
export declare const navigationMenu: import("@spinjs/runtime").DefinedComponent<NavigationMenuApi, NavigationMenuArgs>;
|
|
131
|
-
export type { NavItemRecord, NavigationMenuArgs, NavigationMenuState, NavigationMenuValueChange };
|
|
132
|
-
//# sourceMappingURL=navigation-menu.presentation.d.ts.map
|
|
130
|
+
export declare const navigationMenu: import("@spinjs/components/runtime").DefinedComponent<NavigationMenuApi, NavigationMenuArgs>;
|
|
131
|
+
export type { NavItemRecord, NavigationMenuArgs, NavigationMenuState, NavigationMenuValueChange };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { startState } from "./navigation-menu.state.js";
|
|
2
1
|
import { navigationMenu as navigationMenu$1 } from "./navigation-menu.machine.js";
|
|
3
|
-
import {
|
|
2
|
+
import { startState } from "./navigation-menu.state.js";
|
|
3
|
+
import { defineComponent, disclosureTrigger, resolveTwins } from "@spinjs/components/runtime";
|
|
4
4
|
// src/navigation-menu/navigation-menu.presentation.ts
|
|
5
5
|
function neighbor(items, value, step) {
|
|
6
6
|
const at = items.findIndex((item) => item.value === value);
|
|
@@ -29,5 +29,4 @@ export declare const asText: (raw: unknown) => string | null;
|
|
|
29
29
|
* parses exactly like the seed. */
|
|
30
30
|
export declare function parseItems(raw: unknown): NavItemRecord[];
|
|
31
31
|
export declare function initial(args: NavigationMenuArgs | undefined, authored: (name: string) => boolean): NavigationMenuContext;
|
|
32
|
-
export declare function startState(args?: NavigationMenuArgs): NavigationMenuState;
|
|
33
|
-
//# sourceMappingURL=navigation-menu.state.d.ts.map
|
|
32
|
+
export declare function startState(args?: NavigationMenuArgs): NavigationMenuState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaultTwin } from "@spinjs/runtime";
|
|
1
|
+
import { defaultTwin } from "@spinjs/components/runtime";
|
|
2
2
|
// src/navigation-menu/navigation-menu.state.ts
|
|
3
3
|
const asText = (raw) => typeof raw === "string" ? raw : null;
|
|
4
4
|
/** Shape raw items into rows, dropping entries without a usable value or
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { NavigationMenuContext } from "./navigation-menu.state.js";
|
|
2
1
|
import { NavigationMenuEvents } from "./navigation-menu.events.js";
|
|
3
|
-
import {
|
|
2
|
+
import { NavigationMenuContext } from "./navigation-menu.state.js";
|
|
3
|
+
import { AssignFor } from "@spinjs/components/fsm";
|
|
4
4
|
type NavigationMenuAssign<K extends keyof NavigationMenuEvents = keyof NavigationMenuEvents> = AssignFor<NavigationMenuContext, NavigationMenuEvents, K>;
|
|
5
5
|
export declare const toggleOpen: NavigationMenuAssign<"ITEM.TOGGLE">;
|
|
6
6
|
export declare const closeAll: NavigationMenuAssign<"CLOSE">;
|
|
7
7
|
export declare const setValue: NavigationMenuAssign<"VALUE.SET">;
|
|
8
8
|
export declare const openItem: NavigationMenuAssign<"ITEM.ENTER">;
|
|
9
9
|
export declare const swapItem: NavigationMenuAssign<"ITEM.ENTER">;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=navigation-menu.transitions.d.ts.map
|
|
10
|
+
export {};
|
|
@@ -12,10 +12,10 @@ const machine = numberInput({
|
|
|
12
12
|
<div class="w-64 max-w-full" {...machine.getRootProps()}>
|
|
13
13
|
<div class="mb-1 flex items-center justify-between gap-2">
|
|
14
14
|
<label
|
|
15
|
-
class={["
|
|
15
|
+
class={["transition-opacity duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
16
16
|
{...machine.getLabelProps()}>Quantity</label>
|
|
17
17
|
<span
|
|
18
|
-
class="
|
|
18
|
+
class="type-caption text-muted tabular-nums transition-colors duration-fast"
|
|
19
19
|
{...machine.getValueTextProps()}>{machine.value}</span>
|
|
20
20
|
</div>
|
|
21
21
|
|
|
@@ -23,27 +23,27 @@ const machine = numberInput({
|
|
|
23
23
|
<button
|
|
24
24
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
25
25
|
{...machine.getDecrementTriggerProps()}
|
|
26
|
-
><span aria-hidden="true"><span class="i-lucide-minus
|
|
26
|
+
><span aria-hidden="true"><span class="i-lucide-minus type-caption" aria-hidden="true"></span></span></button>
|
|
27
27
|
<input
|
|
28
|
-
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-
|
|
28
|
+
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-strong text-primary": machine.invalid, "opacity-50": machine.disabled }]}
|
|
29
29
|
{...machine.getInputProps()}
|
|
30
30
|
/>
|
|
31
31
|
<button
|
|
32
32
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
33
33
|
{...machine.getIncrementTriggerProps()}
|
|
34
|
-
><span aria-hidden="true"><span class="i-lucide-plus
|
|
34
|
+
><span aria-hidden="true"><span class="i-lucide-plus type-caption" aria-hidden="true"></span></span></button>
|
|
35
35
|
</div>
|
|
36
36
|
|
|
37
37
|
<div
|
|
38
|
-
class={["relative mt-2 h-[1.25rem] select-none touch-none rounded-md border
|
|
38
|
+
class={["relative mt-2 h-[1.25rem] select-none touch-none rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate", { "border-strong bg-surface": machine.scrubbing, "opacity-50": machine.disabled }]}
|
|
39
39
|
{...machine.getScrubberProps()}
|
|
40
40
|
>
|
|
41
41
|
<span
|
|
42
|
-
class="pointer-events-none absolute inset-0 flex items-center justify-center gap-1
|
|
43
|
-
aria-hidden="true"><span class="i-lucide-chevron-left
|
|
42
|
+
class="pointer-events-none absolute inset-0 flex items-center justify-center gap-1 type-caption text-muted transition-opacity duration-fast ease-decelerate"
|
|
43
|
+
aria-hidden="true"><span class="i-lucide-chevron-left type-caption" aria-hidden="true"></span><span class="i-lucide-chevron-right type-caption" aria-hidden="true"></span></span>
|
|
44
44
|
<span
|
|
45
|
-
class="pointer-events-none fixed z-50 h-5 w-5 rounded-md border
|
|
45
|
+
class="pointer-events-none fixed z-50 h-5 w-5 rounded-md border bg-surface-raised text-center type-caption shadow-lg transition-opacity duration-fast ease-decelerate"
|
|
46
46
|
{...machine.getCursorProps()}
|
|
47
|
-
><span aria-hidden="true"><span class="i-lucide-move-horizontal
|
|
47
|
+
><span aria-hidden="true"><span class="i-lucide-move-horizontal type-caption" aria-hidden="true"></span></span></span>
|
|
48
48
|
</div>
|
|
49
49
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/number-input/examples/basic.html
|
|
2
|
+
var basic_default = "<script lang=\"ts\">\nimport { numberInput } from \"../number-input.presentation.ts\";\n\nconst machine = numberInput({\n defaultValue: \"3\",\n step: \"1\",\n min: \"0\",\n max: \"10\",\n});\n<\/script>\n\n<div class=\"w-64 max-w-full\" {...machine.getRootProps()}>\n <div class=\"mb-1 flex items-center justify-between gap-2\">\n <label\n class={[\"transition-opacity duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getLabelProps()}>Quantity</label>\n <span\n class=\"type-caption text-muted tabular-nums transition-colors duration-fast\"\n {...machine.getValueTextProps()}>{machine.value}</span>\n </div>\n\n <div class=\"flex items-center gap-2\" {...machine.getControlProps()}>\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getDecrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-minus type-caption\" aria-hidden=\"true\"></span></span></button>\n <input\n class={[\"w-[5rem] tabular-nums\", { \"ring-2 ring-border-strong\": machine.focused, \"border-strong text-primary\": machine.invalid, \"opacity-50\": machine.disabled }]}\n {...machine.getInputProps()}\n />\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getIncrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-plus type-caption\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div\n class={[\"relative mt-2 h-[1.25rem] select-none touch-none rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate\", { \"border-strong bg-surface\": machine.scrubbing, \"opacity-50\": machine.disabled }]}\n {...machine.getScrubberProps()}\n >\n <span\n class=\"pointer-events-none absolute inset-0 flex items-center justify-center gap-1 type-caption text-muted transition-opacity duration-fast ease-decelerate\"\n aria-hidden=\"true\"><span class=\"i-lucide-chevron-left type-caption\" aria-hidden=\"true\"></span><span class=\"i-lucide-chevron-right type-caption\" aria-hidden=\"true\"></span></span>\n <span\n class=\"pointer-events-none fixed z-50 h-5 w-5 rounded-md border bg-surface-raised text-center type-caption shadow-lg transition-opacity duration-fast ease-decelerate\"\n {...machine.getCursorProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-move-horizontal type-caption\" aria-hidden=\"true\"></span></span></span>\n </div>\n</div>\n";
|
|
3
|
+
export { basic_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=basic.html.js.map
|
|
@@ -7,10 +7,10 @@ const machine = numberInput({ defaultValue: "99", step: "0.01", min: "0" });
|
|
|
7
7
|
<div class="w-full" {...machine.getRootProps()}>
|
|
8
8
|
<div class="mb-1 flex items-center justify-between gap-2">
|
|
9
9
|
<label
|
|
10
|
-
class={["
|
|
10
|
+
class={["transition-opacity duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
11
11
|
{...machine.getLabelProps()}>Price</label>
|
|
12
12
|
<span
|
|
13
|
-
class="
|
|
13
|
+
class="type-caption text-muted tabular-nums transition-colors duration-fast"
|
|
14
14
|
{...machine.getValueTextProps()}>{machine.value}</span>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
@@ -18,16 +18,16 @@ const machine = numberInput({ defaultValue: "99", step: "0.01", min: "0" });
|
|
|
18
18
|
<button
|
|
19
19
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
20
20
|
{...machine.getDecrementTriggerProps()}
|
|
21
|
-
><span aria-hidden="true"><span class="i-lucide-minus
|
|
21
|
+
><span aria-hidden="true"><span class="i-lucide-minus type-caption" aria-hidden="true"></span></span></button>
|
|
22
22
|
<input
|
|
23
|
-
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-
|
|
23
|
+
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-strong text-primary": machine.invalid, "opacity-50": machine.disabled }]}
|
|
24
24
|
{...machine.getInputProps()}
|
|
25
25
|
/>
|
|
26
26
|
<button
|
|
27
27
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
28
28
|
{...machine.getIncrementTriggerProps()}
|
|
29
|
-
><span aria-hidden="true"><span class="i-lucide-plus
|
|
29
|
+
><span aria-hidden="true"><span class="i-lucide-plus type-caption" aria-hidden="true"></span></span></button>
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
|
-
<div class="
|
|
32
|
+
<div class="type-caption text-muted">Enter product price</div>
|
|
33
33
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/number-input/examples/currency.html
|
|
2
|
+
var currency_default = "<script lang=\"ts\">\nimport { numberInput } from \"../number-input.presentation.ts\";\n\nconst machine = numberInput({ defaultValue: \"99\", step: \"0.01\", min: \"0\" });\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <div class=\"mb-1 flex items-center justify-between gap-2\">\n <label\n class={[\"transition-opacity duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getLabelProps()}>Price</label>\n <span\n class=\"type-caption text-muted tabular-nums transition-colors duration-fast\"\n {...machine.getValueTextProps()}>{machine.value}</span>\n </div>\n\n <div class=\"flex items-center gap-2\" {...machine.getControlProps()}>\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getDecrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-minus type-caption\" aria-hidden=\"true\"></span></span></button>\n <input\n class={[\"w-[5rem] tabular-nums\", { \"ring-2 ring-border-strong\": machine.focused, \"border-strong text-primary\": machine.invalid, \"opacity-50\": machine.disabled }]}\n {...machine.getInputProps()}\n />\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getIncrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-plus type-caption\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div class=\"type-caption text-muted\">Enter product price</div>\n</div>\n";
|
|
3
|
+
export { currency_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=currency.html.js.map
|
|
@@ -7,10 +7,10 @@ const machine = numberInput({ defaultValue: "3.14159", step: "0.001" });
|
|
|
7
7
|
<div class="w-full" {...machine.getRootProps()}>
|
|
8
8
|
<div class="mb-1 flex items-center justify-between gap-2">
|
|
9
9
|
<label
|
|
10
|
-
class={["
|
|
10
|
+
class={["transition-opacity duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
11
11
|
{...machine.getLabelProps()}>Precision Value</label>
|
|
12
12
|
<span
|
|
13
|
-
class="
|
|
13
|
+
class="type-caption text-muted tabular-nums transition-colors duration-fast"
|
|
14
14
|
{...machine.getValueTextProps()}>{machine.value}</span>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@ const machine = numberInput({ defaultValue: "3.14159", step: "0.001" });
|
|
|
20
20
|
{...machine.getDecrementTriggerProps()}
|
|
21
21
|
><span aria-hidden="true"><span class="inline-block icon-sm i-lucide-minus" aria-hidden="true"></span></span></button>
|
|
22
22
|
<input
|
|
23
|
-
class={["w-[5rem]
|
|
23
|
+
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-strong text-primary": machine.invalid, "opacity-50": machine.disabled }]}
|
|
24
24
|
{...machine.getInputProps()}
|
|
25
25
|
/>
|
|
26
26
|
<button
|
|
@@ -29,5 +29,5 @@ const machine = numberInput({ defaultValue: "3.14159", step: "0.001" });
|
|
|
29
29
|
><span aria-hidden="true"><span class="inline-block icon-sm i-lucide-plus" aria-hidden="true"></span></span></button>
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
|
-
<div class="
|
|
32
|
+
<div class="type-caption text-muted">Step: 0.001, up to 5 decimal places</div>
|
|
33
33
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/number-input/examples/decimal.html
|
|
2
|
+
var decimal_default = "<script lang=\"ts\">\nimport { numberInput } from \"../number-input.presentation.ts\";\n\nconst machine = numberInput({ defaultValue: \"3.14159\", step: \"0.001\" });\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <div class=\"mb-1 flex items-center justify-between gap-2\">\n <label\n class={[\"transition-opacity duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getLabelProps()}>Precision Value</label>\n <span\n class=\"type-caption text-muted tabular-nums transition-colors duration-fast\"\n {...machine.getValueTextProps()}>{machine.value}</span>\n </div>\n\n <div class=\"flex items-center gap-2\" {...machine.getControlProps()}>\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getDecrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"inline-block icon-sm i-lucide-minus\" aria-hidden=\"true\"></span></span></button>\n <input\n class={[\"w-[5rem] tabular-nums\", { \"ring-2 ring-border-strong\": machine.focused, \"border-strong text-primary\": machine.invalid, \"opacity-50\": machine.disabled }]}\n {...machine.getInputProps()}\n />\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getIncrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"inline-block icon-sm i-lucide-plus\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div class=\"type-caption text-muted\">Step: 0.001, up to 5 decimal places</div>\n</div>\n";
|
|
3
|
+
export { decimal_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=decimal.html.js.map
|
|
@@ -13,10 +13,10 @@ const machine = numberInput({
|
|
|
13
13
|
<div class="w-full" {...machine.getRootProps()}>
|
|
14
14
|
<div class="mb-1 flex items-center justify-between gap-2">
|
|
15
15
|
<label
|
|
16
|
-
class={["
|
|
16
|
+
class={["transition-opacity duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
17
17
|
{...machine.getLabelProps()}>Rating (0-10)</label>
|
|
18
18
|
<span
|
|
19
|
-
class="
|
|
19
|
+
class="type-caption text-muted tabular-nums transition-colors duration-fast"
|
|
20
20
|
{...machine.getValueTextProps()}>{machine.value}</span>
|
|
21
21
|
</div>
|
|
22
22
|
|
|
@@ -24,18 +24,18 @@ const machine = numberInput({
|
|
|
24
24
|
<button
|
|
25
25
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
26
26
|
{...machine.getDecrementTriggerProps()}
|
|
27
|
-
><span aria-hidden="true"><span class="i-lucide-minus
|
|
27
|
+
><span aria-hidden="true"><span class="i-lucide-minus type-caption" aria-hidden="true"></span></span></button>
|
|
28
28
|
<input
|
|
29
|
-
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-
|
|
29
|
+
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-strong text-primary": machine.invalid, "opacity-50": machine.disabled }]}
|
|
30
30
|
{...machine.getInputProps()}
|
|
31
31
|
/>
|
|
32
32
|
<button
|
|
33
33
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
34
34
|
{...machine.getIncrementTriggerProps()}
|
|
35
|
-
><span aria-hidden="true"><span class="i-lucide-plus
|
|
35
|
+
><span aria-hidden="true"><span class="i-lucide-plus type-caption" aria-hidden="true"></span></span></button>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
|
-
<div class="mt-2 flex justify-between
|
|
38
|
+
<div class="mt-2 flex justify-between type-caption text-muted">
|
|
39
39
|
<span>Min: 0</span>
|
|
40
40
|
<span>Max: 10</span>
|
|
41
41
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/number-input/examples/limits.html
|
|
2
|
+
var limits_default = "<script lang=\"ts\">\nimport { numberInput } from \"../number-input.presentation.ts\";\n\nconst machine = numberInput({\n defaultValue: \"5\",\n step: \"1\",\n min: \"0\",\n max: \"10\",\n clampValueOnBlur: true,\n});\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <div class=\"mb-1 flex items-center justify-between gap-2\">\n <label\n class={[\"transition-opacity duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getLabelProps()}>Rating (0-10)</label>\n <span\n class=\"type-caption text-muted tabular-nums transition-colors duration-fast\"\n {...machine.getValueTextProps()}>{machine.value}</span>\n </div>\n\n <div class=\"flex items-center gap-2\" {...machine.getControlProps()}>\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getDecrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-minus type-caption\" aria-hidden=\"true\"></span></span></button>\n <input\n class={[\"w-[5rem] tabular-nums\", { \"ring-2 ring-border-strong\": machine.focused, \"border-strong text-primary\": machine.invalid, \"opacity-50\": machine.disabled }]}\n {...machine.getInputProps()}\n />\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getIncrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-plus type-caption\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div class=\"mt-2 flex justify-between type-caption text-muted\">\n <span>Min: 0</span>\n <span>Max: 10</span>\n </div>\n</div>\n";
|
|
3
|
+
export { limits_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=limits.html.js.map
|
|
@@ -12,10 +12,10 @@ const machine = numberInput({
|
|
|
12
12
|
<div class="w-full" {...machine.getRootProps()}>
|
|
13
13
|
<div class="mb-1 flex items-center justify-between gap-2">
|
|
14
14
|
<label
|
|
15
|
-
class={["
|
|
15
|
+
class={["transition-opacity duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
16
16
|
{...machine.getLabelProps()}>Discount Rate</label>
|
|
17
17
|
<span
|
|
18
|
-
class="
|
|
18
|
+
class="type-caption text-muted tabular-nums transition-colors duration-fast"
|
|
19
19
|
{...machine.getValueTextProps()}>{machine.value}</span>
|
|
20
20
|
</div>
|
|
21
21
|
|
|
@@ -23,16 +23,16 @@ const machine = numberInput({
|
|
|
23
23
|
<button
|
|
24
24
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
25
25
|
{...machine.getDecrementTriggerProps()}
|
|
26
|
-
><span aria-hidden="true"><span class="i-lucide-minus
|
|
26
|
+
><span aria-hidden="true"><span class="i-lucide-minus type-caption" aria-hidden="true"></span></span></button>
|
|
27
27
|
<input
|
|
28
|
-
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-
|
|
28
|
+
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-strong text-primary": machine.invalid, "opacity-50": machine.disabled }]}
|
|
29
29
|
{...machine.getInputProps()}
|
|
30
30
|
/>
|
|
31
31
|
<button
|
|
32
32
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
33
33
|
{...machine.getIncrementTriggerProps()}
|
|
34
|
-
><span aria-hidden="true"><span class="i-lucide-plus
|
|
34
|
+
><span aria-hidden="true"><span class="i-lucide-plus type-caption" aria-hidden="true"></span></span></button>
|
|
35
35
|
</div>
|
|
36
36
|
|
|
37
|
-
<div class="
|
|
37
|
+
<div class="type-caption text-muted">Enter a value between 0% and 100%</div>
|
|
38
38
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/number-input/examples/percentage.html
|
|
2
|
+
var percentage_default = "<script lang=\"ts\">\nimport { numberInput } from \"../number-input.presentation.ts\";\n\nconst machine = numberInput({\n defaultValue: \"15\",\n step: \"0.1\",\n min: \"0\",\n max: \"100\",\n});\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <div class=\"mb-1 flex items-center justify-between gap-2\">\n <label\n class={[\"transition-opacity duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getLabelProps()}>Discount Rate</label>\n <span\n class=\"type-caption text-muted tabular-nums transition-colors duration-fast\"\n {...machine.getValueTextProps()}>{machine.value}</span>\n </div>\n\n <div class=\"flex items-center gap-2\" {...machine.getControlProps()}>\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getDecrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-minus type-caption\" aria-hidden=\"true\"></span></span></button>\n <input\n class={[\"w-[5rem] tabular-nums\", { \"ring-2 ring-border-strong\": machine.focused, \"border-strong text-primary\": machine.invalid, \"opacity-50\": machine.disabled }]}\n {...machine.getInputProps()}\n />\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getIncrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-plus type-caption\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div class=\"type-caption text-muted\">Enter a value between 0% and 100%</div>\n</div>\n";
|
|
3
|
+
export { percentage_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=percentage.html.js.map
|
|
@@ -7,20 +7,20 @@ const machine = numberInput({ defaultValue: "1", step: "1", min: "0" });
|
|
|
7
7
|
<div class="w-full" {...machine.getRootProps()}>
|
|
8
8
|
<div class="mb-1 flex items-center justify-between gap-2">
|
|
9
9
|
<label
|
|
10
|
-
class={["
|
|
10
|
+
class={["transition-opacity duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
11
11
|
{...machine.getLabelProps()}>Amount</label>
|
|
12
12
|
<span
|
|
13
|
-
class="
|
|
13
|
+
class="type-caption text-muted tabular-nums transition-colors duration-fast"
|
|
14
14
|
{...machine.getValueTextProps()}>{machine.value}</span>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
17
|
<div
|
|
18
|
-
class={["relative inline-flex h-7 w-full items-center overflow-hidden rounded-md border
|
|
18
|
+
class={["relative inline-flex h-7 w-full items-center overflow-hidden rounded-md border type-body whitespace-nowrap transition-all duration-fast ease-decelerate focus-within:ring-2 focus-within:ring-border-strong", { "opacity-50": machine.disabled }]}
|
|
19
19
|
{...machine.getControlProps()}>
|
|
20
20
|
<button
|
|
21
21
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
22
22
|
{...machine.getDecrementTriggerProps()}
|
|
23
|
-
><span aria-hidden="true"><span class="i-lucide-minus
|
|
23
|
+
><span aria-hidden="true"><span class="i-lucide-minus type-caption" aria-hidden="true"></span></span></button>
|
|
24
24
|
<input
|
|
25
25
|
class={["bare h-full w-full grow text-center tabular-nums", { "ring-0": machine.focused }]}
|
|
26
26
|
{...machine.getInputProps()}
|
|
@@ -28,8 +28,8 @@ const machine = numberInput({ defaultValue: "1", step: "1", min: "0" });
|
|
|
28
28
|
<button
|
|
29
29
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
30
30
|
{...machine.getIncrementTriggerProps()}
|
|
31
|
-
><span aria-hidden="true"><span class="i-lucide-plus
|
|
31
|
+
><span aria-hidden="true"><span class="i-lucide-plus type-caption" aria-hidden="true"></span></span></button>
|
|
32
32
|
</div>
|
|
33
33
|
|
|
34
|
-
<div class="
|
|
34
|
+
<div class="type-caption text-muted">Enter number of items</div>
|
|
35
35
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/number-input/examples/quantity.html
|
|
2
|
+
var quantity_default = "<script lang=\"ts\">\nimport { numberInput } from \"../number-input.presentation.ts\";\n\nconst machine = numberInput({ defaultValue: \"1\", step: \"1\", min: \"0\" });\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <div class=\"mb-1 flex items-center justify-between gap-2\">\n <label\n class={[\"transition-opacity duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getLabelProps()}>Amount</label>\n <span\n class=\"type-caption text-muted tabular-nums transition-colors duration-fast\"\n {...machine.getValueTextProps()}>{machine.value}</span>\n </div>\n\n <div\n class={[\"relative inline-flex h-7 w-full items-center overflow-hidden rounded-md border type-body whitespace-nowrap transition-all duration-fast ease-decelerate focus-within:ring-2 focus-within:ring-border-strong\", { \"opacity-50\": machine.disabled }]}\n {...machine.getControlProps()}>\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getDecrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-minus type-caption\" aria-hidden=\"true\"></span></span></button>\n <input\n class={[\"bare h-full w-full grow text-center tabular-nums\", { \"ring-0\": machine.focused }]}\n {...machine.getInputProps()}\n />\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getIncrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-plus type-caption\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div class=\"type-caption text-muted\">Enter number of items</div>\n</div>\n";
|
|
3
|
+
export { quantity_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=quantity.html.js.map
|
|
@@ -7,10 +7,10 @@ const machine = numberInput({ defaultValue: "42", step: "1" });
|
|
|
7
7
|
<div class="w-64 max-w-full" {...machine.getRootProps()}>
|
|
8
8
|
<div class="mb-1 flex items-center justify-between gap-2">
|
|
9
9
|
<label
|
|
10
|
-
class={["
|
|
10
|
+
class={["transition-opacity duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
11
11
|
{...machine.getLabelProps()}>Interactive Value</label>
|
|
12
12
|
<span
|
|
13
|
-
class="
|
|
13
|
+
class="type-caption text-muted tabular-nums transition-colors duration-fast"
|
|
14
14
|
{...machine.getValueTextProps()}>{machine.value}</span>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
@@ -18,29 +18,29 @@ const machine = numberInput({ defaultValue: "42", step: "1" });
|
|
|
18
18
|
<button
|
|
19
19
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
20
20
|
{...machine.getDecrementTriggerProps()}
|
|
21
|
-
><span aria-hidden="true"><span class="i-lucide-minus
|
|
21
|
+
><span aria-hidden="true"><span class="i-lucide-minus type-caption" aria-hidden="true"></span></span></button>
|
|
22
22
|
<input
|
|
23
|
-
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-
|
|
23
|
+
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-strong text-primary": machine.invalid, "opacity-50": machine.disabled }]}
|
|
24
24
|
{...machine.getInputProps()}
|
|
25
25
|
/>
|
|
26
26
|
<button
|
|
27
27
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
28
28
|
{...machine.getIncrementTriggerProps()}
|
|
29
|
-
><span aria-hidden="true"><span class="i-lucide-plus
|
|
29
|
+
><span aria-hidden="true"><span class="i-lucide-plus type-caption" aria-hidden="true"></span></span></button>
|
|
30
30
|
</div>
|
|
31
31
|
|
|
32
32
|
<div
|
|
33
|
-
class={["relative mt-2 h-[1.25rem] select-none touch-none rounded-md border
|
|
33
|
+
class={["relative mt-2 h-[1.25rem] select-none touch-none rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate", { "border-strong bg-surface": machine.scrubbing, "opacity-50": machine.disabled }]}
|
|
34
34
|
{...machine.getScrubberProps()}
|
|
35
35
|
>
|
|
36
36
|
<span
|
|
37
|
-
class="pointer-events-none absolute inset-0 flex items-center justify-center gap-1
|
|
38
|
-
aria-hidden="true"><span class="i-lucide-chevron-left
|
|
37
|
+
class="pointer-events-none absolute inset-0 flex items-center justify-center gap-1 type-caption text-muted transition-opacity duration-fast ease-decelerate"
|
|
38
|
+
aria-hidden="true"><span class="i-lucide-chevron-left type-caption" aria-hidden="true"></span><span class="i-lucide-chevron-right type-caption" aria-hidden="true"></span></span>
|
|
39
39
|
<span
|
|
40
|
-
class="pointer-events-none fixed z-50 h-5 w-5 rounded-md border
|
|
40
|
+
class="pointer-events-none fixed z-50 h-5 w-5 rounded-md border bg-surface-raised text-center type-caption shadow-lg transition-opacity duration-fast ease-decelerate"
|
|
41
41
|
{...machine.getCursorProps()}
|
|
42
|
-
><span aria-hidden="true"><span class="i-lucide-move-horizontal
|
|
42
|
+
><span aria-hidden="true"><span class="i-lucide-move-horizontal type-caption" aria-hidden="true"></span></span></span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
|
-
<div class="
|
|
45
|
+
<div class="type-caption text-muted">Drag the icon to scrub the value</div>
|
|
46
46
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/number-input/examples/scrubber.html
|
|
2
|
+
var scrubber_default = "<script lang=\"ts\">\nimport { numberInput } from \"../number-input.presentation.ts\";\n\nconst machine = numberInput({ defaultValue: \"42\", step: \"1\" });\n<\/script>\n\n<div class=\"w-64 max-w-full\" {...machine.getRootProps()}>\n <div class=\"mb-1 flex items-center justify-between gap-2\">\n <label\n class={[\"transition-opacity duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getLabelProps()}>Interactive Value</label>\n <span\n class=\"type-caption text-muted tabular-nums transition-colors duration-fast\"\n {...machine.getValueTextProps()}>{machine.value}</span>\n </div>\n\n <div class=\"flex items-center gap-2\" {...machine.getControlProps()}>\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getDecrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-minus type-caption\" aria-hidden=\"true\"></span></span></button>\n <input\n class={[\"w-[5rem] tabular-nums\", { \"ring-2 ring-border-strong\": machine.focused, \"border-strong text-primary\": machine.invalid, \"opacity-50\": machine.disabled }]}\n {...machine.getInputProps()}\n />\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getIncrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-plus type-caption\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div\n class={[\"relative mt-2 h-[1.25rem] select-none touch-none rounded-md border bg-surface-raised transition-colors duration-fast ease-decelerate\", { \"border-strong bg-surface\": machine.scrubbing, \"opacity-50\": machine.disabled }]}\n {...machine.getScrubberProps()}\n >\n <span\n class=\"pointer-events-none absolute inset-0 flex items-center justify-center gap-1 type-caption text-muted transition-opacity duration-fast ease-decelerate\"\n aria-hidden=\"true\"><span class=\"i-lucide-chevron-left type-caption\" aria-hidden=\"true\"></span><span class=\"i-lucide-chevron-right type-caption\" aria-hidden=\"true\"></span></span>\n <span\n class=\"pointer-events-none fixed z-50 h-5 w-5 rounded-md border bg-surface-raised text-center type-caption shadow-lg transition-opacity duration-fast ease-decelerate\"\n {...machine.getCursorProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-move-horizontal type-caption\" aria-hidden=\"true\"></span></span></span>\n </div>\n\n <div class=\"type-caption text-muted\">Drag the icon to scrub the value</div>\n</div>\n";
|
|
3
|
+
export { scrubber_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=scrubber.html.js.map
|
|
@@ -13,10 +13,10 @@ const machine = numberInput({
|
|
|
13
13
|
<div class="w-full" {...machine.getRootProps()}>
|
|
14
14
|
<div class="mb-1 flex items-center justify-between gap-2">
|
|
15
15
|
<label
|
|
16
|
-
class={["
|
|
16
|
+
class={["transition-opacity duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
17
17
|
{...machine.getLabelProps()}>Volume Level</label>
|
|
18
18
|
<span
|
|
19
|
-
class="
|
|
19
|
+
class="type-caption text-muted tabular-nums transition-colors duration-fast"
|
|
20
20
|
{...machine.getValueTextProps()}>{machine.value}</span>
|
|
21
21
|
</div>
|
|
22
22
|
|
|
@@ -24,19 +24,19 @@ const machine = numberInput({
|
|
|
24
24
|
<button
|
|
25
25
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
26
26
|
{...machine.getDecrementTriggerProps()}
|
|
27
|
-
><span aria-hidden="true"><span class="i-lucide-minus
|
|
27
|
+
><span aria-hidden="true"><span class="i-lucide-minus type-caption" aria-hidden="true"></span></span></button>
|
|
28
28
|
<input
|
|
29
|
-
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-
|
|
29
|
+
class={["w-[5rem] tabular-nums", { "ring-2 ring-border-strong": machine.focused, "border-strong text-primary": machine.invalid, "opacity-50": machine.disabled }]}
|
|
30
30
|
{...machine.getInputProps()}
|
|
31
31
|
/>
|
|
32
32
|
<button
|
|
33
33
|
class={["secondary icon s-sm", { "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
34
34
|
{...machine.getIncrementTriggerProps()}
|
|
35
|
-
><span aria-hidden="true"><span class="i-lucide-plus
|
|
35
|
+
><span aria-hidden="true"><span class="i-lucide-plus type-caption" aria-hidden="true"></span></span></button>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
|
-
<div class="mt-2 flex items-center gap-1
|
|
39
|
-
<span class="i-lucide-mouse-pointer
|
|
38
|
+
<div class="mt-2 flex items-center gap-1 type-caption text-muted">
|
|
39
|
+
<span class="i-lucide-mouse-pointer type-caption" aria-hidden="true"></span>
|
|
40
40
|
<span>Focus and use mouse wheel to change</span>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/number-input/examples/wheel.html
|
|
2
|
+
var wheel_default = "<script lang=\"ts\">\nimport { numberInput } from \"../number-input.presentation.ts\";\n\nconst machine = numberInput({\n defaultValue: \"100\",\n step: \"10\",\n min: \"0\",\n max: \"1000\",\n allowMouseWheel: true,\n});\n<\/script>\n\n<div class=\"w-full\" {...machine.getRootProps()}>\n <div class=\"mb-1 flex items-center justify-between gap-2\">\n <label\n class={[\"transition-opacity duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getLabelProps()}>Volume Level</label>\n <span\n class=\"type-caption text-muted tabular-nums transition-colors duration-fast\"\n {...machine.getValueTextProps()}>{machine.value}</span>\n </div>\n\n <div class=\"flex items-center gap-2\" {...machine.getControlProps()}>\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getDecrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-minus type-caption\" aria-hidden=\"true\"></span></span></button>\n <input\n class={[\"w-[5rem] tabular-nums\", { \"ring-2 ring-border-strong\": machine.focused, \"border-strong text-primary\": machine.invalid, \"opacity-50\": machine.disabled }]}\n {...machine.getInputProps()}\n />\n <button\n class={[\"secondary icon s-sm\", { \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getIncrementTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"i-lucide-plus type-caption\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div class=\"mt-2 flex items-center gap-1 type-caption text-muted\">\n <span class=\"i-lucide-mouse-pointer type-caption\" aria-hidden=\"true\"></span>\n <span>Focus and use mouse wheel to change</span>\n </div>\n</div>\n";
|
|
3
|
+
export { wheel_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=wheel.html.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventUnion } from "@spinjs/
|
|
1
|
+
import { EventUnion } from "@spinjs/components/fsm";
|
|
2
2
|
export interface NumberInputEvents {
|
|
3
3
|
"VALUE.SET": {
|
|
4
4
|
value: number | string;
|
|
@@ -62,5 +62,4 @@ export interface NumberInputFocusChange {
|
|
|
62
62
|
readonly focused: boolean;
|
|
63
63
|
readonly value: string;
|
|
64
64
|
readonly valueAsNumber: number;
|
|
65
|
-
}
|
|
66
|
-
//# sourceMappingURL=number-input.events.d.ts.map
|
|
65
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/** Number-input machine: chart only. */
|
|
2
2
|
import { NumberInputArgs, NumberInputContext, NumberInputState } from "./number-input.state.js";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import { NumberInputEvents } from "./number-input.events.js";
|
|
4
|
+
import { Machine } from "@spinjs/components/fsm";
|
|
5
|
+
export declare function numberInput(args?: NumberInputArgs, authored?: (name: string) => boolean): Machine<NumberInputContext, NumberInputEvents, NumberInputState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { asNumber, clampValue, formatValue, initial, parseValue } from "./number-input.state.js";
|
|
2
2
|
import { beginSpin, clearHint, decrement, endSpin, increment, isDecrementHint, isIncrementHint, outOfRange, setCursorPoint, setFormattedValue } from "./number-input.transitions.js";
|
|
3
|
-
import { createMachine } from "@spinjs/
|
|
3
|
+
import { createMachine } from "@spinjs/components/fsm";
|
|
4
4
|
// src/number-input/number-input.machine.ts
|
|
5
5
|
/** Number-input machine: chart only. */
|
|
6
6
|
function numberInput(args = {}, authored = () => true) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NumberInputEvents, NumberInputFocusChange, NumberInputInvalidReason, NumberInputValueChange, NumberInputValueCommit, NumberInputValueInvalid } from "./number-input.events.js";
|
|
2
1
|
import { NumberInputArgs, NumberInputContext, NumberInputState } from "./number-input.state.js";
|
|
3
|
-
import {
|
|
2
|
+
import { NumberInputEvents, NumberInputFocusChange, NumberInputInvalidReason, NumberInputValueChange, NumberInputValueCommit, NumberInputValueInvalid } from "./number-input.events.js";
|
|
3
|
+
import { ApiOf, ViewFor } from "@spinjs/components/runtime";
|
|
4
4
|
type ScopeLike = ViewFor<NumberInputContext, NumberInputEvents, NumberInputState>;
|
|
5
5
|
export declare const def: {
|
|
6
6
|
name: string;
|
|
7
|
-
machine: (args: NumberInputArgs, authored: (name: string) => boolean) => import("@spinjs/runtime").Machine<NumberInputContext, NumberInputEvents, NumberInputState>;
|
|
7
|
+
machine: (args: NumberInputArgs, authored: (name: string) => boolean) => import("@spinjs/components/runtime").Machine<NumberInputContext, NumberInputEvents, NumberInputState>;
|
|
8
8
|
start: "idle";
|
|
9
9
|
parts: {
|
|
10
10
|
root: {
|
|
@@ -37,7 +37,7 @@ export declare const def: {
|
|
|
37
37
|
"data-invalid": string | undefined;
|
|
38
38
|
"data-scrubbing": string | undefined;
|
|
39
39
|
"aria-disabled": boolean;
|
|
40
|
-
"aria-invalid": boolean;
|
|
40
|
+
"aria-invalid": boolean | undefined;
|
|
41
41
|
"use:autoplay": {
|
|
42
42
|
interval: number;
|
|
43
43
|
enabled: boolean;
|
|
@@ -69,7 +69,7 @@ export declare const def: {
|
|
|
69
69
|
disabled: boolean;
|
|
70
70
|
readOnly: boolean;
|
|
71
71
|
required: boolean;
|
|
72
|
-
"aria-invalid": boolean;
|
|
72
|
+
"aria-invalid": boolean | undefined;
|
|
73
73
|
"aria-valuemin": number;
|
|
74
74
|
"aria-valuemax": number;
|
|
75
75
|
"aria-valuenow": number | undefined;
|
|
@@ -287,6 +287,5 @@ export declare const def: {
|
|
|
287
287
|
};
|
|
288
288
|
};
|
|
289
289
|
export type NumberInputApi = ApiOf<typeof def>;
|
|
290
|
-
export declare const numberInput: import("@spinjs/runtime").DefinedComponent<NumberInputApi, NumberInputArgs>;
|
|
291
|
-
export type { NumberInputArgs, NumberInputFocusChange, NumberInputInvalidReason, NumberInputState, NumberInputValueChange, NumberInputValueCommit, NumberInputValueInvalid };
|
|
292
|
-
//# sourceMappingURL=number-input.presentation.d.ts.map
|
|
290
|
+
export declare const numberInput: import("@spinjs/components/runtime").DefinedComponent<NumberInputApi, NumberInputArgs>;
|
|
291
|
+
export type { NumberInputArgs, NumberInputFocusChange, NumberInputInvalidReason, NumberInputState, NumberInputValueChange, NumberInputValueCommit, NumberInputValueInvalid };
|