@marioschmidt/design-system-components 1.2.3 → 1.3.1
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/dist/bds/bds.css +1 -1
- package/dist/bds/bds.esm.js +1 -1
- package/dist/bds/p-DUrpTa_b.js +2 -0
- package/dist/bds/p-f4e1fe1f.entry.js +1 -0
- package/dist/cjs/bds.cjs.js +2 -2
- package/dist/cjs/ds-button_3.cjs.entry.js +216 -0
- package/dist/cjs/{index-C1TiKrp-.js → index-yDPq0GyD.js} +106 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/ds-button/ds-button.css +12 -0
- package/dist/collection/ds-button/ds-button.js +1 -1
- package/dist/collection/ds-card/ds-card.js +2 -2
- package/dist/collection/ds-icon/ds-icon.css +75 -0
- package/dist/collection/ds-icon/ds-icon.js +317 -0
- package/dist/components/ds-button.js +1 -1
- package/dist/components/ds-card.js +1 -1
- package/dist/components/ds-icon.d.ts +11 -0
- package/dist/components/ds-icon.js +1 -0
- package/dist/components/index.js +1 -1
- package/dist/docs/ds-icon/readme.md +19 -0
- package/dist/esm/bds.js +3 -3
- package/dist/esm/ds-button_3.entry.js +212 -0
- package/dist/esm/{index-s-li7f6Q.js → index-DUrpTa_b.js} +106 -7
- package/dist/esm/loader.js +3 -3
- package/dist/types/components.d.ts +71 -0
- package/dist/types/ds-icon/ds-icon.d.ts +58 -0
- package/dist/www/build/bds.css +1 -1
- package/dist/www/build/bds.esm.js +1 -1
- package/dist/www/build/p-9fd9fa5d.css +1 -0
- package/dist/www/build/p-DUrpTa_b.js +2 -0
- package/dist/www/build/p-f4e1fe1f.entry.js +1 -0
- package/dist/www/css/advertorial/components/_dsysdocs.css +1 -1
- package/dist/www/css/advertorial/components/article.css +1 -1
- package/dist/www/css/advertorial/components/audioplayer.css +1 -1
- package/dist/www/css/advertorial/components/avatar.css +1 -1
- package/dist/www/css/advertorial/components/badge.css +1 -1
- package/dist/www/css/advertorial/components/breadcrumb.css +1 -1
- package/dist/www/css/advertorial/components/breakingnews.css +1 -1
- package/dist/www/css/advertorial/components/button.css +1 -1
- package/dist/www/css/advertorial/components/card.css +1 -1
- package/dist/www/css/advertorial/components/carousel.css +1 -1
- package/dist/www/css/advertorial/components/chip.css +1 -1
- package/dist/www/css/advertorial/components/datepicker.css +1 -1
- package/dist/www/css/advertorial/components/drawers.css +1 -1
- package/dist/www/css/advertorial/components/dropdown.css +1 -1
- package/dist/www/css/advertorial/components/footer.css +1 -1
- package/dist/www/css/advertorial/components/icon.css +1 -1
- package/dist/www/css/advertorial/components/iconbutton.css +1 -1
- package/dist/www/css/advertorial/components/infoelement.css +1 -1
- package/dist/www/css/advertorial/components/inputfield.css +1 -1
- package/dist/www/css/advertorial/components/liveticker.css +1 -1
- package/dist/www/css/advertorial/components/mediaplayer.css +1 -1
- package/dist/www/css/advertorial/components/menu.css +1 -1
- package/dist/www/css/advertorial/components/newsticker.css +1 -1
- package/dist/www/css/advertorial/components/pagination.css +1 -1
- package/dist/www/css/advertorial/components/paywall.css +1 -1
- package/dist/www/css/advertorial/components/quote.css +1 -1
- package/dist/www/css/advertorial/components/radiobutton.css +1 -1
- package/dist/www/css/advertorial/components/search.css +1 -1
- package/dist/www/css/advertorial/components/sectiontitle.css +1 -1
- package/dist/www/css/advertorial/components/separator.css +1 -1
- package/dist/www/css/advertorial/components/skeletons.css +1 -1
- package/dist/www/css/advertorial/components/slider.css +1 -1
- package/dist/www/css/advertorial/components/specialnavi.css +1 -1
- package/dist/www/css/advertorial/components/spinner.css +1 -1
- package/dist/www/css/advertorial/components/tab.css +1 -1
- package/dist/www/css/advertorial/components/table.css +1 -1
- package/dist/www/css/advertorial/components/teaser.css +1 -1
- package/dist/www/css/advertorial/components/toggleswitch.css +1 -1
- package/dist/www/css/advertorial/components/video.css +1 -1
- package/dist/www/css/advertorial/theme.css +1 -1
- package/dist/www/css/advertorial/tokens.css +1 -1
- package/dist/www/css/bild/components/_dsysdoc.css +1 -1
- package/dist/www/css/bild/components/_dsysdocs.css +1 -1
- package/dist/www/css/bild/components/alert.css +1 -1
- package/dist/www/css/bild/components/article.css +1 -1
- package/dist/www/css/bild/components/audioplayer.css +1 -1
- package/dist/www/css/bild/components/avatar.css +1 -1
- package/dist/www/css/bild/components/badge.css +1 -1
- package/dist/www/css/bild/components/breadcrumb.css +1 -1
- package/dist/www/css/bild/components/breakingnews.css +1 -1
- package/dist/www/css/bild/components/button.css +1 -1
- package/dist/www/css/bild/components/card.css +1 -1
- package/dist/www/css/bild/components/carousel.css +1 -1
- package/dist/www/css/bild/components/chip.css +1 -1
- package/dist/www/css/bild/components/datepicker.css +1 -1
- package/dist/www/css/bild/components/drawers.css +1 -1
- package/dist/www/css/bild/components/dropdown.css +1 -1
- package/dist/www/css/bild/components/empties.css +1 -1
- package/dist/www/css/bild/components/footer.css +1 -1
- package/dist/www/css/bild/components/gallery.css +1 -1
- package/dist/www/css/bild/components/icon.css +1 -1
- package/dist/www/css/bild/components/iconbutton.css +1 -1
- package/dist/www/css/bild/components/infoelement.css +1 -1
- package/dist/www/css/bild/components/inputfield.css +1 -1
- package/dist/www/css/bild/components/kicker.css +1 -1
- package/dist/www/css/bild/components/liveticker.css +1 -1
- package/dist/www/css/bild/components/mediaplayer.css +1 -1
- package/dist/www/css/bild/components/menu.css +1 -1
- package/dist/www/css/bild/components/menuitem.css +1 -1
- package/dist/www/css/bild/components/newsticker.css +1 -1
- package/dist/www/css/bild/components/pagination.css +1 -1
- package/dist/www/css/bild/components/partnerlinks.css +1 -1
- package/dist/www/css/bild/components/paywall.css +1 -1
- package/dist/www/css/bild/components/quote.css +1 -1
- package/dist/www/css/bild/components/radiobutton.css +1 -1
- package/dist/www/css/bild/components/search.css +1 -1
- package/dist/www/css/bild/components/sectiontitle.css +1 -1
- package/dist/www/css/bild/components/selection.css +1 -1
- package/dist/www/css/bild/components/separator.css +1 -1
- package/dist/www/css/bild/components/skeletons.css +1 -1
- package/dist/www/css/bild/components/slider.css +1 -1
- package/dist/www/css/bild/components/specialnavi.css +1 -1
- package/dist/www/css/bild/components/spinner.css +1 -1
- package/dist/www/css/bild/components/subheader.css +1 -1
- package/dist/www/css/bild/components/tab.css +1 -1
- package/dist/www/css/bild/components/table.css +1 -1
- package/dist/www/css/bild/components/teaser.css +1 -1
- package/dist/www/css/bild/components/toggleswitch.css +1 -1
- package/dist/www/css/bild/components/video.css +1 -1
- package/dist/www/css/bild/theme.css +1 -15
- package/dist/www/css/bild/tokens.css +1 -1
- package/dist/www/css/bundles/advertorial.css +1 -1
- package/dist/www/css/bundles/bild.css +1 -15
- package/dist/www/css/bundles/sportbild.css +1 -15
- package/dist/www/css/shared/colorprimitive.css +1 -1
- package/dist/www/css/shared/fontprimitive.css +1 -1
- package/dist/www/css/shared/primitives.css +1 -1
- package/dist/www/css/shared/sizeprimitive.css +1 -1
- package/dist/www/css/shared/spaceprimitive.css +1 -1
- package/dist/www/css/sportbild/components/_dsysdoc.css +1 -1
- package/dist/www/css/sportbild/components/_dsysdocs.css +1 -1
- package/dist/www/css/sportbild/components/alert.css +1 -1
- package/dist/www/css/sportbild/components/article.css +1 -1
- package/dist/www/css/sportbild/components/audioplayer.css +1 -1
- package/dist/www/css/sportbild/components/avatar.css +1 -1
- package/dist/www/css/sportbild/components/badge.css +1 -1
- package/dist/www/css/sportbild/components/breadcrumb.css +1 -1
- package/dist/www/css/sportbild/components/breakingnews.css +1 -1
- package/dist/www/css/sportbild/components/button.css +1 -1
- package/dist/www/css/sportbild/components/card.css +1 -1
- package/dist/www/css/sportbild/components/carousel.css +1 -1
- package/dist/www/css/sportbild/components/chip.css +1 -1
- package/dist/www/css/sportbild/components/datepicker.css +1 -1
- package/dist/www/css/sportbild/components/drawers.css +1 -1
- package/dist/www/css/sportbild/components/dropdown.css +1 -1
- package/dist/www/css/sportbild/components/empties.css +1 -1
- package/dist/www/css/sportbild/components/footer.css +1 -1
- package/dist/www/css/sportbild/components/gallery.css +1 -1
- package/dist/www/css/sportbild/components/icon.css +1 -1
- package/dist/www/css/sportbild/components/iconbutton.css +1 -1
- package/dist/www/css/sportbild/components/infoelement.css +1 -1
- package/dist/www/css/sportbild/components/inputfield.css +1 -1
- package/dist/www/css/sportbild/components/kicker.css +1 -1
- package/dist/www/css/sportbild/components/liveticker.css +1 -1
- package/dist/www/css/sportbild/components/mediaplayer.css +1 -1
- package/dist/www/css/sportbild/components/menu.css +1 -1
- package/dist/www/css/sportbild/components/menuitem.css +1 -1
- package/dist/www/css/sportbild/components/newsticker.css +1 -1
- package/dist/www/css/sportbild/components/pagination.css +1 -1
- package/dist/www/css/sportbild/components/partnerlinks.css +1 -1
- package/dist/www/css/sportbild/components/paywall.css +1 -1
- package/dist/www/css/sportbild/components/quote.css +1 -1
- package/dist/www/css/sportbild/components/radiobutton.css +1 -1
- package/dist/www/css/sportbild/components/search.css +1 -1
- package/dist/www/css/sportbild/components/sectiontitle.css +1 -1
- package/dist/www/css/sportbild/components/selection.css +1 -1
- package/dist/www/css/sportbild/components/separator.css +1 -1
- package/dist/www/css/sportbild/components/skeletons.css +1 -1
- package/dist/www/css/sportbild/components/slider.css +1 -1
- package/dist/www/css/sportbild/components/specialnavi.css +1 -1
- package/dist/www/css/sportbild/components/spinner.css +1 -1
- package/dist/www/css/sportbild/components/subheader.css +1 -1
- package/dist/www/css/sportbild/components/tab.css +1 -1
- package/dist/www/css/sportbild/components/table.css +1 -1
- package/dist/www/css/sportbild/components/teaser.css +1 -1
- package/dist/www/css/sportbild/components/toggleswitch.css +1 -1
- package/dist/www/css/sportbild/components/video.css +1 -1
- package/dist/www/css/sportbild/theme.css +1 -15
- package/dist/www/css/sportbild/tokens.css +1 -1
- package/dist/www/icons/2-liga-logo.svg +1 -0
- package/dist/www/icons/account.svg +1 -0
- package/dist/www/icons/add.svg +1 -0
- package/dist/www/icons/adjust.svg +1 -0
- package/dist/www/icons/android.svg +1 -0
- package/dist/www/icons/apple-ios.svg +1 -0
- package/dist/www/icons/arrow-down.svg +1 -0
- package/dist/www/icons/arrow-left.svg +1 -0
- package/dist/www/icons/arrow-right.svg +1 -0
- package/dist/www/icons/arrow-up.svg +1 -0
- package/dist/www/icons/arscan.svg +1 -0
- package/dist/www/icons/auto.svg +1 -0
- package/dist/www/icons/autobild-logo.svg +1 -0
- package/dist/www/icons/bams-logo.svg +1 -0
- package/dist/www/icons/basketball.svg +1 -0
- package/dist/www/icons/bild-club-logo.svg +1 -0
- package/dist/www/icons/bild-logo.svg +1 -0
- package/dist/www/icons/bildplay-logo.svg +1 -0
- package/dist/www/icons/bildplus-logo-simple.svg +1 -0
- package/dist/www/icons/bildplus-logo.svg +1 -0
- package/dist/www/icons/bin.svg +1 -0
- package/dist/www/icons/bookmark.svg +1 -0
- package/dist/www/icons/boxing.svg +1 -0
- package/dist/www/icons/bundesliga-logo.svg +1 -0
- package/dist/www/icons/burgermenu.svg +1 -0
- package/dist/www/icons/calendar.svg +1 -0
- package/dist/www/icons/camera.svg +1 -0
- package/dist/www/icons/cards.svg +1 -0
- package/dist/www/icons/checklist.svg +1 -0
- package/dist/www/icons/checkmark-circled.svg +1 -0
- package/dist/www/icons/checkmark.svg +1 -0
- package/dist/www/icons/chevron-down.svg +1 -0
- package/dist/www/icons/chevron-left.svg +1 -0
- package/dist/www/icons/chevron-right.svg +1 -0
- package/dist/www/icons/chevron-up.svg +1 -0
- package/dist/www/icons/clock.svg +1 -0
- package/dist/www/icons/close.svg +1 -0
- package/dist/www/icons/comment.svg +1 -0
- package/dist/www/icons/computerbild-logo.svg +1 -0
- package/dist/www/icons/controller.svg +1 -0
- package/dist/www/icons/copy.svg +1 -0
- package/dist/www/icons/credit-card.svg +1 -0
- package/dist/www/icons/dark-mode.svg +1 -0
- package/dist/www/icons/data-protection.svg +1 -0
- package/dist/www/icons/desktop-checkmark.svg +1 -0
- package/dist/www/icons/desktop-questionmark.svg +1 -0
- package/dist/www/icons/desktop.svg +1 -0
- package/dist/www/icons/digital.svg +1 -0
- package/dist/www/icons/download.svg +1 -0
- package/dist/www/icons/edit.svg +1 -0
- package/dist/www/icons/enter-fullscreen.svg +1 -0
- package/dist/www/icons/erotik.svg +1 -0
- package/dist/www/icons/exclamationmark-circle.svg +1 -0
- package/dist/www/icons/exit-fullscreen.svg +1 -0
- package/dist/www/icons/external-intext.svg +1 -0
- package/dist/www/icons/external-link.svg +1 -0
- package/dist/www/icons/fast-back-chevron.svg +1 -0
- package/dist/www/icons/fast-back-filled.svg +1 -0
- package/dist/www/icons/fast-back.svg +1 -0
- package/dist/www/icons/fast-forward-chevron.svg +1 -0
- package/dist/www/icons/fast-forward-filled.svg +1 -0
- package/dist/www/icons/fast-forward.svg +1 -0
- package/dist/www/icons/fast-upward.svg +1 -0
- package/dist/www/icons/football.svg +1 -0
- package/dist/www/icons/fussball.svg +1 -0
- package/dist/www/icons/geld.svg +1 -0
- package/dist/www/icons/gesundheit.svg +1 -0
- package/dist/www/icons/gewinnspiele.svg +1 -0
- package/dist/www/icons/gtcs.svg +1 -0
- package/dist/www/icons/handball.svg +1 -0
- package/dist/www/icons/headphones.svg +1 -0
- package/dist/www/icons/heart.svg +1 -0
- package/dist/www/icons/hey-logo.svg +1 -0
- package/dist/www/icons/hide.svg +1 -0
- package/dist/www/icons/history.svg +1 -0
- package/dist/www/icons/hockey.svg +1 -0
- package/dist/www/icons/home.svg +1 -0
- package/dist/www/icons/horoskop.svg +1 -0
- package/dist/www/icons/image-gallery.svg +1 -0
- package/dist/www/icons/image.svg +1 -0
- package/dist/www/icons/imprint.svg +1 -0
- package/dist/www/icons/information.svg +1 -0
- package/dist/www/icons/input.svg +1 -0
- package/dist/www/icons/kino.svg +1 -0
- package/dist/www/icons/lifestyle.svg +1 -0
- package/dist/www/icons/light-mode.svg +1 -0
- package/dist/www/icons/list-checked.svg +1 -0
- package/dist/www/icons/live-badge.svg +1 -0
- package/dist/www/icons/locked.svg +1 -0
- package/dist/www/icons/log-out.svg +1 -0
- package/dist/www/icons/logged-in.svg +1 -0
- package/dist/www/icons/login.svg +1 -0
- package/dist/www/icons/lotto.svg +1 -0
- package/dist/www/icons/mail.svg +1 -0
- package/dist/www/icons/manifest.json +33 -0
- package/dist/www/icons/marktplatz-logo.svg +1 -0
- package/dist/www/icons/maximize-pip.svg +1 -0
- package/dist/www/icons/maximize.svg +1 -0
- package/dist/www/icons/mein-verein.svg +1 -0
- package/dist/www/icons/menu.svg +1 -0
- package/dist/www/icons/minimize-pip.svg +1 -0
- package/dist/www/icons/minimize.svg +1 -0
- package/dist/www/icons/motorsport.svg +1 -0
- package/dist/www/icons/mute.svg +1 -0
- package/dist/www/icons/mypass.svg +1 -0
- package/dist/www/icons/netid.svg +1 -0
- package/dist/www/icons/news-ticker.svg +1 -0
- package/dist/www/icons/news.svg +1 -0
- package/dist/www/icons/notifications-off.svg +1 -0
- package/dist/www/icons/notifications-on.svg +1 -0
- package/dist/www/icons/ost-sport.svg +1 -0
- package/dist/www/icons/paper.svg +1 -0
- package/dist/www/icons/participate.svg +1 -0
- package/dist/www/icons/pause-filled.svg +1 -0
- package/dist/www/icons/pause.svg +1 -0
- package/dist/www/icons/payment-mastercard.svg +1 -0
- package/dist/www/icons/pin.svg +1 -0
- package/dist/www/icons/placeholder.svg +1 -0
- package/dist/www/icons/play-filled.svg +1 -0
- package/dist/www/icons/play.svg +1 -0
- package/dist/www/icons/podcast-amazon.svg +1 -0
- package/dist/www/icons/podcast-applepodcast.svg +1 -0
- package/dist/www/icons/podcast-deezer.svg +1 -0
- package/dist/www/icons/podcast-googlepodcasts.svg +1 -0
- package/dist/www/icons/podcast-spotify.svg +1 -0
- package/dist/www/icons/politik.svg +1 -0
- package/dist/www/icons/push-notification.svg +1 -0
- package/dist/www/icons/questionmark-circle.svg +1 -0
- package/dist/www/icons/quote.svg +1 -0
- package/dist/www/icons/raetsel.svg +1 -0
- package/dist/www/icons/ratgeber.svg +1 -0
- package/dist/www/icons/regio.svg +1 -0
- package/dist/www/icons/reise.svg +1 -0
- package/dist/www/icons/reload.svg +1 -0
- package/dist/www/icons/replay.svg +1 -0
- package/dist/www/icons/ressorts.svg +1 -0
- package/dist/www/icons/revocation.svg +1 -0
- package/dist/www/icons/rewind-ten-sec.svg +1 -0
- package/dist/www/icons/search.svg +1 -0
- package/dist/www/icons/send.svg +1 -0
- package/dist/www/icons/settings.svg +1 -0
- package/dist/www/icons/sex-und-liebe.svg +1 -0
- package/dist/www/icons/share.svg +1 -0
- package/dist/www/icons/sharecast.svg +1 -0
- package/dist/www/icons/shopping-cart.svg +1 -0
- package/dist/www/icons/show.svg +1 -0
- package/dist/www/icons/sign-up.svg +1 -0
- package/dist/www/icons/skip-next-chevron.svg +1 -0
- package/dist/www/icons/skip-next-filled.svg +1 -0
- package/dist/www/icons/skip-next.svg +1 -0
- package/dist/www/icons/skip-previous-chevron.svg +1 -0
- package/dist/www/icons/skip-previous-filled.svg +1 -0
- package/dist/www/icons/skip-previous.svg +1 -0
- package/dist/www/icons/skip-ten-sec.svg +1 -0
- package/dist/www/icons/smartphone.svg +1 -0
- package/dist/www/icons/social-facebook.svg +1 -0
- package/dist/www/icons/social-fb-messagner.svg +1 -0
- package/dist/www/icons/social-google.svg +1 -0
- package/dist/www/icons/social-instagram.svg +1 -0
- package/dist/www/icons/social-linkedin.svg +1 -0
- package/dist/www/icons/social-snapchat.svg +1 -0
- package/dist/www/icons/social-whatsapp.svg +1 -0
- package/dist/www/icons/social-x-twitter.svg +1 -0
- package/dist/www/icons/social-xing.svg +1 -0
- package/dist/www/icons/social-youtube.svg +1 -0
- package/dist/www/icons/speed.svg +1 -0
- package/dist/www/icons/sport-bild-logo.svg +1 -0
- package/dist/www/icons/sport-live.svg +1 -0
- package/dist/www/icons/sport-ticker.svg +1 -0
- package/dist/www/icons/sport.svg +1 -0
- package/dist/www/icons/sportimtv.svg +1 -0
- package/dist/www/icons/ssl.svg +1 -0
- package/dist/www/icons/star.svg +1 -0
- package/dist/www/icons/substract.svg +1 -0
- package/dist/www/icons/sz-ticker.svg +1 -0
- package/dist/www/icons/telephone.svg +1 -0
- package/dist/www/icons/tennis.svg +1 -0
- package/dist/www/icons/three-dot-horizontal.svg +1 -0
- package/dist/www/icons/three-dot-vertical.svg +1 -0
- package/dist/www/icons/thumbs-down.svg +1 -0
- package/dist/www/icons/thumbs-up.svg +1 -0
- package/dist/www/icons/trending.svg +1 -0
- package/dist/www/icons/tv.svg +1 -0
- package/dist/www/icons/unlocked.svg +1 -0
- package/dist/www/icons/unquote.svg +1 -0
- package/dist/www/icons/unterhaltung.svg +1 -0
- package/dist/www/icons/upload.svg +1 -0
- package/dist/www/icons/us-sport.svg +1 -0
- package/dist/www/icons/verimi.svg +1 -0
- package/dist/www/icons/video-error.svg +1 -0
- package/dist/www/icons/video-recommendations.svg +1 -0
- package/dist/www/icons/video.svg +1 -0
- package/dist/www/icons/volume-down.svg +1 -0
- package/dist/www/icons/volume-up.svg +1 -0
- package/dist/www/icons/vote.svg +1 -0
- package/dist/www/icons/warning.svg +1 -0
- package/dist/www/icons/web.svg +1 -0
- package/dist/www/icons/wetter.svg +1 -0
- package/dist/www/icons/wrestling.svg +1 -0
- package/dist/www/icons/zoom-in.svg +1 -0
- package/dist/www/index.html +2 -2
- package/package.json +1 -1
- package/dist/bds/p-f2524bbf.entry.js +0 -1
- package/dist/bds/p-s-li7f6Q.js +0 -2
- package/dist/cjs/ds-button_2.cjs.entry.js +0 -51
- package/dist/esm/ds-button_2.entry.js +0 -48
- package/dist/www/build/p-d7a25db0.css +0 -1
- package/dist/www/build/p-f2524bbf.entry.js +0 -1
- package/dist/www/build/p-s-li7f6Q.js +0 -2
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-yDPq0GyD.js');
|
|
4
4
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await index.globalScripts();
|
|
8
|
-
return index.bootstrapLazy([["ds-
|
|
8
|
+
return index.bootstrapLazy([["ds-button_3.cjs",[[257,"ds-button",{"variant":[1],"disabled":[4]}],[257,"ds-card",{"surface":[1],"cardTitle":[1,"card-title"]}],[1,"ds-icon",{"name":[1],"size":[2],"color":[1],"basePath":[1,"base-path"],"lazy":[4],"label":[1],"svgContent":[32],"isLoading":[32],"hasError":[32]},null,{"name":[{"onNameChange":0}],"basePath":[{"onBasePathChange":0}]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.setNonce = index.setNonce;
|
|
@@ -49,6 +49,18 @@
|
|
|
49
49
|
gap: inherit;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
/* =============================================================================
|
|
53
|
+
ICON SLOTS
|
|
54
|
+
Styling for slotted icons (icon-start and icon-end)
|
|
55
|
+
Icons use --icon-size token (24px) and inherit label color from button
|
|
56
|
+
============================================================================= */
|
|
57
|
+
|
|
58
|
+
::slotted(ds-icon) {
|
|
59
|
+
--icon-size: var(--icon-size, 24px);
|
|
60
|
+
color: inherit;
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
52
64
|
/* =============================================================================
|
|
53
65
|
PRIMARY BRAND VARIANT
|
|
54
66
|
Main call-to-action with brand color (BILD red, SportBILD blue)
|
|
@@ -17,7 +17,7 @@ export class DsButton {
|
|
|
17
17
|
'ds-button': true,
|
|
18
18
|
[`ds-button--${this.variant}`]: true,
|
|
19
19
|
'ds-button--disabled': this.disabled,
|
|
20
|
-
}, disabled: this.disabled }, h("span", { key: '
|
|
20
|
+
}, disabled: this.disabled }, h("slot", { key: 'c87fb66dffa329b2911752390d69d808aea83ead', name: "icon-start" }), h("span", { key: '3049998d0fca7eef41dc5bbc51ab14d396855840', class: "ds-button__label" }, h("slot", { key: '540e93a8de6f0be305963e7b05b90dcbacda6f37' })), h("slot", { key: 'f48be5683052a40bb97436f20b219a42fb09319a', name: "icon-end" })));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "ds-button"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,10 +7,10 @@ export class DsCard {
|
|
|
7
7
|
this.surface = 'primary';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h("div", { key: '
|
|
10
|
+
return (h("div", { key: '0709463754ee76974475f214840ade290ee7aa83', class: {
|
|
11
11
|
'ds-card': true,
|
|
12
12
|
[`ds-card--${this.surface}`]: true,
|
|
13
|
-
} }, this.cardTitle && (h("div", { key: '
|
|
13
|
+
} }, this.cardTitle && (h("div", { key: 'e161468e870e419852e6ef9f92ab9fc24ac60635', class: "ds-card__header" }, h("h3", { key: '8cccde3f7e5ea185ef24d90312439d2e49621504', class: "ds-card__title" }, this.cardTitle))), h("div", { key: '47457839b1fa00f261c1fbfb8842904fb9bf8245', class: "ds-card__content" }, h("slot", { key: '009a1b1e7411daec2c67fd084d654de71875222e' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "ds-card"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* =============================================================================
|
|
2
|
+
DS-ICON Component Styles
|
|
3
|
+
|
|
4
|
+
Token-based styling for the icon component.
|
|
5
|
+
Icons inherit color from parent by default (currentColor).
|
|
6
|
+
============================================================================= */
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* =============================================================================
|
|
15
|
+
BASE STYLES
|
|
16
|
+
============================================================================= */
|
|
17
|
+
|
|
18
|
+
.ds-icon {
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
width: var(--icon-size, 24px);
|
|
23
|
+
height: var(--icon-size, 24px);
|
|
24
|
+
color: var(--icon-color, currentColor);
|
|
25
|
+
flex-shrink: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* =============================================================================
|
|
29
|
+
SVG CONTAINER
|
|
30
|
+
============================================================================= */
|
|
31
|
+
|
|
32
|
+
.ds-icon__svg {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Target the SVG element inside the container */
|
|
41
|
+
.ds-icon__svg svg {
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
fill: currentColor;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* =============================================================================
|
|
48
|
+
LOADING STATE
|
|
49
|
+
============================================================================= */
|
|
50
|
+
|
|
51
|
+
.ds-icon--loading {
|
|
52
|
+
opacity: 0.5;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* =============================================================================
|
|
56
|
+
ERROR STATE
|
|
57
|
+
============================================================================= */
|
|
58
|
+
|
|
59
|
+
.ds-icon--error {
|
|
60
|
+
opacity: 0.3;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.ds-icon__error {
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
width: 100%;
|
|
68
|
+
height: 100%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ds-icon__error svg {
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 100%;
|
|
74
|
+
fill: currentColor;
|
|
75
|
+
}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* Icon cache shared between all ds-icon instances.
|
|
4
|
+
* Prevents duplicate fetch requests for the same icon.
|
|
5
|
+
*/
|
|
6
|
+
const iconCache = new Map();
|
|
7
|
+
const pendingRequests = new Map();
|
|
8
|
+
export class DsIcon {
|
|
9
|
+
constructor() {
|
|
10
|
+
/**
|
|
11
|
+
* Size of the icon in pixels.
|
|
12
|
+
* @default 24
|
|
13
|
+
*/
|
|
14
|
+
this.size = 24;
|
|
15
|
+
/**
|
|
16
|
+
* Color of the icon. Accepts any valid CSS color value.
|
|
17
|
+
* Icons use currentColor by default, inheriting from parent.
|
|
18
|
+
* @default 'currentColor'
|
|
19
|
+
*/
|
|
20
|
+
this.color = 'currentColor';
|
|
21
|
+
/**
|
|
22
|
+
* Base path for loading icon SVG files.
|
|
23
|
+
* @default '/icons'
|
|
24
|
+
*/
|
|
25
|
+
this.basePath = '/icons';
|
|
26
|
+
/**
|
|
27
|
+
* Enable lazy loading with IntersectionObserver.
|
|
28
|
+
* Icon will only load when visible in viewport.
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
this.lazy = false;
|
|
32
|
+
/**
|
|
33
|
+
* Internal state for the loaded SVG content.
|
|
34
|
+
*/
|
|
35
|
+
this.svgContent = '';
|
|
36
|
+
/**
|
|
37
|
+
* Internal state for loading status.
|
|
38
|
+
*/
|
|
39
|
+
this.isLoading = false;
|
|
40
|
+
/**
|
|
41
|
+
* Internal state for error status.
|
|
42
|
+
*/
|
|
43
|
+
this.hasError = false;
|
|
44
|
+
this.isVisible = false;
|
|
45
|
+
}
|
|
46
|
+
connectedCallback() {
|
|
47
|
+
if (this.lazy) {
|
|
48
|
+
this.setupIntersectionObserver();
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
this.loadIcon();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
disconnectedCallback() {
|
|
55
|
+
this.observer?.disconnect();
|
|
56
|
+
}
|
|
57
|
+
onNameChange() {
|
|
58
|
+
if (!this.lazy || this.isVisible) {
|
|
59
|
+
this.loadIcon();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
onBasePathChange() {
|
|
63
|
+
if (!this.lazy || this.isVisible) {
|
|
64
|
+
this.loadIcon();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
setupIntersectionObserver() {
|
|
68
|
+
if (typeof IntersectionObserver === 'undefined') {
|
|
69
|
+
// Fallback for browsers without IntersectionObserver
|
|
70
|
+
this.loadIcon();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
this.observer = new IntersectionObserver((entries) => {
|
|
74
|
+
entries.forEach((entry) => {
|
|
75
|
+
if (entry.isIntersecting) {
|
|
76
|
+
this.isVisible = true;
|
|
77
|
+
this.loadIcon();
|
|
78
|
+
this.observer?.disconnect();
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}, {
|
|
82
|
+
rootMargin: '50px', // Load slightly before entering viewport
|
|
83
|
+
});
|
|
84
|
+
this.observer.observe(this.el);
|
|
85
|
+
}
|
|
86
|
+
async loadIcon() {
|
|
87
|
+
if (!this.name) {
|
|
88
|
+
this.hasError = true;
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
const iconUrl = `${this.basePath}/${this.name}.svg`;
|
|
92
|
+
// Check cache first
|
|
93
|
+
if (iconCache.has(iconUrl)) {
|
|
94
|
+
this.svgContent = iconCache.get(iconUrl);
|
|
95
|
+
this.hasError = false;
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
// Check for pending request (prevent duplicate fetches)
|
|
99
|
+
if (pendingRequests.has(iconUrl)) {
|
|
100
|
+
try {
|
|
101
|
+
this.svgContent = await pendingRequests.get(iconUrl);
|
|
102
|
+
this.hasError = false;
|
|
103
|
+
}
|
|
104
|
+
catch {
|
|
105
|
+
this.hasError = true;
|
|
106
|
+
}
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
this.isLoading = true;
|
|
110
|
+
this.hasError = false;
|
|
111
|
+
// Create fetch promise and store it
|
|
112
|
+
const fetchPromise = this.fetchIcon(iconUrl);
|
|
113
|
+
pendingRequests.set(iconUrl, fetchPromise);
|
|
114
|
+
try {
|
|
115
|
+
this.svgContent = await fetchPromise;
|
|
116
|
+
iconCache.set(iconUrl, this.svgContent);
|
|
117
|
+
this.hasError = false;
|
|
118
|
+
}
|
|
119
|
+
catch {
|
|
120
|
+
this.hasError = true;
|
|
121
|
+
this.svgContent = '';
|
|
122
|
+
}
|
|
123
|
+
finally {
|
|
124
|
+
this.isLoading = false;
|
|
125
|
+
pendingRequests.delete(iconUrl);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
async fetchIcon(url) {
|
|
129
|
+
const response = await fetch(url);
|
|
130
|
+
if (!response.ok) {
|
|
131
|
+
throw new Error(`Failed to load icon: ${url}`);
|
|
132
|
+
}
|
|
133
|
+
const svgText = await response.text();
|
|
134
|
+
// Basic security check - ensure it's valid SVG
|
|
135
|
+
if (!svgText.includes('<svg')) {
|
|
136
|
+
throw new Error(`Invalid SVG content: ${url}`);
|
|
137
|
+
}
|
|
138
|
+
return svgText;
|
|
139
|
+
}
|
|
140
|
+
render() {
|
|
141
|
+
const isDecorative = !this.label;
|
|
142
|
+
return (h("span", { key: 'f3c397e6532cf9022416cf53458dd6d0b128a3ed', class: {
|
|
143
|
+
'ds-icon': true,
|
|
144
|
+
'ds-icon--loading': this.isLoading,
|
|
145
|
+
'ds-icon--error': this.hasError,
|
|
146
|
+
}, style: {
|
|
147
|
+
'--icon-size': `${this.size}px`,
|
|
148
|
+
'--icon-color': this.color,
|
|
149
|
+
}, role: isDecorative ? 'presentation' : 'img', "aria-hidden": isDecorative ? 'true' : undefined, "aria-label": this.label }, this.svgContent ? (h("span", { class: "ds-icon__svg", innerHTML: this.svgContent })) : this.hasError ? (h("span", { class: "ds-icon__error", title: `Icon "${this.name}" not found` }, h("svg", { viewBox: "0 0 24 24", fill: "currentColor" }, h("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })))) : null));
|
|
150
|
+
}
|
|
151
|
+
static get is() { return "ds-icon"; }
|
|
152
|
+
static get encapsulation() { return "shadow"; }
|
|
153
|
+
static get originalStyleUrls() {
|
|
154
|
+
return {
|
|
155
|
+
"$": ["ds-icon.css"]
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
static get styleUrls() {
|
|
159
|
+
return {
|
|
160
|
+
"$": ["ds-icon.css"]
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
static get properties() {
|
|
164
|
+
return {
|
|
165
|
+
"name": {
|
|
166
|
+
"type": "string",
|
|
167
|
+
"mutable": false,
|
|
168
|
+
"complexType": {
|
|
169
|
+
"original": "string",
|
|
170
|
+
"resolved": "string",
|
|
171
|
+
"references": {}
|
|
172
|
+
},
|
|
173
|
+
"required": true,
|
|
174
|
+
"optional": false,
|
|
175
|
+
"docs": {
|
|
176
|
+
"tags": [{
|
|
177
|
+
"name": "example",
|
|
178
|
+
"text": "\"add\", \"arrow-left\", \"close\""
|
|
179
|
+
}],
|
|
180
|
+
"text": "Name of the icon to display (without .svg extension).\nMust match a file in the icons directory."
|
|
181
|
+
},
|
|
182
|
+
"getter": false,
|
|
183
|
+
"setter": false,
|
|
184
|
+
"reflect": false,
|
|
185
|
+
"attribute": "name"
|
|
186
|
+
},
|
|
187
|
+
"size": {
|
|
188
|
+
"type": "number",
|
|
189
|
+
"mutable": false,
|
|
190
|
+
"complexType": {
|
|
191
|
+
"original": "number",
|
|
192
|
+
"resolved": "number",
|
|
193
|
+
"references": {}
|
|
194
|
+
},
|
|
195
|
+
"required": false,
|
|
196
|
+
"optional": false,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [{
|
|
199
|
+
"name": "default",
|
|
200
|
+
"text": "24"
|
|
201
|
+
}],
|
|
202
|
+
"text": "Size of the icon in pixels."
|
|
203
|
+
},
|
|
204
|
+
"getter": false,
|
|
205
|
+
"setter": false,
|
|
206
|
+
"reflect": false,
|
|
207
|
+
"attribute": "size",
|
|
208
|
+
"defaultValue": "24"
|
|
209
|
+
},
|
|
210
|
+
"color": {
|
|
211
|
+
"type": "string",
|
|
212
|
+
"mutable": false,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "string",
|
|
215
|
+
"resolved": "string",
|
|
216
|
+
"references": {}
|
|
217
|
+
},
|
|
218
|
+
"required": false,
|
|
219
|
+
"optional": false,
|
|
220
|
+
"docs": {
|
|
221
|
+
"tags": [{
|
|
222
|
+
"name": "default",
|
|
223
|
+
"text": "'currentColor'"
|
|
224
|
+
}],
|
|
225
|
+
"text": "Color of the icon. Accepts any valid CSS color value.\nIcons use currentColor by default, inheriting from parent."
|
|
226
|
+
},
|
|
227
|
+
"getter": false,
|
|
228
|
+
"setter": false,
|
|
229
|
+
"reflect": false,
|
|
230
|
+
"attribute": "color",
|
|
231
|
+
"defaultValue": "'currentColor'"
|
|
232
|
+
},
|
|
233
|
+
"basePath": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "string",
|
|
238
|
+
"resolved": "string",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": false,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [{
|
|
245
|
+
"name": "default",
|
|
246
|
+
"text": "'/icons'"
|
|
247
|
+
}],
|
|
248
|
+
"text": "Base path for loading icon SVG files."
|
|
249
|
+
},
|
|
250
|
+
"getter": false,
|
|
251
|
+
"setter": false,
|
|
252
|
+
"reflect": false,
|
|
253
|
+
"attribute": "base-path",
|
|
254
|
+
"defaultValue": "'/icons'"
|
|
255
|
+
},
|
|
256
|
+
"lazy": {
|
|
257
|
+
"type": "boolean",
|
|
258
|
+
"mutable": false,
|
|
259
|
+
"complexType": {
|
|
260
|
+
"original": "boolean",
|
|
261
|
+
"resolved": "boolean",
|
|
262
|
+
"references": {}
|
|
263
|
+
},
|
|
264
|
+
"required": false,
|
|
265
|
+
"optional": false,
|
|
266
|
+
"docs": {
|
|
267
|
+
"tags": [{
|
|
268
|
+
"name": "default",
|
|
269
|
+
"text": "false"
|
|
270
|
+
}],
|
|
271
|
+
"text": "Enable lazy loading with IntersectionObserver.\nIcon will only load when visible in viewport."
|
|
272
|
+
},
|
|
273
|
+
"getter": false,
|
|
274
|
+
"setter": false,
|
|
275
|
+
"reflect": false,
|
|
276
|
+
"attribute": "lazy",
|
|
277
|
+
"defaultValue": "false"
|
|
278
|
+
},
|
|
279
|
+
"label": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"mutable": false,
|
|
282
|
+
"complexType": {
|
|
283
|
+
"original": "string",
|
|
284
|
+
"resolved": "string | undefined",
|
|
285
|
+
"references": {}
|
|
286
|
+
},
|
|
287
|
+
"required": false,
|
|
288
|
+
"optional": true,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [],
|
|
291
|
+
"text": "Accessible label for screen readers.\nIf provided, icon is treated as semantic (not decorative)."
|
|
292
|
+
},
|
|
293
|
+
"getter": false,
|
|
294
|
+
"setter": false,
|
|
295
|
+
"reflect": false,
|
|
296
|
+
"attribute": "label"
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
static get states() {
|
|
301
|
+
return {
|
|
302
|
+
"svgContent": {},
|
|
303
|
+
"isLoading": {},
|
|
304
|
+
"hasError": {}
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
static get elementRef() { return "el"; }
|
|
308
|
+
static get watchers() {
|
|
309
|
+
return [{
|
|
310
|
+
"propName": "name",
|
|
311
|
+
"methodName": "onNameChange"
|
|
312
|
+
}, {
|
|
313
|
+
"propName": "basePath",
|
|
314
|
+
"methodName": "onBasePathChange"
|
|
315
|
+
}];
|
|
316
|
+
}
|
|
317
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o,p as r,H as t,h as a}from"./index.js";const e=r(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.variant="primary-brand",this.disabled=!1}render(){return a("button",{key:"b2c29af56fa84e6274900496d1a57bf7be6070e0",class:{"ds-button":!0,["ds-button--"+this.variant]:!0,"ds-button--disabled":this.disabled},disabled:this.disabled},a("span",{key:"
|
|
1
|
+
import{t as o,p as r,H as t,h as a}from"./index.js";const e=r(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.variant="primary-brand",this.disabled=!1}render(){return a("button",{key:"b2c29af56fa84e6274900496d1a57bf7be6070e0",class:{"ds-button":!0,["ds-button--"+this.variant]:!0,"ds-button--disabled":this.disabled},disabled:this.disabled},a("slot",{key:"c87fb66dffa329b2911752390d69d808aea83ead",name:"icon-start"}),a("span",{key:"3049998d0fca7eef41dc5bbc51ab14d396855840",class:"ds-button__label"},a("slot",{key:"540e93a8de6f0be305963e7b05b90dcbacda6f37"})),a("slot",{key:"f48be5683052a40bb97436f20b219a42fb09319a",name:"icon-end"}))}static get style(){return":host{display:inline-block}.ds-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:none;background:transparent;transition:background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;padding:var(--button-stack-space) var(--button-inline-space);min-height:var(--button-height-size);gap:var(--button-content-gap-space);border-radius:var(--button-border-radius);font-family:var(--button-label-font-family);font-weight:var(--font-weight-bold);font-size:var(--button-label-font-size);line-height:var(--button-label-line-height);letter-spacing:var(--letter-space-0-p-5);text-transform:uppercase}.ds-button__label{display:inline-flex;align-items:center;gap:inherit}::slotted(ds-icon){--icon-size:var(--icon-size, 24px);color:inherit;flex-shrink:0}.ds-button--primary-brand{background-color:var(--button-primary-brand-bg-color-idle);color:var(--button-primary-brand-label-color)}.ds-button--primary-brand:hover:not(:disabled){background-color:var(--button-primary-brand-bg-color-hover)}.ds-button--primary-brand:active:not(:disabled){background-color:var(--button-primary-brand-bg-color-active)}.ds-button--primary-neutral{background-color:var(--button-primary-neutral-bg-color-idle);color:var(--button-primary-neutral-label-color)}.ds-button--primary-neutral:hover:not(:disabled){background-color:var(--button-primary-neutral-bg-color-hover)}.ds-button--primary-neutral:active:not(:disabled){background-color:var(--button-primary-neutral-bg-color-active)}.ds-button--primary-success{background-color:var(--button-primary-success-bg-color-idle);color:var(--button-primary-success-label-color)}.ds-button--primary-success:hover:not(:disabled){background-color:var(--button-primary-success-bg-color-hover)}.ds-button--primary-success:active:not(:disabled){background-color:var(--button-primary-success-bg-color-active)}.ds-button--secondary{background-color:var(--button-secondary-bg-color-idle);color:var(--button-secondary-label-color)}.ds-button--secondary:hover:not(:disabled){background-color:var(--button-secondary-bg-color-hover)}.ds-button--secondary:active:not(:disabled){background-color:var(--button-secondary-bg-color-active)}.ds-button--tertiary-neutral{background-color:transparent;color:var(--button-tertiary-neutral-label-color);border:var(--button-border-width-size) solid var(--button-tertiary-neutral-border-color-idle)}.ds-button--tertiary-neutral:hover:not(:disabled){background-color:var(--button-tertiary-neutral-bg-color-hover);border-color:var(--button-tertiary-neutral-border-color-hover)}.ds-button--tertiary-neutral:active:not(:disabled){background-color:var(--button-tertiary-neutral-bg-color-active)}.ds-button--tertiary-success{background-color:transparent;color:var(--button-tertiary-success-label-color);border:var(--button-border-width-size) solid var(--button-tertiary-success-border-color)}.ds-button--tertiary-success:hover:not(:disabled){background-color:var(--button-tertiary-success-bg-color-hover)}.ds-button--ghost{background-color:transparent;color:var(--button-ghost-label-color)}.ds-button--ghost:hover:not(:disabled){background-color:var(--button-ghost-bg-color-hover)}.ds-button--ghost:active:not(:disabled){background-color:var(--button-ghost-bg-color-active)}.ds-button--disabled,.ds-button:disabled{cursor:not-allowed;background-color:var(--button-disabled-bg-color);color:var(--button-disabled-label-color);border-color:var(--button-disabled-border-color)}.ds-button--disabled:hover,.ds-button--disabled:active,.ds-button:disabled:hover,.ds-button:disabled:active{background-color:var(--button-disabled-bg-color);color:var(--button-disabled-label-color);border-color:var(--button-disabled-border-color)}.ds-button:focus-visible{outline:2px solid var(--core-color-primary);outline-offset:2px}"}},[257,"ds-button",{variant:[1],disabled:[4]}]);function n(){"undefined"!=typeof customElements&&["ds-button"].forEach((r=>{"ds-button"===r&&(customElements.get(o(r))||customElements.define(o(r),e))}))}n();const b=e,s=n;export{b as DsButton,s as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a,p as r,H as
|
|
1
|
+
import{t as a,p as r,H as e,h as s}from"./index.js";const d=r(class extends e{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.surface="primary"}render(){return s("div",{key:"0709463754ee76974475f214840ade290ee7aa83",class:{"ds-card":!0,["ds-card--"+this.surface]:!0}},this.cardTitle&&s("div",{key:"e161468e870e419852e6ef9f92ab9fc24ac60635",class:"ds-card__header"},s("h3",{key:"8cccde3f7e5ea185ef24d90312439d2e49621504",class:"ds-card__title"},this.cardTitle)),s("div",{key:"47457839b1fa00f261c1fbfb8842904fb9bf8245",class:"ds-card__content"},s("slot",{key:"009a1b1e7411daec2c67fd084d654de71875222e"})))}static get style(){return":host{display:block}.ds-card{border-radius:var(--border-radius-lg, 8px);overflow:hidden;transition:box-shadow 0.2s ease}.ds-card--primary{background-color:var(--card-surface-bg-color, var(--surface-color-primary, #FFFFFF));box-shadow:var(--shadow-soft-md, 0 2px 8px rgba(0, 0, 0, 0.1))}.ds-card--secondary{background-color:var(--surface-color-secondary, #F8F9FA);box-shadow:var(--shadow-soft-sm, 0 1px 4px rgba(0, 0, 0, 0.08))}.ds-card__header{padding:var(--space-2-x, 16px) var(--space-2-x, 16px) 0}.ds-card__title{margin:0;font-family:var(--font-family-gotham-narrow, sans-serif);font-weight:var(--font-weight-bold, 700);font-size:var(--headline-3-font-size, 20px);line-height:var(--headline-3-line-height, 24px);color:var(--text-color-primary, #232629)}.ds-card__content{padding:var(--space-2-x, 16px)}.ds-card--primary:hover{box-shadow:var(--shadow-soft-lg, 0 4px 16px rgba(0, 0, 0, 0.12))}"}},[257,"ds-card",{surface:[1],cardTitle:[1,"card-title"]}]);function o(){"undefined"!=typeof customElements&&["ds-card"].forEach((r=>{"ds-card"===r&&(customElements.get(a(r))||customElements.define(a(r),d))}))}o();const c=d,t=o;export{c as DsCard,t as defineCustomElement}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface DsIcon extends Components.DsIcon, HTMLElement {}
|
|
4
|
+
export const DsIcon: {
|
|
5
|
+
prototype: DsIcon;
|
|
6
|
+
new (): DsIcon;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t,p as i,H as s,h as e}from"./index.js";const n=new Map,o=new Map,r=i(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.size=24,this.color="currentColor",this.basePath="/icons",this.lazy=!1,this.svgContent="",this.isLoading=!1,this.hasError=!1,this.isVisible=!1}connectedCallback(){this.lazy?this.setupIntersectionObserver():this.loadIcon()}disconnectedCallback(){this.observer?.disconnect()}onNameChange(){this.lazy&&!this.isVisible||this.loadIcon()}onBasePathChange(){this.lazy&&!this.isVisible||this.loadIcon()}setupIntersectionObserver(){"undefined"!=typeof IntersectionObserver?(this.observer=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&(this.isVisible=!0,this.loadIcon(),this.observer?.disconnect())}))}),{rootMargin:"50px"}),this.observer.observe(this.el)):this.loadIcon()}async loadIcon(){if(!this.name)return void(this.hasError=!0);const t=`${this.basePath}/${this.name}.svg`;if(n.has(t))return this.svgContent=n.get(t),void(this.hasError=!1);if(o.has(t)){try{this.svgContent=await o.get(t),this.hasError=!1}catch{this.hasError=!0}return}this.isLoading=!0,this.hasError=!1;const i=this.fetchIcon(t);o.set(t,i);try{this.svgContent=await i,n.set(t,this.svgContent),this.hasError=!1}catch{this.hasError=!0,this.svgContent=""}finally{this.isLoading=!1,o.delete(t)}}async fetchIcon(t){const i=await fetch(t);if(!i.ok)throw Error("Failed to load icon: "+t);const s=await i.text();if(!s.includes("<svg"))throw Error("Invalid SVG content: "+t);return s}render(){const t=!this.label;return e("span",{key:"f3c397e6532cf9022416cf53458dd6d0b128a3ed",class:{"ds-icon":!0,"ds-icon--loading":this.isLoading,"ds-icon--error":this.hasError},style:{"--icon-size":this.size+"px","--icon-color":this.color},role:t?"presentation":"img","aria-hidden":t?"true":void 0,"aria-label":this.label},this.svgContent?e("span",{class:"ds-icon__svg",innerHTML:this.svgContent}):this.hasError?e("span",{class:"ds-icon__error",title:`Icon "${this.name}" not found`},e("svg",{viewBox:"0 0 24 24",fill:"currentColor"},e("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}))):null)}get el(){return this}static get watchers(){return{name:[{onNameChange:0}],basePath:[{onBasePathChange:0}]}}static get style(){return":host{display:inline-flex;align-items:center;justify-content:center}.ds-icon{display:inline-flex;align-items:center;justify-content:center;width:var(--icon-size, 24px);height:var(--icon-size, 24px);color:var(--icon-color, currentColor);flex-shrink:0}.ds-icon__svg{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.ds-icon__svg svg{width:100%;height:100%;fill:currentColor}.ds-icon--loading{opacity:0.5}.ds-icon--error{opacity:0.3}.ds-icon__error{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.ds-icon__error svg{width:100%;height:100%;fill:currentColor}"}},[1,"ds-icon",{name:[1],size:[2],color:[1],basePath:[1,"base-path"],lazy:[4],label:[1],svgContent:[32],isLoading:[32],hasError:[32]},void 0,{name:[{onNameChange:0}],basePath:[{onBasePathChange:0}]}]);function h(){"undefined"!=typeof customElements&&["ds-icon"].forEach((i=>{"ds-icon"===i&&(customElements.get(t(i))||customElements.define(t(i),r))}))}h();const a=r,c=h;export{a as DsIcon,c as defineCustomElement}
|