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
|
@@ -0,0 +1,491 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* snice v4.9.0
|
|
3
|
+
* Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
|
|
4
|
+
* (c) 2024
|
|
5
|
+
* Released under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
if(typeof globalThis.Snice==="undefined"){console.warn("[snice] snice-runtime.min.js must be loaded before snice-pricing-table.min.js");}
|
|
8
|
+
var SnicePricingTable = (function (exports, snice) {
|
|
9
|
+
'use strict';
|
|
10
|
+
|
|
11
|
+
/******************************************************************************
|
|
12
|
+
Copyright (c) Microsoft Corporation.
|
|
13
|
+
|
|
14
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
15
|
+
purpose with or without fee is hereby granted.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
18
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
19
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
20
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
21
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
22
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
24
|
+
***************************************************************************** */
|
|
25
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
29
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
30
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
31
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
32
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
33
|
+
var _, done = false;
|
|
34
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
35
|
+
var context = {};
|
|
36
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
37
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
38
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
39
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
40
|
+
if (kind === "accessor") {
|
|
41
|
+
if (result === void 0) continue;
|
|
42
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
43
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
44
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
45
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
46
|
+
}
|
|
47
|
+
else if (_ = accept(result)) {
|
|
48
|
+
if (kind === "field") initializers.unshift(_);
|
|
49
|
+
else descriptor[key] = _;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
53
|
+
done = true;
|
|
54
|
+
}
|
|
55
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
56
|
+
var useValue = arguments.length > 2;
|
|
57
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
58
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
59
|
+
}
|
|
60
|
+
return useValue ? value : void 0;
|
|
61
|
+
}
|
|
62
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
63
|
+
var e = new Error(message);
|
|
64
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
var cssContent = ":host{display:block;contain:style;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);color:var(--snice-color-text,rgb(23 23 23));--pt-bg:var(--snice-color-background, rgb(255 255 255));--pt-bg-element:var(--snice-color-background-element, rgb(252 251 249));--pt-border:var(--snice-color-border, rgb(226 226 226));--pt-text:var(--snice-color-text, rgb(23 23 23));--pt-text-secondary:var(--snice-color-text-secondary, rgb(82 82 82));--pt-text-tertiary:var(--snice-color-text-tertiary, rgb(115 115 115));--pt-primary:var(--snice-color-primary, rgb(37 99 235));--pt-success:var(--snice-color-success, rgb(22 163 74));--pt-shadow:var(--snice-shadow-md, 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1));--pt-shadow-lg:var(--snice-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1))}*{box-sizing:border-box}.pricing{display:flex;flex-direction:column;align-items:center;gap:var(--snice-spacing-lg,1.5rem)}.pricing__toggle{display:flex;align-items:center;gap:var(--snice-spacing-sm,.75rem);padding:var(--snice-spacing-2xs,.25rem);background:var(--pt-bg-element);border-radius:var(--snice-border-radius-lg,.5rem);border:1px solid var(--pt-border)}.pricing__toggle-btn{padding:var(--snice-spacing-xs,.5rem) var(--snice-spacing-md,1rem);border:none;border-radius:var(--snice-border-radius-md,.25rem);background:0 0;color:var(--pt-text-secondary);cursor:pointer;font-family:inherit;font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-medium,500);transition:background var(--snice-transition-fast, 150ms),color var(--snice-transition-fast, 150ms)}.pricing__toggle-btn:hover{color:var(--pt-text)}.pricing__toggle-btn--active{background:var(--pt-bg);color:var(--pt-text);box-shadow:0 1px 2px rgb(0 0 0 / .05)}.pricing__toggle-btn:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.pricing__cards{display:flex;gap:var(--snice-spacing-md,1rem);align-items:stretch;width:100%;justify-content:center;flex-wrap:wrap;padding-top:var(--snice-spacing-sm,.75rem);padding-bottom:var(--snice-spacing-2xs,.25rem)}.pricing__card{flex:1;min-width:14rem;max-width:22rem;border:1px solid var(--pt-border);border-radius:var(--snice-border-radius-lg,.5rem);background:var(--pt-bg);padding:var(--snice-spacing-lg,1.5rem);display:flex;flex-direction:column;gap:var(--snice-spacing-md,1rem);position:relative;transition:transform var(--snice-transition-medium, 250ms),box-shadow var(--snice-transition-medium, 250ms)}.pricing__card:hover{transform:translateY(-2px);box-shadow:var(--pt-shadow)}.pricing__card--highlighted{border-color:var(--pt-primary);border-width:2px;box-shadow:var(--pt-shadow-lg);transform:scale(1.03);z-index:1}.pricing__card--highlighted:hover{transform:scale(1.03) translateY(-2px)}.pricing__badge{position:absolute;top:-.75rem;left:50%;transform:translateX(-50%);background:var(--pt-primary);color:rgb(255 255 255);font-size:.75rem;font-weight:var(--snice-font-weight-semibold,600);padding:var(--snice-spacing-3xs,.125rem) var(--snice-spacing-sm,.75rem);border-radius:999px;white-space:nowrap}.pricing__plan-name{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--pt-text);margin:0}.pricing__plan-description{font-size:.875rem;color:var(--pt-text-secondary);margin:0}.pricing__price{display:flex;align-items:baseline;gap:var(--snice-spacing-3xs,.125rem)}.pricing__currency{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);color:var(--pt-text)}.pricing__amount{font-size:2.5rem;font-weight:var(--snice-font-weight-bold,700);line-height:1;color:var(--pt-text)}.pricing__period{font-size:.875rem;color:var(--pt-text-tertiary)}.pricing__features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:var(--snice-spacing-xs,.5rem);flex:1}.pricing__feature{display:flex;align-items:flex-start;gap:var(--snice-spacing-xs,.5rem);font-size:.875rem;color:var(--pt-text-secondary);line-height:var(--snice-line-height-normal, 1.5)}.pricing__feature-icon{flex-shrink:0;width:1.125rem;height:1.125rem;margin-top:.125rem}.pricing__feature-icon--included{color:var(--pt-success)}.pricing__feature-icon--excluded{color:var(--pt-text-tertiary);opacity:.5}.pricing__feature--excluded{opacity:.5;text-decoration:line-through}.pricing__feature-value{color:var(--pt-text);font-weight:var(--snice-font-weight-medium,500)}.pricing__cta{width:100%;padding:var(--snice-spacing-sm,.75rem) var(--snice-spacing-md,1rem);border-radius:var(--snice-border-radius-md,.25rem);font-family:inherit;font-size:var(--snice-font-size-md, 1rem);font-weight:var(--snice-font-weight-semibold,600);cursor:pointer;transition:opacity var(--snice-transition-fast, 150ms);text-align:center}.pricing__cta:hover{opacity:.9}.pricing__cta:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246 / .5));outline-offset:var(--snice-focus-ring-offset,2px)}.pricing__cta--primary{background:var(--pt-primary);color:rgb(255 255 255);border:none}.pricing__cta--secondary{background:var(--pt-bg-element);color:var(--pt-text);border:1px solid var(--pt-border)}.pricing__cta--outline{background:0 0;color:var(--pt-primary);border:1px solid var(--pt-primary)}.pricing__table-wrapper{width:100%;overflow-x:auto}.pricing__table{width:100%;border-collapse:collapse;border:1px solid var(--pt-border);border-radius:var(--snice-border-radius-lg,.5rem);overflow:hidden}.pricing__table td,.pricing__table th{padding:var(--snice-spacing-sm,.75rem) var(--snice-spacing-md,1rem);text-align:center;border-bottom:1px solid var(--pt-border);font-size:.875rem}.pricing__table th{background:var(--pt-bg-element);font-weight:var(--snice-font-weight-semibold,600);color:var(--pt-text)}.pricing__table td:first-child{text-align:left;font-weight:var(--snice-font-weight-medium,500);color:var(--pt-text-secondary)}.pricing__table-highlight{background:rgb(37 99 235 / .03)}.pricing__table tr:last-child td{border-bottom:none}@media (max-width:768px){.pricing__cards{flex-direction:column;align-items:center}.pricing__card{max-width:100%;width:100%}.pricing__card--highlighted{transform:none}.pricing__card--highlighted:hover{transform:translateY(-2px)}}";
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* <snice-plan> — declarative child element for pricing plans.
|
|
71
|
+
*
|
|
72
|
+
* Usage:
|
|
73
|
+
* <snice-pricing-table>
|
|
74
|
+
* <snice-plan name="Free" price="0" cta="Get Started">
|
|
75
|
+
* <snice-feature>5 projects</snice-feature>
|
|
76
|
+
* <snice-feature excluded>API access</snice-feature>
|
|
77
|
+
* <snice-feature value="1GB">Storage</snice-feature>
|
|
78
|
+
* </snice-plan>
|
|
79
|
+
* <snice-plan name="Pro" price="29" annual-price="24" highlighted badge="Popular" cta="Start Trial">
|
|
80
|
+
* <snice-feature>Unlimited projects</snice-feature>
|
|
81
|
+
* <snice-feature>API access</snice-feature>
|
|
82
|
+
* </snice-plan>
|
|
83
|
+
* </snice-pricing-table>
|
|
84
|
+
*/
|
|
85
|
+
let SnicePlan = (() => {
|
|
86
|
+
let _classDecorators = [snice.element('snice-plan')];
|
|
87
|
+
let _classDescriptor;
|
|
88
|
+
let _classExtraInitializers = [];
|
|
89
|
+
let _classThis;
|
|
90
|
+
let _classSuper = HTMLElement;
|
|
91
|
+
let _instanceExtraInitializers = [];
|
|
92
|
+
let _renderContent_decorators;
|
|
93
|
+
let _componentStyles_decorators;
|
|
94
|
+
(class extends _classSuper {
|
|
95
|
+
static { _classThis = this; }
|
|
96
|
+
static {
|
|
97
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
98
|
+
_renderContent_decorators = [snice.render()];
|
|
99
|
+
_componentStyles_decorators = [snice.styles()];
|
|
100
|
+
__esDecorate(this, null, _renderContent_decorators, { kind: "method", name: "renderContent", static: false, private: false, access: { has: obj => "renderContent" in obj, get: obj => obj.renderContent }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
101
|
+
__esDecorate(this, null, _componentStyles_decorators, { kind: "method", name: "componentStyles", static: false, private: false, access: { has: obj => "componentStyles" in obj, get: obj => obj.componentStyles }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
102
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
103
|
+
_classThis = _classDescriptor.value;
|
|
104
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
105
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
106
|
+
}
|
|
107
|
+
renderContent() {
|
|
108
|
+
return snice.html `<slot></slot>`;
|
|
109
|
+
}
|
|
110
|
+
componentStyles() {
|
|
111
|
+
return snice.css `:host { display: none; }`;
|
|
112
|
+
}
|
|
113
|
+
constructor() {
|
|
114
|
+
super(...arguments);
|
|
115
|
+
__runInitializers(this, _instanceExtraInitializers);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
return _classThis;
|
|
119
|
+
})();
|
|
120
|
+
let SniceFeature = (() => {
|
|
121
|
+
let _classDecorators = [snice.element('snice-feature')];
|
|
122
|
+
let _classDescriptor;
|
|
123
|
+
let _classExtraInitializers = [];
|
|
124
|
+
let _classThis;
|
|
125
|
+
let _classSuper = HTMLElement;
|
|
126
|
+
let _instanceExtraInitializers = [];
|
|
127
|
+
let _renderContent_decorators;
|
|
128
|
+
let _componentStyles_decorators;
|
|
129
|
+
(class extends _classSuper {
|
|
130
|
+
static { _classThis = this; }
|
|
131
|
+
static {
|
|
132
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
133
|
+
_renderContent_decorators = [snice.render()];
|
|
134
|
+
_componentStyles_decorators = [snice.styles()];
|
|
135
|
+
__esDecorate(this, null, _renderContent_decorators, { kind: "method", name: "renderContent", static: false, private: false, access: { has: obj => "renderContent" in obj, get: obj => obj.renderContent }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
136
|
+
__esDecorate(this, null, _componentStyles_decorators, { kind: "method", name: "componentStyles", static: false, private: false, access: { has: obj => "componentStyles" in obj, get: obj => obj.componentStyles }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
137
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
138
|
+
_classThis = _classDescriptor.value;
|
|
139
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
140
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
141
|
+
}
|
|
142
|
+
renderContent() {
|
|
143
|
+
return snice.html `<slot></slot>`;
|
|
144
|
+
}
|
|
145
|
+
componentStyles() {
|
|
146
|
+
return snice.css `:host { display: none; }`;
|
|
147
|
+
}
|
|
148
|
+
constructor() {
|
|
149
|
+
super(...arguments);
|
|
150
|
+
__runInitializers(this, _instanceExtraInitializers);
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
return _classThis;
|
|
154
|
+
})();
|
|
155
|
+
let SnicePricingTable = (() => {
|
|
156
|
+
let _classDecorators = [snice.element('snice-pricing-table')];
|
|
157
|
+
let _classDescriptor;
|
|
158
|
+
let _classExtraInitializers = [];
|
|
159
|
+
let _classThis;
|
|
160
|
+
let _classSuper = HTMLElement;
|
|
161
|
+
let _instanceExtraInitializers = [];
|
|
162
|
+
let _plans_decorators;
|
|
163
|
+
let _plans_initializers = [];
|
|
164
|
+
let _plans_extraInitializers = [];
|
|
165
|
+
let _variant_decorators;
|
|
166
|
+
let _variant_initializers = [];
|
|
167
|
+
let _variant_extraInitializers = [];
|
|
168
|
+
let _annual_decorators;
|
|
169
|
+
let _annual_initializers = [];
|
|
170
|
+
let _annual_extraInitializers = [];
|
|
171
|
+
let _init_decorators;
|
|
172
|
+
let _handleSlotChange_decorators;
|
|
173
|
+
let _handlePlansChange_decorators;
|
|
174
|
+
let _handleAnnualChange_decorators;
|
|
175
|
+
let _emitPlanSelect_decorators;
|
|
176
|
+
let _renderContent_decorators;
|
|
177
|
+
let _componentStyles_decorators;
|
|
178
|
+
(class extends _classSuper {
|
|
179
|
+
static { _classThis = this; }
|
|
180
|
+
static {
|
|
181
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
182
|
+
_plans_decorators = [snice.property({ type: Array })];
|
|
183
|
+
_variant_decorators = [snice.property()];
|
|
184
|
+
_annual_decorators = [snice.property({ type: Boolean })];
|
|
185
|
+
_init_decorators = [snice.ready()];
|
|
186
|
+
_handleSlotChange_decorators = [snice.on('slotchange', { target: 'slot' })];
|
|
187
|
+
_handlePlansChange_decorators = [snice.watch('plans')];
|
|
188
|
+
_handleAnnualChange_decorators = [snice.watch('annual')];
|
|
189
|
+
_emitPlanSelect_decorators = [snice.dispatch('plan-select', { bubbles: true, composed: true })];
|
|
190
|
+
_renderContent_decorators = [snice.render()];
|
|
191
|
+
_componentStyles_decorators = [snice.styles()];
|
|
192
|
+
__esDecorate(this, null, _init_decorators, { kind: "method", name: "init", static: false, private: false, access: { has: obj => "init" in obj, get: obj => obj.init }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
193
|
+
__esDecorate(this, null, _handleSlotChange_decorators, { kind: "method", name: "handleSlotChange", static: false, private: false, access: { has: obj => "handleSlotChange" in obj, get: obj => obj.handleSlotChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
194
|
+
__esDecorate(this, null, _handlePlansChange_decorators, { kind: "method", name: "handlePlansChange", static: false, private: false, access: { has: obj => "handlePlansChange" in obj, get: obj => obj.handlePlansChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
195
|
+
__esDecorate(this, null, _handleAnnualChange_decorators, { kind: "method", name: "handleAnnualChange", static: false, private: false, access: { has: obj => "handleAnnualChange" in obj, get: obj => obj.handleAnnualChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
196
|
+
__esDecorate(this, null, _emitPlanSelect_decorators, { kind: "method", name: "emitPlanSelect", static: false, private: false, access: { has: obj => "emitPlanSelect" in obj, get: obj => obj.emitPlanSelect }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
197
|
+
__esDecorate(this, null, _renderContent_decorators, { kind: "method", name: "renderContent", static: false, private: false, access: { has: obj => "renderContent" in obj, get: obj => obj.renderContent }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
198
|
+
__esDecorate(this, null, _componentStyles_decorators, { kind: "method", name: "componentStyles", static: false, private: false, access: { has: obj => "componentStyles" in obj, get: obj => obj.componentStyles }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
199
|
+
__esDecorate(null, null, _plans_decorators, { kind: "field", name: "plans", static: false, private: false, access: { has: obj => "plans" in obj, get: obj => obj.plans, set: (obj, value) => { obj.plans = value; } }, metadata: _metadata }, _plans_initializers, _plans_extraInitializers);
|
|
200
|
+
__esDecorate(null, null, _variant_decorators, { kind: "field", name: "variant", static: false, private: false, access: { has: obj => "variant" in obj, get: obj => obj.variant, set: (obj, value) => { obj.variant = value; } }, metadata: _metadata }, _variant_initializers, _variant_extraInitializers);
|
|
201
|
+
__esDecorate(null, null, _annual_decorators, { kind: "field", name: "annual", static: false, private: false, access: { has: obj => "annual" in obj, get: obj => obj.annual, set: (obj, value) => { obj.annual = value; } }, metadata: _metadata }, _annual_initializers, _annual_extraInitializers);
|
|
202
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
203
|
+
_classThis = _classDescriptor.value;
|
|
204
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
205
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
206
|
+
}
|
|
207
|
+
init() {
|
|
208
|
+
this.collectPlansFromChildren();
|
|
209
|
+
}
|
|
210
|
+
handleSlotChange() {
|
|
211
|
+
this.collectPlansFromChildren();
|
|
212
|
+
}
|
|
213
|
+
/** Reads <snice-plan> and <snice-feature> children into the plans array (only if no plans set via property) */
|
|
214
|
+
collectPlansFromChildren() {
|
|
215
|
+
// Don't override programmatically-set plans
|
|
216
|
+
if (this.plans.length > 0)
|
|
217
|
+
return;
|
|
218
|
+
const planEls = Array.from(this.querySelectorAll('snice-plan'));
|
|
219
|
+
if (planEls.length === 0)
|
|
220
|
+
return;
|
|
221
|
+
const collected = planEls.map(planEl => {
|
|
222
|
+
const features = Array.from(planEl.querySelectorAll('snice-feature')).map(featureEl => {
|
|
223
|
+
const excluded = featureEl.hasAttribute('excluded');
|
|
224
|
+
const value = featureEl.getAttribute('value');
|
|
225
|
+
const name = featureEl.textContent?.trim() || '';
|
|
226
|
+
return {
|
|
227
|
+
name,
|
|
228
|
+
included: value ? value : !excluded
|
|
229
|
+
};
|
|
230
|
+
});
|
|
231
|
+
const price = parseFloat(planEl.getAttribute('price') || '0');
|
|
232
|
+
const annualPriceAttr = planEl.getAttribute('annual-price');
|
|
233
|
+
const plan = {
|
|
234
|
+
name: planEl.getAttribute('name') || '',
|
|
235
|
+
price,
|
|
236
|
+
features,
|
|
237
|
+
cta: planEl.getAttribute('cta') || 'Select',
|
|
238
|
+
};
|
|
239
|
+
if (annualPriceAttr)
|
|
240
|
+
plan.annualPrice = parseFloat(annualPriceAttr);
|
|
241
|
+
if (planEl.getAttribute('period'))
|
|
242
|
+
plan.period = planEl.getAttribute('period');
|
|
243
|
+
if (planEl.getAttribute('currency'))
|
|
244
|
+
plan.currency = planEl.getAttribute('currency');
|
|
245
|
+
if (planEl.getAttribute('description'))
|
|
246
|
+
plan.description = planEl.getAttribute('description');
|
|
247
|
+
if (planEl.hasAttribute('highlighted'))
|
|
248
|
+
plan.highlighted = true;
|
|
249
|
+
if (planEl.getAttribute('badge'))
|
|
250
|
+
plan.badge = planEl.getAttribute('badge');
|
|
251
|
+
if (planEl.getAttribute('cta-variant'))
|
|
252
|
+
plan.ctaVariant = planEl.getAttribute('cta-variant');
|
|
253
|
+
return plan;
|
|
254
|
+
});
|
|
255
|
+
this.plans = collected;
|
|
256
|
+
}
|
|
257
|
+
handlePlansChange() {
|
|
258
|
+
// Re-render on plans change
|
|
259
|
+
}
|
|
260
|
+
handleAnnualChange() {
|
|
261
|
+
// Re-render on billing toggle
|
|
262
|
+
}
|
|
263
|
+
getPrice(plan) {
|
|
264
|
+
if (this.annual && plan.annualPrice !== undefined) {
|
|
265
|
+
return plan.annualPrice;
|
|
266
|
+
}
|
|
267
|
+
return plan.price;
|
|
268
|
+
}
|
|
269
|
+
formatPrice(price) {
|
|
270
|
+
return price.toLocaleString(undefined, { minimumFractionDigits: 0, maximumFractionDigits: 2 });
|
|
271
|
+
}
|
|
272
|
+
handleSelect(plan, index) {
|
|
273
|
+
this.emitPlanSelect({
|
|
274
|
+
plan,
|
|
275
|
+
index,
|
|
276
|
+
billing: this.annual ? 'annual' : 'monthly'
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
emitPlanSelect(detail) {
|
|
280
|
+
return detail;
|
|
281
|
+
}
|
|
282
|
+
hasAnnualPricing() {
|
|
283
|
+
return this.plans.some(p => p.annualPrice !== undefined);
|
|
284
|
+
}
|
|
285
|
+
renderCheckIcon() {
|
|
286
|
+
return snice.html /*html*/ `
|
|
287
|
+
<svg class="pricing__feature-icon pricing__feature-icon--included" viewBox="0 0 20 20" fill="currentColor">
|
|
288
|
+
<path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd"/>
|
|
289
|
+
</svg>
|
|
290
|
+
`;
|
|
291
|
+
}
|
|
292
|
+
renderXIcon() {
|
|
293
|
+
return snice.html /*html*/ `
|
|
294
|
+
<svg class="pricing__feature-icon pricing__feature-icon--excluded" viewBox="0 0 20 20" fill="currentColor">
|
|
295
|
+
<path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"/>
|
|
296
|
+
</svg>
|
|
297
|
+
`;
|
|
298
|
+
}
|
|
299
|
+
renderFeature(feature) {
|
|
300
|
+
const isBoolean = typeof feature.included === 'boolean';
|
|
301
|
+
const included = isBoolean ? feature.included : true;
|
|
302
|
+
return snice.html /*html*/ `
|
|
303
|
+
<li class="pricing__feature ${!included ? 'pricing__feature--excluded' : ''}">
|
|
304
|
+
<if ${isBoolean && included}>
|
|
305
|
+
${this.renderCheckIcon()}
|
|
306
|
+
</if>
|
|
307
|
+
<if ${isBoolean && !included}>
|
|
308
|
+
${this.renderXIcon()}
|
|
309
|
+
</if>
|
|
310
|
+
<span>
|
|
311
|
+
${feature.name}
|
|
312
|
+
<if ${!isBoolean}>
|
|
313
|
+
<span class="pricing__feature-value"> - ${feature.included}</span>
|
|
314
|
+
</if>
|
|
315
|
+
</span>
|
|
316
|
+
</li>
|
|
317
|
+
`;
|
|
318
|
+
}
|
|
319
|
+
renderCard(plan, index) {
|
|
320
|
+
const price = this.getPrice(plan);
|
|
321
|
+
const currency = plan.currency || '$';
|
|
322
|
+
const period = plan.period || '/mo';
|
|
323
|
+
const ctaClass = `pricing__cta pricing__cta--${plan.ctaVariant || (plan.highlighted ? 'primary' : 'secondary')}`;
|
|
324
|
+
return snice.html /*html*/ `
|
|
325
|
+
<div class="pricing__card ${plan.highlighted ? 'pricing__card--highlighted' : ''}" part="card">
|
|
326
|
+
<if ${plan.badge}>
|
|
327
|
+
<span class="pricing__badge">${plan.badge}</span>
|
|
328
|
+
</if>
|
|
329
|
+
<div>
|
|
330
|
+
<h3 class="pricing__plan-name">${plan.name}</h3>
|
|
331
|
+
<if ${plan.description}>
|
|
332
|
+
<p class="pricing__plan-description">${plan.description}</p>
|
|
333
|
+
</if>
|
|
334
|
+
</div>
|
|
335
|
+
<div class="pricing__price">
|
|
336
|
+
<span class="pricing__currency">${currency}</span>
|
|
337
|
+
<span class="pricing__amount">${this.formatPrice(price)}</span>
|
|
338
|
+
<span class="pricing__period">${period}</span>
|
|
339
|
+
</div>
|
|
340
|
+
<ul class="pricing__features">
|
|
341
|
+
${plan.features.map(f => this.renderFeature(f))}
|
|
342
|
+
</ul>
|
|
343
|
+
<button class="${ctaClass}"
|
|
344
|
+
@click=${() => this.handleSelect(plan, index)}
|
|
345
|
+
part="cta">
|
|
346
|
+
${plan.cta}
|
|
347
|
+
</button>
|
|
348
|
+
</div>
|
|
349
|
+
`;
|
|
350
|
+
}
|
|
351
|
+
renderCardsView() {
|
|
352
|
+
return snice.html /*html*/ `
|
|
353
|
+
<div class="pricing__cards" part="cards">
|
|
354
|
+
${this.plans.map((plan, i) => this.renderCard(plan, i))}
|
|
355
|
+
</div>
|
|
356
|
+
`;
|
|
357
|
+
}
|
|
358
|
+
getAllFeatureNames() {
|
|
359
|
+
const names = new Set();
|
|
360
|
+
for (const plan of this.plans) {
|
|
361
|
+
for (const f of plan.features) {
|
|
362
|
+
names.add(f.name);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
return Array.from(names);
|
|
366
|
+
}
|
|
367
|
+
getFeatureValue(plan, featureName) {
|
|
368
|
+
return plan.features.find(f => f.name === featureName);
|
|
369
|
+
}
|
|
370
|
+
renderTableView() {
|
|
371
|
+
const featureNames = this.getAllFeatureNames();
|
|
372
|
+
return snice.html /*html*/ `
|
|
373
|
+
<div class="pricing__table-wrapper" part="table-wrapper">
|
|
374
|
+
<table class="pricing__table" part="table">
|
|
375
|
+
<thead>
|
|
376
|
+
<tr>
|
|
377
|
+
<th>Feature</th>
|
|
378
|
+
${this.plans.map(plan => snice.html /*html*/ `
|
|
379
|
+
<th class="${plan.highlighted ? 'pricing__table-highlight' : ''}">${plan.name}</th>
|
|
380
|
+
`)}
|
|
381
|
+
</tr>
|
|
382
|
+
</thead>
|
|
383
|
+
<tbody>
|
|
384
|
+
<tr>
|
|
385
|
+
<td>Price</td>
|
|
386
|
+
${this.plans.map(plan => {
|
|
387
|
+
const price = this.getPrice(plan);
|
|
388
|
+
const currency = plan.currency || '$';
|
|
389
|
+
const period = plan.period || '/mo';
|
|
390
|
+
return snice.html /*html*/ `
|
|
391
|
+
<td class="${plan.highlighted ? 'pricing__table-highlight' : ''}">
|
|
392
|
+
<strong>${currency}${this.formatPrice(price)}</strong>${period}
|
|
393
|
+
</td>
|
|
394
|
+
`;
|
|
395
|
+
})}
|
|
396
|
+
</tr>
|
|
397
|
+
${featureNames.map(name => snice.html /*html*/ `
|
|
398
|
+
<tr>
|
|
399
|
+
<td>${name}</td>
|
|
400
|
+
${this.plans.map(plan => {
|
|
401
|
+
const feature = this.getFeatureValue(plan, name);
|
|
402
|
+
const isIncluded = feature ? (typeof feature.included === 'boolean' ? feature.included : true) : false;
|
|
403
|
+
const value = feature && typeof feature.included === 'string' ? feature.included : '';
|
|
404
|
+
return snice.html /*html*/ `
|
|
405
|
+
<td class="${plan.highlighted ? 'pricing__table-highlight' : ''}">
|
|
406
|
+
<if ${!feature}>
|
|
407
|
+
${this.renderXIcon()}
|
|
408
|
+
</if>
|
|
409
|
+
<if ${feature && typeof feature.included === 'boolean' && isIncluded}>
|
|
410
|
+
${this.renderCheckIcon()}
|
|
411
|
+
</if>
|
|
412
|
+
<if ${feature && typeof feature.included === 'boolean' && !isIncluded}>
|
|
413
|
+
${this.renderXIcon()}
|
|
414
|
+
</if>
|
|
415
|
+
<if ${value}>
|
|
416
|
+
${value}
|
|
417
|
+
</if>
|
|
418
|
+
</td>
|
|
419
|
+
`;
|
|
420
|
+
})}
|
|
421
|
+
</tr>
|
|
422
|
+
`)}
|
|
423
|
+
<tr>
|
|
424
|
+
<td></td>
|
|
425
|
+
${this.plans.map((plan, i) => snice.html /*html*/ `
|
|
426
|
+
<td class="${plan.highlighted ? 'pricing__table-highlight' : ''}">
|
|
427
|
+
<button class="pricing__cta pricing__cta--${plan.ctaVariant || (plan.highlighted ? 'primary' : 'outline')}"
|
|
428
|
+
@click=${() => this.handleSelect(plan, i)}>
|
|
429
|
+
${plan.cta}
|
|
430
|
+
</button>
|
|
431
|
+
</td>
|
|
432
|
+
`)}
|
|
433
|
+
</tr>
|
|
434
|
+
</tbody>
|
|
435
|
+
</table>
|
|
436
|
+
</div>
|
|
437
|
+
`;
|
|
438
|
+
}
|
|
439
|
+
renderContent() {
|
|
440
|
+
const isCards = this.variant === 'cards';
|
|
441
|
+
const showToggle = this.hasAnnualPricing();
|
|
442
|
+
return snice.html /*html*/ `
|
|
443
|
+
<div class="pricing" part="base">
|
|
444
|
+
<if ${showToggle}>
|
|
445
|
+
<div class="pricing__toggle" part="toggle" role="radiogroup" aria-label="Billing period">
|
|
446
|
+
<button class="pricing__toggle-btn ${!this.annual ? 'pricing__toggle-btn--active' : ''}"
|
|
447
|
+
@click=${() => { this.annual = false; }}
|
|
448
|
+
role="radio"
|
|
449
|
+
aria-checked="${!this.annual}">
|
|
450
|
+
Monthly
|
|
451
|
+
</button>
|
|
452
|
+
<button class="pricing__toggle-btn ${this.annual ? 'pricing__toggle-btn--active' : ''}"
|
|
453
|
+
@click=${() => { this.annual = true; }}
|
|
454
|
+
role="radio"
|
|
455
|
+
aria-checked="${this.annual}">
|
|
456
|
+
Annual
|
|
457
|
+
</button>
|
|
458
|
+
</div>
|
|
459
|
+
</if>
|
|
460
|
+
|
|
461
|
+
<if ${isCards}>
|
|
462
|
+
${this.renderCardsView()}
|
|
463
|
+
</if>
|
|
464
|
+
<if ${!isCards}>
|
|
465
|
+
${this.renderTableView()}
|
|
466
|
+
</if>
|
|
467
|
+
</div>
|
|
468
|
+
`;
|
|
469
|
+
}
|
|
470
|
+
componentStyles() {
|
|
471
|
+
return snice.css `${cssContent}`;
|
|
472
|
+
}
|
|
473
|
+
constructor() {
|
|
474
|
+
super(...arguments);
|
|
475
|
+
this.plans = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _plans_initializers, []));
|
|
476
|
+
this.variant = (__runInitializers(this, _plans_extraInitializers), __runInitializers(this, _variant_initializers, 'cards'));
|
|
477
|
+
this.annual = (__runInitializers(this, _variant_extraInitializers), __runInitializers(this, _annual_initializers, false));
|
|
478
|
+
__runInitializers(this, _annual_extraInitializers);
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
return _classThis;
|
|
482
|
+
})();
|
|
483
|
+
|
|
484
|
+
exports.SniceFeature = SniceFeature;
|
|
485
|
+
exports.SnicePlan = SnicePlan;
|
|
486
|
+
exports.SnicePricingTable = SnicePricingTable;
|
|
487
|
+
|
|
488
|
+
return exports;
|
|
489
|
+
|
|
490
|
+
})({}, Snice);
|
|
491
|
+
//# sourceMappingURL=snice-pricing-table.js.map
|