snice 4.20.1 → 4.22.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/drawer.d.ts +4 -0
- package/adapters/react/drawer.d.ts.map +1 -1
- package/adapters/react/drawer.js +1 -1
- package/adapters/react/drawer.js.map +1 -1
- package/adapters/react/drawer.tsx +5 -1
- package/adapters/react/notification-center.d.ts +1 -0
- package/adapters/react/notification-center.d.ts.map +1 -1
- package/adapters/react/notification-center.js +1 -1
- package/adapters/react/notification-center.js.map +1 -1
- package/adapters/react/notification-center.tsx +2 -1
- package/dist/cdn/accordion/snice-accordion.js +1 -1
- package/dist/cdn/accordion/snice-accordion.min.js +1 -1
- package/dist/cdn/activity-feed/snice-activity-feed.js +1 -1
- package/dist/cdn/activity-feed/snice-activity-feed.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 +2 -2
- package/dist/cdn/app-tiles/snice-app-tiles.js +2 -2
- package/dist/cdn/app-tiles/snice-app-tiles.js.map +1 -1
- package/dist/cdn/app-tiles/snice-app-tiles.min.js +3 -3
- package/dist/cdn/app-tiles/snice-app-tiles.min.js.map +1 -1
- package/dist/cdn/approval-flow/snice-approval-flow.js +1 -1
- package/dist/cdn/approval-flow/snice-approval-flow.min.js +1 -1
- 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/availability/snice-availability.js +1 -1
- package/dist/cdn/availability/snice-availability.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/avatar-group/snice-avatar-group.js +1 -1
- package/dist/cdn/avatar-group/snice-avatar-group.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/snice-book.js +1 -1
- package/dist/cdn/book/snice-book.min.js +1 -1
- package/dist/cdn/booking/snice-booking.js +1 -1
- package/dist/cdn/booking/snice-booking.min.js +1 -1
- 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/cart/README.md +1 -1
- package/dist/cdn/cart/snice-cart.js +24 -20
- package/dist/cdn/cart/snice-cart.js.map +1 -1
- package/dist/cdn/cart/snice-cart.min.js +24 -20
- package/dist/cdn/cart/snice-cart.min.js.map +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/README.md +2 -2
- package/dist/cdn/chat/snice-chat.js +177 -10
- package/dist/cdn/chat/snice-chat.js.map +1 -1
- package/dist/cdn/chat/snice-chat.min.js +49 -17
- package/dist/cdn/chat/snice-chat.min.js.map +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/README.md +1 -1
- package/dist/cdn/code-block/snice-code-block.js +2 -2
- package/dist/cdn/code-block/snice-code-block.js.map +1 -1
- package/dist/cdn/code-block/snice-code-block.min.js +3 -3
- package/dist/cdn/code-block/snice-code-block.min.js.map +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 +2 -2
- package/dist/cdn/command-palette/snice-command-palette.js.map +1 -1
- package/dist/cdn/command-palette/snice-command-palette.min.js +2 -2
- package/dist/cdn/command-palette/snice-command-palette.min.js.map +1 -1
- package/dist/cdn/comments/snice-comments.js +1 -1
- package/dist/cdn/comments/snice-comments.min.js +1 -1
- package/dist/cdn/countdown/snice-countdown.js +1 -1
- package/dist/cdn/countdown/snice-countdown.min.js +1 -1
- package/dist/cdn/cropper/snice-cropper.js +1 -1
- package/dist/cdn/cropper/snice-cropper.min.js +1 -1
- package/dist/cdn/data-card/snice-data-card.js +1 -1
- package/dist/cdn/data-card/snice-data-card.min.js +1 -1
- 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/date-time-picker/snice-date-time-picker.js +1 -1
- package/dist/cdn/date-time-picker/snice-date-time-picker.min.js +1 -1
- package/dist/cdn/diff/snice-diff.js +1 -1
- package/dist/cdn/diff/snice-diff.min.js +1 -1
- 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/README.md +2 -2
- package/dist/cdn/drawer/snice-drawer.js +129 -22
- package/dist/cdn/drawer/snice-drawer.js.map +1 -1
- package/dist/cdn/drawer/snice-drawer.min.js +22 -18
- package/dist/cdn/drawer/snice-drawer.min.js.map +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/estimate/snice-estimate.js +1 -1
- package/dist/cdn/estimate/snice-estimate.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/snice-flip-card.js +1 -1
- package/dist/cdn/flip-card/snice-flip-card.min.js +1 -1
- package/dist/cdn/flow/snice-flow.js +1 -1
- package/dist/cdn/flow/snice-flow.min.js +1 -1
- package/dist/cdn/form-layout/snice-form-layout.js +1 -1
- package/dist/cdn/form-layout/snice-form-layout.min.js +1 -1
- package/dist/cdn/funnel/snice-funnel.js +1 -1
- package/dist/cdn/funnel/snice-funnel.min.js +1 -1
- package/dist/cdn/gantt/snice-gantt.js +1 -1
- package/dist/cdn/gantt/snice-gantt.min.js +1 -1
- package/dist/cdn/gauge/snice-gauge.js +1 -1
- package/dist/cdn/gauge/snice-gauge.min.js +1 -1
- package/dist/cdn/heatmap/README.md +2 -2
- package/dist/cdn/heatmap/snice-heatmap.js +2 -2
- package/dist/cdn/heatmap/snice-heatmap.js.map +1 -1
- package/dist/cdn/heatmap/snice-heatmap.min.js +5 -5
- package/dist/cdn/heatmap/snice-heatmap.min.js.map +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/invoice/snice-invoice.js +1 -1
- package/dist/cdn/invoice/snice-invoice.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/key-value/snice-key-value.js +1 -1
- package/dist/cdn/key-value/snice-key-value.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/leaderboard/snice-leaderboard.js +1 -1
- package/dist/cdn/leaderboard/snice-leaderboard.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/README.md +2 -2
- package/dist/cdn/list/snice-list.js +179 -8
- package/dist/cdn/list/snice-list.js.map +1 -1
- package/dist/cdn/list/snice-list.min.js +45 -9
- package/dist/cdn/list/snice-list.min.js.map +1 -1
- package/dist/cdn/location/snice-location.js +1 -1
- package/dist/cdn/location/snice-location.min.js +1 -1
- package/dist/cdn/login/snice-login.js +1 -1
- package/dist/cdn/login/snice-login.min.js +1 -1
- package/dist/cdn/map/snice-map.js +1 -1
- package/dist/cdn/map/snice-map.min.js +1 -1
- package/dist/cdn/markdown/snice-markdown.js +1 -1
- package/dist/cdn/markdown/snice-markdown.min.js +1 -1
- 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/message-strip/snice-message-strip.js +1 -1
- package/dist/cdn/message-strip/snice-message-strip.min.js +1 -1
- package/dist/cdn/metric-table/snice-metric-table.js +1 -1
- package/dist/cdn/metric-table/snice-metric-table.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 +2 -2
- package/dist/cdn/notification-center/snice-notification-center.js +191 -7
- package/dist/cdn/notification-center/snice-notification-center.js.map +1 -1
- package/dist/cdn/notification-center/snice-notification-center.min.js +57 -14
- package/dist/cdn/notification-center/snice-notification-center.min.js.map +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.js +1 -1
- package/dist/cdn/order-tracker/snice-order-tracker.min.js +1 -1
- package/dist/cdn/org-chart/snice-org-chart.js +1 -1
- package/dist/cdn/org-chart/snice-org-chart.min.js +1 -1
- 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/snice-pdf-viewer.js +1 -1
- package/dist/cdn/pdf-viewer/snice-pdf-viewer.min.js +1 -1
- package/dist/cdn/permission-matrix/snice-permission-matrix.js +1 -1
- package/dist/cdn/permission-matrix/snice-permission-matrix.min.js +1 -1
- package/dist/cdn/podcast-player/snice-podcast-player.js +1 -1
- package/dist/cdn/podcast-player/snice-podcast-player.min.js +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.js +1 -1
- package/dist/cdn/pricing-table/snice-pricing-table.min.js +1 -1
- package/dist/cdn/product-card/README.md +1 -1
- package/dist/cdn/product-card/snice-product-card.js +2 -2
- package/dist/cdn/product-card/snice-product-card.js.map +1 -1
- package/dist/cdn/product-card/snice-product-card.min.js +18 -18
- package/dist/cdn/product-card/snice-product-card.min.js.map +1 -1
- package/dist/cdn/progress/snice-progress.js +1 -1
- package/dist/cdn/progress/snice-progress.min.js +1 -1
- package/dist/cdn/progress-ring/snice-progress-ring.js +1 -1
- package/dist/cdn/progress-ring/snice-progress-ring.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/range-slider/snice-range-slider.js +1 -1
- package/dist/cdn/range-slider/snice-range-slider.min.js +1 -1
- package/dist/cdn/rating/snice-rating.js +1 -1
- package/dist/cdn/rating/snice-rating.min.js +1 -1
- package/dist/cdn/receipt/snice-receipt.js +1 -1
- package/dist/cdn/receipt/snice-receipt.min.js +1 -1
- package/dist/cdn/recipe/snice-recipe.js +1 -1
- package/dist/cdn/recipe/snice-recipe.min.js +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.js +4 -4
- package/dist/cdn/runtime/snice-runtime.esm.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.esm.min.js +4 -4
- package/dist/cdn/runtime/snice-runtime.esm.min.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.js +4 -4
- package/dist/cdn/runtime/snice-runtime.js.map +1 -1
- package/dist/cdn/runtime/snice-runtime.min.js +4 -4
- 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/segmented-control/snice-segmented-control.js +1 -1
- package/dist/cdn/segmented-control/snice-segmented-control.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/snice-sortable.js +1 -1
- package/dist/cdn/sortable/snice-sortable.min.js +1 -1
- 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-button/snice-split-button.js +1 -1
- package/dist/cdn/split-button/snice-split-button.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/snice-spotlight.js +1 -1
- package/dist/cdn/spotlight/snice-spotlight.min.js +1 -1
- package/dist/cdn/spreadsheet/snice-spreadsheet.js +1 -1
- package/dist/cdn/spreadsheet/snice-spreadsheet.min.js +1 -1
- package/dist/cdn/stat-group/snice-stat-group.js +1 -1
- package/dist/cdn/stat-group/snice-stat-group.min.js +1 -1
- package/dist/cdn/step-input/snice-step-input.js +1 -1
- package/dist/cdn/step-input/snice-step-input.min.js +1 -1
- 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/snice-tag.js +1 -1
- package/dist/cdn/tag/snice-tag.min.js +1 -1
- package/dist/cdn/tag-input/snice-tag-input.js +1 -1
- package/dist/cdn/tag-input/snice-tag-input.min.js +1 -1
- package/dist/cdn/terminal/snice-terminal.js +1 -1
- package/dist/cdn/terminal/snice-terminal.min.js +1 -1
- package/dist/cdn/testimonial/snice-testimonial.js +1 -1
- package/dist/cdn/testimonial/snice-testimonial.min.js +1 -1
- package/dist/cdn/textarea/snice-textarea.js +1 -1
- package/dist/cdn/textarea/snice-textarea.min.js +1 -1
- package/dist/cdn/time-picker/snice-time-picker.js +1 -1
- package/dist/cdn/time-picker/snice-time-picker.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/README.md +2 -2
- package/dist/cdn/toast/snice-toast.js +9 -9
- package/dist/cdn/toast/snice-toast.js.map +1 -1
- package/dist/cdn/toast/snice-toast.min.js +12 -12
- package/dist/cdn/toast/snice-toast.min.js.map +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/user-card/snice-user-card.js +1 -1
- package/dist/cdn/user-card/snice-user-card.min.js +1 -1
- package/dist/cdn/video-player/snice-video-player.js +1 -1
- package/dist/cdn/video-player/snice-video-player.min.js +1 -1
- 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/snice-waterfall.js +1 -1
- package/dist/cdn/waterfall/snice-waterfall.min.js +1 -1
- package/dist/cdn/weather/snice-weather.js +1 -1
- package/dist/cdn/weather/snice-weather.min.js +1 -1
- package/dist/cdn/work-order/snice-work-order.js +1 -1
- package/dist/cdn/work-order/snice-work-order.min.js +1 -1
- package/dist/components/app-tiles/snice-app-tiles.d.ts +1 -1
- package/dist/components/app-tiles/snice-app-tiles.js +1 -1
- package/dist/components/app-tiles/snice-app-tiles.js.map +1 -1
- package/dist/components/app-tiles/snice-app-tiles.types.d.ts +1 -1
- package/dist/components/cart/snice-cart.js +23 -19
- package/dist/components/cart/snice-cart.js.map +1 -1
- package/dist/components/chat/snice-chat.d.ts +1 -0
- package/dist/components/chat/snice-chat.js +10 -9
- package/dist/components/chat/snice-chat.js.map +1 -1
- package/dist/components/code-block/snice-code-block.js +1 -1
- package/dist/components/code-block/snice-code-block.js.map +1 -1
- package/dist/components/command-palette/snice-command-palette.js +1 -1
- package/dist/components/command-palette/snice-command-palette.js.map +1 -1
- package/dist/components/drawer/snice-drawer.d.ts +13 -0
- package/dist/components/drawer/snice-drawer.js +128 -21
- package/dist/components/drawer/snice-drawer.js.map +1 -1
- package/dist/components/drawer/snice-drawer.types.d.ts +4 -0
- package/dist/components/heatmap/snice-heatmap.js +1 -1
- package/dist/components/heatmap/snice-heatmap.js.map +1 -1
- package/dist/components/list/snice-list.d.ts +1 -0
- package/dist/components/list/snice-list.js +10 -5
- package/dist/components/list/snice-list.js.map +1 -1
- package/dist/components/notification-center/snice-notification-center.d.ts +2 -0
- package/dist/components/notification-center/snice-notification-center.js +24 -6
- package/dist/components/notification-center/snice-notification-center.js.map +1 -1
- package/dist/components/notification-center/snice-notification-center.types.d.ts +1 -0
- 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/toast/snice-toast.js +8 -8
- 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/components/app-tiles.md +12 -1
- package/docs/ai/components/drawer.md +45 -1
- package/docs/components/app-tiles.md +24 -8
- package/docs/components/drawer.md +65 -0
- package/package.json +1 -1
- package/adapters/react/icon.d.ts +0 -29
- package/adapters/react/icon.d.ts.map +0 -1
- package/adapters/react/icon.js +0 -24
- package/adapters/react/icon.js.map +0 -1
- package/adapters/react/icon.tsx +0 -37
- package/dist/components/icon/snice-icon.d.ts +0 -18
- package/dist/components/icon/snice-icon.types.d.ts +0 -11
- package/docs/ai/components/icon.md +0 -63
- package/docs/components/icon.md +0 -186
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* snice v4.
|
|
2
|
+
* snice v4.21.0
|
|
3
3
|
* Imperative TypeScript framework for building vanilla web components with decorators, differential rendering, routing, and controllers. No virtual DOM, no build complexity.
|
|
4
4
|
* (c) 2024
|
|
5
5
|
* Released under the MIT License.
|
|
@@ -64,7 +64,7 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
64
64
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
var cssContent = ":host{--drawer-width-small:var(--snice-size-drawer-small, 15rem);--drawer-width-medium:var(--snice-size-drawer-medium, 20rem);--drawer-width-large:var(--snice-size-drawer-large, 30rem);--drawer-width-xl:var(--snice-size-drawer-xl, 40rem);--drawer-width-xxl:var(--snice-size-drawer-xxl, 50rem);--drawer-width-xxxl:var(--snice-size-drawer-xxxl, 60rem);--drawer-height-small:var(--snice-size-drawer-height-small, 12.5rem);--drawer-height-medium:var(--snice-size-drawer-height-medium, 25rem);--drawer-height-large:var(--snice-size-drawer-height-large, 37.5rem);--drawer-height-xl:var(--snice-size-drawer-height-xl, 70vh);--drawer-height-xxl:var(--snice-size-drawer-height-xxl, 80vh);--drawer-height-xxxl:var(--snice-size-drawer-height-xxxl, 90vh);--drawer-bg:var(--snice-color-background, white);--drawer-shadow:var(--snice-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1));--drawer-backdrop:var(--snice-color-backdrop, rgba(0, 0, 0, 0.5));--drawer-transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(0.4, 0, 0.2, 1);--drawer-z-index:var(--snice-z-index-modal, 1050);display:block;position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;isolation:isolate;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);contain:layout style paint}:host([contained]){position:absolute;width:100%;height:100%}.drawer-backdrop{position:absolute;inset:0;background:var(--drawer-backdrop);opacity:0;transition:opacity .3s ease-in-out;z-index:var(--drawer-z-index);pointer-events:none;visibility:hidden}:host([open]){pointer-events:auto}:host([open]) .drawer-backdrop{opacity:1;pointer-events:auto;visibility:visible}:host([no-backdrop]) .drawer-backdrop{display:none}.drawer{position:absolute;background:var(--drawer-bg);box-shadow:var(--drawer-shadow);transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(.4, 0, .2, 1),opacity var(--snice-transition-medium, 250ms) cubic-bezier(.2, 0, .8, 1);z-index:calc(var(--drawer-z-index) + 1);display:flex;flex-direction:column;outline:0;overflow:hidden;opacity:0;pointer-events:auto}:host([open]) .drawer{opacity:1}:host(:not([position])) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host(:not([position])[open]) .drawer{transform:translateX(0)}:host([position=left]) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host([position=left][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=left][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=left][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=left][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=left][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=left][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=left][size=full]) .drawer{width:100%}:host([position=left][open]) .drawer{transform:translateX(0)}:host([position=right]) .drawer{top:0;right:0;height:100%;width:var(--drawer-width-medium);transform:translateX(100%)}:host([position=right][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=right][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=right][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=right][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=right][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=right][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=right][size=full]) .drawer{width:100%}:host([position=right][open]) .drawer{transform:translateX(0)}:host([position=top]) .drawer{top:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(-100%)}:host([position=top][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=top][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=top][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=top][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=top][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=top][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=top][size=full]) .drawer{height:100%}:host([position=top][open]) .drawer{transform:translateY(0)}:host([position=bottom]) .drawer{bottom:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(100%)}:host([position=bottom][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=bottom][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=bottom][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=bottom][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=bottom][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=bottom][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=bottom][size=full]) .drawer{height:100%}:host([position=bottom][open]) .drawer{transform:translateY(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-bottom:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-header:has(.drawer-title:empty):not(:has(.drawer-close)){display:none}.drawer-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0;color:var(--snice-color-text,rgb(17 24 39));line-height:var(--snice-line-height-tight, 1.25)}.drawer-close{display:flex;align-items:center;justify-content:center;width:var(--snice-size-control-md,2rem);height:var(--snice-size-control-md,2rem);border:none;background:0 0;border-radius:var(--snice-border-radius-md,6px);cursor:pointer;color:var(--snice-color-text-secondary,rgb(107 114 128));transition:all var(--snice-transition-fast, 150ms) ease}.drawer-close:hover{background:var(--snice-color-background-hover,rgb(243 244 246));color:var(--snice-color-text,rgb(17 24 39))}.drawer-close:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246));outline-offset:var(--snice-focus-ring-offset,2px)}.drawer-body{flex:1;padding:var(--snice-spacing-lg,1.25rem);overflow-y:auto;overflow-x:hidden;color:var(--snice-color-text,rgb(17 24 39))}.drawer-footer{padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-top:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-footer:empty{display:none}@media (prefers-reduced-motion:reduce){.drawer,.drawer-backdrop{transition:none}}@media (max-width:640px){:host([position=left][size=large]) .drawer,:host([position=left][size=medium]) .drawer,:host([position=left][size=xl]) .drawer,:host([position=left][size=xxl]) .drawer,:host([position=left][size=xxxl]) .drawer,:host([position=right][size=large]) .drawer,:host([position=right][size=medium]) .drawer,:host([position=right][size=xl]) .drawer,:host([position=right][size=xxl]) .drawer,:host([position=right][size=xxxl]) .drawer{width:calc(100% - 2.5rem)}}.focus-trap-end,.focus-trap-start{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:host([push-content]){--drawer-push-amount:0px}:host([push-content][position=left][open][size=small]){--drawer-push-amount:var(--drawer-width-small)}:host([push-content][position=left][open][size=medium]){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=left][open][size=large]){--drawer-push-amount:var(--drawer-width-large)}:host([push-content][position=left][open][size=xl]){--drawer-push-amount:var(--drawer-width-xl)}:host([push-content][position=left][open][size=xxl]){--drawer-push-amount:var(--drawer-width-xxl)}:host([push-content][position=left][open][size=xxxl]){--drawer-push-amount:var(--drawer-width-xxxl)}:host([push-content][position=left][open][size=full]){--drawer-push-amount:100vw}:host([push-content][position=left][open]:not([size])){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=right][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-width-small))}:host([push-content][position=right][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=right][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-width-large))}:host([push-content][position=right][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xl))}:host([push-content][position=right][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxl))}:host([push-content][position=right][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxxl))}:host([push-content][position=right][open][size=full]){--drawer-push-amount:-100vw}:host([push-content][position=right][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=top][open][size=small]){--drawer-push-amount:var(--drawer-height-small)}:host([push-content][position=top][open][size=medium]){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=top][open][size=large]){--drawer-push-amount:var(--drawer-height-large)}:host([push-content][position=top][open][size=xl]){--drawer-push-amount:var(--drawer-height-xl)}:host([push-content][position=top][open][size=xxl]){--drawer-push-amount:var(--drawer-height-xxl)}:host([push-content][position=top][open][size=xxxl]){--drawer-push-amount:var(--drawer-height-xxxl)}:host([push-content][position=top][open][size=full]){--drawer-push-amount:100vh}:host([push-content][position=top][open]:not([size])){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=bottom][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-height-small))}:host([push-content][position=bottom][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}:host([push-content][position=bottom][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-height-large))}:host([push-content][position=bottom][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xl))}:host([push-content][position=bottom][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxl))}:host([push-content][position=bottom][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxxl))}:host([push-content][position=bottom][open][size=full]){--drawer-push-amount:-100vh}:host([push-content][position=bottom][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}";
|
|
67
|
+
var cssContent = ":host{--drawer-width-small:var(--snice-size-drawer-small, 15rem);--drawer-width-medium:var(--snice-size-drawer-medium, 20rem);--drawer-width-large:var(--snice-size-drawer-large, 30rem);--drawer-width-xl:var(--snice-size-drawer-xl, 40rem);--drawer-width-xxl:var(--snice-size-drawer-xxl, 50rem);--drawer-width-xxxl:var(--snice-size-drawer-xxxl, 60rem);--drawer-height-small:var(--snice-size-drawer-height-small, 12.5rem);--drawer-height-medium:var(--snice-size-drawer-height-medium, 25rem);--drawer-height-large:var(--snice-size-drawer-height-large, 37.5rem);--drawer-height-xl:var(--snice-size-drawer-height-xl, 70vh);--drawer-height-xxl:var(--snice-size-drawer-height-xxl, 80vh);--drawer-height-xxxl:var(--snice-size-drawer-height-xxxl, 90vh);--drawer-bg:var(--snice-color-background, white);--drawer-shadow:var(--snice-shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1));--drawer-backdrop:var(--snice-color-backdrop, rgba(0, 0, 0, 0.5));--drawer-transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(0.4, 0, 0.2, 1);--drawer-z-index:var(--snice-z-index-modal, 1050);display:block;position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:none;isolation:isolate;font-family:var(--snice-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);contain:layout style paint}:host([contained]){position:absolute;width:100%;height:100%}.drawer-backdrop{position:absolute;inset:0;background:var(--drawer-backdrop);opacity:0;transition:opacity .3s ease-in-out;z-index:var(--drawer-z-index);pointer-events:none;visibility:hidden}:host([open]){pointer-events:auto}:host([open]) .drawer-backdrop{opacity:1;pointer-events:auto;visibility:visible}:host([no-backdrop]) .drawer-backdrop{display:none}.drawer{position:absolute;background:var(--drawer-bg);box-shadow:var(--drawer-shadow);transition:transform var(--snice-transition-medium, 250ms) cubic-bezier(.4, 0, .2, 1),opacity var(--snice-transition-medium, 250ms) cubic-bezier(.2, 0, .8, 1);z-index:calc(var(--drawer-z-index) + 1);display:flex;flex-direction:column;outline:0;overflow:hidden;opacity:0;pointer-events:auto}:host([open]) .drawer{opacity:1}:host(:not([position])) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host(:not([position])[open]) .drawer{transform:translateX(0)}:host([position=left]) .drawer{top:0;left:0;height:100%;width:var(--drawer-width-medium);transform:translateX(-100%)}:host([position=left][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=left][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=left][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=left][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=left][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=left][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=left][size=full]) .drawer{width:100%}:host([position=left][open]) .drawer{transform:translateX(0)}:host([position=right]) .drawer{top:0;right:0;height:100%;width:var(--drawer-width-medium);transform:translateX(100%)}:host([position=right][size=small]) .drawer{width:var(--drawer-width-small)}:host([position=right][size=medium]) .drawer{width:var(--drawer-width-medium)}:host([position=right][size=large]) .drawer{width:var(--drawer-width-large)}:host([position=right][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([position=right][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([position=right][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([position=right][size=full]) .drawer{width:100%}:host([position=right][open]) .drawer{transform:translateX(0)}:host([position=top]) .drawer{top:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(-100%)}:host([position=top][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=top][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=top][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=top][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=top][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=top][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=top][size=full]) .drawer{height:100%}:host([position=top][open]) .drawer{transform:translateY(0)}:host([position=bottom]) .drawer{bottom:0;left:0;width:100%;height:var(--drawer-height-medium);transform:translateY(100%)}:host([position=bottom][size=small]) .drawer{height:var(--drawer-height-small)}:host([position=bottom][size=medium]) .drawer{height:var(--drawer-height-medium)}:host([position=bottom][size=large]) .drawer{height:var(--drawer-height-large)}:host([position=bottom][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([position=bottom][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([position=bottom][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([position=bottom][size=full]) .drawer{height:100%}:host([position=bottom][open]) .drawer{transform:translateY(0)}.drawer-header{display:flex;align-items:center;justify-content:space-between;padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-bottom:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-header:has(.drawer-title:empty):not(:has(.drawer-close)){display:none}.drawer-title{font-size:var(--snice-font-size-lg, 1.125rem);font-weight:var(--snice-font-weight-semibold,600);margin:0;color:var(--snice-color-text,rgb(17 24 39));line-height:var(--snice-line-height-tight, 1.25)}.drawer-close{display:flex;align-items:center;justify-content:center;width:var(--snice-size-control-md,2rem);height:var(--snice-size-control-md,2rem);border:none;background:0 0;border-radius:var(--snice-border-radius-md,6px);cursor:pointer;color:var(--snice-color-text-secondary,rgb(107 114 128));transition:all var(--snice-transition-fast, 150ms) ease}.drawer-close:hover{background:var(--snice-color-background-hover,rgb(243 244 246));color:var(--snice-color-text,rgb(17 24 39))}.drawer-close:focus-visible{outline:var(--snice-focus-ring-width,2px) solid var(--snice-focus-ring-color,rgb(59 130 246));outline-offset:var(--snice-focus-ring-offset,2px)}.drawer-body{flex:1;padding:var(--snice-spacing-lg,1.25rem);overflow-y:auto;overflow-x:hidden;color:var(--snice-color-text,rgb(17 24 39))}.drawer-footer{padding:var(--snice-spacing-md,1rem) var(--snice-spacing-lg,1.25rem);border-top:1px solid var(--snice-color-border,rgb(229 231 235));background:var(--snice-color-background,#fff);flex-shrink:0}.drawer-footer:empty{display:none}@media (prefers-reduced-motion:reduce){.drawer,.drawer-backdrop{transition:none}}@media (max-width:640px){:host([position=left][size=large]) .drawer,:host([position=left][size=medium]) .drawer,:host([position=left][size=xl]) .drawer,:host([position=left][size=xxl]) .drawer,:host([position=left][size=xxxl]) .drawer,:host([position=right][size=large]) .drawer,:host([position=right][size=medium]) .drawer,:host([position=right][size=xl]) .drawer,:host([position=right][size=xxl]) .drawer,:host([position=right][size=xxxl]) .drawer{width:calc(100% - 2.5rem)}}.focus-trap-end,.focus-trap-start{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:host([push-content]){--drawer-push-amount:0px}:host([push-content][position=left][open][size=small]){--drawer-push-amount:var(--drawer-width-small)}:host([push-content][position=left][open][size=medium]){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=left][open][size=large]){--drawer-push-amount:var(--drawer-width-large)}:host([push-content][position=left][open][size=xl]){--drawer-push-amount:var(--drawer-width-xl)}:host([push-content][position=left][open][size=xxl]){--drawer-push-amount:var(--drawer-width-xxl)}:host([push-content][position=left][open][size=xxxl]){--drawer-push-amount:var(--drawer-width-xxxl)}:host([push-content][position=left][open][size=full]){--drawer-push-amount:100vw}:host([push-content][position=left][open]:not([size])){--drawer-push-amount:var(--drawer-width-medium)}:host([push-content][position=right][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-width-small))}:host([push-content][position=right][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=right][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-width-large))}:host([push-content][position=right][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xl))}:host([push-content][position=right][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxl))}:host([push-content][position=right][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-width-xxxl))}:host([push-content][position=right][open][size=full]){--drawer-push-amount:-100vw}:host([push-content][position=right][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-width-medium))}:host([push-content][position=top][open][size=small]){--drawer-push-amount:var(--drawer-height-small)}:host([push-content][position=top][open][size=medium]){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=top][open][size=large]){--drawer-push-amount:var(--drawer-height-large)}:host([push-content][position=top][open][size=xl]){--drawer-push-amount:var(--drawer-height-xl)}:host([push-content][position=top][open][size=xxl]){--drawer-push-amount:var(--drawer-height-xxl)}:host([push-content][position=top][open][size=xxxl]){--drawer-push-amount:var(--drawer-height-xxxl)}:host([push-content][position=top][open][size=full]){--drawer-push-amount:100vh}:host([push-content][position=top][open]:not([size])){--drawer-push-amount:var(--drawer-height-medium)}:host([push-content][position=bottom][open][size=small]){--drawer-push-amount:calc(-1 * var(--drawer-height-small))}:host([push-content][position=bottom][open][size=medium]){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}:host([push-content][position=bottom][open][size=large]){--drawer-push-amount:calc(-1 * var(--drawer-height-large))}:host([push-content][position=bottom][open][size=xl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xl))}:host([push-content][position=bottom][open][size=xxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxl))}:host([push-content][position=bottom][open][size=xxxl]){--drawer-push-amount:calc(-1 * var(--drawer-height-xxxl))}:host([push-content][position=bottom][open][size=full]){--drawer-push-amount:-100vh}:host([push-content][position=bottom][open]:not([size])){--drawer-push-amount:calc(-1 * var(--drawer-height-medium))}:host([inline]){position:static;width:auto;height:auto;pointer-events:auto;contain:layout style}:host([inline]) .drawer-backdrop{display:none}:host([inline]) .drawer{position:static;transform:none;opacity:1;box-shadow:none;z-index:auto;transition:none;border-right:1px solid var(--snice-color-border,rgb(229 231 235))}:host([inline]) .drawer,:host([inline][position=left]) .drawer{width:var(--drawer-width-medium);height:100%}:host([inline]:not([position])[size=small]) .drawer,:host([inline][position=left][size=small]) .drawer{width:var(--drawer-width-small)}:host([inline]:not([position])[size=large]) .drawer,:host([inline][position=left][size=large]) .drawer{width:var(--drawer-width-large)}:host([inline]:not([position])[size=xl]) .drawer,:host([inline][position=left][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([inline]:not([position])[size=xxl]) .drawer,:host([inline][position=left][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([inline]:not([position])[size=xxxl]) .drawer,:host([inline][position=left][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([inline]:not([position])[size=full]) .drawer,:host([inline][position=left][size=full]) .drawer{width:100%}:host([inline][position=right]) .drawer{border-right:none;border-left:1px solid var(--snice-color-border,rgb(229 231 235));width:var(--drawer-width-medium);height:100%}:host([inline][position=right][size=small]) .drawer{width:var(--drawer-width-small)}:host([inline][position=right][size=large]) .drawer{width:var(--drawer-width-large)}:host([inline][position=right][size=xl]) .drawer{width:var(--drawer-width-xl)}:host([inline][position=right][size=xxl]) .drawer{width:var(--drawer-width-xxl)}:host([inline][position=right][size=xxxl]) .drawer{width:var(--drawer-width-xxxl)}:host([inline][position=right][size=full]) .drawer{width:100%}:host([inline][position=top]) .drawer{border-right:none;border-bottom:1px solid var(--snice-color-border,rgb(229 231 235));width:100%;height:var(--drawer-height-medium)}:host([inline][position=top][size=small]) .drawer{height:var(--drawer-height-small)}:host([inline][position=top][size=large]) .drawer{height:var(--drawer-height-large)}:host([inline][position=top][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([inline][position=top][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([inline][position=top][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([inline][position=top][size=full]) .drawer{height:100%}:host([inline][position=bottom]) .drawer{border-right:none;border-top:1px solid var(--snice-color-border,rgb(229 231 235));width:100%;height:var(--drawer-height-medium)}:host([inline][position=bottom][size=small]) .drawer{height:var(--drawer-height-small)}:host([inline][position=bottom][size=large]) .drawer{height:var(--drawer-height-large)}:host([inline][position=bottom][size=xl]) .drawer{height:var(--drawer-height-xl)}:host([inline][position=bottom][size=xxl]) .drawer{height:var(--drawer-height-xxl)}:host([inline][position=bottom][size=xxxl]) .drawer{height:var(--drawer-height-xxxl)}:host([inline][position=bottom][size=full]) .drawer{height:100%}:host([inline]) .focus-trap-end,:host([inline]) .focus-trap-start{display:none}";
|
|
68
68
|
|
|
69
69
|
let SniceDrawer = (() => {
|
|
70
70
|
let _classDecorators = [snice.element('snice-drawer')];
|
|
@@ -82,6 +82,12 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
82
82
|
let _size_decorators;
|
|
83
83
|
let _size_initializers = [];
|
|
84
84
|
let _size_extraInitializers = [];
|
|
85
|
+
let _inline_decorators;
|
|
86
|
+
let _inline_initializers = [];
|
|
87
|
+
let _inline_extraInitializers = [];
|
|
88
|
+
let _breakpoint_decorators;
|
|
89
|
+
let _breakpoint_initializers = [];
|
|
90
|
+
let _breakpoint_extraInitializers = [];
|
|
85
91
|
let _noBackdrop_decorators;
|
|
86
92
|
let _noBackdrop_initializers = [];
|
|
87
93
|
let _noBackdrop_extraInitializers = [];
|
|
@@ -103,6 +109,12 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
103
109
|
let _contained_decorators;
|
|
104
110
|
let _contained_initializers = [];
|
|
105
111
|
let _contained_extraInitializers = [];
|
|
112
|
+
let _noHeader_decorators;
|
|
113
|
+
let _noHeader_initializers = [];
|
|
114
|
+
let _noHeader_extraInitializers = [];
|
|
115
|
+
let _noFooter_decorators;
|
|
116
|
+
let _noFooter_initializers = [];
|
|
117
|
+
let _noFooter_extraInitializers = [];
|
|
106
118
|
let _drawerElement_decorators;
|
|
107
119
|
let _drawerElement_initializers = [];
|
|
108
120
|
let _drawerElement_extraInitializers = [];
|
|
@@ -121,6 +133,7 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
121
133
|
let _render_decorators;
|
|
122
134
|
let _styles_decorators;
|
|
123
135
|
let _init_decorators;
|
|
136
|
+
let _handleBreakpointPropChange_decorators;
|
|
124
137
|
let _handleOpenChange_decorators;
|
|
125
138
|
let _handleBackdropClick_decorators;
|
|
126
139
|
let _handleCloseClick_decorators;
|
|
@@ -134,14 +147,18 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
134
147
|
this.open = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _open_initializers, false));
|
|
135
148
|
this.position = (__runInitializers(this, _open_extraInitializers), __runInitializers(this, _position_initializers, 'left'));
|
|
136
149
|
this.size = (__runInitializers(this, _position_extraInitializers), __runInitializers(this, _size_initializers, 'medium'));
|
|
137
|
-
this.
|
|
150
|
+
this.inline = (__runInitializers(this, _size_extraInitializers), __runInitializers(this, _inline_initializers, false));
|
|
151
|
+
this.breakpoint = (__runInitializers(this, _inline_extraInitializers), __runInitializers(this, _breakpoint_initializers, 0));
|
|
152
|
+
this.noBackdrop = (__runInitializers(this, _breakpoint_extraInitializers), __runInitializers(this, _noBackdrop_initializers, false));
|
|
138
153
|
this.noBackdropDismiss = (__runInitializers(this, _noBackdrop_extraInitializers), __runInitializers(this, _noBackdropDismiss_initializers, false));
|
|
139
154
|
this.noEscapeDismiss = (__runInitializers(this, _noBackdropDismiss_extraInitializers), __runInitializers(this, _noEscapeDismiss_initializers, false));
|
|
140
155
|
this.noFocusTrap = (__runInitializers(this, _noEscapeDismiss_extraInitializers), __runInitializers(this, _noFocusTrap_initializers, false));
|
|
141
156
|
this.persistent = (__runInitializers(this, _noFocusTrap_extraInitializers), __runInitializers(this, _persistent_initializers, false));
|
|
142
157
|
this.pushContent = (__runInitializers(this, _persistent_extraInitializers), __runInitializers(this, _pushContent_initializers, false));
|
|
143
158
|
this.contained = (__runInitializers(this, _pushContent_extraInitializers), __runInitializers(this, _contained_initializers, false));
|
|
144
|
-
this.
|
|
159
|
+
this.noHeader = (__runInitializers(this, _contained_extraInitializers), __runInitializers(this, _noHeader_initializers, false));
|
|
160
|
+
this.noFooter = (__runInitializers(this, _noHeader_extraInitializers), __runInitializers(this, _noFooter_initializers, false));
|
|
161
|
+
this.drawerElement = (__runInitializers(this, _noFooter_extraInitializers), __runInitializers(this, _drawerElement_initializers, void 0));
|
|
145
162
|
this.backdropElement = (__runInitializers(this, _drawerElement_extraInitializers), __runInitializers(this, _backdropElement_initializers, void 0));
|
|
146
163
|
this.closeButton = (__runInitializers(this, _backdropElement_extraInitializers), __runInitializers(this, _closeButton_initializers, void 0));
|
|
147
164
|
this.focusTrapStart = (__runInitializers(this, _closeButton_extraInitializers), __runInitializers(this, _focusTrapStart_initializers, void 0));
|
|
@@ -156,6 +173,8 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
156
173
|
_open_decorators = [snice.property({ type: Boolean, })];
|
|
157
174
|
_position_decorators = [snice.property({})];
|
|
158
175
|
_size_decorators = [snice.property({})];
|
|
176
|
+
_inline_decorators = [snice.property({ type: Boolean, })];
|
|
177
|
+
_breakpoint_decorators = [snice.property({ type: Number })];
|
|
159
178
|
_noBackdrop_decorators = [snice.property({ type: Boolean, attribute: 'no-backdrop', })];
|
|
160
179
|
_noBackdropDismiss_decorators = [snice.property({ type: Boolean, attribute: 'no-backdrop-dismiss', })];
|
|
161
180
|
_noEscapeDismiss_decorators = [snice.property({ type: Boolean, attribute: 'no-escape-dismiss', })];
|
|
@@ -163,6 +182,8 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
163
182
|
_persistent_decorators = [snice.property({ type: Boolean, })];
|
|
164
183
|
_pushContent_decorators = [snice.property({ type: Boolean, attribute: 'push-content', })];
|
|
165
184
|
_contained_decorators = [snice.property({ type: Boolean, })];
|
|
185
|
+
_noHeader_decorators = [snice.property({ type: Boolean, attribute: 'no-header' })];
|
|
186
|
+
_noFooter_decorators = [snice.property({ type: Boolean, attribute: 'no-footer' })];
|
|
166
187
|
_drawerElement_decorators = [snice.query('.drawer')];
|
|
167
188
|
_backdropElement_decorators = [snice.query('.drawer-backdrop')];
|
|
168
189
|
_closeButton_decorators = [snice.query('.drawer-close')];
|
|
@@ -171,6 +192,7 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
171
192
|
_render_decorators = [snice.render()];
|
|
172
193
|
_styles_decorators = [snice.styles()];
|
|
173
194
|
_init_decorators = [snice.ready()];
|
|
195
|
+
_handleBreakpointPropChange_decorators = [snice.watch('breakpoint')];
|
|
174
196
|
_handleOpenChange_decorators = [snice.watch('open')];
|
|
175
197
|
_handleBackdropClick_decorators = [snice.on('click', { target: '.drawer-backdrop' })];
|
|
176
198
|
_handleCloseClick_decorators = [snice.on('click', { target: '.drawer-close' })];
|
|
@@ -180,6 +202,7 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
180
202
|
__esDecorate(this, null, _render_decorators, { kind: "method", name: "render", static: false, private: false, access: { has: obj => "render" in obj, get: obj => obj.render }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
181
203
|
__esDecorate(this, null, _styles_decorators, { kind: "method", name: "styles", static: false, private: false, access: { has: obj => "styles" in obj, get: obj => obj.styles }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
182
204
|
__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);
|
|
205
|
+
__esDecorate(this, null, _handleBreakpointPropChange_decorators, { kind: "method", name: "handleBreakpointPropChange", static: false, private: false, access: { has: obj => "handleBreakpointPropChange" in obj, get: obj => obj.handleBreakpointPropChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
183
206
|
__esDecorate(this, null, _handleOpenChange_decorators, { kind: "method", name: "handleOpenChange", static: false, private: false, access: { has: obj => "handleOpenChange" in obj, get: obj => obj.handleOpenChange }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
184
207
|
__esDecorate(this, null, _handleBackdropClick_decorators, { kind: "method", name: "handleBackdropClick", static: false, private: false, access: { has: obj => "handleBackdropClick" in obj, get: obj => obj.handleBackdropClick }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
185
208
|
__esDecorate(this, null, _handleCloseClick_decorators, { kind: "method", name: "handleCloseClick", static: false, private: false, access: { has: obj => "handleCloseClick" in obj, get: obj => obj.handleCloseClick }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
@@ -189,6 +212,8 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
189
212
|
__esDecorate(null, null, _open_decorators, { kind: "field", name: "open", static: false, private: false, access: { has: obj => "open" in obj, get: obj => obj.open, set: (obj, value) => { obj.open = value; } }, metadata: _metadata }, _open_initializers, _open_extraInitializers);
|
|
190
213
|
__esDecorate(null, null, _position_decorators, { kind: "field", name: "position", static: false, private: false, access: { has: obj => "position" in obj, get: obj => obj.position, set: (obj, value) => { obj.position = value; } }, metadata: _metadata }, _position_initializers, _position_extraInitializers);
|
|
191
214
|
__esDecorate(null, null, _size_decorators, { kind: "field", name: "size", static: false, private: false, access: { has: obj => "size" in obj, get: obj => obj.size, set: (obj, value) => { obj.size = value; } }, metadata: _metadata }, _size_initializers, _size_extraInitializers);
|
|
215
|
+
__esDecorate(null, null, _inline_decorators, { kind: "field", name: "inline", static: false, private: false, access: { has: obj => "inline" in obj, get: obj => obj.inline, set: (obj, value) => { obj.inline = value; } }, metadata: _metadata }, _inline_initializers, _inline_extraInitializers);
|
|
216
|
+
__esDecorate(null, null, _breakpoint_decorators, { kind: "field", name: "breakpoint", static: false, private: false, access: { has: obj => "breakpoint" in obj, get: obj => obj.breakpoint, set: (obj, value) => { obj.breakpoint = value; } }, metadata: _metadata }, _breakpoint_initializers, _breakpoint_extraInitializers);
|
|
192
217
|
__esDecorate(null, null, _noBackdrop_decorators, { kind: "field", name: "noBackdrop", static: false, private: false, access: { has: obj => "noBackdrop" in obj, get: obj => obj.noBackdrop, set: (obj, value) => { obj.noBackdrop = value; } }, metadata: _metadata }, _noBackdrop_initializers, _noBackdrop_extraInitializers);
|
|
193
218
|
__esDecorate(null, null, _noBackdropDismiss_decorators, { kind: "field", name: "noBackdropDismiss", static: false, private: false, access: { has: obj => "noBackdropDismiss" in obj, get: obj => obj.noBackdropDismiss, set: (obj, value) => { obj.noBackdropDismiss = value; } }, metadata: _metadata }, _noBackdropDismiss_initializers, _noBackdropDismiss_extraInitializers);
|
|
194
219
|
__esDecorate(null, null, _noEscapeDismiss_decorators, { kind: "field", name: "noEscapeDismiss", static: false, private: false, access: { has: obj => "noEscapeDismiss" in obj, get: obj => obj.noEscapeDismiss, set: (obj, value) => { obj.noEscapeDismiss = value; } }, metadata: _metadata }, _noEscapeDismiss_initializers, _noEscapeDismiss_extraInitializers);
|
|
@@ -196,6 +221,8 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
196
221
|
__esDecorate(null, null, _persistent_decorators, { kind: "field", name: "persistent", static: false, private: false, access: { has: obj => "persistent" in obj, get: obj => obj.persistent, set: (obj, value) => { obj.persistent = value; } }, metadata: _metadata }, _persistent_initializers, _persistent_extraInitializers);
|
|
197
222
|
__esDecorate(null, null, _pushContent_decorators, { kind: "field", name: "pushContent", static: false, private: false, access: { has: obj => "pushContent" in obj, get: obj => obj.pushContent, set: (obj, value) => { obj.pushContent = value; } }, metadata: _metadata }, _pushContent_initializers, _pushContent_extraInitializers);
|
|
198
223
|
__esDecorate(null, null, _contained_decorators, { kind: "field", name: "contained", static: false, private: false, access: { has: obj => "contained" in obj, get: obj => obj.contained, set: (obj, value) => { obj.contained = value; } }, metadata: _metadata }, _contained_initializers, _contained_extraInitializers);
|
|
224
|
+
__esDecorate(null, null, _noHeader_decorators, { kind: "field", name: "noHeader", static: false, private: false, access: { has: obj => "noHeader" in obj, get: obj => obj.noHeader, set: (obj, value) => { obj.noHeader = value; } }, metadata: _metadata }, _noHeader_initializers, _noHeader_extraInitializers);
|
|
225
|
+
__esDecorate(null, null, _noFooter_decorators, { kind: "field", name: "noFooter", static: false, private: false, access: { has: obj => "noFooter" in obj, get: obj => obj.noFooter, set: (obj, value) => { obj.noFooter = value; } }, metadata: _metadata }, _noFooter_initializers, _noFooter_extraInitializers);
|
|
199
226
|
__esDecorate(null, null, _drawerElement_decorators, { kind: "field", name: "drawerElement", static: false, private: false, access: { has: obj => "drawerElement" in obj, get: obj => obj.drawerElement, set: (obj, value) => { obj.drawerElement = value; } }, metadata: _metadata }, _drawerElement_initializers, _drawerElement_extraInitializers);
|
|
200
227
|
__esDecorate(null, null, _backdropElement_decorators, { kind: "field", name: "backdropElement", static: false, private: false, access: { has: obj => "backdropElement" in obj, get: obj => obj.backdropElement, set: (obj, value) => { obj.backdropElement = value; } }, metadata: _metadata }, _backdropElement_initializers, _backdropElement_extraInitializers);
|
|
201
228
|
__esDecorate(null, null, _closeButton_decorators, { kind: "field", name: "closeButton", static: false, private: false, access: { has: obj => "closeButton" in obj, get: obj => obj.closeButton, set: (obj, value) => { obj.closeButton = value; } }, metadata: _metadata }, _closeButton_initializers, _closeButton_extraInitializers);
|
|
@@ -213,26 +240,30 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
213
240
|
<div class="drawer" role="dialog" aria-modal="true" tabindex="-1" part="base">
|
|
214
241
|
<span class="focus-trap-start" tabindex="0"></span>
|
|
215
242
|
|
|
216
|
-
<
|
|
217
|
-
<
|
|
218
|
-
<
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
<
|
|
222
|
-
<
|
|
223
|
-
<
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
243
|
+
<if ${!this.noHeader}>
|
|
244
|
+
<div class="drawer-header" part="header">
|
|
245
|
+
<h2 class="drawer-title" part="title">
|
|
246
|
+
<slot name="title"></slot>
|
|
247
|
+
</h2>
|
|
248
|
+
<if ${!this.persistent}>
|
|
249
|
+
<button class="drawer-close" type="button" aria-label="Close" part="close">
|
|
250
|
+
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
251
|
+
<path d="M18 6L6 18M6 6l12 12"/>
|
|
252
|
+
</svg>
|
|
253
|
+
</button>
|
|
254
|
+
</if>
|
|
255
|
+
</div>
|
|
256
|
+
</if>
|
|
228
257
|
|
|
229
258
|
<div class="drawer-body" part="body">
|
|
230
259
|
<slot></slot>
|
|
231
260
|
</div>
|
|
232
261
|
|
|
233
|
-
<
|
|
234
|
-
<
|
|
235
|
-
|
|
262
|
+
<if ${!this.noFooter}>
|
|
263
|
+
<div class="drawer-footer" part="footer">
|
|
264
|
+
<slot name="footer"></slot>
|
|
265
|
+
</div>
|
|
266
|
+
</if>
|
|
236
267
|
|
|
237
268
|
<span class="focus-trap-end" tabindex="0"></span>
|
|
238
269
|
</div>
|
|
@@ -251,17 +282,90 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
251
282
|
}
|
|
252
283
|
this.setAttribute('role', 'complementary');
|
|
253
284
|
this.setAttribute('aria-hidden', String(!this.open));
|
|
285
|
+
// Set up breakpoint listener if specified
|
|
286
|
+
if (this.breakpoint > 0) {
|
|
287
|
+
this.setupBreakpointListener();
|
|
288
|
+
}
|
|
254
289
|
// Pre-set transition for push content mode to avoid jump on first use
|
|
255
|
-
if (this.pushContent) {
|
|
290
|
+
if (this.pushContent && !this.isInlineActive()) {
|
|
256
291
|
const mainContent = document.querySelector('main') || document.body;
|
|
257
292
|
if (mainContent && mainContent !== document.body) {
|
|
258
293
|
mainContent.style.transition = 'margin 0.3s cubic-bezier(0.4, 0, 0.2, 1)';
|
|
259
294
|
}
|
|
260
295
|
}
|
|
261
|
-
if (this.open) {
|
|
296
|
+
if (this.open && !this.isInlineActive()) {
|
|
262
297
|
this.handleOpen();
|
|
263
298
|
}
|
|
264
299
|
}
|
|
300
|
+
/** Returns true if the drawer is currently in inline mode (either via `inline` prop or active breakpoint). */
|
|
301
|
+
isInlineActive() {
|
|
302
|
+
return this.inline || this.hasAttribute('inline');
|
|
303
|
+
}
|
|
304
|
+
setupBreakpointListener() {
|
|
305
|
+
// Tear down existing listener
|
|
306
|
+
this.teardownBreakpointListener();
|
|
307
|
+
if (this.breakpoint <= 0)
|
|
308
|
+
return;
|
|
309
|
+
this.breakpointQuery = window.matchMedia(`(min-width: ${this.breakpoint}px)`);
|
|
310
|
+
this.boundBreakpointHandler = (e) => this.handleBreakpointChange(e.matches);
|
|
311
|
+
// Apply initial state
|
|
312
|
+
this.handleBreakpointChange(this.breakpointQuery.matches);
|
|
313
|
+
this.breakpointQuery.addEventListener('change', this.boundBreakpointHandler);
|
|
314
|
+
}
|
|
315
|
+
teardownBreakpointListener() {
|
|
316
|
+
if (this.breakpointQuery && this.boundBreakpointHandler) {
|
|
317
|
+
this.breakpointQuery.removeEventListener('change', this.boundBreakpointHandler);
|
|
318
|
+
this.breakpointQuery = undefined;
|
|
319
|
+
this.boundBreakpointHandler = undefined;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
handleBreakpointChange(matches) {
|
|
323
|
+
const wasInline = this.isInlineActive();
|
|
324
|
+
if (matches) {
|
|
325
|
+
// Above breakpoint → inline mode
|
|
326
|
+
this.setAttribute('inline', '');
|
|
327
|
+
// If was overlay and open, tear down overlay behaviors
|
|
328
|
+
if (!wasInline && this.open) {
|
|
329
|
+
this.teardownOverlayBehaviors();
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
// Below breakpoint → overlay mode
|
|
334
|
+
this.removeAttribute('inline');
|
|
335
|
+
// If was inline and now overlay, re-apply overlay behaviors if open
|
|
336
|
+
if (wasInline && this.open) {
|
|
337
|
+
this.handleOpen();
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
teardownOverlayBehaviors() {
|
|
342
|
+
// Remove escape handler
|
|
343
|
+
if (this.boundHandleEscape) {
|
|
344
|
+
document.removeEventListener('keydown', this.boundHandleEscape);
|
|
345
|
+
this.boundHandleEscape = undefined;
|
|
346
|
+
}
|
|
347
|
+
// Reset push content
|
|
348
|
+
if (this.pushContent) {
|
|
349
|
+
const mainContent = document.querySelector('main') || document.body;
|
|
350
|
+
if (mainContent && mainContent !== document.body) {
|
|
351
|
+
mainContent.style.marginLeft = '';
|
|
352
|
+
mainContent.style.marginTop = '';
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
handleBreakpointPropChange() {
|
|
357
|
+
if (this.breakpoint > 0) {
|
|
358
|
+
this.setupBreakpointListener();
|
|
359
|
+
}
|
|
360
|
+
else {
|
|
361
|
+
this.teardownBreakpointListener();
|
|
362
|
+
// If breakpoint removed, also remove inline if it was set by breakpoint
|
|
363
|
+
// (user's explicit `inline` prop is separate)
|
|
364
|
+
if (!this.inline) {
|
|
365
|
+
this.removeAttribute('inline');
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
265
369
|
handleOpenChange() {
|
|
266
370
|
// Prevent duplicate handling
|
|
267
371
|
if (this._isHandlingOpenChange)
|
|
@@ -269,6 +373,9 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
269
373
|
this._isHandlingOpenChange = true;
|
|
270
374
|
try {
|
|
271
375
|
this.setAttribute('aria-hidden', String(!this.open));
|
|
376
|
+
// In inline mode, skip overlay behaviors entirely
|
|
377
|
+
if (this.isInlineActive())
|
|
378
|
+
return;
|
|
272
379
|
if (this.open) {
|
|
273
380
|
this.handleOpen();
|
|
274
381
|
}
|
|
@@ -421,7 +528,7 @@ var SniceDrawer = (function (exports, snice) {
|
|
|
421
528
|
if (this.boundHandleEscape) {
|
|
422
529
|
document.removeEventListener('keydown', this.boundHandleEscape);
|
|
423
530
|
}
|
|
424
|
-
|
|
531
|
+
this.teardownBreakpointListener();
|
|
425
532
|
}
|
|
426
533
|
// Public API
|
|
427
534
|
show() {
|