@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/color-picker/examples/hue-wheel.html
|
|
2
|
+
var hue_wheel_default = "<script lang=\"ts\">\nimport { colorPicker } from \"../color-picker.presentation.ts\";\n\nconst machine = colorPicker({\n value: \"#8b5cf6\",\n inline: true,\n});\n<\/script>\n<div\n class=\"mx-auto w-full max-w-[16rem] rounded-lg border bg-surface-raised p-4 shadow-sm\"\n {...machine.getRootProps()}>\n <div class=\"mb-3 flex items-center justify-between\">\n <label\n {...machine.getLabelProps()}>Spectrum</label>\n <span class=\"type-code text-muted\"\n {...machine.getValueTextProps()}>{machine.valueAsString}</span>\n </div>\n <div class=\"flex flex-col gap-3\" {...machine.getContentProps()}>\n <div\n class=\"relative h-36 w-full rounded-lg border\"\n {...machine.getAreaProps()}>\n <div class=\"absolute inset-0 rounded-lg\"\n {...machine.getAreaBackgroundProps()}>\n <div class=\"absolute inset-0 rounded-lg\"\n style=\"background-image: linear-gradient(to right, #fff, rgba(255, 255, 255, 0))\"></div>\n <div class=\"absolute inset-0 rounded-lg\"\n style=\"background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0))\"></div>\n </div>\n <div\n class=\"absolute h-4 w-4 rounded-full border-2 border-solid border-on-primary shadow-lg\"\n {...machine.getAreaThumbProps()}></div>\n </div>\n <div class=\"flex items-center gap-2\"\n {...machine.getChannelSliderProps({ channel: \"hue\" })}>\n <span class=\"w-10 type-caption text-muted\"\n {...machine.getChannelSliderLabelProps({ channel: \"hue\" })}>Hue</span>\n <div\n class=\"relative h-3 flex-1 rounded-full border\"\n {...machine.getChannelSliderTrackProps({ channel: \"hue\" })}>\n <div\n class=\"absolute h-4 w-4 rounded-full border-2 border-solid border-on-primary shadow-lg\"\n {...machine.getChannelSliderThumbProps({ channel: \"hue\" })}></div>\n </div>\n <span class=\"w-8 text-right type-code text-muted\"\n {...machine.getChannelSliderValueTextProps({ channel: \"hue\" })}>{machine.getChannelValue(\"hue\")}</span>\n </div>\n <div class=\"flex items-center gap-2\">\n <span aria-hidden=\"true\"\n class=\"h-7 w-7 shrink-0 rounded-md border\"\n {...machine.getSwatchProps({ value: machine.valueAsString })}></span>\n <input\n class=\"w-full\"\n {...machine.getChannelInputProps({ channel: \"hex\" })} />\n </div>\n <input type=\"hidden\" {...machine.getHiddenInputProps()} />\n </div>\n</div>\n";
|
|
3
|
+
export { hue_wheel_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=hue-wheel.html.js.map
|
|
@@ -8,18 +8,18 @@ const machine = colorPicker({
|
|
|
8
8
|
});
|
|
9
9
|
</script>
|
|
10
10
|
<div
|
|
11
|
-
class="mx-auto w-full max-w-[16rem] rounded-lg border
|
|
11
|
+
class="mx-auto w-full max-w-[16rem] rounded-lg border bg-surface-raised p-4 shadow-sm"
|
|
12
12
|
{...machine.getRootProps()}>
|
|
13
13
|
<div class="mb-3 flex items-center justify-between">
|
|
14
|
-
<label
|
|
14
|
+
<label
|
|
15
15
|
{...machine.getLabelProps()}>Inline Picker</label>
|
|
16
16
|
<span
|
|
17
|
-
class="rounded-md border
|
|
17
|
+
class="rounded-md border bg-surface px-2 py-1 type-code"
|
|
18
18
|
{...machine.getValueTextProps()}>{machine.valueAsString}</span>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="flex flex-col gap-3" {...machine.getContentProps()}>
|
|
21
21
|
<div
|
|
22
|
-
class="relative h-40 w-full rounded-md border
|
|
22
|
+
class="relative h-40 w-full rounded-md border"
|
|
23
23
|
{...machine.getAreaProps()}>
|
|
24
24
|
<div class="absolute inset-0 rounded-md"
|
|
25
25
|
{...machine.getAreaBackgroundProps()}>
|
|
@@ -34,10 +34,10 @@ const machine = colorPicker({
|
|
|
34
34
|
</div>
|
|
35
35
|
<div class="flex items-center gap-2"
|
|
36
36
|
{...machine.getChannelSliderProps({ channel: "hue" })}>
|
|
37
|
-
<span class="w-12
|
|
37
|
+
<span class="w-12 type-caption text-muted"
|
|
38
38
|
{...machine.getChannelSliderLabelProps({ channel: "hue" })}>Hue</span>
|
|
39
39
|
<div
|
|
40
|
-
class="relative h-3 flex-1 rounded-full border
|
|
40
|
+
class="relative h-3 flex-1 rounded-full border"
|
|
41
41
|
{...machine.getChannelSliderTrackProps({ channel: "hue" })}>
|
|
42
42
|
<div
|
|
43
43
|
class="absolute h-4 w-4 rounded-full border-2 border-solid border-on-primary shadow-lg"
|
|
@@ -46,10 +46,10 @@ const machine = colorPicker({
|
|
|
46
46
|
</div>
|
|
47
47
|
<div class="flex items-center gap-2"
|
|
48
48
|
{...machine.getChannelSliderProps({ channel: "alpha" })}>
|
|
49
|
-
<span class="w-12
|
|
49
|
+
<span class="w-12 type-caption text-muted"
|
|
50
50
|
{...machine.getChannelSliderLabelProps({ channel: "alpha" })}>Alpha</span>
|
|
51
51
|
<div
|
|
52
|
-
class="relative h-3 flex-1 rounded-full border
|
|
52
|
+
class="relative h-3 flex-1 rounded-full border"
|
|
53
53
|
{...machine.getChannelSliderTrackProps({ channel: "alpha" })}>
|
|
54
54
|
<div
|
|
55
55
|
class="absolute h-4 w-4 rounded-full border-2 border-solid border-on-primary shadow-lg"
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/color-picker/examples/inline.html
|
|
2
|
+
var inline_default = "<script lang=\"ts\">\nimport { colorPicker } from \"../color-picker.presentation.ts\";\n\nconst machine = colorPicker({\n value: \"#10b981ff\",\n format: \"hexa\",\n inline: true,\n});\n<\/script>\n<div\n class=\"mx-auto w-full max-w-[16rem] rounded-lg border bg-surface-raised p-4 shadow-sm\"\n {...machine.getRootProps()}>\n <div class=\"mb-3 flex items-center justify-between\">\n <label\n {...machine.getLabelProps()}>Inline Picker</label>\n <span\n class=\"rounded-md border bg-surface px-2 py-1 type-code\"\n {...machine.getValueTextProps()}>{machine.valueAsString}</span>\n </div>\n <div class=\"flex flex-col gap-3\" {...machine.getContentProps()}>\n <div\n class=\"relative h-40 w-full rounded-md border\"\n {...machine.getAreaProps()}>\n <div class=\"absolute inset-0 rounded-md\"\n {...machine.getAreaBackgroundProps()}>\n <div class=\"absolute inset-0 rounded-md\"\n style=\"background-image: linear-gradient(to right, #fff, rgba(255, 255, 255, 0))\"></div>\n <div class=\"absolute inset-0 rounded-md\"\n style=\"background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0))\"></div>\n </div>\n <div\n class=\"absolute h-4 w-4 rounded-full border-2 border-solid border-on-primary shadow-lg\"\n {...machine.getAreaThumbProps()}></div>\n </div>\n <div class=\"flex items-center gap-2\"\n {...machine.getChannelSliderProps({ channel: \"hue\" })}>\n <span class=\"w-12 type-caption text-muted\"\n {...machine.getChannelSliderLabelProps({ channel: \"hue\" })}>Hue</span>\n <div\n class=\"relative h-3 flex-1 rounded-full border\"\n {...machine.getChannelSliderTrackProps({ channel: \"hue\" })}>\n <div\n class=\"absolute h-4 w-4 rounded-full border-2 border-solid border-on-primary shadow-lg\"\n {...machine.getChannelSliderThumbProps({ channel: \"hue\" })}></div>\n </div>\n </div>\n <div class=\"flex items-center gap-2\"\n {...machine.getChannelSliderProps({ channel: \"alpha\" })}>\n <span class=\"w-12 type-caption text-muted\"\n {...machine.getChannelSliderLabelProps({ channel: \"alpha\" })}>Alpha</span>\n <div\n class=\"relative h-3 flex-1 rounded-full border\"\n {...machine.getChannelSliderTrackProps({ channel: \"alpha\" })}>\n <div\n class=\"absolute h-4 w-4 rounded-full border-2 border-solid border-on-primary shadow-lg\"\n {...machine.getChannelSliderThumbProps({ channel: \"alpha\" })}></div>\n </div>\n </div>\n <input type=\"hidden\" {...machine.getHiddenInputProps()} />\n </div>\n</div>\n";
|
|
3
|
+
export { inline_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=inline.html.js.map
|
|
@@ -7,17 +7,17 @@ const machine = colorPicker({
|
|
|
7
7
|
});
|
|
8
8
|
</script>
|
|
9
9
|
<div
|
|
10
|
-
class="mx-auto w-full max-w-[16rem] rounded-lg border
|
|
10
|
+
class="mx-auto w-full max-w-[16rem] rounded-lg border bg-surface-raised p-4 shadow-sm"
|
|
11
11
|
{...machine.getRootProps()}>
|
|
12
12
|
<div class="mb-3 flex items-center justify-between">
|
|
13
|
-
<label
|
|
13
|
+
<label
|
|
14
14
|
{...machine.getLabelProps()}>Brand Swatches</label>
|
|
15
|
-
<span class="
|
|
15
|
+
<span class="type-code text-muted"
|
|
16
16
|
{...machine.getValueTextProps()}>{machine.valueAsString}</span>
|
|
17
17
|
</div>
|
|
18
18
|
<div class="flex flex-col gap-3" {...machine.getContentProps()}>
|
|
19
19
|
<div
|
|
20
|
-
class="relative h-36 w-full rounded-md border
|
|
20
|
+
class="relative h-36 w-full rounded-md border"
|
|
21
21
|
{...machine.getAreaProps()}>
|
|
22
22
|
<div class="absolute inset-0 rounded-md"
|
|
23
23
|
{...machine.getAreaBackgroundProps()}>
|
|
@@ -31,17 +31,17 @@ const machine = colorPicker({
|
|
|
31
31
|
{...machine.getAreaThumbProps()}></div>
|
|
32
32
|
</div>
|
|
33
33
|
<div class="grid grid-cols-6 gap-2" {...machine.getSwatchGroupProps()}>
|
|
34
|
-
<button class="bare h-6 w-6 rounded-md border
|
|
34
|
+
<button class="bare h-6 w-6 rounded-md border"
|
|
35
35
|
{...machine.getSwatchTriggerProps({ value: "#ef4444" })}></button>
|
|
36
|
-
<button class="bare h-6 w-6 rounded-md border
|
|
36
|
+
<button class="bare h-6 w-6 rounded-md border"
|
|
37
37
|
{...machine.getSwatchTriggerProps({ value: "#f59e0b" })}></button>
|
|
38
|
-
<button class="bare h-6 w-6 rounded-md border
|
|
38
|
+
<button class="bare h-6 w-6 rounded-md border"
|
|
39
39
|
{...machine.getSwatchTriggerProps({ value: "#10b981" })}></button>
|
|
40
|
-
<button class="bare h-6 w-6 rounded-md border
|
|
40
|
+
<button class="bare h-6 w-6 rounded-md border"
|
|
41
41
|
{...machine.getSwatchTriggerProps({ value: "#3b82f6" })}></button>
|
|
42
|
-
<button class="bare h-6 w-6 rounded-md border
|
|
42
|
+
<button class="bare h-6 w-6 rounded-md border"
|
|
43
43
|
{...machine.getSwatchTriggerProps({ value: "#8b5cf6" })}></button>
|
|
44
|
-
<button class="bare h-6 w-6 rounded-md border
|
|
44
|
+
<button class="bare h-6 w-6 rounded-md border"
|
|
45
45
|
{...machine.getSwatchTriggerProps({ value: "#ec4899" })}></button>
|
|
46
46
|
</div>
|
|
47
47
|
<input type="hidden" {...machine.getHiddenInputProps()} />
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/color-picker/examples/with-presets.html
|
|
2
|
+
var with_presets_default = "<script lang=\"ts\">\nimport { colorPicker } from \"../color-picker.presentation.ts\";\n\nconst machine = colorPicker({\n value: \"#3b82f6\",\n inline: true,\n});\n<\/script>\n<div\n class=\"mx-auto w-full max-w-[16rem] rounded-lg border bg-surface-raised p-4 shadow-sm\"\n {...machine.getRootProps()}>\n <div class=\"mb-3 flex items-center justify-between\">\n <label\n {...machine.getLabelProps()}>Brand Swatches</label>\n <span class=\"type-code text-muted\"\n {...machine.getValueTextProps()}>{machine.valueAsString}</span>\n </div>\n <div class=\"flex flex-col gap-3\" {...machine.getContentProps()}>\n <div\n class=\"relative h-36 w-full rounded-md border\"\n {...machine.getAreaProps()}>\n <div class=\"absolute inset-0 rounded-md\"\n {...machine.getAreaBackgroundProps()}>\n <div class=\"absolute inset-0 rounded-md\"\n style=\"background-image: linear-gradient(to right, #fff, rgba(255, 255, 255, 0))\"></div>\n <div class=\"absolute inset-0 rounded-md\"\n style=\"background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0))\"></div>\n </div>\n <div\n class=\"absolute h-4 w-4 rounded-full border-2 border-solid border-on-primary shadow-lg\"\n {...machine.getAreaThumbProps()}></div>\n </div>\n <div class=\"grid grid-cols-6 gap-2\" {...machine.getSwatchGroupProps()}>\n <button class=\"bare h-6 w-6 rounded-md border\"\n {...machine.getSwatchTriggerProps({ value: \"#ef4444\" })}></button>\n <button class=\"bare h-6 w-6 rounded-md border\"\n {...machine.getSwatchTriggerProps({ value: \"#f59e0b\" })}></button>\n <button class=\"bare h-6 w-6 rounded-md border\"\n {...machine.getSwatchTriggerProps({ value: \"#10b981\" })}></button>\n <button class=\"bare h-6 w-6 rounded-md border\"\n {...machine.getSwatchTriggerProps({ value: \"#3b82f6\" })}></button>\n <button class=\"bare h-6 w-6 rounded-md border\"\n {...machine.getSwatchTriggerProps({ value: \"#8b5cf6\" })}></button>\n <button class=\"bare h-6 w-6 rounded-md border\"\n {...machine.getSwatchTriggerProps({ value: \"#ec4899\" })}></button>\n </div>\n <input type=\"hidden\" {...machine.getHiddenInputProps()} />\n </div>\n</div>\n";
|
|
3
|
+
export { with_presets_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=with-presets.html.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventUnion } from "@spinjs/
|
|
1
|
+
import { EventUnion } from "@spinjs/components/fsm";
|
|
2
2
|
export interface ComboboxEvents {
|
|
3
3
|
"SELECTED_ITEMS.SYNC": {};
|
|
4
4
|
"HIGHLIGHTED_VALUE.SET": {
|
|
@@ -57,5 +57,4 @@ export interface ComboboxEvents {
|
|
|
57
57
|
"LAYER.INTERACT_OUTSIDE": {};
|
|
58
58
|
"CHILDREN_CHANGE": {};
|
|
59
59
|
}
|
|
60
|
-
export type ComboboxEvent = EventUnion<ComboboxEvents>;
|
|
61
|
-
//# sourceMappingURL=combobox.events.d.ts.map
|
|
60
|
+
export type ComboboxEvent = EventUnion<ComboboxEvents>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ComboboxEvents } from "./combobox.events.js";
|
|
2
1
|
import { ComboboxArgs, ComboboxContext, ComboboxState, isCustomValue, pickOutcome, stringifyValues } from "./combobox.state.js";
|
|
3
|
-
import {
|
|
2
|
+
import { ComboboxEvents } from "./combobox.events.js";
|
|
3
|
+
import { Machine } from "@spinjs/components/fsm";
|
|
4
4
|
export declare const isOpenPhase: (phase: string) => boolean;
|
|
5
5
|
export declare function combobox(args: ComboboxArgs | undefined, authored: (name: string) => boolean): Machine<ComboboxContext, ComboboxEvents, ComboboxState>;
|
|
6
|
-
export { isCustomValue, pickOutcome, stringifyValues };
|
|
7
|
-
//# sourceMappingURL=combobox.machine.d.ts.map
|
|
6
|
+
export { isCustomValue, pickOutcome, stringifyValues };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initial, isCustomValue, parseItems, parseKeys, pickOutcome, stringifyValues } from "./combobox.state.js";
|
|
2
2
|
import { clearHighlightedValue, clearInputValue, clearValue, closeOnSelect, highlightFirstItem, highlightFirstOrSelectedItem, inlineAutocomplete, isCustomValueGuard, moveHighlight, revertInputValue, revertsToValue, selectHighlightedItem, selectItem, setHighlightedValue, setInputValue } from "./combobox.transitions.js";
|
|
3
|
-
import { createMachine } from "@spinjs/
|
|
3
|
+
import { createMachine } from "@spinjs/components/fsm";
|
|
4
4
|
// src/combobox/combobox.machine.ts
|
|
5
5
|
const at = (list, index) => list.at(index) ?? null;
|
|
6
6
|
const isOpenPhase = (phase) => phase === "interacting" || phase === "suggesting";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComboboxEvents } from "./combobox.events.js";
|
|
2
1
|
import { ComboboxArgs, ComboboxContext, ComboboxRow, ComboboxState } from "./combobox.state.js";
|
|
3
|
-
import {
|
|
2
|
+
import { ComboboxEvents } from "./combobox.events.js";
|
|
3
|
+
import { ApiOf, SlotViewFor, ViewFor } from "@spinjs/components/runtime";
|
|
4
4
|
/**
|
|
5
5
|
* Combobox definition: the DOM contract as data. The collection parses
|
|
6
6
|
* once per prop identity: row objects are stable, so the `for` bindings
|
|
@@ -51,7 +51,7 @@ type SlotLike<R> = SlotViewFor<R, ComboboxContext, ComboboxEvents, ComboboxState
|
|
|
51
51
|
/** The component's public state: the names the markup may key on. */
|
|
52
52
|
export declare const def: {
|
|
53
53
|
name: string;
|
|
54
|
-
machine: (props: ComboboxArgs, authored: (name: string) => boolean) => import("@spinjs/runtime").Machine<ComboboxContext, ComboboxEvents, ComboboxState>;
|
|
54
|
+
machine: (props: ComboboxArgs, authored: (name: string) => boolean) => import("@spinjs/components/runtime").Machine<ComboboxContext, ComboboxEvents, ComboboxState>;
|
|
55
55
|
start: (props: Record<string, unknown>) => "idle" | "suggesting";
|
|
56
56
|
establish: (raw: Record<string, unknown>, authored: (name: string) => boolean) => {
|
|
57
57
|
type: string;
|
|
@@ -67,7 +67,7 @@ export declare const def: {
|
|
|
67
67
|
} & Record<string, unknown>) => void;
|
|
68
68
|
}) => boolean;
|
|
69
69
|
settled: ({ event, before, after, focus }: {
|
|
70
|
-
readonly event: import("@spinjs/runtime").AnyEvent;
|
|
70
|
+
readonly event: import("@spinjs/components/runtime").AnyEvent;
|
|
71
71
|
readonly before: {
|
|
72
72
|
readonly context: ComboboxContext;
|
|
73
73
|
readonly state: ComboboxState;
|
|
@@ -81,7 +81,7 @@ export declare const def: {
|
|
|
81
81
|
readonly id: (part: string, slot?: unknown) => string;
|
|
82
82
|
readonly focus: (part: string, slot?: unknown) => void;
|
|
83
83
|
readonly measure: (part: string, slot?: unknown) => DOMRect | null;
|
|
84
|
-
readonly send: (event: import("@spinjs/runtime").AnyEvent) => void;
|
|
84
|
+
readonly send: (event: import("@spinjs/components/runtime").AnyEvent) => void;
|
|
85
85
|
}) => void;
|
|
86
86
|
parts: {
|
|
87
87
|
root: {
|
|
@@ -151,7 +151,7 @@ export declare const def: {
|
|
|
151
151
|
};
|
|
152
152
|
};
|
|
153
153
|
trigger: {
|
|
154
|
-
attrs: (scope: import("@spinjs/runtime").PartView<unknown, ComboboxContext, Record<string, unknown>, import("@spinjs/runtime").EventUnion<ComboboxEvents>, ComboboxState>, arg: unknown) => {
|
|
154
|
+
attrs: (scope: import("@spinjs/components/runtime").PartView<unknown, ComboboxContext, Record<string, unknown>, import("@spinjs/components/runtime").EventUnion<ComboboxEvents>, ComboboxState>, arg: unknown) => {
|
|
155
155
|
"aria-label": string;
|
|
156
156
|
disabled: boolean;
|
|
157
157
|
tabIndex: number | undefined;
|
|
@@ -428,6 +428,5 @@ export declare const def: {
|
|
|
428
428
|
};
|
|
429
429
|
};
|
|
430
430
|
export type ComboboxApi = ApiOf<typeof def>;
|
|
431
|
-
export declare const combobox: import("@spinjs/runtime").DefinedComponent<ComboboxApi, ComboboxArgs>;
|
|
432
|
-
export type { ComboboxArgs, ComboboxRow };
|
|
433
|
-
//# sourceMappingURL=combobox.presentation.d.ts.map
|
|
431
|
+
export declare const combobox: import("@spinjs/components/runtime").DefinedComponent<ComboboxApi, ComboboxArgs>;
|
|
432
|
+
export type { ComboboxArgs, ComboboxRow };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { pickOutcome } from "./combobox.state.js";
|
|
2
1
|
import { combobox as combobox$1, isOpenPhase } from "./combobox.machine.js";
|
|
3
|
-
import {
|
|
2
|
+
import { pickOutcome } from "./combobox.state.js";
|
|
3
|
+
import { ariaControls, ariaHidden, ariaInvalid, ariaLabelledBy, comboboxInput, defineComponent, disclosureTrigger, isComposing, listSurface, optionRow } from "@spinjs/components/runtime";
|
|
4
4
|
// src/combobox/combobox.presentation.ts
|
|
5
5
|
const toRow = (item) => {
|
|
6
6
|
if (typeof item.value !== "string" || item.value.length === 0) return;
|
|
@@ -359,7 +359,7 @@ const def = {
|
|
|
359
359
|
autoCapitalize: "none",
|
|
360
360
|
spellCheck: false,
|
|
361
361
|
value: display,
|
|
362
|
-
...ariaInvalid(
|
|
362
|
+
...ariaInvalid(scope.context.invalid === true ? true : void 0),
|
|
363
363
|
...comboboxInput(scope, {
|
|
364
364
|
autocomplete: ctx.inputBehavior === "autocomplete" ? "both" : "list",
|
|
365
365
|
controls: { part: "content" },
|
|
@@ -76,5 +76,4 @@ export declare function initial(args: ComboboxArgs, authored: (name: string) =>
|
|
|
76
76
|
export declare const stringifyValues: (ctx: ComboboxContext, values: readonly string[]) => string;
|
|
77
77
|
export declare const pickOutcome: (ctx: ComboboxContext, value: string) => string[];
|
|
78
78
|
export declare const isCustomValue: (ctx: ComboboxContext) => boolean;
|
|
79
|
-
export { parseKeys };
|
|
80
|
-
//# sourceMappingURL=combobox.state.d.ts.map
|
|
79
|
+
export { parseKeys };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defaultTwin } from "@spinjs/runtime";
|
|
1
|
+
import { defaultTwin } from "@spinjs/components/runtime";
|
|
2
2
|
// src/combobox/combobox.state.ts
|
|
3
3
|
/** Shape raw items the way `initial` does: arrays pass through, anything
|
|
4
4
|
* else becomes empty. Shared by `initial` and the field contract, so a
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComboboxEvents } from "./combobox.events.js";
|
|
2
1
|
import { ComboboxContext } from "./combobox.state.js";
|
|
3
|
-
import {
|
|
2
|
+
import { ComboboxEvents } from "./combobox.events.js";
|
|
3
|
+
import { AssignFor, GuardFor } from "@spinjs/components/fsm";
|
|
4
4
|
type Ctx = ComboboxContext;
|
|
5
5
|
type Ev = ComboboxEvents;
|
|
6
6
|
type ComboboxAssign<K extends keyof Ev = keyof Ev> = AssignFor<Ctx, Ev, K>;
|
|
@@ -24,5 +24,4 @@ export declare const closeOnSelect: (ctx: Ctx) => boolean;
|
|
|
24
24
|
export declare const revertsToValue: (ctx: Ctx) => boolean;
|
|
25
25
|
export declare const isCustomValueGuard: GuardFor<Ctx, Ev>;
|
|
26
26
|
export declare const inlineSingleGuard: GuardFor<Ctx, Ev>;
|
|
27
|
-
export { applySelection, at, completion, inlineSingle };
|
|
28
|
-
//# sourceMappingURL=combobox.transitions.d.ts.map
|
|
27
|
+
export { applySelection, at, completion, inlineSingle };
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
|
|
7
7
|
<div class="relative w-64 max-w-full" {...machine.getRootProps()}>
|
|
8
8
|
<label
|
|
9
|
-
class={["block
|
|
9
|
+
class={["block transition-colors duration-fast ease-decelerate", { "opacity-50 cursor-not-allowed": machine.disabled, "text-primary": machine.focused }]}
|
|
10
10
|
{...machine.getLabelProps()}
|
|
11
11
|
>Fruit</label>
|
|
12
12
|
|
|
13
13
|
<div class="relative" {...machine.getControlProps()}>
|
|
14
14
|
<input
|
|
15
|
-
class={["w-full
|
|
15
|
+
class={["w-full transition-colors duration-fast ease-decelerate placeholder:text-muted", { "opacity-60 cursor-not-allowed": machine.disabled, "border-strong": machine.invalid, "border-primary": machine.open }]}
|
|
16
16
|
{...machine.getInputProps()}
|
|
17
17
|
/>
|
|
18
18
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<button
|
|
25
25
|
class={["ghost icon s-sm", { "cursor-not-allowed": machine.disabled }]}
|
|
26
26
|
{...machine.getTriggerProps()}
|
|
27
|
-
><span aria-hidden="true" class={["
|
|
27
|
+
><span aria-hidden="true" class={["transition-transform duration-fast ease-decelerate", { "rotate-180": machine.open }]} {...machine.getTriggerIndicatorProps()}><span class="inline-block icon-sm i-lucide-chevron-down" aria-hidden="true"></span></span></button>
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
30
|
<div
|
|
@@ -32,22 +32,22 @@
|
|
|
32
32
|
{...machine.getPositionerProps()}
|
|
33
33
|
>
|
|
34
34
|
<div
|
|
35
|
-
class={["overflow-hidden rounded-lg border
|
|
35
|
+
class={["overflow-hidden rounded-lg border bg-surface-raised shadow-lg", { "opacity-60": machine.disabled }]}
|
|
36
36
|
{...machine.getContentProps()}
|
|
37
37
|
>
|
|
38
38
|
<div class={["max-h-[15rem] overflow-y-auto p-1 transition-opacity duration-fast ease-decelerate", { "hidden": machine.empty }]} {...machine.getListProps()}>
|
|
39
39
|
<template for={machine.getBlocks()} as={block} key={block.id}>
|
|
40
40
|
<div class="py-1" {...machine.getItemGroupProps(block)}>
|
|
41
|
-
<span class="block px-2 py-1
|
|
41
|
+
<span class="block px-2 py-1 type-caption-emphasized text-muted" {...machine.getItemGroupLabelProps(block)}>{block.label}</span>
|
|
42
42
|
<template for={machine.getRows(block)} as={row} key={row.value}>
|
|
43
43
|
<div
|
|
44
|
-
class={["relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1
|
|
44
|
+
class={["relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1 type-body transition-colors duration-fast ease-decelerate", { "bg-surface": machine.highlightedValue === row.value, "text-primary": machine.value.includes(row.value), "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
45
45
|
{...machine.getItemProps(row)}
|
|
46
46
|
>
|
|
47
47
|
<span class="min-w-0 flex-1 truncate" {...machine.getItemTextProps(row)}>{row.label}</span>
|
|
48
48
|
<span
|
|
49
49
|
aria-hidden="true"
|
|
50
|
-
class={["shrink-0 text-
|
|
50
|
+
class={["shrink-0 text-primary scale-50 opacity-0 transition-all duration-fast ease-decelerate", { "scale-100 opacity-100": machine.value.includes(row.value) }]}
|
|
51
51
|
{...machine.getItemIndicatorProps(row)}
|
|
52
52
|
><span class="inline-block icon-sm i-lucide-check" aria-hidden="true"></span></span>
|
|
53
53
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/combobox/examples/basic.html
|
|
2
|
+
var basic_default = "<script lang=\"ts\">\n import { combobox } from \"../combobox.presentation.ts\";\n\n const machine = combobox({items: [{\"value\":\"apple\",\"label\":\"Apple\"},{\"value\":\"apricot\",\"label\":\"Apricot\"},{\"value\":\"banana\",\"label\":\"Banana\"},{\"value\":\"blueberry\",\"label\":\"Blueberry\"}]});\n<\/script>\n\n<div class=\"relative w-64 max-w-full\" {...machine.getRootProps()}>\n <label\n class={[\"block transition-colors duration-fast ease-decelerate\", { \"opacity-50 cursor-not-allowed\": machine.disabled, \"text-primary\": machine.focused }]}\n {...machine.getLabelProps()}\n >Fruit</label>\n\n <div class=\"relative\" {...machine.getControlProps()}>\n <input\n class={[\"w-full transition-colors duration-fast ease-decelerate placeholder:text-muted\", { \"opacity-60 cursor-not-allowed\": machine.disabled, \"border-strong\": machine.invalid, \"border-primary\": machine.open }]}\n {...machine.getInputProps()}\n />\n\n <div class=\"absolute inset-y-0 right-0 flex items-center gap-1 pr-1\">\n <button\n class={[\"ghost icon s-sm\"]}\n {...machine.getClearTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"inline-block icon-sm i-lucide-x\" aria-hidden=\"true\"></span></span></button>\n <button\n class={[\"ghost icon s-sm\", { \"cursor-not-allowed\": machine.disabled }]}\n {...machine.getTriggerProps()}\n ><span aria-hidden=\"true\" class={[\"transition-transform duration-fast ease-decelerate\", { \"rotate-180\": machine.open }]} {...machine.getTriggerIndicatorProps()}><span class=\"inline-block icon-sm i-lucide-chevron-down\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div\n class={[\"absolute left-0 top-full z-dropdown mt-1 w-full origin-top transition duration-fast ease-decelerate\", { \"pointer-events-none invisible scale-95 opacity-0\": !machine.open }]}\n {...machine.getPositionerProps()}\n >\n <div\n class={[\"overflow-hidden rounded-lg border bg-surface-raised shadow-lg\", { \"opacity-60\": machine.disabled }]}\n {...machine.getContentProps()}\n >\n <div class={[\"max-h-[15rem] overflow-y-auto p-1 transition-opacity duration-fast ease-decelerate\", { \"hidden\": machine.empty }]} {...machine.getListProps()}>\n <template for={machine.getBlocks()} as={block} key={block.id}>\n <div class=\"py-1\" {...machine.getItemGroupProps(block)}>\n <span class=\"block px-2 py-1 type-caption-emphasized text-muted\" {...machine.getItemGroupLabelProps(block)}>{block.label}</span>\n <template for={machine.getRows(block)} as={row} key={row.value}>\n <div\n class={[\"relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1 type-body transition-colors duration-fast ease-decelerate\", { \"bg-surface\": machine.highlightedValue === row.value, \"text-primary\": machine.value.includes(row.value), \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getItemProps(row)}\n >\n <span class=\"min-w-0 flex-1 truncate\" {...machine.getItemTextProps(row)}>{row.label}</span>\n <span\n aria-hidden=\"true\"\n class={[\"shrink-0 text-primary scale-50 opacity-0 transition-all duration-fast ease-decelerate\", { \"scale-100 opacity-100\": machine.value.includes(row.value) }]}\n {...machine.getItemIndicatorProps(row)}\n ><span class=\"inline-block icon-sm i-lucide-check\" aria-hidden=\"true\"></span></span>\n </div>\n </template>\n </div>\n </template>\n </div>\n </div>\n </div>\n </div>\n</div>\n";
|
|
3
|
+
export { basic_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=basic.html.js.map
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
<div class="relative w-64 max-w-full" {...machine.getRootProps()}>
|
|
17
17
|
<label
|
|
18
|
-
class={["block
|
|
18
|
+
class={["block transition-colors duration-fast ease-decelerate", { "opacity-50 cursor-not-allowed": machine.disabled, "text-primary": machine.focused }]}
|
|
19
19
|
{...machine.getLabelProps()}
|
|
20
20
|
>Assignee</label>
|
|
21
21
|
|
|
22
22
|
<div class="relative" {...machine.getControlProps()}>
|
|
23
23
|
<input
|
|
24
|
-
class={["w-full
|
|
24
|
+
class={["w-full transition-colors duration-fast ease-decelerate placeholder:text-muted", { "opacity-60 cursor-not-allowed": machine.disabled, "border-strong": machine.invalid, "border-primary": machine.open }]}
|
|
25
25
|
placeholder="Search directory..."
|
|
26
26
|
{...machine.getInputProps()}
|
|
27
27
|
/>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<button
|
|
35
35
|
class={["ghost icon s-sm", { "cursor-not-allowed": machine.disabled }]}
|
|
36
36
|
{...machine.getTriggerProps()}
|
|
37
|
-
><span aria-hidden="true" class={["
|
|
37
|
+
><span aria-hidden="true" class={["transition-transform duration-fast ease-decelerate", { "rotate-180": machine.open }]} {...machine.getTriggerIndicatorProps()}><span class="inline-block icon-sm i-lucide-chevron-down" aria-hidden="true"></span></span></button>
|
|
38
38
|
</div>
|
|
39
39
|
|
|
40
40
|
<div
|
|
@@ -42,22 +42,22 @@
|
|
|
42
42
|
{...machine.getPositionerProps()}
|
|
43
43
|
>
|
|
44
44
|
<div
|
|
45
|
-
class={["overflow-hidden rounded-lg border
|
|
45
|
+
class={["overflow-hidden rounded-lg border bg-surface-raised shadow-lg", { "opacity-60": machine.disabled }]}
|
|
46
46
|
{...machine.getContentProps()}
|
|
47
47
|
>
|
|
48
48
|
<div class={["max-h-[15rem] overflow-y-auto p-1 transition-opacity duration-fast ease-decelerate", { "hidden": machine.empty }]} {...machine.getListProps()}>
|
|
49
49
|
<template for={machine.getBlocks()} as={block} key={block.id}>
|
|
50
50
|
<div class="py-1" {...machine.getItemGroupProps(block)}>
|
|
51
|
-
<span class="block px-2 py-1
|
|
51
|
+
<span class="block px-2 py-1 type-caption-emphasized text-muted" {...machine.getItemGroupLabelProps(block)}>{block.label}</span>
|
|
52
52
|
<template for={machine.getRows(block)} as={row} key={row.value}>
|
|
53
53
|
<div
|
|
54
|
-
class={["relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1
|
|
54
|
+
class={["relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1 type-body transition-colors duration-fast ease-decelerate", { "bg-surface": machine.highlightedValue === row.value, "text-primary": machine.value.includes(row.value), "cursor-not-allowed opacity-50": machine.disabled }]}
|
|
55
55
|
{...machine.getItemProps(row)}
|
|
56
56
|
>
|
|
57
57
|
<span class="min-w-0 flex-1 truncate" {...machine.getItemTextProps(row)}>{row.label}</span>
|
|
58
58
|
<span
|
|
59
59
|
aria-hidden="true"
|
|
60
|
-
class={["shrink-0 text-
|
|
60
|
+
class={["shrink-0 text-primary scale-50 opacity-0 transition-all duration-fast ease-decelerate", { "scale-100 opacity-100": machine.value.includes(row.value) }]}
|
|
61
61
|
{...machine.getItemIndicatorProps(row)}
|
|
62
62
|
><span class="inline-block icon-sm i-lucide-check" aria-hidden="true"></span></span>
|
|
63
63
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/combobox/examples/directory.html
|
|
2
|
+
var directory_default = "<script lang=\"ts\">\n import { combobox } from \"../combobox.presentation.ts\";\n\n const machine = combobox({\n placeholder: \"Search directory...\",\n items: [\n { value: \"ada\", label: \"Ada Lovelace — Analytical Engine\" },\n { value: \"grace\", label: \"Grace Hopper — Compiler Systems\" },\n { value: \"margaret\", label: \"Margaret Hamilton — Flight Software\" },\n { value: \"barbara\", label: \"Barbara Liskov — Distributed Systems\" },\n { value: \"radia\", label: \"Radia Perlman — Network Routing\" },\n ],\n });\n<\/script>\n\n<div class=\"relative w-64 max-w-full\" {...machine.getRootProps()}>\n <label\n class={[\"block transition-colors duration-fast ease-decelerate\", { \"opacity-50 cursor-not-allowed\": machine.disabled, \"text-primary\": machine.focused }]}\n {...machine.getLabelProps()}\n >Assignee</label>\n\n <div class=\"relative\" {...machine.getControlProps()}>\n <input\n class={[\"w-full transition-colors duration-fast ease-decelerate placeholder:text-muted\", { \"opacity-60 cursor-not-allowed\": machine.disabled, \"border-strong\": machine.invalid, \"border-primary\": machine.open }]}\n placeholder=\"Search directory...\"\n {...machine.getInputProps()}\n />\n\n <div class=\"absolute inset-y-0 right-0 flex items-center gap-1 pr-1\">\n <button\n class={[\"ghost icon s-sm\"]}\n {...machine.getClearTriggerProps()}\n ><span aria-hidden=\"true\"><span class=\"inline-block icon-sm i-lucide-x\" aria-hidden=\"true\"></span></span></button>\n <button\n class={[\"ghost icon s-sm\", { \"cursor-not-allowed\": machine.disabled }]}\n {...machine.getTriggerProps()}\n ><span aria-hidden=\"true\" class={[\"transition-transform duration-fast ease-decelerate\", { \"rotate-180\": machine.open }]} {...machine.getTriggerIndicatorProps()}><span class=\"inline-block icon-sm i-lucide-chevron-down\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div\n class={[\"absolute left-0 top-full z-dropdown mt-1 w-full origin-top transition duration-fast ease-decelerate\", { \"pointer-events-none invisible scale-95 opacity-0\": !machine.open }]}\n {...machine.getPositionerProps()}\n >\n <div\n class={[\"overflow-hidden rounded-lg border bg-surface-raised shadow-lg\", { \"opacity-60\": machine.disabled }]}\n {...machine.getContentProps()}\n >\n <div class={[\"max-h-[15rem] overflow-y-auto p-1 transition-opacity duration-fast ease-decelerate\", { \"hidden\": machine.empty }]} {...machine.getListProps()}>\n <template for={machine.getBlocks()} as={block} key={block.id}>\n <div class=\"py-1\" {...machine.getItemGroupProps(block)}>\n <span class=\"block px-2 py-1 type-caption-emphasized text-muted\" {...machine.getItemGroupLabelProps(block)}>{block.label}</span>\n <template for={machine.getRows(block)} as={row} key={row.value}>\n <div\n class={[\"relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1 type-body transition-colors duration-fast ease-decelerate\", { \"bg-surface\": machine.highlightedValue === row.value, \"text-primary\": machine.value.includes(row.value), \"cursor-not-allowed opacity-50\": machine.disabled }]}\n {...machine.getItemProps(row)}\n >\n <span class=\"min-w-0 flex-1 truncate\" {...machine.getItemTextProps(row)}>{row.label}</span>\n <span\n aria-hidden=\"true\"\n class={[\"shrink-0 text-primary scale-50 opacity-0 transition-all duration-fast ease-decelerate\", { \"scale-100 opacity-100\": machine.value.includes(row.value) }]}\n {...machine.getItemIndicatorProps(row)}\n ><span class=\"inline-block icon-sm i-lucide-check\" aria-hidden=\"true\"></span></span>\n </div>\n </template>\n </div>\n </template>\n </div>\n </div>\n </div>\n </div>\n</div>\n";
|
|
3
|
+
export { directory_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=directory.html.js.map
|
|
@@ -5,26 +5,26 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<div class="relative w-64 max-w-full" {...machine.getRootProps()}>
|
|
8
|
-
<label class={["block
|
|
8
|
+
<label class={["block transition-colors duration-fast ease-decelerate", { "opacity-50 cursor-not-allowed": machine.disabled, "text-primary": machine.focused }]} {...machine.getLabelProps()}>Technology</label>
|
|
9
9
|
|
|
10
10
|
<div class="relative" {...machine.getControlProps()}>
|
|
11
|
-
<input class={["w-full
|
|
11
|
+
<input class={["w-full transition-colors duration-fast ease-decelerate placeholder:text-muted", { "opacity-60 cursor-not-allowed": machine.disabled, "border-strong": machine.invalid, "border-primary": machine.open }]} {...machine.getInputProps()} placeholder="Select a technology..." />
|
|
12
12
|
|
|
13
13
|
<div class="absolute inset-y-0 right-0 flex items-center gap-1 pr-1">
|
|
14
14
|
<button class={["ghost icon s-sm"]} {...machine.getClearTriggerProps()}><span aria-hidden="true"><span class="inline-block icon-sm i-lucide-x" aria-hidden="true"></span></span></button>
|
|
15
|
-
<button class={["ghost icon s-sm", { "cursor-not-allowed": machine.disabled }]} {...machine.getTriggerProps()}><span aria-hidden="true" class={["
|
|
15
|
+
<button class={["ghost icon s-sm", { "cursor-not-allowed": machine.disabled }]} {...machine.getTriggerProps()}><span aria-hidden="true" class={["transition-transform duration-fast ease-decelerate", { "rotate-180": machine.open }]} {...machine.getTriggerIndicatorProps()}><span class="inline-block icon-sm i-lucide-chevron-down" aria-hidden="true"></span></span></button>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<div class={["absolute left-0 top-full z-dropdown mt-1 w-full origin-top transition duration-fast ease-decelerate", { "pointer-events-none invisible scale-95 opacity-0": !machine.open }]} {...machine.getPositionerProps()}>
|
|
19
|
-
<div class={["overflow-hidden rounded-lg border
|
|
19
|
+
<div class={["overflow-hidden rounded-lg border bg-surface-raised shadow-lg", { "opacity-60": machine.disabled }]} {...machine.getContentProps()}>
|
|
20
20
|
<div class={["max-h-[15rem] overflow-y-auto p-1 transition-opacity duration-fast ease-decelerate", { "hidden": machine.empty }]} {...machine.getListProps()}>
|
|
21
21
|
<template for={machine.getBlocks()} as={block} key={block.id}>
|
|
22
22
|
<div class="py-1" {...machine.getItemGroupProps(block)}>
|
|
23
|
-
<span class="block px-2 py-1
|
|
23
|
+
<span class="block px-2 py-1 type-caption-emphasized text-muted" {...machine.getItemGroupLabelProps(block)}>{block.label}</span>
|
|
24
24
|
<template for={machine.getRows(block)} as={row} key={row.value}>
|
|
25
|
-
<div class={["relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1
|
|
25
|
+
<div class={["relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1 type-body transition-colors duration-fast ease-decelerate", { "bg-surface": machine.highlightedValue === row.value, "text-primary": machine.value.includes(row.value), "cursor-not-allowed opacity-50": machine.disabled }]} {...machine.getItemProps(row)}>
|
|
26
26
|
<span class="min-w-0 flex-1 truncate" {...machine.getItemTextProps(row)}>{row.label}</span>
|
|
27
|
-
<span aria-hidden="true" class={["shrink-0 text-
|
|
27
|
+
<span aria-hidden="true" class={["shrink-0 text-primary scale-50 opacity-0 transition-all duration-fast ease-decelerate", { "scale-100 opacity-100": machine.value.includes(row.value) }]} {...machine.getItemIndicatorProps(row)}><span class="inline-block icon-sm i-lucide-check" aria-hidden="true"></span></span>
|
|
28
28
|
</div>
|
|
29
29
|
</template>
|
|
30
30
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/combobox/examples/grouping.html
|
|
2
|
+
var grouping_default = "<script lang=\"ts\">\n import { combobox } from \"../combobox.presentation.ts\";\n\n const machine = combobox({items: [{\"value\":\"react\",\"label\":\"React\",\"group\":\"JS\"},{\"value\":\"solid\",\"label\":\"Solid\",\"group\":\"JS\"},{\"value\":\"vue\",\"label\":\"Vue\",\"group\":\"JS\"},{\"value\":\"svelte\",\"label\":\"Svelte\",\"group\":\"JS\"},{\"value\":\"panda\",\"label\":\"Panda\",\"group\":\"CSS\"},{\"value\":\"tailwind\",\"label\":\"Tailwind\",\"group\":\"CSS\"}]});\n<\/script>\n\n<div class=\"relative w-64 max-w-full\" {...machine.getRootProps()}>\n <label class={[\"block transition-colors duration-fast ease-decelerate\", { \"opacity-50 cursor-not-allowed\": machine.disabled, \"text-primary\": machine.focused }]} {...machine.getLabelProps()}>Technology</label>\n\n <div class=\"relative\" {...machine.getControlProps()}>\n <input class={[\"w-full transition-colors duration-fast ease-decelerate placeholder:text-muted\", { \"opacity-60 cursor-not-allowed\": machine.disabled, \"border-strong\": machine.invalid, \"border-primary\": machine.open }]} {...machine.getInputProps()} placeholder=\"Select a technology...\" />\n\n <div class=\"absolute inset-y-0 right-0 flex items-center gap-1 pr-1\">\n <button class={[\"ghost icon s-sm\"]} {...machine.getClearTriggerProps()}><span aria-hidden=\"true\"><span class=\"inline-block icon-sm i-lucide-x\" aria-hidden=\"true\"></span></span></button>\n <button class={[\"ghost icon s-sm\", { \"cursor-not-allowed\": machine.disabled }]} {...machine.getTriggerProps()}><span aria-hidden=\"true\" class={[\"transition-transform duration-fast ease-decelerate\", { \"rotate-180\": machine.open }]} {...machine.getTriggerIndicatorProps()}><span class=\"inline-block icon-sm i-lucide-chevron-down\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div class={[\"absolute left-0 top-full z-dropdown mt-1 w-full origin-top transition duration-fast ease-decelerate\", { \"pointer-events-none invisible scale-95 opacity-0\": !machine.open }]} {...machine.getPositionerProps()}>\n <div class={[\"overflow-hidden rounded-lg border bg-surface-raised shadow-lg\", { \"opacity-60\": machine.disabled }]} {...machine.getContentProps()}>\n <div class={[\"max-h-[15rem] overflow-y-auto p-1 transition-opacity duration-fast ease-decelerate\", { \"hidden\": machine.empty }]} {...machine.getListProps()}>\n <template for={machine.getBlocks()} as={block} key={block.id}>\n <div class=\"py-1\" {...machine.getItemGroupProps(block)}>\n <span class=\"block px-2 py-1 type-caption-emphasized text-muted\" {...machine.getItemGroupLabelProps(block)}>{block.label}</span>\n <template for={machine.getRows(block)} as={row} key={row.value}>\n <div class={[\"relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1 type-body transition-colors duration-fast ease-decelerate\", { \"bg-surface\": machine.highlightedValue === row.value, \"text-primary\": machine.value.includes(row.value), \"cursor-not-allowed opacity-50\": machine.disabled }]} {...machine.getItemProps(row)}>\n <span class=\"min-w-0 flex-1 truncate\" {...machine.getItemTextProps(row)}>{row.label}</span>\n <span aria-hidden=\"true\" class={[\"shrink-0 text-primary scale-50 opacity-0 transition-all duration-fast ease-decelerate\", { \"scale-100 opacity-100\": machine.value.includes(row.value) }]} {...machine.getItemIndicatorProps(row)}><span class=\"inline-block icon-sm i-lucide-check\" aria-hidden=\"true\"></span></span>\n </div>\n </template>\n </div>\n </template>\n </div>\n </div>\n </div>\n </div>\n</div>\n";
|
|
3
|
+
export { grouping_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=grouping.html.js.map
|
|
@@ -5,26 +5,26 @@
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<div class="relative w-64 max-w-full" {...machine.getRootProps()}>
|
|
8
|
-
<label class={["block
|
|
8
|
+
<label class={["block transition-colors duration-fast ease-decelerate", { "opacity-50 cursor-not-allowed": machine.disabled, "text-primary": machine.focused }]} {...machine.getLabelProps()}>Skills</label>
|
|
9
9
|
|
|
10
10
|
<div class="relative" {...machine.getControlProps()}>
|
|
11
|
-
<input class={["w-full
|
|
11
|
+
<input class={["w-full transition-colors duration-fast ease-decelerate placeholder:text-muted", { "opacity-60 cursor-not-allowed": machine.disabled, "border-strong": machine.invalid, "border-primary": machine.open }]} {...machine.getInputProps()} placeholder="Add skills..." />
|
|
12
12
|
|
|
13
13
|
<div class="absolute inset-y-0 right-0 flex items-center gap-1 pr-1">
|
|
14
14
|
<button class={["ghost icon s-sm"]} {...machine.getClearTriggerProps()}><span aria-hidden="true"><span class="inline-block icon-sm i-lucide-x" aria-hidden="true"></span></span></button>
|
|
15
|
-
<button class={["ghost icon s-sm", { "cursor-not-allowed": machine.disabled }]} {...machine.getTriggerProps()}><span aria-hidden="true" class={["
|
|
15
|
+
<button class={["ghost icon s-sm", { "cursor-not-allowed": machine.disabled }]} {...machine.getTriggerProps()}><span aria-hidden="true" class={["transition-transform duration-fast ease-decelerate", { "rotate-180": machine.open }]} {...machine.getTriggerIndicatorProps()}><span class="inline-block icon-sm i-lucide-chevron-down" aria-hidden="true"></span></span></button>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
18
|
<div class={["absolute left-0 top-full z-dropdown mt-1 w-full origin-top transition duration-fast ease-decelerate", { "pointer-events-none invisible scale-95 opacity-0": !machine.open }]} {...machine.getPositionerProps()}>
|
|
19
|
-
<div class={["overflow-hidden rounded-lg border
|
|
19
|
+
<div class={["overflow-hidden rounded-lg border bg-surface-raised shadow-lg", { "opacity-60": machine.disabled }]} {...machine.getContentProps()}>
|
|
20
20
|
<div class={["max-h-[15rem] overflow-y-auto p-1 transition-opacity duration-fast ease-decelerate", { "hidden": machine.empty }]} {...machine.getListProps()}>
|
|
21
21
|
<template for={machine.getBlocks()} as={block} key={block.id}>
|
|
22
22
|
<div class="py-1" {...machine.getItemGroupProps(block)}>
|
|
23
|
-
<span class="block px-2 py-1
|
|
23
|
+
<span class="block px-2 py-1 type-caption-emphasized text-muted" {...machine.getItemGroupLabelProps(block)}>{block.label}</span>
|
|
24
24
|
<template for={machine.getRows(block)} as={row} key={row.value}>
|
|
25
|
-
<div class={["relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1
|
|
25
|
+
<div class={["relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1 type-body transition-colors duration-fast ease-decelerate", { "bg-surface": machine.highlightedValue === row.value, "text-primary": machine.value.includes(row.value), "cursor-not-allowed opacity-50": machine.disabled }]} {...machine.getItemProps(row)}>
|
|
26
26
|
<span class="min-w-0 flex-1 truncate" {...machine.getItemTextProps(row)}>{row.label}</span>
|
|
27
|
-
<span aria-hidden="true" class={["shrink-0 text-
|
|
27
|
+
<span aria-hidden="true" class={["shrink-0 text-primary scale-50 opacity-0 transition-all duration-fast ease-decelerate", { "scale-100 opacity-100": machine.value.includes(row.value) }]} {...machine.getItemIndicatorProps(row)}><span class="inline-block icon-sm i-lucide-check" aria-hidden="true"></span></span>
|
|
28
28
|
</div>
|
|
29
29
|
</template>
|
|
30
30
|
</div>
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
36
|
-
<
|
|
36
|
+
<div class="grid gap-2 text-muted" show={machine.hasSelectedItems}>Selected: {machine.valueAsString}</div>
|
|
37
37
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/combobox/examples/multiple.html
|
|
2
|
+
var multiple_default = "<script lang=\"ts\">\n import { combobox } from \"../combobox.presentation.ts\";\n\n const machine = combobox({multiple: true, items: [{\"value\":\"javascript\",\"label\":\"JavaScript\"},{\"value\":\"typescript\",\"label\":\"TypeScript\"},{\"value\":\"react\",\"label\":\"React\"},{\"value\":\"vue\",\"label\":\"Vue\"},{\"value\":\"angular\",\"label\":\"Angular\"},{\"value\":\"svelte\",\"label\":\"Svelte\"}]});\n<\/script>\n\n<div class=\"relative w-64 max-w-full\" {...machine.getRootProps()}>\n <label class={[\"block transition-colors duration-fast ease-decelerate\", { \"opacity-50 cursor-not-allowed\": machine.disabled, \"text-primary\": machine.focused }]} {...machine.getLabelProps()}>Skills</label>\n\n <div class=\"relative\" {...machine.getControlProps()}>\n <input class={[\"w-full transition-colors duration-fast ease-decelerate placeholder:text-muted\", { \"opacity-60 cursor-not-allowed\": machine.disabled, \"border-strong\": machine.invalid, \"border-primary\": machine.open }]} {...machine.getInputProps()} placeholder=\"Add skills...\" />\n\n <div class=\"absolute inset-y-0 right-0 flex items-center gap-1 pr-1\">\n <button class={[\"ghost icon s-sm\"]} {...machine.getClearTriggerProps()}><span aria-hidden=\"true\"><span class=\"inline-block icon-sm i-lucide-x\" aria-hidden=\"true\"></span></span></button>\n <button class={[\"ghost icon s-sm\", { \"cursor-not-allowed\": machine.disabled }]} {...machine.getTriggerProps()}><span aria-hidden=\"true\" class={[\"transition-transform duration-fast ease-decelerate\", { \"rotate-180\": machine.open }]} {...machine.getTriggerIndicatorProps()}><span class=\"inline-block icon-sm i-lucide-chevron-down\" aria-hidden=\"true\"></span></span></button>\n </div>\n\n <div class={[\"absolute left-0 top-full z-dropdown mt-1 w-full origin-top transition duration-fast ease-decelerate\", { \"pointer-events-none invisible scale-95 opacity-0\": !machine.open }]} {...machine.getPositionerProps()}>\n <div class={[\"overflow-hidden rounded-lg border bg-surface-raised shadow-lg\", { \"opacity-60\": machine.disabled }]} {...machine.getContentProps()}>\n <div class={[\"max-h-[15rem] overflow-y-auto p-1 transition-opacity duration-fast ease-decelerate\", { \"hidden\": machine.empty }]} {...machine.getListProps()}>\n <template for={machine.getBlocks()} as={block} key={block.id}>\n <div class=\"py-1\" {...machine.getItemGroupProps(block)}>\n <span class=\"block px-2 py-1 type-caption-emphasized text-muted\" {...machine.getItemGroupLabelProps(block)}>{block.label}</span>\n <template for={machine.getRows(block)} as={row} key={row.value}>\n <div class={[\"relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1 type-body transition-colors duration-fast ease-decelerate\", { \"bg-surface\": machine.highlightedValue === row.value, \"text-primary\": machine.value.includes(row.value), \"cursor-not-allowed opacity-50\": machine.disabled }]} {...machine.getItemProps(row)}>\n <span class=\"min-w-0 flex-1 truncate\" {...machine.getItemTextProps(row)}>{row.label}</span>\n <span aria-hidden=\"true\" class={[\"shrink-0 text-primary scale-50 opacity-0 transition-all duration-fast ease-decelerate\", { \"scale-100 opacity-100\": machine.value.includes(row.value) }]} {...machine.getItemIndicatorProps(row)}><span class=\"inline-block icon-sm i-lucide-check\" aria-hidden=\"true\"></span></span>\n </div>\n </template>\n </div>\n </template>\n </div>\n </div>\n </div>\n </div>\n <div class=\"grid gap-2 text-muted\" show={machine.hasSelectedItems}>Selected: {machine.valueAsString}</div>\n</div>\n";
|
|
3
|
+
export { multiple_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=multiple.html.js.map
|