snice 4.9.0 → 4.10.0
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/adapters/react/app-tiles.d.ts +28 -0
- package/adapters/react/app-tiles.d.ts.map +1 -0
- package/adapters/react/app-tiles.js +24 -0
- package/adapters/react/app-tiles.js.map +1 -0
- package/adapters/react/app-tiles.tsx +36 -0
- package/adapters/react/book.d.ts +28 -0
- package/adapters/react/book.d.ts.map +1 -0
- package/adapters/react/book.js +24 -0
- package/adapters/react/book.js.map +1 -0
- package/adapters/react/book.tsx +36 -0
- package/adapters/react/comments.d.ts +29 -0
- package/adapters/react/comments.d.ts.map +1 -0
- package/adapters/react/comments.js +24 -0
- package/adapters/react/comments.js.map +1 -0
- package/adapters/react/comments.tsx +37 -0
- package/adapters/react/components.d.ts +52 -0
- package/adapters/react/components.d.ts.map +1 -1
- package/adapters/react/components.js +26 -0
- package/adapters/react/components.js.map +1 -1
- package/adapters/react/components.ts +52 -0
- package/adapters/react/countdown.d.ts +31 -0
- package/adapters/react/countdown.d.ts.map +1 -0
- package/adapters/react/countdown.js +24 -0
- package/adapters/react/countdown.js.map +1 -0
- package/adapters/react/countdown.tsx +39 -0
- package/adapters/react/cropper.d.ts +29 -0
- package/adapters/react/cropper.d.ts.map +1 -0
- package/adapters/react/cropper.js +24 -0
- package/adapters/react/cropper.js.map +1 -0
- package/adapters/react/cropper.tsx +37 -0
- package/adapters/react/diff.d.ts +31 -0
- package/adapters/react/diff.d.ts.map +1 -0
- package/adapters/react/diff.js +24 -0
- package/adapters/react/diff.js.map +1 -0
- package/adapters/react/diff.tsx +39 -0
- package/adapters/react/flip-card.d.ts +28 -0
- package/adapters/react/flip-card.d.ts.map +1 -0
- package/adapters/react/flip-card.js +24 -0
- package/adapters/react/flip-card.js.map +1 -0
- package/adapters/react/flip-card.tsx +36 -0
- package/adapters/react/flow.d.ts +32 -0
- package/adapters/react/flow.d.ts.map +1 -0
- package/adapters/react/flow.js +24 -0
- package/adapters/react/flow.js.map +1 -0
- package/adapters/react/flow.tsx +40 -0
- package/adapters/react/gantt.d.ts +27 -0
- package/adapters/react/gantt.d.ts.map +1 -0
- package/adapters/react/gantt.js +24 -0
- package/adapters/react/gantt.js.map +1 -0
- package/adapters/react/gantt.tsx +35 -0
- package/adapters/react/map.d.ts +30 -0
- package/adapters/react/map.d.ts.map +1 -0
- package/adapters/react/map.js +24 -0
- package/adapters/react/map.js.map +1 -0
- package/adapters/react/map.tsx +38 -0
- package/adapters/react/markdown.d.ts +26 -0
- package/adapters/react/markdown.d.ts.map +1 -0
- package/adapters/react/markdown.js +24 -0
- package/adapters/react/markdown.js.map +1 -0
- package/adapters/react/markdown.tsx +34 -0
- package/adapters/react/notification-center.d.ts +26 -0
- package/adapters/react/notification-center.d.ts.map +1 -0
- package/adapters/react/notification-center.js +24 -0
- package/adapters/react/notification-center.js.map +1 -0
- package/adapters/react/notification-center.tsx +34 -0
- package/adapters/react/org-chart.d.ts +28 -0
- package/adapters/react/org-chart.d.ts.map +1 -0
- package/adapters/react/org-chart.js +24 -0
- package/adapters/react/org-chart.js.map +1 -0
- package/adapters/react/org-chart.tsx +36 -0
- package/adapters/react/pdf-viewer.d.ts +28 -0
- package/adapters/react/pdf-viewer.d.ts.map +1 -0
- package/adapters/react/pdf-viewer.js +24 -0
- package/adapters/react/pdf-viewer.js.map +1 -0
- package/adapters/react/pdf-viewer.tsx +36 -0
- package/adapters/react/podcast-player.d.ts +40 -0
- package/adapters/react/podcast-player.d.ts.map +1 -0
- package/adapters/react/podcast-player.js +24 -0
- package/adapters/react/podcast-player.js.map +1 -0
- package/adapters/react/podcast-player.tsx +48 -0
- package/adapters/react/pricing-table.d.ts +27 -0
- package/adapters/react/pricing-table.d.ts.map +1 -0
- package/adapters/react/pricing-table.js +24 -0
- package/adapters/react/pricing-table.js.map +1 -0
- package/adapters/react/pricing-table.tsx +35 -0
- package/adapters/react/rating.d.ts +30 -0
- package/adapters/react/rating.d.ts.map +1 -0
- package/adapters/react/rating.js +24 -0
- package/adapters/react/rating.js.map +1 -0
- package/adapters/react/rating.tsx +38 -0
- package/adapters/react/recipe.d.ts +43 -0
- package/adapters/react/recipe.d.ts.map +1 -0
- package/adapters/react/recipe.js +24 -0
- package/adapters/react/recipe.js.map +1 -0
- package/adapters/react/recipe.tsx +51 -0
- package/adapters/react/sortable.d.ts +28 -0
- package/adapters/react/sortable.d.ts.map +1 -0
- package/adapters/react/sortable.js +24 -0
- package/adapters/react/sortable.js.map +1 -0
- package/adapters/react/sortable.tsx +36 -0
- package/adapters/react/spotlight.d.ts +27 -0
- package/adapters/react/spotlight.d.ts.map +1 -0
- package/adapters/react/spotlight.js +24 -0
- package/adapters/react/spotlight.js.map +1 -0
- package/adapters/react/spotlight.tsx +35 -0
- package/adapters/react/spreadsheet.d.ts +27 -0
- package/adapters/react/spreadsheet.d.ts.map +1 -0
- package/adapters/react/spreadsheet.js +24 -0
- package/adapters/react/spreadsheet.js.map +1 -0
- package/adapters/react/spreadsheet.tsx +35 -0
- package/adapters/react/tag-input.d.ts +33 -0
- package/adapters/react/tag-input.d.ts.map +1 -0
- package/adapters/react/tag-input.js +24 -0
- package/adapters/react/tag-input.js.map +1 -0
- package/adapters/react/tag-input.tsx +41 -0
- package/adapters/react/testimonial.d.ts +31 -0
- package/adapters/react/testimonial.d.ts.map +1 -0
- package/adapters/react/testimonial.js +24 -0
- package/adapters/react/testimonial.js.map +1 -0
- package/adapters/react/testimonial.tsx +39 -0
- package/adapters/react/video-player.d.ts +34 -0
- package/adapters/react/video-player.d.ts.map +1 -0
- package/adapters/react/video-player.js +24 -0
- package/adapters/react/video-player.js.map +1 -0
- package/adapters/react/video-player.tsx +42 -0
- package/adapters/react/waterfall.d.ts +29 -0
- package/adapters/react/waterfall.d.ts.map +1 -0
- package/adapters/react/waterfall.js +24 -0
- package/adapters/react/waterfall.js.map +1 -0
- package/adapters/react/waterfall.tsx +37 -0
- package/adapters/react/weather.d.ts +27 -0
- package/adapters/react/weather.d.ts.map +1 -0
- package/adapters/react/weather.js +24 -0
- package/adapters/react/weather.js.map +1 -0
- package/adapters/react/weather.tsx +35 -0
- package/dist/cdn/accordion/snice-accordion.js +1 -1
- package/dist/cdn/accordion/snice-accordion.min.js +1 -1
- package/dist/cdn/alert/snice-alert.js +1 -1
- package/dist/cdn/alert/snice-alert.min.js +1 -1
- package/dist/cdn/app-tiles/README.md +27 -0
- package/dist/cdn/app-tiles/snice-app-tiles.js +333 -0
- package/dist/cdn/app-tiles/snice-app-tiles.js.map +1 -0
- package/dist/cdn/app-tiles/snice-app-tiles.min.js +11 -0
- package/dist/cdn/app-tiles/snice-app-tiles.min.js.map +1 -0
- package/dist/cdn/audio-recorder/snice-audio-recorder.js +1 -1
- package/dist/cdn/audio-recorder/snice-audio-recorder.min.js +1 -1
- package/dist/cdn/avatar/snice-avatar.js +1 -1
- package/dist/cdn/avatar/snice-avatar.min.js +1 -1
- package/dist/cdn/badge/snice-badge.js +1 -1
- package/dist/cdn/badge/snice-badge.min.js +1 -1
- package/dist/cdn/banner/snice-banner.js +1 -1
- package/dist/cdn/banner/snice-banner.min.js +1 -1
- package/dist/cdn/book/README.md +27 -0
- package/dist/cdn/book/snice-book.js +353 -0
- package/dist/cdn/book/snice-book.js.map +1 -0
- package/dist/cdn/book/snice-book.min.js +13 -0
- package/dist/cdn/book/snice-book.min.js.map +1 -0
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +1 -1
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +1 -1
- package/dist/cdn/button/snice-button.js +1 -1
- package/dist/cdn/button/snice-button.min.js +1 -1
- package/dist/cdn/calendar/snice-calendar.js +1 -1
- package/dist/cdn/calendar/snice-calendar.min.js +1 -1
- package/dist/cdn/camera/snice-camera.js +1 -1
- package/dist/cdn/camera/snice-camera.min.js +1 -1
- package/dist/cdn/camera-annotate/snice-camera-annotate.js +1 -1
- package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +1 -1
- package/dist/cdn/candlestick/snice-candlestick.js +1 -1
- package/dist/cdn/candlestick/snice-candlestick.min.js +1 -1
- package/dist/cdn/card/snice-card.js +1 -1
- package/dist/cdn/card/snice-card.min.js +1 -1
- package/dist/cdn/carousel/snice-carousel.js +1 -1
- package/dist/cdn/carousel/snice-carousel.min.js +1 -1
- package/dist/cdn/chart/snice-chart.js +1 -1
- package/dist/cdn/chart/snice-chart.min.js +1 -1
- package/dist/cdn/chat/snice-chat.js +1 -1
- package/dist/cdn/chat/snice-chat.min.js +1 -1
- package/dist/cdn/checkbox/snice-checkbox.js +1 -1
- package/dist/cdn/checkbox/snice-checkbox.min.js +1 -1
- package/dist/cdn/chip/snice-chip.js +1 -1
- package/dist/cdn/chip/snice-chip.min.js +1 -1
- package/dist/cdn/code-block/snice-code-block.js +1 -1
- package/dist/cdn/code-block/snice-code-block.min.js +1 -1
- package/dist/cdn/color-display/snice-color-display.js +1 -1
- package/dist/cdn/color-display/snice-color-display.min.js +1 -1
- package/dist/cdn/color-picker/snice-color-picker.js +1 -1
- package/dist/cdn/color-picker/snice-color-picker.min.js +1 -1
- package/dist/cdn/command-palette/snice-command-palette.js +1 -1
- package/dist/cdn/command-palette/snice-command-palette.min.js +1 -1
- package/dist/cdn/comments/README.md +27 -0
- package/dist/cdn/comments/snice-comments.js +544 -0
- package/dist/cdn/comments/snice-comments.js.map +1 -0
- package/dist/cdn/comments/snice-comments.min.js +100 -0
- package/dist/cdn/comments/snice-comments.min.js.map +1 -0
- package/dist/cdn/countdown/README.md +27 -0
- package/dist/cdn/countdown/snice-countdown.js +235 -0
- package/dist/cdn/countdown/snice-countdown.js.map +1 -0
- package/dist/cdn/countdown/snice-countdown.min.js +14 -0
- package/dist/cdn/countdown/snice-countdown.min.js.map +1 -0
- package/dist/cdn/cropper/README.md +27 -0
- package/dist/cdn/cropper/snice-cropper.js +352 -0
- package/dist/cdn/cropper/snice-cropper.js.map +1 -0
- package/dist/cdn/cropper/snice-cropper.min.js +25 -0
- package/dist/cdn/cropper/snice-cropper.min.js.map +1 -0
- package/dist/cdn/date-picker/snice-date-picker.js +1 -1
- package/dist/cdn/date-picker/snice-date-picker.min.js +1 -1
- package/dist/cdn/diff/README.md +27 -0
- package/dist/cdn/diff/snice-diff.js +441 -0
- package/dist/cdn/diff/snice-diff.js.map +1 -0
- package/dist/cdn/diff/snice-diff.min.js +54 -0
- package/dist/cdn/diff/snice-diff.min.js.map +1 -0
- package/dist/cdn/divider/snice-divider.js +1 -1
- package/dist/cdn/divider/snice-divider.min.js +1 -1
- package/dist/cdn/doc/snice-doc.js +1 -1
- package/dist/cdn/doc/snice-doc.min.js +1 -1
- package/dist/cdn/draw/snice-draw.js +1 -1
- package/dist/cdn/draw/snice-draw.min.js +1 -1
- package/dist/cdn/drawer/snice-drawer.js +1 -1
- package/dist/cdn/drawer/snice-drawer.min.js +1 -1
- package/dist/cdn/empty-state/snice-empty-state.js +1 -1
- package/dist/cdn/empty-state/snice-empty-state.min.js +1 -1
- package/dist/cdn/file-gallery/snice-file-gallery.js +1 -1
- package/dist/cdn/file-gallery/snice-file-gallery.min.js +1 -1
- package/dist/cdn/file-upload/snice-file-upload.js +1 -1
- package/dist/cdn/file-upload/snice-file-upload.min.js +1 -1
- package/dist/cdn/flip-card/README.md +27 -0
- package/dist/cdn/flip-card/snice-flip-card.js +183 -0
- package/dist/cdn/flip-card/snice-flip-card.js.map +1 -0
- package/dist/cdn/flip-card/snice-flip-card.min.js +22 -0
- package/dist/cdn/flip-card/snice-flip-card.min.js.map +1 -0
- package/dist/cdn/flow/README.md +27 -0
- package/dist/cdn/flow/snice-flow.js +822 -0
- package/dist/cdn/flow/snice-flow.js.map +1 -0
- package/dist/cdn/flow/snice-flow.min.js +17 -0
- package/dist/cdn/flow/snice-flow.min.js.map +1 -0
- package/dist/cdn/funnel/snice-funnel.js +1 -1
- package/dist/cdn/funnel/snice-funnel.min.js +1 -1
- package/dist/cdn/gantt/README.md +27 -0
- package/dist/cdn/gantt/snice-gantt.js +436 -0
- package/dist/cdn/gantt/snice-gantt.js.map +1 -0
- package/dist/cdn/gantt/snice-gantt.min.js +60 -0
- package/dist/cdn/gantt/snice-gantt.min.js.map +1 -0
- package/dist/cdn/gauge/snice-gauge.js +1 -1
- package/dist/cdn/gauge/snice-gauge.min.js +1 -1
- package/dist/cdn/heatmap/snice-heatmap.js +1 -1
- package/dist/cdn/heatmap/snice-heatmap.min.js +1 -1
- package/dist/cdn/image/snice-image.js +1 -1
- package/dist/cdn/image/snice-image.min.js +1 -1
- package/dist/cdn/input/snice-input.js +1 -1
- package/dist/cdn/input/snice-input.min.js +1 -1
- package/dist/cdn/kanban/snice-kanban.js +1 -1
- package/dist/cdn/kanban/snice-kanban.min.js +1 -1
- package/dist/cdn/kpi/snice-kpi.js +1 -1
- package/dist/cdn/kpi/snice-kpi.min.js +1 -1
- package/dist/cdn/layout/snice-layout.js +1 -1
- package/dist/cdn/layout/snice-layout.min.js +1 -1
- package/dist/cdn/link/snice-link.js +1 -1
- package/dist/cdn/link/snice-link.min.js +1 -1
- package/dist/cdn/link-preview/snice-link-preview.js +1 -1
- package/dist/cdn/link-preview/snice-link-preview.min.js +1 -1
- package/dist/cdn/list/snice-list.js +1 -1
- package/dist/cdn/list/snice-list.min.js +1 -1
- package/dist/cdn/location/snice-location.js +1 -1
- package/dist/cdn/location/snice-location.min.js +1 -1
- package/dist/cdn/login/snice-login.js +1 -1
- package/dist/cdn/login/snice-login.min.js +1 -1
- package/dist/cdn/map/README.md +27 -0
- package/dist/cdn/map/snice-map.js +415 -0
- package/dist/cdn/map/snice-map.js.map +1 -0
- package/dist/cdn/map/snice-map.min.js +52 -0
- package/dist/cdn/map/snice-map.min.js.map +1 -0
- package/dist/cdn/markdown/README.md +27 -0
- package/dist/cdn/markdown/snice-markdown.js +317 -0
- package/dist/cdn/markdown/snice-markdown.js.map +1 -0
- package/dist/cdn/markdown/snice-markdown.min.js +11 -0
- package/dist/cdn/markdown/snice-markdown.min.js.map +1 -0
- package/dist/cdn/masonry/snice-masonry.js +1 -1
- package/dist/cdn/masonry/snice-masonry.min.js +1 -1
- package/dist/cdn/menu/snice-menu.js +1 -1
- package/dist/cdn/menu/snice-menu.min.js +1 -1
- package/dist/cdn/modal/snice-modal.js +1 -1
- package/dist/cdn/modal/snice-modal.min.js +1 -1
- package/dist/cdn/music-player/snice-music-player.js +1 -1
- package/dist/cdn/music-player/snice-music-player.min.js +1 -1
- package/dist/cdn/nav/snice-nav.js +1 -1
- package/dist/cdn/nav/snice-nav.min.js +1 -1
- package/dist/cdn/network-graph/snice-network-graph.js +1 -1
- package/dist/cdn/network-graph/snice-network-graph.min.js +1 -1
- package/dist/cdn/notification-center/README.md +27 -0
- package/dist/cdn/notification-center/snice-notification-center.js +204 -0
- package/dist/cdn/notification-center/snice-notification-center.js.map +1 -0
- package/dist/cdn/notification-center/snice-notification-center.min.js +33 -0
- package/dist/cdn/notification-center/snice-notification-center.min.js.map +1 -0
- package/dist/cdn/org-chart/README.md +27 -0
- package/dist/cdn/org-chart/snice-org-chart.js +294 -0
- package/dist/cdn/org-chart/snice-org-chart.js.map +1 -0
- package/dist/cdn/org-chart/snice-org-chart.min.js +32 -0
- package/dist/cdn/org-chart/snice-org-chart.min.js.map +1 -0
- package/dist/cdn/pagination/snice-pagination.js +1 -1
- package/dist/cdn/pagination/snice-pagination.min.js +1 -1
- package/dist/cdn/paint/snice-paint.js +1 -1
- package/dist/cdn/paint/snice-paint.min.js +1 -1
- package/dist/cdn/pdf-viewer/README.md +27 -0
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +594 -0
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.js.map +1 -0
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +88 -0
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js.map +1 -0
- package/dist/cdn/podcast-player/README.md +27 -0
- package/dist/cdn/podcast-player/snice-podcast-player.js +835 -0
- package/dist/cdn/podcast-player/snice-podcast-player.js.map +1 -0
- package/dist/cdn/podcast-player/snice-podcast-player.min.js +209 -0
- package/dist/cdn/podcast-player/snice-podcast-player.min.js.map +1 -0
- package/dist/cdn/pricing-table/README.md +27 -0
- package/dist/cdn/pricing-table/snice-pricing-table.js +491 -0
- package/dist/cdn/pricing-table/snice-pricing-table.js.map +1 -0
- package/dist/cdn/pricing-table/snice-pricing-table.min.js +141 -0
- package/dist/cdn/pricing-table/snice-pricing-table.min.js.map +1 -0
- package/dist/cdn/progress/snice-progress.js +1 -1
- package/dist/cdn/progress/snice-progress.min.js +1 -1
- package/dist/cdn/qr-code/snice-qr-code.js +1 -1
- package/dist/cdn/qr-code/snice-qr-code.min.js +1 -1
- package/dist/cdn/qr-reader/snice-qr-reader.js +1 -1
- package/dist/cdn/qr-reader/snice-qr-reader.min.js +1 -1
- package/dist/cdn/radio/snice-radio.js +1 -1
- package/dist/cdn/radio/snice-radio.min.js +1 -1
- package/dist/cdn/rating/README.md +27 -0
- package/dist/cdn/rating/snice-rating.js +210 -0
- package/dist/cdn/rating/snice-rating.js.map +1 -0
- package/dist/cdn/rating/snice-rating.min.js +25 -0
- package/dist/cdn/rating/snice-rating.min.js.map +1 -0
- package/dist/cdn/recipe/README.md +27 -0
- package/dist/cdn/recipe/snice-recipe.js +619 -0
- package/dist/cdn/recipe/snice-recipe.js.map +1 -0
- package/dist/cdn/recipe/snice-recipe.min.js +185 -0
- package/dist/cdn/recipe/snice-recipe.min.js.map +1 -0
- package/dist/cdn/runtime/snice-runtime.esm.js +3 -3
- package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.min.js +3 -3
- package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.js +3 -3
- package/dist/cdn/runtime/snice-runtime.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.min.js +3 -3
- package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
- package/dist/cdn/sankey/snice-sankey.js +1 -1
- package/dist/cdn/sankey/snice-sankey.min.js +1 -1
- package/dist/cdn/select/snice-select.js +1 -1
- package/dist/cdn/select/snice-select.min.js +1 -1
- package/dist/cdn/skeleton/snice-skeleton.js +1 -1
- package/dist/cdn/skeleton/snice-skeleton.min.js +1 -1
- package/dist/cdn/slider/snice-slider.js +1 -1
- package/dist/cdn/slider/snice-slider.min.js +1 -1
- package/dist/cdn/sortable/README.md +27 -0
- package/dist/cdn/sortable/snice-sortable.js +254 -0
- package/dist/cdn/sortable/snice-sortable.js.map +1 -0
- package/dist/cdn/sortable/snice-sortable.min.js +12 -0
- package/dist/cdn/sortable/snice-sortable.min.js.map +1 -0
- package/dist/cdn/sparkline/snice-sparkline.js +1 -1
- package/dist/cdn/sparkline/snice-sparkline.min.js +1 -1
- package/dist/cdn/spinner/snice-spinner.js +1 -1
- package/dist/cdn/spinner/snice-spinner.min.js +1 -1
- package/dist/cdn/split-pane/snice-split-pane.js +1 -1
- package/dist/cdn/split-pane/snice-split-pane.min.js +1 -1
- package/dist/cdn/spotlight/README.md +27 -0
- package/dist/cdn/spotlight/snice-spotlight.js +397 -0
- package/dist/cdn/spotlight/snice-spotlight.js.map +1 -0
- package/dist/cdn/spotlight/snice-spotlight.min.js +8 -0
- package/dist/cdn/spotlight/snice-spotlight.min.js.map +1 -0
- package/dist/cdn/spreadsheet/README.md +27 -0
- package/dist/cdn/spreadsheet/snice-spreadsheet.js +1171 -0
- package/dist/cdn/spreadsheet/snice-spreadsheet.js.map +1 -0
- package/dist/cdn/spreadsheet/snice-spreadsheet.min.js +30 -0
- package/dist/cdn/spreadsheet/snice-spreadsheet.min.js.map +1 -0
- package/dist/cdn/stepper/snice-stepper.js +1 -1
- package/dist/cdn/stepper/snice-stepper.min.js +1 -1
- package/dist/cdn/switch/snice-switch.js +1 -1
- package/dist/cdn/switch/snice-switch.min.js +1 -1
- package/dist/cdn/table/snice-table.js +1 -1
- package/dist/cdn/table/snice-table.min.js +1 -1
- package/dist/cdn/tabs/snice-tabs.js +1 -1
- package/dist/cdn/tabs/snice-tabs.min.js +1 -1
- package/dist/cdn/tag-input/README.md +27 -0
- package/dist/cdn/tag-input/snice-tag-input.js +387 -0
- package/dist/cdn/tag-input/snice-tag-input.js.map +1 -0
- package/dist/cdn/tag-input/snice-tag-input.min.js +65 -0
- package/dist/cdn/tag-input/snice-tag-input.min.js.map +1 -0
- package/dist/cdn/terminal/snice-terminal.js +1 -1
- package/dist/cdn/terminal/snice-terminal.min.js +1 -1
- package/dist/cdn/testimonial/README.md +27 -0
- package/dist/cdn/testimonial/snice-testimonial.js +187 -0
- package/dist/cdn/testimonial/snice-testimonial.js.map +1 -0
- package/dist/cdn/testimonial/snice-testimonial.min.js +21 -0
- package/dist/cdn/testimonial/snice-testimonial.min.js.map +1 -0
- package/dist/cdn/textarea/snice-textarea.js +1 -1
- package/dist/cdn/textarea/snice-textarea.min.js +1 -1
- package/dist/cdn/time-range-picker/snice-time-range-picker.js +1 -1
- package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +1 -1
- package/dist/cdn/timeline/snice-timeline.js +1 -1
- package/dist/cdn/timeline/snice-timeline.min.js +1 -1
- package/dist/cdn/timer/snice-timer.js +1 -1
- package/dist/cdn/timer/snice-timer.min.js +1 -1
- package/dist/cdn/toast/snice-toast.js +1 -1
- package/dist/cdn/toast/snice-toast.min.js +1 -1
- package/dist/cdn/tooltip/snice-tooltip.js +1 -1
- package/dist/cdn/tooltip/snice-tooltip.min.js +1 -1
- package/dist/cdn/tree/snice-tree.js +1 -1
- package/dist/cdn/tree/snice-tree.min.js +1 -1
- package/dist/cdn/treemap/snice-treemap.js +1 -1
- package/dist/cdn/treemap/snice-treemap.min.js +1 -1
- package/dist/cdn/video-player/README.md +27 -0
- package/dist/cdn/video-player/snice-video-player.js +721 -0
- package/dist/cdn/video-player/snice-video-player.js.map +1 -0
- package/dist/cdn/video-player/snice-video-player.min.js +153 -0
- package/dist/cdn/video-player/snice-video-player.min.js.map +1 -0
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +1 -1
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +1 -1
- package/dist/cdn/waterfall/README.md +27 -0
- package/dist/cdn/waterfall/snice-waterfall.js +292 -0
- package/dist/cdn/waterfall/snice-waterfall.js.map +1 -0
- package/dist/cdn/waterfall/snice-waterfall.min.js +12 -0
- package/dist/cdn/waterfall/snice-waterfall.min.js.map +1 -0
- package/dist/cdn/weather/README.md +27 -0
- package/dist/cdn/weather/snice-weather.js +194 -0
- package/dist/cdn/weather/snice-weather.js.map +1 -0
- package/dist/cdn/weather/snice-weather.min.js +42 -0
- package/dist/cdn/weather/snice-weather.min.js.map +1 -0
- package/dist/components/app-tiles/snice-app-tiles.d.ts +36 -0
- package/dist/components/app-tiles/snice-app-tiles.js +265 -0
- package/dist/components/app-tiles/snice-app-tiles.js.map +1 -0
- package/dist/components/app-tiles/snice-app-tiles.types.d.ts +22 -0
- package/dist/components/book/snice-book.d.ts +46 -0
- package/dist/components/book/snice-book.js +285 -0
- package/dist/components/book/snice-book.js.map +1 -0
- package/dist/components/book/snice-book.types.d.ts +21 -0
- package/dist/components/comments/snice-comments.d.ts +62 -0
- package/dist/components/comments/snice-comments.js +476 -0
- package/dist/components/comments/snice-comments.js.map +1 -0
- package/dist/components/comments/snice-comments.types.d.ts +64 -0
- package/dist/components/countdown/snice-countdown.d.ts +21 -0
- package/dist/components/countdown/snice-countdown.js +168 -0
- package/dist/components/countdown/snice-countdown.js.map +1 -0
- package/dist/components/countdown/snice-countdown.types.d.ts +18 -0
- package/dist/components/cropper/snice-cropper.d.ts +32 -0
- package/dist/components/cropper/snice-cropper.js +285 -0
- package/dist/components/cropper/snice-cropper.js.map +1 -0
- package/dist/components/cropper/snice-cropper.types.d.ts +26 -0
- package/dist/components/diff/snice-diff.d.ts +32 -0
- package/dist/components/diff/snice-diff.js +374 -0
- package/dist/components/diff/snice-diff.js.map +1 -0
- package/dist/components/diff/snice-diff.types.d.ts +26 -0
- package/dist/components/flip-card/snice-flip-card.d.ts +15 -0
- package/dist/components/flip-card/snice-flip-card.js +116 -0
- package/dist/components/flip-card/snice-flip-card.js.map +1 -0
- package/dist/components/flip-card/snice-flip-card.types.d.ts +16 -0
- package/dist/components/flow/snice-flow.d.ts +91 -0
- package/dist/components/flow/snice-flow.js +755 -0
- package/dist/components/flow/snice-flow.js.map +1 -0
- package/dist/components/flow/snice-flow.types.d.ts +64 -0
- package/dist/components/gantt/snice-gantt.d.ts +34 -0
- package/dist/components/gantt/snice-gantt.js +369 -0
- package/dist/components/gantt/snice-gantt.js.map +1 -0
- package/dist/components/gantt/snice-gantt.types.d.ts +37 -0
- package/dist/components/map/snice-map.d.ts +44 -0
- package/dist/components/map/snice-map.js +348 -0
- package/dist/components/map/snice-map.js.map +1 -0
- package/dist/components/map/snice-map.types.d.ts +41 -0
- package/dist/components/markdown/snice-markdown.d.ts +24 -0
- package/dist/components/markdown/snice-markdown.js +250 -0
- package/dist/components/markdown/snice-markdown.js.map +1 -0
- package/dist/components/markdown/snice-markdown.types.d.ts +16 -0
- package/dist/components/notification-center/snice-notification-center.d.ts +18 -0
- package/dist/components/notification-center/snice-notification-center.js +137 -0
- package/dist/components/notification-center/snice-notification-center.js.map +1 -0
- package/dist/components/notification-center/snice-notification-center.types.d.ts +24 -0
- package/dist/components/org-chart/snice-org-chart.d.ts +28 -0
- package/dist/components/org-chart/snice-org-chart.js +227 -0
- package/dist/components/org-chart/snice-org-chart.js.map +1 -0
- package/dist/components/org-chart/snice-org-chart.types.d.ts +28 -0
- package/dist/components/pdf-viewer/pdf.min.mjs +21 -0
- package/dist/components/pdf-viewer/pdf.worker.min.mjs +21 -0
- package/dist/components/pdf-viewer/snice-pdf-viewer.d.ts +59 -0
- package/dist/components/pdf-viewer/snice-pdf-viewer.js +527 -0
- package/dist/components/pdf-viewer/snice-pdf-viewer.js.map +1 -0
- package/dist/components/pdf-viewer/snice-pdf-viewer.types.d.ts +25 -0
- package/dist/components/podcast-player/snice-podcast-player.d.ts +72 -0
- package/dist/components/podcast-player/snice-podcast-player.js +768 -0
- package/dist/components/podcast-player/snice-podcast-player.js.map +1 -0
- package/dist/components/podcast-player/snice-podcast-player.types.d.ts +79 -0
- package/dist/components/pricing-table/snice-pricing-table.d.ts +51 -0
- package/dist/components/pricing-table/snice-pricing-table.js +422 -0
- package/dist/components/pricing-table/snice-pricing-table.js.map +1 -0
- package/dist/components/pricing-table/snice-pricing-table.types.d.ts +49 -0
- package/dist/components/rating/snice-rating.d.ts +15 -0
- package/dist/components/rating/snice-rating.js +143 -0
- package/dist/components/rating/snice-rating.js.map +1 -0
- package/dist/components/rating/snice-rating.types.d.ts +15 -0
- package/dist/components/recipe/snice-recipe.d.ts +53 -0
- package/dist/components/recipe/snice-recipe.js +552 -0
- package/dist/components/recipe/snice-recipe.js.map +1 -0
- package/dist/components/recipe/snice-recipe.types.d.ts +56 -0
- package/dist/components/sortable/snice-sortable.d.ts +24 -0
- package/dist/components/sortable/snice-sortable.js +187 -0
- package/dist/components/sortable/snice-sortable.js.map +1 -0
- package/dist/components/sortable/snice-sortable.types.d.ts +20 -0
- package/dist/components/spotlight/snice-spotlight.d.ts +42 -0
- package/dist/components/spotlight/snice-spotlight.js +330 -0
- package/dist/components/spotlight/snice-spotlight.js.map +1 -0
- package/dist/components/spotlight/snice-spotlight.types.d.ts +26 -0
- package/dist/components/spreadsheet/snice-spreadsheet.d.ts +102 -0
- package/dist/components/spreadsheet/snice-spreadsheet.js +1104 -0
- package/dist/components/spreadsheet/snice-spreadsheet.js.map +1 -0
- package/dist/components/spreadsheet/snice-spreadsheet.types.d.ts +54 -0
- package/dist/components/tag-input/snice-tag-input.d.ts +40 -0
- package/dist/components/tag-input/snice-tag-input.js +320 -0
- package/dist/components/tag-input/snice-tag-input.js.map +1 -0
- package/dist/components/tag-input/snice-tag-input.types.d.ts +29 -0
- package/dist/components/testimonial/snice-testimonial.d.ts +15 -0
- package/dist/components/testimonial/snice-testimonial.js +120 -0
- package/dist/components/testimonial/snice-testimonial.js.map +1 -0
- package/dist/components/testimonial/snice-testimonial.types.d.ts +10 -0
- package/dist/components/video-player/snice-video-player.d.ts +78 -0
- package/dist/components/video-player/snice-video-player.js +654 -0
- package/dist/components/video-player/snice-video-player.js.map +1 -0
- package/dist/components/video-player/snice-video-player.types.d.ts +47 -0
- package/dist/components/waterfall/snice-waterfall.d.ts +30 -0
- package/dist/components/waterfall/snice-waterfall.js +225 -0
- package/dist/components/waterfall/snice-waterfall.js.map +1 -0
- package/dist/components/waterfall/snice-waterfall.types.d.ts +23 -0
- package/dist/components/weather/snice-weather.d.ts +10 -0
- package/dist/components/weather/snice-weather.js +127 -0
- package/dist/components/weather/snice-weather.js.map +1 -0
- package/dist/components/weather/snice-weather.types.d.ts +22 -0
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/symbols.cjs +1 -1
- package/dist/symbols.esm.js +1 -1
- package/dist/transitions.cjs +1 -1
- package/dist/transitions.esm.js +1 -1
- package/docs/ai/DEVELOPMENT.md +1 -1
- package/docs/ai/api.md +6 -3
- package/docs/ai/components/accordion.md +0 -34
- package/docs/ai/components/app-tiles.md +77 -0
- package/docs/ai/components/audio-recorder.md +2 -0
- package/docs/ai/components/badge.md +7 -0
- package/docs/ai/components/book.md +78 -0
- package/docs/ai/components/button.md +5 -0
- package/docs/ai/components/chart.md +0 -24
- package/docs/ai/components/chat.md +7 -95
- package/docs/ai/components/code-block.md +3 -82
- package/docs/ai/components/color-display.md +3 -3
- package/docs/ai/components/color-picker.md +4 -4
- package/docs/ai/components/comments.md +75 -0
- package/docs/ai/components/countdown.md +54 -0
- package/docs/ai/components/cropper.md +57 -0
- package/docs/ai/components/date-picker.md +15 -9
- package/docs/ai/components/diff.md +66 -0
- package/docs/ai/components/divider.md +1 -1
- package/docs/ai/components/draw.md +5 -5
- package/docs/ai/components/drawer.md +5 -5
- package/docs/ai/components/empty-state.md +2 -2
- package/docs/ai/components/file-gallery.md +16 -87
- package/docs/ai/components/file-upload.md +6 -6
- package/docs/ai/components/flip-card.md +52 -0
- package/docs/ai/components/flow.md +104 -0
- package/docs/ai/components/funnel.md +3 -3
- package/docs/ai/components/gantt.md +63 -0
- package/docs/ai/components/gauge.md +1 -1
- package/docs/ai/components/heatmap.md +5 -5
- package/docs/ai/components/input.md +20 -18
- package/docs/ai/components/kanban.md +2 -2
- package/docs/ai/components/kpi.md +4 -53
- package/docs/ai/components/layout.md +10 -235
- package/docs/ai/components/link-preview.md +20 -29
- package/docs/ai/components/link.md +27 -47
- package/docs/ai/components/list.md +51 -31
- package/docs/ai/components/location.md +15 -27
- package/docs/ai/components/login.md +43 -94
- package/docs/ai/components/map.md +72 -0
- package/docs/ai/components/markdown.md +63 -0
- package/docs/ai/components/masonry.md +10 -6
- package/docs/ai/components/menu.md +40 -72
- package/docs/ai/components/modal.md +25 -42
- package/docs/ai/components/music-player.md +37 -89
- package/docs/ai/components/nav.md +25 -39
- package/docs/ai/components/network-graph.md +39 -43
- package/docs/ai/components/notification-center.md +79 -0
- package/docs/ai/components/org-chart.md +62 -0
- package/docs/ai/components/pagination.md +16 -18
- package/docs/ai/components/pdf-viewer.md +57 -0
- package/docs/ai/components/podcast-player.md +94 -0
- package/docs/ai/components/pricing-table.md +87 -0
- package/docs/ai/components/progress.md +23 -39
- package/docs/ai/components/qr-code.md +37 -84
- package/docs/ai/components/qr-reader.md +51 -61
- package/docs/ai/components/radio.md +27 -39
- package/docs/ai/components/rating.md +56 -0
- package/docs/ai/components/recipe.md +90 -0
- package/docs/ai/components/skeleton.md +0 -8
- package/docs/ai/components/slider.md +10 -50
- package/docs/ai/components/sortable.md +57 -0
- package/docs/ai/components/sparkline.md +26 -152
- package/docs/ai/components/spinner.md +0 -21
- package/docs/ai/components/split-pane.md +16 -38
- package/docs/ai/components/spotlight.md +61 -0
- package/docs/ai/components/spreadsheet.md +138 -0
- package/docs/ai/components/stepper.md +37 -183
- package/docs/ai/components/switch.md +28 -35
- package/docs/ai/components/table.md +43 -172
- package/docs/ai/components/tabs.md +31 -52
- package/docs/ai/components/tag-input.md +70 -0
- package/docs/ai/components/terminal.md +34 -116
- package/docs/ai/components/testimonial.md +56 -0
- package/docs/ai/components/textarea.md +11 -43
- package/docs/ai/components/theme.md +120 -0
- package/docs/ai/components/time-range-picker.md +17 -49
- package/docs/ai/components/timeline.md +7 -46
- package/docs/ai/components/timer.md +41 -37
- package/docs/ai/components/toast.md +19 -90
- package/docs/ai/components/tooltip.md +17 -104
- package/docs/ai/components/tree.md +38 -162
- package/docs/ai/components/treemap.md +23 -44
- package/docs/ai/components/video-player.md +91 -0
- package/docs/ai/components/virtual-scroller.md +23 -46
- package/docs/ai/components/waterfall.md +56 -0
- package/docs/ai/components/weather.md +78 -0
- package/docs/ai/decorators.md +25 -3
- package/docs/ai/patterns.md +17 -1
- package/docs/components/accordion.md +8 -6
- package/docs/components/alert.md +2 -0
- package/docs/components/app-tiles.md +162 -0
- package/docs/components/audio-recorder.md +6 -0
- package/docs/components/avatar.md +225 -0
- package/docs/components/badge.md +2 -0
- package/docs/components/banner.md +2 -0
- package/docs/components/book.md +184 -0
- package/docs/components/breadcrumbs.md +2 -0
- package/docs/components/button.md +15 -0
- package/docs/components/calendar.md +2 -0
- package/docs/components/camera-annotate.md +2 -0
- package/docs/components/camera.md +2 -0
- package/docs/components/candlestick.md +2 -0
- package/docs/components/card.md +2 -0
- package/docs/components/carousel.md +205 -36
- package/docs/components/chart.md +2 -0
- package/docs/components/chat.md +2 -0
- package/docs/components/checkbox.md +2 -0
- package/docs/components/chip.md +2 -0
- package/docs/components/code-block.md +2 -0
- package/docs/components/color-display.md +2 -0
- package/docs/components/color-picker.md +6 -4
- package/docs/components/command-palette.md +2 -0
- package/docs/components/comments.md +235 -0
- package/docs/components/countdown.md +121 -0
- package/docs/components/cropper.md +152 -0
- package/docs/components/date-picker.md +201 -0
- package/docs/components/diff.md +177 -0
- package/docs/components/divider.md +132 -0
- package/docs/components/doc.md +2 -0
- package/docs/components/draw.md +2 -0
- package/docs/components/drawer.md +2 -0
- package/docs/components/empty-state.md +2 -0
- package/docs/components/file-gallery.md +2 -0
- package/docs/components/file-upload.md +2 -0
- package/docs/components/flip-card.md +169 -0
- package/docs/components/flow.md +208 -0
- package/docs/components/funnel.md +2 -0
- package/docs/components/gantt.md +187 -0
- package/docs/components/gauge.md +2 -0
- package/docs/components/heatmap.md +2 -0
- package/docs/components/image.md +2 -0
- package/docs/components/input.md +242 -0
- package/docs/components/kanban.md +2 -0
- package/docs/components/kpi.md +2 -0
- package/docs/components/layout.md +84 -0
- package/docs/components/link-preview.md +66 -92
- package/docs/components/link.md +73 -157
- package/docs/components/list.md +140 -44
- package/docs/components/location.md +96 -283
- package/docs/components/login.md +131 -498
- package/docs/components/map.md +203 -0
- package/docs/components/markdown.md +220 -0
- package/docs/components/masonry.md +57 -102
- package/docs/components/menu.md +87 -494
- package/docs/components/modal.md +83 -436
- package/docs/components/music-player.md +116 -221
- package/docs/components/nav.md +107 -170
- package/docs/components/network-graph.md +83 -111
- package/docs/components/notification-center.md +256 -0
- package/docs/components/org-chart.md +275 -0
- package/docs/components/pagination.md +75 -218
- package/docs/components/paint.md +108 -73
- package/docs/components/pdf-viewer.md +204 -0
- package/docs/components/podcast-player.md +277 -0
- package/docs/components/pricing-table.md +249 -0
- package/docs/components/progress.md +169 -0
- package/docs/components/qr-code.md +95 -378
- package/docs/components/qr-reader.md +83 -258
- package/docs/components/radio.md +151 -0
- package/docs/components/rating.md +154 -0
- package/docs/components/recipe.md +323 -0
- package/docs/components/sankey.md +84 -107
- package/docs/components/select.md +114 -485
- package/docs/components/skeleton.md +96 -0
- package/docs/components/slider.md +92 -235
- package/docs/components/sortable.md +267 -0
- package/docs/components/sparkline.md +76 -222
- package/docs/components/spinner.md +37 -18
- package/docs/components/split-pane.md +62 -226
- package/docs/components/spotlight.md +240 -0
- package/docs/components/spreadsheet.md +405 -0
- package/docs/components/stepper.md +72 -306
- package/docs/components/switch.md +69 -293
- package/docs/components/table.md +250 -0
- package/docs/components/tabs.md +92 -471
- package/docs/components/tag-input.md +257 -0
- package/docs/components/terminal.md +87 -391
- package/docs/components/testimonial.md +185 -0
- package/docs/components/textarea.md +96 -181
- package/docs/components/theme.md +216 -0
- package/docs/components/time-range-picker.md +99 -151
- package/docs/components/timeline.md +67 -115
- package/docs/components/timer.md +44 -86
- package/docs/components/toast.md +93 -432
- package/docs/components/tooltip.md +75 -419
- package/docs/components/tree.md +110 -436
- package/docs/components/treemap.md +86 -129
- package/docs/components/video-player.md +336 -0
- package/docs/components/virtual-scroller.md +86 -226
- package/docs/components/waterfall.md +217 -0
- package/docs/components/weather.md +239 -0
- package/package.json +1 -1
- package/docs/ai/components/popover.md +0 -70
- package/docs/components/popover.md +0 -333
|
@@ -1,156 +1,76 @@
|
|
|
1
|
-
#
|
|
1
|
+
[//]: # (AI: For a low-token version of this doc, use docs/ai/components/tooltip.md instead)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Tooltip
|
|
4
|
+
`<snice-tooltip>`
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
- [Basic Usage](#basic-usage)
|
|
7
|
-
- [Properties](#properties)
|
|
8
|
-
- [Methods](#methods)
|
|
9
|
-
- [Positions](#positions)
|
|
10
|
-
- [Triggers](#triggers)
|
|
11
|
-
- [Examples](#examples)
|
|
6
|
+
Provides contextual information when users hover, click, or focus an element.
|
|
12
7
|
|
|
13
8
|
## Basic Usage
|
|
14
9
|
|
|
15
|
-
```html
|
|
16
|
-
<snice-tooltip content="This is a tooltip">
|
|
17
|
-
<button>Hover me</button>
|
|
18
|
-
</snice-tooltip>
|
|
19
|
-
```
|
|
20
|
-
|
|
21
10
|
```typescript
|
|
22
11
|
import 'snice/components/tooltip/snice-tooltip';
|
|
23
12
|
```
|
|
24
13
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
| `content` | `string` | `''` | Tooltip text content |
|
|
30
|
-
| `position` | `TooltipPosition` | `'top'` | Position relative to trigger |
|
|
31
|
-
| `trigger` | `TooltipTrigger` | `'hover'` | Interaction that shows tooltip |
|
|
32
|
-
| `delay` | `number` | `0` | Show delay in milliseconds |
|
|
33
|
-
| `hideDelay` | `number` | `0` | Hide delay in milliseconds |
|
|
34
|
-
| `offset` | `number` | `12` | Distance from trigger in pixels |
|
|
35
|
-
| `arrow` | `boolean` | `true` | Show arrow indicator |
|
|
36
|
-
| `open` | `boolean` | `false` | Visibility state (manual trigger) |
|
|
37
|
-
| `maxWidth` | `number` | `250` | Maximum width in pixels |
|
|
38
|
-
| `zIndex` | `number` | `10000` | Stacking order |
|
|
39
|
-
|
|
40
|
-
### TooltipPosition
|
|
41
|
-
|
|
42
|
-
**Main positions:**
|
|
43
|
-
- `'top'` - Centered above
|
|
44
|
-
- `'bottom'` - Centered below
|
|
45
|
-
- `'left'` - Centered to the left
|
|
46
|
-
- `'right'` - Centered to the right
|
|
47
|
-
|
|
48
|
-
**Aligned positions:**
|
|
49
|
-
- `'top-start'` - Above, left-aligned
|
|
50
|
-
- `'top-end'` - Above, right-aligned
|
|
51
|
-
- `'bottom-start'` - Below, left-aligned
|
|
52
|
-
- `'bottom-end'` - Below, right-aligned
|
|
53
|
-
- `'left-start'` - Left, top-aligned
|
|
54
|
-
- `'left-end'` - Left, bottom-aligned
|
|
55
|
-
- `'right-start'` - Right, top-aligned
|
|
56
|
-
- `'right-end'` - Right, bottom-aligned
|
|
57
|
-
|
|
58
|
-
### TooltipTrigger
|
|
59
|
-
|
|
60
|
-
- `'hover'` - Show on mouse enter, hide on mouse leave
|
|
61
|
-
- `'click'` - Toggle on click, hide on click outside
|
|
62
|
-
- `'focus'` - Show on focus, hide on blur
|
|
63
|
-
- `'manual'` - Control via `open` property
|
|
64
|
-
|
|
65
|
-
## Methods
|
|
66
|
-
|
|
67
|
-
### `show(): void`
|
|
68
|
-
Show the tooltip.
|
|
69
|
-
|
|
70
|
-
```typescript
|
|
71
|
-
const tooltip = document.querySelector('snice-tooltip');
|
|
72
|
-
tooltip.show();
|
|
14
|
+
```html
|
|
15
|
+
<snice-tooltip content="This is a tooltip">
|
|
16
|
+
<button>Hover me</button>
|
|
17
|
+
</snice-tooltip>
|
|
73
18
|
```
|
|
74
19
|
|
|
75
|
-
|
|
76
|
-
Hide the tooltip.
|
|
20
|
+
## Importing
|
|
77
21
|
|
|
22
|
+
**ESM (bundler)**
|
|
78
23
|
```typescript
|
|
79
|
-
tooltip
|
|
24
|
+
import 'snice/components/tooltip/snice-tooltip';
|
|
80
25
|
```
|
|
81
26
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
tooltip.toggle();
|
|
27
|
+
**CDN**
|
|
28
|
+
```html
|
|
29
|
+
<script src="snice-runtime.min.js"></script>
|
|
30
|
+
<script src="snice-tooltip.min.js"></script>
|
|
87
31
|
```
|
|
88
32
|
|
|
89
|
-
|
|
90
|
-
Recalculate and update tooltip position. Useful when trigger element moves or resizes.
|
|
91
|
-
|
|
92
|
-
```typescript
|
|
93
|
-
tooltip.updatePosition();
|
|
94
|
-
```
|
|
33
|
+
## Examples
|
|
95
34
|
|
|
96
|
-
|
|
35
|
+
### Positions
|
|
97
36
|
|
|
98
|
-
|
|
37
|
+
Use the `position` attribute to place the tooltip relative to its trigger.
|
|
99
38
|
|
|
100
39
|
```html
|
|
101
|
-
|
|
102
|
-
<snice-tooltip content="Tooltip above" position="top">
|
|
40
|
+
<snice-tooltip content="Above" position="top">
|
|
103
41
|
<button>Top</button>
|
|
104
42
|
</snice-tooltip>
|
|
105
43
|
|
|
106
|
-
|
|
107
|
-
<snice-tooltip content="Tooltip below" position="bottom">
|
|
44
|
+
<snice-tooltip content="Below" position="bottom">
|
|
108
45
|
<button>Bottom</button>
|
|
109
46
|
</snice-tooltip>
|
|
110
47
|
|
|
111
|
-
|
|
112
|
-
<snice-tooltip content="Tooltip on left" position="left">
|
|
48
|
+
<snice-tooltip content="Left side" position="left">
|
|
113
49
|
<button>Left</button>
|
|
114
50
|
</snice-tooltip>
|
|
115
51
|
|
|
116
|
-
|
|
117
|
-
<snice-tooltip content="Tooltip on right" position="right">
|
|
52
|
+
<snice-tooltip content="Right side" position="right">
|
|
118
53
|
<button>Right</button>
|
|
119
54
|
</snice-tooltip>
|
|
120
55
|
```
|
|
121
56
|
|
|
122
57
|
### Aligned Positions
|
|
123
58
|
|
|
59
|
+
Use `-start` or `-end` suffixes for aligned placement.
|
|
60
|
+
|
|
124
61
|
```html
|
|
125
|
-
<!-- Top-start (left-aligned) -->
|
|
126
62
|
<snice-tooltip content="Left aligned" position="top-start">
|
|
127
63
|
<button>Top Start</button>
|
|
128
64
|
</snice-tooltip>
|
|
129
65
|
|
|
130
|
-
<!-- Top-end (right-aligned) -->
|
|
131
66
|
<snice-tooltip content="Right aligned" position="top-end">
|
|
132
67
|
<button>Top End</button>
|
|
133
68
|
</snice-tooltip>
|
|
134
|
-
|
|
135
|
-
<!-- Bottom-start -->
|
|
136
|
-
<snice-tooltip content="Left aligned" position="bottom-start">
|
|
137
|
-
<button>Bottom Start</button>
|
|
138
|
-
</snice-tooltip>
|
|
139
|
-
|
|
140
|
-
<!-- And so on... -->
|
|
141
69
|
```
|
|
142
70
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
### Hover (Default)
|
|
146
|
-
|
|
147
|
-
```html
|
|
148
|
-
<snice-tooltip content="Appears on hover">
|
|
149
|
-
<button>Hover me</button>
|
|
150
|
-
</snice-tooltip>
|
|
151
|
-
```
|
|
71
|
+
### Click Trigger
|
|
152
72
|
|
|
153
|
-
|
|
73
|
+
Use `trigger="click"` to show on click instead of hover.
|
|
154
74
|
|
|
155
75
|
```html
|
|
156
76
|
<snice-tooltip content="Click to toggle" trigger="click">
|
|
@@ -158,366 +78,102 @@ tooltip.updatePosition();
|
|
|
158
78
|
</snice-tooltip>
|
|
159
79
|
```
|
|
160
80
|
|
|
161
|
-
### Focus
|
|
162
|
-
|
|
163
|
-
```html
|
|
164
|
-
<snice-tooltip content="Focus the input" trigger="focus">
|
|
165
|
-
<input type="text" placeholder="Focus me">
|
|
166
|
-
</snice-tooltip>
|
|
167
|
-
```
|
|
81
|
+
### Focus Trigger
|
|
168
82
|
|
|
169
|
-
|
|
83
|
+
Use `trigger="focus"` to show when the element receives focus.
|
|
170
84
|
|
|
171
85
|
```html
|
|
172
|
-
<snice-tooltip
|
|
173
|
-
<
|
|
86
|
+
<snice-tooltip content="Enter your email address" trigger="focus">
|
|
87
|
+
<input type="email" placeholder="Email">
|
|
174
88
|
</snice-tooltip>
|
|
175
|
-
|
|
176
|
-
<button onclick="document.querySelector('#manualTip').open = true">
|
|
177
|
-
Show
|
|
178
|
-
</button>
|
|
179
|
-
<button onclick="document.querySelector('#manualTip').open = false">
|
|
180
|
-
Hide
|
|
181
|
-
</button>
|
|
182
89
|
```
|
|
183
90
|
|
|
184
|
-
|
|
91
|
+
### Manual Control
|
|
185
92
|
|
|
186
|
-
|
|
93
|
+
Use `trigger="manual"` with the `open` property for programmatic control.
|
|
187
94
|
|
|
188
95
|
```html
|
|
189
|
-
<snice-tooltip content="
|
|
190
|
-
<
|
|
191
|
-
<svg width="16" height="16" viewBox="0 0 16 16">
|
|
192
|
-
<path d="M8 2l6 12H2z"/>
|
|
193
|
-
</svg>
|
|
194
|
-
</button>
|
|
96
|
+
<snice-tooltip id="manual-tip" content="Manually controlled" trigger="manual">
|
|
97
|
+
<span>Target element</span>
|
|
195
98
|
</snice-tooltip>
|
|
99
|
+
|
|
100
|
+
<script>
|
|
101
|
+
const tooltip = document.getElementById('manual-tip');
|
|
102
|
+
tooltip.open = true; // Show
|
|
103
|
+
tooltip.open = false; // Hide
|
|
104
|
+
</script>
|
|
196
105
|
```
|
|
197
106
|
|
|
198
107
|
### With Delay
|
|
199
108
|
|
|
109
|
+
Use the `delay` and `hide-delay` attributes to add show/hide delays.
|
|
110
|
+
|
|
200
111
|
```html
|
|
201
|
-
|
|
202
|
-
<snice-tooltip
|
|
203
|
-
content="Delayed tooltip"
|
|
204
|
-
delay="500"
|
|
205
|
-
hide-delay="200">
|
|
112
|
+
<snice-tooltip content="Delayed tooltip" delay="500" hide-delay="200">
|
|
206
113
|
<button>Hover and wait</button>
|
|
207
114
|
</snice-tooltip>
|
|
208
115
|
```
|
|
209
116
|
|
|
210
117
|
### Without Arrow
|
|
211
118
|
|
|
119
|
+
Set `arrow="false"` to hide the arrow indicator.
|
|
120
|
+
|
|
212
121
|
```html
|
|
213
122
|
<snice-tooltip content="No arrow" arrow="false">
|
|
214
123
|
<button>No arrow</button>
|
|
215
124
|
</snice-tooltip>
|
|
216
125
|
```
|
|
217
126
|
|
|
218
|
-
###
|
|
127
|
+
### Strict Positioning
|
|
219
128
|
|
|
220
|
-
|
|
221
|
-
<snice-tooltip
|
|
222
|
-
content="This is a longer tooltip that needs more space"
|
|
223
|
-
max-width="400">
|
|
224
|
-
<button>Wide tooltip</button>
|
|
225
|
-
</snice-tooltip>
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
### Custom Offset
|
|
129
|
+
Set the `strict-positioning` attribute to disable automatic repositioning when near viewport edges.
|
|
229
130
|
|
|
230
131
|
```html
|
|
231
|
-
|
|
232
|
-
<
|
|
233
|
-
<button>More space</button>
|
|
234
|
-
</snice-tooltip>
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
### Help Icon
|
|
238
|
-
|
|
239
|
-
```html
|
|
240
|
-
<style>
|
|
241
|
-
.help-icon {
|
|
242
|
-
display: inline-flex;
|
|
243
|
-
align-items: center;
|
|
244
|
-
justify-content: center;
|
|
245
|
-
width: 18px;
|
|
246
|
-
height: 18px;
|
|
247
|
-
border-radius: 50%;
|
|
248
|
-
background: #3b82f6;
|
|
249
|
-
color: white;
|
|
250
|
-
font-size: 12px;
|
|
251
|
-
cursor: help;
|
|
252
|
-
}
|
|
253
|
-
</style>
|
|
254
|
-
|
|
255
|
-
<div style="display: flex; align-items: center; gap: 8px;">
|
|
256
|
-
<label>Password</label>
|
|
257
|
-
<snice-tooltip content="Must be at least 8 characters">
|
|
258
|
-
<span class="help-icon">?</span>
|
|
259
|
-
</snice-tooltip>
|
|
260
|
-
</div>
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
### Disabled Button Explanation
|
|
264
|
-
|
|
265
|
-
```html
|
|
266
|
-
<snice-tooltip content="Please fill out the form first">
|
|
267
|
-
<span>
|
|
268
|
-
<button disabled>Submit</button>
|
|
269
|
-
</span>
|
|
270
|
-
</snice-tooltip>
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
**Note:** Wrap disabled buttons in a span since they don't trigger mouse events.
|
|
274
|
-
|
|
275
|
-
### Truncated Text
|
|
276
|
-
|
|
277
|
-
```html
|
|
278
|
-
<style>
|
|
279
|
-
.truncated {
|
|
280
|
-
max-width: 200px;
|
|
281
|
-
white-space: nowrap;
|
|
282
|
-
overflow: hidden;
|
|
283
|
-
text-overflow: ellipsis;
|
|
284
|
-
}
|
|
285
|
-
</style>
|
|
286
|
-
|
|
287
|
-
<snice-tooltip content="This is the full text that gets truncated">
|
|
288
|
-
<div class="truncated">
|
|
289
|
-
This is the full text that gets truncated
|
|
290
|
-
</div>
|
|
132
|
+
<snice-tooltip content="Won't flip" position="top" strict-positioning>
|
|
133
|
+
<button>Fixed position</button>
|
|
291
134
|
</snice-tooltip>
|
|
292
135
|
```
|
|
293
136
|
|
|
294
|
-
### Form Field Help
|
|
295
|
-
|
|
296
|
-
```html
|
|
297
|
-
<div style="display: flex; flex-direction: column; gap: 8px;">
|
|
298
|
-
<div style="display: flex; align-items: center; gap: 8px;">
|
|
299
|
-
<label for="email">Email</label>
|
|
300
|
-
<snice-tooltip content="We'll never share your email with anyone" position="right">
|
|
301
|
-
<span style="color: #666; cursor: help;">ℹ️</span>
|
|
302
|
-
</snice-tooltip>
|
|
303
|
-
</div>
|
|
304
|
-
<input id="email" type="email">
|
|
305
|
-
</div>
|
|
306
|
-
```
|
|
307
|
-
|
|
308
137
|
### Toolbar Buttons
|
|
309
138
|
|
|
310
139
|
```html
|
|
311
|
-
<style>
|
|
312
|
-
.toolbar {
|
|
313
|
-
display: flex;
|
|
314
|
-
gap: 4px;
|
|
315
|
-
padding: 8px;
|
|
316
|
-
background: #f3f4f6;
|
|
317
|
-
border-radius: 8px;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.toolbar button {
|
|
321
|
-
padding: 8px;
|
|
322
|
-
border: none;
|
|
323
|
-
background: transparent;
|
|
324
|
-
cursor: pointer;
|
|
325
|
-
border-radius: 4px;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.toolbar button:hover {
|
|
329
|
-
background: white;
|
|
330
|
-
}
|
|
331
|
-
</style>
|
|
332
|
-
|
|
333
|
-
<div class="toolbar">
|
|
140
|
+
<div style="display: flex; gap: 4px;">
|
|
334
141
|
<snice-tooltip content="Bold (Ctrl+B)" position="bottom">
|
|
335
142
|
<button><b>B</b></button>
|
|
336
143
|
</snice-tooltip>
|
|
337
|
-
|
|
338
144
|
<snice-tooltip content="Italic (Ctrl+I)" position="bottom">
|
|
339
145
|
<button><i>I</i></button>
|
|
340
146
|
</snice-tooltip>
|
|
341
|
-
|
|
342
|
-
<snice-tooltip content="Underline (Ctrl+U)" position="bottom">
|
|
343
|
-
<button><u>U</u></button>
|
|
344
|
-
</snice-tooltip>
|
|
345
147
|
</div>
|
|
346
148
|
```
|
|
347
149
|
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
```html
|
|
351
|
-
<style>
|
|
352
|
-
.chart-point {
|
|
353
|
-
width: 12px;
|
|
354
|
-
height: 12px;
|
|
355
|
-
border-radius: 50%;
|
|
356
|
-
background: #3b82f6;
|
|
357
|
-
cursor: pointer;
|
|
358
|
-
}
|
|
359
|
-
</style>
|
|
360
|
-
|
|
361
|
-
<snice-tooltip content="Sales: $12,345" position="top">
|
|
362
|
-
<div class="chart-point"></div>
|
|
363
|
-
</snice-tooltip>
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
### Status Indicators
|
|
367
|
-
|
|
368
|
-
```html
|
|
369
|
-
<style>
|
|
370
|
-
.status {
|
|
371
|
-
display: inline-flex;
|
|
372
|
-
align-items: center;
|
|
373
|
-
gap: 6px;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
.status-dot {
|
|
377
|
-
width: 8px;
|
|
378
|
-
height: 8px;
|
|
379
|
-
border-radius: 50%;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.status-dot.online { background: #10b981; }
|
|
383
|
-
.status-dot.offline { background: #ef4444; }
|
|
384
|
-
</style>
|
|
385
|
-
|
|
386
|
-
<snice-tooltip content="Server is online and responding" position="right">
|
|
387
|
-
<div class="status">
|
|
388
|
-
<span class="status-dot online"></span>
|
|
389
|
-
<span>Server Status</span>
|
|
390
|
-
</div>
|
|
391
|
-
</snice-tooltip>
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
### Programmatic Control
|
|
395
|
-
|
|
396
|
-
```typescript
|
|
397
|
-
import type { SniceTooltipElement } from 'snice/components/tooltip/snice-tooltip.types';
|
|
398
|
-
|
|
399
|
-
const tooltip = document.querySelector<SniceTooltipElement>('snice-tooltip');
|
|
400
|
-
|
|
401
|
-
// Show/hide programmatically
|
|
402
|
-
tooltip.show();
|
|
403
|
-
setTimeout(() => tooltip.hide(), 2000);
|
|
404
|
-
|
|
405
|
-
// Toggle
|
|
406
|
-
tooltip.toggle();
|
|
407
|
-
|
|
408
|
-
// Update position after layout changes
|
|
409
|
-
window.addEventListener('resize', () => {
|
|
410
|
-
tooltip.updatePosition();
|
|
411
|
-
});
|
|
412
|
-
|
|
413
|
-
// Change properties
|
|
414
|
-
tooltip.content = 'Updated content';
|
|
415
|
-
tooltip.position = 'bottom';
|
|
416
|
-
tooltip.arrow = false;
|
|
417
|
-
```
|
|
418
|
-
|
|
419
|
-
### Dynamic Content
|
|
420
|
-
|
|
421
|
-
```html
|
|
422
|
-
<snice-tooltip id="dynamicTip" content="Loading..." trigger="manual">
|
|
423
|
-
<button id="fetchBtn">Fetch Data</button>
|
|
424
|
-
</snice-tooltip>
|
|
425
|
-
|
|
426
|
-
<script type="module">
|
|
427
|
-
import 'snice/components/tooltip/snice-tooltip';
|
|
428
|
-
|
|
429
|
-
const btn = document.querySelector('#fetchBtn');
|
|
430
|
-
const tooltip = document.querySelector('#dynamicTip');
|
|
431
|
-
|
|
432
|
-
btn.addEventListener('click', async () => {
|
|
433
|
-
tooltip.content = 'Loading...';
|
|
434
|
-
tooltip.open = true;
|
|
435
|
-
|
|
436
|
-
const data = await fetch('/api/data').then(r => r.json());
|
|
437
|
-
|
|
438
|
-
tooltip.content = `Loaded ${data.count} items`;
|
|
439
|
-
|
|
440
|
-
setTimeout(() => {
|
|
441
|
-
tooltip.open = false;
|
|
442
|
-
}, 2000);
|
|
443
|
-
});
|
|
444
|
-
</script>
|
|
445
|
-
```
|
|
446
|
-
|
|
447
|
-
## Smart Positioning
|
|
150
|
+
## Slots
|
|
448
151
|
|
|
449
|
-
|
|
152
|
+
| Name | Description |
|
|
153
|
+
|------|-------------|
|
|
154
|
+
| (default) | Trigger content the tooltip attaches to |
|
|
450
155
|
|
|
451
|
-
|
|
452
|
-
<!-- Will flip to bottom if no room above -->
|
|
453
|
-
<snice-tooltip content="Smart positioning" position="top">
|
|
454
|
-
<button>Near top edge</button>
|
|
455
|
-
</snice-tooltip>
|
|
456
|
-
```
|
|
457
|
-
|
|
458
|
-
To disable auto-repositioning:
|
|
459
|
-
|
|
460
|
-
```html
|
|
461
|
-
<snice-tooltip
|
|
462
|
-
content="Stays on top"
|
|
463
|
-
position="top"
|
|
464
|
-
strict-positioning>
|
|
465
|
-
<button>Fixed position</button>
|
|
466
|
-
</snice-tooltip>
|
|
467
|
-
```
|
|
468
|
-
|
|
469
|
-
## Accessibility
|
|
470
|
-
|
|
471
|
-
- **role="tooltip"**: Proper ARIA role on tooltip element
|
|
472
|
-
- **Keyboard accessible**: Focus trigger works with keyboard navigation
|
|
473
|
-
- **Screen reader friendly**: Content announced when tooltip appears
|
|
474
|
-
- **Visible focus**: Trigger elements maintain focus indicators
|
|
475
|
-
- **Disabled elements**: Wrap in span to enable tooltips on disabled buttons
|
|
476
|
-
|
|
477
|
-
## Browser Support
|
|
478
|
-
|
|
479
|
-
- Modern browsers (Chrome, Firefox, Safari, Edge)
|
|
480
|
-
- Requires Custom Elements v1 and Shadow DOM support
|
|
481
|
-
|
|
482
|
-
## Best Practices
|
|
483
|
-
|
|
484
|
-
1. **Keep content brief**: Tooltips should provide quick, scannable information
|
|
485
|
-
2. **Don't repeat visible text**: Add value with additional context
|
|
486
|
-
3. **Avoid interactive content**: Tooltips should be informational only
|
|
487
|
-
4. **Use consistent triggers**: Stick to one trigger type per interface
|
|
488
|
-
5. **Position appropriately**: Consider available screen space
|
|
489
|
-
6. **Test on mobile**: Hover doesn't work on touch devices
|
|
490
|
-
7. **Wrap disabled elements**: Disabled elements don't fire events
|
|
491
|
-
8. **Provide alternatives**: Don't rely solely on tooltips for critical info
|
|
492
|
-
|
|
493
|
-
## Common Patterns
|
|
494
|
-
|
|
495
|
-
### Help Text Pattern
|
|
496
|
-
```html
|
|
497
|
-
<snice-tooltip content="Additional context">
|
|
498
|
-
<span class="help-icon">?</span>
|
|
499
|
-
</snice-tooltip>
|
|
500
|
-
```
|
|
156
|
+
## Properties
|
|
501
157
|
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
158
|
+
| Property | Type | Default | Description |
|
|
159
|
+
|----------|------|---------|-------------|
|
|
160
|
+
| `content` | `string` | `''` | Tooltip text |
|
|
161
|
+
| `position` | `'top' \| 'top-start' \| 'top-end' \| 'bottom' \| 'bottom-start' \| 'bottom-end' \| 'left' \| 'left-start' \| 'left-end' \| 'right' \| 'right-start' \| 'right-end'` | `'top'` | Position relative to trigger |
|
|
162
|
+
| `trigger` | `'hover' \| 'click' \| 'focus' \| 'manual'` | `'hover'` | Interaction that shows tooltip |
|
|
163
|
+
| `delay` | `number` | `0` | Show delay in milliseconds |
|
|
164
|
+
| `hideDelay` (attr: `hide-delay`) | `number` | `0` | Hide delay in milliseconds |
|
|
165
|
+
| `offset` | `number` | `12` | Distance from trigger in pixels |
|
|
166
|
+
| `arrow` | `boolean` | `true` | Show arrow indicator |
|
|
167
|
+
| `open` | `boolean` | `false` | Visibility state |
|
|
168
|
+
| `maxWidth` (attr: `max-width`) | `number` | `250` | Maximum width in pixels |
|
|
169
|
+
| `zIndex` (attr: `z-index`) | `number` | `10000` | Stacking order |
|
|
170
|
+
| `strictPositioning` (attr: `strict-positioning`) | `boolean` | `false` | Disable auto-repositioning |
|
|
508
171
|
|
|
509
|
-
|
|
510
|
-
```html
|
|
511
|
-
<snice-tooltip content="Action description">
|
|
512
|
-
<button aria-label="Action description">
|
|
513
|
-
<icon>
|
|
514
|
-
</button>
|
|
515
|
-
</snice-tooltip>
|
|
516
|
-
```
|
|
172
|
+
## Methods
|
|
517
173
|
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
174
|
+
| Method | Arguments | Description |
|
|
175
|
+
|--------|-----------|-------------|
|
|
176
|
+
| `show()` | -- | Show the tooltip |
|
|
177
|
+
| `hide()` | -- | Hide the tooltip |
|
|
178
|
+
| `toggle()` | -- | Toggle visibility |
|
|
179
|
+
| `updatePosition()` | -- | Recalculate position |
|