snice 4.24.0 → 4.25.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/README.md +4 -39
- package/bin/mcp-server.js +32 -0
- package/dist/cdn/accordion/snice-accordion.js +2 -2
- package/dist/cdn/accordion/snice-accordion.min.js +2 -2
- package/dist/cdn/activity-feed/snice-activity-feed.js +3 -3
- package/dist/cdn/activity-feed/snice-activity-feed.js.map +1 -1
- package/dist/cdn/activity-feed/snice-activity-feed.min.js +3 -3
- package/dist/cdn/activity-feed/snice-activity-feed.min.js.map +1 -1
- package/dist/cdn/alert/snice-alert.js +8 -4
- package/dist/cdn/alert/snice-alert.js.map +1 -1
- package/dist/cdn/alert/snice-alert.min.js +2 -2
- package/dist/cdn/alert/snice-alert.min.js.map +1 -1
- package/dist/cdn/app-tiles/snice-app-tiles.js +2 -2
- package/dist/cdn/app-tiles/snice-app-tiles.min.js +2 -2
- package/dist/cdn/approval-flow/snice-approval-flow.js +3 -3
- package/dist/cdn/approval-flow/snice-approval-flow.js.map +1 -1
- package/dist/cdn/approval-flow/snice-approval-flow.min.js +3 -3
- package/dist/cdn/approval-flow/snice-approval-flow.min.js.map +1 -1
- package/dist/cdn/audio-recorder/README.md +1 -1
- package/dist/cdn/audio-recorder/snice-audio-recorder.js +2 -2
- package/dist/cdn/audio-recorder/snice-audio-recorder.min.js +2 -2
- package/dist/cdn/availability/snice-availability.js +2 -2
- package/dist/cdn/availability/snice-availability.min.js +2 -2
- package/dist/cdn/avatar/snice-avatar.js +2 -2
- package/dist/cdn/avatar/snice-avatar.min.js +2 -2
- package/dist/cdn/avatar-group/snice-avatar-group.js +3 -3
- package/dist/cdn/avatar-group/snice-avatar-group.js.map +1 -1
- package/dist/cdn/avatar-group/snice-avatar-group.min.js +16 -16
- package/dist/cdn/avatar-group/snice-avatar-group.min.js.map +1 -1
- package/dist/cdn/badge/snice-badge.js +2 -2
- package/dist/cdn/badge/snice-badge.min.js +2 -2
- package/dist/cdn/banner/snice-banner.js +9 -5
- package/dist/cdn/banner/snice-banner.js.map +1 -1
- package/dist/cdn/banner/snice-banner.min.js +3 -3
- package/dist/cdn/banner/snice-banner.min.js.map +1 -1
- package/dist/cdn/book/snice-book.js +2 -2
- package/dist/cdn/book/snice-book.min.js +2 -2
- package/dist/cdn/booking/snice-booking.js +2 -2
- package/dist/cdn/booking/snice-booking.min.js +2 -2
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.js +8 -4
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.js.map +1 -1
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js +2 -2
- package/dist/cdn/breadcrumbs/snice-breadcrumbs.min.js.map +1 -1
- package/dist/cdn/button/snice-button.js +8 -4
- package/dist/cdn/button/snice-button.js.map +1 -1
- package/dist/cdn/button/snice-button.min.js +2 -2
- package/dist/cdn/button/snice-button.min.js.map +1 -1
- package/dist/cdn/calendar/snice-calendar.js +2 -2
- package/dist/cdn/calendar/snice-calendar.min.js +2 -2
- package/dist/cdn/camera/snice-camera.js +2 -2
- package/dist/cdn/camera/snice-camera.min.js +2 -2
- package/dist/cdn/camera-annotate/snice-camera-annotate.js +2 -2
- package/dist/cdn/camera-annotate/snice-camera-annotate.min.js +2 -2
- package/dist/cdn/candlestick/snice-candlestick.js +2 -2
- package/dist/cdn/candlestick/snice-candlestick.min.js +2 -2
- package/dist/cdn/card/README.md +1 -1
- package/dist/cdn/card/snice-card.js +2 -2
- package/dist/cdn/card/snice-card.min.js +2 -2
- package/dist/cdn/carousel/snice-carousel.js +2 -2
- package/dist/cdn/carousel/snice-carousel.min.js +2 -2
- package/dist/cdn/cart/snice-cart.js +3 -3
- package/dist/cdn/cart/snice-cart.js.map +1 -1
- package/dist/cdn/cart/snice-cart.min.js +3 -3
- package/dist/cdn/cart/snice-cart.min.js.map +1 -1
- package/dist/cdn/chart/snice-chart.js +2 -2
- package/dist/cdn/chart/snice-chart.min.js +2 -2
- package/dist/cdn/chat/snice-chat.js +9 -5
- package/dist/cdn/chat/snice-chat.js.map +1 -1
- package/dist/cdn/chat/snice-chat.min.js +3 -3
- package/dist/cdn/chat/snice-chat.min.js.map +1 -1
- package/dist/cdn/checkbox/snice-checkbox.js +2 -2
- package/dist/cdn/checkbox/snice-checkbox.min.js +2 -2
- package/dist/cdn/chip/README.md +1 -1
- package/dist/cdn/chip/snice-chip.js +8 -4
- package/dist/cdn/chip/snice-chip.js.map +1 -1
- package/dist/cdn/chip/snice-chip.min.js +2 -2
- package/dist/cdn/chip/snice-chip.min.js.map +1 -1
- package/dist/cdn/code-block/snice-code-block.js +2 -2
- package/dist/cdn/code-block/snice-code-block.min.js +2 -2
- package/dist/cdn/color-display/snice-color-display.js +3 -3
- package/dist/cdn/color-display/snice-color-display.js.map +1 -1
- package/dist/cdn/color-display/snice-color-display.min.js +4 -4
- package/dist/cdn/color-display/snice-color-display.min.js.map +1 -1
- package/dist/cdn/color-picker/snice-color-picker.js +2 -2
- package/dist/cdn/color-picker/snice-color-picker.min.js +2 -2
- package/dist/cdn/command-palette/README.md +1 -1
- package/dist/cdn/command-palette/snice-command-palette.js +2 -2
- package/dist/cdn/command-palette/snice-command-palette.min.js +2 -2
- package/dist/cdn/comments/snice-comments.js +3 -3
- package/dist/cdn/comments/snice-comments.js.map +1 -1
- package/dist/cdn/comments/snice-comments.min.js +3 -3
- package/dist/cdn/comments/snice-comments.min.js.map +1 -1
- package/dist/cdn/countdown/README.md +1 -1
- package/dist/cdn/countdown/snice-countdown.js +2 -2
- package/dist/cdn/countdown/snice-countdown.min.js +2 -2
- package/dist/cdn/cropper/snice-cropper.js +2 -2
- package/dist/cdn/cropper/snice-cropper.min.js +2 -2
- package/dist/cdn/data-card/snice-data-card.js +3 -3
- package/dist/cdn/data-card/snice-data-card.js.map +1 -1
- package/dist/cdn/data-card/snice-data-card.min.js +3 -3
- package/dist/cdn/data-card/snice-data-card.min.js.map +1 -1
- package/dist/cdn/date-picker/snice-date-picker.js +2 -2
- package/dist/cdn/date-picker/snice-date-picker.min.js +2 -2
- package/dist/cdn/date-time-picker/README.md +2 -2
- package/dist/cdn/date-time-picker/snice-date-time-picker.js +2 -2
- package/dist/cdn/date-time-picker/snice-date-time-picker.min.js +2 -2
- package/dist/cdn/diff/snice-diff.js +2 -2
- package/dist/cdn/diff/snice-diff.min.js +2 -2
- package/dist/cdn/divider/snice-divider.js +2 -2
- package/dist/cdn/divider/snice-divider.min.js +2 -2
- package/dist/cdn/doc/snice-doc.js +2 -2
- package/dist/cdn/doc/snice-doc.min.js +2 -2
- package/dist/cdn/draw/snice-draw.js +2 -2
- package/dist/cdn/draw/snice-draw.min.js +2 -2
- package/dist/cdn/drawer/README.md +1 -1
- package/dist/cdn/drawer/snice-drawer.js +12 -6
- package/dist/cdn/drawer/snice-drawer.js.map +1 -1
- package/dist/cdn/drawer/snice-drawer.min.js +4 -4
- package/dist/cdn/drawer/snice-drawer.min.js.map +1 -1
- package/dist/cdn/empty-state/snice-empty-state.js +9 -5
- package/dist/cdn/empty-state/snice-empty-state.js.map +1 -1
- package/dist/cdn/empty-state/snice-empty-state.min.js +3 -3
- package/dist/cdn/empty-state/snice-empty-state.min.js.map +1 -1
- package/dist/cdn/estimate/snice-estimate.js +3 -3
- package/dist/cdn/estimate/snice-estimate.js.map +1 -1
- package/dist/cdn/estimate/snice-estimate.min.js +3 -3
- package/dist/cdn/estimate/snice-estimate.min.js.map +1 -1
- package/dist/cdn/file-gallery/snice-file-gallery.js +2 -2
- package/dist/cdn/file-gallery/snice-file-gallery.min.js +2 -2
- package/dist/cdn/file-upload/snice-file-upload.js +3 -3
- package/dist/cdn/file-upload/snice-file-upload.js.map +1 -1
- package/dist/cdn/file-upload/snice-file-upload.min.js +3 -3
- package/dist/cdn/file-upload/snice-file-upload.min.js.map +1 -1
- package/dist/cdn/flip-card/snice-flip-card.js +2 -2
- package/dist/cdn/flip-card/snice-flip-card.min.js +2 -2
- package/dist/cdn/flow/README.md +1 -1
- package/dist/cdn/flow/snice-flow.js +2 -2
- package/dist/cdn/flow/snice-flow.min.js +2 -2
- package/dist/cdn/form-layout/snice-form-layout.js +3 -3
- package/dist/cdn/form-layout/snice-form-layout.js.map +1 -1
- package/dist/cdn/form-layout/snice-form-layout.min.js +3 -3
- package/dist/cdn/form-layout/snice-form-layout.min.js.map +1 -1
- package/dist/cdn/funnel/README.md +2 -2
- package/dist/cdn/funnel/snice-funnel.js +2 -2
- package/dist/cdn/funnel/snice-funnel.min.js +2 -2
- package/dist/cdn/gantt/README.md +1 -1
- package/dist/cdn/gantt/snice-gantt.js +2 -2
- package/dist/cdn/gantt/snice-gantt.min.js +2 -2
- package/dist/cdn/gauge/snice-gauge.js +2 -2
- package/dist/cdn/gauge/snice-gauge.min.js +2 -2
- package/dist/cdn/heatmap/README.md +1 -1
- package/dist/cdn/heatmap/snice-heatmap.js +2 -2
- package/dist/cdn/heatmap/snice-heatmap.min.js +2 -2
- package/dist/cdn/image/snice-image.js +3 -3
- package/dist/cdn/image/snice-image.js.map +1 -1
- package/dist/cdn/image/snice-image.min.js +3 -3
- package/dist/cdn/image/snice-image.min.js.map +1 -1
- package/dist/cdn/input/README.md +1 -1
- package/dist/cdn/input/snice-input.js +9 -5
- package/dist/cdn/input/snice-input.js.map +1 -1
- package/dist/cdn/input/snice-input.min.js +3 -3
- package/dist/cdn/input/snice-input.min.js.map +1 -1
- package/dist/cdn/invoice/snice-invoice.js +3 -3
- package/dist/cdn/invoice/snice-invoice.js.map +1 -1
- package/dist/cdn/invoice/snice-invoice.min.js +4 -4
- package/dist/cdn/invoice/snice-invoice.min.js.map +1 -1
- package/dist/cdn/kanban/snice-kanban.js +2 -2
- package/dist/cdn/kanban/snice-kanban.min.js +2 -2
- package/dist/cdn/key-value/snice-key-value.js +3 -3
- package/dist/cdn/key-value/snice-key-value.js.map +1 -1
- package/dist/cdn/key-value/snice-key-value.min.js +3 -3
- package/dist/cdn/key-value/snice-key-value.min.js.map +1 -1
- package/dist/cdn/kpi/snice-kpi.js +3 -3
- package/dist/cdn/kpi/snice-kpi.js.map +1 -1
- package/dist/cdn/kpi/snice-kpi.min.js +3 -3
- package/dist/cdn/kpi/snice-kpi.min.js.map +1 -1
- package/dist/cdn/layout/snice-layout.js +3 -3
- package/dist/cdn/layout/snice-layout.js.map +1 -1
- package/dist/cdn/layout/snice-layout.min.js +3 -3
- package/dist/cdn/layout/snice-layout.min.js.map +1 -1
- package/dist/cdn/leaderboard/snice-leaderboard.js +3 -3
- package/dist/cdn/leaderboard/snice-leaderboard.js.map +1 -1
- package/dist/cdn/leaderboard/snice-leaderboard.min.js +3 -3
- package/dist/cdn/leaderboard/snice-leaderboard.min.js.map +1 -1
- package/dist/cdn/link/snice-link.js +3 -3
- package/dist/cdn/link/snice-link.js.map +1 -1
- package/dist/cdn/link/snice-link.min.js +3 -3
- package/dist/cdn/link/snice-link.min.js.map +1 -1
- package/dist/cdn/link-preview/snice-link-preview.js +3 -3
- package/dist/cdn/link-preview/snice-link-preview.js.map +1 -1
- package/dist/cdn/link-preview/snice-link-preview.min.js +3 -3
- package/dist/cdn/link-preview/snice-link-preview.min.js.map +1 -1
- package/dist/cdn/list/snice-list.js +10 -6
- package/dist/cdn/list/snice-list.js.map +1 -1
- package/dist/cdn/list/snice-list.min.js +4 -4
- package/dist/cdn/list/snice-list.min.js.map +1 -1
- package/dist/cdn/location/snice-location.js +8 -4
- package/dist/cdn/location/snice-location.js.map +1 -1
- package/dist/cdn/location/snice-location.min.js +2 -2
- package/dist/cdn/location/snice-location.min.js.map +1 -1
- package/dist/cdn/login/snice-login.js +8 -4
- package/dist/cdn/login/snice-login.js.map +1 -1
- package/dist/cdn/login/snice-login.min.js +2 -2
- package/dist/cdn/login/snice-login.min.js.map +1 -1
- package/dist/cdn/map/README.md +1 -1
- package/dist/cdn/map/snice-map.js +2 -2
- package/dist/cdn/map/snice-map.min.js +2 -2
- package/dist/cdn/markdown/snice-markdown.js +2 -2
- package/dist/cdn/markdown/snice-markdown.min.js +2 -2
- package/dist/cdn/masonry/snice-masonry.js +2 -2
- package/dist/cdn/masonry/snice-masonry.min.js +2 -2
- package/dist/cdn/menu/snice-menu.js +2 -2
- package/dist/cdn/menu/snice-menu.min.js +2 -2
- package/dist/cdn/message-strip/snice-message-strip.js +8 -4
- package/dist/cdn/message-strip/snice-message-strip.js.map +1 -1
- package/dist/cdn/message-strip/snice-message-strip.min.js +2 -2
- package/dist/cdn/message-strip/snice-message-strip.min.js.map +1 -1
- package/dist/cdn/metric-table/snice-metric-table.js +3 -3
- package/dist/cdn/metric-table/snice-metric-table.js.map +1 -1
- package/dist/cdn/metric-table/snice-metric-table.min.js +8 -8
- package/dist/cdn/metric-table/snice-metric-table.min.js.map +1 -1
- package/dist/cdn/modal/README.md +1 -1
- package/dist/cdn/modal/snice-modal.js +2 -2
- package/dist/cdn/modal/snice-modal.min.js +2 -2
- package/dist/cdn/music-player/snice-music-player.js +2 -2
- package/dist/cdn/music-player/snice-music-player.min.js +2 -2
- package/dist/cdn/nav/snice-nav.js +3 -3
- package/dist/cdn/nav/snice-nav.js.map +1 -1
- package/dist/cdn/nav/snice-nav.min.js +3 -3
- package/dist/cdn/nav/snice-nav.min.js.map +1 -1
- package/dist/cdn/network-graph/snice-network-graph.js +2 -2
- package/dist/cdn/network-graph/snice-network-graph.min.js +2 -2
- package/dist/cdn/notification-center/snice-notification-center.js +9 -5
- package/dist/cdn/notification-center/snice-notification-center.js.map +1 -1
- package/dist/cdn/notification-center/snice-notification-center.min.js +3 -3
- package/dist/cdn/notification-center/snice-notification-center.min.js.map +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.js +3 -3
- package/dist/cdn/order-tracker/snice-order-tracker.js.map +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.min.js +3 -3
- package/dist/cdn/order-tracker/snice-order-tracker.min.js.map +1 -1
- package/dist/cdn/org-chart/README.md +1 -1
- package/dist/cdn/org-chart/snice-org-chart.js +2 -2
- package/dist/cdn/org-chart/snice-org-chart.min.js +2 -2
- package/dist/cdn/pagination/snice-pagination.js +2 -2
- package/dist/cdn/pagination/snice-pagination.min.js +2 -2
- package/dist/cdn/paint/snice-paint.js +2 -2
- package/dist/cdn/paint/snice-paint.min.js +2 -2
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.js +2 -2
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +2 -2
- package/dist/cdn/permission-matrix/snice-permission-matrix.js +3 -3
- package/dist/cdn/permission-matrix/snice-permission-matrix.js.map +1 -1
- package/dist/cdn/permission-matrix/snice-permission-matrix.min.js +12 -12
- package/dist/cdn/permission-matrix/snice-permission-matrix.min.js.map +1 -1
- package/dist/cdn/podcast-player/snice-podcast-player.js +2 -2
- package/dist/cdn/podcast-player/snice-podcast-player.min.js +2 -2
- package/dist/cdn/pricing-table/README.md +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.js +3 -3
- package/dist/cdn/pricing-table/snice-pricing-table.js.map +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.min.js +3 -3
- package/dist/cdn/pricing-table/snice-pricing-table.min.js.map +1 -1
- package/dist/cdn/product-card/snice-product-card.js +3 -3
- package/dist/cdn/product-card/snice-product-card.js.map +1 -1
- package/dist/cdn/product-card/snice-product-card.min.js +3 -3
- package/dist/cdn/product-card/snice-product-card.min.js.map +1 -1
- package/dist/cdn/progress/README.md +1 -1
- package/dist/cdn/progress/snice-progress.js +2 -2
- package/dist/cdn/progress/snice-progress.min.js +2 -2
- package/dist/cdn/progress-ring/snice-progress-ring.js +2 -2
- package/dist/cdn/progress-ring/snice-progress-ring.min.js +2 -2
- package/dist/cdn/qr-code/snice-qr-code.js +2 -2
- package/dist/cdn/qr-code/snice-qr-code.min.js +2 -2
- package/dist/cdn/qr-reader/README.md +1 -1
- package/dist/cdn/qr-reader/snice-qr-reader.js +2 -2
- package/dist/cdn/qr-reader/snice-qr-reader.min.js +2 -2
- package/dist/cdn/radio/snice-radio.js +3 -3
- package/dist/cdn/radio/snice-radio.js.map +1 -1
- package/dist/cdn/radio/snice-radio.min.js +3 -3
- package/dist/cdn/radio/snice-radio.min.js.map +1 -1
- package/dist/cdn/range-slider/snice-range-slider.js +2 -2
- package/dist/cdn/range-slider/snice-range-slider.min.js +2 -2
- package/dist/cdn/rating/snice-rating.js +2 -2
- package/dist/cdn/rating/snice-rating.min.js +2 -2
- package/dist/cdn/receipt/snice-receipt.js +3 -3
- package/dist/cdn/receipt/snice-receipt.js.map +1 -1
- package/dist/cdn/receipt/snice-receipt.min.js +7 -7
- package/dist/cdn/receipt/snice-receipt.min.js.map +1 -1
- package/dist/cdn/recipe/snice-recipe.js +3 -3
- package/dist/cdn/recipe/snice-recipe.js.map +1 -1
- package/dist/cdn/recipe/snice-recipe.min.js +3 -3
- package/dist/cdn/recipe/snice-recipe.min.js.map +1 -1
- package/dist/cdn/runtime/README.md +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.js +8 -8
- package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.min.js +8 -8
- package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.js +8 -8
- package/dist/cdn/runtime/snice-runtime.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.min.js +8 -8
- package/dist/cdn/runtime/snice-runtime.min.js.map +1 -1
- package/dist/cdn/sankey/README.md +1 -1
- package/dist/cdn/sankey/snice-sankey.js +2 -2
- package/dist/cdn/sankey/snice-sankey.min.js +2 -2
- package/dist/cdn/segmented-control/snice-segmented-control.js +2 -2
- package/dist/cdn/segmented-control/snice-segmented-control.min.js +2 -2
- package/dist/cdn/select/snice-select.js +2 -2
- package/dist/cdn/select/snice-select.min.js +2 -2
- package/dist/cdn/skeleton/snice-skeleton.js +2 -2
- package/dist/cdn/skeleton/snice-skeleton.min.js +2 -2
- package/dist/cdn/slider/README.md +1 -1
- package/dist/cdn/slider/snice-slider.js +2 -2
- package/dist/cdn/slider/snice-slider.min.js +2 -2
- package/dist/cdn/sortable/README.md +1 -1
- package/dist/cdn/sortable/snice-sortable.js +2 -2
- package/dist/cdn/sortable/snice-sortable.min.js +2 -2
- package/dist/cdn/sparkline/README.md +1 -1
- package/dist/cdn/sparkline/snice-sparkline.js +2 -2
- package/dist/cdn/sparkline/snice-sparkline.min.js +2 -2
- package/dist/cdn/spinner/README.md +2 -2
- package/dist/cdn/spinner/snice-spinner.js +2 -2
- package/dist/cdn/spinner/snice-spinner.min.js +2 -2
- package/dist/cdn/split-button/snice-split-button.js +2 -2
- package/dist/cdn/split-button/snice-split-button.min.js +2 -2
- package/dist/cdn/split-pane/snice-split-pane.js +2 -2
- package/dist/cdn/split-pane/snice-split-pane.min.js +2 -2
- package/dist/cdn/spotlight/snice-spotlight.js +2 -2
- package/dist/cdn/spotlight/snice-spotlight.min.js +2 -2
- package/dist/cdn/spreadsheet/README.md +2 -2
- package/dist/cdn/spreadsheet/snice-spreadsheet.js +2 -2
- package/dist/cdn/spreadsheet/snice-spreadsheet.min.js +2 -2
- package/dist/cdn/stat-group/snice-stat-group.js +3 -3
- package/dist/cdn/stat-group/snice-stat-group.js.map +1 -1
- package/dist/cdn/stat-group/snice-stat-group.min.js +4 -4
- package/dist/cdn/stat-group/snice-stat-group.min.js.map +1 -1
- package/dist/cdn/step-input/snice-step-input.js +3 -3
- package/dist/cdn/step-input/snice-step-input.js.map +1 -1
- package/dist/cdn/step-input/snice-step-input.min.js +3 -3
- package/dist/cdn/step-input/snice-step-input.min.js.map +1 -1
- package/dist/cdn/stepper/README.md +1 -1
- package/dist/cdn/stepper/snice-stepper.js +3 -3
- package/dist/cdn/stepper/snice-stepper.js.map +1 -1
- package/dist/cdn/stepper/snice-stepper.min.js +4 -4
- package/dist/cdn/stepper/snice-stepper.min.js.map +1 -1
- package/dist/cdn/switch/snice-switch.js +2 -2
- package/dist/cdn/switch/snice-switch.min.js +2 -2
- package/dist/cdn/table/README.md +1 -1
- package/dist/cdn/table/snice-table.js +9 -5
- package/dist/cdn/table/snice-table.js.map +1 -1
- package/dist/cdn/table/snice-table.min.js +3 -3
- package/dist/cdn/table/snice-table.min.js.map +1 -1
- package/dist/cdn/tabs/README.md +1 -1
- package/dist/cdn/tabs/snice-tabs.js +2 -2
- package/dist/cdn/tabs/snice-tabs.min.js +2 -2
- package/dist/cdn/tag/snice-tag.js +2 -2
- package/dist/cdn/tag/snice-tag.min.js +2 -2
- package/dist/cdn/tag-input/snice-tag-input.js +3 -3
- package/dist/cdn/tag-input/snice-tag-input.js.map +1 -1
- package/dist/cdn/tag-input/snice-tag-input.min.js +11 -11
- package/dist/cdn/tag-input/snice-tag-input.min.js.map +1 -1
- package/dist/cdn/terminal/snice-terminal.js +2 -2
- package/dist/cdn/terminal/snice-terminal.min.js +2 -2
- package/dist/cdn/testimonial/snice-testimonial.js +2 -2
- package/dist/cdn/testimonial/snice-testimonial.min.js +2 -2
- package/dist/cdn/textarea/README.md +1 -1
- package/dist/cdn/textarea/snice-textarea.js +2 -2
- package/dist/cdn/textarea/snice-textarea.min.js +2 -2
- package/dist/cdn/time-picker/snice-time-picker.js +2 -2
- package/dist/cdn/time-picker/snice-time-picker.min.js +2 -2
- package/dist/cdn/time-range-picker/snice-time-range-picker.js +3 -3
- package/dist/cdn/time-range-picker/snice-time-range-picker.js.map +1 -1
- package/dist/cdn/time-range-picker/snice-time-range-picker.min.js +3 -3
- package/dist/cdn/time-range-picker/snice-time-range-picker.min.js.map +1 -1
- package/dist/cdn/timeline/snice-timeline.js +3 -3
- package/dist/cdn/timeline/snice-timeline.js.map +1 -1
- package/dist/cdn/timeline/snice-timeline.min.js +4 -4
- package/dist/cdn/timeline/snice-timeline.min.js.map +1 -1
- package/dist/cdn/timer/snice-timer.js +3 -3
- package/dist/cdn/timer/snice-timer.js.map +1 -1
- package/dist/cdn/timer/snice-timer.min.js +3 -3
- package/dist/cdn/timer/snice-timer.min.js.map +1 -1
- package/dist/cdn/toast/snice-toast.js +2 -2
- package/dist/cdn/toast/snice-toast.min.js +2 -2
- package/dist/cdn/tooltip/snice-tooltip.js +2 -2
- package/dist/cdn/tooltip/snice-tooltip.min.js +2 -2
- package/dist/cdn/tree/README.md +2 -2
- package/dist/cdn/tree/snice-tree.js +2 -2
- package/dist/cdn/tree/snice-tree.min.js +2 -2
- package/dist/cdn/treemap/snice-treemap.js +2 -2
- package/dist/cdn/treemap/snice-treemap.min.js +2 -2
- package/dist/cdn/user-card/snice-user-card.js +3 -3
- package/dist/cdn/user-card/snice-user-card.js.map +1 -1
- package/dist/cdn/user-card/snice-user-card.min.js +7 -7
- package/dist/cdn/user-card/snice-user-card.min.js.map +1 -1
- package/dist/cdn/video-player/snice-video-player.js +2 -2
- package/dist/cdn/video-player/snice-video-player.min.js +2 -2
- package/dist/cdn/virtual-scroller/README.md +1 -1
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.js +2 -2
- package/dist/cdn/virtual-scroller/snice-virtual-scroller.min.js +2 -2
- package/dist/cdn/waterfall/README.md +1 -1
- package/dist/cdn/waterfall/snice-waterfall.js +2 -2
- package/dist/cdn/waterfall/snice-waterfall.min.js +2 -2
- package/dist/cdn/weather/snice-weather.js +2 -2
- package/dist/cdn/weather/snice-weather.min.js +2 -2
- package/dist/cdn/work-order/snice-work-order.js +3 -3
- package/dist/cdn/work-order/snice-work-order.js.map +1 -1
- package/dist/cdn/work-order/snice-work-order.min.js +3 -3
- package/dist/cdn/work-order/snice-work-order.min.js.map +1 -1
- package/dist/components/activity-feed/snice-activity-feed.js +1 -1
- package/dist/components/activity-feed/snice-activity-feed.js.map +1 -1
- package/dist/components/approval-flow/snice-approval-flow.js +1 -1
- package/dist/components/approval-flow/snice-approval-flow.js.map +1 -1
- package/dist/components/avatar-group/snice-avatar-group.js +1 -1
- package/dist/components/avatar-group/snice-avatar-group.js.map +1 -1
- package/dist/components/banner/snice-banner.js +1 -1
- package/dist/components/banner/snice-banner.js.map +1 -1
- package/dist/components/cart/snice-cart.js +1 -1
- package/dist/components/cart/snice-cart.js.map +1 -1
- package/dist/components/color-display/snice-color-display.js +1 -1
- package/dist/components/color-display/snice-color-display.js.map +1 -1
- package/dist/components/comments/snice-comments.js +1 -1
- package/dist/components/comments/snice-comments.js.map +1 -1
- package/dist/components/data-card/snice-data-card.js +1 -1
- package/dist/components/data-card/snice-data-card.js.map +1 -1
- package/dist/components/drawer/snice-drawer.js +10 -4
- package/dist/components/drawer/snice-drawer.js.map +1 -1
- package/dist/components/empty-state/snice-empty-state.js +1 -1
- package/dist/components/empty-state/snice-empty-state.js.map +1 -1
- package/dist/components/estimate/snice-estimate.js +1 -1
- package/dist/components/estimate/snice-estimate.js.map +1 -1
- package/dist/components/file-upload/snice-file-upload.js +1 -1
- package/dist/components/file-upload/snice-file-upload.js.map +1 -1
- package/dist/components/form-layout/snice-form-layout.js +1 -1
- package/dist/components/form-layout/snice-form-layout.js.map +1 -1
- package/dist/components/image/snice-image.js +1 -1
- package/dist/components/image/snice-image.js.map +1 -1
- package/dist/components/input/snice-input.js +1 -1
- package/dist/components/input/snice-input.js.map +1 -1
- package/dist/components/invoice/snice-invoice.js +1 -1
- package/dist/components/invoice/snice-invoice.js.map +1 -1
- package/dist/components/key-value/snice-key-value.js +1 -1
- package/dist/components/key-value/snice-key-value.js.map +1 -1
- package/dist/components/kpi/snice-kpi.js +1 -1
- package/dist/components/kpi/snice-kpi.js.map +1 -1
- package/dist/components/leaderboard/snice-leaderboard.js +1 -1
- package/dist/components/leaderboard/snice-leaderboard.js.map +1 -1
- package/dist/components/link/snice-link.js +1 -1
- package/dist/components/link/snice-link.js.map +1 -1
- package/dist/components/link-preview/snice-link-preview.js +1 -1
- package/dist/components/link-preview/snice-link-preview.js.map +1 -1
- package/dist/components/list/snice-list-item.js +1 -1
- package/dist/components/list/snice-list-item.js.map +1 -1
- package/dist/components/metric-table/snice-metric-table.js +1 -1
- package/dist/components/metric-table/snice-metric-table.js.map +1 -1
- package/dist/components/nav/snice-nav.js +1 -1
- package/dist/components/nav/snice-nav.js.map +1 -1
- package/dist/components/order-tracker/snice-order-tracker.js +1 -1
- package/dist/components/order-tracker/snice-order-tracker.js.map +1 -1
- package/dist/components/permission-matrix/snice-permission-matrix.js +1 -1
- package/dist/components/permission-matrix/snice-permission-matrix.js.map +1 -1
- package/dist/components/pricing-table/snice-pricing-table.js +1 -1
- package/dist/components/pricing-table/snice-pricing-table.js.map +1 -1
- package/dist/components/product-card/snice-product-card.js +1 -1
- package/dist/components/product-card/snice-product-card.js.map +1 -1
- package/dist/components/radio/snice-radio.js +1 -1
- package/dist/components/radio/snice-radio.js.map +1 -1
- package/dist/components/receipt/snice-receipt.js +1 -1
- package/dist/components/receipt/snice-receipt.js.map +1 -1
- package/dist/components/recipe/snice-recipe.js +1 -1
- package/dist/components/recipe/snice-recipe.js.map +1 -1
- package/dist/components/stat-group/snice-stat-group.js +1 -1
- package/dist/components/stat-group/snice-stat-group.js.map +1 -1
- package/dist/components/step-input/snice-step-input.js +1 -1
- package/dist/components/step-input/snice-step-input.js.map +1 -1
- package/dist/components/stepper/snice-stepper.js +1 -1
- package/dist/components/stepper/snice-stepper.js.map +1 -1
- package/dist/components/tag-input/snice-tag-input.js +1 -1
- package/dist/components/tag-input/snice-tag-input.js.map +1 -1
- package/dist/components/time-range-picker/snice-time-range-picker.js +1 -1
- package/dist/components/time-range-picker/snice-time-range-picker.js.map +1 -1
- package/dist/components/timeline/snice-timeline.js +1 -1
- package/dist/components/timeline/snice-timeline.js.map +1 -1
- package/dist/components/timer/snice-timer.js +1 -1
- package/dist/components/timer/snice-timer.js.map +1 -1
- package/dist/components/user-card/snice-user-card.js +1 -1
- package/dist/components/user-card/snice-user-card.js.map +1 -1
- package/dist/components/utils.d.ts +6 -2
- package/dist/components/utils.js +6 -2
- package/dist/components/utils.js.map +1 -1
- package/dist/components/work-order/snice-work-order.js +1 -1
- package/dist/components/work-order/snice-work-order.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/index.iife.js +2 -2
- package/dist/symbols.cjs +2 -2
- package/dist/symbols.esm.js +2 -2
- package/dist/transitions.cjs +2 -2
- package/dist/transitions.esm.js +2 -2
- package/docs/ai/components/alert.md +10 -9
- package/docs/ai/components/banner.md +8 -7
- package/docs/ai/components/breadcrumbs.md +4 -3
- package/docs/ai/components/button.md +20 -16
- package/docs/ai/components/chip.md +9 -8
- package/docs/ai/components/empty-state.md +9 -11
- package/docs/ai/components/input.md +16 -18
- package/docs/ai/components/location.md +1 -1
- package/docs/components/alert.md +8 -6
- package/docs/components/breadcrumbs.md +2 -2
- package/docs/components/button.md +58 -33
- package/docs/components/chip.md +8 -6
- package/docs/components/empty-state.md +1 -1
- package/docs/components/input.md +24 -10
- package/docs/components/location.md +1 -1
- package/package.json +4 -3
package/docs/components/alert.md
CHANGED
|
@@ -31,7 +31,7 @@ import 'snice/components/alert/snice-alert';
|
|
|
31
31
|
| `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | Alert size |
|
|
32
32
|
| `title` | `string` | `''` | Optional title text |
|
|
33
33
|
| `dismissible` | `boolean` | `false` | Show dismiss button |
|
|
34
|
-
| `icon` | `string` | `''` | Custom icon (URL, image file, emoji
|
|
34
|
+
| `icon` | `string` | `''` | Custom icon (URL, image file, emoji) or `'none'` to hide. Use slot for icon fonts. |
|
|
35
35
|
|
|
36
36
|
## Slots
|
|
37
37
|
|
|
@@ -192,9 +192,10 @@ Fired when the alert is shown.
|
|
|
192
192
|
|
|
193
193
|
The `icon` property supports multiple formats:
|
|
194
194
|
- **URLs**: Image files (`/icons/info.svg`)
|
|
195
|
-
- **Inline SVG**: `<svg>...</svg>`
|
|
196
195
|
- **Emoji**: `🎉`, `💡`
|
|
197
|
-
- **
|
|
196
|
+
- **Scheme overrides**: `img://filename` forces `<img>`, `text://content` forces text
|
|
197
|
+
|
|
198
|
+
> **⚠️ Common mistake:** `icon="lightbulb"` or `icon="info"` renders as **plain text**, not a Material icon. Snice does not bundle Material Symbols. Use the `icon` slot instead.
|
|
198
199
|
|
|
199
200
|
```html
|
|
200
201
|
<!-- Emoji icons -->
|
|
@@ -211,9 +212,10 @@ The `icon` property supports multiple formats:
|
|
|
211
212
|
Custom image icon alert.
|
|
212
213
|
</snice-alert>
|
|
213
214
|
|
|
214
|
-
<!--
|
|
215
|
-
<snice-alert variant="info"
|
|
216
|
-
|
|
215
|
+
<!-- Icon slot for Material Symbols -->
|
|
216
|
+
<snice-alert variant="info">
|
|
217
|
+
<span slot="icon" class="material-symbols-outlined">lightbulb</span>
|
|
218
|
+
Font icon alert.
|
|
217
219
|
</snice-alert>
|
|
218
220
|
|
|
219
221
|
<!-- No icon -->
|
|
@@ -65,7 +65,7 @@ Individual breadcrumb item.
|
|
|
65
65
|
interface BreadcrumbItem {
|
|
66
66
|
label: string; // Display text
|
|
67
67
|
href?: string; // Link URL (optional)
|
|
68
|
-
icon?: string; // Icon (URL, image file, emoji
|
|
68
|
+
icon?: string; // Icon (URL, image file, emoji). Use slot for icon fonts.
|
|
69
69
|
iconImage?: string; // Icon image URL (deprecated, use icon)
|
|
70
70
|
active?: boolean; // Current/active state
|
|
71
71
|
}
|
|
@@ -77,7 +77,7 @@ interface BreadcrumbItem {
|
|
|
77
77
|
|----------|------|---------|-------------|
|
|
78
78
|
| `label` | `string` | `''` | Display text |
|
|
79
79
|
| `href` | `string` | `''` | Link URL |
|
|
80
|
-
| `icon` | `string` | `''` | Icon (URL, image file, emoji
|
|
80
|
+
| `icon` | `string` | `''` | Icon (URL, image file, emoji). Use slot for icon fonts. |
|
|
81
81
|
| `iconImage` | `string` | `''` | Icon image URL (deprecated, use `icon` with URL) |
|
|
82
82
|
| `active` | `boolean` | `false` | Current/active state |
|
|
83
83
|
|
|
@@ -36,7 +36,7 @@ import 'snice/components/button/snice-button';
|
|
|
36
36
|
| `href` | `string` | `''` | URL to navigate to (uses window.location, not an anchor tag) |
|
|
37
37
|
| `target` | `string` | `''` | Link target attribute |
|
|
38
38
|
| `download` | `string` | `''` | Download attribute for file downloads |
|
|
39
|
-
| `icon` | `string` | `''` | Icon (URL, image file, emoji
|
|
39
|
+
| `icon` | `string` | `''` | Icon (URL, image file, emoji). Use slot for icon fonts. |
|
|
40
40
|
| `iconPlacement` | `'start' \| 'end'` | `'start'` | Icon position relative to label |
|
|
41
41
|
|
|
42
42
|
## Slots
|
|
@@ -48,37 +48,67 @@ import 'snice/components/button/snice-button';
|
|
|
48
48
|
|
|
49
49
|
### Icon Slot Usage
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
Use the `icon` slot for icon fonts (Material Symbols, Font Awesome, etc.) or inline SVGs. The slot gives you full control over the icon element and its styling.
|
|
52
52
|
|
|
53
|
+
#### Material Symbols
|
|
53
54
|
```html
|
|
54
|
-
<!--
|
|
55
|
+
<!-- Load the font in your document head -->
|
|
56
|
+
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet" />
|
|
57
|
+
|
|
55
58
|
<snice-button variant="primary">
|
|
56
59
|
<span slot="icon" class="material-symbols-outlined">save</span>
|
|
57
|
-
Save
|
|
60
|
+
Save
|
|
61
|
+
</snice-button>
|
|
62
|
+
|
|
63
|
+
<!-- With fill/weight variations -->
|
|
64
|
+
<snice-button>
|
|
65
|
+
<span slot="icon" class="material-symbols-outlined" style="font-variation-settings: 'FILL' 1">favorite</span>
|
|
66
|
+
Liked
|
|
58
67
|
</snice-button>
|
|
59
68
|
|
|
60
|
-
<!--
|
|
69
|
+
<!-- Rounded variant -->
|
|
70
|
+
<snice-button>
|
|
71
|
+
<span slot="icon" class="material-symbols-rounded">home</span>
|
|
72
|
+
Home
|
|
73
|
+
</snice-button>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
#### Font Awesome
|
|
77
|
+
```html
|
|
78
|
+
<!-- Load Font Awesome in your document head -->
|
|
79
|
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet" />
|
|
80
|
+
|
|
61
81
|
<snice-button variant="danger">
|
|
62
82
|
<i slot="icon" class="fa-solid fa-trash"></i>
|
|
63
83
|
Delete
|
|
64
84
|
</snice-button>
|
|
65
85
|
|
|
66
|
-
|
|
86
|
+
<snice-button>
|
|
87
|
+
<i slot="icon" class="fa-regular fa-heart"></i>
|
|
88
|
+
Like
|
|
89
|
+
</snice-button>
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
#### Inline SVG
|
|
93
|
+
```html
|
|
67
94
|
<snice-button>
|
|
68
95
|
<svg slot="icon" viewBox="0 0 24 24" width="20" height="20">
|
|
69
96
|
<path d="M12 2L2 7l10 5 10-5-10-5z" fill="currentColor"/>
|
|
70
97
|
</svg>
|
|
71
98
|
Upload
|
|
72
99
|
</snice-button>
|
|
100
|
+
```
|
|
73
101
|
|
|
74
|
-
|
|
102
|
+
#### Placement
|
|
103
|
+
The `icon-placement` property works with both the slot and the `icon` property:
|
|
104
|
+
```html
|
|
75
105
|
<snice-button icon-placement="end">
|
|
76
106
|
<span slot="icon" class="material-symbols-outlined">arrow_forward</span>
|
|
77
107
|
Next
|
|
78
108
|
</snice-button>
|
|
79
109
|
```
|
|
80
110
|
|
|
81
|
-
> **Note**:
|
|
111
|
+
> **Note**: The `icon` slot takes precedence over the `icon` property when both are present.
|
|
82
112
|
|
|
83
113
|
## Events
|
|
84
114
|
|
|
@@ -191,40 +221,35 @@ button.click();
|
|
|
191
221
|
|
|
192
222
|
### Buttons with Icons
|
|
193
223
|
|
|
194
|
-
|
|
195
|
-
- **URLs**: Image files (`/icons/save.svg`, `https://...`)
|
|
196
|
-
- **Inline SVG**: `<svg viewBox="...">...</svg>`
|
|
197
|
-
- **Inline HTML**: `<span class="material-symbols-rounded">save</span>`
|
|
198
|
-
- **Emoji**: Direct emoji characters (`→`, `🔍`)
|
|
199
|
-
- **Font ligatures**: Text for icon fonts like Material Symbols (`save`, `home`)
|
|
224
|
+
For icon fonts (Material Symbols, Font Awesome, etc.), use the `icon` slot — see [Icon Slot Usage](#icon-slot-usage) above.
|
|
200
225
|
|
|
201
|
-
|
|
202
|
-
<!-- Icon URL -->
|
|
203
|
-
<snice-button icon="/icons/arrow-right.svg">Next</snice-button>
|
|
226
|
+
The `icon` **property** is for simple cases: emoji, image URLs, and image files.
|
|
204
227
|
|
|
205
|
-
|
|
228
|
+
> **⚠️ `icon="home"` renders as plain text, not a Material icon.** Use the `icon` slot for icon fonts.
|
|
229
|
+
|
|
230
|
+
```html
|
|
231
|
+
<!-- Emoji -->
|
|
206
232
|
<snice-button icon="→">Next</snice-button>
|
|
233
|
+
<snice-button icon="🏠">Home</snice-button>
|
|
234
|
+
<snice-button icon="💾" variant="primary">Save</snice-button>
|
|
207
235
|
|
|
208
|
-
<!--
|
|
209
|
-
<snice-button icon="
|
|
236
|
+
<!-- Image URL -->
|
|
237
|
+
<snice-button icon="/icons/arrow-right.svg">Next</snice-button>
|
|
238
|
+
<snice-button icon="https://example.com/icon.png">External</snice-button>
|
|
210
239
|
|
|
211
|
-
<!--
|
|
212
|
-
<snice-button icon="
|
|
213
|
-
Upload
|
|
214
|
-
</snice-button>
|
|
240
|
+
<!-- Image file (auto-detected by extension) -->
|
|
241
|
+
<snice-button icon="logo.svg">Brand</snice-button>
|
|
215
242
|
|
|
216
|
-
<!-- Icon
|
|
217
|
-
<snice-button icon="
|
|
218
|
-
Open Link
|
|
219
|
-
</snice-button>
|
|
243
|
+
<!-- Icon placement -->
|
|
244
|
+
<snice-button icon="→" icon-placement="end">Next</snice-button>
|
|
220
245
|
|
|
221
|
-
<!-- Icon
|
|
246
|
+
<!-- Icon-only circle button -->
|
|
222
247
|
<snice-button circle icon="⚙️"></snice-button>
|
|
223
|
-
<snice-button circle icon="
|
|
248
|
+
<snice-button circle icon="×"></snice-button>
|
|
224
249
|
|
|
225
|
-
<!--
|
|
226
|
-
<snice-button
|
|
227
|
-
<snice-button
|
|
250
|
+
<!-- Scheme overrides (force rendering mode) -->
|
|
251
|
+
<snice-button icon="img://filename">Force as image</snice-button>
|
|
252
|
+
<snice-button icon="text://content">Force as text</snice-button>
|
|
228
253
|
```
|
|
229
254
|
|
|
230
255
|
### Link Buttons
|
package/docs/components/chip.md
CHANGED
|
@@ -30,7 +30,7 @@ import 'snice/components/chip/snice-chip';
|
|
|
30
30
|
| `removable` | `boolean` | `false` | Show remove button |
|
|
31
31
|
| `selected` | `boolean` | `false` | Show selected state |
|
|
32
32
|
| `disabled` | `boolean` | `false` | Disable the chip |
|
|
33
|
-
| `icon` | `string` | `''` | Icon (URL, image file, emoji
|
|
33
|
+
| `icon` | `string` | `''` | Icon (URL, image file, emoji). Use slot for icon fonts. |
|
|
34
34
|
| `avatar` | `string` | `''` | Avatar image URL |
|
|
35
35
|
|
|
36
36
|
## Slots
|
|
@@ -130,9 +130,10 @@ chip.addEventListener('chip-remove', () => {
|
|
|
130
130
|
|
|
131
131
|
The `icon` property supports multiple formats:
|
|
132
132
|
- **URLs**: Image files (`/icons/star.svg`)
|
|
133
|
-
- **Inline SVG**: `<svg>...</svg>`
|
|
134
133
|
- **Emoji**: `★`, `🏠`, `⚙️`
|
|
135
|
-
- **
|
|
134
|
+
- **Scheme overrides**: `img://filename` forces `<img>`, `text://content` forces text
|
|
135
|
+
|
|
136
|
+
> **⚠️ Common mistake:** `icon="home"` or `icon="settings"` renders as **plain text**, not a Material icon. Snice does not bundle Material Symbols. Use the `icon` slot instead.
|
|
136
137
|
|
|
137
138
|
```html
|
|
138
139
|
<!-- Emoji icons -->
|
|
@@ -143,9 +144,10 @@ The `icon` property supports multiple formats:
|
|
|
143
144
|
<!-- Image URL -->
|
|
144
145
|
<snice-chip label="Star" icon="/icons/star.svg" variant="warning"></snice-chip>
|
|
145
146
|
|
|
146
|
-
<!--
|
|
147
|
-
<snice-chip label="Home"
|
|
148
|
-
<
|
|
147
|
+
<!-- Icon slot for Material Symbols -->
|
|
148
|
+
<snice-chip label="Home" variant="primary">
|
|
149
|
+
<span slot="icon" class="material-symbols-outlined">home</span>
|
|
150
|
+
</snice-chip>
|
|
149
151
|
```
|
|
150
152
|
|
|
151
153
|
### Chips with Avatars
|
|
@@ -19,7 +19,7 @@ The `<snice-empty-state>` component provides a consistent way to display empty o
|
|
|
19
19
|
| Property | Type | Default | Description |
|
|
20
20
|
|----------|------|---------|-------------|
|
|
21
21
|
| `size` | `'small' \| 'medium' \| 'large'` | `'medium'` | Size variant |
|
|
22
|
-
| `icon` | `string` | `'📭'` | Icon (URL, image file, emoji
|
|
22
|
+
| `icon` | `string` | `'📭'` | Icon (URL, image file, emoji). Use slot for icon fonts. |
|
|
23
23
|
| `title` | `string` | `'No data'` | Title text |
|
|
24
24
|
| `description` | `string` | `''` | Description text |
|
|
25
25
|
| `actionText` | `string` | `''` | Action button text |
|
package/docs/components/input.md
CHANGED
|
@@ -73,26 +73,40 @@ Set the `password` attribute along with `type="password"` to show a visibility t
|
|
|
73
73
|
|
|
74
74
|
### Icons
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
For icon fonts (Material Symbols, Font Awesome, etc.), use the `prefix-icon` and `suffix-icon` **slots**. The `prefix-icon` and `suffix-icon` **attributes** are for emoji, URLs, and image files only.
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
<snice-input prefix-icon="🔍" placeholder="Search"></snice-input>
|
|
80
|
-
<snice-input suffix-icon="✉️" type="email" label="Email"></snice-input>
|
|
81
|
-
<snice-input prefix-icon="/icons/search.svg" placeholder="Search"></snice-input>
|
|
82
|
-
<snice-input prefix-icon="search" placeholder="Search"></snice-input>
|
|
83
|
-
```
|
|
78
|
+
> **⚠️ `prefix-icon="search"` renders as plain text, not a Material icon.** Use the slot for icon fonts.
|
|
84
79
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
Use the `prefix-icon` and `suffix-icon` slots for custom icon content like external icon fonts.
|
|
80
|
+
#### Icon Slots (for icon fonts and SVGs)
|
|
88
81
|
|
|
89
82
|
```html
|
|
83
|
+
<!-- Material Symbols -->
|
|
90
84
|
<snice-input placeholder="Search">
|
|
91
85
|
<span slot="prefix-icon" class="material-symbols-outlined">search</span>
|
|
92
86
|
</snice-input>
|
|
87
|
+
|
|
93
88
|
<snice-input placeholder="Email">
|
|
94
89
|
<span slot="suffix-icon" class="material-symbols-outlined">mail</span>
|
|
95
90
|
</snice-input>
|
|
91
|
+
|
|
92
|
+
<!-- Font Awesome -->
|
|
93
|
+
<snice-input placeholder="Search">
|
|
94
|
+
<i slot="prefix-icon" class="fa-solid fa-magnifying-glass"></i>
|
|
95
|
+
</snice-input>
|
|
96
|
+
|
|
97
|
+
<!-- Both prefix and suffix -->
|
|
98
|
+
<snice-input placeholder="Search users">
|
|
99
|
+
<span slot="prefix-icon" class="material-symbols-outlined">search</span>
|
|
100
|
+
<span slot="suffix-icon" class="material-symbols-outlined">person</span>
|
|
101
|
+
</snice-input>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
#### Icon Attributes (for emoji and image URLs)
|
|
105
|
+
|
|
106
|
+
```html
|
|
107
|
+
<snice-input prefix-icon="🔍" placeholder="Search"></snice-input>
|
|
108
|
+
<snice-input suffix-icon="✉️" type="email" label="Email"></snice-input>
|
|
109
|
+
<snice-input prefix-icon="/icons/search.svg" placeholder="Search"></snice-input>
|
|
96
110
|
```
|
|
97
111
|
|
|
98
112
|
### Clearable
|
|
@@ -181,7 +181,7 @@ location.addEventListener('location-click', (e) => {
|
|
|
181
181
|
| `longitude` | `number \| string` | `''` | Longitude coordinate |
|
|
182
182
|
| `showMap` (attr: `show-map`) | `boolean` | `false` | Show embedded map |
|
|
183
183
|
| `showIcon` (attr: `show-icon`) | `boolean` | `true` | Show location icon |
|
|
184
|
-
| `icon` | `string` | `'📍'` | Icon (emoji, URL
|
|
184
|
+
| `icon` | `string` | `'📍'` | Icon (emoji, URL). Use slot for icon fonts. |
|
|
185
185
|
| `iconImage` (attr: `icon-image`) | `string` | `''` | Icon image URL |
|
|
186
186
|
| `mapUrl` (attr: `map-url`) | `string` | `''` | Custom map URL |
|
|
187
187
|
| `clickable` | `boolean` | `false` | Make location clickable |
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snice",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.25.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "A decorator-driven web component library with differential rendering, routing, controllers, and 130+ ready-made UI components. Use as much or as little as you want. Zero dependencies, works anywhere.",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
8
8
|
"browser": "dist/index.iife.js",
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
"test:all": "npm run test:src && npm run test:built && npm run test:cdn && npm run test:cdn-runtime && npm run test:react-adapters",
|
|
117
117
|
"prerelease": "npm run build",
|
|
118
118
|
"release": "semantic-release --no-ci",
|
|
119
|
-
"postrelease": "
|
|
119
|
+
"postrelease": "npx wrangler deploy",
|
|
120
120
|
"release:dry": "semantic-release --dry-run --no-ci",
|
|
121
121
|
"website:build": "node scripts/build-website.js && npm run build:showcases && npm run website:stamp",
|
|
122
122
|
"website:build:full": "npm run build:cdn && npm run website:build",
|
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
"@rollup/plugin-typescript": "^12.1.4",
|
|
136
136
|
"@semantic-release/changelog": "^6.0.3",
|
|
137
137
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
138
|
+
"@semantic-release/exec": "^7.1.0",
|
|
138
139
|
"@semantic-release/git": "^10.0.1",
|
|
139
140
|
"@semantic-release/gitlab": "^13.2.6",
|
|
140
141
|
"@semantic-release/npm": "^12.0.2",
|