snice 4.8.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/camera-annotate.d.ts +27 -0
- package/adapters/react/camera-annotate.d.ts.map +1 -0
- package/adapters/react/camera-annotate.js +24 -0
- package/adapters/react/camera-annotate.js.map +1 -0
- package/adapters/react/camera-annotate.tsx +35 -0
- package/adapters/react/candlestick.d.ts +34 -0
- package/adapters/react/candlestick.d.ts.map +1 -0
- package/adapters/react/candlestick.js +24 -0
- package/adapters/react/candlestick.js.map +1 -0
- package/adapters/react/candlestick.tsx +42 -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 +66 -0
- package/adapters/react/components.d.ts.map +1 -1
- package/adapters/react/components.js +33 -0
- package/adapters/react/components.js.map +1 -1
- package/adapters/react/components.ts +66 -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/funnel.d.ts +31 -0
- package/adapters/react/funnel.d.ts.map +1 -0
- package/adapters/react/funnel.js +24 -0
- package/adapters/react/funnel.js.map +1 -0
- package/adapters/react/funnel.tsx +39 -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/network-graph.d.ts +32 -0
- package/adapters/react/network-graph.d.ts.map +1 -0
- package/adapters/react/network-graph.js +24 -0
- package/adapters/react/network-graph.js.map +1 -0
- package/adapters/react/network-graph.tsx +40 -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/sankey.d.ts +31 -0
- package/adapters/react/sankey.d.ts.map +1 -0
- package/adapters/react/sankey.js +24 -0
- package/adapters/react/sankey.js.map +1 -0
- package/adapters/react/sankey.tsx +39 -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/time-range-picker.d.ts +33 -0
- package/adapters/react/time-range-picker.d.ts.map +1 -0
- package/adapters/react/time-range-picker.js +24 -0
- package/adapters/react/time-range-picker.js.map +1 -0
- package/adapters/react/time-range-picker.tsx +41 -0
- package/adapters/react/treemap.d.ts +30 -0
- package/adapters/react/treemap.d.ts.map +1 -0
- package/adapters/react/treemap.js +24 -0
- package/adapters/react/treemap.js.map +1 -0
- package/adapters/react/treemap.tsx +38 -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/virtual-scroller.d.ts +1 -0
- package/adapters/react/virtual-scroller.d.ts.map +1 -1
- package/adapters/react/virtual-scroller.js +1 -1
- package/adapters/react/virtual-scroller.js.map +1 -1
- package/adapters/react/virtual-scroller.tsx +2 -1
- 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 +2 -2
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.js.map +1 -1
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +13 -13
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js.map +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/README.md +27 -0
- package/dist/cdn/camera-annotate/snice-camera-annotate.js +730 -0
- package/dist/cdn/camera-annotate/snice-camera-annotate.js.map +1 -0
- package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +144 -0
- package/dist/cdn/camera-annotate/snice-camera-annotate.min.js.map +1 -0
- package/dist/cdn/candlestick/README.md +27 -0
- package/dist/cdn/candlestick/snice-candlestick.js +717 -0
- package/dist/cdn/candlestick/snice-candlestick.js.map +1 -0
- package/dist/cdn/candlestick/snice-candlestick.min.js +22 -0
- package/dist/cdn/candlestick/snice-candlestick.min.js.map +1 -0
- 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/README.md +27 -0
- package/dist/cdn/funnel/snice-funnel.js +424 -0
- package/dist/cdn/funnel/snice-funnel.js.map +1 -0
- package/dist/cdn/funnel/snice-funnel.min.js +20 -0
- package/dist/cdn/funnel/snice-funnel.min.js.map +1 -0
- 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/README.md +2 -2
- package/dist/cdn/layout/snice-layout.js +23 -6
- package/dist/cdn/layout/snice-layout.js.map +1 -1
- package/dist/cdn/layout/snice-layout.min.js +2 -2
- package/dist/cdn/layout/snice-layout.min.js.map +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/README.md +6 -2
- package/dist/cdn/list/snice-list.js +87 -10
- package/dist/cdn/list/snice-list.js.map +1 -1
- package/dist/cdn/list/snice-list.min.js +20 -6
- package/dist/cdn/list/snice-list.min.js.map +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/README.md +2 -2
- package/dist/cdn/nav/snice-nav.js +23 -6
- package/dist/cdn/nav/snice-nav.js.map +1 -1
- package/dist/cdn/nav/snice-nav.min.js +2 -2
- package/dist/cdn/nav/snice-nav.min.js.map +1 -1
- package/dist/cdn/network-graph/README.md +27 -0
- package/dist/cdn/network-graph/snice-network-graph.js +788 -0
- package/dist/cdn/network-graph/snice-network-graph.js.map +1 -0
- package/dist/cdn/network-graph/snice-network-graph.min.js +13 -0
- package/dist/cdn/network-graph/snice-network-graph.min.js.map +1 -0
- 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/README.md +2 -2
- package/dist/cdn/pagination/snice-pagination.js +13 -13
- package/dist/cdn/pagination/snice-pagination.js.map +1 -1
- package/dist/cdn/pagination/snice-pagination.min.js +14 -14
- package/dist/cdn/pagination/snice-pagination.min.js.map +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/README.md +27 -0
- package/dist/cdn/sankey/snice-sankey.js +679 -0
- package/dist/cdn/sankey/snice-sankey.js.map +1 -0
- package/dist/cdn/sankey/snice-sankey.min.js +21 -0
- package/dist/cdn/sankey/snice-sankey.min.js.map +1 -0
- 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/README.md +6 -2
- package/dist/cdn/stepper/snice-stepper.js +77 -10
- package/dist/cdn/stepper/snice-stepper.js.map +1 -1
- package/dist/cdn/stepper/snice-stepper.min.js +13 -9
- package/dist/cdn/stepper/snice-stepper.min.js.map +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/README.md +27 -0
- package/dist/cdn/time-range-picker/snice-time-range-picker.js +635 -0
- package/dist/cdn/time-range-picker/snice-time-range-picker.js.map +1 -0
- package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +34 -0
- package/dist/cdn/time-range-picker/snice-time-range-picker.min.js.map +1 -0
- 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/README.md +5 -1
- package/dist/cdn/tree/snice-tree.js +4 -8
- package/dist/cdn/tree/snice-tree.js.map +1 -1
- package/dist/cdn/tree/snice-tree.min.js +5 -5
- package/dist/cdn/tree/snice-tree.min.js.map +1 -1
- package/dist/cdn/treemap/README.md +27 -0
- package/dist/cdn/treemap/snice-treemap.js +522 -0
- package/dist/cdn/treemap/snice-treemap.js.map +1 -0
- package/dist/cdn/treemap/snice-treemap.min.js +14 -0
- package/dist/cdn/treemap/snice-treemap.min.js.map +1 -0
- 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/README.md +2 -2
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +47 -16
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.js.map +1 -1
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +9 -9
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js.map +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/breadcrumbs/snice-breadcrumbs.js +1 -1
- package/dist/components/breadcrumbs/snice-breadcrumbs.js.map +1 -1
- package/dist/components/camera-annotate/snice-camera-annotate.d.ts +68 -0
- package/dist/components/camera-annotate/snice-camera-annotate.js +663 -0
- package/dist/components/camera-annotate/snice-camera-annotate.js.map +1 -0
- package/dist/components/camera-annotate/snice-camera-annotate.types.d.ts +50 -0
- package/dist/components/candlestick/snice-candlestick.d.ts +78 -0
- package/dist/components/candlestick/snice-candlestick.js +650 -0
- package/dist/components/candlestick/snice-candlestick.js.map +1 -0
- package/dist/components/candlestick/snice-candlestick.types.d.ts +40 -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/funnel/snice-funnel.d.ts +37 -0
- package/dist/components/funnel/snice-funnel.js +357 -0
- package/dist/components/funnel/snice-funnel.js.map +1 -0
- package/dist/components/funnel/snice-funnel.types.d.ts +28 -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/list/snice-list-item.d.ts +2 -0
- package/dist/components/list/snice-list-item.js +20 -2
- package/dist/components/list/snice-list-item.js.map +1 -1
- 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/nav/snice-nav.js +22 -5
- package/dist/components/nav/snice-nav.js.map +1 -1
- package/dist/components/network-graph/snice-network-graph.d.ts +80 -0
- package/dist/components/network-graph/snice-network-graph.js +721 -0
- package/dist/components/network-graph/snice-network-graph.js.map +1 -0
- package/dist/components/network-graph/snice-network-graph.types.d.ts +49 -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/pagination/snice-pagination.js +12 -12
- 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/sankey/snice-sankey.d.ts +46 -0
- package/dist/components/sankey/snice-sankey.js +612 -0
- package/dist/components/sankey/snice-sankey.js.map +1 -0
- package/dist/components/sankey/snice-sankey.types.d.ts +59 -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/stepper/snice-stepper.js +9 -3
- package/dist/components/stepper/snice-stepper.js.map +1 -1
- 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/time-range-picker/snice-time-range-picker.d.ts +67 -0
- package/dist/components/time-range-picker/snice-time-range-picker.js +568 -0
- package/dist/components/time-range-picker/snice-time-range-picker.js.map +1 -0
- package/dist/components/time-range-picker/snice-time-range-picker.types.d.ts +39 -0
- package/dist/components/treemap/snice-treemap.d.ts +49 -0
- package/dist/components/treemap/snice-treemap.js +455 -0
- package/dist/components/treemap/snice-treemap.js.map +1 -0
- package/dist/components/treemap/snice-treemap.types.d.ts +42 -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/virtual-scroller/snice-virtual-scroller.d.ts +5 -0
- package/dist/components/virtual-scroller/snice-virtual-scroller.js +47 -16
- package/dist/components/virtual-scroller/snice-virtual-scroller.js.map +1 -1
- 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.cjs.map +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +1 -1
- package/dist/index.iife.js.map +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/camera-annotate.md +82 -0
- package/docs/ai/components/candlestick.md +79 -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 +86 -0
- 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 +83 -0
- 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/sankey.md +63 -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 +46 -0
- 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 +57 -0
- 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 +188 -0
- package/docs/components/camera.md +2 -0
- package/docs/components/candlestick.md +198 -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 +193 -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 +187 -0
- 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 +178 -0
- 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 +161 -0
- 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 +155 -0
- 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
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
[//]: # (AI: For a low-token version of this doc, use docs/ai/components/rating.md instead)
|
|
2
|
+
|
|
3
|
+
# Rating Component
|
|
4
|
+
|
|
5
|
+
The rating component provides an interactive star rating input with configurable precision (full or half stars), custom icons, multiple sizes, and full keyboard navigation.
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
- [Basic Usage](#basic-usage)
|
|
9
|
+
- [Properties](#properties)
|
|
10
|
+
- [Events](#events)
|
|
11
|
+
- [CSS Custom Properties](#css-custom-properties)
|
|
12
|
+
- [Examples](#examples)
|
|
13
|
+
- [Accessibility](#accessibility)
|
|
14
|
+
|
|
15
|
+
## Basic Usage
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<snice-rating value="3" max="5"></snice-rating>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import 'snice/components/rating/snice-rating';
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Properties
|
|
26
|
+
|
|
27
|
+
| Property | Type | Default | Description |
|
|
28
|
+
|----------|------|---------|-------------|
|
|
29
|
+
| `value` | `number` | `0` | Current rating value |
|
|
30
|
+
| `max` | `number` | `5` | Maximum number of stars |
|
|
31
|
+
| `icon` | `string` | `'\u2605'` (filled star) | Character used for each rating item |
|
|
32
|
+
| `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | Display size |
|
|
33
|
+
| `readonly` | `boolean` | `false` | Disable user interaction |
|
|
34
|
+
| `precision` | `'full' \| 'half'` | `'full'` | Click precision (full star or half star increments) |
|
|
35
|
+
|
|
36
|
+
## Events
|
|
37
|
+
|
|
38
|
+
#### `rating-change`
|
|
39
|
+
Fired when the rating value changes.
|
|
40
|
+
|
|
41
|
+
**Event Detail:**
|
|
42
|
+
```typescript
|
|
43
|
+
{
|
|
44
|
+
value: number; // The new rating value
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## CSS Custom Properties
|
|
49
|
+
|
|
50
|
+
| Property | Description | Default |
|
|
51
|
+
|----------|-------------|---------|
|
|
52
|
+
| `--rating-color` | Filled star color | `var(--snice-color-warning)` |
|
|
53
|
+
| `--rating-color-empty` | Empty star color | `var(--snice-color-border)` |
|
|
54
|
+
| `--rating-size` | Star size (set automatically by `size` property) | `1.5rem` (medium) |
|
|
55
|
+
|
|
56
|
+
## Examples
|
|
57
|
+
|
|
58
|
+
### Basic Rating
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<snice-rating value="3"></snice-rating>
|
|
62
|
+
<snice-rating value="4" max="5"></snice-rating>
|
|
63
|
+
<snice-rating value="0"></snice-rating>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### Half-Star Precision
|
|
67
|
+
|
|
68
|
+
Use the `precision="half"` attribute to allow half-star selections.
|
|
69
|
+
|
|
70
|
+
```html
|
|
71
|
+
<snice-rating value="3.5" precision="half"></snice-rating>
|
|
72
|
+
<snice-rating value="2.5" precision="half" max="5"></snice-rating>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### Sizes
|
|
76
|
+
|
|
77
|
+
Use the `size` attribute to adjust the display size.
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<snice-rating value="4" size="small"></snice-rating>
|
|
81
|
+
<snice-rating value="4" size="medium"></snice-rating>
|
|
82
|
+
<snice-rating value="4" size="large"></snice-rating>
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Custom Icons
|
|
86
|
+
|
|
87
|
+
Use the `icon` attribute to replace the default star with any character or emoji.
|
|
88
|
+
|
|
89
|
+
```html
|
|
90
|
+
<!-- Heart rating -->
|
|
91
|
+
<snice-rating value="3" icon="❤" max="5"></snice-rating>
|
|
92
|
+
|
|
93
|
+
<!-- Thumbs up rating -->
|
|
94
|
+
<snice-rating value="7" icon="👍" max="10"></snice-rating>
|
|
95
|
+
|
|
96
|
+
<!-- Circle rating -->
|
|
97
|
+
<snice-rating value="2" icon="●" max="4"></snice-rating>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Readonly Display
|
|
101
|
+
|
|
102
|
+
Use the `readonly` attribute to display a rating without allowing interaction.
|
|
103
|
+
|
|
104
|
+
```html
|
|
105
|
+
<snice-rating value="4.5" precision="half" readonly></snice-rating>
|
|
106
|
+
<snice-rating value="3" readonly></snice-rating>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Handling Rating Changes
|
|
110
|
+
|
|
111
|
+
```html
|
|
112
|
+
<snice-rating id="product-rating" value="0" max="5"></snice-rating>
|
|
113
|
+
<p id="rating-label">No rating selected</p>
|
|
114
|
+
|
|
115
|
+
<script type="module">
|
|
116
|
+
import 'snice/components/rating/snice-rating';
|
|
117
|
+
|
|
118
|
+
const rating = document.getElementById('product-rating');
|
|
119
|
+
const label = document.getElementById('rating-label');
|
|
120
|
+
|
|
121
|
+
rating.addEventListener('rating-change', (e) => {
|
|
122
|
+
label.textContent = `You rated: ${e.detail.value} out of 5`;
|
|
123
|
+
});
|
|
124
|
+
</script>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### Custom Styled Rating
|
|
128
|
+
|
|
129
|
+
```html
|
|
130
|
+
<style>
|
|
131
|
+
.custom-rating {
|
|
132
|
+
--rating-color: #e91e63;
|
|
133
|
+
--rating-color-empty: #f8bbd0;
|
|
134
|
+
}
|
|
135
|
+
</style>
|
|
136
|
+
|
|
137
|
+
<snice-rating class="custom-rating" value="3" icon="❤" max="5"></snice-rating>
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Accessibility
|
|
141
|
+
|
|
142
|
+
- **ARIA role**: Uses `role="radiogroup"` for the container with individual `role="radio"` per star
|
|
143
|
+
- **Keyboard support**: Arrow keys (Left/Down to decrease, Right/Up to increase) navigate the rating; step size matches precision (1 for full, 0.5 for half)
|
|
144
|
+
- **Focus indicators**: Clear focus ring on the active star
|
|
145
|
+
- **Readonly mode**: When `readonly` is set, the component is not focusable or interactive
|
|
146
|
+
- **Screen readers**: Current value and maximum are announced
|
|
147
|
+
|
|
148
|
+
## Best Practices
|
|
149
|
+
|
|
150
|
+
1. **Use half precision for review systems**: Half-star ratings give users more granularity
|
|
151
|
+
2. **Display readonly ratings for averages**: Show aggregate scores as readonly
|
|
152
|
+
3. **Keep max reasonable**: 5 or 10 stars are conventional; more becomes unwieldy
|
|
153
|
+
4. **Provide context**: Pair ratings with labels explaining what is being rated
|
|
154
|
+
5. **Use custom icons sparingly**: Stars are universally understood; custom icons may need additional context
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
[//]: # (AI: For a low-token version of this doc, use docs/ai/components/recipe.md instead)
|
|
2
|
+
|
|
3
|
+
# Recipe Component
|
|
4
|
+
|
|
5
|
+
The recipe component displays an interactive recipe card with a hero image, ingredient scaling based on serving size, step-by-step mode with per-step timers, ingredient checkboxes, and optional nutrition facts.
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
- [Basic Usage](#basic-usage)
|
|
9
|
+
- [Properties](#properties)
|
|
10
|
+
- [Methods](#methods)
|
|
11
|
+
- [Events](#events)
|
|
12
|
+
- [CSS Parts](#css-parts)
|
|
13
|
+
- [Examples](#examples)
|
|
14
|
+
- [Accessibility](#accessibility)
|
|
15
|
+
|
|
16
|
+
## Basic Usage
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<snice-recipe id="my-recipe"></snice-recipe>
|
|
20
|
+
|
|
21
|
+
<script type="module">
|
|
22
|
+
import 'snice/components/recipe/snice-recipe';
|
|
23
|
+
|
|
24
|
+
const recipe = document.getElementById('my-recipe');
|
|
25
|
+
recipe.title = 'Pasta Carbonara';
|
|
26
|
+
recipe.prepTime = 10;
|
|
27
|
+
recipe.cookTime = 20;
|
|
28
|
+
recipe.servings = 4;
|
|
29
|
+
recipe.ingredients = [
|
|
30
|
+
{ name: 'Spaghetti', amount: 400, unit: 'g' },
|
|
31
|
+
{ name: 'Pancetta', amount: 200, unit: 'g' }
|
|
32
|
+
];
|
|
33
|
+
recipe.steps = [
|
|
34
|
+
{ text: 'Boil pasta in salted water.', time: 10 },
|
|
35
|
+
{ text: 'Fry pancetta until crispy.' }
|
|
36
|
+
];
|
|
37
|
+
</script>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
import 'snice/components/recipe/snice-recipe';
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Properties
|
|
45
|
+
|
|
46
|
+
| Property | Type | Default | Description |
|
|
47
|
+
|----------|------|---------|-------------|
|
|
48
|
+
| `title` | `string` | `''` | Recipe title |
|
|
49
|
+
| `description` | `string` | `''` | Short description |
|
|
50
|
+
| `image` | `string` | `''` | Hero image URL |
|
|
51
|
+
| `author` | `string` | `''` | Recipe author name |
|
|
52
|
+
| `prepTime` (attr: `prep-time`) | `number` | `0` | Prep time in minutes |
|
|
53
|
+
| `cookTime` (attr: `cook-time`) | `number` | `0` | Cook time in minutes |
|
|
54
|
+
| `servings` | `number` | `4` | Base serving count |
|
|
55
|
+
| `difficulty` | `'easy' \| 'medium' \| 'hard'` | `'medium'` | Difficulty level |
|
|
56
|
+
| `cuisine` | `string` | `''` | Cuisine type (displayed as a tag) |
|
|
57
|
+
| `variant` | `'card' \| 'full'` | `'full'` | Display variant |
|
|
58
|
+
| `ingredients` | `RecipeIngredient[]` | `[]` | Ingredient list |
|
|
59
|
+
| `steps` | `RecipeStep[]` | `[]` | Instruction steps |
|
|
60
|
+
| `nutrition` | `RecipeNutrition \| null` | `null` | Nutrition facts per serving |
|
|
61
|
+
| `tags` | `string[]` | `[]` | Recipe tags |
|
|
62
|
+
|
|
63
|
+
### RecipeIngredient Interface
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
interface RecipeIngredient {
|
|
67
|
+
name: string;
|
|
68
|
+
amount: number;
|
|
69
|
+
unit: string;
|
|
70
|
+
group?: string; // Group header for ingredient sections (e.g. 'Sauce', 'Dough')
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### RecipeStep Interface
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
interface RecipeStep {
|
|
78
|
+
text: string;
|
|
79
|
+
image?: string; // Step photo URL
|
|
80
|
+
tip?: string; // Pro tip text
|
|
81
|
+
time?: number; // Timer duration in minutes (shows inline timer button)
|
|
82
|
+
}
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### RecipeNutrition Interface
|
|
86
|
+
|
|
87
|
+
```typescript
|
|
88
|
+
interface RecipeNutrition {
|
|
89
|
+
calories: number;
|
|
90
|
+
protein: number; // in grams
|
|
91
|
+
carbs: number; // in grams
|
|
92
|
+
fat: number; // in grams
|
|
93
|
+
fiber?: number; // in grams
|
|
94
|
+
sodium?: number; // in mg
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Methods
|
|
99
|
+
|
|
100
|
+
#### `setServings(count: number): void`
|
|
101
|
+
Adjust the serving count. All ingredient quantities scale proportionally.
|
|
102
|
+
|
|
103
|
+
```typescript
|
|
104
|
+
recipe.setServings(8); // Doubles ingredients for a 4-serving base recipe
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
#### `print(): void`
|
|
108
|
+
Open a print-friendly view of the recipe.
|
|
109
|
+
|
|
110
|
+
```typescript
|
|
111
|
+
recipe.print();
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
#### `reset(): void`
|
|
115
|
+
Reset all checked ingredients, completed steps, running timers, and serving count back to defaults.
|
|
116
|
+
|
|
117
|
+
```typescript
|
|
118
|
+
recipe.reset();
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Events
|
|
122
|
+
|
|
123
|
+
#### `recipe-serving-change`
|
|
124
|
+
Fired when the serving count changes.
|
|
125
|
+
|
|
126
|
+
**Event Detail:**
|
|
127
|
+
```typescript
|
|
128
|
+
{
|
|
129
|
+
servings: number; // New serving count
|
|
130
|
+
previousServings: number; // Previous serving count
|
|
131
|
+
}
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
#### `recipe-step-complete`
|
|
135
|
+
Fired when a step is marked as complete or incomplete.
|
|
136
|
+
|
|
137
|
+
**Event Detail:**
|
|
138
|
+
```typescript
|
|
139
|
+
{
|
|
140
|
+
stepIndex: number; // Zero-based step index
|
|
141
|
+
completed: boolean; // Whether the step is now completed
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
#### `recipe-ingredient-check`
|
|
146
|
+
Fired when an ingredient checkbox is toggled.
|
|
147
|
+
|
|
148
|
+
**Event Detail:**
|
|
149
|
+
```typescript
|
|
150
|
+
{
|
|
151
|
+
ingredientIndex: number; // Zero-based ingredient index
|
|
152
|
+
checked: boolean; // Whether the ingredient is now checked
|
|
153
|
+
ingredient: RecipeIngredient; // The ingredient object
|
|
154
|
+
}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## CSS Parts
|
|
158
|
+
|
|
159
|
+
| Part | Description |
|
|
160
|
+
|------|-------------|
|
|
161
|
+
| `container` | The outer recipe container |
|
|
162
|
+
| `hero` | The hero image area |
|
|
163
|
+
| `header` | Title and description section |
|
|
164
|
+
| `meta` | Metadata bar (prep time, cook time, servings, difficulty) |
|
|
165
|
+
| `content` | Main content area (ingredients + steps) |
|
|
166
|
+
| `ingredients` | Ingredients section |
|
|
167
|
+
| `steps` | Steps/instructions section |
|
|
168
|
+
| `nutrition` | Nutrition facts panel |
|
|
169
|
+
| `controls` | Serving size controls |
|
|
170
|
+
|
|
171
|
+
## Examples
|
|
172
|
+
|
|
173
|
+
### Full Recipe with All Features
|
|
174
|
+
|
|
175
|
+
```html
|
|
176
|
+
<snice-recipe id="carbonara"></snice-recipe>
|
|
177
|
+
|
|
178
|
+
<script type="module">
|
|
179
|
+
const recipe = document.getElementById('carbonara');
|
|
180
|
+
recipe.title = 'Pasta Carbonara';
|
|
181
|
+
recipe.description = 'Classic Italian pasta with a creamy egg and cheese sauce.';
|
|
182
|
+
recipe.image = '/images/carbonara.jpg';
|
|
183
|
+
recipe.author = 'Chef Maria';
|
|
184
|
+
recipe.prepTime = 10;
|
|
185
|
+
recipe.cookTime = 20;
|
|
186
|
+
recipe.servings = 4;
|
|
187
|
+
recipe.difficulty = 'medium';
|
|
188
|
+
recipe.cuisine = 'Italian';
|
|
189
|
+
recipe.tags = ['pasta', 'italian', 'quick'];
|
|
190
|
+
recipe.ingredients = [
|
|
191
|
+
{ name: 'Spaghetti', amount: 400, unit: 'g' },
|
|
192
|
+
{ name: 'Pancetta', amount: 200, unit: 'g' },
|
|
193
|
+
{ name: 'Eggs', amount: 4, unit: '', group: 'Sauce' },
|
|
194
|
+
{ name: 'Parmesan', amount: 100, unit: 'g', group: 'Sauce' },
|
|
195
|
+
{ name: 'Black pepper', amount: 2, unit: 'tsp', group: 'Sauce' }
|
|
196
|
+
];
|
|
197
|
+
recipe.steps = [
|
|
198
|
+
{ text: 'Boil pasta in salted water.', time: 10 },
|
|
199
|
+
{ text: 'Fry pancetta until crispy.', tip: 'Use medium heat to render fat slowly.' },
|
|
200
|
+
{ text: 'Mix eggs and parmesan in a bowl.' },
|
|
201
|
+
{ text: 'Combine all ingredients off heat.', tip: 'The residual heat cooks the egg without scrambling.' }
|
|
202
|
+
];
|
|
203
|
+
recipe.nutrition = { calories: 650, protein: 28, carbs: 72, fat: 24, fiber: 3 };
|
|
204
|
+
</script>
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Card Variant
|
|
208
|
+
|
|
209
|
+
Use `variant="card"` for a compact card display.
|
|
210
|
+
|
|
211
|
+
```html
|
|
212
|
+
<snice-recipe id="salad" variant="card"></snice-recipe>
|
|
213
|
+
|
|
214
|
+
<script type="module">
|
|
215
|
+
const recipe = document.getElementById('salad');
|
|
216
|
+
recipe.title = 'Caesar Salad';
|
|
217
|
+
recipe.image = '/images/caesar-salad.jpg';
|
|
218
|
+
recipe.prepTime = 15;
|
|
219
|
+
recipe.cookTime = 0;
|
|
220
|
+
recipe.servings = 2;
|
|
221
|
+
recipe.difficulty = 'easy';
|
|
222
|
+
recipe.cuisine = 'American';
|
|
223
|
+
recipe.ingredients = [
|
|
224
|
+
{ name: 'Romaine lettuce', amount: 1, unit: 'head' },
|
|
225
|
+
{ name: 'Croutons', amount: 100, unit: 'g' },
|
|
226
|
+
{ name: 'Parmesan', amount: 50, unit: 'g' },
|
|
227
|
+
{ name: 'Caesar dressing', amount: 60, unit: 'ml' }
|
|
228
|
+
];
|
|
229
|
+
recipe.steps = [
|
|
230
|
+
{ text: 'Wash and chop the romaine lettuce.' },
|
|
231
|
+
{ text: 'Toss with dressing, croutons, and shaved parmesan.' }
|
|
232
|
+
];
|
|
233
|
+
</script>
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Handling Serving Size Changes
|
|
237
|
+
|
|
238
|
+
```html
|
|
239
|
+
<snice-recipe id="recipe-interactive"></snice-recipe>
|
|
240
|
+
|
|
241
|
+
<script type="module">
|
|
242
|
+
const recipe = document.getElementById('recipe-interactive');
|
|
243
|
+
recipe.title = 'Chocolate Chip Cookies';
|
|
244
|
+
recipe.servings = 24;
|
|
245
|
+
recipe.difficulty = 'easy';
|
|
246
|
+
recipe.ingredients = [
|
|
247
|
+
{ name: 'All-purpose flour', amount: 280, unit: 'g' },
|
|
248
|
+
{ name: 'Butter', amount: 230, unit: 'g' },
|
|
249
|
+
{ name: 'Sugar', amount: 200, unit: 'g' },
|
|
250
|
+
{ name: 'Chocolate chips', amount: 340, unit: 'g' },
|
|
251
|
+
{ name: 'Eggs', amount: 2, unit: '' }
|
|
252
|
+
];
|
|
253
|
+
recipe.steps = [
|
|
254
|
+
{ text: 'Cream butter and sugar together.' },
|
|
255
|
+
{ text: 'Add eggs and mix until combined.' },
|
|
256
|
+
{ text: 'Fold in flour and chocolate chips.' },
|
|
257
|
+
{ text: 'Scoop onto baking sheet and bake.', time: 12 }
|
|
258
|
+
];
|
|
259
|
+
|
|
260
|
+
recipe.addEventListener('recipe-serving-change', (e) => {
|
|
261
|
+
console.log(`Servings changed: ${e.detail.previousServings} -> ${e.detail.servings}`);
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
recipe.addEventListener('recipe-ingredient-check', (e) => {
|
|
265
|
+
console.log(`${e.detail.ingredient.name}: ${e.detail.checked ? 'checked' : 'unchecked'}`);
|
|
266
|
+
});
|
|
267
|
+
</script>
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
### Recipe with Grouped Ingredients
|
|
271
|
+
|
|
272
|
+
```html
|
|
273
|
+
<snice-recipe id="pizza"></snice-recipe>
|
|
274
|
+
|
|
275
|
+
<script type="module">
|
|
276
|
+
const recipe = document.getElementById('pizza');
|
|
277
|
+
recipe.title = 'Margherita Pizza';
|
|
278
|
+
recipe.prepTime = 30;
|
|
279
|
+
recipe.cookTime = 15;
|
|
280
|
+
recipe.servings = 2;
|
|
281
|
+
recipe.difficulty = 'medium';
|
|
282
|
+
recipe.ingredients = [
|
|
283
|
+
{ name: 'Bread flour', amount: 300, unit: 'g', group: 'Dough' },
|
|
284
|
+
{ name: 'Yeast', amount: 7, unit: 'g', group: 'Dough' },
|
|
285
|
+
{ name: 'Water', amount: 200, unit: 'ml', group: 'Dough' },
|
|
286
|
+
{ name: 'Olive oil', amount: 2, unit: 'tbsp', group: 'Dough' },
|
|
287
|
+
{ name: 'San Marzano tomatoes', amount: 400, unit: 'g', group: 'Topping' },
|
|
288
|
+
{ name: 'Fresh mozzarella', amount: 200, unit: 'g', group: 'Topping' },
|
|
289
|
+
{ name: 'Fresh basil', amount: 10, unit: 'leaves', group: 'Topping' }
|
|
290
|
+
];
|
|
291
|
+
recipe.steps = [
|
|
292
|
+
{ text: 'Mix flour, yeast, water, and olive oil. Knead for 10 minutes.', time: 10 },
|
|
293
|
+
{ text: 'Let dough rise for 1 hour.', time: 60, tip: 'Cover with a damp cloth in a warm spot.' },
|
|
294
|
+
{ text: 'Crush tomatoes and spread on stretched dough.' },
|
|
295
|
+
{ text: 'Add torn mozzarella and bake at 250C.', time: 15 },
|
|
296
|
+
{ text: 'Add fresh basil after baking.' }
|
|
297
|
+
];
|
|
298
|
+
</script>
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
### Print a Recipe
|
|
302
|
+
|
|
303
|
+
```html
|
|
304
|
+
<snice-recipe id="printable-recipe"></snice-recipe>
|
|
305
|
+
<button onclick="document.getElementById('printable-recipe').print()">Print Recipe</button>
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
## Accessibility
|
|
309
|
+
|
|
310
|
+
- **Keyboard support**: Ingredient checkboxes and step toggles are keyboard accessible
|
|
311
|
+
- **Serving adjuster**: The serving size controls are operable via keyboard
|
|
312
|
+
- **Screen readers**: Step numbers, ingredient amounts, and completion states are announced
|
|
313
|
+
- **Timer buttons**: Inline timer buttons on steps with a `time` value are keyboard focusable
|
|
314
|
+
- **Print view**: The `print()` method produces a clean layout for printing
|
|
315
|
+
|
|
316
|
+
## Best Practices
|
|
317
|
+
|
|
318
|
+
1. **Include all metadata**: Prep time, cook time, difficulty, and cuisine help users plan
|
|
319
|
+
2. **Group related ingredients**: Use the `group` property to organize ingredients into logical sections
|
|
320
|
+
3. **Add tips to tricky steps**: Use `step.tip` for pro tips that help less experienced cooks
|
|
321
|
+
4. **Use timers on timed steps**: Steps with a `time` value show inline timer buttons for convenience
|
|
322
|
+
5. **Provide nutrition facts**: Include nutrition data when available for health-conscious users
|
|
323
|
+
6. **Use the card variant for lists**: When displaying multiple recipes in a grid, use `variant="card"`
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
[//]: # (AI: For a low-token version of this doc, use docs/ai/components/sankey.md instead)
|
|
2
|
+
|
|
3
|
+
# Sankey
|
|
4
|
+
`<snice-sankey>`
|
|
5
|
+
|
|
6
|
+
An SVG-based Sankey diagram for visualizing flow between categories.
|
|
7
|
+
|
|
8
|
+
## Basic Usage
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
import 'snice/components/sankey/snice-sankey';
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<snice-sankey id="diagram" show-labels show-values style="height: 300px;"></snice-sankey>
|
|
16
|
+
|
|
17
|
+
<script type="module">
|
|
18
|
+
document.getElementById('diagram').data = {
|
|
19
|
+
nodes: [
|
|
20
|
+
{ id: 'source', label: 'Source', color: '#2196f3' },
|
|
21
|
+
{ id: 'target', label: 'Target', color: '#4caf50' }
|
|
22
|
+
],
|
|
23
|
+
links: [
|
|
24
|
+
{ source: 'source', target: 'target', value: 100 }
|
|
25
|
+
]
|
|
26
|
+
};
|
|
27
|
+
</script>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Importing
|
|
31
|
+
|
|
32
|
+
**ESM (bundler)**
|
|
33
|
+
```typescript
|
|
34
|
+
import 'snice/components/sankey/snice-sankey';
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
**CDN**
|
|
38
|
+
```html
|
|
39
|
+
<script src="snice-runtime.min.js"></script>
|
|
40
|
+
<script src="snice-sankey.min.js"></script>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Examples
|
|
44
|
+
|
|
45
|
+
### Energy Flow
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<snice-sankey id="energy" show-labels show-values animation style="height: 400px;"></snice-sankey>
|
|
49
|
+
|
|
50
|
+
<script type="module">
|
|
51
|
+
document.getElementById('energy').data = {
|
|
52
|
+
nodes: [
|
|
53
|
+
{ id: 'solar', label: 'Solar', color: '#f59e0b' },
|
|
54
|
+
{ id: 'wind', label: 'Wind', color: '#3b82f6' },
|
|
55
|
+
{ id: 'electric', label: 'Electricity', color: '#8b5cf6' },
|
|
56
|
+
{ id: 'residential', label: 'Residential', color: '#10b981' },
|
|
57
|
+
{ id: 'commercial', label: 'Commercial', color: '#06b6d4' }
|
|
58
|
+
],
|
|
59
|
+
links: [
|
|
60
|
+
{ source: 'solar', target: 'electric', value: 120 },
|
|
61
|
+
{ source: 'wind', target: 'electric', value: 90 },
|
|
62
|
+
{ source: 'electric', target: 'residential', value: 130 },
|
|
63
|
+
{ source: 'electric', target: 'commercial', value: 80 }
|
|
64
|
+
]
|
|
65
|
+
};
|
|
66
|
+
</script>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Budget Breakdown
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<snice-sankey id="budget" show-labels show-values style="height: 300px;"></snice-sankey>
|
|
73
|
+
|
|
74
|
+
<script type="module">
|
|
75
|
+
document.getElementById('budget').data = {
|
|
76
|
+
nodes: [
|
|
77
|
+
{ id: 'salary', label: 'Salary', color: '#10b981' },
|
|
78
|
+
{ id: 'housing', label: 'Housing', color: '#ef4444' },
|
|
79
|
+
{ id: 'food', label: 'Food', color: '#f59e0b' },
|
|
80
|
+
{ id: 'savings', label: 'Savings', color: '#06b6d4' }
|
|
81
|
+
],
|
|
82
|
+
links: [
|
|
83
|
+
{ source: 'salary', target: 'housing', value: 1500 },
|
|
84
|
+
{ source: 'salary', target: 'food', value: 600 },
|
|
85
|
+
{ source: 'salary', target: 'savings', value: 900 }
|
|
86
|
+
]
|
|
87
|
+
};
|
|
88
|
+
</script>
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Alignment Options
|
|
92
|
+
|
|
93
|
+
Use the `alignment` attribute to control how leaf nodes are positioned.
|
|
94
|
+
|
|
95
|
+
```html
|
|
96
|
+
<snice-sankey alignment="left" show-labels></snice-sankey>
|
|
97
|
+
<snice-sankey alignment="right" show-labels></snice-sankey>
|
|
98
|
+
<snice-sankey alignment="center" show-labels></snice-sankey>
|
|
99
|
+
<snice-sankey alignment="justify" show-labels></snice-sankey>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Custom Node Width and Padding
|
|
103
|
+
|
|
104
|
+
Use `node-width` and `node-padding` to adjust the layout.
|
|
105
|
+
|
|
106
|
+
```html
|
|
107
|
+
<snice-sankey node-width="30" node-padding="20" show-labels style="height: 300px;"></snice-sankey>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Animation
|
|
111
|
+
|
|
112
|
+
Set the `animation` attribute for animated rendering.
|
|
113
|
+
|
|
114
|
+
```html
|
|
115
|
+
<snice-sankey animation show-labels show-values></snice-sankey>
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
### Event Handling
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
const sankey = document.querySelector('snice-sankey');
|
|
122
|
+
|
|
123
|
+
sankey.addEventListener('@snice/sankey-node-click', (e) => {
|
|
124
|
+
console.log('Node:', e.detail.node.label);
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
sankey.addEventListener('@snice/sankey-link-click', (e) => {
|
|
128
|
+
console.log('Link:', e.detail.link.source, '->', e.detail.link.target);
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
sankey.addEventListener('@snice/sankey-hover', (e) => {
|
|
132
|
+
if (e.detail) {
|
|
133
|
+
console.log('Hovering:', e.detail.type, e.detail.item);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
## Data Types
|
|
139
|
+
|
|
140
|
+
```typescript
|
|
141
|
+
interface SankeyData {
|
|
142
|
+
nodes: SankeyNode[];
|
|
143
|
+
links: SankeyLink[];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface SankeyNode {
|
|
147
|
+
id: string;
|
|
148
|
+
label?: string; // Defaults to id
|
|
149
|
+
color?: string; // Auto-assigned if omitted
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
interface SankeyLink {
|
|
153
|
+
source: string; // Source node id
|
|
154
|
+
target: string; // Target node id
|
|
155
|
+
value: number; // Flow value (determines width)
|
|
156
|
+
color?: string; // Defaults to source color
|
|
157
|
+
}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Properties
|
|
161
|
+
|
|
162
|
+
| Property | Type | Default | Description |
|
|
163
|
+
|----------|------|---------|-------------|
|
|
164
|
+
| `data` | `SankeyData` | `{ nodes: [], links: [] }` | Nodes and links data (set via JS) |
|
|
165
|
+
| `nodeWidth` (attr: `node-width`) | `number` | `20` | Width of node rectangles |
|
|
166
|
+
| `nodePadding` (attr: `node-padding`) | `number` | `10` | Vertical padding between nodes |
|
|
167
|
+
| `alignment` | `'left' \| 'right' \| 'center' \| 'justify'` | `'justify'` | Leaf node alignment |
|
|
168
|
+
| `showLabels` (attr: `show-labels`) | `boolean` | `true` | Show node labels |
|
|
169
|
+
| `showValues` (attr: `show-values`) | `boolean` | `true` | Show node values |
|
|
170
|
+
| `animation` | `boolean` | `false` | Animate on initial render |
|
|
171
|
+
|
|
172
|
+
## Events
|
|
173
|
+
|
|
174
|
+
| Event | Detail | Description |
|
|
175
|
+
|-------|--------|-------------|
|
|
176
|
+
| `@snice/sankey-node-click` | `{ node: SankeyNode }` | Node clicked |
|
|
177
|
+
| `@snice/sankey-link-click` | `{ link: SankeyLink }` | Link clicked |
|
|
178
|
+
| `@snice/sankey-hover` | `{ type: 'node' \| 'link', item } \| null` | Hover state changed |
|