@pine-ds/core 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-33465846.js +24 -0
- package/dist/cjs/index-33465846.js.map +1 -0
- package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
- package/dist/cjs/pds-box.cjs.entry.js +1 -1
- package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-button.cjs.entry.js +1 -1
- package/dist/cjs/pds-chip.cjs.entry.js +1 -1
- package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
- package/dist/cjs/pds-icon.cjs.entry.js +1 -1
- package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-link.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio.cjs.entry.js +1 -1
- package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-row.cjs.entry.js +4 -4
- package/dist/cjs/pds-row.cjs.entry.js.map +1 -1
- package/dist/cjs/pds-sortable-item.cjs.entry.js +1 -1
- package/dist/cjs/pds-table-head-cell.cjs.entry.js +1 -1
- package/dist/cjs/pds-textarea.cjs.entry.js +1 -1
- package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
- package/dist/collection/components/pds-accordion/stories/pds-accordion.stories.js +1 -1
- package/dist/collection/components/pds-box/pds-box.css +3 -2
- package/dist/collection/components/pds-radio/pds-radio.css +1 -1
- package/dist/collection/components/pds-row/pds-row.css +16 -14
- package/dist/collection/components/pds-row/pds-row.js +3 -3
- package/dist/collection/components/pds-row/pds-row.js.map +1 -1
- package/dist/collection/components/pds-textarea/pds-textarea.css +2 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index-bdeab80c.js +14 -0
- package/dist/esm/index-bdeab80c.js.map +1 -0
- package/dist/esm/pds-accordion.entry.js +1 -1
- package/dist/esm/pds-avatar.entry.js +1 -1
- package/dist/esm/pds-box.entry.js +1 -1
- package/dist/esm/pds-box.entry.js.map +1 -1
- package/dist/esm/pds-button.entry.js +1 -1
- package/dist/esm/pds-chip.entry.js +1 -1
- package/dist/esm/pds-copytext.entry.js +1 -1
- package/dist/esm/pds-icon.entry.js +1 -1
- package/dist/esm/pds-icon.entry.js.map +1 -1
- package/dist/esm/pds-link.entry.js +1 -1
- package/dist/esm/pds-radio.entry.js +1 -1
- package/dist/esm/pds-radio.entry.js.map +1 -1
- package/dist/esm/pds-row.entry.js +4 -4
- package/dist/esm/pds-row.entry.js.map +1 -1
- package/dist/esm/pds-sortable-item.entry.js +1 -1
- package/dist/esm/pds-table-head-cell.entry.js +1 -1
- package/dist/esm/pds-textarea.entry.js +1 -1
- package/dist/esm/pds-textarea.entry.js.map +1 -1
- package/dist/esm-es5/index-bdeab80c.js +2 -0
- package/dist/esm-es5/index-bdeab80c.js.map +1 -0
- package/dist/esm-es5/pds-accordion.entry.js +1 -1
- package/dist/esm-es5/pds-avatar.entry.js +1 -1
- package/dist/esm-es5/pds-box.entry.js +1 -1
- package/dist/esm-es5/pds-box.entry.js.map +1 -1
- package/dist/esm-es5/pds-button.entry.js +1 -1
- package/dist/esm-es5/pds-chip.entry.js +1 -1
- package/dist/esm-es5/pds-copytext.entry.js +1 -1
- package/dist/esm-es5/pds-icon.entry.js +1 -1
- package/dist/esm-es5/pds-icon.entry.js.map +1 -1
- package/dist/esm-es5/pds-link.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js +1 -1
- package/dist/esm-es5/pds-radio.entry.js.map +1 -1
- package/dist/esm-es5/pds-row.entry.js +1 -1
- package/dist/esm-es5/pds-row.entry.js.map +1 -1
- package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
- package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js +1 -1
- package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
- package/dist/pine-core/p-0af86d62.entry.js +2 -0
- package/dist/pine-core/p-0af86d62.entry.js.map +1 -0
- package/dist/pine-core/{p-5df59e63.system.entry.js → p-12e537ba.system.entry.js} +2 -2
- package/dist/pine-core/{p-52e6f836.entry.js → p-1330a135.entry.js} +2 -2
- package/dist/pine-core/p-1330a135.entry.js.map +1 -0
- package/dist/pine-core/{p-51f81513.entry.js → p-1ae7f6a1.entry.js} +2 -2
- package/dist/pine-core/p-2250dc45.entry.js +2 -0
- package/dist/pine-core/p-2250dc45.entry.js.map +1 -0
- package/dist/pine-core/{p-bbaaa246.system.entry.js → p-2af2432d.system.entry.js} +2 -2
- package/dist/pine-core/{p-70481699.entry.js → p-30ca2db1.entry.js} +2 -2
- package/dist/pine-core/p-30cb97ee.system.entry.js +2 -0
- package/dist/pine-core/p-30cb97ee.system.entry.js.map +1 -0
- package/dist/pine-core/p-320e4c53.system.entry.js +2 -0
- package/dist/pine-core/p-320e4c53.system.entry.js.map +1 -0
- package/dist/pine-core/p-3ca20edb.system.entry.js +2 -0
- package/dist/pine-core/p-3ca20edb.system.entry.js.map +1 -0
- package/dist/pine-core/{p-bec6d20b.system.entry.js → p-3caa5870.system.entry.js} +2 -2
- package/dist/pine-core/p-3caa5870.system.entry.js.map +1 -0
- package/dist/pine-core/{p-c3de3fb3.system.entry.js → p-3e527956.system.entry.js} +2 -2
- package/dist/pine-core/p-466a165f.entry.js +2 -0
- package/dist/pine-core/p-466a165f.entry.js.map +1 -0
- package/dist/pine-core/{p-0eb4e674.entry.js → p-51651124.entry.js} +2 -2
- package/dist/pine-core/{p-7546babc.entry.js → p-564e8159.entry.js} +2 -2
- package/dist/pine-core/p-5f9fa644.system.entry.js +2 -0
- package/dist/pine-core/p-5f9fa644.system.entry.js.map +1 -0
- package/dist/pine-core/p-5ffec55d.system.js +2 -0
- package/dist/pine-core/p-5ffec55d.system.js.map +1 -0
- package/dist/pine-core/p-7611d073.system.js +1 -1
- package/dist/pine-core/{p-bc4bbda0.entry.js → p-825cdc06.entry.js} +2 -2
- package/dist/pine-core/{p-de79befb.system.entry.js → p-860ceab3.system.entry.js} +2 -2
- package/dist/pine-core/{p-f12c58dc.system.entry.js → p-98735309.system.entry.js} +2 -2
- package/dist/pine-core/{p-ad891586.system.entry.js → p-9a05b9ce.system.entry.js} +2 -2
- package/dist/pine-core/{p-b103a7a9.entry.js → p-b129ad2e.entry.js} +2 -2
- package/dist/pine-core/p-b7897f94.js +2 -0
- package/dist/pine-core/p-b7897f94.js.map +1 -0
- package/dist/pine-core/{p-75951ef3.system.entry.js → p-bb099830.system.entry.js} +2 -2
- package/dist/pine-core/{p-6e315022.entry.js → p-bc3782a0.entry.js} +2 -2
- package/dist/pine-core/{p-e3455d30.system.entry.js → p-d99998a4.system.entry.js} +2 -2
- package/dist/pine-core/{p-d0828f12.entry.js → p-e94b733c.entry.js} +2 -2
- package/dist/pine-core/p-edbc3b8d.entry.js +2 -0
- package/dist/pine-core/p-edbc3b8d.entry.js.map +1 -0
- package/dist/pine-core/pine-core.esm.js +1 -1
- package/dist/pine-core/svg/access-key.svg +1 -1
- package/dist/pine-core/svg/add-circle.svg +1 -1
- package/dist/pine-core/svg/add-image.svg +1 -1
- package/dist/pine-core/svg/add-small.svg +1 -1
- package/dist/pine-core/svg/add-square.svg +1 -1
- package/dist/pine-core/svg/add.svg +1 -1
- package/dist/pine-core/svg/advanced.svg +1 -1
- package/dist/pine-core/svg/ai-sparkle.svg +1 -1
- package/dist/pine-core/svg/ai-writer-filled.svg +1 -1
- package/dist/pine-core/svg/ai-writer.svg +1 -1
- package/dist/pine-core/svg/align-center.svg +1 -1
- package/dist/pine-core/svg/align-justify.svg +1 -1
- package/dist/pine-core/svg/align-left.svg +1 -1
- package/dist/pine-core/svg/align-right.svg +1 -1
- package/dist/pine-core/svg/app-store.svg +1 -1
- package/dist/pine-core/svg/archive.svg +1 -1
- package/dist/pine-core/svg/arrow-corner.svg +1 -1
- package/dist/pine-core/svg/arrow-down.svg +1 -1
- package/dist/pine-core/svg/arrow-left.svg +1 -1
- package/dist/pine-core/svg/arrow-right.svg +1 -1
- package/dist/pine-core/svg/arrow-up.svg +1 -1
- package/dist/pine-core/svg/assessment.svg +1 -1
- package/dist/pine-core/svg/at-sign.svg +1 -1
- package/dist/pine-core/svg/attach.svg +1 -1
- package/dist/pine-core/svg/automations.svg +1 -1
- package/dist/pine-core/svg/ban.svg +1 -1
- package/dist/pine-core/svg/bank.svg +1 -1
- package/dist/pine-core/svg/bell.svg +1 -1
- package/dist/pine-core/svg/block.svg +1 -1
- package/dist/pine-core/svg/blog-filled.svg +1 -1
- package/dist/pine-core/svg/blog.svg +1 -1
- package/dist/pine-core/svg/bold.svg +1 -1
- package/dist/pine-core/svg/broadcast.svg +1 -1
- package/dist/pine-core/svg/button.svg +1 -1
- package/dist/pine-core/svg/calendar-date.svg +1 -1
- package/dist/pine-core/svg/calendar-schedule.svg +1 -1
- package/dist/pine-core/svg/calendar-simple.svg +1 -1
- package/dist/pine-core/svg/card-amex.svg +1 -0
- package/dist/pine-core/svg/card-android.svg +1 -0
- package/dist/pine-core/svg/card-apple.svg +1 -0
- package/dist/pine-core/svg/card-diners-club.svg +1 -0
- package/dist/pine-core/svg/card-discover.svg +1 -0
- package/dist/pine-core/svg/card-generic.svg +1 -0
- package/dist/pine-core/svg/card-gpay.svg +1 -0
- package/dist/pine-core/svg/card-mastercard.svg +1 -0
- package/dist/pine-core/svg/card-paypal.svg +1 -0
- package/dist/pine-core/svg/card-stripe.svg +1 -0
- package/dist/pine-core/svg/card-update.svg +1 -1
- package/dist/pine-core/svg/card-visa.svg +1 -0
- package/dist/pine-core/svg/caret-down.svg +1 -1
- package/dist/pine-core/svg/caret-left.svg +1 -1
- package/dist/pine-core/svg/caret-right.svg +1 -1
- package/dist/pine-core/svg/caret-up.svg +1 -1
- package/dist/pine-core/svg/cart-add.svg +1 -1
- package/dist/pine-core/svg/cart.svg +1 -1
- package/dist/pine-core/svg/certificate.svg +1 -1
- package/dist/pine-core/svg/chart-filled.svg +1 -0
- package/dist/pine-core/svg/chart.svg +1 -0
- package/dist/pine-core/svg/check-circle-filled.svg +1 -1
- package/dist/pine-core/svg/check-circle.svg +1 -1
- package/dist/pine-core/svg/check.svg +1 -1
- package/dist/pine-core/svg/circle-1.svg +1 -1
- package/dist/pine-core/svg/circle-2.svg +1 -1
- package/dist/pine-core/svg/circle-3.svg +1 -1
- package/dist/pine-core/svg/circle-4.svg +1 -1
- package/dist/pine-core/svg/circle-5.svg +1 -1
- package/dist/pine-core/svg/circle-6.svg +1 -1
- package/dist/pine-core/svg/circle-7.svg +1 -1
- package/dist/pine-core/svg/circle-8.svg +1 -1
- package/dist/pine-core/svg/circle-9.svg +1 -1
- package/dist/pine-core/svg/circle-a.svg +1 -0
- package/dist/pine-core/svg/circle-b.svg +1 -0
- package/dist/pine-core/svg/circle-dashed.svg +1 -0
- package/dist/pine-core/svg/clock.svg +1 -1
- package/dist/pine-core/svg/closed-captions.svg +1 -1
- package/dist/pine-core/svg/cloud-upload.svg +1 -1
- package/dist/pine-core/svg/code-block.svg +1 -1
- package/dist/pine-core/svg/code.svg +1 -1
- package/dist/pine-core/svg/color.svg +1 -1
- package/dist/pine-core/svg/columns.svg +1 -1
- package/dist/pine-core/svg/comment-no.svg +1 -0
- package/dist/pine-core/svg/comment.svg +1 -1
- package/dist/pine-core/svg/connect.svg +1 -1
- package/dist/pine-core/svg/contact.svg +1 -1
- package/dist/pine-core/svg/conversation.svg +1 -1
- package/dist/pine-core/svg/copy.svg +1 -1
- package/dist/pine-core/svg/coupon.svg +1 -1
- package/dist/pine-core/svg/course.svg +1 -1
- package/dist/pine-core/svg/creator-studio-filled.svg +1 -1
- package/dist/pine-core/svg/creator-studio.svg +1 -1
- package/dist/pine-core/svg/cursor-pointer.svg +1 -1
- package/dist/pine-core/svg/cursor.svg +1 -1
- package/dist/pine-core/svg/custom-field.svg +1 -1
- package/dist/pine-core/svg/customize.svg +1 -1
- package/dist/pine-core/svg/danger-filled.svg +1 -1
- package/dist/pine-core/svg/danger.svg +1 -1
- package/dist/pine-core/svg/delete-circle.svg +1 -1
- package/dist/pine-core/svg/delete-key.svg +1 -1
- package/dist/pine-core/svg/delete-x.svg +1 -1
- package/dist/pine-core/svg/dollar.svg +1 -0
- package/dist/pine-core/svg/dot-menu-horizontal.svg +1 -1
- package/dist/pine-core/svg/down-small.svg +1 -1
- package/dist/pine-core/svg/download.svg +1 -1
- package/dist/pine-core/svg/downsell.svg +1 -1
- package/dist/pine-core/svg/draft.svg +1 -1
- package/dist/pine-core/svg/drawer-collapse.svg +1 -1
- package/dist/pine-core/svg/drawer-expand.svg +1 -1
- package/dist/pine-core/svg/drop.svg +1 -1
- package/dist/pine-core/svg/duplicate.svg +1 -1
- package/dist/pine-core/svg/editor-filled.svg +1 -0
- package/dist/pine-core/svg/editor.svg +1 -0
- package/dist/pine-core/svg/email-activity.svg +1 -1
- package/dist/pine-core/svg/emoji.svg +1 -1
- package/dist/pine-core/svg/enlarge-vertical.svg +1 -1
- package/dist/pine-core/svg/enlarge.svg +1 -1
- package/dist/pine-core/svg/expand.svg +1 -1
- package/dist/pine-core/svg/favorite.svg +1 -1
- package/dist/pine-core/svg/feedback.svg +1 -1
- package/dist/pine-core/svg/file-money.svg +1 -1
- package/dist/pine-core/svg/file.svg +1 -1
- package/dist/pine-core/svg/filter.svg +1 -1
- package/dist/pine-core/svg/flag.svg +1 -1
- package/dist/pine-core/svg/flash-filled.svg +1 -1
- package/dist/pine-core/svg/flash.svg +1 -1
- package/dist/pine-core/svg/floppy-disk.svg +1 -1
- package/dist/pine-core/svg/folder-group.svg +1 -1
- package/dist/pine-core/svg/folder.svg +1 -1
- package/dist/pine-core/svg/form-field.svg +1 -1
- package/dist/pine-core/svg/form-filled.svg +1 -1
- package/dist/pine-core/svg/form.svg +1 -1
- package/dist/pine-core/svg/fullscreen.svg +1 -1
- package/dist/pine-core/svg/funnel.svg +1 -1
- package/dist/pine-core/svg/gear-filled.svg +1 -0
- package/dist/pine-core/svg/gear.svg +1 -0
- package/dist/pine-core/svg/grant-offer.svg +1 -1
- package/dist/pine-core/svg/handle-2-vertical.svg +1 -1
- package/dist/pine-core/svg/handle-2.svg +1 -1
- package/dist/pine-core/svg/handle.svg +1 -1
- package/dist/pine-core/svg/hashtag.svg +1 -1
- package/dist/pine-core/svg/hd-video.svg +1 -1
- package/dist/pine-core/svg/heading-1.svg +1 -1
- package/dist/pine-core/svg/heading-2.svg +1 -1
- package/dist/pine-core/svg/heading-3.svg +1 -1
- package/dist/pine-core/svg/heading-4.svg +1 -1
- package/dist/pine-core/svg/heading-5.svg +1 -1
- package/dist/pine-core/svg/heading-6.svg +1 -1
- package/dist/pine-core/svg/heading-large.svg +1 -1
- package/dist/pine-core/svg/heading-small.svg +1 -1
- package/dist/pine-core/svg/headset.svg +1 -1
- package/dist/pine-core/svg/help-filled.svg +1 -1
- package/dist/pine-core/svg/help.svg +1 -0
- package/dist/pine-core/svg/home-alt.svg +1 -1
- package/dist/pine-core/svg/home-filled.svg +1 -0
- package/dist/pine-core/svg/home.svg +1 -0
- package/dist/pine-core/svg/horizontal-line.svg +1 -1
- package/dist/pine-core/svg/image.svg +1 -1
- package/dist/pine-core/svg/info-circle-filled.svg +1 -1
- package/dist/pine-core/svg/info-circle.svg +1 -1
- package/dist/pine-core/svg/ios-battery.svg +1 -1
- package/dist/pine-core/svg/ios-data.svg +1 -1
- package/dist/pine-core/svg/ios-wifi.svg +1 -1
- package/dist/pine-core/svg/italic.svg +1 -1
- package/dist/pine-core/svg/kajabi-filled.svg +1 -1
- package/dist/pine-core/svg/kajabi.svg +1 -0
- package/dist/pine-core/svg/klarna.svg +1 -0
- package/dist/pine-core/svg/lab.svg +1 -1
- package/dist/pine-core/svg/launch.svg +1 -1
- package/dist/pine-core/svg/layout-grid.svg +1 -1
- package/dist/pine-core/svg/layout-list.svg +1 -1
- package/dist/pine-core/svg/left-small.svg +1 -1
- package/dist/pine-core/svg/list-bullet.svg +1 -1
- package/dist/pine-core/svg/list-details.svg +1 -0
- package/dist/pine-core/svg/list-numbers.svg +1 -1
- package/dist/pine-core/svg/location.svg +1 -1
- package/dist/pine-core/svg/lock-alt.svg +1 -1
- package/dist/pine-core/svg/lock.svg +1 -1
- package/dist/pine-core/svg/logo-afterpay.svg +1 -1
- package/dist/pine-core/svg/logo-facebook-round.svg +1 -0
- package/dist/pine-core/svg/{facebook.svg → logo-facebook.svg} +1 -1
- package/dist/pine-core/svg/logo-instagram.svg +1 -0
- package/dist/pine-core/svg/logo-linkedin.svg +1 -0
- package/dist/pine-core/svg/logo-tiktok.svg +1 -0
- package/dist/pine-core/svg/logo-twitter-x.svg +1 -0
- package/dist/pine-core/svg/logo-twitter.svg +1 -0
- package/dist/pine-core/svg/{youtube.svg → logo-youtube.svg} +1 -1
- package/dist/pine-core/svg/loop.svg +1 -1
- package/dist/pine-core/svg/mail-filled.svg +1 -1
- package/dist/pine-core/svg/mail-open.svg +1 -1
- package/dist/pine-core/svg/mail.svg +1 -1
- package/dist/pine-core/svg/map.svg +1 -1
- package/dist/pine-core/svg/mapped.svg +1 -1
- package/dist/pine-core/svg/margin-left.svg +1 -1
- package/dist/pine-core/svg/margin-right.svg +1 -1
- package/dist/pine-core/svg/marker-filled.svg +1 -1
- package/dist/pine-core/svg/marker.svg +1 -1
- package/dist/pine-core/svg/megaphone-filled.svg +1 -0
- package/dist/pine-core/svg/megaphone.svg +1 -0
- package/dist/pine-core/svg/menu-alt.svg +1 -1
- package/dist/pine-core/svg/menu-bordered.svg +1 -0
- package/dist/pine-core/svg/menu.svg +1 -1
- package/dist/pine-core/svg/merge.svg +1 -1
- package/dist/pine-core/svg/microphone-off.svg +1 -1
- package/dist/pine-core/svg/microphone.svg +1 -1
- package/dist/pine-core/svg/{website-filled.svg → monitor-filled.svg} +1 -1
- package/dist/pine-core/svg/monitor.svg +1 -0
- package/dist/pine-core/svg/more-menu-filled.svg +1 -0
- package/dist/pine-core/svg/more-menu.svg +1 -0
- package/dist/pine-core/svg/move-left.svg +1 -1
- package/dist/pine-core/svg/move-right.svg +1 -1
- package/dist/pine-core/svg/multi-pay.svg +1 -1
- package/dist/pine-core/svg/newsletter-2.svg +1 -1
- package/dist/pine-core/svg/newsletter.svg +1 -1
- package/dist/pine-core/svg/one-off-session.svg +1 -1
- package/dist/pine-core/svg/one-time.svg +1 -1
- package/dist/pine-core/svg/packages.svg +1 -0
- package/dist/pine-core/svg/pause-circle.svg +1 -1
- package/dist/pine-core/svg/pause.svg +1 -1
- package/dist/pine-core/svg/payout.svg +1 -1
- package/dist/pine-core/svg/pen.svg +1 -1
- package/dist/pine-core/svg/phone-portrait.svg +1 -1
- package/dist/pine-core/svg/phone-toolbar-filled.svg +1 -1
- package/dist/pine-core/svg/phone-toolbar.svg +1 -1
- package/dist/pine-core/svg/play-circle.svg +1 -1
- package/dist/pine-core/svg/play-outline.svg +1 -1
- package/dist/pine-core/svg/play-store.svg +1 -1
- package/dist/pine-core/svg/play.svg +1 -1
- package/dist/pine-core/svg/plug.svg +1 -1
- package/dist/pine-core/svg/premium.svg +1 -1
- package/dist/pine-core/svg/present.svg +1 -1
- package/dist/pine-core/svg/preview-off.svg +1 -1
- package/dist/pine-core/svg/preview-on.svg +1 -1
- package/dist/pine-core/svg/product-filled.svg +1 -0
- package/dist/pine-core/svg/product.svg +1 -0
- package/dist/pine-core/svg/question-circle.svg +1 -1
- package/dist/pine-core/svg/quote.svg +1 -1
- package/dist/pine-core/svg/redo.svg +1 -1
- package/dist/pine-core/svg/refresh.svg +1 -1
- package/dist/pine-core/svg/remove-circle.svg +1 -1
- package/dist/pine-core/svg/remove.svg +1 -1
- package/dist/pine-core/svg/rename.svg +1 -1
- package/dist/pine-core/svg/reset-password.svg +1 -1
- package/dist/pine-core/svg/restore.svg +1 -1
- package/dist/pine-core/svg/right-small.svg +1 -1
- package/dist/pine-core/svg/rocket-filled.svg +1 -0
- package/dist/pine-core/svg/rocket.svg +1 -0
- package/dist/pine-core/svg/round-dollar.svg +1 -1
- package/dist/pine-core/svg/rows.svg +1 -1
- package/dist/pine-core/svg/scissor.svg +1 -1
- package/dist/pine-core/svg/screen-share-off.svg +1 -1
- package/dist/pine-core/svg/screen-share-on.svg +1 -1
- package/dist/pine-core/svg/search-small.svg +1 -1
- package/dist/pine-core/svg/search.svg +1 -1
- package/dist/pine-core/svg/send-message.svg +1 -1
- package/dist/pine-core/svg/sequences.svg +1 -1
- package/dist/pine-core/svg/share.svg +1 -1
- package/dist/pine-core/svg/skipped.svg +1 -1
- package/dist/pine-core/svg/slash-divider.svg +1 -1
- package/dist/pine-core/svg/speaker.svg +1 -1
- package/dist/pine-core/svg/stack.svg +1 -1
- package/dist/pine-core/svg/star.svg +1 -1
- package/dist/pine-core/svg/stop.svg +1 -1
- package/dist/pine-core/svg/stopwatch.svg +1 -1
- package/dist/pine-core/svg/strikethrough.svg +1 -1
- package/dist/pine-core/svg/subscript.svg +1 -1
- package/dist/pine-core/svg/subscriptions.svg +1 -1
- package/dist/pine-core/svg/super-admin.svg +1 -1
- package/dist/pine-core/svg/superscript.svg +1 -1
- package/dist/pine-core/svg/sync.svg +1 -1
- package/dist/pine-core/svg/tablet-landscape.svg +1 -1
- package/dist/pine-core/svg/tablet-portrait.svg +1 -1
- package/dist/pine-core/svg/tag-filled.svg +1 -0
- package/dist/pine-core/svg/tag.svg +1 -0
- package/dist/pine-core/svg/text-styles.svg +1 -1
- package/dist/pine-core/svg/theme-store-filled.svg +1 -1
- package/dist/pine-core/svg/theme-store.svg +1 -1
- package/dist/pine-core/svg/thumb-down-filled.svg +1 -0
- package/dist/pine-core/svg/thumb-down.svg +1 -0
- package/dist/pine-core/svg/thumb-up-filled.svg +1 -0
- package/dist/pine-core/svg/thumb-up.svg +1 -0
- package/dist/pine-core/svg/trash.svg +1 -1
- package/dist/pine-core/svg/trophy.svg +1 -0
- package/dist/pine-core/svg/underline.svg +1 -1
- package/dist/pine-core/svg/undo.svg +1 -1
- package/dist/pine-core/svg/unlock.svg +1 -1
- package/dist/pine-core/svg/unmapped.svg +1 -1
- package/dist/pine-core/svg/up-small.svg +1 -1
- package/dist/pine-core/svg/upload.svg +1 -1
- package/dist/pine-core/svg/url.svg +1 -1
- package/dist/pine-core/svg/user-circle-filled.svg +1 -0
- package/dist/pine-core/svg/user-circle.svg +1 -0
- package/dist/pine-core/svg/user-filled.svg +1 -1
- package/dist/pine-core/svg/user-star-filled.svg +1 -0
- package/dist/pine-core/svg/user-star.svg +1 -0
- package/dist/pine-core/svg/user.svg +1 -1
- package/dist/pine-core/svg/users-alt.svg +1 -0
- package/dist/pine-core/svg/users.svg +1 -1
- package/dist/pine-core/svg/video-off.svg +1 -1
- package/dist/pine-core/svg/video-on.svg +1 -1
- package/dist/pine-core/svg/warning-filled.svg +1 -1
- package/dist/pine-core/svg/warning.svg +1 -1
- package/dist/pine-core/svg/window-paragraph.svg +1 -1
- package/dist/pine-core/svg/world.svg +1 -1
- package/dist/pine-core/svg/wrench.svg +1 -1
- package/dist/types/components/pds-row/pds-row.d.ts +3 -3
- package/package.json +1 -1
- package/components/custom-elements.d.ts +0 -2
- package/components/index.d.ts +0 -92
- package/components/index.js +0 -32
- package/components/index.js.map +0 -1
- package/components/index2.js +0 -14
- package/components/index2.js.map +0 -1
- package/components/package.json +0 -9
- package/components/pds-accordion.d.ts +0 -11
- package/components/pds-accordion.js +0 -74
- package/components/pds-accordion.js.map +0 -1
- package/components/pds-avatar.d.ts +0 -11
- package/components/pds-avatar.js +0 -103
- package/components/pds-avatar.js.map +0 -1
- package/components/pds-box.d.ts +0 -11
- package/components/pds-box.js +0 -124
- package/components/pds-box.js.map +0 -1
- package/components/pds-button.d.ts +0 -11
- package/components/pds-button.js +0 -8
- package/components/pds-button.js.map +0 -1
- package/components/pds-button2.js +0 -84
- package/components/pds-button2.js.map +0 -1
- package/components/pds-checkbox.d.ts +0 -11
- package/components/pds-checkbox.js +0 -8
- package/components/pds-checkbox.js.map +0 -1
- package/components/pds-checkbox2.js +0 -86
- package/components/pds-checkbox2.js.map +0 -1
- package/components/pds-chip.d.ts +0 -11
- package/components/pds-chip.js +0 -78
- package/components/pds-chip.js.map +0 -1
- package/components/pds-copytext.d.ts +0 -11
- package/components/pds-copytext.js +0 -88
- package/components/pds-copytext.js.map +0 -1
- package/components/pds-divider.d.ts +0 -11
- package/components/pds-divider.js +0 -54
- package/components/pds-divider.js.map +0 -1
- package/components/pds-icon.js +0 -8
- package/components/pds-icon.js.map +0 -1
- package/components/pds-icon2.js +0 -359
- package/components/pds-icon2.js.map +0 -1
- package/components/pds-image.d.ts +0 -11
- package/components/pds-image.js +0 -55
- package/components/pds-image.js.map +0 -1
- package/components/pds-input.d.ts +0 -11
- package/components/pds-input.js +0 -72
- package/components/pds-input.js.map +0 -1
- package/components/pds-label.js +0 -39
- package/components/pds-label.js.map +0 -1
- package/components/pds-link.d.ts +0 -11
- package/components/pds-link.js +0 -65
- package/components/pds-link.js.map +0 -1
- package/components/pds-progress.d.ts +0 -11
- package/components/pds-progress.js +0 -49
- package/components/pds-progress.js.map +0 -1
- package/components/pds-radio.d.ts +0 -11
- package/components/pds-radio.js +0 -78
- package/components/pds-radio.js.map +0 -1
- package/components/pds-row.d.ts +0 -11
- package/components/pds-row.js +0 -72
- package/components/pds-row.js.map +0 -1
- package/components/pds-sortable-item.d.ts +0 -11
- package/components/pds-sortable-item.js +0 -58
- package/components/pds-sortable-item.js.map +0 -1
- package/components/pds-sortable.d.ts +0 -11
- package/components/pds-sortable.js +0 -2722
- package/components/pds-sortable.js.map +0 -1
- package/components/pds-switch.d.ts +0 -11
- package/components/pds-switch.js +0 -82
- package/components/pds-switch.js.map +0 -1
- package/components/pds-tab.d.ts +0 -11
- package/components/pds-tab.js +0 -53
- package/components/pds-tab.js.map +0 -1
- package/components/pds-table-body.d.ts +0 -11
- package/components/pds-table-body.js +0 -36
- package/components/pds-table-body.js.map +0 -1
- package/components/pds-table-cell.d.ts +0 -11
- package/components/pds-table-cell.js +0 -8
- package/components/pds-table-cell.js.map +0 -1
- package/components/pds-table-cell2.js +0 -72
- package/components/pds-table-cell2.js.map +0 -1
- package/components/pds-table-head-cell.d.ts +0 -11
- package/components/pds-table-head-cell.js +0 -8
- package/components/pds-table-head-cell.js.map +0 -1
- package/components/pds-table-head-cell2.js +0 -96
- package/components/pds-table-head-cell2.js.map +0 -1
- package/components/pds-table-head.d.ts +0 -11
- package/components/pds-table-head.js +0 -56
- package/components/pds-table-head.js.map +0 -1
- package/components/pds-table-row.d.ts +0 -11
- package/components/pds-table-row.js +0 -78
- package/components/pds-table-row.js.map +0 -1
- package/components/pds-table.d.ts +0 -11
- package/components/pds-table.js +0 -100
- package/components/pds-table.js.map +0 -1
- package/components/pds-tabpanel.d.ts +0 -11
- package/components/pds-tabpanel.js +0 -45
- package/components/pds-tabpanel.js.map +0 -1
- package/components/pds-tabs.d.ts +0 -11
- package/components/pds-tabs.js +0 -119
- package/components/pds-tabs.js.map +0 -1
- package/components/pds-textarea.d.ts +0 -11
- package/components/pds-textarea.js +0 -82
- package/components/pds-textarea.js.map +0 -1
- package/components/pds-tooltip.d.ts +0 -11
- package/components/pds-tooltip.js +0 -178
- package/components/pds-tooltip.js.map +0 -1
- package/dist/cjs/index-f034f06e.js +0 -24
- package/dist/cjs/index-f034f06e.js.map +0 -1
- package/dist/esm/index-c6934caf.js +0 -14
- package/dist/esm/index-c6934caf.js.map +0 -1
- package/dist/esm-es5/index-c6934caf.js +0 -2
- package/dist/esm-es5/index-c6934caf.js.map +0 -1
- package/dist/pine-core/p-1632460c.entry.js +0 -2
- package/dist/pine-core/p-1632460c.entry.js.map +0 -1
- package/dist/pine-core/p-2eacced7.system.entry.js +0 -2
- package/dist/pine-core/p-2eacced7.system.entry.js.map +0 -1
- package/dist/pine-core/p-2fe87b9d.entry.js +0 -2
- package/dist/pine-core/p-2fe87b9d.entry.js.map +0 -1
- package/dist/pine-core/p-3e673113.system.entry.js +0 -2
- package/dist/pine-core/p-3e673113.system.entry.js.map +0 -1
- package/dist/pine-core/p-403a20e8.js +0 -2
- package/dist/pine-core/p-403a20e8.js.map +0 -1
- package/dist/pine-core/p-52e6f836.entry.js.map +0 -1
- package/dist/pine-core/p-674edd62.system.js +0 -2
- package/dist/pine-core/p-674edd62.system.js.map +0 -1
- package/dist/pine-core/p-6aa28287.system.entry.js +0 -2
- package/dist/pine-core/p-6aa28287.system.entry.js.map +0 -1
- package/dist/pine-core/p-75c441ef.system.entry.js +0 -2
- package/dist/pine-core/p-75c441ef.system.entry.js.map +0 -1
- package/dist/pine-core/p-809648ee.entry.js +0 -2
- package/dist/pine-core/p-809648ee.entry.js.map +0 -1
- package/dist/pine-core/p-9a129745.entry.js +0 -2
- package/dist/pine-core/p-9a129745.entry.js.map +0 -1
- package/dist/pine-core/p-bec6d20b.system.entry.js.map +0 -1
- package/dist/pine-core/svg/analytics-filled.svg +0 -1
- package/dist/pine-core/svg/analytics-outline.svg +0 -1
- package/dist/pine-core/svg/card-bw-amex.svg +0 -1
- package/dist/pine-core/svg/card-bw-apple-card.svg +0 -1
- package/dist/pine-core/svg/card-bw-diners-club.svg +0 -1
- package/dist/pine-core/svg/card-bw-discover.svg +0 -1
- package/dist/pine-core/svg/card-bw-gpay-card.svg +0 -1
- package/dist/pine-core/svg/card-bw-mastercard.svg +0 -1
- package/dist/pine-core/svg/card-bw-paypal.svg +0 -1
- package/dist/pine-core/svg/card-bw-stripe.svg +0 -1
- package/dist/pine-core/svg/card-bw-visa.svg +0 -1
- package/dist/pine-core/svg/contacts-filled.svg +0 -1
- package/dist/pine-core/svg/contacts-outline.svg +0 -1
- package/dist/pine-core/svg/credit-card.svg +0 -1
- package/dist/pine-core/svg/dashboard-filled.svg +0 -1
- package/dist/pine-core/svg/dashboard-outline.svg +0 -1
- package/dist/pine-core/svg/dollar-sign.svg +0 -1
- package/dist/pine-core/svg/facebook-2.svg +0 -1
- package/dist/pine-core/svg/help-outline.svg +0 -1
- package/dist/pine-core/svg/instagram.svg +0 -1
- package/dist/pine-core/svg/kajabi-outlined.svg +0 -1
- package/dist/pine-core/svg/linkedin.svg +0 -1
- package/dist/pine-core/svg/logo-klarna.svg +0 -1
- package/dist/pine-core/svg/marketing-filled.svg +0 -1
- package/dist/pine-core/svg/marketing-outline.svg +0 -1
- package/dist/pine-core/svg/menu-2.svg +0 -1
- package/dist/pine-core/svg/partners-filled.svg +0 -1
- package/dist/pine-core/svg/partners-outline.svg +0 -1
- package/dist/pine-core/svg/products-filled.svg +0 -1
- package/dist/pine-core/svg/products-outline.svg +0 -1
- package/dist/pine-core/svg/sales-filled.svg +0 -1
- package/dist/pine-core/svg/sales-outline.svg +0 -1
- package/dist/pine-core/svg/series.svg +0 -1
- package/dist/pine-core/svg/settings-filled.svg +0 -1
- package/dist/pine-core/svg/settings-outline.svg +0 -1
- package/dist/pine-core/svg/sparkle-filled.svg +0 -1
- package/dist/pine-core/svg/sparkle.svg +0 -1
- package/dist/pine-core/svg/thumbs-down-filled.svg +0 -1
- package/dist/pine-core/svg/thumbs-down.svg +0 -1
- package/dist/pine-core/svg/thumbs-up-filled.svg +0 -1
- package/dist/pine-core/svg/thumbs-up.svg +0 -1
- package/dist/pine-core/svg/tiktok.svg +0 -1
- package/dist/pine-core/svg/twitter.svg +0 -1
- package/dist/pine-core/svg/users-wm.svg +0 -1
- package/dist/pine-core/svg/website-outline.svg +0 -1
- package/hydrate/index.d.ts +0 -218
- package/hydrate/index.js +0 -13120
- package/hydrate/package.json +0 -6
- /package/dist/pine-core/{p-5df59e63.system.entry.js.map → p-12e537ba.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-51f81513.entry.js.map → p-1ae7f6a1.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bbaaa246.system.entry.js.map → p-2af2432d.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-70481699.entry.js.map → p-30ca2db1.entry.js.map} +0 -0
- /package/dist/pine-core/{p-c3de3fb3.system.entry.js.map → p-3e527956.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-0eb4e674.entry.js.map → p-51651124.entry.js.map} +0 -0
- /package/dist/pine-core/{p-7546babc.entry.js.map → p-564e8159.entry.js.map} +0 -0
- /package/dist/pine-core/{p-bc4bbda0.entry.js.map → p-825cdc06.entry.js.map} +0 -0
- /package/dist/pine-core/{p-de79befb.system.entry.js.map → p-860ceab3.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-f12c58dc.system.entry.js.map → p-98735309.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-ad891586.system.entry.js.map → p-9a05b9ce.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-b103a7a9.entry.js.map → p-b129ad2e.entry.js.map} +0 -0
- /package/dist/pine-core/{p-75951ef3.system.entry.js.map → p-bb099830.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-6e315022.entry.js.map → p-bc3782a0.entry.js.map} +0 -0
- /package/dist/pine-core/{p-e3455d30.system.entry.js.map → p-d99998a4.system.entry.js.map} +0 -0
- /package/dist/pine-core/{p-d0828f12.entry.js.map → p-e94b733c.entry.js.map} +0 -0
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const positionTooltip = ({ elem, elemPlacement, overlay, offset = 8 }) => {
|
|
4
|
-
if (elem == undefined)
|
|
5
|
-
return;
|
|
6
|
-
const rect = elem.getBoundingClientRect();
|
|
7
|
-
const contentRect = overlay.getBoundingClientRect();
|
|
8
|
-
// Exit the function if the placement is not set
|
|
9
|
-
if (!elemPlacement || elemPlacement == "")
|
|
10
|
-
return;
|
|
11
|
-
switch (true) {
|
|
12
|
-
case elemPlacement.includes("right"):
|
|
13
|
-
overlay.style.top = '50%';
|
|
14
|
-
overlay.style.left = `calc(${rect.width}px + ${offset}px)`;
|
|
15
|
-
overlay.style.transform = 'translateY(-50%)';
|
|
16
|
-
if (elemPlacement.includes("start")) {
|
|
17
|
-
overlay.style.top = '0';
|
|
18
|
-
overlay.style.transform = 'translateY(0)';
|
|
19
|
-
}
|
|
20
|
-
if (elemPlacement.includes("end")) {
|
|
21
|
-
overlay.style.bottom = '0';
|
|
22
|
-
overlay.style.top = 'initial';
|
|
23
|
-
overlay.style.transform = 'translateY(0)';
|
|
24
|
-
}
|
|
25
|
-
break;
|
|
26
|
-
case elemPlacement.includes("left"):
|
|
27
|
-
overlay.style.top = '50%';
|
|
28
|
-
overlay.style.right = `calc(${rect.width}px + ${offset}px)`;
|
|
29
|
-
overlay.style.transform = 'translateY(-50%)';
|
|
30
|
-
if (elemPlacement.includes("start")) {
|
|
31
|
-
overlay.style.top = '0';
|
|
32
|
-
overlay.style.transform = 'translateY(0)';
|
|
33
|
-
}
|
|
34
|
-
if (elemPlacement.includes("end")) {
|
|
35
|
-
overlay.style.bottom = '0';
|
|
36
|
-
overlay.style.top = 'initial';
|
|
37
|
-
overlay.style.transform = 'translateY(0)';
|
|
38
|
-
}
|
|
39
|
-
break;
|
|
40
|
-
case elemPlacement.includes("bottom"):
|
|
41
|
-
overlay.style.top = `calc(${rect.height}px + ${offset}px)`;
|
|
42
|
-
overlay.style.left = '50%';
|
|
43
|
-
overlay.style.transform = 'translateX(-50%)';
|
|
44
|
-
if (elemPlacement.includes("start")) {
|
|
45
|
-
overlay.style.left = '0';
|
|
46
|
-
overlay.style.transform = 'translateX(0)';
|
|
47
|
-
}
|
|
48
|
-
if (elemPlacement.includes("end")) {
|
|
49
|
-
overlay.style.left = 'initial';
|
|
50
|
-
overlay.style.right = '0';
|
|
51
|
-
overlay.style.transform = 'translateX(0)';
|
|
52
|
-
}
|
|
53
|
-
break;
|
|
54
|
-
case elemPlacement.includes("top"):
|
|
55
|
-
overlay.style.top = `calc((${contentRect.height}px + ${offset}px) * -1)`;
|
|
56
|
-
overlay.style.left = '50%';
|
|
57
|
-
overlay.style.transform = 'translateX(-50%)';
|
|
58
|
-
if (elemPlacement.includes("start")) {
|
|
59
|
-
overlay.style.left = '0';
|
|
60
|
-
overlay.style.transform = 'translateX(0)';
|
|
61
|
-
}
|
|
62
|
-
if (elemPlacement.includes("end")) {
|
|
63
|
-
overlay.style.left = 'initial';
|
|
64
|
-
overlay.style.right = '0';
|
|
65
|
-
overlay.style.transform = 'translateX(0)';
|
|
66
|
-
}
|
|
67
|
-
break;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const pdsTooltipCss = ":host{--border-radius-overlay:var(--pine-border-radius-125);--border-width-arrow-down:var(--sizing-arrow-default) var(--sizing-arrow-default) 0;--border-width-arrow-left:var(--sizing-arrow-default) var(--sizing-arrow-default) var(--sizing-arrow-default) 0;--border-width-arrow-right:var(--sizing-arrow-default) 0 var(--sizing-arrow-default) var(--sizing-arrow-default);--border-width-arrow-up:0 var(--sizing-arrow-default) var(--sizing-arrow-default);--box-shadow-default:var(--pine-box-shadow-md);--color-background-default:var(--pine-color-charcoal-400);--color-text-default:var(--pine-color-white);--font-size-overlay:var(--pine-font-size-087);--line-height-overlay:var(--pine-line-height-125);--sizing-arrow-default:6px;--sizing-arrow-offset:14px;--sizing-width-default:320px;--spacing-padding-overlay:var(--pine-spacing-100) calc(var(--pine-spacing-300) / 2);display:inline-block;position:relative}:host ::slotted([slot=content]){white-space:normal;width:var(--sizing-width-default)}.pds-tooltip__content{background-color:var(--color-background-default);border-radius:var(--border-radius-overlay);-webkit-box-shadow:var(--box-shadow-default);box-shadow:var(--box-shadow-default);color:var(--color-text-default);font-size:var(--font-size-overlay);line-height:var(--line-height-overlay);opacity:0;padding:var(--spacing-padding-overlay);position:absolute;visibility:hidden;width:-webkit-max-content;width:-moz-max-content;width:max-content}.pds-tooltip--is-open .pds-tooltip__content{opacity:1;visibility:visible;z-index:1}:host(.pds-tooltip--has-html-content) .pds-tooltip__content{width:auto}.pds-tooltip__content::after{border-color:transparent;border-right-color:transparent;border-style:solid;border-width:var(--border-width-arrow-left);content:\"\";height:0;position:absolute;width:0}.pds-tooltip--right .pds-tooltip__content::after{border-inline-end-color:var(--color-background-default);border-width:var(--border-width-arrow-left);left:calc(var(--sizing-arrow-default) * -1);top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pds-tooltip--right-end .pds-tooltip__content::after{border-inline-end-color:var(--color-background-default);border-width:var(--border-width-arrow-left);bottom:var(--sizing-arrow-offset);left:calc(var(--sizing-arrow-default) * -1);top:initial}.pds-tooltip--right-start .pds-tooltip__content::after{border-inline-end-color:var(--color-background-default);border-width:var(--border-width-arrow-left);left:calc(var(--sizing-arrow-default) * -1);top:var(--sizing-arrow-offset)}.pds-tooltip--top .pds-tooltip__content::after{border-block-start-color:var(--color-background-default);border-width:var(--border-width-arrow-down);bottom:calc(var(--sizing-arrow-default) * -1);left:50%;top:initial;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.pds-tooltip--top-start .pds-tooltip__content::after{border-block-start-color:var(--color-background-default);border-width:var(--border-width-arrow-down);bottom:calc(var(--sizing-arrow-default) * -1);left:var(--sizing-arrow-offset);top:initial}.pds-tooltip--top-end .pds-tooltip__content::after{border-block-start-color:var(--color-background-default);border-width:var(--border-width-arrow-down);bottom:calc(var(--sizing-arrow-default) * -1);left:initial;right:var(--sizing-arrow-offset);top:initial}.pds-tooltip--left .pds-tooltip__content::after{border-inline-start-color:var(--color-background-default);border-width:var(--border-width-arrow-right);left:initial;right:calc(var(--sizing-arrow-default) * -1);top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pds-tooltip--left-end .pds-tooltip__content::after{border-inline-start-color:var(--color-background-default);border-width:var(--border-width-arrow-right);bottom:var(--sizing-arrow-offset);left:initial;right:calc(var(--sizing-arrow-default) * -1);top:initial}.pds-tooltip--left-start .pds-tooltip__content::after{border-inline-start-color:var(--color-background-default);border-width:var(--border-width-arrow-right);left:initial;right:calc(var(--sizing-arrow-default) * -1);top:var(--sizing-arrow-offset)}.pds-tooltip--bottom .pds-tooltip__content::after{border-block-end-color:var(--color-background-default);border-width:var(--border-width-arrow-up);left:50%;top:calc(var(--sizing-arrow-default) * -1);-webkit-transform:translateX(-50%);transform:translateX(-50%)}.pds-tooltip--bottom-end .pds-tooltip__content::after{border-block-end-color:var(--color-background-default);border-width:var(--border-width-arrow-up);left:initial;right:var(--sizing-arrow-offset);top:calc(var(--sizing-arrow-default) * -1)}.pds-tooltip--bottom-start .pds-tooltip__content::after{border-block-end-color:var(--color-background-default);border-width:var(--border-width-arrow-up);left:var(--sizing-arrow-offset);top:calc(var(--sizing-arrow-default) * -1)}.pds-tooltip--no-arrow .pds-tooltip__content::after{border-width:0}";
|
|
72
|
-
const PdsTooltipStyle0 = pdsTooltipCss;
|
|
73
|
-
|
|
74
|
-
const PdsTooltip$1 = /*@__PURE__*/ proxyCustomElement(class PdsTooltip extends HTMLElement {
|
|
75
|
-
constructor() {
|
|
76
|
-
super();
|
|
77
|
-
this.__registerHost();
|
|
78
|
-
this.__attachShadow();
|
|
79
|
-
this.pdsTooltipHide = createEvent(this, "pdsTooltipHide", 7);
|
|
80
|
-
this.pdsTooltipShow = createEvent(this, "pdsTooltipShow", 7);
|
|
81
|
-
this.handleHide = () => {
|
|
82
|
-
this.hideTooltip();
|
|
83
|
-
this.pdsTooltipHide.emit();
|
|
84
|
-
};
|
|
85
|
-
this.handleShow = () => {
|
|
86
|
-
this.showTooltip();
|
|
87
|
-
this.pdsTooltipShow.emit();
|
|
88
|
-
};
|
|
89
|
-
this.isOpen = false;
|
|
90
|
-
this.content = undefined;
|
|
91
|
-
this.componentId = undefined;
|
|
92
|
-
this.hasArrow = true;
|
|
93
|
-
this.htmlContent = false;
|
|
94
|
-
this.placement = 'right';
|
|
95
|
-
this.opened = false;
|
|
96
|
-
}
|
|
97
|
-
handleOpenToggle() {
|
|
98
|
-
if (this.opened) {
|
|
99
|
-
this.handleShow();
|
|
100
|
-
}
|
|
101
|
-
else {
|
|
102
|
-
this.handleHide();
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
componentWillLoad() {
|
|
106
|
-
if (this.opened) {
|
|
107
|
-
this.showTooltip();
|
|
108
|
-
}
|
|
109
|
-
this.el.addEventListener('blur', this.handleHide, true);
|
|
110
|
-
this.el.addEventListener('focus', this.handleShow, true);
|
|
111
|
-
}
|
|
112
|
-
componentDidUpdate() {
|
|
113
|
-
if (this.opened) {
|
|
114
|
-
this.showTooltip();
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
componentDidRender() {
|
|
118
|
-
positionTooltip({ elem: this.el, elemPlacement: this.placement, overlay: this.contentEl });
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Shows the tooltip by enabling the opened property
|
|
122
|
-
*/
|
|
123
|
-
async showTooltip() {
|
|
124
|
-
this.opened = true;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Hides the tooltip by disabling the opened property
|
|
128
|
-
*/
|
|
129
|
-
async hideTooltip() {
|
|
130
|
-
this.opened = false;
|
|
131
|
-
}
|
|
132
|
-
render() {
|
|
133
|
-
return (h(Host, { key: '088766be31b8716e158cbffd4afc4ada0f14dc3d', onMouseEnter: this.handleShow, onMouseLeave: this.handleHide, onFocusin: this.handleShow, onFocusout: this.handleHide }, h("div", { key: 'c4fb29b5d5834a9e94f040ded6daf15cf3fcc6ff', class: `
|
|
134
|
-
pds-tooltip
|
|
135
|
-
pds-tooltip--${this.placement}
|
|
136
|
-
${this.htmlContent ? 'pds-tooltip--has-html-content' : ''}
|
|
137
|
-
${this.opened ? 'pds-tooltip--is-open' : ''}
|
|
138
|
-
${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}
|
|
139
|
-
` }, h("span", { key: '25a69f567a33df83ff784d36de5bce86874d6d1d', "aria-describedby": this.componentId, class: "pds-tooltip__trigger" }, h("slot", { key: 'eab3bbca9b913b04ef4dfe7a8e472c43d57c4979' })), h("div", { key: 'bdaa9f26f848b440a8432a44481f8a1059ae0689', class: "pds-tooltip__content", "aria-hidden": this.opened ? 'false' : 'true', "aria-live": this.opened ? 'polite' : 'off', id: this.componentId, ref: (el) => (this.contentEl = el), role: "tooltip" }, h("slot", { key: '0e62fe237e9a39208aa2146e2dc1d6df6b25b41d', name: "content" }), this.content))));
|
|
140
|
-
}
|
|
141
|
-
get el() { return this; }
|
|
142
|
-
static get watchers() { return {
|
|
143
|
-
"opened": ["handleOpenToggle"]
|
|
144
|
-
}; }
|
|
145
|
-
static get style() { return PdsTooltipStyle0; }
|
|
146
|
-
}, [1, "pds-tooltip", {
|
|
147
|
-
"content": [1],
|
|
148
|
-
"componentId": [1, "component-id"],
|
|
149
|
-
"hasArrow": [4, "has-arrow"],
|
|
150
|
-
"htmlContent": [4, "html-content"],
|
|
151
|
-
"placement": [513],
|
|
152
|
-
"opened": [1540],
|
|
153
|
-
"isOpen": [32],
|
|
154
|
-
"showTooltip": [64],
|
|
155
|
-
"hideTooltip": [64]
|
|
156
|
-
}, undefined, {
|
|
157
|
-
"opened": ["handleOpenToggle"]
|
|
158
|
-
}]);
|
|
159
|
-
function defineCustomElement$1() {
|
|
160
|
-
if (typeof customElements === "undefined") {
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
const components = ["pds-tooltip"];
|
|
164
|
-
components.forEach(tagName => { switch (tagName) {
|
|
165
|
-
case "pds-tooltip":
|
|
166
|
-
if (!customElements.get(tagName)) {
|
|
167
|
-
customElements.define(tagName, PdsTooltip$1);
|
|
168
|
-
}
|
|
169
|
-
break;
|
|
170
|
-
} });
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
const PdsTooltip = PdsTooltip$1;
|
|
174
|
-
const defineCustomElement = defineCustomElement$1;
|
|
175
|
-
|
|
176
|
-
export { PdsTooltip, defineCustomElement };
|
|
177
|
-
|
|
178
|
-
//# sourceMappingURL=pds-tooltip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"pds-tooltip.js","mappings":";;AAOO,MAAM,eAAe,GAAG,CAAC,EAAC,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,EAAc;IACrF,IAAI,IAAI,IAAI,SAAS;QAAE,OAAO;IAE9B,MAAM,IAAI,GAAG,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;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTooltip"],"sources":["src/utils/overlay.ts","src/components/pds-tooltip/pds-tooltip.scss?tag=pds-tooltip&encapsulation=shadow","src/components/pds-tooltip/pds-tooltip.tsx"],"sourcesContent":["interface OverlayArgs {\n elem: HTMLElement;\n elemPlacement: string;\n overlay: HTMLElement;\n offset?: number;\n}\n\nexport const positionTooltip = ({elem, elemPlacement, overlay, offset = 8}: OverlayArgs) => {\n if (elem == undefined) return;\n\n const rect = elem.getBoundingClientRect();\n const contentRect = overlay.getBoundingClientRect();\n\n // Exit the function if the placement is not set\n if (!elemPlacement || elemPlacement == \"\") return;\n\n switch (true) {\n case elemPlacement.includes(\"right\"):\n overlay.style.top = '50%';\n overlay.style.left = `calc(${rect.width}px + ${offset}px)`;\n overlay.style.transform = 'translateY(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.top = '0';\n overlay.style.transform = 'translateY(0)';\n }\n\n if (elemPlacement.includes(\"end\")) {\n overlay.style.bottom = '0';\n overlay.style.top = 'initial';\n overlay.style.transform = 'translateY(0)';\n }\n\n break;\n\n case elemPlacement.includes(\"left\"):\n overlay.style.top = '50%';\n overlay.style.right = `calc(${rect.width}px + ${offset}px)`;\n overlay.style.transform = 'translateY(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.top = '0';\n overlay.style.transform = 'translateY(0)';\n }\n\n if (elemPlacement.includes(\"end\")) {\n overlay.style.bottom = '0';\n overlay.style.top = 'initial';\n overlay.style.transform = 'translateY(0)';\n }\n\n break;\n\n case elemPlacement.includes(\"bottom\"):\n overlay.style.top = `calc(${rect.height}px + ${offset}px)`;\n overlay.style.left = '50%';\n overlay.style.transform = 'translateX(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.left = '0';\n overlay.style.transform = 'translateX(0)';\n }\n\n if (elemPlacement.includes(\"end\")) {\n overlay.style.left = 'initial';\n overlay.style.right = '0';\n overlay.style.transform = 'translateX(0)';\n }\n\n break;\n\n case elemPlacement.includes(\"top\"):\n overlay.style.top = `calc((${contentRect.height}px + ${offset}px) * -1)`;\n overlay.style.left = '50%';\n overlay.style.transform = 'translateX(-50%)';\n\n if (elemPlacement.includes(\"start\")) {\n overlay.style.left = '0';\n overlay.style.transform = 'translateX(0)';\n }\n if (elemPlacement.includes(\"end\")) {\n overlay.style.left = 'initial';\n overlay.style.right = '0';\n overlay.style.transform = 'translateX(0)';\n }\n\n break;\n }\n}\n",":host {\n --border-radius-overlay: var(--pine-border-radius-125);\n\n --border-width-arrow-down: var(--sizing-arrow-default) var(--sizing-arrow-default) 0;\n --border-width-arrow-left: var(--sizing-arrow-default) var(--sizing-arrow-default) var(--sizing-arrow-default) 0;\n --border-width-arrow-right: var(--sizing-arrow-default) 0 var(--sizing-arrow-default) var(--sizing-arrow-default);\n --border-width-arrow-up: 0 var(--sizing-arrow-default) var(--sizing-arrow-default);\n\n --box-shadow-default: var(--pine-box-shadow-md);\n\n --color-background-default: var(--pine-color-charcoal-400);\n --color-text-default: var(--pine-color-white);\n\n --font-size-overlay: var(--pine-font-size-087);\n\n --line-height-overlay: var(--pine-line-height-125);\n\n --sizing-arrow-default: 6px;\n --sizing-arrow-offset: 14px;\n --sizing-width-default: 320px;\n\n --spacing-padding-overlay: var(--pine-spacing-100) calc(var(--pine-spacing-300) / 2);\n\n display: inline-block;\n position: relative;\n\n ::slotted([slot=\"content\"]) {\n white-space: normal;\n width: var(--sizing-width-default);\n }\n}\n\n.pds-tooltip__content {\n background-color: var(--color-background-default);\n border-radius: var(--border-radius-overlay);\n box-shadow: var(--box-shadow-default);\n color: var(--color-text-default);\n font-size: var(--font-size-overlay);\n line-height: var(--line-height-overlay);\n // TODO: need to use block / none but the tooltip content width and height are needed for calculations\n opacity: 0;\n padding: var(--spacing-padding-overlay);\n position: absolute;\n visibility: hidden;\n width: max-content;\n\n .pds-tooltip--is-open & {\n // TODO: need to use block / none but the tooltip content width and height are needed for calculations\n opacity: 1;\n visibility: visible;\n z-index: 1;\n }\n\n :host(.pds-tooltip--has-html-content) & {\n width: auto;\n }\n\n &::after {\n border-color: transparent;\n border-right-color: transparent;\n border-style: solid;\n border-width: var(--border-width-arrow-left);\n content: '';\n height: 0;\n position: absolute;\n width: 0;\n\n .pds-tooltip--right & {\n border-inline-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-left);\n left: calc(var(--sizing-arrow-default) * -1);\n top: 50%;\n transform: translateY(-50%);\n }\n\n .pds-tooltip--right-end & {\n border-inline-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-left);\n bottom: var(--sizing-arrow-offset);\n left: calc(var(--sizing-arrow-default) * -1);\n top: initial;\n }\n\n .pds-tooltip--right-start & {\n border-inline-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-left);\n left: calc(var(--sizing-arrow-default) * -1);\n top: var(--sizing-arrow-offset);\n }\n\n .pds-tooltip--top & {\n border-block-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-down);\n bottom: calc(var(--sizing-arrow-default) * -1);\n left: 50%;\n top: initial;\n transform: translateX(-50%);\n }\n\n .pds-tooltip--top-start & {\n border-block-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-down);\n bottom: calc(var(--sizing-arrow-default) * -1);\n left: var(--sizing-arrow-offset);\n top: initial;\n }\n\n .pds-tooltip--top-end & {\n border-block-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-down);\n bottom: calc(var(--sizing-arrow-default) * -1);\n left: initial;\n right: var(--sizing-arrow-offset);\n top: initial;\n }\n\n .pds-tooltip--left & {\n border-inline-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-right);\n left: initial;\n right: calc(var(--sizing-arrow-default) * -1);\n top: 50%;\n transform: translateY(-50%);\n }\n\n .pds-tooltip--left-end & {\n border-inline-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-right);\n bottom: var(--sizing-arrow-offset);\n left: initial;\n right: calc(var(--sizing-arrow-default) * -1);\n top: initial;\n }\n\n .pds-tooltip--left-start & {\n border-inline-start-color: var(--color-background-default);\n border-width: var(--border-width-arrow-right);\n left: initial;\n right: calc(var(--sizing-arrow-default) * -1);\n top: var(--sizing-arrow-offset);\n }\n\n .pds-tooltip--bottom & {\n border-block-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-up);\n left: 50%;\n top: calc(var(--sizing-arrow-default) * -1);\n transform: translateX(-50%);\n }\n\n .pds-tooltip--bottom-end & {\n border-block-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-up);\n left: initial;\n right: var(--sizing-arrow-offset);\n top: calc(var(--sizing-arrow-default) * -1);\n }\n\n .pds-tooltip--bottom-start & {\n border-block-end-color: var(--color-background-default);\n border-width: var(--border-width-arrow-up);\n left: var(--sizing-arrow-offset);\n top: calc(var(--sizing-arrow-default) * -1);\n }\n\n .pds-tooltip--no-arrow & {\n border-width: 0;\n }\n }\n}\n","import { Component, Element, Event, Host, Prop, State, h, EventEmitter, Method, Watch } from '@stencil/core';\nimport {\n positionTooltip\n} from '../../utils/overlay';\n\n/**\n * @slot (default) - The tooltip's target element\n * @slot content - HTML content for the tooltip\n */\n\n@Component({\n tag: 'pds-tooltip',\n styleUrl: 'pds-tooltip.scss',\n shadow: true,\n})\nexport class PdsTooltip {\n private contentEl: HTMLElement | null;\n\n /**\n * Reference to the Host element\n */\n @Element() el: HTMLPdsTooltipElement;\n\n /**\n * Determines when the tooltip is open\n * @defaultValue false\n */\n @State() isOpen = false;\n\n /**\n * Content for the tooltip. If HTML is required, use the content slot\n */\n @Prop() content: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether or not the tooltip has an arrow\n * @defaultValue true\n */\n @Prop() hasArrow? = true;\n\n /**\n * Enable this option when using the content slot\n * @defaultValue false\n */\n @Prop() htmlContent = false;\n\n /**\n * Determines the preferred position of the tooltip\n * @defaultValue \"right\"\n */\n @Prop({ reflect: true }) placement:\n 'top'\n | 'top-start'\n | 'top-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end' = 'right';\n\n /**\n * Determines whether or not the tooltip is visible\n * @defaultValue false\n */\n @Prop({mutable: true, reflect: true}) opened = false;\n\n @Watch('opened')\n handleOpenToggle() {\n if (this.opened) {\n this.handleShow();\n } else {\n this.handleHide();\n }\n }\n\n /**\n * Emitted after a tooltip is closed\n */\n @Event() pdsTooltipHide: EventEmitter;\n\n /**\n * Emitted after a tooltip is shown\n */\n @Event() pdsTooltipShow: EventEmitter;\n\n componentWillLoad() {\n if (this.opened) {\n this.showTooltip();\n }\n\n this.el.addEventListener('blur', this.handleHide, true);\n this.el.addEventListener('focus', this.handleShow, true);\n }\n\n componentDidUpdate() {\n if (this.opened) {\n this.showTooltip();\n }\n }\n\n componentDidRender() {\n positionTooltip({elem: this.el, elemPlacement: this.placement, overlay: this.contentEl});\n }\n\n /**\n * Shows the tooltip by enabling the opened property\n */\n @Method()\n async showTooltip() {\n this.opened = true;\n }\n\n /**\n * Hides the tooltip by disabling the opened property\n */\n @Method()\n async hideTooltip() {\n this.opened = false;\n }\n\n private handleHide = () => {\n this.hideTooltip();\n this.pdsTooltipHide.emit();\n };\n\n private handleShow = () => {\n this.showTooltip();\n this.pdsTooltipShow.emit();\n };\n\n render() {\n return (\n <Host\n onMouseEnter={this.handleShow}\n onMouseLeave={this.handleHide}\n onFocusin={this.handleShow}\n onFocusout={this.handleHide}\n >\n <div\n class={`\n pds-tooltip\n pds-tooltip--${this.placement}\n ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''}\n ${this.opened ? 'pds-tooltip--is-open' : ''}\n ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}\n `}\n >\n <span\n aria-describedby={this.componentId}\n class=\"pds-tooltip__trigger\"\n >\n <slot />\n </span>\n\n <div class=\"pds-tooltip__content\"\n aria-hidden={this.opened ? 'false' : 'true'}\n aria-live={this.opened ? 'polite' : 'off'}\n id={this.componentId}\n ref={(el) => (this.contentEl = el)}\n role=\"tooltip\"\n >\n <slot\n name=\"content\"\n ></slot>\n {this.content}\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/* pds-icons v3.8.0, ES Modules */
|
|
4
|
-
const caretDown = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M.862 4.862c.26-.26.682-.26.943 0L8 11.057l6.195-6.195a.667.667 0 1 1 .943.943L8.471 12.47a.667.667 0 0 1-.942 0L.862 5.805a.667.667 0 0 1 0-.943Z'/></svg>";
|
|
5
|
-
const checkCircleFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M8 0C3.58 0 0 3.58 0 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8Zm4.473 5.807L7.14 11.14c-.26.26-.68.26-.94 0L3.533 8.473a.664.664 0 1 1 .94-.94l2.194 2.194 4.86-4.86c.26-.26.68-.26.94 0 .266.253.266.68.006.94Z'/></svg>";
|
|
6
|
-
const copy = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M10 5.333c0-.368.299-.666.667-.666h4c.368 0 .666.298.666.666v9.334a.667.667 0 0 1-.666.666H5.333a.667.667 0 0 1-.666-.666v-4a.667.667 0 1 1 1.333 0V14h8V6h-3.333A.667.667 0 0 1 10 5.333Z'/><path fill-rule='evenodd' d='M.667 1.333c0-.368.298-.666.666-.666h9.334c.368 0 .666.298.666.666v9.334a.667.667 0 0 1-.666.666H1.333a.667.667 0 0 1-.666-.666V1.333ZM2 2v8h8V2H2Z'/></svg>";
|
|
7
|
-
const downSmall = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M3.594 5.594a.889.889 0 0 1 1.257 0L7.778 8.52l2.927-2.927a.889.889 0 0 1 1.257 1.257l-3.556 3.555a.889.889 0 0 1-1.257 0L3.594 6.851a.889.889 0 0 1 0-1.257Z'/></svg>";
|
|
8
|
-
const handle = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M.667 5.333a.667.667 0 0 0 0 1.334h14.666a.667.667 0 1 0 0-1.334H.667Zm0 4.667a.667.667 0 0 0 0 1.333h14.666a.667.667 0 1 0 0-1.333H.667Z'/></svg>";
|
|
9
|
-
const launch = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M15.138.862a.664.664 0 0 1 .195.461v5.344a.667.667 0 0 1-1.333 0V2.943L7.805 9.138a.667.667 0 1 1-.943-.943L13.057 2H9.333a.667.667 0 0 1 0-1.333h5.333c.171 0 .342.065.472.195ZM1.333 2a.667.667 0 0 0-.666.667v12c0 .368.298.666.666.666h12a.667.667 0 0 0 .667-.666V10a.667.667 0 0 0-1.333 0v4H2V3.333h4A.667.667 0 1 0 6 2H1.333Z'/></svg>";
|
|
10
|
-
const remove = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M13.138 3.805a.667.667 0 0 0-.943-.943L8 7.057 3.805 2.862a.667.667 0 1 0-.943.943L7.057 8l-4.195 4.195a.667.667 0 1 0 .943.943L8 8.943l4.195 4.195a.667.667 0 0 0 .943-.943L8.943 8l4.195-4.195Z'/></svg>";
|
|
11
|
-
const upSmall = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M7.15 5.594a.889.889 0 0 1 1.256 0l3.556 3.555a.889.889 0 0 1-1.257 1.257L7.778 7.48 4.85 10.406A.889.889 0 1 1 3.594 9.15l3.555-3.555Z'/></svg>";
|
|
12
|
-
const userFilled = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path d='M12.222 8.925A5.98 5.98 0 0 1 8 10.667a5.983 5.983 0 0 1-4.222-1.742A7.335 7.335 0 0 0 0 15.333c0 .368.299.667.667.667h14.666a.667.667 0 0 0 .667-.667 7.335 7.335 0 0 0-3.778-6.408Z'/><path d='M8 9.333A4.667 4.667 0 1 0 8 0a4.667 4.667 0 0 0 0 9.333Z'/></svg>";
|
|
13
|
-
|
|
14
|
-
exports.caretDown = caretDown;
|
|
15
|
-
exports.checkCircleFilled = checkCircleFilled;
|
|
16
|
-
exports.copy = copy;
|
|
17
|
-
exports.downSmall = downSmall;
|
|
18
|
-
exports.handle = handle;
|
|
19
|
-
exports.launch = launch;
|
|
20
|
-
exports.remove = remove;
|
|
21
|
-
exports.upSmall = upSmall;
|
|
22
|
-
exports.userFilled = userFilled;
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=index-f034f06e.js.map
|