@pine-ds/icons 7.0.0 → 7.0.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/components/index.cjs.js +1 -0
- package/components/index.d.ts +38 -0
- package/components/index.js +4 -0
- package/components/index.js.map +1 -0
- package/components/package.json +8 -0
- package/components/pds-icon.d.ts +11 -0
- package/components/pds-icon.js +366 -0
- package/components/pds-icon.js.map +1 -0
- package/dist/cheatsheet.html +660 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/index-f0b59854.js +1205 -0
- package/dist/cjs/index-f0b59854.js.map +1 -0
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/pds-icon.cjs.entry.js +211 -0
- package/dist/cjs/pds-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-icons.cjs.js +27 -0
- package/dist/cjs/pds-icons.cjs.js.map +1 -0
- package/dist/cjs/utils-958540ce.js +140 -0
- package/dist/cjs/utils-958540ce.js.map +1 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/pds-icon/assetPath.js +36 -0
- package/dist/collection/components/pds-icon/assetPath.js.map +1 -0
- package/dist/collection/components/pds-icon/pds-icon.css +22 -0
- package/dist/collection/components/pds-icon/pds-icon.js +228 -0
- package/dist/collection/components/pds-icon/pds-icon.js.map +1 -0
- package/dist/collection/components/pds-icon/request.js +43 -0
- package/dist/collection/components/pds-icon/request.js.map +1 -0
- package/dist/collection/components/pds-icon/svg/access-key.svg +1 -0
- package/dist/collection/components/pds-icon/svg/add-circle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/add-image.svg +1 -0
- package/dist/collection/components/pds-icon/svg/add-small.svg +1 -0
- package/dist/collection/components/pds-icon/svg/add-square.svg +1 -0
- package/dist/collection/components/pds-icon/svg/add.svg +1 -0
- package/dist/collection/components/pds-icon/svg/advanced.svg +1 -0
- package/dist/collection/components/pds-icon/svg/ai-sparkle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/ai-writer-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/ai-writer.svg +1 -0
- package/dist/collection/components/pds-icon/svg/align-center.svg +1 -0
- package/dist/collection/components/pds-icon/svg/align-justify.svg +1 -0
- package/dist/collection/components/pds-icon/svg/align-left.svg +1 -0
- package/dist/collection/components/pds-icon/svg/align-right.svg +1 -0
- package/dist/collection/components/pds-icon/svg/app-store.svg +1 -0
- package/dist/collection/components/pds-icon/svg/archive.svg +1 -0
- package/dist/collection/components/pds-icon/svg/arrow-corner.svg +1 -0
- package/dist/collection/components/pds-icon/svg/arrow-down.svg +1 -0
- package/dist/collection/components/pds-icon/svg/arrow-left.svg +1 -0
- package/dist/collection/components/pds-icon/svg/arrow-right.svg +1 -0
- package/dist/collection/components/pds-icon/svg/arrow-up.svg +1 -0
- package/dist/collection/components/pds-icon/svg/assessment.svg +1 -0
- package/dist/collection/components/pds-icon/svg/at-sign.svg +1 -0
- package/dist/collection/components/pds-icon/svg/attach.svg +1 -0
- package/dist/collection/components/pds-icon/svg/automations.svg +1 -0
- package/dist/collection/components/pds-icon/svg/ban.svg +1 -0
- package/dist/collection/components/pds-icon/svg/bank.svg +1 -0
- package/dist/collection/components/pds-icon/svg/bell.svg +1 -0
- package/dist/collection/components/pds-icon/svg/block.svg +1 -0
- package/dist/collection/components/pds-icon/svg/blog-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/blog.svg +1 -0
- package/dist/collection/components/pds-icon/svg/bold.svg +1 -0
- package/dist/collection/components/pds-icon/svg/broadcast.svg +1 -0
- package/dist/collection/components/pds-icon/svg/button.svg +1 -0
- package/dist/collection/components/pds-icon/svg/calendar-date.svg +1 -0
- package/dist/collection/components/pds-icon/svg/calendar-schedule.svg +1 -0
- package/dist/collection/components/pds-icon/svg/calendar-simple.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-amex.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-android.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-apple.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-diners-club.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-discover.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-generic.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-gpay.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-mastercard.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-paypal.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-stripe.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-update.svg +1 -0
- package/dist/collection/components/pds-icon/svg/card-visa.svg +1 -0
- package/dist/collection/components/pds-icon/svg/caret-down.svg +1 -0
- package/dist/collection/components/pds-icon/svg/caret-left.svg +1 -0
- package/dist/collection/components/pds-icon/svg/caret-right.svg +1 -0
- package/dist/collection/components/pds-icon/svg/caret-up.svg +1 -0
- package/dist/collection/components/pds-icon/svg/cart-add.svg +1 -0
- package/dist/collection/components/pds-icon/svg/cart.svg +1 -0
- package/dist/collection/components/pds-icon/svg/certificate.svg +1 -0
- package/dist/collection/components/pds-icon/svg/chart-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/chart.svg +1 -0
- package/dist/collection/components/pds-icon/svg/check-circle-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/check-circle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/check.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-1.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-2.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-3.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-4.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-5.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-6.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-7.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-8.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-9.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-a.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-b.svg +1 -0
- package/dist/collection/components/pds-icon/svg/circle-dashed.svg +1 -0
- package/dist/collection/components/pds-icon/svg/clock.svg +1 -0
- package/dist/collection/components/pds-icon/svg/closed-captions.svg +1 -0
- package/dist/collection/components/pds-icon/svg/cloud-upload.svg +1 -0
- package/dist/collection/components/pds-icon/svg/code-block.svg +1 -0
- package/dist/collection/components/pds-icon/svg/code.svg +1 -0
- package/dist/collection/components/pds-icon/svg/color.svg +1 -0
- package/dist/collection/components/pds-icon/svg/columns.svg +1 -0
- package/dist/collection/components/pds-icon/svg/comment-no.svg +1 -0
- package/dist/collection/components/pds-icon/svg/comment.svg +1 -0
- package/dist/collection/components/pds-icon/svg/connect.svg +1 -0
- package/dist/collection/components/pds-icon/svg/contact.svg +1 -0
- package/dist/collection/components/pds-icon/svg/conversation.svg +1 -0
- package/dist/collection/components/pds-icon/svg/copy.svg +1 -0
- package/dist/collection/components/pds-icon/svg/coupon.svg +1 -0
- package/dist/collection/components/pds-icon/svg/course.svg +1 -0
- package/dist/collection/components/pds-icon/svg/creator-studio-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/creator-studio.svg +1 -0
- package/dist/collection/components/pds-icon/svg/cursor-pointer.svg +1 -0
- package/dist/collection/components/pds-icon/svg/cursor.svg +1 -0
- package/dist/collection/components/pds-icon/svg/custom-field.svg +1 -0
- package/dist/collection/components/pds-icon/svg/customize.svg +1 -0
- package/dist/collection/components/pds-icon/svg/danger-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/danger.svg +1 -0
- package/dist/collection/components/pds-icon/svg/delete-circle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/delete-key.svg +1 -0
- package/dist/collection/components/pds-icon/svg/delete-x.svg +1 -0
- package/dist/collection/components/pds-icon/svg/dollar.svg +1 -0
- package/dist/collection/components/pds-icon/svg/dot-menu-horizontal.svg +1 -0
- package/dist/collection/components/pds-icon/svg/down-small.svg +1 -0
- package/dist/collection/components/pds-icon/svg/download.svg +1 -0
- package/dist/collection/components/pds-icon/svg/downsell.svg +1 -0
- package/dist/collection/components/pds-icon/svg/draft.svg +1 -0
- package/dist/collection/components/pds-icon/svg/drawer-collapse.svg +1 -0
- package/dist/collection/components/pds-icon/svg/drawer-expand.svg +1 -0
- package/dist/collection/components/pds-icon/svg/drop.svg +1 -0
- package/dist/collection/components/pds-icon/svg/duplicate.svg +1 -0
- package/dist/collection/components/pds-icon/svg/editor-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/editor.svg +1 -0
- package/dist/collection/components/pds-icon/svg/email-activity.svg +1 -0
- package/dist/collection/components/pds-icon/svg/emoji.svg +1 -0
- package/dist/collection/components/pds-icon/svg/enlarge-vertical.svg +1 -0
- package/dist/collection/components/pds-icon/svg/enlarge.svg +1 -0
- package/dist/collection/components/pds-icon/svg/expand.svg +1 -0
- package/dist/collection/components/pds-icon/svg/favorite.svg +1 -0
- package/dist/collection/components/pds-icon/svg/feedback.svg +1 -0
- package/dist/collection/components/pds-icon/svg/file-money.svg +1 -0
- package/dist/collection/components/pds-icon/svg/file.svg +1 -0
- package/dist/collection/components/pds-icon/svg/filter.svg +1 -0
- package/dist/collection/components/pds-icon/svg/flag.svg +1 -0
- package/dist/collection/components/pds-icon/svg/flash-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/flash.svg +1 -0
- package/dist/collection/components/pds-icon/svg/floppy-disk.svg +1 -0
- package/dist/collection/components/pds-icon/svg/folder-group.svg +1 -0
- package/dist/collection/components/pds-icon/svg/folder.svg +1 -0
- package/dist/collection/components/pds-icon/svg/form-field.svg +1 -0
- package/dist/collection/components/pds-icon/svg/form-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/form.svg +1 -0
- package/dist/collection/components/pds-icon/svg/fullscreen.svg +1 -0
- package/dist/collection/components/pds-icon/svg/funnel.svg +1 -0
- package/dist/collection/components/pds-icon/svg/gear-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/gear.svg +1 -0
- package/dist/collection/components/pds-icon/svg/grant-offer.svg +1 -0
- package/dist/collection/components/pds-icon/svg/handle-2-vertical.svg +1 -0
- package/dist/collection/components/pds-icon/svg/handle-2.svg +1 -0
- package/dist/collection/components/pds-icon/svg/handle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/hashtag.svg +1 -0
- package/dist/collection/components/pds-icon/svg/hd-video.svg +1 -0
- package/dist/collection/components/pds-icon/svg/heading-1.svg +1 -0
- package/dist/collection/components/pds-icon/svg/heading-2.svg +1 -0
- package/dist/collection/components/pds-icon/svg/heading-3.svg +1 -0
- package/dist/collection/components/pds-icon/svg/heading-4.svg +1 -0
- package/dist/collection/components/pds-icon/svg/heading-5.svg +1 -0
- package/dist/collection/components/pds-icon/svg/heading-6.svg +1 -0
- package/dist/collection/components/pds-icon/svg/heading-large.svg +1 -0
- package/dist/collection/components/pds-icon/svg/heading-small.svg +1 -0
- package/dist/collection/components/pds-icon/svg/headset.svg +1 -0
- package/dist/collection/components/pds-icon/svg/help-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/help.svg +1 -0
- package/dist/collection/components/pds-icon/svg/home-alt.svg +1 -0
- package/dist/collection/components/pds-icon/svg/home-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/home.svg +1 -0
- package/dist/collection/components/pds-icon/svg/horizontal-line.svg +1 -0
- package/dist/collection/components/pds-icon/svg/image.svg +1 -0
- package/dist/collection/components/pds-icon/svg/info-circle-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/info-circle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/ios-battery.svg +1 -0
- package/dist/collection/components/pds-icon/svg/ios-data.svg +1 -0
- package/dist/collection/components/pds-icon/svg/ios-wifi.svg +1 -0
- package/dist/collection/components/pds-icon/svg/italic.svg +1 -0
- package/dist/collection/components/pds-icon/svg/kajabi-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/kajabi.svg +1 -0
- package/dist/collection/components/pds-icon/svg/klarna.svg +1 -0
- package/dist/collection/components/pds-icon/svg/lab.svg +1 -0
- package/dist/collection/components/pds-icon/svg/launch.svg +1 -0
- package/dist/collection/components/pds-icon/svg/layout-grid.svg +1 -0
- package/dist/collection/components/pds-icon/svg/layout-list.svg +1 -0
- package/dist/collection/components/pds-icon/svg/left-small.svg +1 -0
- package/dist/collection/components/pds-icon/svg/list-bullet.svg +1 -0
- package/dist/collection/components/pds-icon/svg/list-details.svg +1 -0
- package/dist/collection/components/pds-icon/svg/list-numbers.svg +1 -0
- package/dist/collection/components/pds-icon/svg/location.svg +1 -0
- package/dist/collection/components/pds-icon/svg/lock-alt.svg +1 -0
- package/dist/collection/components/pds-icon/svg/lock.svg +1 -0
- package/dist/collection/components/pds-icon/svg/logo-afterpay.svg +1 -0
- package/dist/collection/components/pds-icon/svg/logo-facebook-round.svg +1 -0
- package/dist/collection/components/pds-icon/svg/logo-facebook.svg +1 -0
- package/dist/collection/components/pds-icon/svg/logo-instagram.svg +1 -0
- package/dist/collection/components/pds-icon/svg/logo-linkedin.svg +1 -0
- package/dist/collection/components/pds-icon/svg/logo-tiktok.svg +1 -0
- package/dist/collection/components/pds-icon/svg/logo-twitter-x.svg +1 -0
- package/dist/collection/components/pds-icon/svg/logo-twitter.svg +1 -0
- package/dist/collection/components/pds-icon/svg/logo-youtube.svg +1 -0
- package/dist/collection/components/pds-icon/svg/loop.svg +1 -0
- package/dist/collection/components/pds-icon/svg/mail-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/mail-open.svg +1 -0
- package/dist/collection/components/pds-icon/svg/mail.svg +1 -0
- package/dist/collection/components/pds-icon/svg/map.svg +1 -0
- package/dist/collection/components/pds-icon/svg/mapped.svg +1 -0
- package/dist/collection/components/pds-icon/svg/margin-left.svg +1 -0
- package/dist/collection/components/pds-icon/svg/margin-right.svg +1 -0
- package/dist/collection/components/pds-icon/svg/marker-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/marker.svg +1 -0
- package/dist/collection/components/pds-icon/svg/megaphone-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/megaphone.svg +1 -0
- package/dist/collection/components/pds-icon/svg/menu-alt.svg +1 -0
- package/dist/collection/components/pds-icon/svg/menu-bordered.svg +1 -0
- package/dist/collection/components/pds-icon/svg/menu.svg +1 -0
- package/dist/collection/components/pds-icon/svg/merge.svg +1 -0
- package/dist/collection/components/pds-icon/svg/microphone-off.svg +1 -0
- package/dist/collection/components/pds-icon/svg/microphone.svg +1 -0
- package/dist/collection/components/pds-icon/svg/monitor-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/monitor.svg +1 -0
- package/dist/collection/components/pds-icon/svg/more-menu-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/more-menu.svg +1 -0
- package/dist/collection/components/pds-icon/svg/move-left.svg +1 -0
- package/dist/collection/components/pds-icon/svg/move-right.svg +1 -0
- package/dist/collection/components/pds-icon/svg/multi-pay.svg +1 -0
- package/dist/collection/components/pds-icon/svg/newsletter-2.svg +1 -0
- package/dist/collection/components/pds-icon/svg/newsletter.svg +1 -0
- package/dist/collection/components/pds-icon/svg/one-off-session.svg +1 -0
- package/dist/collection/components/pds-icon/svg/one-time.svg +1 -0
- package/dist/collection/components/pds-icon/svg/packages.svg +1 -0
- package/dist/collection/components/pds-icon/svg/pause-circle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/pause.svg +1 -0
- package/dist/collection/components/pds-icon/svg/payout.svg +1 -0
- package/dist/collection/components/pds-icon/svg/pen.svg +1 -0
- package/dist/collection/components/pds-icon/svg/phone-portrait.svg +1 -0
- package/dist/collection/components/pds-icon/svg/phone-toolbar-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/phone-toolbar.svg +1 -0
- package/dist/collection/components/pds-icon/svg/play-circle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/play-outline.svg +1 -0
- package/dist/collection/components/pds-icon/svg/play-store.svg +1 -0
- package/dist/collection/components/pds-icon/svg/play.svg +1 -0
- package/dist/collection/components/pds-icon/svg/plug.svg +1 -0
- package/dist/collection/components/pds-icon/svg/premium.svg +1 -0
- package/dist/collection/components/pds-icon/svg/present.svg +1 -0
- package/dist/collection/components/pds-icon/svg/preview-off.svg +1 -0
- package/dist/collection/components/pds-icon/svg/preview-on.svg +1 -0
- package/dist/collection/components/pds-icon/svg/product-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/product.svg +1 -0
- package/dist/collection/components/pds-icon/svg/question-circle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/quote.svg +1 -0
- package/dist/collection/components/pds-icon/svg/redo.svg +1 -0
- package/dist/collection/components/pds-icon/svg/refresh.svg +1 -0
- package/dist/collection/components/pds-icon/svg/remove-circle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/remove.svg +1 -0
- package/dist/collection/components/pds-icon/svg/rename.svg +1 -0
- package/dist/collection/components/pds-icon/svg/reset-password.svg +1 -0
- package/dist/collection/components/pds-icon/svg/restore.svg +1 -0
- package/dist/collection/components/pds-icon/svg/right-small.svg +1 -0
- package/dist/collection/components/pds-icon/svg/rocket-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/rocket.svg +1 -0
- package/dist/collection/components/pds-icon/svg/round-dollar.svg +1 -0
- package/dist/collection/components/pds-icon/svg/rows.svg +1 -0
- package/dist/collection/components/pds-icon/svg/scissor.svg +1 -0
- package/dist/collection/components/pds-icon/svg/screen-share-off.svg +1 -0
- package/dist/collection/components/pds-icon/svg/screen-share-on.svg +1 -0
- package/dist/collection/components/pds-icon/svg/search-small.svg +1 -0
- package/dist/collection/components/pds-icon/svg/search.svg +1 -0
- package/dist/collection/components/pds-icon/svg/send-message.svg +1 -0
- package/dist/collection/components/pds-icon/svg/sequences.svg +1 -0
- package/dist/collection/components/pds-icon/svg/share.svg +1 -0
- package/dist/collection/components/pds-icon/svg/skipped.svg +1 -0
- package/dist/collection/components/pds-icon/svg/slash-divider.svg +1 -0
- package/dist/collection/components/pds-icon/svg/speaker.svg +1 -0
- package/dist/collection/components/pds-icon/svg/stack.svg +1 -0
- package/dist/collection/components/pds-icon/svg/star.svg +1 -0
- package/dist/collection/components/pds-icon/svg/stop.svg +1 -0
- package/dist/collection/components/pds-icon/svg/stopwatch.svg +1 -0
- package/dist/collection/components/pds-icon/svg/strikethrough.svg +1 -0
- package/dist/collection/components/pds-icon/svg/subscript.svg +1 -0
- package/dist/collection/components/pds-icon/svg/subscriptions.svg +1 -0
- package/dist/collection/components/pds-icon/svg/super-admin.svg +1 -0
- package/dist/collection/components/pds-icon/svg/superscript.svg +1 -0
- package/dist/collection/components/pds-icon/svg/sync.svg +1 -0
- package/dist/collection/components/pds-icon/svg/tablet-landscape.svg +1 -0
- package/dist/collection/components/pds-icon/svg/tablet-portrait.svg +1 -0
- package/dist/collection/components/pds-icon/svg/tag-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/tag.svg +1 -0
- package/dist/collection/components/pds-icon/svg/text-styles.svg +1 -0
- package/dist/collection/components/pds-icon/svg/theme-store-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/theme-store.svg +1 -0
- package/dist/collection/components/pds-icon/svg/thumb-down-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/thumb-down.svg +1 -0
- package/dist/collection/components/pds-icon/svg/thumb-up-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/thumb-up.svg +1 -0
- package/dist/collection/components/pds-icon/svg/trash.svg +1 -0
- package/dist/collection/components/pds-icon/svg/trophy.svg +1 -0
- package/dist/collection/components/pds-icon/svg/underline.svg +1 -0
- package/dist/collection/components/pds-icon/svg/undo.svg +1 -0
- package/dist/collection/components/pds-icon/svg/unlock.svg +1 -0
- package/dist/collection/components/pds-icon/svg/unmapped.svg +1 -0
- package/dist/collection/components/pds-icon/svg/up-small.svg +1 -0
- package/dist/collection/components/pds-icon/svg/upload.svg +1 -0
- package/dist/collection/components/pds-icon/svg/url.svg +1 -0
- package/dist/collection/components/pds-icon/svg/user-circle-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/user-circle.svg +1 -0
- package/dist/collection/components/pds-icon/svg/user-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/user-star-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/user-star.svg +1 -0
- package/dist/collection/components/pds-icon/svg/user.svg +1 -0
- package/dist/collection/components/pds-icon/svg/users-alt.svg +1 -0
- package/dist/collection/components/pds-icon/svg/users.svg +1 -0
- package/dist/collection/components/pds-icon/svg/video-off.svg +1 -0
- package/dist/collection/components/pds-icon/svg/video-on.svg +1 -0
- package/dist/collection/components/pds-icon/svg/warning-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/warning.svg +1 -0
- package/dist/collection/components/pds-icon/svg/window-paragraph.svg +1 -0
- package/dist/collection/components/pds-icon/svg/world.svg +1 -0
- package/dist/collection/components/pds-icon/svg/wrench.svg +1 -0
- package/dist/collection/components/pds-icon/test/pds-icon.e2e.js +10 -0
- package/dist/collection/components/pds-icon/test/pds-icon.e2e.js.map +1 -0
- package/dist/collection/components/pds-icon/test/pds-icon.spec.js +108 -0
- package/dist/collection/components/pds-icon/test/pds-icon.spec.js.map +1 -0
- package/dist/collection/components/pds-icon/utils.js +95 -0
- package/dist/collection/components/pds-icon/utils.js.map +1 -0
- package/dist/collection/components/pds-icon/validate.js +46 -0
- package/dist/collection/components/pds-icon/validate.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/docs.d.ts +435 -0
- package/dist/docs.json +137 -0
- package/dist/esm/app-globals-0f993ce5.js +5 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/index-f28202cc.js +1177 -0
- package/dist/esm/index-f28202cc.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/pds-icon.entry.js +207 -0
- package/dist/esm/pds-icon.entry.js.map +1 -0
- package/dist/esm/pds-icons.js +22 -0
- package/dist/esm/pds-icons.js.map +1 -0
- package/dist/esm/utils-6c036ebc.js +134 -0
- package/dist/esm/utils-6c036ebc.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +1 -0
- package/dist/loader/index.js +2 -0
- package/dist/loader/package.json +11 -0
- package/dist/pds-icons/index.esm.js +2 -0
- package/dist/pds-icons/index.esm.js.map +1 -0
- package/dist/pds-icons/p-152ef3bc.js +3 -0
- package/dist/pds-icons/p-152ef3bc.js.map +1 -0
- package/dist/pds-icons/p-9bdf8fd3.entry.js +2 -0
- package/dist/pds-icons/p-9bdf8fd3.entry.js.map +1 -0
- package/dist/pds-icons/p-e1255160.js +2 -0
- package/dist/pds-icons/p-e1255160.js.map +1 -0
- package/dist/pds-icons/p-fb6974fd.js +2 -0
- package/dist/pds-icons/p-fb6974fd.js.map +1 -0
- package/dist/pds-icons/pds-icons.esm.js +2 -0
- package/dist/pds-icons/pds-icons.esm.js.map +1 -0
- package/dist/pds-icons/svg/access-key.svg +1 -0
- package/dist/pds-icons/svg/add-circle.svg +1 -0
- package/dist/pds-icons/svg/add-image.svg +1 -0
- package/dist/pds-icons/svg/add-small.svg +1 -0
- package/dist/pds-icons/svg/add-square.svg +1 -0
- package/dist/pds-icons/svg/add.svg +1 -0
- package/dist/pds-icons/svg/advanced.svg +1 -0
- package/dist/pds-icons/svg/ai-sparkle.svg +1 -0
- package/dist/pds-icons/svg/ai-writer-filled.svg +1 -0
- package/dist/pds-icons/svg/ai-writer.svg +1 -0
- package/dist/pds-icons/svg/align-center.svg +1 -0
- package/dist/pds-icons/svg/align-justify.svg +1 -0
- package/dist/pds-icons/svg/align-left.svg +1 -0
- package/dist/pds-icons/svg/align-right.svg +1 -0
- package/dist/pds-icons/svg/app-store.svg +1 -0
- package/dist/pds-icons/svg/archive.svg +1 -0
- package/dist/pds-icons/svg/arrow-corner.svg +1 -0
- package/dist/pds-icons/svg/arrow-down.svg +1 -0
- package/dist/pds-icons/svg/arrow-left.svg +1 -0
- package/dist/pds-icons/svg/arrow-right.svg +1 -0
- package/dist/pds-icons/svg/arrow-up.svg +1 -0
- package/dist/pds-icons/svg/assessment.svg +1 -0
- package/dist/pds-icons/svg/at-sign.svg +1 -0
- package/dist/pds-icons/svg/attach.svg +1 -0
- package/dist/pds-icons/svg/automations.svg +1 -0
- package/dist/pds-icons/svg/ban.svg +1 -0
- package/dist/pds-icons/svg/bank.svg +1 -0
- package/dist/pds-icons/svg/bell.svg +1 -0
- package/dist/pds-icons/svg/block.svg +1 -0
- package/dist/pds-icons/svg/blog-filled.svg +1 -0
- package/dist/pds-icons/svg/blog.svg +1 -0
- package/dist/pds-icons/svg/bold.svg +1 -0
- package/dist/pds-icons/svg/broadcast.svg +1 -0
- package/dist/pds-icons/svg/button.svg +1 -0
- package/dist/pds-icons/svg/calendar-date.svg +1 -0
- package/dist/pds-icons/svg/calendar-schedule.svg +1 -0
- package/dist/pds-icons/svg/calendar-simple.svg +1 -0
- package/dist/pds-icons/svg/card-amex.svg +1 -0
- package/dist/pds-icons/svg/card-android.svg +1 -0
- package/dist/pds-icons/svg/card-apple.svg +1 -0
- package/dist/pds-icons/svg/card-diners-club.svg +1 -0
- package/dist/pds-icons/svg/card-discover.svg +1 -0
- package/dist/pds-icons/svg/card-generic.svg +1 -0
- package/dist/pds-icons/svg/card-gpay.svg +1 -0
- package/dist/pds-icons/svg/card-mastercard.svg +1 -0
- package/dist/pds-icons/svg/card-paypal.svg +1 -0
- package/dist/pds-icons/svg/card-stripe.svg +1 -0
- package/dist/pds-icons/svg/card-update.svg +1 -0
- package/dist/pds-icons/svg/card-visa.svg +1 -0
- package/dist/pds-icons/svg/caret-down.svg +1 -0
- package/dist/pds-icons/svg/caret-left.svg +1 -0
- package/dist/pds-icons/svg/caret-right.svg +1 -0
- package/dist/pds-icons/svg/caret-up.svg +1 -0
- package/dist/pds-icons/svg/cart-add.svg +1 -0
- package/dist/pds-icons/svg/cart.svg +1 -0
- package/dist/pds-icons/svg/certificate.svg +1 -0
- package/dist/pds-icons/svg/chart-filled.svg +1 -0
- package/dist/pds-icons/svg/chart.svg +1 -0
- package/dist/pds-icons/svg/check-circle-filled.svg +1 -0
- package/dist/pds-icons/svg/check-circle.svg +1 -0
- package/dist/pds-icons/svg/check.svg +1 -0
- package/dist/pds-icons/svg/circle-1.svg +1 -0
- package/dist/pds-icons/svg/circle-2.svg +1 -0
- package/dist/pds-icons/svg/circle-3.svg +1 -0
- package/dist/pds-icons/svg/circle-4.svg +1 -0
- package/dist/pds-icons/svg/circle-5.svg +1 -0
- package/dist/pds-icons/svg/circle-6.svg +1 -0
- package/dist/pds-icons/svg/circle-7.svg +1 -0
- package/dist/pds-icons/svg/circle-8.svg +1 -0
- package/dist/pds-icons/svg/circle-9.svg +1 -0
- package/dist/pds-icons/svg/circle-a.svg +1 -0
- package/dist/pds-icons/svg/circle-b.svg +1 -0
- package/dist/pds-icons/svg/circle-dashed.svg +1 -0
- package/dist/pds-icons/svg/clock.svg +1 -0
- package/dist/pds-icons/svg/closed-captions.svg +1 -0
- package/dist/pds-icons/svg/cloud-upload.svg +1 -0
- package/dist/pds-icons/svg/code-block.svg +1 -0
- package/dist/pds-icons/svg/code.svg +1 -0
- package/dist/pds-icons/svg/color.svg +1 -0
- package/dist/pds-icons/svg/columns.svg +1 -0
- package/dist/pds-icons/svg/comment-no.svg +1 -0
- package/dist/pds-icons/svg/comment.svg +1 -0
- package/dist/pds-icons/svg/connect.svg +1 -0
- package/dist/pds-icons/svg/contact.svg +1 -0
- package/dist/pds-icons/svg/conversation.svg +1 -0
- package/dist/pds-icons/svg/copy.svg +1 -0
- package/dist/pds-icons/svg/coupon.svg +1 -0
- package/dist/pds-icons/svg/course.svg +1 -0
- package/dist/pds-icons/svg/creator-studio-filled.svg +1 -0
- package/dist/pds-icons/svg/creator-studio.svg +1 -0
- package/dist/pds-icons/svg/cursor-pointer.svg +1 -0
- package/dist/pds-icons/svg/cursor.svg +1 -0
- package/dist/pds-icons/svg/custom-field.svg +1 -0
- package/dist/pds-icons/svg/customize.svg +1 -0
- package/dist/pds-icons/svg/danger-filled.svg +1 -0
- package/dist/pds-icons/svg/danger.svg +1 -0
- package/dist/pds-icons/svg/delete-circle.svg +1 -0
- package/dist/pds-icons/svg/delete-key.svg +1 -0
- package/dist/pds-icons/svg/delete-x.svg +1 -0
- package/dist/pds-icons/svg/dollar.svg +1 -0
- package/dist/pds-icons/svg/dot-menu-horizontal.svg +1 -0
- package/dist/pds-icons/svg/down-small.svg +1 -0
- package/dist/pds-icons/svg/download.svg +1 -0
- package/dist/pds-icons/svg/downsell.svg +1 -0
- package/dist/pds-icons/svg/draft.svg +1 -0
- package/dist/pds-icons/svg/drawer-collapse.svg +1 -0
- package/dist/pds-icons/svg/drawer-expand.svg +1 -0
- package/dist/pds-icons/svg/drop.svg +1 -0
- package/dist/pds-icons/svg/duplicate.svg +1 -0
- package/dist/pds-icons/svg/editor-filled.svg +1 -0
- package/dist/pds-icons/svg/editor.svg +1 -0
- package/dist/pds-icons/svg/email-activity.svg +1 -0
- package/dist/pds-icons/svg/emoji.svg +1 -0
- package/dist/pds-icons/svg/enlarge-vertical.svg +1 -0
- package/dist/pds-icons/svg/enlarge.svg +1 -0
- package/dist/pds-icons/svg/expand.svg +1 -0
- package/dist/pds-icons/svg/favorite.svg +1 -0
- package/dist/pds-icons/svg/feedback.svg +1 -0
- package/dist/pds-icons/svg/file-money.svg +1 -0
- package/dist/pds-icons/svg/file.svg +1 -0
- package/dist/pds-icons/svg/filter.svg +1 -0
- package/dist/pds-icons/svg/flag.svg +1 -0
- package/dist/pds-icons/svg/flash-filled.svg +1 -0
- package/dist/pds-icons/svg/flash.svg +1 -0
- package/dist/pds-icons/svg/floppy-disk.svg +1 -0
- package/dist/pds-icons/svg/folder-group.svg +1 -0
- package/dist/pds-icons/svg/folder.svg +1 -0
- package/dist/pds-icons/svg/form-field.svg +1 -0
- package/dist/pds-icons/svg/form-filled.svg +1 -0
- package/dist/pds-icons/svg/form.svg +1 -0
- package/dist/pds-icons/svg/fullscreen.svg +1 -0
- package/dist/pds-icons/svg/funnel.svg +1 -0
- package/dist/pds-icons/svg/gear-filled.svg +1 -0
- package/dist/pds-icons/svg/gear.svg +1 -0
- package/dist/pds-icons/svg/grant-offer.svg +1 -0
- package/dist/pds-icons/svg/handle-2-vertical.svg +1 -0
- package/dist/pds-icons/svg/handle-2.svg +1 -0
- package/dist/pds-icons/svg/handle.svg +1 -0
- package/dist/pds-icons/svg/hashtag.svg +1 -0
- package/dist/pds-icons/svg/hd-video.svg +1 -0
- package/dist/pds-icons/svg/heading-1.svg +1 -0
- package/dist/pds-icons/svg/heading-2.svg +1 -0
- package/dist/pds-icons/svg/heading-3.svg +1 -0
- package/dist/pds-icons/svg/heading-4.svg +1 -0
- package/dist/pds-icons/svg/heading-5.svg +1 -0
- package/dist/pds-icons/svg/heading-6.svg +1 -0
- package/dist/pds-icons/svg/heading-large.svg +1 -0
- package/dist/pds-icons/svg/heading-small.svg +1 -0
- package/dist/pds-icons/svg/headset.svg +1 -0
- package/dist/pds-icons/svg/help-filled.svg +1 -0
- package/dist/pds-icons/svg/help.svg +1 -0
- package/dist/pds-icons/svg/home-alt.svg +1 -0
- package/dist/pds-icons/svg/home-filled.svg +1 -0
- package/dist/pds-icons/svg/home.svg +1 -0
- package/dist/pds-icons/svg/horizontal-line.svg +1 -0
- package/dist/pds-icons/svg/image.svg +1 -0
- package/dist/pds-icons/svg/info-circle-filled.svg +1 -0
- package/dist/pds-icons/svg/info-circle.svg +1 -0
- package/dist/pds-icons/svg/ios-battery.svg +1 -0
- package/dist/pds-icons/svg/ios-data.svg +1 -0
- package/dist/pds-icons/svg/ios-wifi.svg +1 -0
- package/dist/pds-icons/svg/italic.svg +1 -0
- package/dist/pds-icons/svg/kajabi-filled.svg +1 -0
- package/dist/pds-icons/svg/kajabi.svg +1 -0
- package/dist/pds-icons/svg/klarna.svg +1 -0
- package/dist/pds-icons/svg/lab.svg +1 -0
- package/dist/pds-icons/svg/launch.svg +1 -0
- package/dist/pds-icons/svg/layout-grid.svg +1 -0
- package/dist/pds-icons/svg/layout-list.svg +1 -0
- package/dist/pds-icons/svg/left-small.svg +1 -0
- package/dist/pds-icons/svg/list-bullet.svg +1 -0
- package/dist/pds-icons/svg/list-details.svg +1 -0
- package/dist/pds-icons/svg/list-numbers.svg +1 -0
- package/dist/pds-icons/svg/location.svg +1 -0
- package/dist/pds-icons/svg/lock-alt.svg +1 -0
- package/dist/pds-icons/svg/lock.svg +1 -0
- package/dist/pds-icons/svg/logo-afterpay.svg +1 -0
- package/dist/pds-icons/svg/logo-facebook-round.svg +1 -0
- package/dist/pds-icons/svg/logo-facebook.svg +1 -0
- package/dist/pds-icons/svg/logo-instagram.svg +1 -0
- package/dist/pds-icons/svg/logo-linkedin.svg +1 -0
- package/dist/pds-icons/svg/logo-tiktok.svg +1 -0
- package/dist/pds-icons/svg/logo-twitter-x.svg +1 -0
- package/dist/pds-icons/svg/logo-twitter.svg +1 -0
- package/dist/pds-icons/svg/logo-youtube.svg +1 -0
- package/dist/pds-icons/svg/loop.svg +1 -0
- package/dist/pds-icons/svg/mail-filled.svg +1 -0
- package/dist/pds-icons/svg/mail-open.svg +1 -0
- package/dist/pds-icons/svg/mail.svg +1 -0
- package/dist/pds-icons/svg/map.svg +1 -0
- package/dist/pds-icons/svg/mapped.svg +1 -0
- package/dist/pds-icons/svg/margin-left.svg +1 -0
- package/dist/pds-icons/svg/margin-right.svg +1 -0
- package/dist/pds-icons/svg/marker-filled.svg +1 -0
- package/dist/pds-icons/svg/marker.svg +1 -0
- package/dist/pds-icons/svg/megaphone-filled.svg +1 -0
- package/dist/pds-icons/svg/megaphone.svg +1 -0
- package/dist/pds-icons/svg/menu-alt.svg +1 -0
- package/dist/pds-icons/svg/menu-bordered.svg +1 -0
- package/dist/pds-icons/svg/menu.svg +1 -0
- package/dist/pds-icons/svg/merge.svg +1 -0
- package/dist/pds-icons/svg/microphone-off.svg +1 -0
- package/dist/pds-icons/svg/microphone.svg +1 -0
- package/dist/pds-icons/svg/monitor-filled.svg +1 -0
- package/dist/pds-icons/svg/monitor.svg +1 -0
- package/dist/pds-icons/svg/more-menu-filled.svg +1 -0
- package/dist/pds-icons/svg/more-menu.svg +1 -0
- package/dist/pds-icons/svg/move-left.svg +1 -0
- package/dist/pds-icons/svg/move-right.svg +1 -0
- package/dist/pds-icons/svg/multi-pay.svg +1 -0
- package/dist/pds-icons/svg/newsletter-2.svg +1 -0
- package/dist/pds-icons/svg/newsletter.svg +1 -0
- package/dist/pds-icons/svg/one-off-session.svg +1 -0
- package/dist/pds-icons/svg/one-time.svg +1 -0
- package/dist/pds-icons/svg/packages.svg +1 -0
- package/dist/pds-icons/svg/pause-circle.svg +1 -0
- package/dist/pds-icons/svg/pause.svg +1 -0
- package/dist/pds-icons/svg/payout.svg +1 -0
- package/dist/pds-icons/svg/pen.svg +1 -0
- package/dist/pds-icons/svg/phone-portrait.svg +1 -0
- package/dist/pds-icons/svg/phone-toolbar-filled.svg +1 -0
- package/dist/pds-icons/svg/phone-toolbar.svg +1 -0
- package/dist/pds-icons/svg/play-circle.svg +1 -0
- package/dist/pds-icons/svg/play-outline.svg +1 -0
- package/dist/pds-icons/svg/play-store.svg +1 -0
- package/dist/pds-icons/svg/play.svg +1 -0
- package/dist/pds-icons/svg/plug.svg +1 -0
- package/dist/pds-icons/svg/premium.svg +1 -0
- package/dist/pds-icons/svg/present.svg +1 -0
- package/dist/pds-icons/svg/preview-off.svg +1 -0
- package/dist/pds-icons/svg/preview-on.svg +1 -0
- package/dist/pds-icons/svg/product-filled.svg +1 -0
- package/dist/pds-icons/svg/product.svg +1 -0
- package/dist/pds-icons/svg/question-circle.svg +1 -0
- package/dist/pds-icons/svg/quote.svg +1 -0
- package/dist/pds-icons/svg/redo.svg +1 -0
- package/dist/pds-icons/svg/refresh.svg +1 -0
- package/dist/pds-icons/svg/remove-circle.svg +1 -0
- package/dist/pds-icons/svg/remove.svg +1 -0
- package/dist/pds-icons/svg/rename.svg +1 -0
- package/dist/pds-icons/svg/reset-password.svg +1 -0
- package/dist/pds-icons/svg/restore.svg +1 -0
- package/dist/pds-icons/svg/right-small.svg +1 -0
- package/dist/pds-icons/svg/rocket-filled.svg +1 -0
- package/dist/pds-icons/svg/rocket.svg +1 -0
- package/dist/pds-icons/svg/round-dollar.svg +1 -0
- package/dist/pds-icons/svg/rows.svg +1 -0
- package/dist/pds-icons/svg/scissor.svg +1 -0
- package/dist/pds-icons/svg/screen-share-off.svg +1 -0
- package/dist/pds-icons/svg/screen-share-on.svg +1 -0
- package/dist/pds-icons/svg/search-small.svg +1 -0
- package/dist/pds-icons/svg/search.svg +1 -0
- package/dist/pds-icons/svg/send-message.svg +1 -0
- package/dist/pds-icons/svg/sequences.svg +1 -0
- package/dist/pds-icons/svg/share.svg +1 -0
- package/dist/pds-icons/svg/skipped.svg +1 -0
- package/dist/pds-icons/svg/slash-divider.svg +1 -0
- package/dist/pds-icons/svg/speaker.svg +1 -0
- package/dist/pds-icons/svg/stack.svg +1 -0
- package/dist/pds-icons/svg/star.svg +1 -0
- package/dist/pds-icons/svg/stop.svg +1 -0
- package/dist/pds-icons/svg/stopwatch.svg +1 -0
- package/dist/pds-icons/svg/strikethrough.svg +1 -0
- package/dist/pds-icons/svg/subscript.svg +1 -0
- package/dist/pds-icons/svg/subscriptions.svg +1 -0
- package/dist/pds-icons/svg/super-admin.svg +1 -0
- package/dist/pds-icons/svg/superscript.svg +1 -0
- package/dist/pds-icons/svg/sync.svg +1 -0
- package/dist/pds-icons/svg/tablet-landscape.svg +1 -0
- package/dist/pds-icons/svg/tablet-portrait.svg +1 -0
- package/dist/pds-icons/svg/tag-filled.svg +1 -0
- package/dist/pds-icons/svg/tag.svg +1 -0
- package/dist/pds-icons/svg/text-styles.svg +1 -0
- package/dist/pds-icons/svg/theme-store-filled.svg +1 -0
- package/dist/pds-icons/svg/theme-store.svg +1 -0
- package/dist/pds-icons/svg/thumb-down-filled.svg +1 -0
- package/dist/pds-icons/svg/thumb-down.svg +1 -0
- package/dist/pds-icons/svg/thumb-up-filled.svg +1 -0
- package/dist/pds-icons/svg/thumb-up.svg +1 -0
- package/dist/pds-icons/svg/trash.svg +1 -0
- package/dist/pds-icons/svg/trophy.svg +1 -0
- package/dist/pds-icons/svg/underline.svg +1 -0
- package/dist/pds-icons/svg/undo.svg +1 -0
- package/dist/pds-icons/svg/unlock.svg +1 -0
- package/dist/pds-icons/svg/unmapped.svg +1 -0
- package/dist/pds-icons/svg/up-small.svg +1 -0
- package/dist/pds-icons/svg/upload.svg +1 -0
- package/dist/pds-icons/svg/url.svg +1 -0
- package/dist/pds-icons/svg/user-circle-filled.svg +1 -0
- package/dist/pds-icons/svg/user-circle.svg +1 -0
- package/dist/pds-icons/svg/user-filled.svg +1 -0
- package/dist/pds-icons/svg/user-star-filled.svg +1 -0
- package/dist/pds-icons/svg/user-star.svg +1 -0
- package/dist/pds-icons/svg/user.svg +1 -0
- package/dist/pds-icons/svg/users-alt.svg +1 -0
- package/dist/pds-icons/svg/users.svg +1 -0
- package/dist/pds-icons/svg/video-off.svg +1 -0
- package/dist/pds-icons/svg/video-on.svg +1 -0
- package/dist/pds-icons/svg/warning-filled.svg +1 -0
- package/dist/pds-icons/svg/warning.svg +1 -0
- package/dist/pds-icons/svg/window-paragraph.svg +1 -0
- package/dist/pds-icons/svg/world.svg +1 -0
- package/dist/pds-icons/svg/wrench.svg +1 -0
- package/dist/pds-icons.json +4793 -0
- package/dist/pds-icons.symbols.svg +316 -0
- package/dist/svg/access-key.svg +1 -0
- package/dist/svg/add-circle.svg +1 -0
- package/dist/svg/add-image.svg +1 -0
- package/dist/svg/add-small.svg +1 -0
- package/dist/svg/add-square.svg +1 -0
- package/dist/svg/add.svg +1 -0
- package/dist/svg/advanced.svg +1 -0
- package/dist/svg/ai-sparkle.svg +1 -0
- package/dist/svg/ai-writer-filled.svg +1 -0
- package/dist/svg/ai-writer.svg +1 -0
- package/dist/svg/align-center.svg +1 -0
- package/dist/svg/align-justify.svg +1 -0
- package/dist/svg/align-left.svg +1 -0
- package/dist/svg/align-right.svg +1 -0
- package/dist/svg/app-store.svg +1 -0
- package/dist/svg/archive.svg +1 -0
- package/dist/svg/arrow-corner.svg +1 -0
- package/dist/svg/arrow-down.svg +1 -0
- package/dist/svg/arrow-left.svg +1 -0
- package/dist/svg/arrow-right.svg +1 -0
- package/dist/svg/arrow-up.svg +1 -0
- package/dist/svg/assessment.svg +1 -0
- package/dist/svg/at-sign.svg +1 -0
- package/dist/svg/attach.svg +1 -0
- package/dist/svg/automations.svg +1 -0
- package/dist/svg/ban.svg +1 -0
- package/dist/svg/bank.svg +1 -0
- package/dist/svg/bell.svg +1 -0
- package/dist/svg/block.svg +1 -0
- package/dist/svg/blog-filled.svg +1 -0
- package/dist/svg/blog.svg +1 -0
- package/dist/svg/bold.svg +1 -0
- package/dist/svg/broadcast.svg +1 -0
- package/dist/svg/button.svg +1 -0
- package/dist/svg/calendar-date.svg +1 -0
- package/dist/svg/calendar-schedule.svg +1 -0
- package/dist/svg/calendar-simple.svg +1 -0
- package/dist/svg/card-amex.svg +1 -0
- package/dist/svg/card-android.svg +1 -0
- package/dist/svg/card-apple.svg +1 -0
- package/dist/svg/card-diners-club.svg +1 -0
- package/dist/svg/card-discover.svg +1 -0
- package/dist/svg/card-generic.svg +1 -0
- package/dist/svg/card-gpay.svg +1 -0
- package/dist/svg/card-mastercard.svg +1 -0
- package/dist/svg/card-paypal.svg +1 -0
- package/dist/svg/card-stripe.svg +1 -0
- package/dist/svg/card-update.svg +1 -0
- package/dist/svg/card-visa.svg +1 -0
- package/dist/svg/caret-down.svg +1 -0
- package/dist/svg/caret-left.svg +1 -0
- package/dist/svg/caret-right.svg +1 -0
- package/dist/svg/caret-up.svg +1 -0
- package/dist/svg/cart-add.svg +1 -0
- package/dist/svg/cart.svg +1 -0
- package/dist/svg/certificate.svg +1 -0
- package/dist/svg/chart-filled.svg +1 -0
- package/dist/svg/chart.svg +1 -0
- package/dist/svg/check-circle-filled.svg +1 -0
- package/dist/svg/check-circle.svg +1 -0
- package/dist/svg/check.svg +1 -0
- package/dist/svg/circle-1.svg +1 -0
- package/dist/svg/circle-2.svg +1 -0
- package/dist/svg/circle-3.svg +1 -0
- package/dist/svg/circle-4.svg +1 -0
- package/dist/svg/circle-5.svg +1 -0
- package/dist/svg/circle-6.svg +1 -0
- package/dist/svg/circle-7.svg +1 -0
- package/dist/svg/circle-8.svg +1 -0
- package/dist/svg/circle-9.svg +1 -0
- package/dist/svg/circle-a.svg +1 -0
- package/dist/svg/circle-b.svg +1 -0
- package/dist/svg/circle-dashed.svg +1 -0
- package/dist/svg/clock.svg +1 -0
- package/dist/svg/closed-captions.svg +1 -0
- package/dist/svg/cloud-upload.svg +1 -0
- package/dist/svg/code-block.svg +1 -0
- package/dist/svg/code.svg +1 -0
- package/dist/svg/color.svg +1 -0
- package/dist/svg/columns.svg +1 -0
- package/dist/svg/comment-no.svg +1 -0
- package/dist/svg/comment.svg +1 -0
- package/dist/svg/connect.svg +1 -0
- package/dist/svg/contact.svg +1 -0
- package/dist/svg/conversation.svg +1 -0
- package/dist/svg/copy.svg +1 -0
- package/dist/svg/coupon.svg +1 -0
- package/dist/svg/course.svg +1 -0
- package/dist/svg/creator-studio-filled.svg +1 -0
- package/dist/svg/creator-studio.svg +1 -0
- package/dist/svg/cursor-pointer.svg +1 -0
- package/dist/svg/cursor.svg +1 -0
- package/dist/svg/custom-field.svg +1 -0
- package/dist/svg/customize.svg +1 -0
- package/dist/svg/danger-filled.svg +1 -0
- package/dist/svg/danger.svg +1 -0
- package/dist/svg/delete-circle.svg +1 -0
- package/dist/svg/delete-key.svg +1 -0
- package/dist/svg/delete-x.svg +1 -0
- package/dist/svg/dollar.svg +1 -0
- package/dist/svg/dot-menu-horizontal.svg +1 -0
- package/dist/svg/down-small.svg +1 -0
- package/dist/svg/download.svg +1 -0
- package/dist/svg/downsell.svg +1 -0
- package/dist/svg/draft.svg +1 -0
- package/dist/svg/drawer-collapse.svg +1 -0
- package/dist/svg/drawer-expand.svg +1 -0
- package/dist/svg/drop.svg +1 -0
- package/dist/svg/duplicate.svg +1 -0
- package/dist/svg/editor-filled.svg +1 -0
- package/dist/svg/editor.svg +1 -0
- package/dist/svg/email-activity.svg +1 -0
- package/dist/svg/emoji.svg +1 -0
- package/dist/svg/enlarge-vertical.svg +1 -0
- package/dist/svg/enlarge.svg +1 -0
- package/dist/svg/expand.svg +1 -0
- package/dist/svg/favorite.svg +1 -0
- package/dist/svg/feedback.svg +1 -0
- package/dist/svg/file-money.svg +1 -0
- package/dist/svg/file.svg +1 -0
- package/dist/svg/filter.svg +1 -0
- package/dist/svg/flag.svg +1 -0
- package/dist/svg/flash-filled.svg +1 -0
- package/dist/svg/flash.svg +1 -0
- package/dist/svg/floppy-disk.svg +1 -0
- package/dist/svg/folder-group.svg +1 -0
- package/dist/svg/folder.svg +1 -0
- package/dist/svg/form-field.svg +1 -0
- package/dist/svg/form-filled.svg +1 -0
- package/dist/svg/form.svg +1 -0
- package/dist/svg/fullscreen.svg +1 -0
- package/dist/svg/funnel.svg +1 -0
- package/dist/svg/gear-filled.svg +1 -0
- package/dist/svg/gear.svg +1 -0
- package/dist/svg/grant-offer.svg +1 -0
- package/dist/svg/handle-2-vertical.svg +1 -0
- package/dist/svg/handle-2.svg +1 -0
- package/dist/svg/handle.svg +1 -0
- package/dist/svg/hashtag.svg +1 -0
- package/dist/svg/hd-video.svg +1 -0
- package/dist/svg/heading-1.svg +1 -0
- package/dist/svg/heading-2.svg +1 -0
- package/dist/svg/heading-3.svg +1 -0
- package/dist/svg/heading-4.svg +1 -0
- package/dist/svg/heading-5.svg +1 -0
- package/dist/svg/heading-6.svg +1 -0
- package/dist/svg/heading-large.svg +1 -0
- package/dist/svg/heading-small.svg +1 -0
- package/dist/svg/headset.svg +1 -0
- package/dist/svg/help-filled.svg +1 -0
- package/dist/svg/help.svg +1 -0
- package/dist/svg/home-alt.svg +1 -0
- package/dist/svg/home-filled.svg +1 -0
- package/dist/svg/home.svg +1 -0
- package/dist/svg/horizontal-line.svg +1 -0
- package/dist/svg/image.svg +1 -0
- package/dist/svg/info-circle-filled.svg +1 -0
- package/dist/svg/info-circle.svg +1 -0
- package/dist/svg/ios-battery.svg +1 -0
- package/dist/svg/ios-data.svg +1 -0
- package/dist/svg/ios-wifi.svg +1 -0
- package/dist/svg/italic.svg +1 -0
- package/dist/svg/kajabi-filled.svg +1 -0
- package/dist/svg/kajabi.svg +1 -0
- package/dist/svg/klarna.svg +1 -0
- package/dist/svg/lab.svg +1 -0
- package/dist/svg/launch.svg +1 -0
- package/dist/svg/layout-grid.svg +1 -0
- package/dist/svg/layout-list.svg +1 -0
- package/dist/svg/left-small.svg +1 -0
- package/dist/svg/list-bullet.svg +1 -0
- package/dist/svg/list-details.svg +1 -0
- package/dist/svg/list-numbers.svg +1 -0
- package/dist/svg/location.svg +1 -0
- package/dist/svg/lock-alt.svg +1 -0
- package/dist/svg/lock.svg +1 -0
- package/dist/svg/logo-afterpay.svg +1 -0
- package/dist/svg/logo-facebook-round.svg +1 -0
- package/dist/svg/logo-facebook.svg +1 -0
- package/dist/svg/logo-instagram.svg +1 -0
- package/dist/svg/logo-linkedin.svg +1 -0
- package/dist/svg/logo-tiktok.svg +1 -0
- package/dist/svg/logo-twitter-x.svg +1 -0
- package/dist/svg/logo-twitter.svg +1 -0
- package/dist/svg/logo-youtube.svg +1 -0
- package/dist/svg/loop.svg +1 -0
- package/dist/svg/mail-filled.svg +1 -0
- package/dist/svg/mail-open.svg +1 -0
- package/dist/svg/mail.svg +1 -0
- package/dist/svg/map.svg +1 -0
- package/dist/svg/mapped.svg +1 -0
- package/dist/svg/margin-left.svg +1 -0
- package/dist/svg/margin-right.svg +1 -0
- package/dist/svg/marker-filled.svg +1 -0
- package/dist/svg/marker.svg +1 -0
- package/dist/svg/megaphone-filled.svg +1 -0
- package/dist/svg/megaphone.svg +1 -0
- package/dist/svg/menu-alt.svg +1 -0
- package/dist/svg/menu-bordered.svg +1 -0
- package/dist/svg/menu.svg +1 -0
- package/dist/svg/merge.svg +1 -0
- package/dist/svg/microphone-off.svg +1 -0
- package/dist/svg/microphone.svg +1 -0
- package/dist/svg/monitor-filled.svg +1 -0
- package/dist/svg/monitor.svg +1 -0
- package/dist/svg/more-menu-filled.svg +1 -0
- package/dist/svg/more-menu.svg +1 -0
- package/dist/svg/move-left.svg +1 -0
- package/dist/svg/move-right.svg +1 -0
- package/dist/svg/multi-pay.svg +1 -0
- package/dist/svg/newsletter-2.svg +1 -0
- package/dist/svg/newsletter.svg +1 -0
- package/dist/svg/one-off-session.svg +1 -0
- package/dist/svg/one-time.svg +1 -0
- package/dist/svg/packages.svg +1 -0
- package/dist/svg/pause-circle.svg +1 -0
- package/dist/svg/pause.svg +1 -0
- package/dist/svg/payout.svg +1 -0
- package/dist/svg/pen.svg +1 -0
- package/dist/svg/phone-portrait.svg +1 -0
- package/dist/svg/phone-toolbar-filled.svg +1 -0
- package/dist/svg/phone-toolbar.svg +1 -0
- package/dist/svg/play-circle.svg +1 -0
- package/dist/svg/play-outline.svg +1 -0
- package/dist/svg/play-store.svg +1 -0
- package/dist/svg/play.svg +1 -0
- package/dist/svg/plug.svg +1 -0
- package/dist/svg/premium.svg +1 -0
- package/dist/svg/present.svg +1 -0
- package/dist/svg/preview-off.svg +1 -0
- package/dist/svg/preview-on.svg +1 -0
- package/dist/svg/product-filled.svg +1 -0
- package/dist/svg/product.svg +1 -0
- package/dist/svg/question-circle.svg +1 -0
- package/dist/svg/quote.svg +1 -0
- package/dist/svg/redo.svg +1 -0
- package/dist/svg/refresh.svg +1 -0
- package/dist/svg/remove-circle.svg +1 -0
- package/dist/svg/remove.svg +1 -0
- package/dist/svg/rename.svg +1 -0
- package/dist/svg/reset-password.svg +1 -0
- package/dist/svg/restore.svg +1 -0
- package/dist/svg/right-small.svg +1 -0
- package/dist/svg/rocket-filled.svg +1 -0
- package/dist/svg/rocket.svg +1 -0
- package/dist/svg/round-dollar.svg +1 -0
- package/dist/svg/rows.svg +1 -0
- package/dist/svg/scissor.svg +1 -0
- package/dist/svg/screen-share-off.svg +1 -0
- package/dist/svg/screen-share-on.svg +1 -0
- package/dist/svg/search-small.svg +1 -0
- package/dist/svg/search.svg +1 -0
- package/dist/svg/send-message.svg +1 -0
- package/dist/svg/sequences.svg +1 -0
- package/dist/svg/share.svg +1 -0
- package/dist/svg/skipped.svg +1 -0
- package/dist/svg/slash-divider.svg +1 -0
- package/dist/svg/speaker.svg +1 -0
- package/dist/svg/stack.svg +1 -0
- package/dist/svg/star.svg +1 -0
- package/dist/svg/stop.svg +1 -0
- package/dist/svg/stopwatch.svg +1 -0
- package/dist/svg/strikethrough.svg +1 -0
- package/dist/svg/subscript.svg +1 -0
- package/dist/svg/subscriptions.svg +1 -0
- package/dist/svg/super-admin.svg +1 -0
- package/dist/svg/superscript.svg +1 -0
- package/dist/svg/sync.svg +1 -0
- package/dist/svg/tablet-landscape.svg +1 -0
- package/dist/svg/tablet-portrait.svg +1 -0
- package/dist/svg/tag-filled.svg +1 -0
- package/dist/svg/tag.svg +1 -0
- package/dist/svg/text-styles.svg +1 -0
- package/dist/svg/theme-store-filled.svg +1 -0
- package/dist/svg/theme-store.svg +1 -0
- package/dist/svg/thumb-down-filled.svg +1 -0
- package/dist/svg/thumb-down.svg +1 -0
- package/dist/svg/thumb-up-filled.svg +1 -0
- package/dist/svg/thumb-up.svg +1 -0
- package/dist/svg/trash.svg +1 -0
- package/dist/svg/trophy.svg +1 -0
- package/dist/svg/underline.svg +1 -0
- package/dist/svg/undo.svg +1 -0
- package/dist/svg/unlock.svg +1 -0
- package/dist/svg/unmapped.svg +1 -0
- package/dist/svg/up-small.svg +1 -0
- package/dist/svg/upload.svg +1 -0
- package/dist/svg/url.svg +1 -0
- package/dist/svg/user-circle-filled.svg +1 -0
- package/dist/svg/user-circle.svg +1 -0
- package/dist/svg/user-filled.svg +1 -0
- package/dist/svg/user-star-filled.svg +1 -0
- package/dist/svg/user-star.svg +1 -0
- package/dist/svg/user.svg +1 -0
- package/dist/svg/users-alt.svg +1 -0
- package/dist/svg/users.svg +1 -0
- package/dist/svg/video-off.svg +1 -0
- package/dist/svg/video-on.svg +1 -0
- package/dist/svg/warning-filled.svg +1 -0
- package/dist/svg/warning.svg +1 -0
- package/dist/svg/window-paragraph.svg +1 -0
- package/dist/svg/world.svg +1 -0
- package/dist/svg/wrench.svg +1 -0
- package/dist/types/components/pds-icon/assetPath.d.ts +16 -0
- package/dist/types/components/pds-icon/pds-icon.d.ts +48 -0
- package/dist/types/components/pds-icon/request.d.ts +2 -0
- package/dist/types/components/pds-icon/utils.d.ts +24 -0
- package/dist/types/components/pds-icon/validate.d.ts +4 -0
- package/dist/types/components.d.ts +87 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +1676 -0
- package/icons/index.d.ts +305 -0
- package/icons/index.js +305 -0
- package/icons/index.mjs +305 -0
- package/icons/package.json +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-f28202cc.js';
|
|
2
|
+
import { i as isStr, b as inheritAttributes, g as getUrl, c as getName } from './utils-6c036ebc.js';
|
|
3
|
+
|
|
4
|
+
const validateContent = (svgContent) => {
|
|
5
|
+
const div = document.createElement('div');
|
|
6
|
+
div.innerHTML = svgContent;
|
|
7
|
+
// setup this way to ensure it works on our buddy IE
|
|
8
|
+
for (let i = div.childNodes.length - 1; i >= 0; i--) {
|
|
9
|
+
if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {
|
|
10
|
+
div.removeChild(div.childNodes[i]);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
// must only have 1 root element
|
|
14
|
+
const svgElm = div.firstElementChild;
|
|
15
|
+
if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {
|
|
16
|
+
const svgClass = svgElm.getAttribute('class') || '';
|
|
17
|
+
svgElm.setAttribute('class', (svgClass + ' s-pds-icon').trim());
|
|
18
|
+
// root element must be an svg
|
|
19
|
+
// lets double check we've got valid elements
|
|
20
|
+
// do not allow scripts
|
|
21
|
+
if (isValid(svgElm)) {
|
|
22
|
+
return div.innerHTML;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return '';
|
|
26
|
+
};
|
|
27
|
+
const isValid = (elm) => {
|
|
28
|
+
if (elm.nodeType === 1) {
|
|
29
|
+
if (elm.nodeName.toLowerCase() === 'script') {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
for (let i = 0; i < elm.attributes.length; i++) {
|
|
33
|
+
const name = elm.attributes[i].name;
|
|
34
|
+
if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
for (let i = 0; i < elm.childNodes.length; i++) {
|
|
39
|
+
if (!isValid(elm.childNodes[i])) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return true;
|
|
45
|
+
};
|
|
46
|
+
const isSvgDataUrl = (url) => url.startsWith('data:image/svg+xml');
|
|
47
|
+
const isEncodedDataUrl = (url) => url.indexOf(';utf8,') !== -1;
|
|
48
|
+
|
|
49
|
+
const pdsIconContent = new Map();
|
|
50
|
+
const requests = new Map(); // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
51
|
+
let parser;
|
|
52
|
+
const getSvgContent = (url, sanitize = false) => {
|
|
53
|
+
let req = requests.get(url);
|
|
54
|
+
if (!req) {
|
|
55
|
+
if (typeof fetch != 'undefined' && typeof document !== 'undefined') {
|
|
56
|
+
if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {
|
|
57
|
+
if (!parser) {
|
|
58
|
+
parser = new DOMParser();
|
|
59
|
+
}
|
|
60
|
+
const doc = parser.parseFromString(url, 'text/html');
|
|
61
|
+
const svg = doc.querySelector('svg');
|
|
62
|
+
if (svg) {
|
|
63
|
+
pdsIconContent.set(url, svg.outerHTML);
|
|
64
|
+
}
|
|
65
|
+
return Promise.resolve();
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
// we don't have a request
|
|
69
|
+
req = fetch(url).then((rsp) => {
|
|
70
|
+
if (rsp.ok) {
|
|
71
|
+
return rsp.text().then((svgContent) => {
|
|
72
|
+
if (svgContent && sanitize !== false) {
|
|
73
|
+
svgContent = validateContent(svgContent);
|
|
74
|
+
}
|
|
75
|
+
pdsIconContent.set(url, svgContent || '');
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
pdsIconContent.set(url, '');
|
|
79
|
+
});
|
|
80
|
+
requests.set(url, req);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
pdsIconContent.set(url, '');
|
|
85
|
+
return Promise.resolve();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return req;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const pdsIconCss = ":host{contain:strict;display:inline-block;fill:currentColor;height:1em;width:1em}:host .pdsicon{fill:currentColor}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";
|
|
92
|
+
const PdsIconStyle0 = pdsIconCss;
|
|
93
|
+
|
|
94
|
+
const PdsIcon = class {
|
|
95
|
+
constructor(hostRef) {
|
|
96
|
+
registerInstance(this, hostRef);
|
|
97
|
+
this.inheritedAttributes = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
98
|
+
this.hasAriaHidden = () => {
|
|
99
|
+
const { el } = this;
|
|
100
|
+
return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';
|
|
101
|
+
};
|
|
102
|
+
this.ariaLabel = undefined;
|
|
103
|
+
this.isVisible = false;
|
|
104
|
+
this.svgContent = undefined;
|
|
105
|
+
this.color = undefined;
|
|
106
|
+
this.icon = undefined;
|
|
107
|
+
this.name = undefined;
|
|
108
|
+
this.size = 'regular';
|
|
109
|
+
this.src = undefined;
|
|
110
|
+
}
|
|
111
|
+
iconSize() {
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
113
|
+
const sizes = {
|
|
114
|
+
small: '12px',
|
|
115
|
+
regular: '16px',
|
|
116
|
+
medium: '20px',
|
|
117
|
+
large: '24px',
|
|
118
|
+
};
|
|
119
|
+
if (sizes[this.size]) {
|
|
120
|
+
return sizes[this.size];
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
return this.size;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
componentWillLoad() {
|
|
127
|
+
this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);
|
|
128
|
+
}
|
|
129
|
+
connectedCallback() {
|
|
130
|
+
this.waitUntilVisible(this.el, '50px', () => {
|
|
131
|
+
this.isVisible = true;
|
|
132
|
+
this.loadIcon();
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
disconnectedCallback() {
|
|
136
|
+
if (this.io) {
|
|
137
|
+
this.io.disconnect();
|
|
138
|
+
this.io = undefined;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
loadIcon() {
|
|
142
|
+
if (this.isVisible) {
|
|
143
|
+
const url = getUrl(this);
|
|
144
|
+
if (url) {
|
|
145
|
+
if (pdsIconContent.has(url)) {
|
|
146
|
+
this.svgContent = pdsIconContent.get(url);
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
const label = getName(this.name, this.icon);
|
|
154
|
+
if (label) {
|
|
155
|
+
this.ariaLabel = label.replace(/\-/g, ' ');
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
render() {
|
|
159
|
+
const { ariaLabel, inheritedAttributes } = this;
|
|
160
|
+
const style = {
|
|
161
|
+
height: this.iconSize(),
|
|
162
|
+
width: this.iconSize(),
|
|
163
|
+
color: this.color,
|
|
164
|
+
};
|
|
165
|
+
return (h(Host, Object.assign({ key: '450a12ddbe225916752aeb9323ff1a11d11bc4b3', "aria-label": ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null, role: "img", style: style, class: Object.assign({}, createColorClasses(this.color)) }, inheritedAttributes), this.svgContent ? (h("div", { class: "icon-inner", innerHTML: this.svgContent })) : (h("div", { class: "icon-inner" }))));
|
|
166
|
+
}
|
|
167
|
+
/*****
|
|
168
|
+
* Private Methods
|
|
169
|
+
****/
|
|
170
|
+
waitUntilVisible(el, rootMargin, cb) {
|
|
171
|
+
if (typeof window !== 'undefined' && (window).IntersectionObserver) {
|
|
172
|
+
const io = (this.io = new (window).IntersectionObserver((data) => {
|
|
173
|
+
if (data[0].isIntersecting) {
|
|
174
|
+
io.disconnect();
|
|
175
|
+
this.io = undefined;
|
|
176
|
+
cb();
|
|
177
|
+
}
|
|
178
|
+
}, { rootMargin }));
|
|
179
|
+
io.observe(el);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
// browser doesn't support IntersectionObserver
|
|
183
|
+
// so just fallback to always show it
|
|
184
|
+
cb();
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
static get assetsDirs() { return ["svg"]; }
|
|
188
|
+
get el() { return getElement(this); }
|
|
189
|
+
static get watchers() { return {
|
|
190
|
+
"name": ["loadIcon"],
|
|
191
|
+
"src": ["loadIcon"],
|
|
192
|
+
"icon": ["loadIcon"]
|
|
193
|
+
}; }
|
|
194
|
+
};
|
|
195
|
+
const createColorClasses = (color) => {
|
|
196
|
+
return color
|
|
197
|
+
? {
|
|
198
|
+
'pds-color': true,
|
|
199
|
+
[`pds-color-${color}`]: true,
|
|
200
|
+
}
|
|
201
|
+
: null;
|
|
202
|
+
};
|
|
203
|
+
PdsIcon.style = PdsIconStyle0;
|
|
204
|
+
|
|
205
|
+
export { PdsIcon as pds_icon };
|
|
206
|
+
|
|
207
|
+
//# sourceMappingURL=pds-icon.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"pds-icon.entry.js","mappings":";;;AAEO,MAAM,eAAe,GAAG,CAAC,UAAkB;IAChD,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC1C,GAAG,CAAC,SAAS,GAAG,UAAU,CAAC;;IAG3B,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;QACnD,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;YACtD,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;SACpC;KACF;;IAGD,MAAM,MAAM,GAAG,GAAG,CAAC,iBAAiB,CAAC;IACrC,IAAI,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;QACrD,MAAM,QAAQ,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,QAAQ,GAAG,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;;;;QAKhE,IAAI,OAAO,CAAC,MAAqB,CAAC,EAAE;YAClC,OAAO,GAAG,CAAC,SAAS,CAAC;SACtB;KACF;IACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEK,MAAM,OAAO,GAAG,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AAM,EAAE,oBAAoB,EAAE;YACrF,MAAM,EAAE,IAAI,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,oBAAoB,CACrD,CAAC,IAAiC;gBAChC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE;oBAC1B,EAAE,CAAC,UAAU,EAAE,CAAC;oBAChB,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;oBACpB,EAAE,EAAE,CAAC;iBACN;aACF,EACD,EAAE,UAAU,EAAE,CACf,CAAC,CAAC;YAEH,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SAChB;aAAM;;;YAGL,EAAE,EAAE,CAAC;SACN;KACF;;;;;;;;;AASH,MAAM,kBAAkB,GAAG,CAAC,KAAyB;IACnD,OAAO,KAAK;UACT;YACE,WAAW,EAAE,IAAI;YACjB,CAAC,aAAa,KAAK,EAAE,GAAG,IAAI;SAC7B;UACD,IAAI,CAAC;AACT,CAAC,CAAC;;;;;","names":[],"sources":["src/components/pds-icon/validate.ts","src/components/pds-icon/request.ts","src/components/pds-icon/pds-icon.scss?tag=pds-icon&encapsulation=shadow","src/components/pds-icon/pds-icon.tsx"],"sourcesContent":["import { isStr } from './utils';\n\nexport const validateContent = (svgContent: string) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n\n // setup this way to ensure it works on our buddy IE\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n }\n\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n const svgClass = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', (svgClass + ' s-pds-icon').trim());\n\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm as HTMLElement)) {\n return div.innerHTML;\n }\n }\n return '';\n};\n\nexport const isValid = (elm: HTMLElement) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n\n for (let i = 0; i < elm.attributes.length; i++) {\n const name = elm.attributes[i].name;\n if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i] as HTMLElement)) {\n return false;\n }\n }\n }\n return true;\n};\n\nexport const isSvgDataUrl = (url: string) => url.startsWith('data:image/svg+xml');\nexport const isEncodedDataUrl = (url: string) => url.indexOf(';utf8,') !== -1;\n","import { isEncodedDataUrl, isSvgDataUrl, validateContent } from './validate';\n\nexport const pdsIconContent = new Map<string, string>();\nconst requests = new Map<string, Promise<any>>(); // eslint-disable-line @typescript-eslint/no-explicit-any\n\nlet parser: DOMParser;\n\nexport const getSvgContent = (url: string, sanitize = false) => {\n let req = requests.get(url);\n\n if(!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {\n if (!parser) {\n parser = new DOMParser();\n }\n\n const doc = parser.parseFromString(url, 'text/html');\n const svg = doc.querySelector('svg');\n\n if (svg) {\n pdsIconContent.set(url, svg.outerHTML);\n }\n\n return Promise.resolve();\n } else {\n // we don't have a request\n req = fetch(url).then((rsp) => {\n if (rsp.ok) {\n return rsp.text().then((svgContent) => {\n if (svgContent && sanitize !== false) {\n svgContent = validateContent(svgContent);\n }\n pdsIconContent.set(url, svgContent || '');\n });\n }\n pdsIconContent.set(url, '');\n });\n\n requests.set(url, req);\n }\n } else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n\n return req;\n}\n",":host {\n contain: strict;\n display: inline-block;\n fill: currentColor;\n height: 1em;\n width: 1em;\n\n .pdsicon {\n fill: currentColor;\n }\n}\n\n.pds-icon-fill-none {\n fill: none;\n}\n\n.icon-inner,\n.pds-icon,\nsvg {\n display: block;\n height: 100%;\n width: 100%;\n}\n","import { Build, Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { getSvgContent, pdsIconContent } from './request';\nimport { getName, getUrl, inheritAttributes } from './utils';\n\n@Component({\n tag: 'pds-icon',\n assetsDirs: ['svg'],\n styleUrl: 'pds-icon.scss',\n shadow: true,\n})\nexport class PdsIcon {\n private io?: IntersectionObserver;\n private inheritedAttributes: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n @Element() el!: HTMLPdsIconElement;\n\n @State() private ariaLabel?: string;\n @State() private isVisible = false;\n @State() private svgContent?: string;\n\n /**\n *\n * The color of the icon\n *\n */\n @Prop() color?: string;\n\n /**\n * This a combination of both `name` and `src`. If a `src` url is detected\n * it will set the `src` property. Otherwise it assumes it's a built-in named\n * SVG and set the `name` property.\n */\n @Prop() icon?: any;\n\n /**\n * The name of the icon to use from\n * the built-in set.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * The size of the icon. This can be\n * 'small', 'regular', 'medium', large, or a\n * custom value (40px, 1rem, etc)\n *\n */\n @Prop({ reflect: true }) size?:\n | 'small' // 12px\n | 'regular' // 16px\n | 'medium' // 20px\n | 'large' // 24px\n | 'auto'\n | string = 'regular'\n\n /**\n *\n * Specifies the exact `src` of an SVG file to use.\n */\n @Prop() src?: string;\n\n private iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes: { [key: string]: any } = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n }\n\n if (sizes[this.size]) {\n return sizes[this.size];\n } else {\n return this.size;\n }\n }\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n }\n\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n })\n }\n\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n\n @Watch('name')\n @Watch('src')\n @Watch('icon')\n loadIcon() {\n if (Build.isBrowser && this.isVisible) {\n const url = getUrl(this);\n if (url) {\n if (pdsIconContent.has(url)) {\n this.svgContent = pdsIconContent.get(url);\n } else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n\n const label = getName(this.name, this.icon);\n\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n\n const style = {\n height: this.iconSize(),\n width: this.iconSize(),\n color: this.color,\n }\n\n return (\n\n <Host\n aria-label={ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null }\n role=\"img\"\n style={style}\n class={{\n ...createColorClasses(this.color),\n }}\n {...inheritedAttributes}\n >\n {Build.isBrowser && this.svgContent ? (\n <div class=\"icon-inner\" innerHTML={this.svgContent}></div>\n ) : (\n <div class=\"icon-inner\"></div>\n )}\n </Host>\n )\n }\n\n /*****\n * Private Methods\n ****/\n\n private waitUntilVisible(el: HTMLElement, rootMargin: string, cb: () => void) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver(\n (data: IntersectionObserverEntry[]) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n },\n { rootMargin },\n ));\n\n io.observe(el);\n } else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n\n private hasAriaHidden = () => {\n const { el } = this;\n\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n }\n}\n\nconst createColorClasses = (color: string | undefined) => {\n return color\n ? {\n 'pds-color': true,\n [`pds-color-${color}`]: true,\n }\n : null;\n };\n"],"version":3}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-f28202cc.js';
|
|
2
|
+
export { s as setNonce } from './index-f28202cc.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
Stencil Client Patch Browser v4.18.3 | MIT Licensed | https://stenciljs.com
|
|
7
|
+
*/
|
|
8
|
+
var patchBrowser = () => {
|
|
9
|
+
const importMeta = import.meta.url;
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== "") {
|
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return promiseResolve(opts);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
patchBrowser().then(async (options) => {
|
|
18
|
+
await globalScripts();
|
|
19
|
+
return bootstrapLazy([["pds-icon",[[1,"pds-icon",{"color":[1],"icon":[8],"name":[513],"size":[513],"src":[1],"ariaLabel":[32],"isVisible":[32],"svgContent":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"]}]]]], options);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=pds-icons.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"pds-icons.js","mappings":";;;;AAAA;AACA;AACA;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC;AACrC,EAAE,MAAM,IAAI,GAAiE,EAAE,CAAC;AAChF,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AACtD,GAAG;AACH,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAM,aAAa,EAAE,CAAC;AACxB,EAAE,OAAO,aAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC","names":[],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.18.3 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import './index-f28202cc.js';
|
|
2
|
+
|
|
3
|
+
let missingAssetPathWarning = false;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* Reads the component asset path config from meta tag or a global variable.
|
|
7
|
+
* This is a temporary workaround until these issues have been addressed:
|
|
8
|
+
*
|
|
9
|
+
* https://github.com/ionic-team/stencil/issues/2826/
|
|
10
|
+
* https://github.com/ionic-team/stencil/issues/3470
|
|
11
|
+
* https://github.com/ionic-team/stencil-ds-output-targets/issues/186
|
|
12
|
+
*/
|
|
13
|
+
const getAssetPath = (path) => {
|
|
14
|
+
var _a;
|
|
15
|
+
const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;
|
|
16
|
+
// Get the asset path from the window object if available
|
|
17
|
+
const windowAssetPath = window.__PINE_ASSET_PATH__;
|
|
18
|
+
// Set the CDN Asset path using the latest version
|
|
19
|
+
const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';
|
|
20
|
+
const assetBasePath = metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';
|
|
21
|
+
// Display a warning if the assets are fetched from the CDN.
|
|
22
|
+
if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
|
|
23
|
+
missingAssetPathWarning = true;
|
|
24
|
+
console.warn(`
|
|
25
|
+
Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs
|
|
26
|
+
`);
|
|
27
|
+
}
|
|
28
|
+
let assetPath = path;
|
|
29
|
+
if (path.startsWith('./')) {
|
|
30
|
+
assetPath = path.substring(2);
|
|
31
|
+
}
|
|
32
|
+
if (!assetBasePath.endsWith('/')) {
|
|
33
|
+
assetPath = '/' + assetPath;
|
|
34
|
+
}
|
|
35
|
+
return assetBasePath + assetPath;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
let CACHED_MAP;
|
|
39
|
+
const addIcons = (icons) => {
|
|
40
|
+
const map = getIconMap();
|
|
41
|
+
Object.keys(icons).forEach(name => map.set(name, icons[name]));
|
|
42
|
+
};
|
|
43
|
+
const getIconMap = () => {
|
|
44
|
+
if (typeof window === 'undefined') {
|
|
45
|
+
return new Map();
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
if (!CACHED_MAP) {
|
|
49
|
+
const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
50
|
+
win.PdsIcons = win.PdsIcons || {};
|
|
51
|
+
CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();
|
|
52
|
+
}
|
|
53
|
+
return CACHED_MAP;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
const getName = (iconName, icon) => {
|
|
57
|
+
if (!iconName && icon && !isSrc(icon)) {
|
|
58
|
+
iconName = icon;
|
|
59
|
+
}
|
|
60
|
+
if (isStr(iconName)) {
|
|
61
|
+
iconName = toLower(iconName);
|
|
62
|
+
}
|
|
63
|
+
if (!isStr(iconName) || iconName.trim() === '') {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
const invalidChars = iconName.replace(/[a-z]|-|\d/gi, '');
|
|
67
|
+
if (invalidChars != '') {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
return iconName;
|
|
71
|
+
};
|
|
72
|
+
const getNamedUrl = (iconName) => {
|
|
73
|
+
const url = getIconMap().get(iconName);
|
|
74
|
+
if (url) {
|
|
75
|
+
return url;
|
|
76
|
+
}
|
|
77
|
+
return getAssetPath(`svg/${iconName}.svg`);
|
|
78
|
+
};
|
|
79
|
+
const getSrc = (src) => {
|
|
80
|
+
if (isStr(src)) {
|
|
81
|
+
src = src.trim();
|
|
82
|
+
if (isSrc(src)) {
|
|
83
|
+
return src;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return null;
|
|
87
|
+
};
|
|
88
|
+
const getUrl = (pdsIcon) => {
|
|
89
|
+
let url = getSrc(pdsIcon.src);
|
|
90
|
+
if (url) {
|
|
91
|
+
return url;
|
|
92
|
+
}
|
|
93
|
+
url = getName(pdsIcon.name, pdsIcon.icon);
|
|
94
|
+
if (url) {
|
|
95
|
+
return getNamedUrl(url);
|
|
96
|
+
}
|
|
97
|
+
if (pdsIcon.icon) {
|
|
98
|
+
url = getSrc(pdsIcon.icon);
|
|
99
|
+
if (url) {
|
|
100
|
+
return url;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return null;
|
|
104
|
+
};
|
|
105
|
+
const isSrc = (str) => str.length > 0 && /(\/|\.)/.test(str);
|
|
106
|
+
const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
107
|
+
const toLower = (val) => val.toLowerCase();
|
|
108
|
+
/**
|
|
109
|
+
* Elements inside of web components sometimes need to inherit global attributes
|
|
110
|
+
* set on the host. For example, the inner input in `ion-input` should inherit
|
|
111
|
+
* the `title` attribute that developers set directly on `ion-input`. This
|
|
112
|
+
* helper function should be called in componentWillLoad and assigned to a variable
|
|
113
|
+
* that is later used in the render function.
|
|
114
|
+
*
|
|
115
|
+
* This does not need to be reactive as changing attributes on the host element
|
|
116
|
+
* does not trigger a re-render.
|
|
117
|
+
*/
|
|
118
|
+
const inheritAttributes = (el, attributes = []) => {
|
|
119
|
+
const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
120
|
+
attributes.forEach(attr => {
|
|
121
|
+
if (el.hasAttribute(attr)) {
|
|
122
|
+
const value = el.getAttribute(attr);
|
|
123
|
+
if (value !== null) {
|
|
124
|
+
attributeObject[attr] = el.getAttribute(attr);
|
|
125
|
+
}
|
|
126
|
+
el.removeAttribute(attr);
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
return attributeObject;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export { addIcons as a, inheritAttributes as b,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KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;aAC/C;YACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAC1B;KACF,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB;;;;","names":[],"sources":["src/components/pds-icon/assetPath.ts","src/components/pds-icon/utils.ts"],"sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n","import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../cjs/loader.cjs.js');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../cjs/loader.cjs.js');
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from '../types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
|
+
export declare function applyPolyfills(): Promise<void>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
16
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
17
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
18
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
19
|
+
* will result in the same behavior.
|
|
20
|
+
*/
|
|
21
|
+
export declare function setNonce(nonce: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../esm/loader.js';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
2
|
+
export * from '../esm/loader.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pds-icons-loader",
|
|
3
|
+
"private": true,
|
|
4
|
+
"typings": "./index.d.ts",
|
|
5
|
+
"module": "./index.js",
|
|
6
|
+
"main": "./index.cjs.js",
|
|
7
|
+
"jsnext:main": "./index.es2017.js",
|
|
8
|
+
"es2015": "./index.es2017.js",
|
|
9
|
+
"es2017": "./index.es2017.js",
|
|
10
|
+
"unpkg": "./cdn.js"
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":[],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const e="pds-icons";const t={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,cmpDidLoad:false,cmpDidRender:false,cmpDidUnload:false,cmpDidUpdate:false,cmpShouldUpdate:false,cmpWillLoad:true,cmpWillRender:false,cmpWillUpdate:false,connectedCallback:true,constructableCSS:true,cssAnnotations:true,devTools:false,disconnectedCallback:true,element:false,event:false,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:false,hostListenerTarget:false,hostListenerTargetBody:false,hostListenerTargetDocument:false,hostListenerTargetParent:false,hostListenerTargetWindow:false,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:false,mode:false,observeAttribute:true,profile:false,prop:true,propBoolean:false,propMutable:false,propNumber:false,propString:true,reflect:true,scoped:false,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:false,shadowDom:true,slot:false,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:false,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:false,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var n=Object.defineProperty;var l=(e,t)=>{for(var l in t)n(e,l,{get:t[l],enumerable:true})};var r={};var s=e=>e!=null;var a=e=>{e=typeof e;return e==="object"||e==="function"};function i(e){var t,n,l;return(l=(n=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?l:void 0}var o={};l(o,{err:()=>c,map:()=>u,ok:()=>f,unwrap:()=>v,unwrapErr:()=>d});var f=e=>({isOk:true,isErr:false,value:e});var c=e=>({isOk:false,isErr:true,value:e});function u(e,t){if(e.isOk){const n=t(e.value);if(n instanceof Promise){return n.then((e=>f(e)))}else{return f(n)}}if(e.isErr){const t=e.value;return c(t)}throw"should never get here"}var v=e=>{if(e.isOk){return e.value}else{throw e.value}};var d=e=>{if(e.isErr){return e.value}else{throw e.value}};var p=(e,t="")=>{{return()=>{}}};var h=(e,t)=>{{return()=>{}}};var m="{visibility:hidden}.hydrated{visibility:inherit}";var y="slot-fb{display:contents}slot-fb[hidden]{display:none}";var b="http://www.w3.org/1999/xlink";var w=(e,t,...n)=>{let l=null;let r=null;let s=false;let i=false;const o=[];const f=t=>{for(let n=0;n<t.length;n++){l=t[n];if(Array.isArray(l)){f(l)}else if(l!=null&&typeof l!=="boolean"){if(s=typeof e!=="function"&&!a(l)){l=String(l)}if(s&&i){o[o.length-1].t+=l}else{o.push(s?S(null,l):l)}i=s}}};f(n);if(t){if(t.key){r=t.key}{const e=t.className||t.class;if(e){t.class=typeof e!=="object"?e:Object.keys(e).filter((t=>e[t])).join(" ")}}}const c=S(e,null);c.l=t;if(o.length>0){c.i=o}{c.o=r}return c};var S=(e,t)=>{const n={u:0,v:e,t,p:null,i:null};{n.l=null}{n.o=null}return n};var $={};var g=e=>e&&e.v===$;var k=(e,t)=>{if(e!=null&&!a(e)){if(t&1){return String(e)}return e}return e};var C=e=>be(e).$hostElement$;var x=(e,t,n)=>{const l=Te.ce(t,n);e.dispatchEvent(l);return l};var j=new WeakMap;var O=(e,t,n)=>{let l=xe.get(e);if(De&&n){l=l||new CSSStyleSheet;if(typeof l==="string"){l=t}else{l.replaceSync(t)}}else{l=t}xe.set(e,l)};var T=(e,t,n)=>{var l;const r=D(t);const s=xe.get(r);e=e.nodeType===11?e:Oe;if(s){if(typeof s==="string"){e=e.head||e;let n=j.get(e);let a;if(!n){j.set(e,n=new Set)}if(!n.has(r)){{a=Oe.createElement("style");a.innerHTML=s;const t=(l=Te.h)!=null?l:i(Oe);if(t!=null){a.setAttribute("nonce",t)}e.insertBefore(a,e.querySelector("link"))}if(t.u&4){a.innerHTML+=y}if(n){n.add(r)}}}else if(!e.adoptedStyleSheets.includes(s)){e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]}}return r};var L=e=>{const t=e.m;const n=e.$hostElement$;const l=t.u;const r=p("attachStyles",t.S);const s=T(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(l&10){n["s-sc"]=s;n.classList.add(s+"-h")}r()};var D=(e,t)=>"sc-"+e.S;var E=(e,t,n,l,r,s)=>{if(n!==l){let i=$e(e,t);let o=t.toLowerCase();if(t==="class"){const t=e.classList;const r=R(n);const s=R(l);t.remove(...r.filter((e=>e&&!s.includes(e))));t.add(...s.filter((e=>e&&!r.includes(e))))}else if(t==="style"){{for(const t in n){if(!l||l[t]==null){if(t.includes("-")){e.style.removeProperty(t)}else{e.style[t]=""}}}}for(const t in l){if(!n||l[t]!==n[t]){if(t.includes("-")){e.style.setProperty(t,l[t])}else{e.style[t]=l[t]}}}}else if(t==="key");else if(t==="ref"){if(l){l(e)}}else if(!i&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if($e(je,o)){t=o.slice(2)}else{t=o[2]+t.slice(3)}if(n||l){const r=t.endsWith(F);t=t.replace(P,"");if(n){Te.rel(e,t,n,r)}if(l){Te.ael(e,t,l,r)}}}else{const f=a(l);if((i||f&&l!==null)&&!r){try{if(!e.tagName.includes("-")){const r=l==null?"":l;if(t==="list"){i=false}else if(n==null||e[t]!=r){e[t]=r}}else{e[t]=l}}catch(e){}}let c=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){t=o;c=true}}if(l==null||l===false){if(l!==false||e.getAttribute(t)===""){if(c){e.removeAttributeNS(b,t)}else{e.removeAttribute(t)}}}else if((!i||s&4||r)&&!f){l=l===true?"":l;if(c){e.setAttributeNS(b,t,l)}else{e.setAttribute(t,l)}}}}};var M=/\s/;var R=e=>!e?[]:e.split(M);var F="Capture";var P=new RegExp(F+"$");var A=(e,t,n)=>{const l=t.p.nodeType===11&&t.p.host?t.p.host:t.p;const s=e&&e.l||r;const a=t.l||r;{for(const e of N(Object.keys(s))){if(!(e in a)){E(l,e,s[e],void 0,n,t.u)}}}for(const e of N(Object.keys(a))){E(l,e,s[e],a[e],n,t.u)}};function N(e){return e.includes("ref")?[...e.filter((e=>e!=="ref")),"ref"]:e}var U;var W;var H=false;var z=(e,t,n,l)=>{const r=t.i[n];let a=0;let i;let o;if(r.t!==null){i=r.p=Oe.createTextNode(r.t)}else{i=r.p=Oe.createElement(r.v);{A(null,r,H)}if(s(U)&&i["s-si"]!==U){i.classList.add(i["s-si"]=U)}if(r.i){for(a=0;a<r.i.length;++a){o=z(e,r,a);if(o){i.appendChild(o)}}}}i["s-hn"]=W;return i};var B=(e,t,n,l,r,s)=>{let a=e;let i;if(a.shadowRoot&&a.tagName===W){a=a.shadowRoot}for(;r<=s;++r){if(l[r]){i=z(null,n,r);if(i){l[r].p=i;V(a,i,t)}}}};var Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.p;K(t);if(e){e.remove()}}}};var q=(e,t,n,l,r=false)=>{let s=0;let a=0;let i=0;let o=0;let f=t.length-1;let c=t[0];let u=t[f];let v=l.length-1;let d=l[0];let p=l[v];let h;let m;while(s<=f&&a<=v){if(c==null){c=t[++s]}else if(u==null){u=t[--f]}else if(d==null){d=l[++a]}else if(p==null){p=l[--v]}else if(G(c,d,r)){I(c,d,r);c=t[++s];d=l[++a]}else if(G(u,p,r)){I(u,p,r);u=t[--f];p=l[--v]}else if(G(c,p,r)){I(c,p,r);V(e,c.p,u.p.nextSibling);c=t[++s];p=l[--v]}else if(G(u,d,r)){I(u,d,r);V(e,u.p,c.p);u=t[--f];d=l[++a]}else{i=-1;{for(o=s;o<=f;++o){if(t[o]&&t[o].o!==null&&t[o].o===d.o){i=o;break}}}if(i>=0){m=t[i];if(m.v!==d.v){h=z(t&&t[a],n,i)}else{I(m,d,r);t[i]=void 0;h=m.p}d=l[++a]}else{h=z(t&&t[a],n,a);d=l[++a]}if(h){{V(c.p.parentNode,h,c.p)}}}}if(s>f){B(e,l[v+1]==null?null:l[v+1].p,n,l,a,v)}else if(a>v){Q(t,s,f)}};var G=(e,t,n=false)=>{if(e.v===t.v){if(!n){return e.o===t.o}return true}return false};var I=(e,t,n=false)=>{const l=t.p=e.p;const r=e.i;const s=t.i;const a=t.t;if(a===null){{{A(e,t,H)}}if(r!==null&&s!==null){q(l,r,t,s,n)}else if(s!==null){if(e.t!==null){l.textContent=""}B(l,null,t,s,0,s.length-1)}else if(r!==null){Q(r,0,r.length-1)}}else if(e.t!==a){l.data=a}};var K=e=>{{e.l&&e.l.ref&&e.l.ref(null);e.i&&e.i.map(K)}};var V=(e,t,n)=>{const l=e==null?void 0:e.insertBefore(t,n);return l};var X=(e,t,n=false)=>{const l=e.$hostElement$;const r=e.m;const s=e.$||S(null,null);const a=g(t)?t:w(null,null,t);W=l.tagName;if(r.k){a.l=a.l||{};r.k.map((([e,t])=>a.l[t]=l[e]))}if(n&&a.l){for(const e of Object.keys(a.l)){if(l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)){a.l[e]=l[e]}}}a.v=null;a.u|=4;e.$=a;a.p=s.p=l.shadowRoot||l;{U=l["s-sc"]}I(s,a,n)};var _=(e,t)=>{if(t&&!e.C&&t["s-p"]){t["s-p"].push(new Promise((t=>e.C=t)))}};var J=(e,t)=>{{e.u|=16}if(e.u&4){e.u|=512;return}_(e,e.j);const n=()=>Y(e,t);return Ue(n)};var Y=(e,t)=>{const n=e.$hostElement$;const l=p("scheduleUpdate",e.m.S);const r=e.O;if(!r){throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`)}let s;if(t){{s=se(r,"componentWillLoad")}}l();return Z(s,(()=>te(e,r,t)))};var Z=(e,t)=>ee(e)?e.then(t):t();var ee=e=>e instanceof Promise||e&&e.then&&typeof e.then==="function";var te=async(e,t,n)=>{var l;const r=e.$hostElement$;const s=p("update",e.m.S);const a=r["s-rc"];if(n){L(e)}const i=p("render",e.m.S);{ne(e,t,r,n)}if(a){a.map((e=>e()));r["s-rc"]=void 0}i();s();{const t=(l=r["s-p"])!=null?l:[];const n=()=>le(e);if(t.length===0){n()}else{Promise.all(t).then(n);e.u|=4;t.length=0}}};var ne=(e,t,n,l)=>{try{t=t.render();{e.u&=~16}{e.u|=2}{{{X(e,t,l)}}}}catch(t){ge(t,e.$hostElement$)}return null};var le=e=>{const t=e.m.S;const n=e.$hostElement$;const l=p("postUpdate",t);const r=e.j;if(!(e.u&64)){e.u|=64;{ae(n)}l();{e.T(n);if(!r){re()}}}else{l()}{if(e.C){e.C();e.C=void 0}if(e.u&512){Ne((()=>J(e,false)))}e.u&=~(4|512)}};var re=t=>{{ae(Oe.documentElement)}Ne((()=>x(je,"appload",{detail:{namespace:e}})))};var se=(e,t,n)=>{if(e&&e[t]){try{return e[t](n)}catch(e){ge(e)}}return void 0};var ae=e=>{var n;return e.classList.add((n=t.hydratedSelectorName)!=null?n:"hydrated")};var ie=(e,t)=>be(e).L.get(t);var oe=(e,t,n,l)=>{const r=be(e);if(!r){throw new Error(`Couldn't find host element for "${l.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`)}const s=r.$hostElement$;const a=r.L.get(t);const i=r.u;const o=r.O;n=k(n,l.D[t][0]);const f=Number.isNaN(a)&&Number.isNaN(n);const c=n!==a&&!f;if((!(i&8)||a===void 0)&&c){r.L.set(t,n);if(o){if(l.M&&i&128){const e=l.M[t];if(e){e.map((e=>{try{o[e](n,a,t)}catch(e){ge(e,s)}}))}}if((i&(2|16))===2){J(r,false)}}}};var fe=(e,t,n)=>{var l;const r=e.prototype;if(t.D){if(e.watchers){t.M=e.watchers}const s=Object.entries(t.D);s.map((([e,[l]])=>{if(l&31||n&2&&l&32){Object.defineProperty(r,e,{get(){return ie(this,e)},set(n){oe(this,e,n,t)},configurable:true,enumerable:true})}}));if(n&1){const n=new Map;r.attributeChangedCallback=function(e,l,s){Te.jmp((()=>{var a;const i=n.get(e);if(this.hasOwnProperty(i)){s=this[i];delete this[i]}else if(r.hasOwnProperty(i)&&typeof this[i]==="number"&&this[i]==s){return}else if(i==null){const n=be(this);const r=n==null?void 0:n.u;if(r&&!(r&8)&&r&128&&s!==l){const r=n.O;const i=(a=t.M)==null?void 0:a[e];i==null?void 0:i.forEach((t=>{if(r[t]!=null){r[t].call(r,s,l,e)}}))}return}this[i]=s===null&&typeof this[i]==="boolean"?false:s}))};e.observedAttributes=Array.from(new Set([...Object.keys((l=t.M)!=null?l:{}),...s.filter((([e,t])=>t[0]&15)).map((([e,l])=>{var r;const s=l[1]||e;n.set(s,e);if(l[0]&512){(r=t.k)==null?void 0:r.push([e,s])}return s}))]))}}return e};var ce=async(e,t,n,l)=>{let r;if((t.u&32)===0){t.u|=32;const l=n.R;if(l){const e=Ce(n);if(e&&"then"in e){const t=h();r=await e;t()}else{r=e}if(!r){throw new Error(`Constructor for "${n.S}#${t.F}" was not found`)}if(!r.isProxied){{n.M=r.watchers}fe(r,n,2);r.isProxied=true}const l=p("createInstance",n.S);{t.u|=8}try{new r(t)}catch(e){ge(e)}{t.u&=~8}{t.u|=128}l();ue(t.O)}else{r=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.u|=128))}if(r&&r.style){let e=r.style;const t=D(n);if(!xe.has(t)){const l=p("registerStyles",n.S);O(t,e,!!(n.u&1));l()}}}const s=t.j;const a=()=>J(t,true);if(s&&s["s-rc"]){s["s-rc"].push(a)}else{a()}};var ue=e=>{{se(e,"connectedCallback")}};var ve=e=>{if((Te.u&1)===0){const t=be(e);const n=t.m;const l=p("connectedCallback",n.S);if(!(t.u&1)){t.u|=1;{let n=e;while(n=n.parentNode||n.host){if(n["s-p"]){_(t,t.j=n);break}}}if(n.D){Object.entries(n.D).map((([t,[n]])=>{if(n&31&&e.hasOwnProperty(t)){const n=e[t];delete e[t];e[t]=n}}))}{ce(e,t,n)}}else{if(t==null?void 0:t.O){ue(t.O)}else if(t==null?void 0:t.P){t.P.then((()=>ue(t.O)))}}l()}};var de=e=>{{se(e,"disconnectedCallback")}};var pe=async e=>{if((Te.u&1)===0){const t=be(e);if(t==null?void 0:t.O){de(t.O)}else if(t==null?void 0:t.P){t.P.then((()=>de(t.O)))}}};var he=(e,t={})=>{var n;const l=p();const r=[];const s=t.exclude||[];const a=je.customElements;const o=Oe.head;const f=o.querySelector("meta[charset]");const c=Oe.createElement("style");const u=[];let v;let d=true;Object.assign(Te,t);Te.A=new URL(t.resourcesUrl||"./",Oe.baseURI).href;let h=false;e.map((e=>{e[1].map((t=>{var n;const l={u:t[0],S:t[1],D:t[2],N:t[3]};if(l.u&4){h=true}{l.D=t[2]}{l.k=[]}{l.M=(n=t[4])!=null?n:{}}const i=l.S;const o=class extends HTMLElement{constructor(e){super(e);e=this;Se(e,l);if(l.u&1){{{e.attachShadow({mode:"open"})}}}}connectedCallback(){if(v){clearTimeout(v);v=null}if(d){u.push(this)}else{Te.jmp((()=>ve(this)))}}disconnectedCallback(){Te.jmp((()=>pe(this)))}componentOnReady(){return be(this).P}};l.R=e[0];if(!s.includes(i)&&!a.get(i)){r.push(i);a.define(i,fe(o,l,1))}}))}));if(r.length>0){if(h){c.textContent+=y}{c.textContent+=r+m}if(c.innerHTML.length){c.setAttribute("data-styles","");const e=(n=Te.h)!=null?n:i(Oe);if(e!=null){c.setAttribute("nonce",e)}o.insertBefore(c,f?f.nextSibling:o.firstChild)}}d=false;if(u.length){u.map((e=>e.connectedCallback()))}else{{Te.jmp((()=>v=setTimeout(re,30)))}}l()};var me=e=>Te.h=e;var ye=new WeakMap;var be=e=>ye.get(e);var we=(e,t)=>ye.set(t.O=e,t);var Se=(e,t)=>{const n={u:0,$hostElement$:e,m:t,L:new Map};{n.P=new Promise((e=>n.T=e));e["s-p"]=[];e["s-rc"]=[]}return ye.set(e,n)};var $e=(e,t)=>t in e;var ge=(e,t)=>(0,console.error)(e,t);var ke=new Map;var Ce=(e,t,n)=>{const l=e.S.replace(/-/g,"_");const r=e.R;if(!r){return void 0}const s=ke.get(r);if(s){return s[l]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${r}.entry.js${""}`).then((e=>{{ke.set(r,e)}return e[l]}),ge)};var xe=new Map;var je=typeof window!=="undefined"?window:{};var Oe=je.document||{head:{}};var Te={u:0,A:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)};var Le=e=>Promise.resolve(e);var De=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false})();var Ee=false;var Me=[];var Re=[];var Fe=(e,t)=>n=>{e.push(n);if(!Ee){Ee=true;if(t&&Te.u&4){Ne(Ae)}else{Te.raf(Ae)}}};var Pe=e=>{for(let t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){ge(e)}}e.length=0};var Ae=()=>{Pe(Me);{Pe(Re);if(Ee=Me.length>0){Te.raf(Ae)}}};var Ne=e=>Le().then(e);var Ue=Fe(Re,true);export{$ as H,he as b,C as g,w as h,Le as p,we as r,me as s};
|
|
3
|
+
//# sourceMappingURL=p-152ef3bc.js.map
|