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
|
@@ -7,105 +7,58 @@ QR code generator with customizable styling and export.
|
|
|
7
7
|
```typescript
|
|
8
8
|
value: string = '';
|
|
9
9
|
size: number = 200;
|
|
10
|
-
errorCorrectionLevel: 'L'|'M'|'Q'|'H' = 'M';
|
|
11
|
-
renderMode: 'canvas'|'svg' = '
|
|
10
|
+
errorCorrectionLevel: 'L'|'M'|'Q'|'H' = 'M'; // attr: error-correction-level
|
|
11
|
+
renderMode: 'canvas'|'svg' = 'svg'; // attr: render-mode
|
|
12
|
+
dotStyle: 'square'|'rounded'|'dots' = 'square'; // attr: dot-style
|
|
12
13
|
margin: number = 4;
|
|
13
|
-
fgColor: string = '#000000';
|
|
14
|
-
bgColor: string = '#ffffff';
|
|
15
|
-
includeImage: boolean = false;
|
|
16
|
-
imageUrl: string = '';
|
|
17
|
-
imageSize: number = 40;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
textOutlineColor: string = '#ffffff';
|
|
14
|
+
fgColor: string = '#000000'; // attr: fg-color
|
|
15
|
+
bgColor: string = '#ffffff'; // attr: bg-color
|
|
16
|
+
includeImage: boolean = false; // attr: include-image
|
|
17
|
+
imageUrl: string = ''; // attr: image-url
|
|
18
|
+
imageSize: number = 40; // attr: image-size
|
|
19
|
+
centerText: string = ''; // attr: center-text
|
|
20
|
+
centerTextSize: number = 16; // attr: center-text-size
|
|
21
|
+
textFillColor: string = '#000000'; // attr: text-fill-color
|
|
22
|
+
textOutlineColor: string = '#ffffff'; // attr: text-outline-color
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Methods
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
download(filename?: string): void
|
|
31
|
-
```
|
|
27
|
+
- `toDataURL(type?, quality?)` - Export as data URL (async)
|
|
28
|
+
- `toBlob(type?, quality?)` - Export as Blob (async)
|
|
29
|
+
- `download(filename?)` - Download as image file
|
|
32
30
|
|
|
33
31
|
## Usage
|
|
34
32
|
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
qr.value = 'https://example.com';
|
|
38
|
-
qr.size = 200;
|
|
39
|
-
|
|
40
|
-
// Custom colors
|
|
41
|
-
qr.fgColor = '#2196f3';
|
|
42
|
-
qr.bgColor = '#e3f2fd';
|
|
33
|
+
```html
|
|
34
|
+
<snice-qr-code value="https://example.com" size="250"></snice-qr-code>
|
|
43
35
|
|
|
44
|
-
|
|
45
|
-
qr.
|
|
36
|
+
<!-- Custom colors -->
|
|
37
|
+
<snice-qr-code value="https://example.com" fg-color="#2196f3" bg-color="#e3f2fd"></snice-qr-code>
|
|
46
38
|
|
|
47
|
-
|
|
48
|
-
qr.
|
|
39
|
+
<!-- With center image -->
|
|
40
|
+
<snice-qr-code value="https://example.com" include-image image-url="/logo.png" error-correction-level="H"></snice-qr-code>
|
|
49
41
|
|
|
50
|
-
|
|
51
|
-
qr.
|
|
52
|
-
|
|
53
|
-
qr.imageSize = 50;
|
|
42
|
+
<!-- Dot styles -->
|
|
43
|
+
<snice-qr-code value="https://example.com" dot-style="rounded"></snice-qr-code>
|
|
44
|
+
```
|
|
54
45
|
|
|
55
|
-
|
|
56
|
-
const
|
|
46
|
+
```typescript
|
|
47
|
+
const qr = document.querySelector('snice-qr-code');
|
|
48
|
+
qr.value = 'https://example.com';
|
|
49
|
+
const url = await qr.toDataURL('image/png');
|
|
57
50
|
const blob = await qr.toBlob('image/png');
|
|
58
51
|
qr.download('qr-code.png');
|
|
59
52
|
```
|
|
60
53
|
|
|
61
|
-
|
|
62
|
-
<snice-qr-code
|
|
63
|
-
value="https://example.com"
|
|
64
|
-
size="250"
|
|
65
|
-
fg-color="#000000"
|
|
66
|
-
bg-color="#ffffff"
|
|
67
|
-
error-correction-level="M"
|
|
68
|
-
render-mode="svg">
|
|
69
|
-
</snice-qr-code>
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Common Formats
|
|
54
|
+
## Common Data Formats
|
|
73
55
|
|
|
74
|
-
```
|
|
75
|
-
// URL
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
//
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
//
|
|
82
|
-
qr.value = 'tel:+1234567890';
|
|
83
|
-
|
|
84
|
-
// SMS
|
|
85
|
-
qr.value = 'sms:+1234567890?body=Hello';
|
|
86
|
-
|
|
87
|
-
// WiFi
|
|
88
|
-
qr.value = 'WIFI:T:WPA;S:NetworkName;P:password;;';
|
|
89
|
-
|
|
90
|
-
// vCard
|
|
91
|
-
qr.value = `BEGIN:VCARD
|
|
92
|
-
VERSION:3.0
|
|
93
|
-
FN:John Doe
|
|
94
|
-
TEL:+1234567890
|
|
95
|
-
EMAIL:john@example.com
|
|
96
|
-
END:VCARD`;
|
|
97
|
-
|
|
98
|
-
// Location
|
|
99
|
-
qr.value = 'geo:37.7749,-122.4194';
|
|
56
|
+
```typescript
|
|
57
|
+
// URL: 'https://example.com'
|
|
58
|
+
// Email: 'mailto:name@example.com'
|
|
59
|
+
// Phone: 'tel:+1234567890'
|
|
60
|
+
// SMS: 'sms:+1234567890?body=Hello'
|
|
61
|
+
// WiFi: 'WIFI:T:WPA;S:NetworkName;P:password;;'
|
|
62
|
+
// Geo: 'geo:37.7749,-122.4194'
|
|
63
|
+
// vCard: 'BEGIN:VCARD\nVERSION:3.0\nFN:Name\nEND:VCARD'
|
|
100
64
|
```
|
|
101
|
-
|
|
102
|
-
## Features
|
|
103
|
-
|
|
104
|
-
- SVG/Canvas rendering
|
|
105
|
-
- Custom colors
|
|
106
|
-
- Error correction levels
|
|
107
|
-
- Image overlay
|
|
108
|
-
- Export (PNG/JPEG/WebP)
|
|
109
|
-
- Download
|
|
110
|
-
- Adjustable margin
|
|
111
|
-
- Multiple data formats
|
|
@@ -2,75 +2,65 @@
|
|
|
2
2
|
|
|
3
3
|
QR code scanner using device camera and ZXing WASM decoder.
|
|
4
4
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- `
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
autoStart: boolean = false; // attr: auto-start
|
|
9
|
+
camera: 'front'|'back' = 'back';
|
|
10
|
+
pickFirst: boolean = false; // attr: pick-first, scan until first hit then stop
|
|
11
|
+
manualSnap: boolean = false; // attr: manual-snap, photo snapshot mode
|
|
12
|
+
scanSpeed: number = 3; // attr: scan-speed, 1-10 (ignored when pick-first)
|
|
13
|
+
tapStart: boolean = false; // attr: tap-start, tap viewport to start/stop
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Methods
|
|
17
|
+
|
|
18
|
+
- `start()` - Start camera and scanning
|
|
19
|
+
- `stop()` - Stop scanning and release camera
|
|
20
|
+
- `snap()` - Take snapshot (manual-snap mode), returns QR data or null
|
|
19
21
|
- `scanImage(file: File)` - Scan QR code from image file
|
|
20
|
-
- `switchCamera()` - Toggle
|
|
22
|
+
- `switchCamera()` - Toggle front/back camera
|
|
23
|
+
|
|
24
|
+
## Events
|
|
21
25
|
|
|
22
|
-
|
|
23
|
-
- `qr-
|
|
24
|
-
- `
|
|
25
|
-
- `camera-
|
|
26
|
-
- `camera-error` - detail: `{error: any, reader: SniceQRReader}`
|
|
26
|
+
- `qr-scan` → `{ data: string, timestamp: number, reader }`
|
|
27
|
+
- `qr-error` → `{ error: any, reader }`
|
|
28
|
+
- `camera-ready` → `{ reader }`
|
|
29
|
+
- `camera-error` → `{ error: any, reader }`
|
|
27
30
|
|
|
28
31
|
## Usage
|
|
29
32
|
|
|
30
33
|
```html
|
|
34
|
+
<!-- Auto-start continuous scanning -->
|
|
31
35
|
<snice-qr-reader auto-start></snice-qr-reader>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
|
|
37
|
+
<!-- One-shot: scan until first hit -->
|
|
38
|
+
<snice-qr-reader pick-first></snice-qr-reader>
|
|
39
|
+
|
|
40
|
+
<!-- Manual snapshot mode -->
|
|
41
|
+
<snice-qr-reader manual-snap></snice-qr-reader>
|
|
42
|
+
|
|
43
|
+
<!-- Tap to start/stop -->
|
|
44
|
+
<snice-qr-reader tap-start></snice-qr-reader>
|
|
35
45
|
```
|
|
36
46
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- `zxing_reader.wasm` - WASM binary
|
|
45
|
-
- `ZXING-LICENSE` - Apache 2.0 + MIT
|
|
46
|
-
|
|
47
|
-
### QR Detection
|
|
48
|
-
Uses ZXing WASM decoder exclusively for universal browser support.
|
|
49
|
-
|
|
50
|
-
### Camera Loop
|
|
51
|
-
```ts
|
|
52
|
-
private scanFrame() {
|
|
53
|
-
ctx.drawImage(video, 0, 0, width, height);
|
|
54
|
-
const imageData = ctx.getImageData(0, 0, width, height);
|
|
55
|
-
worker.postMessage({ type: 'decode', imageData });
|
|
56
|
-
// Worker responds with result in background thread
|
|
57
|
-
requestAnimationFrame(() => this.scanFrame());
|
|
58
|
-
}
|
|
47
|
+
```typescript
|
|
48
|
+
const reader = document.querySelector('snice-qr-reader');
|
|
49
|
+
reader.addEventListener('qr-scan', (e) => console.log(e.detail.data));
|
|
50
|
+
reader.start();
|
|
51
|
+
|
|
52
|
+
// Manual snap
|
|
53
|
+
const result = await reader.snap();
|
|
59
54
|
```
|
|
60
55
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
## Browser Requirements
|
|
74
|
-
- getUserMedia API
|
|
75
|
-
- WebAssembly support
|
|
76
|
-
- HTTPS for mobile
|
|
56
|
+
## Features
|
|
57
|
+
|
|
58
|
+
- ZXing WASM decoder (Apache 2.0 + MIT)
|
|
59
|
+
- Web Worker for non-blocking detection
|
|
60
|
+
- Front/back camera switching
|
|
61
|
+
- Configurable scan speed (1-10)
|
|
62
|
+
- Pick-first mode (max speed, auto-stop)
|
|
63
|
+
- Manual snapshot mode
|
|
64
|
+
- Tap-to-start interaction
|
|
65
|
+
- Camera released on stop/dispose
|
|
66
|
+
- HTTPS required for mobile
|
|
@@ -1,81 +1,69 @@
|
|
|
1
1
|
# snice-radio
|
|
2
2
|
|
|
3
|
-
Form radio button input with
|
|
3
|
+
Form radio button input with automatic group management.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
```typescript
|
|
8
8
|
checked: boolean = false;
|
|
9
9
|
disabled: boolean = false;
|
|
10
|
+
loading: boolean = false;
|
|
10
11
|
required: boolean = false;
|
|
11
12
|
invalid: boolean = false;
|
|
12
13
|
size: 'small'|'medium'|'large' = 'medium';
|
|
13
|
-
name: string = '';
|
|
14
|
+
name: string = ''; // Group name for mutual exclusion
|
|
14
15
|
value: string = '';
|
|
15
16
|
label: string = '';
|
|
16
|
-
loading: boolean = false;
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
## Methods
|
|
20
20
|
|
|
21
21
|
- `focus()` - Focus radio
|
|
22
|
-
- `blur()` -
|
|
22
|
+
- `blur()` - Remove focus
|
|
23
23
|
- `click()` - Programmatic click
|
|
24
|
-
- `select()` -
|
|
24
|
+
- `select()` - Select and fire change event
|
|
25
25
|
|
|
26
26
|
## Events
|
|
27
27
|
|
|
28
|
-
- `radio-change`
|
|
28
|
+
- `radio-change` → `{ checked, value, radio }`
|
|
29
|
+
|
|
30
|
+
## CSS Parts
|
|
31
|
+
|
|
32
|
+
- `input` - Hidden radio input
|
|
33
|
+
- `radio` - Radio circle container
|
|
34
|
+
- `dot` - Inner dot indicator
|
|
35
|
+
- `spinner` - Loading spinner
|
|
36
|
+
- `label` - Label text
|
|
29
37
|
|
|
30
38
|
## Usage
|
|
31
39
|
|
|
32
40
|
```html
|
|
33
|
-
<!--
|
|
41
|
+
<!-- Radio group -->
|
|
34
42
|
<snice-radio name="color" value="red" label="Red"></snice-radio>
|
|
35
43
|
<snice-radio name="color" value="green" label="Green"></snice-radio>
|
|
36
|
-
<snice-radio name="color" value="blue" label="Blue"></snice-radio>
|
|
37
|
-
|
|
38
|
-
<!-- Pre-selected -->
|
|
39
|
-
<snice-radio name="size" value="s" label="Small"></snice-radio>
|
|
40
|
-
<snice-radio name="size" value="m" label="Medium" checked></snice-radio>
|
|
41
|
-
<snice-radio name="size" value="l" label="Large"></snice-radio>
|
|
42
|
-
|
|
43
|
-
<!-- Disabled -->
|
|
44
|
-
<snice-radio label="Unavailable" disabled></snice-radio>
|
|
45
|
-
<snice-radio label="Selected but disabled" checked disabled></snice-radio>
|
|
46
|
-
|
|
47
|
-
<!-- Required -->
|
|
48
|
-
<snice-radio name="accept" value="yes" label="Accept" required></snice-radio>
|
|
49
|
-
|
|
50
|
-
<!-- Invalid -->
|
|
51
|
-
<snice-radio label="Invalid option" invalid></snice-radio>
|
|
44
|
+
<snice-radio name="color" value="blue" label="Blue" checked></snice-radio>
|
|
52
45
|
|
|
53
46
|
<!-- Sizes -->
|
|
54
47
|
<snice-radio label="Small" size="small"></snice-radio>
|
|
55
|
-
<snice-radio label="Medium" size="medium"></snice-radio>
|
|
56
48
|
<snice-radio label="Large" size="large"></snice-radio>
|
|
57
49
|
|
|
58
|
-
<!--
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<script>
|
|
68
|
-
document.querySelector('#rb').addEventListener('radio-change', (e) => {
|
|
50
|
+
<!-- States -->
|
|
51
|
+
<snice-radio label="Disabled" disabled></snice-radio>
|
|
52
|
+
<snice-radio label="Loading" loading></snice-radio>
|
|
53
|
+
<snice-radio label="Invalid" invalid></snice-radio>
|
|
54
|
+
<snice-radio label="Required" required></snice-radio>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
radio.addEventListener('radio-change', (e) => {
|
|
69
59
|
console.log('Selected:', e.detail.value);
|
|
70
60
|
});
|
|
71
|
-
</script>
|
|
72
61
|
```
|
|
73
62
|
|
|
74
63
|
## Features
|
|
75
64
|
|
|
76
|
-
- Form-associated custom element
|
|
77
65
|
- Automatic radio group management by name
|
|
78
66
|
- 3 sizes
|
|
67
|
+
- Loading state with spinner
|
|
79
68
|
- Keyboard accessible (arrow keys navigate group)
|
|
80
|
-
-
|
|
81
|
-
- Invalid state styling
|
|
69
|
+
- Form-associated custom element
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# snice-rating
|
|
2
|
+
|
|
3
|
+
Star rating input with full/half precision, custom icons, and keyboard navigation.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
value: number // Current rating value (default: 0)
|
|
9
|
+
max: number // Maximum stars (default: 5)
|
|
10
|
+
icon: string // Star character (default: '\u2605')
|
|
11
|
+
size: 'small' | 'medium' | 'large' // Display size (default: 'medium')
|
|
12
|
+
readonly: boolean // Disable interaction (default: false)
|
|
13
|
+
precision: 'full' | 'half' // Click precision (default: 'full')
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Events
|
|
17
|
+
|
|
18
|
+
- `rating-change` -> `{ value: number }` -- Rating value changed
|
|
19
|
+
|
|
20
|
+
## Keyboard
|
|
21
|
+
|
|
22
|
+
- `ArrowRight` / `ArrowUp` -- Increase value
|
|
23
|
+
- `ArrowLeft` / `ArrowDown` -- Decrease value
|
|
24
|
+
- Step size: 1 (full) or 0.5 (half precision)
|
|
25
|
+
|
|
26
|
+
## CSS Custom Properties
|
|
27
|
+
|
|
28
|
+
```css
|
|
29
|
+
--rating-color /* Filled star color (default: --snice-color-warning) */
|
|
30
|
+
--rating-color-empty /* Empty star color (default: --snice-color-border) */
|
|
31
|
+
--rating-size /* Star size: small=1rem, medium=1.5rem, large=2rem */
|
|
32
|
+
--snice-font-family
|
|
33
|
+
--snice-transition-fast
|
|
34
|
+
--snice-focus-ring-width
|
|
35
|
+
--snice-focus-ring-color
|
|
36
|
+
--snice-focus-ring-offset
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Accessibility
|
|
40
|
+
|
|
41
|
+
Uses `role="radiogroup"` with individual `role="radio"` stars. Keyboard accessible when not readonly.
|
|
42
|
+
|
|
43
|
+
## Usage
|
|
44
|
+
|
|
45
|
+
```html
|
|
46
|
+
<snice-rating value="3.5" max="5" precision="half" size="large"></snice-rating>
|
|
47
|
+
<snice-rating value="4" readonly></snice-rating>
|
|
48
|
+
<snice-rating icon="❤" max="10"></snice-rating>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
```js
|
|
52
|
+
const rating = document.querySelector('snice-rating');
|
|
53
|
+
rating.addEventListener('rating-change', (e) => {
|
|
54
|
+
console.log('New rating:', e.detail.value);
|
|
55
|
+
});
|
|
56
|
+
```
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# snice-recipe
|
|
2
|
+
|
|
3
|
+
Interactive recipe card with ingredient scaling, step-by-step mode, per-step timers, and nutrition facts.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
title: string // Recipe title
|
|
9
|
+
description: string // Short description
|
|
10
|
+
image: string // Hero image URL
|
|
11
|
+
author: string // Author name
|
|
12
|
+
prepTime: number // Prep time in minutes (attr: prep-time)
|
|
13
|
+
cookTime: number // Cook time in minutes (attr: cook-time)
|
|
14
|
+
servings: number // Base serving count (default: 4)
|
|
15
|
+
difficulty: 'easy' | 'medium' | 'hard' // Difficulty level (default: 'medium')
|
|
16
|
+
cuisine: string // Cuisine type (shown as tag)
|
|
17
|
+
variant: 'card' | 'full' // Display variant (default: 'full')
|
|
18
|
+
ingredients: RecipeIngredient[] // Ingredient list
|
|
19
|
+
steps: RecipeStep[] // Instruction steps
|
|
20
|
+
nutrition: RecipeNutrition | null // Nutrition facts per serving
|
|
21
|
+
tags: string[] // Recipe tags
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Types
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
interface RecipeIngredient {
|
|
28
|
+
name: string;
|
|
29
|
+
amount: number;
|
|
30
|
+
unit: string;
|
|
31
|
+
group?: string; // Group header for ingredient sections
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface RecipeStep {
|
|
35
|
+
text: string;
|
|
36
|
+
image?: string; // Step photo URL
|
|
37
|
+
tip?: string; // Pro tip text
|
|
38
|
+
time?: number; // Timer duration in minutes
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface RecipeNutrition {
|
|
42
|
+
calories: number;
|
|
43
|
+
protein: number;
|
|
44
|
+
carbs: number;
|
|
45
|
+
fat: number;
|
|
46
|
+
fiber?: number;
|
|
47
|
+
sodium?: number; // in mg
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Methods
|
|
52
|
+
|
|
53
|
+
- `setServings(count: number)` -- Adjust serving count (scales ingredients)
|
|
54
|
+
- `print()` -- Print the recipe
|
|
55
|
+
- `reset()` -- Reset checked ingredients, completed steps, timers, and servings
|
|
56
|
+
|
|
57
|
+
## Events
|
|
58
|
+
|
|
59
|
+
- `recipe-serving-change` -> `{ servings: number; previousServings: number }` -- Serving count changed
|
|
60
|
+
- `recipe-step-complete` -> `{ stepIndex: number; completed: boolean }` -- Step toggled
|
|
61
|
+
- `recipe-ingredient-check` -> `{ ingredientIndex: number; checked: boolean; ingredient: RecipeIngredient }` -- Ingredient checked/unchecked
|
|
62
|
+
|
|
63
|
+
## CSS Parts
|
|
64
|
+
|
|
65
|
+
`container`, `hero`, `header`, `meta`, `content`, `ingredients`, `steps`, `nutrition`, `controls`
|
|
66
|
+
|
|
67
|
+
## Usage
|
|
68
|
+
|
|
69
|
+
```js
|
|
70
|
+
const recipe = document.querySelector('snice-recipe');
|
|
71
|
+
recipe.title = 'Pasta Carbonara';
|
|
72
|
+
recipe.prepTime = 10;
|
|
73
|
+
recipe.cookTime = 20;
|
|
74
|
+
recipe.servings = 4;
|
|
75
|
+
recipe.difficulty = 'medium';
|
|
76
|
+
recipe.cuisine = 'Italian';
|
|
77
|
+
recipe.ingredients = [
|
|
78
|
+
{ name: 'Spaghetti', amount: 400, unit: 'g' },
|
|
79
|
+
{ name: 'Pancetta', amount: 200, unit: 'g' },
|
|
80
|
+
{ name: 'Eggs', amount: 4, unit: '', group: 'Sauce' },
|
|
81
|
+
{ name: 'Parmesan', amount: 100, unit: 'g', group: 'Sauce' }
|
|
82
|
+
];
|
|
83
|
+
recipe.steps = [
|
|
84
|
+
{ text: 'Boil pasta in salted water.', time: 10 },
|
|
85
|
+
{ text: 'Fry pancetta until crispy.', tip: 'Use medium heat to render fat slowly.' },
|
|
86
|
+
{ text: 'Mix eggs and parmesan.' },
|
|
87
|
+
{ text: 'Combine all ingredients off heat.' }
|
|
88
|
+
];
|
|
89
|
+
recipe.nutrition = { calories: 650, protein: 28, carbs: 72, fat: 24 };
|
|
90
|
+
```
|
|
@@ -47,11 +47,3 @@ spacing: string = '8px';
|
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
49
|
```
|
|
50
|
-
|
|
51
|
-
## Features
|
|
52
|
-
|
|
53
|
-
- 4 shape variants (text/circular/rectangular/rounded)
|
|
54
|
-
- 3 animation styles (pulse/wave/none)
|
|
55
|
-
- Custom dimensions
|
|
56
|
-
- Multiple skeleton elements with spacing
|
|
57
|
-
- Mimics loading content shapes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# snice-slider
|
|
2
2
|
|
|
3
|
-
Range slider for numeric value selection.
|
|
3
|
+
Range slider for numeric value selection. Form-associated.
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
@@ -16,73 +16,33 @@ required: boolean = false;
|
|
|
16
16
|
invalid: boolean = false;
|
|
17
17
|
readonly: boolean = false;
|
|
18
18
|
label: string = '';
|
|
19
|
-
helperText: string = '';
|
|
20
|
-
errorText: string = '';
|
|
19
|
+
helperText: string = ''; // attr: helper-text
|
|
20
|
+
errorText: string = ''; // attr: error-text
|
|
21
21
|
name: string = '';
|
|
22
|
-
showValue: boolean = false;
|
|
23
|
-
showTicks: boolean = false;
|
|
22
|
+
showValue: boolean = false; // attr: show-value
|
|
23
|
+
showTicks: boolean = false; // attr: show-ticks
|
|
24
24
|
vertical: boolean = false;
|
|
25
25
|
loading: boolean = false;
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
+
## Events
|
|
29
|
+
|
|
30
|
+
- `slider-input` → `{ value, slider }` - During drag
|
|
31
|
+
- `slider-change` → `{ value, slider }` - After drag complete
|
|
32
|
+
|
|
28
33
|
## Methods
|
|
29
34
|
|
|
30
35
|
- `focus()` - Focus slider thumb
|
|
31
36
|
- `blur()` - Blur slider thumb
|
|
32
37
|
|
|
33
|
-
## Events
|
|
34
|
-
|
|
35
|
-
- `slider-input` - {value, slider} - During drag
|
|
36
|
-
- `slider-change` - {value, slider} - After drag complete
|
|
37
|
-
|
|
38
38
|
## Usage
|
|
39
39
|
|
|
40
40
|
```html
|
|
41
|
-
<!-- Basic -->
|
|
42
41
|
<snice-slider label="Volume" min="0" max="100"></snice-slider>
|
|
43
|
-
|
|
44
|
-
<!-- With value display -->
|
|
45
42
|
<snice-slider show-value value="50"></snice-slider>
|
|
46
|
-
|
|
47
|
-
<!-- With ticks -->
|
|
48
43
|
<snice-slider show-ticks min="0" max="10" step="1"></snice-slider>
|
|
49
|
-
|
|
50
|
-
<!-- Variants -->
|
|
51
44
|
<snice-slider variant="primary"></snice-slider>
|
|
52
|
-
<snice-slider variant="success"></snice-slider>
|
|
53
|
-
<snice-slider variant="warning"></snice-slider>
|
|
54
|
-
<snice-slider variant="danger"></snice-slider>
|
|
55
|
-
|
|
56
|
-
<!-- Sizes -->
|
|
57
45
|
<snice-slider size="small"></snice-slider>
|
|
58
|
-
<snice-slider size="medium"></snice-slider>
|
|
59
|
-
<snice-slider size="large"></snice-slider>
|
|
60
|
-
|
|
61
|
-
<!-- Vertical -->
|
|
62
46
|
<snice-slider vertical></snice-slider>
|
|
63
|
-
|
|
64
|
-
<!-- Step increments -->
|
|
65
47
|
<snice-slider min="0" max="100" step="5" value="50"></snice-slider>
|
|
66
|
-
|
|
67
|
-
<!-- Events -->
|
|
68
|
-
<snice-slider id="slider"></snice-slider>
|
|
69
|
-
<script>
|
|
70
|
-
const slider = document.querySelector('#slider');
|
|
71
|
-
slider.addEventListener('slider-change', (e) => {
|
|
72
|
-
console.log('Value:', e.detail.value);
|
|
73
|
-
});
|
|
74
|
-
</script>
|
|
75
48
|
```
|
|
76
|
-
|
|
77
|
-
## Features
|
|
78
|
-
|
|
79
|
-
- Form-associated custom element
|
|
80
|
-
- Mouse and touch support
|
|
81
|
-
- Keyboard navigation (arrows, home/end, page up/down)
|
|
82
|
-
- 5 color variants
|
|
83
|
-
- 3 sizes
|
|
84
|
-
- Vertical orientation
|
|
85
|
-
- Optional value display
|
|
86
|
-
- Optional tick marks
|
|
87
|
-
- Step increments
|
|
88
|
-
- Accessible
|