@spinjs/components 0.1.0-preview.2 → 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 +10 -11
- 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 +18 -19
- 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 +8 -9
- 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 +7 -8
- 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
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/carousel/examples/testimonials.html
|
|
2
|
+
var testimonials_default = "<script lang=\"ts\">\nimport { carousel } from \"../carousel.presentation.ts\";\n\nconst machine = carousel({\n allowMouseDrag: true,\n items: [\n { value: \"sarah\", initials: \"SJ\", role: \"Marketing Director\", label: \"Sarah Johnson\", content: \"Ships on time with zero visual drift across themes.\" },\n { value: \"michael\", initials: \"MC\", role: \"Engineering Lead\", label: \"Michael Chen\", content: \"Deterministic state machines and zero flaky selectors.\" },\n { value: \"emily\", initials: \"ER\", role: \"Design Systems\", label: \"Emily Rodriguez\", content: \"Every token lands cleanly without one-off overrides.\" },\n ],\n});\n<\/script>\n\n<div\n class=\"relative mx-auto w-full max-w-[32rem] rounded-lg border bg-surface-raised p-4\"\n {...machine.getRootProps()}>\n <div\n class={[\"flex gap-2 py-1 snap-x snap-mandatory overflow-x-auto scroll-smooth cursor-grab select-none\", { \"cursor-grabbing snap-none scroll-auto\": machine.isDragging }]}\n {...machine.getItemGroupProps()}\n >\n <template for={machine.getItemIndexes()} as={row} key={row.value}>\n <div\n class={[\"w-full shrink-0 min-w-0 snap-start transition-opacity duration-base ease-standard opacity-50\", { \"opacity-100\": machine.isInView(row.index) }]}\n {...machine.getItemProps(row)}\n >\n <div\n class=\"flex min-h-[8rem] flex-col items-center justify-center rounded-md border bg-surface p-6 text-center\">\n <span class=\"i-lucide-quote icon-lg text-primary\"\n aria-hidden=\"true\"></span>\n <p class=\"italic\">\"{row.content}\"</p>\n <div class=\"mt-3 flex items-center justify-center gap-1\"\n aria-hidden=\"true\">\n <span class=\"i-lucide-star type-code text-semantic-warning\"></span><span class=\"i-lucide-star type-code text-semantic-warning\"></span><span class=\"i-lucide-star type-code text-semantic-warning\"></span><span class=\"i-lucide-star type-code text-semantic-warning\"></span><span class=\"i-lucide-star type-code text-semantic-warning\"></span>\n </div>\n <div class=\"mt-3 flex items-center gap-2\">\n <span class=\"grid h-10 w-10 shrink-0 place-items-center rounded-full bg-primary type-caption-emphasized text-on-primary\">{row.initials}</span>\n <div class=\"text-left\">\n <div class=\"type-label\">{row.label}</div>\n <div class=\"type-caption text-muted\">{row.role}</div>\n </div>\n </div>\n </div>\n </div>\n </template>\n </div>\n\n <div\n class={[\"mt-2 h-1 overflow-hidden rounded-full bg-surface-raised opacity-0 transition-opacity duration-fast ease-standard pointer-events-none\", { \"opacity-100\": machine.isPlaying }]}\n {...machine.getAutoplayProgressProps()}>\n <div\n class={[\"h-full w-full rounded-full bg-primary origin-left scale-x-0 transition-transform duration-fast ease-standard\", { \"scale-x-100\": machine.isPlaying }]}\n {...machine.getAutoplayProgressFillProps()}></div>\n </div>\n\n <div class=\"flex items-center gap-2 pt-4\" {...machine.getControlProps()}>\n <button\n class={[\"ghost icon s-sm\", { \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getPrevTriggerProps()}>‹</button>\n <div class=\"flex flex-1 items-center justify-center gap-1\"\n {...machine.getIndicatorGroupProps()}>\n <template for={machine.getItemIndexes()} as={row} key={row.value}>\n <button\n class={[\"bare h-2 w-2 rounded-full border bg-surface-raised transition-all duration-base ease-standard\", { \"w-4 border-transparent\": machine.isInView(row.index), \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getIndicatorProps(row)}></button>\n </template>\n </div>\n <button\n class={[\"ghost icon s-sm\", { \"text-primary\": machine.isPlaying, \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getAutoplayTriggerProps()}>▶</button>\n <template for={machine.getProgressRows()} as={row} key={row.value}>\n <span class=\"type-caption text-muted\"\n {...machine.getProgressTextProps()}>{row.value}</span>\n </template>\n <button\n class={[\"ghost icon s-sm\", { \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getNextTriggerProps()}>›</button>\n </div>\n</div>\n";
|
|
3
|
+
export { testimonials_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=testimonials.html.js.map
|
|
@@ -12,7 +12,7 @@ const machine = carousel({
|
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
<div
|
|
15
|
-
class="relative mx-auto w-full max-w-[32rem] rounded-lg border
|
|
15
|
+
class="relative mx-auto w-full max-w-[32rem] rounded-lg border bg-surface-raised p-4"
|
|
16
16
|
{...machine.getRootProps()}>
|
|
17
17
|
<div
|
|
18
18
|
class={["flex gap-2 py-1 snap-x snap-mandatory overflow-x-auto scroll-smooth cursor-grab select-none", { "cursor-grabbing snap-none scroll-auto": machine.isDragging }]}
|
|
@@ -24,17 +24,17 @@ const machine = carousel({
|
|
|
24
24
|
{...machine.getItemProps(row)}
|
|
25
25
|
>
|
|
26
26
|
<div
|
|
27
|
-
class="flex min-h-[8rem] flex-col items-center justify-center rounded-md border
|
|
28
|
-
<span class="
|
|
29
|
-
<div class="mt-1
|
|
30
|
-
<div class="mt-1
|
|
27
|
+
class="flex min-h-[8rem] flex-col items-center justify-center rounded-md border bg-surface p-6 text-center">
|
|
28
|
+
<span class="type-code text-primary">{row.tag}</span>
|
|
29
|
+
<div class="mt-1 type-body-emphasized">{row.label}</div>
|
|
30
|
+
<div class="mt-1 type-caption text-muted">{row.content}</div>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
</template>
|
|
34
34
|
</div>
|
|
35
35
|
|
|
36
36
|
<div
|
|
37
|
-
class={["mt-2 h-1 overflow-hidden rounded-full bg-
|
|
37
|
+
class={["mt-2 h-1 overflow-hidden rounded-full bg-surface-raised opacity-0 transition-opacity duration-fast ease-standard pointer-events-none", { "opacity-100": machine.isPlaying }]}
|
|
38
38
|
{...machine.getAutoplayProgressProps()}>
|
|
39
39
|
<div
|
|
40
40
|
class={["h-full w-full rounded-full bg-primary origin-left scale-x-0 transition-transform duration-fast ease-standard", { "scale-x-100": machine.isPlaying }]}
|
|
@@ -49,7 +49,7 @@ const machine = carousel({
|
|
|
49
49
|
{...machine.getIndicatorGroupProps()}>
|
|
50
50
|
<template for={machine.getItemIndexes()} as={row} key={row.value}>
|
|
51
51
|
<button
|
|
52
|
-
class={["bare shrink-0 border-2 border-transparent px-2 py-1 text-
|
|
52
|
+
class={["bare shrink-0 border-2 border-transparent px-2 py-1 text-muted transition-all hover:border", { "border-primary": machine.isInView(row.index), "ring-2 ring-border-strong": machine.focused }]}
|
|
53
53
|
{...machine.getIndicatorProps(row)}>{row.label}</button>
|
|
54
54
|
</template>
|
|
55
55
|
</div>
|
|
@@ -57,7 +57,7 @@ const machine = carousel({
|
|
|
57
57
|
class={["ghost icon s-sm", { "text-primary": machine.isPlaying, "ring-2 ring-border-strong": machine.focused }]}
|
|
58
58
|
{...machine.getAutoplayTriggerProps()}>▶</button>
|
|
59
59
|
<template for={machine.getProgressRows()} as={row} key={row.value}>
|
|
60
|
-
<span class="
|
|
60
|
+
<span class="type-caption text-muted"
|
|
61
61
|
{...machine.getProgressTextProps()}>{row.value}</span>
|
|
62
62
|
</template>
|
|
63
63
|
<button
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/carousel/examples/thumbnails.html
|
|
2
|
+
var thumbnails_default = "<script lang=\"ts\">\nimport { carousel } from \"../carousel.presentation.ts\";\n\nconst machine = carousel({\n allowMouseDrag: true,\n items: [\n { value: \"a\", tag: \"01 · Peak\", label: \"Alpine\", content: \"Thin air, steep lines.\" },\n { value: \"b\", tag: \"02 · Coast\", label: \"Bay\", content: \"Salt, fog, gulls.\" },\n { value: \"c\", tag: \"03 · Mesa\", label: \"Canyon\", content: \"Red rock, deep time.\" },\n ],\n});\n<\/script>\n\n<div\n class=\"relative mx-auto w-full max-w-[32rem] rounded-lg border bg-surface-raised p-4\"\n {...machine.getRootProps()}>\n <div\n class={[\"flex gap-2 py-1 snap-x snap-mandatory overflow-x-auto scroll-smooth cursor-grab select-none\", { \"cursor-grabbing snap-none scroll-auto\": machine.isDragging }]}\n {...machine.getItemGroupProps()}\n >\n <template for={machine.getItemIndexes()} as={row} key={row.value}>\n <div\n class={[\"w-full shrink-0 min-w-0 snap-start transition-opacity duration-base ease-standard opacity-50\", { \"opacity-100\": machine.isInView(row.index) }]}\n {...machine.getItemProps(row)}\n >\n <div\n class=\"flex min-h-[8rem] flex-col items-center justify-center rounded-md border bg-surface p-6 text-center\">\n <span class=\"type-code text-primary\">{row.tag}</span>\n <div class=\"mt-1 type-body-emphasized\">{row.label}</div>\n <div class=\"mt-1 type-caption text-muted\">{row.content}</div>\n </div>\n </div>\n </template>\n </div>\n\n <div\n class={[\"mt-2 h-1 overflow-hidden rounded-full bg-surface-raised opacity-0 transition-opacity duration-fast ease-standard pointer-events-none\", { \"opacity-100\": machine.isPlaying }]}\n {...machine.getAutoplayProgressProps()}>\n <div\n class={[\"h-full w-full rounded-full bg-primary origin-left scale-x-0 transition-transform duration-fast ease-standard\", { \"scale-x-100\": machine.isPlaying }]}\n {...machine.getAutoplayProgressFillProps()}></div>\n </div>\n\n <div class=\"flex items-center gap-2 pt-4\" {...machine.getControlProps()}>\n <button\n class={[\"ghost icon s-sm\", { \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getPrevTriggerProps()}>‹</button>\n <div class=\"flex flex-1 items-center justify-center gap-1\"\n {...machine.getIndicatorGroupProps()}>\n <template for={machine.getItemIndexes()} as={row} key={row.value}>\n <button\n class={[\"bare shrink-0 border-2 border-transparent px-2 py-1 text-muted transition-all hover:border\", { \"border-primary\": machine.isInView(row.index), \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getIndicatorProps(row)}>{row.label}</button>\n </template>\n </div>\n <button\n class={[\"ghost icon s-sm\", { \"text-primary\": machine.isPlaying, \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getAutoplayTriggerProps()}>▶</button>\n <template for={machine.getProgressRows()} as={row} key={row.value}>\n <span class=\"type-caption text-muted\"\n {...machine.getProgressTextProps()}>{row.value}</span>\n </template>\n <button\n class={[\"ghost icon s-sm\", { \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getNextTriggerProps()}>›</button>\n </div>\n</div>\n";
|
|
3
|
+
export { thumbnails_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=thumbnails.html.js.map
|
|
@@ -12,7 +12,7 @@ const machine = carousel({
|
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
<div
|
|
15
|
-
class="relative mx-auto w-full max-w-[32rem] rounded-lg border
|
|
15
|
+
class="relative mx-auto w-full max-w-[32rem] rounded-lg border bg-surface-raised p-4"
|
|
16
16
|
{...machine.getRootProps()}>
|
|
17
17
|
<div
|
|
18
18
|
class={["flex flex-col h-40 snap-y snap-mandatory overflow-y-auto scroll-smooth select-none", { "snap-none scroll-auto": machine.isDragging }]}
|
|
@@ -24,17 +24,17 @@ const machine = carousel({
|
|
|
24
24
|
{...machine.getItemProps(row)}
|
|
25
25
|
>
|
|
26
26
|
<div
|
|
27
|
-
class="flex h-full flex-col items-center justify-center rounded-md border
|
|
28
|
-
<span class="
|
|
29
|
-
<div class="mt-1
|
|
30
|
-
<div class="mt-1
|
|
27
|
+
class="flex h-full flex-col items-center justify-center rounded-md border bg-surface p-4 text-center">
|
|
28
|
+
<span class="type-code text-primary">{row.tag}</span>
|
|
29
|
+
<div class="mt-1 type-body-emphasized">{row.label}</div>
|
|
30
|
+
<div class="mt-1 type-caption text-muted">{row.content}</div>
|
|
31
31
|
</div>
|
|
32
32
|
</div>
|
|
33
33
|
</template>
|
|
34
34
|
</div>
|
|
35
35
|
|
|
36
36
|
<div
|
|
37
|
-
class={["mt-2 h-1 overflow-hidden rounded-full bg-
|
|
37
|
+
class={["mt-2 h-1 overflow-hidden rounded-full bg-surface-raised opacity-0 transition-opacity duration-fast ease-standard pointer-events-none", { "opacity-100": machine.isPlaying }]}
|
|
38
38
|
{...machine.getAutoplayProgressProps()}>
|
|
39
39
|
<div
|
|
40
40
|
class={["h-full w-full rounded-full bg-primary origin-left scale-x-0 transition-transform duration-fast ease-standard", { "scale-x-100": machine.isPlaying }]}
|
|
@@ -49,7 +49,7 @@ const machine = carousel({
|
|
|
49
49
|
{...machine.getIndicatorGroupProps()}>
|
|
50
50
|
<template for={machine.getItemIndexes()} as={row} key={row.value}>
|
|
51
51
|
<button
|
|
52
|
-
class={["bare h-2 w-2 rounded-full
|
|
52
|
+
class={["bare h-2 w-2 rounded-full border bg-surface-raised transition-all duration-base ease-standard", { "h-4 w-2 border-transparent": machine.isInView(row.index), "ring-2 ring-border-strong": machine.focused }]}
|
|
53
53
|
{...machine.getIndicatorProps(row)}></button>
|
|
54
54
|
</template>
|
|
55
55
|
</div>
|
|
@@ -57,7 +57,7 @@ const machine = carousel({
|
|
|
57
57
|
class={["ghost icon s-sm", { "text-primary": machine.isPlaying, "ring-2 ring-border-strong": machine.focused }]}
|
|
58
58
|
{...machine.getAutoplayTriggerProps()}>▶</button>
|
|
59
59
|
<template for={machine.getProgressRows()} as={row} key={row.value}>
|
|
60
|
-
<span class="
|
|
60
|
+
<span class="type-caption text-muted"
|
|
61
61
|
{...machine.getProgressTextProps()}>{row.value}</span>
|
|
62
62
|
</template>
|
|
63
63
|
<button
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/carousel/examples/vertical.html
|
|
2
|
+
var vertical_default = "<script lang=\"ts\">\nimport { carousel } from \"../carousel.presentation.ts\";\n\nconst machine = carousel({\n items: [\n { value: \"a\", tag: \"01 · Peak\", label: \"Alpine\", content: \"Thin air, steep lines.\" },\n { value: \"b\", tag: \"02 · Coast\", label: \"Bay\", content: \"Salt, fog, gulls.\" },\n { value: \"c\", tag: \"03 · Mesa\", label: \"Canyon\", content: \"Red rock, deep time.\" },\n ],\n orientation: \"vertical\",\n});\n<\/script>\n\n<div\n class=\"relative mx-auto w-full max-w-[32rem] rounded-lg border bg-surface-raised p-4\"\n {...machine.getRootProps()}>\n <div\n class={[\"flex flex-col h-40 snap-y snap-mandatory overflow-y-auto scroll-smooth select-none\", { \"snap-none scroll-auto\": machine.isDragging }]}\n {...machine.getItemGroupProps()}\n >\n <template for={machine.getItemIndexes()} as={row} key={row.value}>\n <div\n class={[\"h-full w-full shrink-0 min-w-0 snap-start transition-opacity duration-base ease-standard opacity-50\", { \"opacity-100\": machine.isInView(row.index) }]}\n {...machine.getItemProps(row)}\n >\n <div\n class=\"flex h-full flex-col items-center justify-center rounded-md border bg-surface p-4 text-center\">\n <span class=\"type-code text-primary\">{row.tag}</span>\n <div class=\"mt-1 type-body-emphasized\">{row.label}</div>\n <div class=\"mt-1 type-caption text-muted\">{row.content}</div>\n </div>\n </div>\n </template>\n </div>\n\n <div\n class={[\"mt-2 h-1 overflow-hidden rounded-full bg-surface-raised opacity-0 transition-opacity duration-fast ease-standard pointer-events-none\", { \"opacity-100\": machine.isPlaying }]}\n {...machine.getAutoplayProgressProps()}>\n <div\n class={[\"h-full w-full rounded-full bg-primary origin-left scale-x-0 transition-transform duration-fast ease-standard\", { \"scale-x-100\": machine.isPlaying }]}\n {...machine.getAutoplayProgressFillProps()}></div>\n </div>\n\n <div class=\"flex items-center gap-2 pt-4\" {...machine.getControlProps()}>\n <button\n class={[\"ghost icon s-sm\", { \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getPrevTriggerProps()}>˄</button>\n <div class=\"flex flex-1 items-center justify-center gap-1\"\n {...machine.getIndicatorGroupProps()}>\n <template for={machine.getItemIndexes()} as={row} key={row.value}>\n <button\n class={[\"bare h-2 w-2 rounded-full border bg-surface-raised transition-all duration-base ease-standard\", { \"h-4 w-2 border-transparent\": machine.isInView(row.index), \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getIndicatorProps(row)}></button>\n </template>\n </div>\n <button\n class={[\"ghost icon s-sm\", { \"text-primary\": machine.isPlaying, \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getAutoplayTriggerProps()}>▶</button>\n <template for={machine.getProgressRows()} as={row} key={row.value}>\n <span class=\"type-caption text-muted\"\n {...machine.getProgressTextProps()}>{row.value}</span>\n </template>\n <button\n class={[\"ghost icon s-sm\", { \"ring-2 ring-border-strong\": machine.focused }]}\n {...machine.getNextTriggerProps()}>˅</button>\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 CascadeEvents {
|
|
3
3
|
"OPEN": {};
|
|
4
4
|
"CLOSE": {
|
|
@@ -38,5 +38,4 @@ export interface CascadeEvents {
|
|
|
38
38
|
};
|
|
39
39
|
"CLEAR_TRIGGER_CLICK": {};
|
|
40
40
|
}
|
|
41
|
-
export type CascadeEvent = EventUnion<CascadeEvents>;
|
|
42
|
-
//# sourceMappingURL=cascade.events.d.ts.map
|
|
41
|
+
export type CascadeEvent = EventUnion<CascadeEvents>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { CascadeEvents } from "./cascade.events.js";
|
|
2
1
|
import { CascadeArgs, CascadeContext, CascadeState, initial, parsePath, parsePaths, startOpen } from "./cascade.state.js";
|
|
3
|
-
import {
|
|
2
|
+
import { CascadeEvents } from "./cascade.events.js";
|
|
3
|
+
import { EventUnion, Machine } from "@spinjs/components/fsm";
|
|
4
4
|
export type CascadeEvent = EventUnion<CascadeEvents>;
|
|
5
5
|
export declare function cascade(args: CascadeArgs | undefined, authored: (name: string) => boolean): Machine<CascadeContext, CascadeEvents, CascadeState>;
|
|
6
|
-
export { type CascadeArgs, type CascadeContext, type CascadeEvents, initial, parsePath, parsePaths, startOpen };
|
|
7
|
-
//# sourceMappingURL=cascade.machine.d.ts.map
|
|
6
|
+
export { type CascadeArgs, type CascadeContext, type CascadeEvents, initial, parsePath, parsePaths, startOpen };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initial, parseCollection, parsePath, parsePaths, startOpen } from "./cascade.state.js";
|
|
2
2
|
import { clearHighlightedValue, clearTriggerAssign, clearValue, highlightSelected, hoverHighlightAssign, hoverHighlightGuard, itemClearAssign, itemClickCloseGuard, itemClickSelectableGuard, openWithHighlight, restoresFocus, selectItem, setHighlightedValue, setValue } from "./cascade.transitions.js";
|
|
3
|
-
import { createMachine } from "@spinjs/
|
|
3
|
+
import { createMachine } from "@spinjs/components/fsm";
|
|
4
4
|
// src/cascade-select/cascade.machine.ts
|
|
5
5
|
function cascade(args = {}, authored) {
|
|
6
6
|
return createMachine({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CascadeEvents } from "./cascade.events.js";
|
|
2
1
|
import { CascadeArgs, CascadeContext, CascadeState } from "./cascade.state.js";
|
|
3
|
-
import {
|
|
2
|
+
import { CascadeEvents } from "./cascade.events.js";
|
|
3
|
+
import { ApiOf, SlotViewFor, ViewFor } from "@spinjs/components/runtime";
|
|
4
4
|
/**
|
|
5
5
|
* Cascade-select definition: the DOM contract as data.
|
|
6
6
|
*
|
|
@@ -86,7 +86,7 @@ type ScopeLike = ViewFor<CascadeContext, CascadeEvents, CascadeState>;
|
|
|
86
86
|
type SlotLike<R> = SlotViewFor<R, CascadeContext, CascadeEvents, CascadeState>;
|
|
87
87
|
export declare const def: {
|
|
88
88
|
name: string;
|
|
89
|
-
machine: (args: CascadeArgs, authored: (name: string) => boolean) => import("@spinjs/runtime").Machine<CascadeContext, CascadeEvents, CascadeState>;
|
|
89
|
+
machine: (args: CascadeArgs, authored: (name: string) => boolean) => import("@spinjs/components/runtime").Machine<CascadeContext, CascadeEvents, CascadeState>;
|
|
90
90
|
settled: ({ event, before, after, focus }: {
|
|
91
91
|
readonly event: {
|
|
92
92
|
readonly type: string;
|
|
@@ -197,7 +197,7 @@ export declare const def: {
|
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
199
|
content: {
|
|
200
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, CascadeContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<CascadeEvents>, CascadeState>) => {
|
|
200
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, CascadeContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<CascadeEvents>, CascadeState>) => {
|
|
201
201
|
"data-disabled"?: string | undefined;
|
|
202
202
|
"data-activedescendant": string | undefined;
|
|
203
203
|
hidden: boolean;
|
|
@@ -354,12 +354,12 @@ export declare const def: {
|
|
|
354
354
|
read: (context: CascadeContext) => boolean;
|
|
355
355
|
};
|
|
356
356
|
levels: {
|
|
357
|
-
read: (context: CascadeContext
|
|
357
|
+
read: (context: CascadeContext) => readonly CascadeLevel[];
|
|
358
358
|
};
|
|
359
359
|
};
|
|
360
360
|
methods: {
|
|
361
361
|
getLevels: {
|
|
362
|
-
call: (context: CascadeContext
|
|
362
|
+
call: (context: CascadeContext) => readonly CascadeLevel[];
|
|
363
363
|
};
|
|
364
364
|
getItems: {
|
|
365
365
|
call: (_context: CascadeContext, _state: CascadeState, [level]: [level: CascadeLevel]) => readonly CascadeItem[];
|
|
@@ -410,6 +410,5 @@ export declare const def: {
|
|
|
410
410
|
};
|
|
411
411
|
};
|
|
412
412
|
export type CascadeApi = ApiOf<typeof def>;
|
|
413
|
-
export declare const cascade: import("@spinjs/runtime").DefinedComponent<CascadeApi, CascadeArgs>;
|
|
414
|
-
export {};
|
|
415
|
-
//# sourceMappingURL=cascade.presentation.d.ts.map
|
|
413
|
+
export declare const cascade: import("@spinjs/components/runtime").DefinedComponent<CascadeApi, CascadeArgs>;
|
|
414
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { parseCollection as parseCollection$1, parsePath, startOpen } from "./cascade.state.js";
|
|
2
1
|
import { cascade as cascade$1 } from "./cascade.machine.js";
|
|
3
|
-
import {
|
|
2
|
+
import { parseCollection as parseCollection$1, parsePath, startOpen } from "./cascade.state.js";
|
|
3
|
+
import { ariaDisabled, ariaHidden, ariaLabelledBy, ariaOwns, defineComponent, disclosureTrigger, isRecord, listSurface, optionRow } from "@spinjs/components/runtime";
|
|
4
4
|
// src/cascade-select/cascade.presentation.ts
|
|
5
5
|
/** Path segments join with a comma in ids. */
|
|
6
6
|
const SEP = ",";
|
|
@@ -122,7 +122,7 @@ const itemHandlers = (scope, item) => {
|
|
|
122
122
|
if (hit !== void 0) return hit;
|
|
123
123
|
const made = {
|
|
124
124
|
onClick: () => {
|
|
125
|
-
if (item.disabled || !isInteractive
|
|
125
|
+
if (item.disabled || !isInteractive(scope)) return;
|
|
126
126
|
scope.send({
|
|
127
127
|
type: "ITEM_CLICK",
|
|
128
128
|
value: [...item.path],
|
|
@@ -130,7 +130,7 @@ const itemHandlers = (scope, item) => {
|
|
|
130
130
|
});
|
|
131
131
|
},
|
|
132
132
|
onPointerMove: (event) => {
|
|
133
|
-
if (!isInteractive
|
|
133
|
+
if (!isInteractive(scope) || item.disabled || event.pointerType !== "mouse") return;
|
|
134
134
|
scope.send({
|
|
135
135
|
type: "ITEM_POINTER_ENTER",
|
|
136
136
|
value: [...item.path],
|
|
@@ -138,7 +138,7 @@ const itemHandlers = (scope, item) => {
|
|
|
138
138
|
});
|
|
139
139
|
},
|
|
140
140
|
onDoubleClick: () => {
|
|
141
|
-
if (item.disabled || !isInteractive
|
|
141
|
+
if (item.disabled || !isInteractive(scope)) return;
|
|
142
142
|
scope.send({ type: "CLOSE" });
|
|
143
143
|
}
|
|
144
144
|
};
|
|
@@ -150,7 +150,7 @@ const fieldsetDisabled = (root) => {
|
|
|
150
150
|
return fieldset !== null && fieldset.hasAttribute("disabled");
|
|
151
151
|
};
|
|
152
152
|
const disabledOf = (scope) => scope.context.disabled || fieldsetDisabled(scope.root);
|
|
153
|
-
const isInteractive
|
|
153
|
+
const isInteractive = (scope) => !(disabledOf(scope) || scope.context.readOnly);
|
|
154
154
|
const highlightPath = (scope, path) => {
|
|
155
155
|
scope.send({
|
|
156
156
|
type: "HIGHLIGHTED_VALUE_SET",
|
|
@@ -263,7 +263,7 @@ const dismissSelf = (scope, restoreFocus) => {
|
|
|
263
263
|
});
|
|
264
264
|
};
|
|
265
265
|
const onTriggerKeydown = (scope, event) => {
|
|
266
|
-
if (event.defaultPrevented || !isInteractive
|
|
266
|
+
if (event.defaultPrevented || !isInteractive(scope)) return;
|
|
267
267
|
const forward = scope.context.dir === "rtl" ? "ArrowLeft" : "ArrowRight";
|
|
268
268
|
const back = scope.context.dir === "rtl" ? "ArrowRight" : "ArrowLeft";
|
|
269
269
|
const openWithEdge = (end) => {
|
|
@@ -302,7 +302,7 @@ const onTriggerKeydown = (scope, event) => {
|
|
|
302
302
|
event.preventDefault();
|
|
303
303
|
};
|
|
304
304
|
const onContentKeydown = (scope, event) => {
|
|
305
|
-
if (event.defaultPrevented || !isInteractive
|
|
305
|
+
if (event.defaultPrevented || !isInteractive(scope)) return;
|
|
306
306
|
const forward = scope.context.dir === "rtl" ? "ArrowLeft" : "ArrowRight";
|
|
307
307
|
const back = scope.context.dir === "rtl" ? "ArrowRight" : "ArrowLeft";
|
|
308
308
|
switch (event.key) {
|
|
@@ -465,7 +465,7 @@ const def = {
|
|
|
465
465
|
dir: scope.context.dir,
|
|
466
466
|
htmlFor: scope.id("hiddenInput"),
|
|
467
467
|
onClick: (event) => {
|
|
468
|
-
if (event.defaultPrevented || !isInteractive
|
|
468
|
+
if (event.defaultPrevented || !isInteractive(scope)) return;
|
|
469
469
|
scope.send({ type: "TRIGGER_FOCUS" });
|
|
470
470
|
},
|
|
471
471
|
"data-state": scope.state === "open" ? "open" : "closed",
|
|
@@ -490,7 +490,7 @@ const def = {
|
|
|
490
490
|
...ariaLabelledBy(scope, { part: "label" }),
|
|
491
491
|
disabled: disabledOf(scope),
|
|
492
492
|
onClick: (event) => {
|
|
493
|
-
if (event.defaultPrevented || !isInteractive
|
|
493
|
+
if (event.defaultPrevented || !isInteractive(scope)) return;
|
|
494
494
|
scope.send({ type: "TRIGGER_CLICK" });
|
|
495
495
|
},
|
|
496
496
|
onFocus: () => scope.send({ type: "TRIGGER_FOCUS" }),
|
|
@@ -703,10 +703,10 @@ const def = {
|
|
|
703
703
|
highlightedValue: { read: (context) => [...context.highlightedValue] },
|
|
704
704
|
hasSelectedItems: { read: (context) => context.value.length > 0 },
|
|
705
705
|
empty: { read: (context) => context.value.length === 0 },
|
|
706
|
-
levels: { read: (context
|
|
706
|
+
levels: { read: (context) => levelsOf(context.collection, context.highlightedValue) }
|
|
707
707
|
},
|
|
708
708
|
methods: {
|
|
709
|
-
getLevels: { call: (context
|
|
709
|
+
getLevels: { call: (context) => levelsOf(context.collection, context.highlightedValue) },
|
|
710
710
|
getItems: { call: (_context, _state, [level]) => levelOf(level).items },
|
|
711
711
|
getItemState: { call: (context, _state, [item]) => {
|
|
712
712
|
const highlight = context.highlightedValue;
|
|
@@ -54,5 +54,4 @@ export declare function parsePaths(raw: unknown): readonly string[][];
|
|
|
54
54
|
export declare const parseCollection: (raw: unknown) => readonly CascadeNode[];
|
|
55
55
|
export declare function initial(args: CascadeArgs | undefined, authored: (name: string) => boolean): CascadeContext;
|
|
56
56
|
export declare function startOpen(raw: Record<string, unknown>): boolean;
|
|
57
|
-
export type { CascadeNode };
|
|
58
|
-
//# sourceMappingURL=cascade.state.d.ts.map
|
|
57
|
+
export type { CascadeNode };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CascadeEvents } from "./cascade.events.js";
|
|
2
2
|
import { CascadeContext } from "./cascade.state.js";
|
|
3
|
-
import { AssignFor, GuardFor } from "@spinjs/
|
|
3
|
+
import { AssignFor, GuardFor } from "@spinjs/components/fsm";
|
|
4
4
|
type CascadeAssign<K extends keyof CascadeEvents = keyof CascadeEvents> = AssignFor<CascadeContext, CascadeEvents, K>;
|
|
5
5
|
type CascadeGuard<K extends keyof CascadeEvents = keyof CascadeEvents> = GuardFor<CascadeContext, CascadeEvents, K>;
|
|
6
6
|
export declare const restoresFocus: CascadeGuard;
|
|
@@ -17,5 +17,4 @@ export declare const hoverHighlightGuard: CascadeGuard;
|
|
|
17
17
|
export declare const hoverHighlightAssign: CascadeAssign<"ITEM_POINTER_ENTER">;
|
|
18
18
|
export declare const itemClearAssign: CascadeAssign<"ITEM_CLEAR">;
|
|
19
19
|
export declare const clearTriggerAssign: CascadeAssign<"CLEAR_TRIGGER_CLICK">;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=cascade.transitions.d.ts.map
|
|
20
|
+
export {};
|
|
@@ -8,32 +8,34 @@ const machine = cascade({
|
|
|
8
8
|
</script>
|
|
9
9
|
<div class="relative w-64 max-w-full" {...machine.getRootProps()}>
|
|
10
10
|
<label
|
|
11
|
-
class={["block
|
|
11
|
+
class={["block transition-opacity duration-fast ease-decelerate", { "opacity-50": machine.disabled }]}
|
|
12
12
|
{...machine.getLabelProps()}>Region</label>
|
|
13
13
|
|
|
14
14
|
<div class="flex items-center gap-1" {...machine.getControlProps()}>
|
|
15
15
|
<button
|
|
16
|
-
class={["
|
|
16
|
+
class={["bare flex h-8 min-w-0 flex-1 items-center gap-2 rounded-md border bg-field px-3 type-label transition-colors duration-fast ease-decelerate hover:border-strong", { "border-strong bg-surface-raised": machine.open, "ring-2 ring-border-strong": machine.focused, "opacity-50 cursor-not-allowed": machine.disabled }]}
|
|
17
17
|
{...machine.getTriggerProps()}
|
|
18
18
|
>
|
|
19
19
|
<span class="min-w-0 flex-1 truncate text-left"
|
|
20
20
|
{...machine.getValueTextProps()}>
|
|
21
|
+
<span class="text-muted" hidden={machine.value.length > 0}>Select region…</span>
|
|
21
22
|
<template for={machine.getValueTextRows()} as={row} key={row.value}>
|
|
22
23
|
<span>{row.value}</span>
|
|
23
24
|
</template>
|
|
24
25
|
</span>
|
|
25
26
|
<span
|
|
26
27
|
aria-hidden="true"
|
|
27
|
-
class={["shrink-0 text-
|
|
28
|
+
class={["shrink-0 text-muted transition-transform duration-fast ease-decelerate", { "rotate-180": machine.open }]}
|
|
28
29
|
{...machine.getIndicatorProps()}
|
|
29
|
-
><span class="i-lucide-chevron-down
|
|
30
|
+
><span class="i-lucide-chevron-down icon-sm" aria-hidden="true"></span></span>
|
|
30
31
|
</button>
|
|
31
32
|
<button
|
|
32
33
|
aria-hidden="true"
|
|
33
34
|
tabindex="-1"
|
|
34
|
-
|
|
35
|
+
hidden={machine.value.length === 0}
|
|
36
|
+
class="ghost icon s-sm flex h-6 w-6 shrink-0 items-center justify-center text-muted hover:bg-surface"
|
|
35
37
|
{...machine.getClearTriggerProps()}
|
|
36
|
-
><span class="i-lucide-x
|
|
38
|
+
><span class="i-lucide-x icon-sm" aria-hidden="true"></span></button>
|
|
37
39
|
</div>
|
|
38
40
|
|
|
39
41
|
<div
|
|
@@ -51,21 +53,21 @@ const machine = cascade({
|
|
|
51
53
|
>
|
|
52
54
|
<template for={machine.getItems(level)} as={row} key={row.key}>
|
|
53
55
|
<div
|
|
54
|
-
class="bare flex cursor-default items-center gap-2 rounded-md px-2 py-1
|
|
56
|
+
class="bare flex cursor-default items-center gap-2 rounded-md px-2 py-1 type-body transition-colors duration-fast ease-decelerate"
|
|
55
57
|
{...machine.getItemProps(row)}
|
|
56
58
|
>
|
|
57
59
|
<span class="min-w-0 flex-1 truncate"
|
|
58
60
|
{...machine.getItemTextProps(row)}>{row.label}</span>
|
|
59
61
|
<span
|
|
60
62
|
aria-hidden="true"
|
|
61
|
-
class="shrink-0 text-
|
|
63
|
+
class="shrink-0 text-muted"
|
|
62
64
|
hidden={!row.hasChildren}
|
|
63
|
-
><span class="i-lucide-chevron-right
|
|
65
|
+
><span class="i-lucide-chevron-right type-caption" aria-hidden="true"></span></span>
|
|
64
66
|
<span
|
|
65
67
|
aria-hidden="true"
|
|
66
|
-
class="shrink-0 text-
|
|
68
|
+
class="shrink-0 text-primary"
|
|
67
69
|
{...machine.getItemIndicatorProps(row)}
|
|
68
|
-
><span class="i-lucide-check
|
|
70
|
+
><span class="i-lucide-check type-caption" aria-hidden="true"></span></span>
|
|
69
71
|
</div>
|
|
70
72
|
</template>
|
|
71
73
|
</panel-list>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/cascade-select/examples/basic.html
|
|
2
|
+
var basic_default = "<script lang=\"ts\">\nimport { cascade } from \"../cascade.presentation.ts\";\n\nconst machine = cascade({\n collection:\n '[{\"value\":\"asia\",\"label\":\"Asia\",\"children\":[{\"value\":\"india\",\"label\":\"India\"},{\"value\":\"japan\",\"label\":\"Japan\"}]},{\"value\":\"europe\",\"label\":\"Europe\",\"children\":[{\"value\":\"france\",\"label\":\"France\"},{\"value\":\"germany\",\"label\":\"Germany\"}]}]',\n});\n<\/script>\n<div class=\"relative w-64 max-w-full\" {...machine.getRootProps()}>\n <label\n class={[\"block transition-opacity duration-fast ease-decelerate\", { \"opacity-50\": machine.disabled }]}\n {...machine.getLabelProps()}>Region</label>\n\n <div class=\"flex items-center gap-1\" {...machine.getControlProps()}>\n <button\n class={[\"bare flex h-8 min-w-0 flex-1 items-center gap-2 rounded-md border bg-field px-3 type-label transition-colors duration-fast ease-decelerate hover:border-strong\", { \"border-strong bg-surface-raised\": machine.open, \"ring-2 ring-border-strong\": machine.focused, \"opacity-50 cursor-not-allowed\": machine.disabled }]}\n {...machine.getTriggerProps()}\n >\n <span class=\"min-w-0 flex-1 truncate text-left\"\n {...machine.getValueTextProps()}>\n <span class=\"text-muted\" hidden={machine.value.length > 0}>Select region…</span>\n <template for={machine.getValueTextRows()} as={row} key={row.value}>\n <span>{row.value}</span>\n </template>\n </span>\n <span\n aria-hidden=\"true\"\n class={[\"shrink-0 text-muted transition-transform duration-fast ease-decelerate\", { \"rotate-180\": machine.open }]}\n {...machine.getIndicatorProps()}\n ><span class=\"i-lucide-chevron-down icon-sm\" aria-hidden=\"true\"></span></span>\n </button>\n <button\n aria-hidden=\"true\"\n tabindex=\"-1\"\n hidden={machine.value.length === 0}\n class=\"ghost icon s-sm flex h-6 w-6 shrink-0 items-center justify-center text-muted hover:bg-surface\"\n {...machine.getClearTriggerProps()}\n ><span class=\"i-lucide-x icon-sm\" aria-hidden=\"true\"></span></button>\n </div>\n\n <div\n class={[\"absolute z-dropdown inset-x-0 top-full mt-1 origin-top-left transition duration-fast ease-decelerate\", { \"pointer-events-none invisible scale-95 opacity-0\": !machine.open }]}\n {...machine.getPositionerProps()}\n >\n <panel\n class=\"flex w-max max-w-[calc(100vw-2rem)] gap-1 overflow-x-auto\"\n {...machine.getContentProps()}\n >\n <template for={machine.getLevels()} as={level} key={level.key}>\n <panel-list\n class=\"max-h-56 w-40 overflow-y-auto overscroll-contain\"\n {...machine.getListProps(level)}\n >\n <template for={machine.getItems(level)} as={row} key={row.key}>\n <div\n class=\"bare flex cursor-default items-center gap-2 rounded-md px-2 py-1 type-body transition-colors duration-fast ease-decelerate\"\n {...machine.getItemProps(row)}\n >\n <span class=\"min-w-0 flex-1 truncate\"\n {...machine.getItemTextProps(row)}>{row.label}</span>\n <span\n aria-hidden=\"true\"\n class=\"shrink-0 text-muted\"\n hidden={!row.hasChildren}\n ><span class=\"i-lucide-chevron-right type-caption\" aria-hidden=\"true\"></span></span>\n <span\n aria-hidden=\"true\"\n class=\"shrink-0 text-primary\"\n {...machine.getItemIndicatorProps(row)}\n ><span class=\"i-lucide-check type-caption\" aria-hidden=\"true\"></span></span>\n </div>\n </template>\n </panel-list>\n </template>\n </panel>\n </div>\n\n <input {...machine.getHiddenInputProps()} />\n</div>\n";
|
|
3
|
+
export { basic_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=basic.html.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ColorChannel } from "./color.js";
|
|
1
2
|
import { ColorFormat } from "./color-picker.state.js";
|
|
2
|
-
import { EventUnion } from "@spinjs/
|
|
3
|
-
import { ColorChannel } from "@zag-js/color-utils";
|
|
3
|
+
import { EventUnion } from "@spinjs/components/fsm";
|
|
4
4
|
export interface ColorPickerEvents {
|
|
5
5
|
"VALUE.SET": {
|
|
6
6
|
value: string;
|
|
@@ -79,5 +79,4 @@ export interface ColorPickerOpenChange {
|
|
|
79
79
|
}
|
|
80
80
|
export interface ColorPickerFormatChange {
|
|
81
81
|
readonly format: ColorFormat;
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=color-picker.events.d.ts.map
|
|
82
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
/** Color-picker machine: chart only. */
|
|
1
2
|
import { ColorPickerArgs, ColorPickerContext, ColorPickerState } from "./color-picker.state.js";
|
|
2
3
|
import { ColorPickerEvents } from "./color-picker.events.js";
|
|
3
|
-
import { Machine } from "@spinjs/
|
|
4
|
-
export declare function colorPicker(args: ColorPickerArgs | undefined, authored: (name: string) => boolean): Machine<ColorPickerContext, ColorPickerEvents, ColorPickerState>;
|
|
5
|
-
//# sourceMappingURL=color-picker.machine.d.ts.map
|
|
4
|
+
import { Machine } from "@spinjs/components/fsm";
|
|
5
|
+
export declare function colorPicker(args: ColorPickerArgs | undefined, authored: (name: string) => boolean): Machine<ColorPickerContext, ColorPickerEvents, ColorPickerState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initial } from "./color-picker.state.js";
|
|
2
2
|
import { boundAreaValue, boundChannelValue, clearActiveChannel, isOpenControlled, setActiveChannel, setAreaFromPoint, setChannelFromInput, setChannelFromPoint, setFormat, setSliderChannel, setValue, setValueFromSwatch, stepAreaValue, stepChannelValue } from "./color-picker.transitions.js";
|
|
3
|
-
import { createMachine } from "@spinjs/
|
|
3
|
+
import { createMachine } from "@spinjs/components/fsm";
|
|
4
4
|
// src/color-picker/color-picker.machine.ts
|
|
5
5
|
/** Color-picker machine: chart only. */
|
|
6
6
|
const config = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { ColorChannel } from "./color.js";
|
|
1
2
|
import { ColorFormat, ColorPickerArgs, ColorPickerContext, ColorPickerState } from "./color-picker.state.js";
|
|
2
3
|
import { ColorPickerEvents } from "./color-picker.events.js";
|
|
3
|
-
import { ApiOf, ViewFor } from "@spinjs/runtime";
|
|
4
|
-
import {
|
|
5
|
-
import { DragDelta, DragPress } from "@spinjs/runtime/actions";
|
|
4
|
+
import { ApiOf, ViewFor } from "@spinjs/components/runtime";
|
|
5
|
+
import { DragDelta, DragPress } from "@spinjs/components/actions";
|
|
6
6
|
/**
|
|
7
7
|
* Color-picker definition: the DOM contract as data.
|
|
8
8
|
*
|
|
@@ -49,7 +49,7 @@ export interface ColorPickerFormatChange {
|
|
|
49
49
|
type ScopeLike = ViewFor<ColorPickerContext, ColorPickerEvents, ColorPickerState>;
|
|
50
50
|
export declare const def: {
|
|
51
51
|
name: string;
|
|
52
|
-
machine: (args: ColorPickerArgs, authored: (name: string) => boolean) => import("@spinjs/runtime").Machine<ColorPickerContext, ColorPickerEvents, ColorPickerState>;
|
|
52
|
+
machine: (args: ColorPickerArgs, authored: (name: string) => boolean) => import("@spinjs/components/runtime").Machine<ColorPickerContext, ColorPickerEvents, ColorPickerState>;
|
|
53
53
|
start: (raw: Record<string, unknown>) => "idle" | "active";
|
|
54
54
|
reconcile: ({ context, parsed, authored, send, state }: {
|
|
55
55
|
readonly context: ColorPickerContext;
|
|
@@ -62,24 +62,24 @@ export declare const def: {
|
|
|
62
62
|
}) => boolean;
|
|
63
63
|
parts: {
|
|
64
64
|
root: {
|
|
65
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
65
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
66
66
|
dir: "ltr" | "rtl";
|
|
67
67
|
"data-disabled": string | undefined;
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
label: {
|
|
71
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
71
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
72
72
|
dir: "ltr" | "rtl";
|
|
73
73
|
"data-disabled": string | undefined;
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
control: {
|
|
77
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
77
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
78
78
|
"data-disabled": string | undefined;
|
|
79
79
|
};
|
|
80
80
|
};
|
|
81
81
|
trigger: {
|
|
82
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
82
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
83
83
|
"data-state": string;
|
|
84
84
|
"data-disabled": string | undefined;
|
|
85
85
|
onClick: () => void;
|
|
@@ -90,12 +90,12 @@ export declare const def: {
|
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
positioner: {
|
|
93
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
93
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
94
94
|
"data-state": string;
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
content: {
|
|
98
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
98
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
99
99
|
role: string | undefined;
|
|
100
100
|
tabindex: string;
|
|
101
101
|
dir: "ltr" | "rtl";
|
|
@@ -109,13 +109,13 @@ export declare const def: {
|
|
|
109
109
|
};
|
|
110
110
|
valueText: {
|
|
111
111
|
id: string;
|
|
112
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
112
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
113
113
|
dir: "ltr" | "rtl";
|
|
114
114
|
"data-disabled": string | undefined;
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
117
|
area: {
|
|
118
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>, arg: unknown) => {
|
|
118
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>, arg: unknown) => {
|
|
119
119
|
role: string;
|
|
120
120
|
"data-disabled": string | undefined;
|
|
121
121
|
"data-channel-x": ColorChannel;
|
|
@@ -131,7 +131,7 @@ export declare const def: {
|
|
|
131
131
|
};
|
|
132
132
|
areaBackground: {
|
|
133
133
|
id: string;
|
|
134
|
-
attrs: (scope: ScopeLike
|
|
134
|
+
attrs: (scope: ScopeLike) => {
|
|
135
135
|
"data-disabled": string | undefined;
|
|
136
136
|
style: {
|
|
137
137
|
backgroundColor: string;
|
|
@@ -248,7 +248,7 @@ export declare const def: {
|
|
|
248
248
|
};
|
|
249
249
|
eyeDropperTrigger: {
|
|
250
250
|
id: string;
|
|
251
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
251
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
252
252
|
type: string;
|
|
253
253
|
dir: "ltr" | "rtl";
|
|
254
254
|
"aria-label": string;
|
|
@@ -259,7 +259,7 @@ export declare const def: {
|
|
|
259
259
|
};
|
|
260
260
|
formatSelect: {
|
|
261
261
|
id: string;
|
|
262
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
262
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
263
263
|
dir: "ltr" | "rtl";
|
|
264
264
|
"data-disabled": string | undefined;
|
|
265
265
|
value: ColorFormat;
|
|
@@ -268,7 +268,7 @@ export declare const def: {
|
|
|
268
268
|
};
|
|
269
269
|
swatchGroup: {
|
|
270
270
|
id: string;
|
|
271
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
271
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ColorPickerContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ColorPickerEvents>, ColorPickerState>) => {
|
|
272
272
|
id: string;
|
|
273
273
|
role: string;
|
|
274
274
|
};
|
|
@@ -397,6 +397,5 @@ export declare const def: {
|
|
|
397
397
|
};
|
|
398
398
|
};
|
|
399
399
|
export type ColorPickerApi = ApiOf<typeof def>;
|
|
400
|
-
export declare const colorPicker: import("@spinjs/runtime").DefinedComponent<ColorPickerApi, ColorPickerArgs>;
|
|
401
|
-
export {};
|
|
402
|
-
//# sourceMappingURL=color-picker.presentation.d.ts.map
|
|
400
|
+
export declare const colorPicker: import("@spinjs/components/runtime").DefinedComponent<ColorPickerApi, ColorPickerArgs>;
|
|
401
|
+
export {};
|