@spinjs/components 0.1.0-preview.1 → 0.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -5
- package/dist/angle-slider/angle-slider.events.d.ts +2 -3
- package/dist/angle-slider/angle-slider.machine.d.ts +4 -5
- package/dist/angle-slider/angle-slider.machine.js +2 -2
- package/dist/angle-slider/angle-slider.presentation.d.ts +11 -12
- package/dist/angle-slider/angle-slider.presentation.js +2 -2
- package/dist/angle-slider/angle-slider.state.d.ts +1 -2
- package/dist/angle-slider/angle-slider.state.js +1 -1
- package/dist/angle-slider/angle-slider.transitions.d.ts +2 -3
- package/dist/angle-slider/examples/basic.html +2 -2
- package/dist/angle-slider/examples/basic.html.js +5 -0
- package/dist/angle-slider/examples/knob.html +1 -1
- package/dist/angle-slider/examples/knob.html.js +5 -0
- package/dist/angle-slider/examples/labeled.html +11 -11
- package/dist/angle-slider/examples/labeled.html.js +5 -0
- package/dist/angle-slider/examples/marks.html +2 -2
- package/dist/angle-slider/examples/marks.html.js +5 -0
- package/dist/async-list/async-list.events.d.ts +2 -3
- package/dist/async-list/async-list.machine.d.ts +2 -3
- package/dist/async-list/async-list.machine.js +1 -1
- package/dist/async-list/async-list.presentation.d.ts +13 -14
- package/dist/async-list/async-list.presentation.js +2 -2
- package/dist/async-list/async-list.state.d.ts +1 -2
- package/dist/async-list/async-list.state.js +1 -1
- package/dist/async-list/async-list.transitions.d.ts +3 -4
- package/dist/async-list/examples/basic.html +7 -7
- package/dist/async-list/examples/basic.html.js +5 -0
- package/dist/avatar/avatar.events.d.ts +2 -3
- package/dist/avatar/avatar.machine.d.ts +12 -4
- package/dist/avatar/avatar.machine.js +1 -1
- package/dist/avatar/avatar.presentation.d.ts +5 -6
- package/dist/avatar/avatar.presentation.js +1 -1
- package/dist/avatar/avatar.state.d.ts +1 -2
- package/dist/avatar/avatar.state.js +1 -1
- package/dist/avatar/avatar.transitions.d.ts +2 -3
- package/dist/avatar/examples/badge.html +2 -2
- package/dist/avatar/examples/badge.html.js +5 -0
- package/dist/avatar/examples/badgeminimal.html +1 -1
- package/dist/avatar/examples/badgeminimal.html.js +5 -0
- package/dist/avatar/examples/basic.html +1 -1
- package/dist/avatar/examples/basic.html.js +5 -0
- package/dist/avatar/examples/count.html +5 -5
- package/dist/avatar/examples/count.html.js +5 -0
- package/dist/avatar/examples/fallback.html +1 -1
- package/dist/avatar/examples/fallback.html.js +5 -0
- package/dist/avatar/examples/group.html +4 -4
- package/dist/avatar/examples/group.html.js +5 -0
- package/dist/avatar/examples/icon.html +2 -2
- package/dist/avatar/examples/icon.html.js +5 -0
- package/dist/avatar/examples/multiples.html +4 -4
- package/dist/avatar/examples/multiples.html.js +5 -0
- package/dist/avatar/examples/pills.html +12 -12
- package/dist/avatar/examples/pills.html.js +5 -0
- package/dist/avatar/examples/pillsolid.html +4 -4
- package/dist/avatar/examples/pillsolid.html.js +5 -0
- package/dist/avatar/examples/rounded.html +1 -1
- package/dist/avatar/examples/rounded.html.js +5 -0
- package/dist/avatar/examples/status.html +2 -2
- package/dist/avatar/examples/status.html.js +5 -0
- package/dist/avatar/examples/statusminimal.html +1 -1
- package/dist/avatar/examples/statusminimal.html.js +5 -0
- package/dist/avatar/examples/trusted.html +6 -6
- package/dist/avatar/examples/trusted.html.js +5 -0
- package/dist/avatar/examples/verification.html +3 -3
- package/dist/avatar/examples/verification.html.js +5 -0
- package/dist/carousel/carousel.events.d.ts +2 -3
- package/dist/carousel/carousel.machine.d.ts +3 -4
- package/dist/carousel/carousel.machine.js +1 -1
- package/dist/carousel/carousel.presentation.d.ts +14 -15
- package/dist/carousel/carousel.presentation.js +2 -2
- package/dist/carousel/carousel.state.d.ts +1 -2
- package/dist/carousel/carousel.state.js +1 -1
- package/dist/carousel/carousel.transitions.d.ts +2 -3
- package/dist/carousel/examples/autoplay.html +8 -8
- package/dist/carousel/examples/autoplay.html.js +5 -0
- package/dist/carousel/examples/basic.html +7 -7
- package/dist/carousel/examples/basic.html.js +5 -0
- package/dist/carousel/examples/cards.html +8 -8
- package/dist/carousel/examples/cards.html.js +5 -0
- package/dist/carousel/examples/hero.html +6 -6
- package/dist/carousel/examples/hero.html.js +5 -0
- package/dist/carousel/examples/infinite.html +7 -7
- package/dist/carousel/examples/infinite.html.js +5 -0
- package/dist/carousel/examples/minimal.html +5 -5
- package/dist/carousel/examples/minimal.html.js +5 -0
- package/dist/carousel/examples/testimonials.html +10 -10
- package/dist/carousel/examples/testimonials.html.js +5 -0
- package/dist/carousel/examples/thumbnails.html +8 -8
- package/dist/carousel/examples/thumbnails.html.js +5 -0
- package/dist/carousel/examples/vertical.html +8 -8
- package/dist/carousel/examples/vertical.html.js +5 -0
- package/dist/cascade-select/cascade.events.d.ts +2 -3
- package/dist/cascade-select/cascade.machine.d.ts +3 -4
- package/dist/cascade-select/cascade.machine.js +1 -1
- package/dist/cascade-select/cascade.presentation.d.ts +8 -9
- package/dist/cascade-select/cascade.presentation.js +12 -12
- package/dist/cascade-select/cascade.state.d.ts +1 -2
- package/dist/cascade-select/cascade.state.js +1 -1
- package/dist/cascade-select/cascade.transitions.d.ts +2 -3
- package/dist/cascade-select/examples/basic.html +13 -11
- package/dist/cascade-select/examples/basic.html.js +5 -0
- package/dist/color-picker/color-picker.events.d.ts +3 -4
- package/dist/color-picker/color-picker.machine.d.ts +3 -3
- package/dist/color-picker/color-picker.machine.js +1 -1
- package/dist/color-picker/color-picker.presentation.d.ts +20 -21
- package/dist/color-picker/color-picker.presentation.js +4 -5
- package/dist/color-picker/color-picker.state.d.ts +2 -3
- package/dist/color-picker/color-picker.state.js +2 -2
- package/dist/color-picker/color-picker.transitions.d.ts +3 -4
- package/dist/color-picker/color.d.ts +39 -0
- package/dist/color-picker/color.js +401 -0
- package/dist/color-picker/examples/basic.html +14 -14
- package/dist/color-picker/examples/basic.html.js +5 -0
- package/dist/color-picker/examples/hue-wheel.html +9 -9
- package/dist/color-picker/examples/hue-wheel.html.js +5 -0
- package/dist/color-picker/examples/inline.html +8 -8
- package/dist/color-picker/examples/inline.html.js +5 -0
- package/dist/color-picker/examples/with-presets.html +10 -10
- package/dist/color-picker/examples/with-presets.html.js +5 -0
- package/dist/combobox/combobox.events.d.ts +2 -3
- package/dist/combobox/combobox.machine.d.ts +3 -4
- package/dist/combobox/combobox.machine.js +1 -1
- package/dist/combobox/combobox.presentation.d.ts +8 -9
- package/dist/combobox/combobox.presentation.js +3 -3
- package/dist/combobox/combobox.state.d.ts +1 -2
- package/dist/combobox/combobox.state.js +1 -1
- package/dist/combobox/combobox.transitions.d.ts +3 -4
- package/dist/combobox/examples/basic.html +7 -7
- package/dist/combobox/examples/basic.html.js +5 -0
- package/dist/combobox/examples/directory.html +7 -7
- package/dist/combobox/examples/directory.html.js +5 -0
- package/dist/combobox/examples/grouping.html +7 -7
- package/dist/combobox/examples/grouping.html.js +5 -0
- package/dist/combobox/examples/multiple.html +8 -8
- package/dist/combobox/examples/multiple.html.js +5 -0
- package/dist/compiler/emit.d.ts +6 -0
- package/dist/compiler/emit.js +217 -0
- package/dist/compiler/transform.d.ts +52 -0
- package/dist/compiler/transform.js +169 -0
- package/dist/controller.d.ts +2 -3
- package/dist/controller.js +1 -1
- package/dist/date-input/date-input.events.d.ts +2 -3
- package/dist/date-input/date-input.machine.d.ts +3 -3
- package/dist/date-input/date-input.machine.js +1 -1
- package/dist/date-input/date-input.presentation.d.ts +6 -7
- package/dist/date-input/date-input.presentation.js +1 -1
- package/dist/date-input/date-input.state.d.ts +1 -2
- package/dist/date-input/date-input.state.js +1 -1
- package/dist/date-input/date-input.transitions.d.ts +3 -4
- package/dist/date-input/examples/basic.html +3 -3
- package/dist/date-input/examples/basic.html.js +5 -0
- package/dist/date-picker/date-picker.events.d.ts +2 -3
- package/dist/date-picker/date-picker.machine.d.ts +2 -3
- package/dist/date-picker/date-picker.machine.js +1 -1
- package/dist/date-picker/date-picker.presentation.d.ts +14 -15
- package/dist/date-picker/date-picker.presentation.js +2 -2
- package/dist/date-picker/date-picker.state.d.ts +1 -2
- package/dist/date-picker/date-picker.state.js +1 -1
- package/dist/date-picker/date-picker.transitions.d.ts +3 -4
- package/dist/date-picker/examples/appointment.html +7 -7
- package/dist/date-picker/examples/appointment.html.js +5 -0
- package/dist/date-picker/examples/basic.html.js +5 -0
- package/dist/date-picker/examples/multiple.html.js +5 -0
- package/dist/date-picker/examples/pricing.html.js +5 -0
- package/dist/date-picker/examples/range.html.js +5 -0
- package/dist/date-picker/examples/unavailable.html.js +5 -0
- package/dist/editable/editable.events.d.ts +2 -3
- package/dist/editable/editable.machine.d.ts +3 -4
- package/dist/editable/editable.machine.js +1 -1
- package/dist/editable/editable.presentation.d.ts +6 -7
- package/dist/editable/editable.presentation.js +1 -1
- package/dist/editable/editable.state.d.ts +1 -2
- package/dist/editable/editable.state.js +1 -1
- package/dist/editable/editable.transitions.d.ts +3 -4
- package/dist/editable/examples/basic.html +7 -7
- package/dist/editable/examples/basic.html.js +5 -0
- package/dist/editable/examples/doubleclick.html +6 -6
- package/dist/editable/examples/doubleclick.html.js +5 -0
- package/dist/editable/examples/inline-edit.html +4 -4
- package/dist/editable/examples/inline-edit.html.js +5 -0
- package/dist/editable/examples/profile-field.html +7 -7
- package/dist/editable/examples/profile-field.html.js +5 -0
- package/dist/editable/examples/resize.html +6 -6
- package/dist/editable/examples/resize.html.js +5 -0
- package/dist/editable/examples/task-item.html +7 -7
- package/dist/editable/examples/task-item.html.js +5 -0
- package/dist/editable/examples/title-editor.html +3 -3
- package/dist/editable/examples/title-editor.html.js +5 -0
- package/dist/editable/examples/with-controls.html +4 -4
- package/dist/editable/examples/with-controls.html.js +5 -0
- package/dist/examples.d.ts +22 -0
- package/dist/examples.js +501 -0
- package/dist/file-upload/examples/avatar.html +8 -8
- package/dist/file-upload/examples/avatar.html.js +5 -0
- package/dist/file-upload/examples/basic.html +8 -8
- package/dist/file-upload/examples/basic.html.js +5 -0
- package/dist/file-upload/examples/directory.html +8 -8
- package/dist/file-upload/examples/directory.html.js +5 -0
- package/dist/file-upload/examples/dragdrop.html +8 -8
- package/dist/file-upload/examples/dragdrop.html.js +5 -0
- package/dist/file-upload/examples/files.html +9 -9
- package/dist/file-upload/examples/files.html.js +5 -0
- package/dist/file-upload/examples/images.html +8 -8
- package/dist/file-upload/examples/images.html.js +5 -0
- package/dist/file-upload/examples/paste.html +8 -8
- package/dist/file-upload/examples/paste.html.js +5 -0
- package/dist/file-upload/examples/table.html +7 -7
- package/dist/file-upload/examples/table.html.js +5 -0
- package/dist/file-upload/file-upload.events.d.ts +2 -3
- package/dist/file-upload/file-upload.machine.d.ts +5 -3
- package/dist/file-upload/file-upload.machine.js +1 -1
- package/dist/file-upload/file-upload.presentation.d.ts +10 -11
- package/dist/file-upload/file-upload.presentation.js +1 -1
- package/dist/file-upload/file-upload.state.d.ts +1 -2
- package/dist/file-upload/file-upload.state.js +1 -1
- package/dist/file-upload/file-upload.transitions.d.ts +3 -4
- package/dist/floating-panel/examples/basic.html +22 -23
- package/dist/floating-panel/examples/basic.html.js +5 -0
- package/dist/floating-panel/examples/calculator.html +41 -41
- package/dist/floating-panel/examples/calculator.html.js +5 -0
- package/dist/floating-panel/examples/chat.html +29 -29
- package/dist/floating-panel/examples/chat.html.js +5 -0
- package/dist/floating-panel/examples/media-player.html +27 -27
- package/dist/floating-panel/examples/media-player.html.js +5 -0
- package/dist/floating-panel/examples/notes.html +36 -36
- package/dist/floating-panel/examples/notes.html.js +5 -0
- package/dist/floating-panel/examples/settings.html +34 -34
- package/dist/floating-panel/examples/settings.html.js +5 -0
- package/dist/floating-panel/examples/task.html +40 -40
- package/dist/floating-panel/examples/task.html.js +5 -0
- package/dist/floating-panel/examples/video-call.html +25 -25
- package/dist/floating-panel/examples/video-call.html.js +5 -0
- package/dist/floating-panel/floating-panel.events.d.ts +2 -3
- package/dist/floating-panel/floating-panel.machine.d.ts +2 -3
- package/dist/floating-panel/floating-panel.machine.js +1 -1
- package/dist/floating-panel/floating-panel.presentation.d.ts +11 -13
- package/dist/floating-panel/floating-panel.presentation.js +3 -6
- package/dist/floating-panel/floating-panel.state.d.ts +1 -2
- package/dist/floating-panel/floating-panel.state.js +1 -1
- package/dist/floating-panel/floating-panel.transitions.d.ts +3 -4
- package/dist/hover-card/examples/basic.html +5 -5
- package/dist/hover-card/examples/basic.html.js +5 -0
- package/dist/hover-card/examples/controlled.html +9 -10
- package/dist/hover-card/examples/controlled.html.js +5 -0
- package/dist/hover-card/examples/custom-positioning.html +8 -8
- package/dist/hover-card/examples/custom-positioning.html.js +5 -0
- package/dist/hover-card/examples/link.html +2 -2
- package/dist/hover-card/examples/link.html.js +5 -0
- package/dist/hover-card/examples/product.html +9 -9
- package/dist/hover-card/examples/product.html.js +5 -0
- package/dist/hover-card/examples/user.html +11 -11
- package/dist/hover-card/examples/user.html.js +5 -0
- package/dist/hover-card/examples/with-arrow.html +9 -9
- package/dist/hover-card/examples/with-arrow.html.js +5 -0
- package/dist/hover-card/hover-card.controller-def.d.ts +2 -4
- package/dist/hover-card/hover-card.controller-def.js +1 -1
- package/dist/image-cropper/crop-geometry.d.ts +1 -2
- package/dist/image-cropper/crop-geometry.js +1 -1
- package/dist/image-cropper/examples/basic.html +3 -3
- package/dist/image-cropper/examples/basic.html.js +5 -0
- package/dist/image-cropper/examples/circle.html +3 -3
- package/dist/image-cropper/examples/circle.html.js +5 -0
- package/dist/image-cropper/image-cropper.events.d.ts +2 -3
- package/dist/image-cropper/image-cropper.machine.d.ts +3 -4
- package/dist/image-cropper/image-cropper.machine.js +2 -2
- package/dist/image-cropper/image-cropper.presentation.d.ts +7 -8
- package/dist/image-cropper/image-cropper.presentation.js +2 -2
- package/dist/image-cropper/image-cropper.state.d.ts +1 -2
- package/dist/image-cropper/image-cropper.state.js +1 -1
- package/dist/image-cropper/image-cropper.transitions.d.ts +3 -4
- package/dist/index.d.ts +28 -13
- package/dist/index.js +21 -14
- package/dist/listbox/examples/basic.html +9 -9
- package/dist/listbox/examples/basic.html.js +5 -0
- package/dist/listbox/examples/controlled.html +9 -9
- package/dist/listbox/examples/controlled.html.js +5 -0
- package/dist/listbox/examples/countries.html +9 -9
- package/dist/listbox/examples/countries.html.js +5 -0
- package/dist/listbox/examples/grouped.html +9 -9
- package/dist/listbox/examples/grouped.html.js +5 -0
- package/dist/listbox/examples/icons.html +10 -10
- package/dist/listbox/examples/icons.html.js +5 -0
- package/dist/listbox/examples/multiple.html +9 -9
- package/dist/listbox/examples/multiple.html.js +5 -0
- package/dist/listbox/examples/priority.html +9 -9
- package/dist/listbox/examples/priority.html.js +5 -0
- package/dist/listbox/examples/settings.html +9 -9
- package/dist/listbox/examples/settings.html.js +5 -0
- package/dist/listbox/listbox.events.d.ts +2 -3
- package/dist/listbox/listbox.machine.d.ts +2 -3
- package/dist/listbox/listbox.machine.js +1 -1
- package/dist/listbox/listbox.presentation.d.ts +6 -5
- package/dist/listbox/listbox.presentation.js +1 -1
- package/dist/listbox/listbox.state.d.ts +1 -2
- package/dist/listbox/listbox.state.js +1 -1
- package/dist/listbox/listbox.transitions.d.ts +3 -4
- package/dist/menu/examples/basic.html +15 -13
- package/dist/menu/examples/basic.html.js +5 -0
- package/dist/menu/examples/context.html +14 -12
- package/dist/menu/examples/context.html.js +5 -0
- package/dist/menu/examples/groups.html +15 -13
- package/dist/menu/examples/groups.html.js +5 -0
- package/dist/menu/examples/icons.html +17 -15
- package/dist/menu/examples/icons.html.js +5 -0
- package/dist/menu/examples/nested.html +15 -13
- package/dist/menu/examples/nested.html.js +5 -0
- package/dist/menu/examples/user.html +21 -19
- package/dist/menu/examples/user.html.js +5 -0
- package/dist/menu/menu.events.d.ts +2 -3
- package/dist/menu/menu.machine.d.ts +2 -3
- package/dist/menu/menu.machine.js +1 -1
- package/dist/menu/menu.presentation.d.ts +6 -8
- package/dist/menu/menu.presentation.js +4 -5
- package/dist/menu/menu.state.d.ts +1 -2
- package/dist/menu/menu.state.js +1 -1
- package/dist/mode-picker/examples/basic.html +1 -1
- package/dist/mode-picker/examples/basic.html.js +5 -0
- package/dist/mode-picker/examples/minimal.html +1 -1
- package/dist/mode-picker/examples/minimal.html.js +5 -0
- package/dist/mode-picker/examples/pill.html +1 -1
- package/dist/mode-picker/examples/pill.html.js +5 -0
- package/dist/mode-picker/mode-picker.events.d.ts +2 -3
- package/dist/mode-picker/mode-picker.machine.d.ts +3 -3
- package/dist/mode-picker/mode-picker.machine.js +1 -1
- package/dist/mode-picker/mode-picker.presentation.d.ts +7 -8
- package/dist/mode-picker/mode-picker.presentation.js +2 -2
- package/dist/mode-picker/mode-picker.state.d.ts +1 -2
- package/dist/mode-picker/mode-picker.transitions.d.ts +3 -4
- package/dist/navigation-menu/examples/basic.html +6 -6
- package/dist/navigation-menu/examples/basic.html.js +5 -0
- package/dist/navigation-menu/examples/grouped.html +14 -12
- package/dist/navigation-menu/examples/grouped.html.js +5 -0
- package/dist/navigation-menu/examples/minimal.html +7 -5
- package/dist/navigation-menu/examples/minimal.html.js +5 -0
- package/dist/navigation-menu/navigation-menu.events.d.ts +2 -3
- package/dist/navigation-menu/navigation-menu.machine.d.ts +3 -3
- package/dist/navigation-menu/navigation-menu.machine.js +1 -1
- package/dist/navigation-menu/navigation-menu.presentation.d.ts +6 -7
- package/dist/navigation-menu/navigation-menu.presentation.js +2 -2
- package/dist/navigation-menu/navigation-menu.state.d.ts +1 -2
- package/dist/navigation-menu/navigation-menu.state.js +1 -1
- package/dist/navigation-menu/navigation-menu.transitions.d.ts +3 -4
- package/dist/number-input/examples/basic.html +10 -10
- package/dist/number-input/examples/basic.html.js +5 -0
- package/dist/number-input/examples/currency.html +6 -6
- package/dist/number-input/examples/currency.html.js +5 -0
- package/dist/number-input/examples/decimal.html +4 -4
- package/dist/number-input/examples/decimal.html.js +5 -0
- package/dist/number-input/examples/limits.html +6 -6
- package/dist/number-input/examples/limits.html.js +5 -0
- package/dist/number-input/examples/percentage.html +6 -6
- package/dist/number-input/examples/percentage.html.js +5 -0
- package/dist/number-input/examples/quantity.html +6 -6
- package/dist/number-input/examples/quantity.html.js +5 -0
- package/dist/number-input/examples/scrubber.html +11 -11
- package/dist/number-input/examples/scrubber.html.js +5 -0
- package/dist/number-input/examples/wheel.html +7 -7
- package/dist/number-input/examples/wheel.html.js +5 -0
- package/dist/number-input/number-input.events.d.ts +2 -3
- package/dist/number-input/number-input.machine.d.ts +4 -4
- package/dist/number-input/number-input.machine.js +1 -1
- package/dist/number-input/number-input.presentation.d.ts +7 -8
- package/dist/number-input/number-input.presentation.js +4 -4
- package/dist/number-input/number-input.state.d.ts +1 -2
- package/dist/number-input/number-input.state.js +1 -1
- package/dist/number-input/number-input.transitions.d.ts +3 -4
- package/dist/pagination/examples/basic.html +2 -2
- package/dist/pagination/examples/basic.html.js +5 -0
- package/dist/pagination/examples/dropdown.html +2 -2
- package/dist/pagination/examples/dropdown.html.js +5 -0
- package/dist/pagination/examples/info.html +3 -3
- package/dist/pagination/examples/info.html.js +5 -0
- package/dist/pagination/examples/jump.html +2 -2
- package/dist/pagination/examples/jump.html.js +5 -0
- package/dist/pagination/examples/numbered.html +2 -2
- package/dist/pagination/examples/numbered.html.js +5 -0
- package/dist/pagination/examples/pagesize.html +4 -4
- package/dist/pagination/examples/pagesize.html.js +5 -0
- package/dist/pagination/pagination.events.d.ts +2 -3
- package/dist/pagination/pagination.machine.d.ts +4 -4
- package/dist/pagination/pagination.machine.js +1 -1
- package/dist/pagination/pagination.presentation.d.ts +4 -5
- package/dist/pagination/pagination.presentation.js +1 -1
- package/dist/pagination/pagination.state.d.ts +1 -2
- package/dist/pagination/pagination.state.js +1 -1
- package/dist/pagination/pagination.transitions.d.ts +2 -3
- package/dist/pin-input/examples/basic.html +2 -2
- package/dist/pin-input/examples/basic.html.js +5 -0
- package/dist/pin-input/examples/field.html +4 -4
- package/dist/pin-input/examples/field.html.js +5 -0
- package/dist/pin-input/examples/masked.html +3 -3
- package/dist/pin-input/examples/masked.html.js +5 -0
- package/dist/pin-input/examples/placeholder.html +3 -3
- package/dist/pin-input/examples/placeholder.html.js +5 -0
- package/dist/pin-input/examples/twofactor.html +4 -4
- package/dist/pin-input/examples/twofactor.html.js +5 -0
- package/dist/pin-input/examples/verification.html +6 -6
- package/dist/pin-input/examples/verification.html.js +5 -0
- package/dist/pin-input/pin-input.events.d.ts +2 -3
- package/dist/pin-input/pin-input.machine.d.ts +3 -3
- package/dist/pin-input/pin-input.machine.js +1 -1
- package/dist/pin-input/pin-input.presentation.d.ts +4 -5
- package/dist/pin-input/pin-input.presentation.js +2 -2
- package/dist/pin-input/pin-input.state.d.ts +1 -2
- package/dist/pin-input/pin-input.state.js +1 -1
- package/dist/pin-input/pin-input.transitions.d.ts +1 -2
- package/dist/popover/examples/basic.html +4 -4
- package/dist/popover/examples/basic.html.js +5 -0
- package/dist/popover/examples/feedback.html +5 -5
- package/dist/popover/examples/feedback.html.js +5 -0
- package/dist/popover/examples/notifications.html +5 -5
- package/dist/popover/examples/notifications.html.js +5 -0
- package/dist/popover/examples/settings.html +8 -8
- package/dist/popover/examples/settings.html.js +5 -0
- package/dist/popover/examples/share.html +5 -5
- package/dist/popover/examples/share.html.js +5 -0
- package/dist/popover/examples/user.html +10 -10
- package/dist/popover/examples/user.html.js +5 -0
- package/dist/popover/popover.controller-def.d.ts +2 -4
- package/dist/popover/popover.controller-def.js +1 -1
- package/dist/rating-group/examples/basic.html +9 -9
- package/dist/rating-group/examples/basic.html.js +5 -0
- package/dist/rating-group/examples/movie.html +11 -11
- package/dist/rating-group/examples/movie.html.js +5 -0
- package/dist/rating-group/examples/product-review.html +13 -13
- package/dist/rating-group/examples/product-review.html.js +5 -0
- package/dist/rating-group/examples/service-evaluation.html +5 -5
- package/dist/rating-group/examples/service-evaluation.html.js +5 -0
- package/dist/rating-group/rating-group.events.d.ts +2 -3
- package/dist/rating-group/rating-group.machine.d.ts +2 -3
- package/dist/rating-group/rating-group.machine.js +1 -1
- package/dist/rating-group/rating-group.presentation.d.ts +6 -7
- package/dist/rating-group/rating-group.presentation.js +2 -2
- package/dist/rating-group/rating-group.state.d.ts +1 -2
- package/dist/rating-group/rating-group.state.js +1 -1
- package/dist/rating-group/rating-group.transitions.d.ts +3 -4
- package/dist/react/react.d.ts +2 -3
- package/dist/runtime/actions/action.d.ts +64 -0
- package/dist/runtime/actions/action.js +45 -0
- package/dist/runtime/actions/anchor.d.ts +43 -0
- package/dist/runtime/actions/anchor.js +127 -0
- package/dist/runtime/actions/date-picker-focus.d.ts +19 -0
- package/dist/runtime/actions/date-picker-focus.js +16 -0
- package/dist/runtime/actions/drag.d.ts +66 -0
- package/dist/runtime/actions/drag.js +118 -0
- package/dist/runtime/actions/form-control.d.ts +18 -0
- package/dist/runtime/actions/form-control.js +41 -0
- package/dist/runtime/actions/hover-delay.d.ts +26 -0
- package/dist/runtime/actions/hover-delay.js +61 -0
- package/dist/runtime/actions/index.d.ts +113 -0
- package/dist/runtime/actions/index.js +240 -0
- package/dist/runtime/actions/infinite-scroll.d.ts +22 -0
- package/dist/runtime/actions/infinite-scroll.js +33 -0
- package/dist/runtime/actions/interact-outside.d.ts +43 -0
- package/dist/runtime/actions/interact-outside.js +72 -0
- package/dist/runtime/actions/observe.d.ts +27 -0
- package/dist/runtime/actions/observe.js +25 -0
- package/dist/runtime/actions/scroll-into-view.d.ts +32 -0
- package/dist/runtime/actions/scroll-into-view.js +36 -0
- package/dist/runtime/actions/select-focus.d.ts +17 -0
- package/dist/runtime/actions/select-focus.js +16 -0
- package/dist/runtime/actions/select-options.d.ts +25 -0
- package/dist/runtime/actions/select-options.js +27 -0
- package/dist/runtime/actions/toast-actions.d.ts +65 -0
- package/dist/runtime/actions/toast-actions.js +143 -0
- package/dist/runtime/aria.d.ts +231 -0
- package/dist/runtime/aria.js +193 -0
- package/dist/runtime/component/define.d.ts +242 -0
- package/dist/runtime/component/define.js +12 -0
- package/dist/runtime/component/ids.d.ts +14 -0
- package/dist/runtime/component/ids.js +35 -0
- package/dist/runtime/component/synthesize.d.ts +32 -0
- package/dist/runtime/component/synthesize.js +385 -0
- package/dist/runtime/core/signal.d.ts +57 -0
- package/dist/runtime/core/signal.js +100 -0
- package/dist/runtime/core/style.d.ts +14 -0
- package/dist/runtime/core/style.js +31 -0
- package/dist/runtime/directives/bind.d.ts +38 -0
- package/dist/runtime/directives/bind.js +244 -0
- package/dist/runtime/directives/for.d.ts +12 -0
- package/dist/runtime/directives/for.js +104 -0
- package/dist/runtime/directives/if.d.ts +10 -0
- package/dist/runtime/directives/if.js +45 -0
- package/dist/runtime/directives/load.d.ts +13 -0
- package/dist/runtime/directives/load.js +119 -0
- package/dist/runtime/directives/spread.d.ts +17 -0
- package/dist/runtime/directives/spread.js +121 -0
- package/dist/runtime/directives/tpl.d.ts +11 -0
- package/dist/runtime/directives/tpl.js +39 -0
- package/dist/runtime/directives/use.d.ts +13 -0
- package/dist/runtime/directives/use.js +34 -0
- package/dist/runtime/index.d.ts +101 -0
- package/dist/runtime/index.js +40 -0
- package/dist/runtime/machine/fsm/machine.d.ts +192 -0
- package/dist/runtime/machine/fsm/machine.js +248 -0
- package/dist/runtime/math/index.d.ts +2 -0
- package/dist/runtime/math/index.js +1 -0
- package/dist/runtime/math/numbers.d.ts +58 -0
- package/dist/runtime/math/numbers.js +115 -0
- package/dist/runtime/props.d.ts +61 -0
- package/dist/runtime/props.js +113 -0
- package/dist/runtime/scope/element.d.ts +86 -0
- package/dist/runtime/scope/element.js +226 -0
- package/dist/runtime/scope/table.d.ts +55 -0
- package/dist/runtime/scope/table.js +174 -0
- package/dist/runtime/syntax/braces.d.ts +2 -0
- package/dist/runtime/syntax/braces.js +35 -0
- package/dist/runtime/syntax/classes.d.ts +22 -0
- package/dist/runtime/syntax/classes.js +119 -0
- package/dist/runtime/syntax/display.d.ts +25 -0
- package/dist/runtime/syntax/display.js +344 -0
- package/dist/runtime/syntax/expand-groups.d.ts +12 -0
- package/dist/runtime/syntax/expand-groups.js +31 -0
- package/dist/runtime/syntax/ir.d.ts +76 -0
- package/dist/runtime/syntax/ir.js +11 -0
- package/dist/runtime/syntax/parse.d.ts +2 -0
- package/dist/runtime/syntax/parse.js +407 -0
- package/dist/runtime/syntax/script-block.d.ts +43 -0
- package/dist/runtime/syntax/script-block.js +190 -0
- package/dist/runtime/testing.d.ts +11 -0
- package/dist/runtime/testing.js +1 -0
- package/dist/select/examples/basic.html +9 -9
- package/dist/select/examples/basic.html.js +5 -0
- package/dist/select/examples/category.html +10 -10
- package/dist/select/examples/category.html.js +5 -0
- package/dist/select/examples/country.html +10 -10
- package/dist/select/examples/country.html.js +5 -0
- package/dist/select/examples/language.html.js +5 -0
- package/dist/select/examples/multiple.html.js +5 -0
- package/dist/select/examples/profile.html +10 -10
- package/dist/select/examples/profile.html.js +5 -0
- package/dist/select/examples/theme.html.js +5 -0
- package/dist/select/examples/with-overlapping-label.html +8 -8
- package/dist/select/examples/with-overlapping-label.html.js +5 -0
- package/dist/select/select.events.d.ts +2 -3
- package/dist/select/select.machine.d.ts +2 -3
- package/dist/select/select.machine.js +1 -1
- package/dist/select/select.presentation.d.ts +16 -20
- package/dist/select/select.presentation.js +6 -6
- package/dist/select/select.shared.d.ts +1 -2
- package/dist/select/select.state.d.ts +1 -2
- package/dist/select/select.state.js +1 -1
- package/dist/select/select.transitions.d.ts +2 -3
- package/dist/shared/keyboard.d.ts +1 -2
- package/dist/signature-pad/examples/basic.html +3 -3
- package/dist/signature-pad/examples/basic.html.js +5 -0
- package/dist/signature-pad/examples/contract.html +7 -7
- package/dist/signature-pad/examples/contract.html.js +5 -0
- package/dist/signature-pad/examples/receipt.html +8 -8
- package/dist/signature-pad/examples/receipt.html.js +5 -0
- package/dist/signature-pad/examples/with-preview.html +6 -6
- package/dist/signature-pad/examples/with-preview.html.js +5 -0
- package/dist/signature-pad/signature-pad.events.d.ts +2 -3
- package/dist/signature-pad/signature-pad.machine.d.ts +4 -4
- package/dist/signature-pad/signature-pad.machine.js +2 -2
- package/dist/signature-pad/signature-pad.presentation.d.ts +10 -11
- package/dist/signature-pad/signature-pad.presentation.js +2 -2
- package/dist/signature-pad/signature-pad.state.d.ts +1 -2
- package/dist/signature-pad/signature-pad.state.js +1 -1
- package/dist/signature-pad/signature-pad.transitions.d.ts +3 -4
- package/dist/slider/examples/basic.html +1 -1
- package/dist/slider/examples/basic.html.js +5 -0
- package/dist/slider/examples/equalizer.html +13 -13
- package/dist/slider/examples/equalizer.html.js +5 -0
- package/dist/slider/examples/fractional.html.js +5 -0
- package/dist/slider/examples/marks.html +2 -2
- package/dist/slider/examples/marks.html.js +5 -0
- package/dist/slider/examples/range.html +1 -1
- package/dist/slider/examples/range.html.js +5 -0
- package/dist/slider/examples/stepped.html.js +5 -0
- package/dist/slider/examples/ticks.html +2 -2
- package/dist/slider/examples/ticks.html.js +5 -0
- package/dist/slider/examples/vertical.html.js +5 -0
- package/dist/slider/slider.events.d.ts +2 -3
- package/dist/slider/slider.machine.d.ts +3 -3
- package/dist/slider/slider.machine.js +2 -2
- package/dist/slider/slider.presentation.d.ts +7 -8
- package/dist/slider/slider.presentation.js +2 -2
- package/dist/slider/slider.state.d.ts +1 -2
- package/dist/slider/slider.state.js +1 -1
- package/dist/slider/slider.transitions.d.ts +3 -4
- package/dist/slider/slider.transitions.js +1 -1
- package/dist/solid/solid.d.ts +2 -3
- package/dist/spin-element.d.ts +1 -2
- package/dist/spin-element.js +1 -1
- package/dist/splitter/examples/basic.html +2 -2
- package/dist/splitter/examples/basic.html.js +5 -0
- package/dist/splitter/examples/nested.html +4 -4
- package/dist/splitter/examples/nested.html.js +5 -0
- package/dist/splitter/examples/threepanels.html +2 -2
- package/dist/splitter/examples/threepanels.html.js +5 -0
- package/dist/splitter/examples/vertical.html +2 -2
- package/dist/splitter/examples/vertical.html.js +5 -0
- package/dist/splitter/splitter.events.d.ts +2 -3
- package/dist/splitter/splitter.machine.d.ts +2 -3
- package/dist/splitter/splitter.machine.js +1 -1
- package/dist/splitter/splitter.presentation.d.ts +5 -6
- package/dist/splitter/splitter.presentation.js +1 -1
- package/dist/splitter/splitter.state.d.ts +1 -2
- package/dist/splitter/splitter.state.js +1 -1
- package/dist/splitter/splitter.transitions.d.ts +2 -3
- package/dist/steps/examples/basic.html +5 -5
- package/dist/steps/examples/basic.html.js +5 -0
- package/dist/steps/examples/checkmarks.html +4 -4
- package/dist/steps/examples/checkmarks.html.js +5 -0
- package/dist/steps/examples/content.html +5 -5
- package/dist/steps/examples/content.html.js +5 -0
- package/dist/steps/examples/descriptions.html +2 -2
- package/dist/steps/examples/descriptions.html.js +5 -0
- package/dist/steps/examples/icons.html +2 -2
- package/dist/steps/examples/icons.html.js +5 -0
- package/dist/steps/examples/lines.html +2 -2
- package/dist/steps/examples/lines.html.js +5 -0
- package/dist/steps/examples/navigation.html +4 -4
- package/dist/steps/examples/navigation.html.js +5 -0
- package/dist/steps/examples/onboarding.html +4 -4
- package/dist/steps/examples/onboarding.html.js +5 -0
- package/dist/steps/examples/progress.html +3 -3
- package/dist/steps/examples/progress.html.js +5 -0
- package/dist/steps/examples/segmented.html +6 -6
- package/dist/steps/examples/segmented.html.js +5 -0
- package/dist/steps/examples/vertical.html +5 -5
- package/dist/steps/examples/vertical.html.js +5 -0
- package/dist/steps/examples/verticallabels.html +2 -2
- package/dist/steps/examples/verticallabels.html.js +5 -0
- package/dist/steps/examples/verticalnavigation.html +2 -2
- package/dist/steps/examples/verticalnavigation.html.js +5 -0
- package/dist/steps/steps.events.d.ts +2 -3
- package/dist/steps/steps.machine.d.ts +3 -3
- package/dist/steps/steps.machine.js +1 -1
- package/dist/steps/steps.presentation.d.ts +4 -5
- package/dist/steps/steps.presentation.js +1 -1
- package/dist/steps/steps.state.d.ts +1 -2
- package/dist/steps/steps.state.js +1 -1
- package/dist/steps/steps.transitions.d.ts +3 -4
- package/dist/tabs/examples/basic.html +2 -2
- package/dist/tabs/examples/basic.html.js +5 -0
- package/dist/tabs/examples/dashboard.html +42 -42
- package/dist/tabs/examples/dashboard.html.js +5 -0
- package/dist/tabs/examples/ghost.html +2 -2
- package/dist/tabs/examples/ghost.html.js +5 -0
- package/dist/tabs/examples/icon-above.html +6 -6
- package/dist/tabs/examples/icon-above.html.js +5 -0
- package/dist/tabs/examples/icon-only.html +3 -3
- package/dist/tabs/examples/icon-only.html.js +5 -0
- package/dist/tabs/examples/outline-with-icons.html +6 -6
- package/dist/tabs/examples/outline-with-icons.html.js +5 -0
- package/dist/tabs/examples/outline.html +3 -3
- package/dist/tabs/examples/outline.html.js +5 -0
- package/dist/tabs/examples/pills.html +2 -2
- package/dist/tabs/examples/pills.html.js +5 -0
- package/dist/tabs/examples/project.html +33 -33
- package/dist/tabs/examples/project.html.js +5 -0
- package/dist/tabs/examples/settings.html +35 -35
- package/dist/tabs/examples/settings.html.js +5 -0
- package/dist/tabs/examples/stack-with-icons.html +7 -7
- package/dist/tabs/examples/stack-with-icons.html.js +5 -0
- package/dist/tabs/examples/stack.html +3 -3
- package/dist/tabs/examples/stack.html.js +5 -0
- package/dist/tabs/examples/underline.html +3 -3
- package/dist/tabs/examples/underline.html.js +5 -0
- package/dist/tabs/examples/vertical-ghost.html +3 -3
- package/dist/tabs/examples/vertical-ghost.html.js +5 -0
- package/dist/tabs/examples/vertical-icons.html +5 -5
- package/dist/tabs/examples/vertical-icons.html.js +5 -0
- package/dist/tabs/examples/vertical-underline.html +4 -4
- package/dist/tabs/examples/vertical-underline.html.js +5 -0
- package/dist/tabs/examples/vertical-with-icons.html +6 -6
- package/dist/tabs/examples/vertical-with-icons.html.js +5 -0
- package/dist/tabs/examples/vertical.html +2 -2
- package/dist/tabs/examples/vertical.html.js +5 -0
- package/dist/tabs/examples/with-badges.html +3 -3
- package/dist/tabs/examples/with-badges.html.js +5 -0
- package/dist/tabs/examples/with-icons.html +4 -4
- package/dist/tabs/examples/with-icons.html.js +5 -0
- package/dist/tabs/tabs.events.d.ts +2 -3
- package/dist/tabs/tabs.machine.d.ts +3 -3
- package/dist/tabs/tabs.machine.js +1 -1
- package/dist/tabs/tabs.presentation.d.ts +6 -7
- package/dist/tabs/tabs.presentation.js +1 -1
- package/dist/tabs/tabs.state.d.ts +1 -2
- package/dist/tabs/tabs.state.js +1 -1
- package/dist/tabs/tabs.transitions.d.ts +3 -4
- package/dist/tags-input/examples/basic.html +9 -9
- package/dist/tags-input/examples/basic.html.js +5 -0
- package/dist/tags-input/examples/with-combobox.html +14 -14
- package/dist/tags-input/examples/with-combobox.html.js +5 -0
- package/dist/tags-input/tags.events.d.ts +2 -3
- package/dist/tags-input/tags.machine.d.ts +6 -4
- package/dist/tags-input/tags.machine.js +2 -2
- package/dist/tags-input/tags.presentation.d.ts +6 -7
- package/dist/tags-input/tags.presentation.js +1 -1
- package/dist/tags-input/tags.state.d.ts +1 -2
- package/dist/tags-input/tags.state.js +2 -2
- package/dist/tags-input/tags.transitions.d.ts +2 -3
- package/dist/theme-picker/examples/basic.html +6 -6
- package/dist/theme-picker/examples/basic.html.js +5 -0
- package/dist/theme-picker/examples/cards.html +4 -4
- package/dist/theme-picker/examples/cards.html.js +5 -0
- package/dist/theme-picker/examples/compact.html +3 -3
- package/dist/theme-picker/examples/compact.html.js +5 -0
- package/dist/theme-picker/examples/swatches.html +2 -2
- package/dist/theme-picker/examples/swatches.html.js +5 -0
- package/dist/theme-picker/theme-picker.events.d.ts +2 -3
- package/dist/theme-picker/theme-picker.machine.d.ts +3 -3
- package/dist/theme-picker/theme-picker.machine.js +1 -1
- package/dist/theme-picker/theme-picker.presentation.d.ts +9 -10
- package/dist/theme-picker/theme-picker.presentation.js +2 -2
- package/dist/theme-picker/theme-picker.state.d.ts +1 -2
- package/dist/theme-picker/theme-picker.transitions.d.ts +3 -4
- package/dist/timer/examples/basic.html +1 -1
- package/dist/timer/examples/basic.html.js +5 -0
- package/dist/timer/examples/card.html +4 -4
- package/dist/timer/examples/card.html.js +5 -0
- package/dist/timer/examples/compact.html +5 -5
- package/dist/timer/examples/compact.html.js +5 -0
- package/dist/timer/examples/countdown.html +3 -3
- package/dist/timer/examples/countdown.html.js +5 -0
- package/dist/timer/examples/labels.html +3 -3
- package/dist/timer/examples/labels.html.js +5 -0
- package/dist/timer/examples/large.html +2 -2
- package/dist/timer/examples/large.html.js +5 -0
- package/dist/timer/examples/minimal.html +1 -1
- package/dist/timer/examples/minimal.html.js +5 -0
- package/dist/timer/examples/pomodoro.html +3 -3
- package/dist/timer/examples/pomodoro.html.js +5 -0
- package/dist/timer/examples/workout.html +4 -4
- package/dist/timer/examples/workout.html.js +5 -0
- package/dist/timer/timer.events.d.ts +2 -3
- package/dist/timer/timer.machine.d.ts +2 -3
- package/dist/timer/timer.machine.js +1 -1
- package/dist/timer/timer.presentation.d.ts +7 -8
- package/dist/timer/timer.presentation.js +1 -1
- package/dist/timer/timer.state.d.ts +1 -2
- package/dist/timer/timer.state.js +1 -1
- package/dist/timer/timer.transitions.d.ts +2 -3
- package/dist/toast/examples/action.html +3 -3
- package/dist/toast/examples/action.html.js +5 -0
- package/dist/toast/examples/basic.html +3 -3
- package/dist/toast/examples/basic.html.js +5 -0
- package/dist/toast/examples/bottomcenter.html +3 -3
- package/dist/toast/examples/bottomcenter.html.js +5 -0
- package/dist/toast/examples/bottomleft.html +3 -3
- package/dist/toast/examples/bottomleft.html.js +5 -0
- package/dist/toast/examples/bottomright.html +3 -3
- package/dist/toast/examples/bottomright.html.js +5 -0
- package/dist/toast/examples/duration.html +3 -3
- package/dist/toast/examples/duration.html.js +5 -0
- package/dist/toast/examples/promise.html +6 -6
- package/dist/toast/examples/promise.html.js +5 -0
- package/dist/toast/examples/topcenter.html +3 -3
- package/dist/toast/examples/topcenter.html.js +5 -0
- package/dist/toast/examples/topleft.html +3 -3
- package/dist/toast/examples/topleft.html.js +5 -0
- package/dist/toast/examples/topright.html +3 -3
- package/dist/toast/examples/topright.html.js +5 -0
- package/dist/toast/examples/types.html +3 -3
- package/dist/toast/examples/types.html.js +5 -0
- package/dist/toast/examples/updatable.html.js +5 -0
- package/dist/toast/toast.events.d.ts +2 -3
- package/dist/toast/toast.machine.d.ts +4 -4
- package/dist/toast/toast.machine.js +1 -1
- package/dist/toast/toast.presentation.d.ts +5 -6
- package/dist/toast/toast.presentation.js +1 -1
- package/dist/toast/toast.state.d.ts +1 -2
- package/dist/toast/toast.state.js +3 -3
- package/dist/toast/toast.transitions.d.ts +3 -4
- package/dist/toc/examples/basic.html +31 -0
- package/dist/toc/examples/basic.html.js +5 -0
- package/dist/toc/toc.events.d.ts +19 -0
- package/dist/toc/toc.events.js +1 -0
- package/dist/toc/toc.machine.d.ts +5 -0
- package/dist/toc/toc.machine.js +59 -0
- package/dist/toc/toc.presentation.d.ts +127 -0
- package/dist/toc/toc.presentation.js +117 -0
- package/dist/toc/toc.state.d.ts +41 -0
- package/dist/toc/toc.state.js +64 -0
- package/dist/toc/toc.transitions.d.ts +8 -0
- package/dist/toc/toc.transitions.js +27 -0
- package/dist/toggle-group/examples/basic.html +2 -2
- package/dist/toggle-group/examples/basic.html.js +5 -0
- package/dist/toggle-group/examples/ghost.html +1 -1
- package/dist/toggle-group/examples/ghost.html.js +5 -0
- package/dist/toggle-group/examples/icons.html +3 -3
- package/dist/toggle-group/examples/icons.html.js +5 -0
- package/dist/toggle-group/examples/multiple.html.js +5 -0
- package/dist/toggle-group/examples/outline.html +2 -2
- package/dist/toggle-group/examples/outline.html.js +5 -0
- package/dist/toggle-group/examples/toolbar.html +3 -3
- package/dist/toggle-group/examples/toolbar.html.js +5 -0
- package/dist/toggle-group/toggle-group.events.d.ts +2 -3
- package/dist/toggle-group/toggle-group.machine.d.ts +3 -3
- package/dist/toggle-group/toggle-group.machine.js +1 -1
- package/dist/toggle-group/toggle-group.presentation.d.ts +6 -7
- package/dist/toggle-group/toggle-group.presentation.js +2 -2
- package/dist/toggle-group/toggle-group.state.d.ts +1 -2
- package/dist/toggle-group/toggle-group.state.js +1 -1
- package/dist/toggle-group/toggle-group.transitions.d.ts +3 -4
- package/dist/tooltip/examples/basic.html.js +5 -0
- package/dist/tooltip/examples/metrics.html +9 -9
- package/dist/tooltip/examples/metrics.html.js +5 -0
- package/dist/tooltip/examples/positioning.html +4 -4
- package/dist/tooltip/examples/positioning.html.js +5 -0
- package/dist/tooltip/examples/status.html +10 -10
- package/dist/tooltip/examples/status.html.js +5 -0
- package/dist/tooltip/examples/video.html +6 -6
- package/dist/tooltip/examples/video.html.js +5 -0
- package/dist/tooltip/examples/with-arrow.html +1 -1
- package/dist/tooltip/examples/with-arrow.html.js +5 -0
- package/dist/tooltip/tooltip.controller-def.d.ts +3 -5
- package/dist/tooltip/tooltip.controller-def.js +1 -1
- package/dist/tour/examples/basic.html +5 -5
- package/dist/tour/examples/basic.html.js +5 -0
- package/dist/tour/tour.events.d.ts +2 -3
- package/dist/tour/tour.machine.d.ts +7 -3
- package/dist/tour/tour.machine.js +1 -1
- package/dist/tour/tour.presentation.d.ts +6 -7
- package/dist/tour/tour.presentation.js +1 -1
- package/dist/tour/tour.state.d.ts +1 -2
- package/dist/tour/tour.state.js +1 -1
- package/dist/tour/tour.transitions.d.ts +3 -4
- package/dist/tree-view/examples/basic.html +10 -10
- package/dist/tree-view/examples/basic.html.js +5 -0
- package/dist/tree-view/examples/loading.html +11 -11
- package/dist/tree-view/examples/loading.html.js +5 -0
- package/dist/tree-view/tree-view.events.d.ts +2 -3
- package/dist/tree-view/tree-view.machine.d.ts +2 -3
- package/dist/tree-view/tree-view.machine.js +1 -1
- package/dist/tree-view/tree-view.presentation.d.ts +9 -10
- package/dist/tree-view/tree-view.presentation.js +2 -2
- package/dist/tree-view/tree-view.state.d.ts +1 -2
- package/dist/tree-view/tree-view.state.js +1 -1
- package/dist/tree-view/tree-view.transitions.d.ts +3 -4
- package/package.json +43 -8
|
@@ -16,13 +16,13 @@ const machine = tabs({
|
|
|
16
16
|
<div class="mb-4 flex gap-1" {...machine.getListProps()}>
|
|
17
17
|
<template for={machine.items} as={row} key={row.value}>
|
|
18
18
|
<button
|
|
19
|
-
class="bare rounded-md px-4 py-2
|
|
19
|
+
class="bare rounded-md px-4 py-2 type-label transition-colors hover:bg-surface aria-[selected=true]:bg-surface aria-[selected=false]:text-muted"
|
|
20
20
|
{...machine.getTriggerProps(row)}
|
|
21
21
|
>{row.label}</button>
|
|
22
22
|
</template>
|
|
23
23
|
</div>
|
|
24
24
|
<template for={machine.items} as={row} key={row.value}>
|
|
25
|
-
<p class="
|
|
25
|
+
<p class="text-center text-muted"
|
|
26
26
|
{...machine.getContentProps(row)}>{row.content}</p>
|
|
27
27
|
</template>
|
|
28
28
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/ghost.html
|
|
2
|
+
var ghost_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n { value: \"tab1\", label: \"Files\", content: \"The checkout-api release bundle.\" },\n { value: \"tab2\", label: \"History\", content: \"Every deploy, rollback, and flag flip.\" },\n { value: \"tab3\", label: \"Security\", content: \"API tokens, members, and audit log.\" },\n ],\n defaultValue: \"tab1\",\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-md flex-col items-center\"\n {...machine.getRootProps()}>\n <div class=\"mb-4 flex gap-1\" {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare rounded-md px-4 py-2 type-label transition-colors hover:bg-surface aria-[selected=true]:bg-surface aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n >{row.label}</button>\n </template>\n </div>\n <template for={machine.items} as={row} key={row.value}>\n <p class=\"text-center text-muted\"\n {...machine.getContentProps(row)}>{row.content}</p>\n </template>\n</div>\n";
|
|
3
|
+
export { ghost_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=ghost.html.js.map
|
|
@@ -26,25 +26,25 @@ const machine = tabs({
|
|
|
26
26
|
<div class="mx-auto flex w-full max-w-md flex-col items-center"
|
|
27
27
|
{...machine.getRootProps()}>
|
|
28
28
|
<div
|
|
29
|
-
class="relative mb-4 flex w-fit gap-6 border-b
|
|
29
|
+
class="relative mb-4 flex w-fit gap-6 border-b"
|
|
30
30
|
{...machine.getListProps()}>
|
|
31
31
|
<template for={machine.items} as={row} key={row.value}>
|
|
32
32
|
<button
|
|
33
|
-
class="bare flex flex-col items-center gap-2 border-b-2 border-solid px-3 py-2
|
|
33
|
+
class="bare flex flex-col items-center gap-2 border-b-2 border-solid px-3 py-2 type-caption-emphasized transition-colors aria-[selected=true]:border-primary aria-[selected=false]:border-transparent aria-[selected=false]:text-muted"
|
|
34
34
|
{...machine.getTriggerProps(row)}
|
|
35
35
|
>
|
|
36
|
-
<span class="i-lucide-house
|
|
36
|
+
<span class="i-lucide-house type-body" aria-hidden="true"
|
|
37
37
|
show={row.value === "overview"}></span>
|
|
38
|
-
<span class="i-lucide-folder-open
|
|
38
|
+
<span class="i-lucide-folder-open type-body" aria-hidden="true"
|
|
39
39
|
show={row.value === "projects"}></span>
|
|
40
|
-
<span class="i-lucide-package
|
|
40
|
+
<span class="i-lucide-package type-body" aria-hidden="true"
|
|
41
41
|
show={row.value === "packages"}></span>
|
|
42
42
|
<span>{row.label}</span>
|
|
43
43
|
</button>
|
|
44
44
|
</template>
|
|
45
45
|
</div>
|
|
46
46
|
<template for={machine.items} as={row} key={row.value}>
|
|
47
|
-
<p class="
|
|
47
|
+
<p class="text-center text-muted"
|
|
48
48
|
{...machine.getContentProps(row)}>{row.content}</p>
|
|
49
49
|
</template>
|
|
50
50
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/icon-above.html
|
|
2
|
+
var icon_above_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n {\n value: \"overview\",\n label: \"Overview\",\n content: \"Fleet health at a glance.\",\n },\n {\n value: \"projects\",\n label: \"Projects\",\n content: \"checkout-api and its preview deploys.\",\n },\n {\n value: \"packages\",\n label: \"Packages\",\n content: \"Canary channel and pinned versions.\",\n },\n ],\n defaultValue: \"overview\",\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-md flex-col items-center\"\n {...machine.getRootProps()}>\n <div\n class=\"relative mb-4 flex w-fit gap-6 border-b\"\n {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare flex flex-col items-center gap-2 border-b-2 border-solid px-3 py-2 type-caption-emphasized transition-colors aria-[selected=true]:border-primary aria-[selected=false]:border-transparent aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n >\n <span class=\"i-lucide-house type-body\" aria-hidden=\"true\"\n show={row.value === \"overview\"}></span>\n <span class=\"i-lucide-folder-open type-body\" aria-hidden=\"true\"\n show={row.value === \"projects\"}></span>\n <span class=\"i-lucide-package type-body\" aria-hidden=\"true\"\n show={row.value === \"packages\"}></span>\n <span>{row.label}</span>\n </button>\n </template>\n </div>\n <template for={machine.items} as={row} key={row.value}>\n <p class=\"text-center text-muted\"\n {...machine.getContentProps(row)}>{row.content}</p>\n </template>\n</div>\n";
|
|
3
|
+
export { icon_above_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=icon-above.html.js.map
|
|
@@ -25,13 +25,13 @@ const machine = tabs({
|
|
|
25
25
|
{...machine.getListProps()}>
|
|
26
26
|
<template for={machine.items} as={row} key={row.value}>
|
|
27
27
|
<button
|
|
28
|
-
class="bare grid h-10 w-10 place-items-center rounded-md transition-all aria-[selected=true]:bg-surface aria-[selected=true]:
|
|
28
|
+
class="bare grid h-10 w-10 place-items-center rounded-md transition-all aria-[selected=true]:bg-surface aria-[selected=true]:shadow-sm aria-[selected=false]:text-muted"
|
|
29
29
|
{...machine.getTriggerProps(row)}
|
|
30
|
-
><span class="i-lucide-chart-bar
|
|
30
|
+
><span class="i-lucide-chart-bar type-code" aria-hidden="true" show={row.value === "tab1"}></span><span class="i-lucide-users type-code" aria-hidden="true" show={row.value === "tab2"}></span><span class="i-lucide-settings type-code" aria-hidden="true" show={row.value === "tab3"}></span><span class="sr-only">{row.label}</span></button>
|
|
31
31
|
</template>
|
|
32
32
|
</div>
|
|
33
33
|
<template for={machine.items} as={row} key={row.value}>
|
|
34
|
-
<p class="
|
|
34
|
+
<p class="text-center text-muted"
|
|
35
35
|
{...machine.getContentProps(row)}>{row.content}</p>
|
|
36
36
|
</template>
|
|
37
37
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/icon-only.html
|
|
2
|
+
var icon_only_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n {\n value: \"tab1\",\n label: \"Charts\",\n content: \"Latency and error budgets for Deploy #4821.\",\n },\n { value: \"tab2\", label: \"Team\", content: \"Priya, Tomas, and the on-call rotation.\" },\n {\n value: \"tab3\",\n label: \"Settings\",\n content: \"Workspace preferences and API tokens.\",\n },\n ],\n defaultValue: \"tab1\",\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-md flex-col items-center\"\n {...machine.getRootProps()}>\n <div class=\"mb-4 flex w-fit gap-1 rounded-lg bg-surface-raised p-1\"\n {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare grid h-10 w-10 place-items-center rounded-md transition-all aria-[selected=true]:bg-surface aria-[selected=true]:shadow-sm aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n ><span class=\"i-lucide-chart-bar type-code\" aria-hidden=\"true\" show={row.value === \"tab1\"}></span><span class=\"i-lucide-users type-code\" aria-hidden=\"true\" show={row.value === \"tab2\"}></span><span class=\"i-lucide-settings type-code\" aria-hidden=\"true\" show={row.value === \"tab3\"}></span><span class=\"sr-only\">{row.label}</span></button>\n </template>\n </div>\n <template for={machine.items} as={row} key={row.value}>\n <p class=\"text-center text-muted\"\n {...machine.getContentProps(row)}>{row.content}</p>\n </template>\n</div>\n";
|
|
3
|
+
export { icon_only_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=icon-only.html.js.map
|
|
@@ -26,25 +26,25 @@ const machine = tabs({
|
|
|
26
26
|
<div class="mx-auto flex w-full max-w-md flex-col items-center"
|
|
27
27
|
{...machine.getRootProps()}>
|
|
28
28
|
<div
|
|
29
|
-
class="mb-4 flex w-fit rounded-lg border
|
|
29
|
+
class="mb-4 flex w-fit rounded-lg border p-1"
|
|
30
30
|
{...machine.getListProps()}>
|
|
31
31
|
<template for={machine.items} as={row} key={row.value}>
|
|
32
32
|
<button
|
|
33
|
-
class="bare flex items-center gap-2 rounded-md px-4 py-1
|
|
33
|
+
class="bare flex items-center gap-2 rounded-md px-4 py-1 type-label transition-colors aria-[selected=true]:bg-surface aria-[selected=false]:text-muted"
|
|
34
34
|
{...machine.getTriggerProps(row)}
|
|
35
35
|
>
|
|
36
|
-
<span class="i-lucide-inbox
|
|
36
|
+
<span class="i-lucide-inbox type-code" aria-hidden="true"
|
|
37
37
|
show={row.value === "inbox"}></span>
|
|
38
|
-
<span class="i-lucide-file-text
|
|
38
|
+
<span class="i-lucide-file-text type-code" aria-hidden="true"
|
|
39
39
|
show={row.value === "drafts"}></span>
|
|
40
|
-
<span class="i-lucide-send
|
|
40
|
+
<span class="i-lucide-send type-code" aria-hidden="true"
|
|
41
41
|
show={row.value === "sent"}></span>
|
|
42
42
|
<span>{row.label}</span>
|
|
43
43
|
</button>
|
|
44
44
|
</template>
|
|
45
45
|
</div>
|
|
46
46
|
<template for={machine.items} as={row} key={row.value}>
|
|
47
|
-
<p class="
|
|
47
|
+
<p class="text-center text-muted"
|
|
48
48
|
{...machine.getContentProps(row)}>{row.content}</p>
|
|
49
49
|
</template>
|
|
50
50
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/outline-with-icons.html
|
|
2
|
+
var outline_with_icons_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n {\n value: \"inbox\",\n label: \"Inbox\",\n content: \"Deploy notifications and mentions.\",\n },\n {\n value: \"drafts\",\n label: \"Drafts\",\n content: \"Unfinished incident notes.\",\n },\n {\n value: \"sent\",\n label: \"Sent\",\n content: \"Shipped changelogs and receipts.\",\n },\n ],\n defaultValue: \"inbox\",\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-md flex-col items-center\"\n {...machine.getRootProps()}>\n <div\n class=\"mb-4 flex w-fit rounded-lg border p-1\"\n {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare flex items-center gap-2 rounded-md px-4 py-1 type-label transition-colors aria-[selected=true]:bg-surface aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n >\n <span class=\"i-lucide-inbox type-code\" aria-hidden=\"true\"\n show={row.value === \"inbox\"}></span>\n <span class=\"i-lucide-file-text type-code\" aria-hidden=\"true\"\n show={row.value === \"drafts\"}></span>\n <span class=\"i-lucide-send type-code\" aria-hidden=\"true\"\n show={row.value === \"sent\"}></span>\n <span>{row.label}</span>\n </button>\n </template>\n </div>\n <template for={machine.items} as={row} key={row.value}>\n <p class=\"text-center text-muted\"\n {...machine.getContentProps(row)}>{row.content}</p>\n </template>\n</div>\n";
|
|
3
|
+
export { outline_with_icons_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=outline-with-icons.html.js.map
|
|
@@ -13,17 +13,17 @@ const machine = tabs({
|
|
|
13
13
|
|
|
14
14
|
<div class="mx-auto flex w-full max-w-md flex-col items-center"
|
|
15
15
|
{...machine.getRootProps()}>
|
|
16
|
-
<div class="mb-4 flex w-fit overflow-hidden rounded-lg border
|
|
16
|
+
<div class="mb-4 flex w-fit overflow-hidden rounded-lg border"
|
|
17
17
|
{...machine.getListProps()}>
|
|
18
18
|
<template for={machine.items} as={row} key={row.value}>
|
|
19
19
|
<button
|
|
20
|
-
class="bare px-4 py-2
|
|
20
|
+
class="bare px-4 py-2 type-label transition-colors aria-[selected=true]:bg-surface aria-[selected=false]:text-muted"
|
|
21
21
|
{...machine.getTriggerProps(row)}
|
|
22
22
|
>{row.label}</button>
|
|
23
23
|
</template>
|
|
24
24
|
</div>
|
|
25
25
|
<template for={machine.items} as={row} key={row.value}>
|
|
26
|
-
<p class="
|
|
26
|
+
<p class="text-center text-muted"
|
|
27
27
|
{...machine.getContentProps(row)}>{row.content}</p>
|
|
28
28
|
</template>
|
|
29
29
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/outline.html
|
|
2
|
+
var outline_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n { value: \"tab1\", label: \"Inbox\", content: \"Deploy notifications and mentions.\" },\n { value: \"tab2\", label: \"Drafts\", content: \"Unfinished incident notes.\" },\n { value: \"tab3\", label: \"Sent\", content: \"Shipped changelogs and receipts.\" },\n ],\n defaultValue: \"tab1\",\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-md flex-col items-center\"\n {...machine.getRootProps()}>\n <div class=\"mb-4 flex w-fit overflow-hidden rounded-lg border\"\n {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare px-4 py-2 type-label transition-colors aria-[selected=true]:bg-surface aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n >{row.label}</button>\n </template>\n </div>\n <template for={machine.items} as={row} key={row.value}>\n <p class=\"text-center text-muted\"\n {...machine.getContentProps(row)}>{row.content}</p>\n </template>\n</div>\n";
|
|
3
|
+
export { outline_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=outline.html.js.map
|
|
@@ -28,13 +28,13 @@ const machine = tabs({
|
|
|
28
28
|
<div class="mb-4 flex gap-2" {...machine.getListProps()}>
|
|
29
29
|
<template for={machine.items} as={row} key={row.value}>
|
|
30
30
|
<button
|
|
31
|
-
class="bare rounded-full border
|
|
31
|
+
class="bare rounded-full border px-4 py-1 type-label transition-all aria-[selected=true]:border-selected aria-[selected=true]:bg-selected aria-[selected=true]:text-on-selected aria-[selected=false]:border aria-[selected=false]:text-muted"
|
|
32
32
|
{...machine.getTriggerProps(row)}
|
|
33
33
|
>{row.label}</button>
|
|
34
34
|
</template>
|
|
35
35
|
</div>
|
|
36
36
|
<template for={machine.items} as={row} key={row.value}>
|
|
37
|
-
<p class="
|
|
37
|
+
<p class="text-center text-muted"
|
|
38
38
|
{...machine.getContentProps(row)}>{row.content}</p>
|
|
39
39
|
</template>
|
|
40
40
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/pills.html
|
|
2
|
+
var pills_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n {\n value: \"tab1\",\n label: \"Overview\",\n content: \"Fleet health at a glance.\",\n },\n {\n value: \"tab2\",\n label: \"Deployments\",\n content: \"Deploy #4821 is live on checkout-api.\",\n },\n {\n value: \"tab3\",\n label: \"Settings\",\n content: \"Workspace preferences and API tokens.\",\n },\n ],\n defaultValue: \"tab1\",\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-md flex-col items-center\"\n {...machine.getRootProps()}>\n <div class=\"mb-4 flex gap-2\" {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare rounded-full border px-4 py-1 type-label transition-all aria-[selected=true]:border-selected aria-[selected=true]:bg-selected aria-[selected=true]:text-on-selected aria-[selected=false]:border aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n >{row.label}</button>\n </template>\n </div>\n <template for={machine.items} as={row} key={row.value}>\n <p class=\"text-center text-muted\"\n {...machine.getContentProps(row)}>{row.content}</p>\n </template>\n</div>\n";
|
|
3
|
+
export { pills_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=pills.html.js.map
|
|
@@ -16,7 +16,7 @@ const machine = tabs({
|
|
|
16
16
|
<div class="flex gap-1 rounded-lg bg-surface-raised p-1" {...machine.getListProps()}>
|
|
17
17
|
<template for={machine.items} as={row} key={row.value}>
|
|
18
18
|
<button
|
|
19
|
-
class="bare flex items-center gap-2 rounded-md px-4 py-2
|
|
19
|
+
class="bare flex items-center gap-2 rounded-md px-4 py-2 type-body-emphasized transition-colors aria-[selected=true]:bg-surface aria-[selected=true]:shadow-sm aria-[selected=false]:text-muted"
|
|
20
20
|
{...machine.getTriggerProps(row)}
|
|
21
21
|
>{row.label}</button>
|
|
22
22
|
</template>
|
|
@@ -24,62 +24,62 @@ const machine = tabs({
|
|
|
24
24
|
<template for={machine.items} as={row} key={row.value}>
|
|
25
25
|
<div class="grid gap-6" {...machine.getContentProps(row)}>
|
|
26
26
|
<div class="grid grid-cols-3 gap-4" show={row.value === "board"}>
|
|
27
|
-
<div class="rounded-md border
|
|
28
|
-
<span class="
|
|
29
|
-
<div class="
|
|
30
|
-
<div class="rounded-md bg-surface p-3
|
|
31
|
-
<div class="rounded-md bg-surface p-3
|
|
27
|
+
<div class="grid gap-3 rounded-md border bg-surface-raised p-4">
|
|
28
|
+
<span class="type-label">To do</span>
|
|
29
|
+
<div class="grid gap-2">
|
|
30
|
+
<div class="rounded-md bg-surface p-3 type-body">Draft release notes</div>
|
|
31
|
+
<div class="rounded-md bg-surface p-3 type-body">Review PR #482</div>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
|
-
<div class="rounded-md border
|
|
35
|
-
<span class="
|
|
36
|
-
<div class="
|
|
37
|
-
<div class="rounded-md bg-surface p-3
|
|
34
|
+
<div class="grid gap-3 rounded-md border bg-surface-raised p-4">
|
|
35
|
+
<span class="type-label">In progress</span>
|
|
36
|
+
<div class="grid gap-2">
|
|
37
|
+
<div class="rounded-md bg-surface p-3 type-body">Migrate auth module</div>
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
40
|
-
<div class="rounded-md border
|
|
41
|
-
<span class="
|
|
42
|
-
<div class="
|
|
43
|
-
<div class="rounded-md bg-surface p-3
|
|
40
|
+
<div class="grid gap-3 rounded-md border bg-surface-raised p-4">
|
|
41
|
+
<span class="type-label">Done</span>
|
|
42
|
+
<div class="grid gap-2">
|
|
43
|
+
<div class="rounded-md bg-surface p-3 type-body">Ship v0.9</div>
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
47
47
|
<div class="grid gap-2" show={row.value === "list"}>
|
|
48
|
-
<div class="flex items-center gap-3 rounded-md border
|
|
48
|
+
<div class="flex items-center gap-3 rounded-md border bg-surface-raised p-3">
|
|
49
49
|
<input type="checkbox" />
|
|
50
|
-
<span class="
|
|
50
|
+
<span class="type-body">Draft release notes</span>
|
|
51
51
|
</div>
|
|
52
|
-
<div class="flex items-center gap-3 rounded-md border
|
|
52
|
+
<div class="flex items-center gap-3 rounded-md border bg-surface-raised p-3">
|
|
53
53
|
<input type="checkbox" checked />
|
|
54
|
-
<span class="
|
|
54
|
+
<span class="type-body line-through">Ship v0.9</span>
|
|
55
55
|
</div>
|
|
56
|
-
<div class="flex items-center gap-3 rounded-md border
|
|
56
|
+
<div class="flex items-center gap-3 rounded-md border bg-surface-raised p-3">
|
|
57
57
|
<input type="checkbox" />
|
|
58
|
-
<span class="
|
|
58
|
+
<span class="type-body">Migrate auth module</span>
|
|
59
59
|
</div>
|
|
60
60
|
</div>
|
|
61
|
-
<div class="rounded-md border
|
|
62
|
-
<span class="
|
|
63
|
-
<div class="
|
|
61
|
+
<div class="rounded-md border bg-surface-raised p-6" show={row.value === "calendar"}>
|
|
62
|
+
<span class="type-body-emphasized">October 2026</span>
|
|
63
|
+
<div class="grid grid-cols-7 gap-1 text-center type-body text-muted">
|
|
64
64
|
<span>M</span><span>T</span><span>W</span><span>T</span><span>F</span><span>S</span><span>S</span>
|
|
65
65
|
</div>
|
|
66
|
-
<div class="mt-2 grid grid-cols-7 gap-1 text-center
|
|
66
|
+
<div class="mt-2 grid grid-cols-7 gap-1 text-center type-body">
|
|
67
67
|
<span class="rounded-md bg-primary text-on-primary">15</span>
|
|
68
68
|
<span>16</span><span>17</span><span>18</span><span>19</span><span>20</span><span>21</span>
|
|
69
69
|
</div>
|
|
70
70
|
</div>
|
|
71
71
|
<div class="grid gap-3" show={row.value === "files"}>
|
|
72
|
-
<div class="flex items-center justify-between rounded-md border
|
|
73
|
-
<span class="
|
|
74
|
-
<span class="
|
|
72
|
+
<div class="flex items-center justify-between rounded-md border bg-surface-raised p-4">
|
|
73
|
+
<span class="type-body">spec.md</span>
|
|
74
|
+
<span class="type-body text-muted">12 KB</span>
|
|
75
75
|
</div>
|
|
76
|
-
<div class="flex items-center justify-between rounded-md border
|
|
77
|
-
<span class="
|
|
78
|
-
<span class="
|
|
76
|
+
<div class="flex items-center justify-between rounded-md border bg-surface-raised p-4">
|
|
77
|
+
<span class="type-body">design.fig</span>
|
|
78
|
+
<span class="type-body text-muted">4.1 MB</span>
|
|
79
79
|
</div>
|
|
80
|
-
<div class="flex items-center justify-between rounded-md border
|
|
81
|
-
<span class="
|
|
82
|
-
<span class="
|
|
80
|
+
<div class="flex items-center justify-between rounded-md border bg-surface-raised p-4">
|
|
81
|
+
<span class="type-body">release.zip</span>
|
|
82
|
+
<span class="type-body text-muted">88 MB</span>
|
|
83
83
|
</div>
|
|
84
84
|
</div>
|
|
85
85
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/project.html
|
|
2
|
+
var project_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n { value: \"board\", label: \"Board\", content: \"Kanban columns.\" },\n { value: \"list\", label: \"List\", content: \"Task list.\" },\n { value: \"calendar\", label: \"Calendar\", content: \"Schedule.\" },\n { value: \"files\", label: \"Files\", content: \"Attachments.\" },\n ],\n defaultValue: \"board\",\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-xl flex-col gap-6\" {...machine.getRootProps()}>\n <div class=\"flex gap-1 rounded-lg bg-surface-raised p-1\" {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare flex items-center gap-2 rounded-md px-4 py-2 type-body-emphasized transition-colors aria-[selected=true]:bg-surface aria-[selected=true]:shadow-sm aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n >{row.label}</button>\n </template>\n </div>\n <template for={machine.items} as={row} key={row.value}>\n <div class=\"grid gap-6\" {...machine.getContentProps(row)}>\n <div class=\"grid grid-cols-3 gap-4\" show={row.value === \"board\"}>\n <div class=\"grid gap-3 rounded-md border bg-surface-raised p-4\">\n <span class=\"type-label\">To do</span>\n <div class=\"grid gap-2\">\n <div class=\"rounded-md bg-surface p-3 type-body\">Draft release notes</div>\n <div class=\"rounded-md bg-surface p-3 type-body\">Review PR #482</div>\n </div>\n </div>\n <div class=\"grid gap-3 rounded-md border bg-surface-raised p-4\">\n <span class=\"type-label\">In progress</span>\n <div class=\"grid gap-2\">\n <div class=\"rounded-md bg-surface p-3 type-body\">Migrate auth module</div>\n </div>\n </div>\n <div class=\"grid gap-3 rounded-md border bg-surface-raised p-4\">\n <span class=\"type-label\">Done</span>\n <div class=\"grid gap-2\">\n <div class=\"rounded-md bg-surface p-3 type-body\">Ship v0.9</div>\n </div>\n </div>\n </div>\n <div class=\"grid gap-2\" show={row.value === \"list\"}>\n <div class=\"flex items-center gap-3 rounded-md border bg-surface-raised p-3\">\n <input type=\"checkbox\" />\n <span class=\"type-body\">Draft release notes</span>\n </div>\n <div class=\"flex items-center gap-3 rounded-md border bg-surface-raised p-3\">\n <input type=\"checkbox\" checked />\n <span class=\"type-body line-through\">Ship v0.9</span>\n </div>\n <div class=\"flex items-center gap-3 rounded-md border bg-surface-raised p-3\">\n <input type=\"checkbox\" />\n <span class=\"type-body\">Migrate auth module</span>\n </div>\n </div>\n <div class=\"rounded-md border bg-surface-raised p-6\" show={row.value === \"calendar\"}>\n <span class=\"type-body-emphasized\">October 2026</span>\n <div class=\"grid grid-cols-7 gap-1 text-center type-body text-muted\">\n <span>M</span><span>T</span><span>W</span><span>T</span><span>F</span><span>S</span><span>S</span>\n </div>\n <div class=\"mt-2 grid grid-cols-7 gap-1 text-center type-body\">\n <span class=\"rounded-md bg-primary text-on-primary\">15</span>\n <span>16</span><span>17</span><span>18</span><span>19</span><span>20</span><span>21</span>\n </div>\n </div>\n <div class=\"grid gap-3\" show={row.value === \"files\"}>\n <div class=\"flex items-center justify-between rounded-md border bg-surface-raised p-4\">\n <span class=\"type-body\">spec.md</span>\n <span class=\"type-body text-muted\">12 KB</span>\n </div>\n <div class=\"flex items-center justify-between rounded-md border bg-surface-raised p-4\">\n <span class=\"type-body\">design.fig</span>\n <span class=\"type-body text-muted\">4.1 MB</span>\n </div>\n <div class=\"flex items-center justify-between rounded-md border bg-surface-raised p-4\">\n <span class=\"type-body\">release.zip</span>\n <span class=\"type-body text-muted\">88 MB</span>\n </div>\n </div>\n </div>\n </template>\n</div>\n";
|
|
3
|
+
export { project_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=project.html.js.map
|
|
@@ -13,10 +13,10 @@ const machine = tabs({
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<div class="mx-auto flex w-full max-w-xl flex-col gap-6" {...machine.getRootProps()}>
|
|
16
|
-
<div class="flex gap-1 border-b
|
|
16
|
+
<div class="flex gap-1 border-b" {...machine.getListProps()}>
|
|
17
17
|
<template for={machine.items} as={row} key={row.value}>
|
|
18
18
|
<button
|
|
19
|
-
class="bare px-4 py-3
|
|
19
|
+
class="bare px-4 py-3 type-body-emphasized transition-colors aria-[selected=true]:border-b-2 aria-[selected=true]:border-primary aria-[selected=false]:text-muted"
|
|
20
20
|
{...machine.getTriggerProps(row)}
|
|
21
21
|
>{row.label}</button>
|
|
22
22
|
</template>
|
|
@@ -25,74 +25,74 @@ const machine = tabs({
|
|
|
25
25
|
<div class="grid gap-6" {...machine.getContentProps(row)}>
|
|
26
26
|
<div class="grid gap-4" show={row.value === "account"}>
|
|
27
27
|
<div class="grid gap-2">
|
|
28
|
-
<label
|
|
29
|
-
<input
|
|
28
|
+
<label>Display name</label>
|
|
29
|
+
<input type="text" value="Ada Lovelace" />
|
|
30
30
|
</div>
|
|
31
31
|
<div class="grid gap-2">
|
|
32
|
-
<label
|
|
33
|
-
<input
|
|
32
|
+
<label>Email</label>
|
|
33
|
+
<input type="email" value="ada@spinjs.dev" />
|
|
34
34
|
</div>
|
|
35
|
-
<div class="flex items-center justify-between rounded-md border
|
|
35
|
+
<div class="flex items-center justify-between rounded-md border bg-surface-raised p-4">
|
|
36
36
|
<div class="grid gap-1">
|
|
37
|
-
<span class="
|
|
38
|
-
<span class="
|
|
37
|
+
<span class="type-body-emphasized">Public profile</span>
|
|
38
|
+
<span class="type-body text-muted">Show your profile to everyone.</span>
|
|
39
39
|
</div>
|
|
40
40
|
<input type="checkbox" checked />
|
|
41
41
|
</div>
|
|
42
|
-
<button class="w-fit
|
|
42
|
+
<button class="primary w-fit">Save changes</button>
|
|
43
43
|
</div>
|
|
44
44
|
<div class="grid gap-4" show={row.value === "notifications"}>
|
|
45
|
-
<div class="flex items-center justify-between rounded-md border
|
|
45
|
+
<div class="flex items-center justify-between rounded-md border bg-surface-raised p-4">
|
|
46
46
|
<div class="grid gap-1">
|
|
47
|
-
<span class="
|
|
48
|
-
<span class="
|
|
47
|
+
<span class="type-body-emphasized">Email digest</span>
|
|
48
|
+
<span class="type-body text-muted">Weekly summary of activity.</span>
|
|
49
49
|
</div>
|
|
50
50
|
<input type="checkbox" checked />
|
|
51
51
|
</div>
|
|
52
|
-
<div class="flex items-center justify-between rounded-md border
|
|
52
|
+
<div class="flex items-center justify-between rounded-md border bg-surface-raised p-4">
|
|
53
53
|
<div class="grid gap-1">
|
|
54
|
-
<span class="
|
|
55
|
-
<span class="
|
|
54
|
+
<span class="type-body-emphasized">Push notifications</span>
|
|
55
|
+
<span class="type-body text-muted">Real-time alerts on your devices.</span>
|
|
56
56
|
</div>
|
|
57
57
|
<input type="checkbox" />
|
|
58
58
|
</div>
|
|
59
|
-
<div class="flex items-center justify-between rounded-md border
|
|
59
|
+
<div class="flex items-center justify-between rounded-md border bg-surface-raised p-4">
|
|
60
60
|
<div class="grid gap-1">
|
|
61
|
-
<span class="
|
|
62
|
-
<span class="
|
|
61
|
+
<span class="type-body-emphasized">Mention alerts</span>
|
|
62
|
+
<span class="type-body text-muted">When someone mentions you.</span>
|
|
63
63
|
</div>
|
|
64
64
|
<input type="checkbox" checked />
|
|
65
65
|
</div>
|
|
66
66
|
</div>
|
|
67
67
|
<div class="grid gap-4" show={row.value === "security"}>
|
|
68
68
|
<div class="grid gap-2">
|
|
69
|
-
<label
|
|
70
|
-
<input
|
|
69
|
+
<label>Current password</label>
|
|
70
|
+
<input type="password" />
|
|
71
71
|
</div>
|
|
72
72
|
<div class="grid gap-2">
|
|
73
|
-
<label
|
|
74
|
-
<input
|
|
73
|
+
<label>New password</label>
|
|
74
|
+
<input type="password" />
|
|
75
75
|
</div>
|
|
76
|
-
<button class="w-fit
|
|
77
|
-
<div class="rounded-md border
|
|
76
|
+
<button class="primary w-fit">Update password</button>
|
|
77
|
+
<div class="rounded-md border bg-surface-raised p-4">
|
|
78
78
|
<div class="grid gap-1">
|
|
79
|
-
<span class="
|
|
80
|
-
<span class="
|
|
79
|
+
<span class="type-body-emphasized">Two-factor authentication</span>
|
|
80
|
+
<span class="type-body text-muted">Add an authenticator app.</span>
|
|
81
81
|
</div>
|
|
82
|
-
<button class="mt-3 w-fit
|
|
82
|
+
<button class="secondary s-sm mt-3 w-fit">Enable</button>
|
|
83
83
|
</div>
|
|
84
84
|
</div>
|
|
85
85
|
<div class="grid gap-4" show={row.value === "billing"}>
|
|
86
|
-
<div class="flex items-center justify-between rounded-md border
|
|
86
|
+
<div class="flex items-center justify-between rounded-md border bg-surface-raised p-4">
|
|
87
87
|
<div class="grid gap-1">
|
|
88
|
-
<span class="
|
|
89
|
-
<span class="
|
|
88
|
+
<span class="type-body-emphasized">Current plan</span>
|
|
89
|
+
<span class="type-body text-muted">Pro — $24 / month</span>
|
|
90
90
|
</div>
|
|
91
|
-
<button class="
|
|
91
|
+
<button class="secondary s-sm">Change plan</button>
|
|
92
92
|
</div>
|
|
93
|
-
<div class="rounded-md border
|
|
94
|
-
<span class="
|
|
95
|
-
<p class="
|
|
93
|
+
<div class="grid gap-1 rounded-md border bg-surface-raised p-4">
|
|
94
|
+
<span class="type-body-emphasized">Payment method</span>
|
|
95
|
+
<p class="text-muted">Visa ending 4242, expires 08/27.</p>
|
|
96
96
|
</div>
|
|
97
97
|
</div>
|
|
98
98
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/settings.html
|
|
2
|
+
var settings_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n { value: \"account\", label: \"Account\", content: \"Profile, email, and handle.\" },\n { value: \"notifications\", label: \"Notifications\", content: \"Email and push preferences.\" },\n { value: \"security\", label: \"Security\", content: \"Password and two-factor.\" },\n { value: \"billing\", label: \"Billing\", content: \"Plan and payment method.\" },\n ],\n defaultValue: \"account\",\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-xl flex-col gap-6\" {...machine.getRootProps()}>\n <div class=\"flex gap-1 border-b\" {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare px-4 py-3 type-body-emphasized transition-colors aria-[selected=true]:border-b-2 aria-[selected=true]:border-primary aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n >{row.label}</button>\n </template>\n </div>\n <template for={machine.items} as={row} key={row.value}>\n <div class=\"grid gap-6\" {...machine.getContentProps(row)}>\n <div class=\"grid gap-4\" show={row.value === \"account\"}>\n <div class=\"grid gap-2\">\n <label>Display name</label>\n <input type=\"text\" value=\"Ada Lovelace\" />\n </div>\n <div class=\"grid gap-2\">\n <label>Email</label>\n <input type=\"email\" value=\"ada@spinjs.dev\" />\n </div>\n <div class=\"flex items-center justify-between rounded-md border bg-surface-raised p-4\">\n <div class=\"grid gap-1\">\n <span class=\"type-body-emphasized\">Public profile</span>\n <span class=\"type-body text-muted\">Show your profile to everyone.</span>\n </div>\n <input type=\"checkbox\" checked />\n </div>\n <button class=\"primary w-fit\">Save changes</button>\n </div>\n <div class=\"grid gap-4\" show={row.value === \"notifications\"}>\n <div class=\"flex items-center justify-between rounded-md border bg-surface-raised p-4\">\n <div class=\"grid gap-1\">\n <span class=\"type-body-emphasized\">Email digest</span>\n <span class=\"type-body text-muted\">Weekly summary of activity.</span>\n </div>\n <input type=\"checkbox\" checked />\n </div>\n <div class=\"flex items-center justify-between rounded-md border bg-surface-raised p-4\">\n <div class=\"grid gap-1\">\n <span class=\"type-body-emphasized\">Push notifications</span>\n <span class=\"type-body text-muted\">Real-time alerts on your devices.</span>\n </div>\n <input type=\"checkbox\" />\n </div>\n <div class=\"flex items-center justify-between rounded-md border bg-surface-raised p-4\">\n <div class=\"grid gap-1\">\n <span class=\"type-body-emphasized\">Mention alerts</span>\n <span class=\"type-body text-muted\">When someone mentions you.</span>\n </div>\n <input type=\"checkbox\" checked />\n </div>\n </div>\n <div class=\"grid gap-4\" show={row.value === \"security\"}>\n <div class=\"grid gap-2\">\n <label>Current password</label>\n <input type=\"password\" />\n </div>\n <div class=\"grid gap-2\">\n <label>New password</label>\n <input type=\"password\" />\n </div>\n <button class=\"primary w-fit\">Update password</button>\n <div class=\"rounded-md border bg-surface-raised p-4\">\n <div class=\"grid gap-1\">\n <span class=\"type-body-emphasized\">Two-factor authentication</span>\n <span class=\"type-body text-muted\">Add an authenticator app.</span>\n </div>\n <button class=\"secondary s-sm mt-3 w-fit\">Enable</button>\n </div>\n </div>\n <div class=\"grid gap-4\" show={row.value === \"billing\"}>\n <div class=\"flex items-center justify-between rounded-md border bg-surface-raised p-4\">\n <div class=\"grid gap-1\">\n <span class=\"type-body-emphasized\">Current plan</span>\n <span class=\"type-body text-muted\">Pro — $24 / month</span>\n </div>\n <button class=\"secondary s-sm\">Change plan</button>\n </div>\n <div class=\"grid gap-1 rounded-md border bg-surface-raised p-4\">\n <span class=\"type-body-emphasized\">Payment method</span>\n <p class=\"text-muted\">Visa ending 4242, expires 08/27.</p>\n </div>\n </div>\n </div>\n </template>\n</div>\n";
|
|
3
|
+
export { settings_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=settings.html.js.map
|
|
@@ -24,27 +24,27 @@ const machine = tabs({
|
|
|
24
24
|
</script>
|
|
25
25
|
|
|
26
26
|
<div class="mx-auto w-full max-w-md" {...machine.getRootProps()}>
|
|
27
|
-
<div class=" flex gap-1 border-b
|
|
27
|
+
<div class=" flex gap-1 border-b px-2"
|
|
28
28
|
{...machine.getListProps()}>
|
|
29
29
|
<template for={machine.items} as={row} key={row.value}>
|
|
30
30
|
<button
|
|
31
|
-
class="bare relative flex items-center gap-2 rounded-ss-md rounded-se-md border border-b-0 border-solid px-4 py-2
|
|
31
|
+
class="bare relative flex items-center gap-2 rounded-ss-md rounded-se-md border border-b-0 border-solid px-4 py-2 type-label transition-colors aria-[selected=true]:border aria-[selected=true]:bg-surface aria-[selected=false]:border-transparent aria-[selected=false]:text-muted"
|
|
32
32
|
{...machine.getTriggerProps(row)}
|
|
33
33
|
>
|
|
34
|
-
<span class="i-lucide-user
|
|
34
|
+
<span class="i-lucide-user type-code" aria-hidden="true"
|
|
35
35
|
show={row.value === "profile"}></span>
|
|
36
|
-
<span class="i-lucide-credit-card
|
|
36
|
+
<span class="i-lucide-credit-card type-code" aria-hidden="true"
|
|
37
37
|
show={row.value === "billing"}></span>
|
|
38
|
-
<span class="i-lucide-bell
|
|
38
|
+
<span class="i-lucide-bell type-code" aria-hidden="true"
|
|
39
39
|
show={row.value === "notifications"}></span>
|
|
40
40
|
<span>{row.label}</span>
|
|
41
41
|
</button>
|
|
42
42
|
</template>
|
|
43
43
|
</div>
|
|
44
44
|
<div
|
|
45
|
-
class="rounded-lg border border-t-0 border-solid border
|
|
45
|
+
class="rounded-lg border border-t-0 border-solid border bg-surface p-4">
|
|
46
46
|
<template for={machine.items} as={row} key={row.value}>
|
|
47
|
-
<p class="
|
|
47
|
+
<p class="text-muted"
|
|
48
48
|
{...machine.getContentProps(row)}>{row.content}</p>
|
|
49
49
|
</template>
|
|
50
50
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/stack-with-icons.html
|
|
2
|
+
var stack_with_icons_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n {\n value: \"profile\",\n label: \"Profile\",\n content: \"Priya Raman, on-call this week.\",\n },\n {\n value: \"billing\",\n label: \"Billing\",\n content: \"Seats, usage, and invoices.\",\n },\n {\n value: \"notifications\",\n label: \"Notifications\",\n content: \"Deploy #4821 pages Tomas first.\",\n },\n ],\n defaultValue: \"profile\",\n});\n<\/script>\n\n<div class=\"mx-auto w-full max-w-md\" {...machine.getRootProps()}>\n <div class=\" flex gap-1 border-b px-2\"\n {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare relative flex items-center gap-2 rounded-ss-md rounded-se-md border border-b-0 border-solid px-4 py-2 type-label transition-colors aria-[selected=true]:border aria-[selected=true]:bg-surface aria-[selected=false]:border-transparent aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n >\n <span class=\"i-lucide-user type-code\" aria-hidden=\"true\"\n show={row.value === \"profile\"}></span>\n <span class=\"i-lucide-credit-card type-code\" aria-hidden=\"true\"\n show={row.value === \"billing\"}></span>\n <span class=\"i-lucide-bell type-code\" aria-hidden=\"true\"\n show={row.value === \"notifications\"}></span>\n <span>{row.label}</span>\n </button>\n </template>\n </div>\n <div\n class=\"rounded-lg border border-t-0 border-solid border bg-surface p-4\">\n <template for={machine.items} as={row} key={row.value}>\n <p class=\"text-muted\"\n {...machine.getContentProps(row)}>{row.content}</p>\n </template>\n </div>\n</div>\n";
|
|
3
|
+
export { stack_with_icons_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=stack-with-icons.html.js.map
|
|
@@ -13,16 +13,16 @@ const machine = tabs({
|
|
|
13
13
|
|
|
14
14
|
<div class="mx-auto flex w-full max-w-md flex-col items-center"
|
|
15
15
|
{...machine.getRootProps()}>
|
|
16
|
-
<div class="mb-3 flex w-full justify-center gap-1 border-b
|
|
16
|
+
<div class="mb-3 flex w-full justify-center gap-1 border-b px-2" {...machine.getListProps()}>
|
|
17
17
|
<template for={machine.items} as={row} key={row.value}>
|
|
18
18
|
<button
|
|
19
|
-
class="bare rounded-ss-md rounded-se-md border border-b-0 border-solid px-6 py-2
|
|
19
|
+
class="bare rounded-ss-md rounded-se-md border border-b-0 border-solid px-6 py-2 type-label transition-colors aria-[selected=true]:border aria-[selected=true]:bg-surface aria-[selected=false]:border-transparent aria-[selected=false]:text-muted"
|
|
20
20
|
{...machine.getTriggerProps(row)}
|
|
21
21
|
>{row.label}</button>
|
|
22
22
|
</template>
|
|
23
23
|
</div>
|
|
24
24
|
<template for={machine.items} as={row} key={row.value}>
|
|
25
|
-
<p class="
|
|
25
|
+
<p class="text-center text-muted"
|
|
26
26
|
{...machine.getContentProps(row)}>{row.content}</p>
|
|
27
27
|
</template>
|
|
28
28
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/stack.html
|
|
2
|
+
var stack_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n { value: \"tab1\", label: \"Profile\", content: \"Priya Raman, on-call this week.\" },\n { value: \"tab2\", label: \"Billing\", content: \"Seats, usage, and invoices.\" },\n { value: \"tab3\", label: \"Privacy\", content: \"Audit log retention and SSO.\" },\n ],\n defaultValue: \"tab1\",\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-md flex-col items-center\"\n {...machine.getRootProps()}>\n <div class=\"mb-3 flex w-full justify-center gap-1 border-b px-2\" {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare rounded-ss-md rounded-se-md border border-b-0 border-solid px-6 py-2 type-label transition-colors aria-[selected=true]:border aria-[selected=true]:bg-surface aria-[selected=false]:border-transparent aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n >{row.label}</button>\n </template>\n </div>\n <template for={machine.items} as={row} key={row.value}>\n <p class=\"text-center text-muted\"\n {...machine.getContentProps(row)}>{row.content}</p>\n </template>\n</div>\n";
|
|
3
|
+
export { stack_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=stack.html.js.map
|
|
@@ -25,17 +25,17 @@ const machine = tabs({
|
|
|
25
25
|
|
|
26
26
|
<div class="mx-auto flex w-full max-w-md flex-col items-center"
|
|
27
27
|
{...machine.getRootProps()}>
|
|
28
|
-
<div class="mb-4 flex gap-4 border-b
|
|
28
|
+
<div class="mb-4 flex gap-4 border-b"
|
|
29
29
|
{...machine.getListProps()}>
|
|
30
30
|
<template for={machine.items} as={row} key={row.value}>
|
|
31
31
|
<button
|
|
32
|
-
class="bare relative -mb-0 border-b-2 border-solid px-2 py-2
|
|
32
|
+
class="bare relative -mb-0 border-b-2 border-solid px-2 py-2 type-label transition-colors aria-[selected=true]:border-primary aria-[selected=false]:border-transparent aria-[selected=false]:text-muted"
|
|
33
33
|
{...machine.getTriggerProps(row)}
|
|
34
34
|
>{row.label}</button>
|
|
35
35
|
</template>
|
|
36
36
|
</div>
|
|
37
37
|
<template for={machine.items} as={row} key={row.value}>
|
|
38
|
-
<p class="
|
|
38
|
+
<p class="text-center text-muted"
|
|
39
39
|
{...machine.getContentProps(row)}>{row.content}</p>
|
|
40
40
|
</template>
|
|
41
41
|
</div>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// src/tabs/examples/underline.html
|
|
2
|
+
var underline_default = "<script lang=\"ts\">\nimport { tabs } from \"../tabs.presentation.ts\";\n\nconst machine = tabs({\n items: [\n {\n value: \"tab1\",\n label: \"Overview\",\n content: \"Fleet health at a glance.\",\n },\n {\n value: \"tab2\",\n label: \"Deployments\",\n content: \"Deploy #4821 is live on checkout-api.\",\n },\n {\n value: \"tab3\",\n label: \"Settings\",\n content: \"Workspace preferences and API tokens.\",\n },\n ],\n defaultValue: \"tab1\",\n});\n<\/script>\n\n<div class=\"mx-auto flex w-full max-w-md flex-col items-center\"\n {...machine.getRootProps()}>\n <div class=\"mb-4 flex gap-4 border-b\"\n {...machine.getListProps()}>\n <template for={machine.items} as={row} key={row.value}>\n <button\n class=\"bare relative -mb-0 border-b-2 border-solid px-2 py-2 type-label transition-colors aria-[selected=true]:border-primary aria-[selected=false]:border-transparent aria-[selected=false]:text-muted\"\n {...machine.getTriggerProps(row)}\n >{row.label}</button>\n </template>\n </div>\n <template for={machine.items} as={row} key={row.value}>\n <p class=\"text-center text-muted\"\n {...machine.getContentProps(row)}>{row.content}</p>\n </template>\n</div>\n";
|
|
3
|
+
export { underline_default as default };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=underline.html.js.map
|
|
@@ -29,15 +29,15 @@ const machine = tabs({
|
|
|
29
29
|
<div class="flex shrink-0 flex-col gap-1" {...machine.getListProps()}>
|
|
30
30
|
<template for={machine.items} as={row} key={row.value}>
|
|
31
31
|
<button
|
|
32
|
-
class="bare rounded-md px-4 py-2 text-left
|
|
32
|
+
class="bare rounded-md px-4 py-2 text-left type-label transition-colors hover:bg-surface-raised aria-[selected=true]:bg-surface-raised aria-[selected=false]:text-muted"
|
|
33
33
|
{...machine.getTriggerProps(row)}
|
|
34
34
|
>{row.label}</button>
|
|
35
35
|
</template>
|
|
36
36
|
</div>
|
|
37
37
|
<div
|
|
38
|
-
class="flex-1 rounded-lg border
|
|
38
|
+
class="flex-1 rounded-lg border bg-surface p-4">
|
|
39
39
|
<template for={machine.items} as={row} key={row.value}>
|
|
40
|
-
<p class="
|
|
40
|
+
<p class="text-muted"
|
|
41
41
|
{...machine.getContentProps(row)}>{row.content}</p>
|
|
42
42
|
</template>
|
|
43
43
|
</div>
|