@usecapsule/core-components 2.0.2 → 2.0.4-dev.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/capsule/capsule.esm.js +1 -52
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/index.esm.js +1 -572
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/p-0462f723.js +2 -0
- package/dist/capsule/p-0462f723.js.map +1 -0
- package/dist/capsule/p-68c73705.entry.js +2 -0
- package/dist/capsule/p-68c73705.entry.js.map +1 -0
- package/dist/capsule/p-6fb7c4d1.js +3 -0
- package/dist/capsule/p-6fb7c4d1.js.map +1 -0
- package/dist/capsule/p-91412151.entry.js +2 -0
- package/dist/capsule/p-91412151.entry.js.map +1 -0
- package/dist/capsule/p-a95ec4df.entry.js +2 -0
- package/dist/capsule/p-a95ec4df.entry.js.map +1 -0
- package/dist/capsule/p-c2bf050b.js +2 -0
- package/dist/capsule/p-c2bf050b.js.map +1 -0
- package/dist/capsule/p-cacdef26.entry.js +29 -0
- package/dist/capsule/p-cacdef26.entry.js.map +1 -0
- package/dist/capsule/p-d7be092d.entry.js +10 -0
- package/dist/capsule/p-d7be092d.entry.js.map +1 -0
- package/dist/capsule/p-e1255160.js +2 -0
- package/dist/capsule/p-e1255160.js.map +1 -0
- package/dist/capsule/p-f604b591.entry.js +2 -0
- package/dist/capsule/p-f604b591.entry.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js +12 -0
- package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +7 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +27 -0
- package/dist/cjs/capsule.cjs.js.map +1 -0
- package/dist/cjs/constants-4bb85cc5.js +12 -0
- package/dist/cjs/constants-4bb85cc5.js.map +1 -0
- package/dist/cjs/cpsl-alert_17.cjs.entry.js +10737 -0
- package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +20129 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-col.cjs.entry.js +125 -0
- package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-grid.cjs.entry.js +25 -0
- package/dist/cjs/cpsl-grid.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-info-box.cjs.entry.js +22 -0
- package/dist/cjs/cpsl-info-box.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-row.cjs.entry.js +22 -0
- package/dist/cjs/cpsl-row.cjs.entry.js.map +1 -0
- package/dist/cjs/index-3fccb5b4.js +2012 -0
- package/dist/cjs/index-3fccb5b4.js.map +1 -0
- package/dist/cjs/index.cjs.js +342 -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/collection/assets/icons/alert-circle.svg +3 -0
- package/dist/collection/assets/icons/angel-list-brand.svg +3 -0
- package/dist/collection/assets/icons/angel-list.svg +3 -0
- package/dist/collection/assets/icons/apple-brand.svg +3 -0
- package/dist/collection/assets/icons/apple.svg +3 -0
- package/dist/collection/assets/icons/arrow-narrow.svg +3 -0
- package/dist/collection/assets/icons/arrow.svg +3 -0
- package/dist/collection/assets/icons/backup-kit.svg +4 -0
- package/dist/collection/assets/icons/capsule-logo.svg +18 -0
- package/dist/collection/assets/icons/capsule-rings-dark.svg +34 -0
- package/dist/collection/assets/icons/capsule-rings.svg +34 -0
- package/dist/collection/assets/icons/capsule.svg +4 -0
- package/dist/collection/assets/icons/check.svg +3 -0
- package/dist/collection/assets/icons/clock.svg +3 -0
- package/dist/collection/assets/icons/close.svg +4 -0
- package/dist/collection/assets/icons/clubhouse-brand.svg +4 -0
- package/dist/collection/assets/icons/clubhouse.svg +4 -0
- package/dist/collection/assets/icons/copy.svg +3 -0
- package/dist/collection/assets/icons/decent-brand.svg +3 -0
- package/dist/collection/assets/icons/decent.svg +3 -0
- package/dist/collection/assets/icons/discord-brand.svg +4 -0
- package/dist/collection/assets/icons/discord.svg +4 -0
- package/dist/collection/assets/icons/download-cloud.svg +3 -0
- package/dist/collection/assets/icons/dribbble-brand.svg +4 -0
- package/dist/collection/assets/icons/dribbble.svg +3 -0
- package/dist/collection/assets/icons/eye-off.svg +3 -0
- package/dist/collection/assets/icons/eye.svg +4 -0
- package/dist/collection/assets/icons/facebook-brand.svg +11 -0
- package/dist/collection/assets/icons/facebook.svg +10 -0
- package/dist/collection/assets/icons/figma-brand.svg +14 -0
- package/dist/collection/assets/icons/figma.svg +3 -0
- package/dist/collection/assets/icons/github-brand.svg +10 -0
- package/dist/collection/assets/icons/github.svg +10 -0
- package/dist/collection/assets/icons/google-brand.svg +13 -0
- package/dist/collection/assets/icons/google.svg +10 -0
- package/dist/collection/assets/icons/help-circle.svg +3 -0
- package/dist/collection/assets/icons/hero-email.svg +12 -0
- package/dist/collection/assets/icons/hero-lock.svg +4 -0
- package/dist/collection/assets/icons/hero-passkey.svg +12 -0
- package/dist/collection/assets/icons/hero-phone.svg +4 -0
- package/dist/collection/assets/icons/hero-wallet.svg +5 -0
- package/dist/collection/assets/icons/index.js +75 -0
- package/dist/collection/assets/icons/index.js.map +1 -0
- package/dist/collection/assets/icons/info-circle.svg +3 -0
- package/dist/collection/assets/icons/instagram-brand.svg +12 -0
- package/dist/collection/assets/icons/instagram.svg +12 -0
- package/dist/collection/assets/icons/key.svg +3 -0
- package/dist/collection/assets/icons/lightning.svg +3 -0
- package/dist/collection/assets/icons/linkedin-brand.svg +10 -0
- package/dist/collection/assets/icons/linkedin.svg +10 -0
- package/dist/collection/assets/icons/mail.svg +3 -0
- package/dist/collection/assets/icons/more-login-options.svg +13 -0
- package/dist/collection/assets/icons/phone.svg +3 -0
- package/dist/collection/assets/icons/pintrest-brand.svg +11 -0
- package/dist/collection/assets/icons/pintrest.svg +10 -0
- package/dist/collection/assets/icons/plus-circle.svg +5 -0
- package/dist/collection/assets/icons/ramp-network-brand.svg +3 -0
- package/dist/collection/assets/icons/ramp-network.svg +3 -0
- package/dist/collection/assets/icons/reddit-brand.svg +11 -0
- package/dist/collection/assets/icons/reddit.svg +3 -0
- package/dist/collection/assets/icons/signal-brand.svg +3 -0
- package/dist/collection/assets/icons/signal.svg +3 -0
- package/dist/collection/assets/icons/snapchat-brand.svg +4 -0
- package/dist/collection/assets/icons/snapchat.svg +3 -0
- package/dist/collection/assets/icons/telegram-brand.svg +15 -0
- package/dist/collection/assets/icons/telegram.svg +10 -0
- package/dist/collection/assets/icons/tik-tok-brand.svg +5 -0
- package/dist/collection/assets/icons/tik-tok.svg +3 -0
- package/dist/collection/assets/icons/tumblr-brand.svg +10 -0
- package/dist/collection/assets/icons/tumblr.svg +10 -0
- package/dist/collection/assets/icons/twitter-brand.svg +3 -0
- package/dist/collection/assets/icons/twitter.svg +3 -0
- package/dist/collection/assets/icons/wallet.svg +5 -0
- package/dist/collection/assets/icons/youtube-brand.svg +11 -0
- package/dist/collection/assets/icons/youtube.svg +3 -0
- package/dist/collection/collection-manifest.json +33 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.css +98 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +80 -0
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -0
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +29 -0
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +37 -0
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +1 -0
- package/dist/collection/components/cpsl-animation/cpsl-animation.css +17 -0
- package/dist/collection/components/cpsl-animation/cpsl-animation.js +102 -0
- package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +1 -0
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +29 -0
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +37 -0
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +1 -0
- package/dist/collection/components/cpsl-button/cpsl-button.css +162 -0
- package/dist/collection/components/cpsl-button/cpsl-button.js +68 -0
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -0
- package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +29 -0
- package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +37 -0
- package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +1 -0
- package/dist/collection/components/cpsl-code-input/code-change-interface.js +2 -0
- package/dist/collection/components/cpsl-code-input/code-change-interface.js.map +1 -0
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +134 -0
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +223 -0
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -0
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +29 -0
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +37 -0
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +1 -0
- package/dist/collection/components/cpsl-col/cpsl-col.css +200 -0
- package/dist/collection/components/cpsl-col/cpsl-col.js +528 -0
- package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -0
- package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +29 -0
- package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +37 -0
- package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +1 -0
- package/dist/collection/components/cpsl-divider/cpsl-divider.css +73 -0
- package/dist/collection/components/cpsl-divider/cpsl-divider.js +19 -0
- package/dist/collection/components/cpsl-divider/cpsl-divider.js.map +1 -0
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +29 -0
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +37 -0
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +1 -0
- package/dist/collection/components/cpsl-grid/cpsl-grid.css +235 -0
- package/dist/collection/components/cpsl-grid/cpsl-grid.js +46 -0
- package/dist/collection/components/cpsl-grid/cpsl-grid.js.map +1 -0
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +29 -0
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +37 -0
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +1 -0
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +95 -0
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +68 -0
- package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +1 -0
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +29 -0
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +37 -0
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +1 -0
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +77 -0
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +19 -0
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js.map +1 -0
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +29 -0
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +37 -0
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +1 -0
- package/dist/collection/components/cpsl-input/cpsl-input.css +194 -0
- package/dist/collection/components/cpsl-input/cpsl-input.js +708 -0
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -0
- package/dist/collection/components/cpsl-input/input-interface.js +2 -0
- package/dist/collection/components/cpsl-input/input-interface.js.map +1 -0
- package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +29 -0
- package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +37 -0
- package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +1 -0
- package/dist/collection/components/cpsl-modal/cpsl-modal.css +172 -0
- package/dist/collection/components/cpsl-modal/cpsl-modal.js +431 -0
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -0
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +29 -0
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +37 -0
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +1 -0
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +11 -0
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +108 -0
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -0
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +29 -0
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +37 -0
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +1 -0
- package/dist/collection/components/cpsl-pill/cpsl-pill.css +92 -0
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +43 -0
- package/dist/collection/components/cpsl-pill/cpsl-pill.js.map +1 -0
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +29 -0
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +37 -0
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +1 -0
- package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +82 -0
- package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js +71 -0
- package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +1 -0
- package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js +2 -0
- package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js.map +1 -0
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +29 -0
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +37 -0
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +1 -0
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +81 -0
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +107 -0
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +1 -0
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +29 -0
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +37 -0
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +1 -0
- package/dist/collection/components/cpsl-row/cpsl-row.css +136 -0
- package/dist/collection/components/cpsl-row/cpsl-row.js +19 -0
- package/dist/collection/components/cpsl-row/cpsl-row.js.map +1 -0
- package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +29 -0
- package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +37 -0
- package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +1 -0
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +175 -0
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +252 -0
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -0
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +29 -0
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +37 -0
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +1 -0
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +68 -0
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +69 -0
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +1 -0
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +29 -0
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +37 -0
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +1 -0
- package/dist/collection/components/cpsl-tab/cpsl-tab.css +23 -0
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +121 -0
- package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +1 -0
- package/dist/collection/components/cpsl-tab/tab-interface.js +2 -0
- package/dist/collection/components/cpsl-tab/tab-interface.js.map +1 -0
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +29 -0
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +37 -0
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +1 -0
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +111 -0
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +170 -0
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -0
- package/dist/collection/components/cpsl-tabs/tabs-interface.js +2 -0
- package/dist/collection/components/cpsl-tabs/tabs-interface.js.map +1 -0
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +29 -0
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +37 -0
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +1 -0
- package/dist/collection/components/cpsl-text/cpsl-text.css +59 -0
- package/dist/collection/components/cpsl-text/cpsl-text.js +19 -0
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -0
- package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +29 -0
- package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +37 -0
- package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +1 -0
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +97 -0
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +67 -0
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +1 -0
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +29 -0
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +1 -0
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +37 -0
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +1 -0
- package/dist/collection/constants.js +6 -0
- package/dist/collection/constants.js.map +1 -0
- package/dist/collection/index.js +3 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/interface.js +2 -0
- package/dist/collection/interface.js.map +1 -0
- package/dist/collection/utils/media.js +18 -0
- package/dist/collection/utils/media.js.map +1 -0
- package/dist/collection/utils/theme/generateBorderRadii.js +56 -0
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -0
- package/dist/collection/utils/theme/generateFont.js +7 -0
- package/dist/collection/utils/theme/generateFont.js.map +1 -0
- package/dist/collection/utils/theme/generatePalette.js +46 -0
- package/dist/collection/utils/theme/generatePalette.js.map +1 -0
- package/dist/collection/utils/theme/generateTheme.js +12 -0
- package/dist/collection/utils/theme/generateTheme.js.map +1 -0
- package/dist/collection/utils/theme/utils.js +21 -0
- package/dist/collection/utils/theme/utils.js.map +1 -0
- package/dist/esm/_commonjsHelpers-1789f0cf.js +9 -0
- package/dist/esm/_commonjsHelpers-1789f0cf.js.map +1 -0
- package/dist/esm/capsule.js +22 -0
- package/dist/esm/capsule.js.map +1 -0
- package/dist/esm/cpsl-alert_17.entry.js +10717 -0
- package/dist/esm/cpsl-alert_17.entry.js.map +1 -0
- package/dist/{capsule → esm}/cpsl-animation.entry.js +20 -114
- package/dist/esm/cpsl-animation.entry.js.map +1 -0
- package/dist/{capsule → esm}/cpsl-col.entry.js +4 -3
- package/dist/esm/cpsl-col.entry.js.map +1 -0
- package/dist/{capsule → esm}/cpsl-grid.entry.js +5 -4
- package/dist/esm/cpsl-grid.entry.js.map +1 -0
- package/dist/{capsule → esm}/cpsl-info-box.entry.js +4 -3
- package/dist/esm/cpsl-info-box.entry.js.map +1 -0
- package/dist/esm/cpsl-row.entry.js +18 -0
- package/dist/esm/cpsl-row.entry.js.map +1 -0
- package/dist/esm/index-f00e090c.js +1982 -0
- package/dist/esm/index-f00e090c.js.map +1 -0
- package/dist/esm/index.js +338 -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/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/scripts/buildIconLibrary.js +33 -0
- package/dist/scripts/buildIconLibrary.js.map +1 -0
- package/dist/types/assets/icons/index.d.ts +5 -0
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +0 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interface.d.ts +0 -15
- package/dist/types/utils/theme/generateFont.d.ts +1 -1
- package/dist/types/utils/theme/generateTheme.d.ts +2 -1
- package/package.json +2 -2
- package/dist/capsule/_commonjsHelpers-bc8ff177.js +0 -36
- package/dist/capsule/_commonjsHelpers-bc8ff177.js.map +0 -1
- package/dist/capsule/cpsl-alert.entry.js +0 -31
- package/dist/capsule/cpsl-alert.entry.js.map +0 -1
- package/dist/capsule/cpsl-animation.entry.js.map +0 -1
- package/dist/capsule/cpsl-button.entry.js +0 -24
- package/dist/capsule/cpsl-button.entry.js.map +0 -1
- package/dist/capsule/cpsl-code-input.entry.js +0 -106
- package/dist/capsule/cpsl-code-input.entry.js.map +0 -1
- package/dist/capsule/cpsl-col.entry.js.map +0 -1
- package/dist/capsule/cpsl-divider.entry.js +0 -17
- package/dist/capsule/cpsl-divider.entry.js.map +0 -1
- package/dist/capsule/cpsl-grid.entry.js.map +0 -1
- package/dist/capsule/cpsl-icon.entry.js +0 -20
- package/dist/capsule/cpsl-icon.entry.js.map +0 -1
- package/dist/capsule/cpsl-info-box.entry.js.map +0 -1
- package/dist/capsule/cpsl-input.entry.js +0 -124
- package/dist/capsule/cpsl-input.entry.js.map +0 -1
- package/dist/capsule/cpsl-modal.entry.js +0 -3338
- package/dist/capsule/cpsl-modal.entry.js.map +0 -1
- package/dist/capsule/cpsl-overlay.entry.js +0 -44
- package/dist/capsule/cpsl-overlay.entry.js.map +0 -1
- package/dist/capsule/cpsl-pill.entry.js +0 -18
- package/dist/capsule/cpsl-pill.entry.js.map +0 -1
- package/dist/capsule/cpsl-progress-indicator.entry.js +0 -29
- package/dist/capsule/cpsl-progress-indicator.entry.js.map +0 -1
- package/dist/capsule/cpsl-qr-code.entry.js +0 -56
- package/dist/capsule/cpsl-qr-code.entry.js.map +0 -1
- package/dist/capsule/cpsl-row.entry.js +0 -17
- package/dist/capsule/cpsl-row.entry.js.map +0 -1
- package/dist/capsule/cpsl-slide-button.entry.js +0 -130
- package/dist/capsule/cpsl-slide-button.entry.js.map +0 -1
- package/dist/capsule/cpsl-spinner.entry.js +0 -25
- package/dist/capsule/cpsl-spinner.entry.js.map +0 -1
- package/dist/capsule/cpsl-tab.entry.js +0 -37
- package/dist/capsule/cpsl-tab.entry.js.map +0 -1
- package/dist/capsule/cpsl-tabs.entry.js +0 -71
- package/dist/capsule/cpsl-tabs.entry.js.map +0 -1
- package/dist/capsule/cpsl-text.entry.js +0 -66
- package/dist/capsule/cpsl-text.entry.js.map +0 -1
- package/dist/capsule/cpsl-tile-button.entry.js +0 -19
- package/dist/capsule/cpsl-tile-button.entry.js.map +0 -1
- package/dist/capsule/index-3ac1b9e9.js +0 -617
- package/dist/capsule/index-3ac1b9e9.js.map +0 -1
- package/dist/capsule/index-3ad00c7e.js +0 -6064
- package/dist/capsule/index-3ad00c7e.js.map +0 -1
- package/dist/capsule/index-f19e63df.js +0 -4148
- package/dist/capsule/index-f19e63df.js.map +0 -1
- package/dist/capsule/shadow-css-bc9e2af8.js +0 -478
- package/dist/capsule/shadow-css-bc9e2af8.js.map +0 -1
- /package/dist/{capsule → esm}/app-globals-0f993ce5.js +0 -0
- /package/dist/{capsule → esm}/app-globals-0f993ce5.js.map +0 -0
- /package/dist/{capsule → esm}/constants-7b49abd5.js +0 -0
- /package/dist/{capsule → esm}/constants-7b49abd5.js.map +0 -0
@@ -0,0 +1,528 @@
|
|
1
|
+
import { Host, forceUpdate, h } from "@stencil/core";
|
2
|
+
import { matchBreakpoint } from "../../utils/media";
|
3
|
+
const win = typeof window !== 'undefined' ? window : undefined;
|
4
|
+
const SUPPORTS_VARS = win && !!(win.CSS && win.CSS.supports && win.CSS.supports('--a: 0'));
|
5
|
+
const BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];
|
6
|
+
export class CpslCol {
|
7
|
+
constructor() {
|
8
|
+
this.offset = undefined;
|
9
|
+
this.offsetXs = undefined;
|
10
|
+
this.offsetSm = undefined;
|
11
|
+
this.offsetMd = undefined;
|
12
|
+
this.offsetLg = undefined;
|
13
|
+
this.offsetXl = undefined;
|
14
|
+
this.pull = undefined;
|
15
|
+
this.pullXs = undefined;
|
16
|
+
this.pullSm = undefined;
|
17
|
+
this.pullMd = undefined;
|
18
|
+
this.pullLg = undefined;
|
19
|
+
this.pullXl = undefined;
|
20
|
+
this.push = undefined;
|
21
|
+
this.pushXs = undefined;
|
22
|
+
this.pushSm = undefined;
|
23
|
+
this.pushMd = undefined;
|
24
|
+
this.pushLg = undefined;
|
25
|
+
this.pushXl = undefined;
|
26
|
+
this.size = undefined;
|
27
|
+
this.sizeXs = undefined;
|
28
|
+
this.sizeSm = undefined;
|
29
|
+
this.sizeMd = undefined;
|
30
|
+
this.sizeLg = undefined;
|
31
|
+
this.sizeXl = undefined;
|
32
|
+
}
|
33
|
+
onResize() {
|
34
|
+
forceUpdate(this);
|
35
|
+
}
|
36
|
+
getColumns(property) {
|
37
|
+
let matched;
|
38
|
+
for (const breakpoint of BREAKPOINTS) {
|
39
|
+
const matches = matchBreakpoint(breakpoint);
|
40
|
+
const columns = this[property + breakpoint.charAt(0).toUpperCase() + breakpoint.slice(1)];
|
41
|
+
if (matches && columns !== undefined) {
|
42
|
+
matched = columns;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
return matched;
|
46
|
+
}
|
47
|
+
calculateSize() {
|
48
|
+
const columns = this.getColumns('size');
|
49
|
+
if (!columns || columns === '') {
|
50
|
+
return;
|
51
|
+
}
|
52
|
+
const colSize = columns === 'auto'
|
53
|
+
? 'auto'
|
54
|
+
:
|
55
|
+
SUPPORTS_VARS
|
56
|
+
? `calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`
|
57
|
+
:
|
58
|
+
(columns / 12) * 100 + '%';
|
59
|
+
return {
|
60
|
+
'flex': `0 0 ${colSize}`,
|
61
|
+
'width': `${colSize}`,
|
62
|
+
'max-width': `${colSize}`,
|
63
|
+
};
|
64
|
+
}
|
65
|
+
calculatePosition(property, modifier) {
|
66
|
+
const columns = this.getColumns(property);
|
67
|
+
if (!columns) {
|
68
|
+
return;
|
69
|
+
}
|
70
|
+
const amount = SUPPORTS_VARS
|
71
|
+
?
|
72
|
+
`calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`
|
73
|
+
:
|
74
|
+
columns > 0 && columns < 12
|
75
|
+
? (columns / 12) * 100 + '%'
|
76
|
+
: 'auto';
|
77
|
+
return {
|
78
|
+
[modifier]: amount,
|
79
|
+
};
|
80
|
+
}
|
81
|
+
calculateOffset(isRTL) {
|
82
|
+
return this.calculatePosition('offset', isRTL ? 'margin-right' : 'margin-left');
|
83
|
+
}
|
84
|
+
calculatePull(isRTL) {
|
85
|
+
return this.calculatePosition('pull', isRTL ? 'left' : 'right');
|
86
|
+
}
|
87
|
+
calculatePush(isRTL) {
|
88
|
+
return this.calculatePosition('push', isRTL ? 'right' : 'left');
|
89
|
+
}
|
90
|
+
render() {
|
91
|
+
const isRTL = document.dir === 'rtl';
|
92
|
+
return (h(Host, { key: 'fdb8a99b8b9225949b4eea931277e461efac29eb', style: Object.assign(Object.assign(Object.assign(Object.assign({}, this.calculateOffset(isRTL)), this.calculatePull(isRTL)), this.calculatePush(isRTL)), this.calculateSize()) }, h("slot", { key: '0976c09d835a37413455f787596a75eafc1db14f' })));
|
93
|
+
}
|
94
|
+
static get is() { return "cpsl-col"; }
|
95
|
+
static get encapsulation() { return "shadow"; }
|
96
|
+
static get originalStyleUrls() {
|
97
|
+
return {
|
98
|
+
"$": ["cpsl-col.scss"]
|
99
|
+
};
|
100
|
+
}
|
101
|
+
static get styleUrls() {
|
102
|
+
return {
|
103
|
+
"$": ["cpsl-col.css"]
|
104
|
+
};
|
105
|
+
}
|
106
|
+
static get properties() {
|
107
|
+
return {
|
108
|
+
"offset": {
|
109
|
+
"type": "string",
|
110
|
+
"mutable": false,
|
111
|
+
"complexType": {
|
112
|
+
"original": "string",
|
113
|
+
"resolved": "string",
|
114
|
+
"references": {}
|
115
|
+
},
|
116
|
+
"required": false,
|
117
|
+
"optional": true,
|
118
|
+
"docs": {
|
119
|
+
"tags": [],
|
120
|
+
"text": "The amount to offset the column, in terms of how many columns it should shift to the end\nof the total available."
|
121
|
+
},
|
122
|
+
"attribute": "offset",
|
123
|
+
"reflect": false
|
124
|
+
},
|
125
|
+
"offsetXs": {
|
126
|
+
"type": "string",
|
127
|
+
"mutable": false,
|
128
|
+
"complexType": {
|
129
|
+
"original": "string",
|
130
|
+
"resolved": "string",
|
131
|
+
"references": {}
|
132
|
+
},
|
133
|
+
"required": false,
|
134
|
+
"optional": true,
|
135
|
+
"docs": {
|
136
|
+
"tags": [],
|
137
|
+
"text": "The amount to offset the column for xs screens, in terms of how many columns it should shift\nto the end of the total available."
|
138
|
+
},
|
139
|
+
"attribute": "offset-xs",
|
140
|
+
"reflect": false
|
141
|
+
},
|
142
|
+
"offsetSm": {
|
143
|
+
"type": "string",
|
144
|
+
"mutable": false,
|
145
|
+
"complexType": {
|
146
|
+
"original": "string",
|
147
|
+
"resolved": "string",
|
148
|
+
"references": {}
|
149
|
+
},
|
150
|
+
"required": false,
|
151
|
+
"optional": true,
|
152
|
+
"docs": {
|
153
|
+
"tags": [],
|
154
|
+
"text": "The amount to offset the column for sm screens, in terms of how many columns it should shift\nto the end of the total available."
|
155
|
+
},
|
156
|
+
"attribute": "offset-sm",
|
157
|
+
"reflect": false
|
158
|
+
},
|
159
|
+
"offsetMd": {
|
160
|
+
"type": "string",
|
161
|
+
"mutable": false,
|
162
|
+
"complexType": {
|
163
|
+
"original": "string",
|
164
|
+
"resolved": "string",
|
165
|
+
"references": {}
|
166
|
+
},
|
167
|
+
"required": false,
|
168
|
+
"optional": true,
|
169
|
+
"docs": {
|
170
|
+
"tags": [],
|
171
|
+
"text": "The amount to offset the column for md screens, in terms of how many columns it should shift\nto the end of the total available."
|
172
|
+
},
|
173
|
+
"attribute": "offset-md",
|
174
|
+
"reflect": false
|
175
|
+
},
|
176
|
+
"offsetLg": {
|
177
|
+
"type": "string",
|
178
|
+
"mutable": false,
|
179
|
+
"complexType": {
|
180
|
+
"original": "string",
|
181
|
+
"resolved": "string",
|
182
|
+
"references": {}
|
183
|
+
},
|
184
|
+
"required": false,
|
185
|
+
"optional": true,
|
186
|
+
"docs": {
|
187
|
+
"tags": [],
|
188
|
+
"text": "The amount to offset the column for lg screens, in terms of how many columns it should shift\nto the end of the total available."
|
189
|
+
},
|
190
|
+
"attribute": "offset-lg",
|
191
|
+
"reflect": false
|
192
|
+
},
|
193
|
+
"offsetXl": {
|
194
|
+
"type": "string",
|
195
|
+
"mutable": false,
|
196
|
+
"complexType": {
|
197
|
+
"original": "string",
|
198
|
+
"resolved": "string",
|
199
|
+
"references": {}
|
200
|
+
},
|
201
|
+
"required": false,
|
202
|
+
"optional": true,
|
203
|
+
"docs": {
|
204
|
+
"tags": [],
|
205
|
+
"text": "The amount to offset the column for xl screens, in terms of how many columns it should shift\nto the end of the total available."
|
206
|
+
},
|
207
|
+
"attribute": "offset-xl",
|
208
|
+
"reflect": false
|
209
|
+
},
|
210
|
+
"pull": {
|
211
|
+
"type": "string",
|
212
|
+
"mutable": false,
|
213
|
+
"complexType": {
|
214
|
+
"original": "string",
|
215
|
+
"resolved": "string",
|
216
|
+
"references": {}
|
217
|
+
},
|
218
|
+
"required": false,
|
219
|
+
"optional": true,
|
220
|
+
"docs": {
|
221
|
+
"tags": [],
|
222
|
+
"text": "The amount to pull the column, in terms of how many columns it should shift to the start of\nthe total available."
|
223
|
+
},
|
224
|
+
"attribute": "pull",
|
225
|
+
"reflect": false
|
226
|
+
},
|
227
|
+
"pullXs": {
|
228
|
+
"type": "string",
|
229
|
+
"mutable": false,
|
230
|
+
"complexType": {
|
231
|
+
"original": "string",
|
232
|
+
"resolved": "string",
|
233
|
+
"references": {}
|
234
|
+
},
|
235
|
+
"required": false,
|
236
|
+
"optional": true,
|
237
|
+
"docs": {
|
238
|
+
"tags": [],
|
239
|
+
"text": "The amount to pull the column for xs screens, in terms of how many columns it should shift\nto the start of the total available."
|
240
|
+
},
|
241
|
+
"attribute": "pull-xs",
|
242
|
+
"reflect": false
|
243
|
+
},
|
244
|
+
"pullSm": {
|
245
|
+
"type": "string",
|
246
|
+
"mutable": false,
|
247
|
+
"complexType": {
|
248
|
+
"original": "string",
|
249
|
+
"resolved": "string",
|
250
|
+
"references": {}
|
251
|
+
},
|
252
|
+
"required": false,
|
253
|
+
"optional": true,
|
254
|
+
"docs": {
|
255
|
+
"tags": [],
|
256
|
+
"text": "The amount to pull the column for sm screens, in terms of how many columns it should shift\nto the start of the total available."
|
257
|
+
},
|
258
|
+
"attribute": "pull-sm",
|
259
|
+
"reflect": false
|
260
|
+
},
|
261
|
+
"pullMd": {
|
262
|
+
"type": "string",
|
263
|
+
"mutable": false,
|
264
|
+
"complexType": {
|
265
|
+
"original": "string",
|
266
|
+
"resolved": "string",
|
267
|
+
"references": {}
|
268
|
+
},
|
269
|
+
"required": false,
|
270
|
+
"optional": true,
|
271
|
+
"docs": {
|
272
|
+
"tags": [],
|
273
|
+
"text": "The amount to pull the column for md screens, in terms of how many columns it should shift\nto the start of the total available."
|
274
|
+
},
|
275
|
+
"attribute": "pull-md",
|
276
|
+
"reflect": false
|
277
|
+
},
|
278
|
+
"pullLg": {
|
279
|
+
"type": "string",
|
280
|
+
"mutable": false,
|
281
|
+
"complexType": {
|
282
|
+
"original": "string",
|
283
|
+
"resolved": "string",
|
284
|
+
"references": {}
|
285
|
+
},
|
286
|
+
"required": false,
|
287
|
+
"optional": true,
|
288
|
+
"docs": {
|
289
|
+
"tags": [],
|
290
|
+
"text": "The amount to pull the column for lg screens, in terms of how many columns it should shift\nto the start of the total available."
|
291
|
+
},
|
292
|
+
"attribute": "pull-lg",
|
293
|
+
"reflect": false
|
294
|
+
},
|
295
|
+
"pullXl": {
|
296
|
+
"type": "string",
|
297
|
+
"mutable": false,
|
298
|
+
"complexType": {
|
299
|
+
"original": "string",
|
300
|
+
"resolved": "string",
|
301
|
+
"references": {}
|
302
|
+
},
|
303
|
+
"required": false,
|
304
|
+
"optional": true,
|
305
|
+
"docs": {
|
306
|
+
"tags": [],
|
307
|
+
"text": "The amount to pull the column for xl screens, in terms of how many columns it should shift\nto the start of the total available."
|
308
|
+
},
|
309
|
+
"attribute": "pull-xl",
|
310
|
+
"reflect": false
|
311
|
+
},
|
312
|
+
"push": {
|
313
|
+
"type": "string",
|
314
|
+
"mutable": false,
|
315
|
+
"complexType": {
|
316
|
+
"original": "string",
|
317
|
+
"resolved": "string",
|
318
|
+
"references": {}
|
319
|
+
},
|
320
|
+
"required": false,
|
321
|
+
"optional": true,
|
322
|
+
"docs": {
|
323
|
+
"tags": [],
|
324
|
+
"text": "The amount to push the column, in terms of how many columns it should shift to the end\nof the total available."
|
325
|
+
},
|
326
|
+
"attribute": "push",
|
327
|
+
"reflect": false
|
328
|
+
},
|
329
|
+
"pushXs": {
|
330
|
+
"type": "string",
|
331
|
+
"mutable": false,
|
332
|
+
"complexType": {
|
333
|
+
"original": "string",
|
334
|
+
"resolved": "string",
|
335
|
+
"references": {}
|
336
|
+
},
|
337
|
+
"required": false,
|
338
|
+
"optional": true,
|
339
|
+
"docs": {
|
340
|
+
"tags": [],
|
341
|
+
"text": "The amount to push the column for xs screens, in terms of how many columns it should shift\nto the end of the total available."
|
342
|
+
},
|
343
|
+
"attribute": "push-xs",
|
344
|
+
"reflect": false
|
345
|
+
},
|
346
|
+
"pushSm": {
|
347
|
+
"type": "string",
|
348
|
+
"mutable": false,
|
349
|
+
"complexType": {
|
350
|
+
"original": "string",
|
351
|
+
"resolved": "string",
|
352
|
+
"references": {}
|
353
|
+
},
|
354
|
+
"required": false,
|
355
|
+
"optional": true,
|
356
|
+
"docs": {
|
357
|
+
"tags": [],
|
358
|
+
"text": "The amount to push the column for sm screens, in terms of how many columns it should shift\nto the end of the total available."
|
359
|
+
},
|
360
|
+
"attribute": "push-sm",
|
361
|
+
"reflect": false
|
362
|
+
},
|
363
|
+
"pushMd": {
|
364
|
+
"type": "string",
|
365
|
+
"mutable": false,
|
366
|
+
"complexType": {
|
367
|
+
"original": "string",
|
368
|
+
"resolved": "string",
|
369
|
+
"references": {}
|
370
|
+
},
|
371
|
+
"required": false,
|
372
|
+
"optional": true,
|
373
|
+
"docs": {
|
374
|
+
"tags": [],
|
375
|
+
"text": "The amount to push the column for md screens, in terms of how many columns it should shift\nto the end of the total available."
|
376
|
+
},
|
377
|
+
"attribute": "push-md",
|
378
|
+
"reflect": false
|
379
|
+
},
|
380
|
+
"pushLg": {
|
381
|
+
"type": "string",
|
382
|
+
"mutable": false,
|
383
|
+
"complexType": {
|
384
|
+
"original": "string",
|
385
|
+
"resolved": "string",
|
386
|
+
"references": {}
|
387
|
+
},
|
388
|
+
"required": false,
|
389
|
+
"optional": true,
|
390
|
+
"docs": {
|
391
|
+
"tags": [],
|
392
|
+
"text": "The amount to push the column for lg screens, in terms of how many columns it should shift\nto the end of the total available."
|
393
|
+
},
|
394
|
+
"attribute": "push-lg",
|
395
|
+
"reflect": false
|
396
|
+
},
|
397
|
+
"pushXl": {
|
398
|
+
"type": "string",
|
399
|
+
"mutable": false,
|
400
|
+
"complexType": {
|
401
|
+
"original": "string",
|
402
|
+
"resolved": "string",
|
403
|
+
"references": {}
|
404
|
+
},
|
405
|
+
"required": false,
|
406
|
+
"optional": true,
|
407
|
+
"docs": {
|
408
|
+
"tags": [],
|
409
|
+
"text": "The amount to push the column for xl screens, in terms of how many columns it should shift\nto the end of the total available."
|
410
|
+
},
|
411
|
+
"attribute": "push-xl",
|
412
|
+
"reflect": false
|
413
|
+
},
|
414
|
+
"size": {
|
415
|
+
"type": "string",
|
416
|
+
"mutable": false,
|
417
|
+
"complexType": {
|
418
|
+
"original": "string",
|
419
|
+
"resolved": "string",
|
420
|
+
"references": {}
|
421
|
+
},
|
422
|
+
"required": false,
|
423
|
+
"optional": true,
|
424
|
+
"docs": {
|
425
|
+
"tags": [],
|
426
|
+
"text": "The size of the column, in terms of how many columns it should take up out of the total\navailable. If `\"auto\"` is passed, the column will be the size of its content."
|
427
|
+
},
|
428
|
+
"attribute": "size",
|
429
|
+
"reflect": false
|
430
|
+
},
|
431
|
+
"sizeXs": {
|
432
|
+
"type": "string",
|
433
|
+
"mutable": false,
|
434
|
+
"complexType": {
|
435
|
+
"original": "string",
|
436
|
+
"resolved": "string",
|
437
|
+
"references": {}
|
438
|
+
},
|
439
|
+
"required": false,
|
440
|
+
"optional": true,
|
441
|
+
"docs": {
|
442
|
+
"tags": [],
|
443
|
+
"text": "The size of the column for xs screens, in terms of how many columns it should take up out\nof the total available. If `\"auto\"` is passed, the column will be the size of its content."
|
444
|
+
},
|
445
|
+
"attribute": "size-xs",
|
446
|
+
"reflect": false
|
447
|
+
},
|
448
|
+
"sizeSm": {
|
449
|
+
"type": "string",
|
450
|
+
"mutable": false,
|
451
|
+
"complexType": {
|
452
|
+
"original": "string",
|
453
|
+
"resolved": "string",
|
454
|
+
"references": {}
|
455
|
+
},
|
456
|
+
"required": false,
|
457
|
+
"optional": true,
|
458
|
+
"docs": {
|
459
|
+
"tags": [],
|
460
|
+
"text": "The size of the column for sm screens, in terms of how many columns it should take up out\nof the total available. If `\"auto\"` is passed, the column will be the size of its content."
|
461
|
+
},
|
462
|
+
"attribute": "size-sm",
|
463
|
+
"reflect": false
|
464
|
+
},
|
465
|
+
"sizeMd": {
|
466
|
+
"type": "string",
|
467
|
+
"mutable": false,
|
468
|
+
"complexType": {
|
469
|
+
"original": "string",
|
470
|
+
"resolved": "string",
|
471
|
+
"references": {}
|
472
|
+
},
|
473
|
+
"required": false,
|
474
|
+
"optional": true,
|
475
|
+
"docs": {
|
476
|
+
"tags": [],
|
477
|
+
"text": "The size of the column for md screens, in terms of how many columns it should take up out\nof the total available. If `\"auto\"` is passed, the column will be the size of its content."
|
478
|
+
},
|
479
|
+
"attribute": "size-md",
|
480
|
+
"reflect": false
|
481
|
+
},
|
482
|
+
"sizeLg": {
|
483
|
+
"type": "string",
|
484
|
+
"mutable": false,
|
485
|
+
"complexType": {
|
486
|
+
"original": "string",
|
487
|
+
"resolved": "string",
|
488
|
+
"references": {}
|
489
|
+
},
|
490
|
+
"required": false,
|
491
|
+
"optional": true,
|
492
|
+
"docs": {
|
493
|
+
"tags": [],
|
494
|
+
"text": "The size of the column for lg screens, in terms of how many columns it should take up out\nof the total available. If `\"auto\"` is passed, the column will be the size of its content."
|
495
|
+
},
|
496
|
+
"attribute": "size-lg",
|
497
|
+
"reflect": false
|
498
|
+
},
|
499
|
+
"sizeXl": {
|
500
|
+
"type": "string",
|
501
|
+
"mutable": false,
|
502
|
+
"complexType": {
|
503
|
+
"original": "string",
|
504
|
+
"resolved": "string",
|
505
|
+
"references": {}
|
506
|
+
},
|
507
|
+
"required": false,
|
508
|
+
"optional": true,
|
509
|
+
"docs": {
|
510
|
+
"tags": [],
|
511
|
+
"text": "The size of the column for xl screens, in terms of how many columns it should take up out\nof the total available. If `\"auto\"` is passed, the column will be the size of its content."
|
512
|
+
},
|
513
|
+
"attribute": "size-xl",
|
514
|
+
"reflect": false
|
515
|
+
}
|
516
|
+
};
|
517
|
+
}
|
518
|
+
static get listeners() {
|
519
|
+
return [{
|
520
|
+
"name": "resize",
|
521
|
+
"method": "onResize",
|
522
|
+
"target": "window",
|
523
|
+
"capture": false,
|
524
|
+
"passive": true
|
525
|
+
}];
|
526
|
+
}
|
527
|
+
}
|
528
|
+
//# sourceMappingURL=cpsl-col.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cpsl-col.js","sourceRoot":"","sources":["../../../../src/components/cpsl-col/cpsl-col.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Host, Listen, Prop, forceUpdate, h } from '@stencil/core';\nimport { matchBreakpoint } from '../../utils/media';\n\nconst win = typeof (window as any) !== 'undefined' ? (window as any) : undefined;\nconst SUPPORTS_VARS = win && !!(win.CSS && win.CSS.supports && win.CSS.supports('--a: 0'));\nconst BREAKPOINTS = ['', 'xs', 'sm', 'md', 'lg', 'xl'];\n\n@Component({\n tag: 'cpsl-col',\n styleUrl: 'cpsl-col.scss',\n shadow: true,\n})\nexport class CpslCol {\n /**\n * The amount to offset the column, in terms of how many columns it should shift to the end\n * of the total available.\n */\n @Prop() offset?: string;\n\n /**\n * The amount to offset the column for xs screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() offsetXs?: string;\n\n /**\n * The amount to offset the column for sm screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() offsetSm?: string;\n\n /**\n * The amount to offset the column for md screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() offsetMd?: string;\n\n /**\n * The amount to offset the column for lg screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() offsetLg?: string;\n\n /**\n * The amount to offset the column for xl screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() offsetXl?: string;\n\n /**\n * The amount to pull the column, in terms of how many columns it should shift to the start of\n * the total available.\n */\n @Prop() pull?: string;\n\n /**\n * The amount to pull the column for xs screens, in terms of how many columns it should shift\n * to the start of the total available.\n */\n @Prop() pullXs?: string;\n /**\n * The amount to pull the column for sm screens, in terms of how many columns it should shift\n * to the start of the total available.\n */\n @Prop() pullSm?: string;\n /**\n * The amount to pull the column for md screens, in terms of how many columns it should shift\n * to the start of the total available.\n */\n @Prop() pullMd?: string;\n /**\n * The amount to pull the column for lg screens, in terms of how many columns it should shift\n * to the start of the total available.\n */\n @Prop() pullLg?: string;\n /**\n * The amount to pull the column for xl screens, in terms of how many columns it should shift\n * to the start of the total available.\n */\n @Prop() pullXl?: string;\n\n /**\n * The amount to push the column, in terms of how many columns it should shift to the end\n * of the total available.\n */\n @Prop() push?: string;\n\n /**\n * The amount to push the column for xs screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() pushXs?: string;\n\n /**\n * The amount to push the column for sm screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() pushSm?: string;\n\n /**\n * The amount to push the column for md screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() pushMd?: string;\n\n /**\n * The amount to push the column for lg screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() pushLg?: string;\n\n /**\n * The amount to push the column for xl screens, in terms of how many columns it should shift\n * to the end of the total available.\n */\n @Prop() pushXl?: string;\n\n /**\n * The size of the column, in terms of how many columns it should take up out of the total\n * available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() size?: string;\n\n /**\n * The size of the column for xs screens, in terms of how many columns it should take up out\n * of the total available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() sizeXs?: string;\n\n /**\n * The size of the column for sm screens, in terms of how many columns it should take up out\n * of the total available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() sizeSm?: string;\n\n /**\n * The size of the column for md screens, in terms of how many columns it should take up out\n * of the total available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() sizeMd?: string;\n\n /**\n * The size of the column for lg screens, in terms of how many columns it should take up out\n * of the total available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() sizeLg?: string;\n\n /**\n * The size of the column for xl screens, in terms of how many columns it should take up out\n * of the total available. If `\"auto\"` is passed, the column will be the size of its content.\n */\n @Prop() sizeXl?: string;\n\n @Listen('resize', { target: 'window' })\n onResize() {\n forceUpdate(this);\n }\n\n // Loop through all of the breakpoints to see if the media query\n // matches and grab the column value from the relevant prop if so\n private getColumns(property: string) {\n let matched;\n\n for (const breakpoint of BREAKPOINTS) {\n const matches = matchBreakpoint(breakpoint);\n\n // Grab the value of the property, if it exists and our\n // media query matches we return the value\n const columns = (this as any)[property + breakpoint.charAt(0).toUpperCase() + breakpoint.slice(1)];\n\n if (matches && columns !== undefined) {\n matched = columns;\n }\n }\n\n // Return the last matched columns since the breakpoints\n // increase in size and we want to return the largest match\n return matched;\n }\n\n private calculateSize() {\n const columns = this.getColumns('size');\n\n // If size wasn't set for any breakpoint\n // or if the user set the size without a value\n // it means we need to stick with the default and return\n // e.g. <ion-col size-md>\n if (!columns || columns === '') {\n return;\n }\n\n // If the size is set to auto then don't calculate a size\n const colSize =\n columns === 'auto'\n ? 'auto'\n : // If CSS supports variables we should use the grid columns var\n SUPPORTS_VARS\n ? `calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`\n : // Convert the columns to a percentage by dividing by the total number\n // of columns (12) and then multiplying by 100\n (columns / 12) * 100 + '%';\n\n return {\n 'flex': `0 0 ${colSize}`,\n 'width': `${colSize}`,\n 'max-width': `${colSize}`,\n };\n }\n\n // Called by push, pull, and offset since they use the same calculations\n private calculatePosition(property: string, modifier: string) {\n const columns = this.getColumns(property);\n\n if (!columns) {\n return;\n }\n\n // If the number of columns passed are greater than 0 and less than\n // 12 we can position the column, else default to auto\n const amount = SUPPORTS_VARS\n ? // If CSS supports variables we should use the grid columns var\n `calc(calc(${columns} / var(--ion-grid-columns, 12)) * 100%)`\n : // Convert the columns to a percentage by dividing by the total number\n // of columns (12) and then multiplying by 100\n columns > 0 && columns < 12\n ? (columns / 12) * 100 + '%'\n : 'auto';\n\n return {\n [modifier]: amount,\n };\n }\n\n private calculateOffset(isRTL: boolean) {\n return this.calculatePosition('offset', isRTL ? 'margin-right' : 'margin-left');\n }\n\n private calculatePull(isRTL: boolean) {\n return this.calculatePosition('pull', isRTL ? 'left' : 'right');\n }\n\n private calculatePush(isRTL: boolean) {\n return this.calculatePosition('push', isRTL ? 'right' : 'left');\n }\n\n render() {\n const isRTL = document.dir === 'rtl';\n return (\n <Host\n style={{\n ...this.calculateOffset(isRTL),\n ...this.calculatePull(isRTL),\n ...this.calculatePush(isRTL),\n ...this.calculateSize(),\n }}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"]}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try {
|
5
|
+
step(generator.next(value));
|
6
|
+
}
|
7
|
+
catch (e) {
|
8
|
+
reject(e);
|
9
|
+
} }
|
10
|
+
function rejected(value) { try {
|
11
|
+
step(generator["throw"](value));
|
12
|
+
}
|
13
|
+
catch (e) {
|
14
|
+
reject(e);
|
15
|
+
} }
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
18
|
+
});
|
19
|
+
};
|
20
|
+
import { newE2EPage } from "@stencil/core/testing";
|
21
|
+
describe('cpsl-col', () => {
|
22
|
+
it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
|
23
|
+
const page = yield newE2EPage();
|
24
|
+
yield page.setContent('<cpsl-col></cpsl-col>');
|
25
|
+
const element = yield page.find('cpsl-col');
|
26
|
+
expect(element).toHaveClass('hydrated');
|
27
|
+
}));
|
28
|
+
});
|
29
|
+
//# sourceMappingURL=cpsl-col.e2e.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cpsl-col.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-col/test/cpsl-col.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;QAE/C,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC5C,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('cpsl-col', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-col></cpsl-col>');\n\n const element = await page.find('cpsl-col');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
4
|
+
function fulfilled(value) { try {
|
5
|
+
step(generator.next(value));
|
6
|
+
}
|
7
|
+
catch (e) {
|
8
|
+
reject(e);
|
9
|
+
} }
|
10
|
+
function rejected(value) { try {
|
11
|
+
step(generator["throw"](value));
|
12
|
+
}
|
13
|
+
catch (e) {
|
14
|
+
reject(e);
|
15
|
+
} }
|
16
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
17
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
18
|
+
});
|
19
|
+
};
|
20
|
+
import { newSpecPage } from "@stencil/core/testing";
|
21
|
+
import { CpslCol } from "../cpsl-col";
|
22
|
+
describe('cpsl-col', () => {
|
23
|
+
it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
|
24
|
+
const page = yield newSpecPage({
|
25
|
+
components: [CpslCol],
|
26
|
+
html: `<cpsl-col></cpsl-col>`,
|
27
|
+
});
|
28
|
+
expect(page.root).toEqualHtml(`
|
29
|
+
<cpsl-col>
|
30
|
+
<mock:shadow-root>
|
31
|
+
<slot></slot>
|
32
|
+
</mock:shadow-root>
|
33
|
+
</cpsl-col>
|
34
|
+
`);
|
35
|
+
}));
|
36
|
+
});
|
37
|
+
//# sourceMappingURL=cpsl-col.spec.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cpsl-col.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-col/test/cpsl-col.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,OAAO,CAAC;YACrB,IAAI,EAAE,uBAAuB;SAC9B,CAAC,CAAC;QACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAM7B,CAAC,CAAC;IACL,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { CpslCol } from '../cpsl-col';\n\ndescribe('cpsl-col', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslCol],\n html: `<cpsl-col></cpsl-col>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-col>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-col>\n `);\n });\n});\n"]}
|