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
package/docs/components/modal.md
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
[//]: # (AI: For a low-token version of this doc, use docs/ai/components/modal.md instead)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Modal
|
|
4
|
+
`<snice-modal>`
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
- [Basic Usage](#basic-usage)
|
|
7
|
-
- [Properties](#properties)
|
|
8
|
-
- [Methods](#methods)
|
|
9
|
-
- [Events](#events)
|
|
10
|
-
- [Slots](#slots)
|
|
11
|
-
- [Examples](#examples)
|
|
6
|
+
A dialog overlay with focus trapping, backdrop dismiss, and keyboard navigation.
|
|
12
7
|
|
|
13
8
|
## Basic Usage
|
|
14
9
|
|
|
10
|
+
```typescript
|
|
11
|
+
import 'snice/components/modal/snice-modal';
|
|
12
|
+
```
|
|
13
|
+
|
|
15
14
|
```html
|
|
16
15
|
<snice-modal label="Confirm Action">
|
|
17
|
-
<div slot="header">
|
|
18
|
-
<h2>Confirm</h2>
|
|
19
|
-
</div>
|
|
20
|
-
|
|
16
|
+
<div slot="header"><h2>Confirm</h2></div>
|
|
21
17
|
<p>Are you sure you want to proceed?</p>
|
|
22
|
-
|
|
23
18
|
<div slot="footer">
|
|
24
19
|
<button>Cancel</button>
|
|
25
20
|
<button>Confirm</button>
|
|
@@ -27,187 +22,50 @@ The `<snice-modal>` component provides a dialog overlay for displaying content o
|
|
|
27
22
|
</snice-modal>
|
|
28
23
|
```
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
import 'snice/components/modal/snice-modal';
|
|
32
|
-
|
|
33
|
-
const modal = document.querySelector('snice-modal');
|
|
34
|
-
|
|
35
|
-
// Open the modal
|
|
36
|
-
modal.show();
|
|
37
|
-
|
|
38
|
-
// Listen for events
|
|
39
|
-
modal.addEventListener('modal-close', () => {
|
|
40
|
-
console.log('Modal closed');
|
|
41
|
-
});
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
## Properties
|
|
45
|
-
|
|
46
|
-
| Property | Type | Default | Description |
|
|
47
|
-
|----------|------|---------|-------------|
|
|
48
|
-
| `open` | `boolean` | `false` | Whether the modal is visible |
|
|
49
|
-
| `size` | `'small' \| 'medium' \| 'large' \| 'fullscreen'` | `'medium'` | Size variant of the modal |
|
|
50
|
-
| `noBackdropDismiss` | `boolean` | `false` | Prevent closing when clicking backdrop |
|
|
51
|
-
| `noEscapeDismiss` | `boolean` | `false` | Prevent closing with Escape key |
|
|
52
|
-
| `noFocusTrap` | `boolean` | `false` | Disable focus trapping |
|
|
53
|
-
| `noCloseButton` | `boolean` | `false` | Hide the close button in header |
|
|
54
|
-
| `label` | `string` | `''` | Accessible label for the modal |
|
|
55
|
-
|
|
56
|
-
## Methods
|
|
57
|
-
|
|
58
|
-
### `show(): void`
|
|
59
|
-
Open the modal.
|
|
60
|
-
|
|
61
|
-
```typescript
|
|
62
|
-
modal.show();
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### `close(): void`
|
|
66
|
-
Close the modal.
|
|
67
|
-
|
|
68
|
-
```typescript
|
|
69
|
-
modal.close();
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
## Events
|
|
73
|
-
|
|
74
|
-
### `modal-open`
|
|
75
|
-
Fired when the modal opens.
|
|
76
|
-
|
|
77
|
-
**Event Detail:**
|
|
78
|
-
```typescript
|
|
79
|
-
{
|
|
80
|
-
modal: SniceModalElement; // Reference to the modal element
|
|
81
|
-
}
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
**Usage:**
|
|
85
|
-
```typescript
|
|
86
|
-
modal.addEventListener('modal-open', (e) => {
|
|
87
|
-
console.log('Modal opened:', e.detail.modal);
|
|
88
|
-
});
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### `modal-close`
|
|
92
|
-
Fired when the modal closes.
|
|
93
|
-
|
|
94
|
-
**Event Detail:**
|
|
95
|
-
```typescript
|
|
96
|
-
{
|
|
97
|
-
modal: SniceModalElement; // Reference to the modal element
|
|
98
|
-
}
|
|
99
|
-
```
|
|
25
|
+
## Importing
|
|
100
26
|
|
|
101
|
-
**
|
|
27
|
+
**ESM (bundler)**
|
|
102
28
|
```typescript
|
|
103
|
-
|
|
104
|
-
console.log('Modal closed:', e.detail.modal);
|
|
105
|
-
});
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
## Slots
|
|
109
|
-
|
|
110
|
-
### `header` (named slot)
|
|
111
|
-
Content for the modal header. Typically used for titles.
|
|
112
|
-
|
|
113
|
-
```html
|
|
114
|
-
<snice-modal>
|
|
115
|
-
<div slot="header">
|
|
116
|
-
<h2>Modal Title</h2>
|
|
117
|
-
</div>
|
|
118
|
-
</snice-modal>
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
### Default slot
|
|
122
|
-
Main content of the modal body.
|
|
123
|
-
|
|
124
|
-
```html
|
|
125
|
-
<snice-modal>
|
|
126
|
-
<p>This goes in the body</p>
|
|
127
|
-
</snice-modal>
|
|
29
|
+
import 'snice/components/modal/snice-modal';
|
|
128
30
|
```
|
|
129
31
|
|
|
130
|
-
|
|
131
|
-
Content for the modal footer. Typically used for action buttons.
|
|
132
|
-
|
|
32
|
+
**CDN**
|
|
133
33
|
```html
|
|
134
|
-
<snice-
|
|
135
|
-
|
|
136
|
-
<button>Cancel</button>
|
|
137
|
-
<button>OK</button>
|
|
138
|
-
</div>
|
|
139
|
-
</snice-modal>
|
|
34
|
+
<script src="snice-runtime.min.js"></script>
|
|
35
|
+
<script src="snice-modal.min.js"></script>
|
|
140
36
|
```
|
|
141
37
|
|
|
142
38
|
## Examples
|
|
143
39
|
|
|
144
|
-
###
|
|
145
|
-
|
|
146
|
-
```html
|
|
147
|
-
<button id="openModal">Open Modal</button>
|
|
148
|
-
|
|
149
|
-
<snice-modal id="myModal" label="Example Modal">
|
|
150
|
-
<div slot="header">
|
|
151
|
-
<h2>Hello</h2>
|
|
152
|
-
</div>
|
|
153
|
-
|
|
154
|
-
<p>This is a basic modal example.</p>
|
|
155
|
-
|
|
156
|
-
<div slot="footer">
|
|
157
|
-
<button id="closeModal">Close</button>
|
|
158
|
-
</div>
|
|
159
|
-
</snice-modal>
|
|
160
|
-
|
|
161
|
-
<script type="module">
|
|
162
|
-
import 'snice/components/modal/snice-modal';
|
|
163
|
-
|
|
164
|
-
const modal = document.querySelector('#myModal');
|
|
165
|
-
const openBtn = document.querySelector('#openModal');
|
|
166
|
-
const closeBtn = document.querySelector('#closeModal');
|
|
40
|
+
### Sizes
|
|
167
41
|
|
|
168
|
-
|
|
169
|
-
closeBtn.addEventListener('click', () => modal.close());
|
|
170
|
-
</script>
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
### Size Variants
|
|
42
|
+
Use the `size` attribute to set the modal width.
|
|
174
43
|
|
|
175
44
|
```html
|
|
176
|
-
<!-- Small -->
|
|
177
45
|
<snice-modal size="small" label="Small Modal">
|
|
178
46
|
<div slot="header"><h2>Small</h2></div>
|
|
179
|
-
<p>
|
|
180
|
-
</snice-modal>
|
|
181
|
-
|
|
182
|
-
<!-- Medium (default) -->
|
|
183
|
-
<snice-modal size="medium" label="Medium Modal">
|
|
184
|
-
<div slot="header"><h2>Medium</h2></div>
|
|
185
|
-
<p>This is a medium modal.</p>
|
|
47
|
+
<p>Compact dialog for simple confirmations.</p>
|
|
186
48
|
</snice-modal>
|
|
187
49
|
|
|
188
|
-
<!-- Large -->
|
|
189
50
|
<snice-modal size="large" label="Large Modal">
|
|
190
51
|
<div slot="header"><h2>Large</h2></div>
|
|
191
|
-
<p>
|
|
52
|
+
<p>Spacious dialog for detailed forms.</p>
|
|
192
53
|
</snice-modal>
|
|
193
54
|
|
|
194
|
-
<!-- Fullscreen -->
|
|
195
55
|
<snice-modal size="fullscreen" label="Fullscreen Modal">
|
|
196
56
|
<div slot="header"><h2>Fullscreen</h2></div>
|
|
197
|
-
<p>
|
|
57
|
+
<p>Takes up the entire viewport.</p>
|
|
198
58
|
</snice-modal>
|
|
199
59
|
```
|
|
200
60
|
|
|
201
61
|
### Without Close Button
|
|
202
62
|
|
|
203
|
-
|
|
204
|
-
<snice-modal no-close-button label="Forced Choice">
|
|
205
|
-
<div slot="header">
|
|
206
|
-
<h2>Choose an Option</h2>
|
|
207
|
-
</div>
|
|
208
|
-
|
|
209
|
-
<p>You must select one of the options below.</p>
|
|
63
|
+
Set `no-close-button` to hide the default close button.
|
|
210
64
|
|
|
65
|
+
```html
|
|
66
|
+
<snice-modal no-close-button label="Choose an Option">
|
|
67
|
+
<div slot="header"><h2>Required Choice</h2></div>
|
|
68
|
+
<p>Select one of the options below.</p>
|
|
211
69
|
<div slot="footer">
|
|
212
70
|
<button onclick="this.closest('snice-modal').close()">Option A</button>
|
|
213
71
|
<button onclick="this.closest('snice-modal').close()">Option B</button>
|
|
@@ -217,14 +75,12 @@ Content for the modal footer. Typically used for action buttons.
|
|
|
217
75
|
|
|
218
76
|
### Prevent Backdrop Dismiss
|
|
219
77
|
|
|
220
|
-
|
|
221
|
-
<snice-modal no-backdrop-dismiss label="Important">
|
|
222
|
-
<div slot="header">
|
|
223
|
-
<h2>Important Information</h2>
|
|
224
|
-
</div>
|
|
225
|
-
|
|
226
|
-
<p>Click the button to close, clicking outside won't work.</p>
|
|
78
|
+
Set `no-backdrop-dismiss` to prevent closing when clicking outside.
|
|
227
79
|
|
|
80
|
+
```html
|
|
81
|
+
<snice-modal no-backdrop-dismiss label="Important Notice">
|
|
82
|
+
<div slot="header"><h2>Important</h2></div>
|
|
83
|
+
<p>Clicking outside won't close this modal.</p>
|
|
228
84
|
<div slot="footer">
|
|
229
85
|
<button onclick="this.closest('snice-modal').close()">I Understand</button>
|
|
230
86
|
</div>
|
|
@@ -233,14 +89,12 @@ Content for the modal footer. Typically used for action buttons.
|
|
|
233
89
|
|
|
234
90
|
### Prevent Escape Dismiss
|
|
235
91
|
|
|
92
|
+
Set `no-escape-dismiss` to prevent closing with the Escape key.
|
|
93
|
+
|
|
236
94
|
```html
|
|
237
95
|
<snice-modal no-escape-dismiss label="Confirmation Required">
|
|
238
|
-
<div slot="header">
|
|
239
|
-
|
|
240
|
-
</div>
|
|
241
|
-
|
|
242
|
-
<p>Press Escape won't close this modal.</p>
|
|
243
|
-
|
|
96
|
+
<div slot="header"><h2>Confirm Action</h2></div>
|
|
97
|
+
<p>Pressing Escape won't close this modal.</p>
|
|
244
98
|
<div slot="footer">
|
|
245
99
|
<button onclick="this.closest('snice-modal').close()">Confirm</button>
|
|
246
100
|
</div>
|
|
@@ -253,36 +107,21 @@ Content for the modal footer. Typically used for action buttons.
|
|
|
253
107
|
<button id="deleteBtn">Delete Item</button>
|
|
254
108
|
|
|
255
109
|
<snice-modal id="confirmModal" size="small" label="Confirm Delete">
|
|
256
|
-
<div slot="header">
|
|
257
|
-
|
|
258
|
-
</div>
|
|
259
|
-
|
|
260
|
-
<p>Are you sure you want to delete this item? This action cannot be undone.</p>
|
|
261
|
-
|
|
110
|
+
<div slot="header"><h2>Confirm Delete</h2></div>
|
|
111
|
+
<p>Are you sure? This action cannot be undone.</p>
|
|
262
112
|
<div slot="footer">
|
|
263
113
|
<button id="cancelBtn">Cancel</button>
|
|
264
|
-
<button id="confirmBtn"
|
|
114
|
+
<button id="confirmBtn">Delete</button>
|
|
265
115
|
</div>
|
|
266
116
|
</snice-modal>
|
|
267
117
|
|
|
268
118
|
<script type="module">
|
|
269
119
|
import 'snice/components/modal/snice-modal';
|
|
270
120
|
|
|
271
|
-
const
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
deleteBtn.addEventListener('click', () => {
|
|
277
|
-
modal.show();
|
|
278
|
-
});
|
|
279
|
-
|
|
280
|
-
cancelBtn.addEventListener('click', () => {
|
|
281
|
-
modal.close();
|
|
282
|
-
});
|
|
283
|
-
|
|
284
|
-
confirmBtn.addEventListener('click', () => {
|
|
285
|
-
// Perform delete action
|
|
121
|
+
const modal = document.getElementById('confirmModal');
|
|
122
|
+
document.getElementById('deleteBtn').addEventListener('click', () => modal.show());
|
|
123
|
+
document.getElementById('cancelBtn').addEventListener('click', () => modal.close());
|
|
124
|
+
document.getElementById('confirmBtn').addEventListener('click', () => {
|
|
286
125
|
console.log('Item deleted');
|
|
287
126
|
modal.close();
|
|
288
127
|
});
|
|
@@ -292,28 +131,16 @@ Content for the modal footer. Typically used for action buttons.
|
|
|
292
131
|
### Form in Modal
|
|
293
132
|
|
|
294
133
|
```html
|
|
295
|
-
<button id="
|
|
134
|
+
<button id="editBtn">Edit Profile</button>
|
|
296
135
|
|
|
297
136
|
<snice-modal id="formModal" label="Edit Profile">
|
|
298
|
-
<div slot="header">
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
<form id="profileForm">
|
|
303
|
-
<div style="display: flex; flex-direction: column; gap: 1rem;">
|
|
304
|
-
<div>
|
|
305
|
-
<label for="name">Name:</label>
|
|
306
|
-
<input type="text" id="name" name="name" required>
|
|
307
|
-
</div>
|
|
308
|
-
<div>
|
|
309
|
-
<label for="email">Email:</label>
|
|
310
|
-
<input type="email" id="email" name="email" required>
|
|
311
|
-
</div>
|
|
312
|
-
</div>
|
|
137
|
+
<div slot="header"><h2>Edit Profile</h2></div>
|
|
138
|
+
<form id="profileForm" style="display:flex;flex-direction:column;gap:1rem;">
|
|
139
|
+
<label>Name: <input type="text" name="name" required></label>
|
|
140
|
+
<label>Email: <input type="email" name="email" required></label>
|
|
313
141
|
</form>
|
|
314
|
-
|
|
315
142
|
<div slot="footer">
|
|
316
|
-
<button
|
|
143
|
+
<button onclick="this.closest('snice-modal').close()">Cancel</button>
|
|
317
144
|
<button type="submit" form="profileForm">Save</button>
|
|
318
145
|
</div>
|
|
319
146
|
</snice-modal>
|
|
@@ -321,238 +148,58 @@ Content for the modal footer. Typically used for action buttons.
|
|
|
321
148
|
<script type="module">
|
|
322
149
|
import 'snice/components/modal/snice-modal';
|
|
323
150
|
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
showBtn.addEventListener('click', () => modal.show());
|
|
329
|
-
|
|
330
|
-
form.addEventListener('submit', (e) => {
|
|
151
|
+
const modal = document.getElementById('formModal');
|
|
152
|
+
document.getElementById('editBtn').addEventListener('click', () => modal.show());
|
|
153
|
+
document.getElementById('profileForm').addEventListener('submit', (e) => {
|
|
331
154
|
e.preventDefault();
|
|
332
|
-
|
|
333
|
-
console.log('Saving:', Object.fromEntries(formData));
|
|
155
|
+
console.log('Saved:', Object.fromEntries(new FormData(e.target)));
|
|
334
156
|
modal.close();
|
|
335
157
|
});
|
|
336
158
|
</script>
|
|
337
159
|
```
|
|
338
160
|
|
|
339
|
-
###
|
|
161
|
+
### Programmatic Control
|
|
340
162
|
|
|
341
163
|
```typescript
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
const modal = document.querySelector<SniceModalElement>('snice-modal');
|
|
345
|
-
|
|
346
|
-
modal.addEventListener('modal-open', () => {
|
|
347
|
-
console.log('Modal opened');
|
|
348
|
-
// Pause video, etc.
|
|
349
|
-
});
|
|
350
|
-
|
|
351
|
-
modal.addEventListener('modal-close', () => {
|
|
352
|
-
console.log('Modal closed');
|
|
353
|
-
// Resume video, etc.
|
|
354
|
-
});
|
|
355
|
-
|
|
356
|
-
// Open programmatically
|
|
357
|
-
modal.show();
|
|
358
|
-
|
|
359
|
-
// Close programmatically
|
|
360
|
-
modal.close();
|
|
361
|
-
|
|
362
|
-
// Toggle based on state
|
|
363
|
-
if (modal.open) {
|
|
364
|
-
modal.close();
|
|
365
|
-
} else {
|
|
366
|
-
modal.show();
|
|
367
|
-
}
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
### Dynamic Content
|
|
371
|
-
|
|
372
|
-
```html
|
|
373
|
-
<button id="showDetails">Show Details</button>
|
|
374
|
-
|
|
375
|
-
<snice-modal id="detailsModal" label="Item Details">
|
|
376
|
-
<div slot="header">
|
|
377
|
-
<h2 id="itemTitle">Loading...</h2>
|
|
378
|
-
</div>
|
|
379
|
-
|
|
380
|
-
<div id="itemContent">
|
|
381
|
-
<p>Loading...</p>
|
|
382
|
-
</div>
|
|
383
|
-
|
|
384
|
-
<div slot="footer">
|
|
385
|
-
<button onclick="this.closest('snice-modal').close()">Close</button>
|
|
386
|
-
</div>
|
|
387
|
-
</snice-modal>
|
|
388
|
-
|
|
389
|
-
<script type="module">
|
|
390
|
-
import 'snice/components/modal/snice-modal';
|
|
391
|
-
|
|
392
|
-
const showBtn = document.querySelector('#showDetails');
|
|
393
|
-
const modal = document.querySelector('#detailsModal');
|
|
394
|
-
const title = document.querySelector('#itemTitle');
|
|
395
|
-
const content = document.querySelector('#itemContent');
|
|
396
|
-
|
|
397
|
-
showBtn.addEventListener('click', async () => {
|
|
398
|
-
modal.show();
|
|
399
|
-
|
|
400
|
-
// Fetch data
|
|
401
|
-
const response = await fetch('/api/item/123');
|
|
402
|
-
const item = await response.json();
|
|
403
|
-
|
|
404
|
-
// Update modal content
|
|
405
|
-
title.textContent = item.name;
|
|
406
|
-
content.innerHTML = `
|
|
407
|
-
<p><strong>ID:</strong> ${item.id}</p>
|
|
408
|
-
<p><strong>Description:</strong> ${item.description}</p>
|
|
409
|
-
<p><strong>Price:</strong> $${item.price}</p>
|
|
410
|
-
`;
|
|
411
|
-
});
|
|
412
|
-
</script>
|
|
413
|
-
```
|
|
414
|
-
|
|
415
|
-
### Complete Example
|
|
164
|
+
const modal = document.querySelector('snice-modal');
|
|
416
165
|
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
<html>
|
|
420
|
-
<head>
|
|
421
|
-
<style>
|
|
422
|
-
.demo-container {
|
|
423
|
-
padding: 2rem;
|
|
424
|
-
display: flex;
|
|
425
|
-
gap: 1rem;
|
|
426
|
-
flex-wrap: wrap;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.demo-container button {
|
|
430
|
-
padding: 0.5rem 1rem;
|
|
431
|
-
cursor: pointer;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
snice-modal h2 {
|
|
435
|
-
margin: 0;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
snice-modal [slot="footer"] {
|
|
439
|
-
display: flex;
|
|
440
|
-
gap: 0.5rem;
|
|
441
|
-
justify-content: flex-end;
|
|
442
|
-
}
|
|
443
|
-
</style>
|
|
444
|
-
|
|
445
|
-
<script type="module">
|
|
446
|
-
import 'snice/components/modal/snice-modal';
|
|
447
|
-
|
|
448
|
-
document.addEventListener('DOMContentLoaded', () => {
|
|
449
|
-
// Setup all modals
|
|
450
|
-
document.querySelectorAll('[data-modal-trigger]').forEach(btn => {
|
|
451
|
-
const modalId = btn.getAttribute('data-modal-trigger');
|
|
452
|
-
const modal = document.querySelector(`#${modalId}`);
|
|
453
|
-
|
|
454
|
-
btn.addEventListener('click', () => modal?.show());
|
|
455
|
-
});
|
|
456
|
-
|
|
457
|
-
// Setup close buttons
|
|
458
|
-
document.querySelectorAll('[data-modal-close]').forEach(btn => {
|
|
459
|
-
btn.addEventListener('click', () => {
|
|
460
|
-
btn.closest('snice-modal')?.close();
|
|
461
|
-
});
|
|
462
|
-
});
|
|
463
|
-
});
|
|
464
|
-
</script>
|
|
465
|
-
</head>
|
|
466
|
-
<body>
|
|
467
|
-
<div class="demo-container">
|
|
468
|
-
<button data-modal-trigger="modal1">Small Modal</button>
|
|
469
|
-
<button data-modal-trigger="modal2">Medium Modal</button>
|
|
470
|
-
<button data-modal-trigger="modal3">Large Modal</button>
|
|
471
|
-
<button data-modal-trigger="modal4">Fullscreen Modal</button>
|
|
472
|
-
</div>
|
|
166
|
+
modal.show(); // Open
|
|
167
|
+
modal.close(); // Close
|
|
473
168
|
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
<p>This is a small modal with minimal content.</p>
|
|
477
|
-
<div slot="footer">
|
|
478
|
-
<button data-modal-close>Close</button>
|
|
479
|
-
</div>
|
|
480
|
-
</snice-modal>
|
|
481
|
-
|
|
482
|
-
<snice-modal id="modal2" size="medium" label="Medium Modal">
|
|
483
|
-
<div slot="header"><h2>Medium Modal</h2></div>
|
|
484
|
-
<p>This is a medium-sized modal with more content.</p>
|
|
485
|
-
<p>It can hold paragraphs, images, forms, and more.</p>
|
|
486
|
-
<div slot="footer">
|
|
487
|
-
<button data-modal-close>Cancel</button>
|
|
488
|
-
<button data-modal-close>OK</button>
|
|
489
|
-
</div>
|
|
490
|
-
</snice-modal>
|
|
491
|
-
|
|
492
|
-
<snice-modal id="modal3" size="large" label="Large Modal">
|
|
493
|
-
<div slot="header"><h2>Large Modal</h2></div>
|
|
494
|
-
<p>This is a large modal for displaying lots of content.</p>
|
|
495
|
-
<p>Perfect for detailed forms or extensive information.</p>
|
|
496
|
-
<div slot="footer">
|
|
497
|
-
<button data-modal-close>Close</button>
|
|
498
|
-
</div>
|
|
499
|
-
</snice-modal>
|
|
500
|
-
|
|
501
|
-
<snice-modal id="modal4" size="fullscreen" label="Fullscreen Modal">
|
|
502
|
-
<div slot="header"><h2>Fullscreen Modal</h2></div>
|
|
503
|
-
<p>This modal takes up the entire viewport.</p>
|
|
504
|
-
<p>Ideal for immersive experiences or complex workflows.</p>
|
|
505
|
-
<div slot="footer">
|
|
506
|
-
<button data-modal-close>Close</button>
|
|
507
|
-
</div>
|
|
508
|
-
</snice-modal>
|
|
509
|
-
</body>
|
|
510
|
-
</html>
|
|
169
|
+
modal.addEventListener('modal-open', () => console.log('Opened'));
|
|
170
|
+
modal.addEventListener('modal-close', () => console.log('Closed'));
|
|
511
171
|
```
|
|
512
172
|
|
|
513
|
-
##
|
|
514
|
-
|
|
515
|
-
The modal component includes comprehensive accessibility features:
|
|
516
|
-
|
|
517
|
-
- `role="dialog"` on the modal container
|
|
518
|
-
- `aria-modal="true"` to indicate modal behavior
|
|
519
|
-
- `aria-label` for screen reader context
|
|
520
|
-
- `aria-hidden` reflects visibility state
|
|
521
|
-
- Focus trap keeps keyboard navigation within modal
|
|
522
|
-
- Focus restoration returns focus to trigger element on close
|
|
523
|
-
- Escape key support for closing
|
|
524
|
-
- Close button is keyboard accessible
|
|
525
|
-
|
|
526
|
-
### Keyboard Support
|
|
527
|
-
|
|
528
|
-
- **Escape**: Close modal (unless `noEscapeDismiss` is true)
|
|
529
|
-
- **Tab**: Cycle through focusable elements within modal (trapped)
|
|
530
|
-
- **Shift + Tab**: Reverse cycle through focusable elements
|
|
531
|
-
|
|
532
|
-
## Behavior
|
|
533
|
-
|
|
534
|
-
### Focus Management
|
|
173
|
+
## Slots
|
|
535
174
|
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
175
|
+
| Name | Description |
|
|
176
|
+
|------|-------------|
|
|
177
|
+
| (default) | Modal body content |
|
|
178
|
+
| `header` | Header content (typically a title) |
|
|
179
|
+
| `footer` | Footer content (typically action buttons) |
|
|
541
180
|
|
|
542
|
-
|
|
543
|
-
1. Body scroll is restored
|
|
544
|
-
2. Focus returns to the previously focused element
|
|
181
|
+
## Properties
|
|
545
182
|
|
|
546
|
-
|
|
183
|
+
| Property | Type | Default | Description |
|
|
184
|
+
|----------|------|---------|-------------|
|
|
185
|
+
| `open` | `boolean` | `false` | Whether the modal is visible |
|
|
186
|
+
| `size` | `'small' \| 'medium' \| 'large' \| 'fullscreen'` | `'medium'` | Modal width variant |
|
|
187
|
+
| `noBackdropDismiss` (attr: `no-backdrop-dismiss`) | `boolean` | `false` | Prevent closing on backdrop click |
|
|
188
|
+
| `noEscapeDismiss` (attr: `no-escape-dismiss`) | `boolean` | `false` | Prevent closing with Escape key |
|
|
189
|
+
| `noFocusTrap` (attr: `no-focus-trap`) | `boolean` | `false` | Disable focus trapping |
|
|
190
|
+
| `noCloseButton` (attr: `no-close-button`) | `boolean` | `false` | Hide the close button |
|
|
191
|
+
| `label` | `string` | `''` | Accessible label for screen readers |
|
|
547
192
|
|
|
548
|
-
|
|
549
|
-
- Clicking the close button
|
|
550
|
-
- Clicking the backdrop
|
|
551
|
-
- Pressing Escape
|
|
193
|
+
## Events
|
|
552
194
|
|
|
553
|
-
|
|
195
|
+
| Event | Detail | Description |
|
|
196
|
+
|-------|--------|-------------|
|
|
197
|
+
| `modal-open` | `{ modal: SniceModalElement }` | Fired when the modal opens |
|
|
198
|
+
| `modal-close` | `{ modal: SniceModalElement }` | Fired when the modal closes |
|
|
554
199
|
|
|
555
|
-
##
|
|
200
|
+
## Methods
|
|
556
201
|
|
|
557
|
-
|
|
558
|
-
|
|
202
|
+
| Method | Arguments | Description |
|
|
203
|
+
|--------|-----------|-------------|
|
|
204
|
+
| `show()` | -- | Opens the modal |
|
|
205
|
+
| `close()` | -- | Closes the modal |
|