@usecapsule/core-components 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/capsule/_commonjsHelpers-bc8ff177.js +36 -0
- package/dist/capsule/_commonjsHelpers-bc8ff177.js.map +1 -0
- package/dist/capsule/capsule.esm.js +52 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/cpsl-alert.entry.js +31 -0
- package/dist/capsule/cpsl-alert.entry.js.map +1 -0
- package/dist/{esm → capsule}/cpsl-animation.entry.js +114 -20
- package/dist/capsule/cpsl-animation.entry.js.map +1 -0
- package/dist/capsule/cpsl-button.entry.js +24 -0
- package/dist/capsule/cpsl-button.entry.js.map +1 -0
- package/dist/capsule/cpsl-code-input.entry.js +106 -0
- package/dist/capsule/cpsl-code-input.entry.js.map +1 -0
- package/dist/{esm → capsule}/cpsl-col.entry.js +3 -4
- package/dist/capsule/cpsl-col.entry.js.map +1 -0
- package/dist/capsule/cpsl-divider.entry.js +17 -0
- package/dist/capsule/cpsl-divider.entry.js.map +1 -0
- package/dist/{esm → capsule}/cpsl-grid.entry.js +4 -5
- package/dist/capsule/cpsl-grid.entry.js.map +1 -0
- package/dist/capsule/cpsl-icon.entry.js +20 -0
- package/dist/capsule/cpsl-icon.entry.js.map +1 -0
- package/dist/{esm → capsule}/cpsl-info-box.entry.js +3 -4
- package/dist/capsule/cpsl-info-box.entry.js.map +1 -0
- package/dist/capsule/cpsl-input.entry.js +124 -0
- package/dist/capsule/cpsl-input.entry.js.map +1 -0
- package/dist/capsule/cpsl-modal.entry.js +3338 -0
- package/dist/capsule/cpsl-modal.entry.js.map +1 -0
- package/dist/capsule/cpsl-overlay.entry.js +44 -0
- package/dist/capsule/cpsl-overlay.entry.js.map +1 -0
- package/dist/capsule/cpsl-pill.entry.js +18 -0
- package/dist/capsule/cpsl-pill.entry.js.map +1 -0
- package/dist/capsule/cpsl-progress-indicator.entry.js +29 -0
- package/dist/capsule/cpsl-progress-indicator.entry.js.map +1 -0
- package/dist/capsule/cpsl-qr-code.entry.js +56 -0
- package/dist/capsule/cpsl-qr-code.entry.js.map +1 -0
- package/dist/capsule/cpsl-row.entry.js +17 -0
- package/dist/capsule/cpsl-row.entry.js.map +1 -0
- package/dist/capsule/cpsl-slide-button.entry.js +130 -0
- package/dist/capsule/cpsl-slide-button.entry.js.map +1 -0
- package/dist/capsule/cpsl-spinner.entry.js +25 -0
- package/dist/capsule/cpsl-spinner.entry.js.map +1 -0
- package/dist/capsule/cpsl-tab.entry.js +37 -0
- package/dist/capsule/cpsl-tab.entry.js.map +1 -0
- package/dist/capsule/cpsl-tabs.entry.js +71 -0
- package/dist/capsule/cpsl-tabs.entry.js.map +1 -0
- package/dist/capsule/cpsl-text.entry.js +66 -0
- package/dist/capsule/cpsl-text.entry.js.map +1 -0
- package/dist/capsule/cpsl-tile-button.entry.js +19 -0
- package/dist/capsule/cpsl-tile-button.entry.js.map +1 -0
- package/dist/capsule/index-3ac1b9e9.js +617 -0
- package/dist/capsule/index-3ac1b9e9.js.map +1 -0
- package/dist/capsule/index-3ad00c7e.js +6064 -0
- package/dist/capsule/index-3ad00c7e.js.map +1 -0
- package/dist/capsule/index-f19e63df.js +4148 -0
- package/dist/capsule/index-f19e63df.js.map +1 -0
- package/dist/capsule/index.esm.js +572 -1
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/shadow-css-bc9e2af8.js +478 -0
- package/dist/capsule/shadow-css-bc9e2af8.js.map +1 -0
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +4 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/interface.d.ts +15 -0
- package/dist/types/utils/theme/generateFont.d.ts +1 -1
- package/dist/types/utils/theme/generateTheme.d.ts +1 -2
- package/package.json +2 -2
- package/dist/capsule/p-0462f723.js +0 -2
- package/dist/capsule/p-0462f723.js.map +0 -1
- package/dist/capsule/p-654cb899.entry.js +0 -29
- package/dist/capsule/p-654cb899.entry.js.map +0 -1
- package/dist/capsule/p-68c73705.entry.js +0 -2
- package/dist/capsule/p-68c73705.entry.js.map +0 -1
- package/dist/capsule/p-6fb7c4d1.js +0 -3
- package/dist/capsule/p-6fb7c4d1.js.map +0 -1
- package/dist/capsule/p-91412151.entry.js +0 -2
- package/dist/capsule/p-91412151.entry.js.map +0 -1
- package/dist/capsule/p-a95ec4df.entry.js +0 -2
- package/dist/capsule/p-a95ec4df.entry.js.map +0 -1
- package/dist/capsule/p-c2bf050b.js +0 -2
- package/dist/capsule/p-c2bf050b.js.map +0 -1
- package/dist/capsule/p-d7be092d.entry.js +0 -10
- package/dist/capsule/p-d7be092d.entry.js.map +0 -1
- package/dist/capsule/p-e1255160.js +0 -2
- package/dist/capsule/p-e1255160.js.map +0 -1
- package/dist/capsule/p-f604b591.entry.js +0 -2
- package/dist/capsule/p-f604b591.entry.js.map +0 -1
- package/dist/cjs/_commonjsHelpers-b3309d7b.js +0 -12
- package/dist/cjs/_commonjsHelpers-b3309d7b.js.map +0 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -7
- package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
- package/dist/cjs/capsule.cjs.js +0 -27
- package/dist/cjs/capsule.cjs.js.map +0 -1
- package/dist/cjs/constants-4bb85cc5.js +0 -12
- package/dist/cjs/constants-4bb85cc5.js.map +0 -1
- package/dist/cjs/cpsl-alert_17.cjs.entry.js +0 -10711
- package/dist/cjs/cpsl-alert_17.cjs.entry.js.map +0 -1
- package/dist/cjs/cpsl-animation.cjs.entry.js +0 -20129
- package/dist/cjs/cpsl-animation.cjs.entry.js.map +0 -1
- package/dist/cjs/cpsl-col.cjs.entry.js +0 -125
- package/dist/cjs/cpsl-col.cjs.entry.js.map +0 -1
- package/dist/cjs/cpsl-grid.cjs.entry.js +0 -25
- package/dist/cjs/cpsl-grid.cjs.entry.js.map +0 -1
- package/dist/cjs/cpsl-info-box.cjs.entry.js +0 -22
- package/dist/cjs/cpsl-info-box.cjs.entry.js.map +0 -1
- package/dist/cjs/cpsl-row.cjs.entry.js +0 -22
- package/dist/cjs/cpsl-row.cjs.entry.js.map +0 -1
- package/dist/cjs/index-3fccb5b4.js +0 -2012
- package/dist/cjs/index-3fccb5b4.js.map +0 -1
- package/dist/cjs/index.cjs.js +0 -342
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js +0 -17
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/collection/assets/icons/alert-circle.svg +0 -3
- package/dist/collection/assets/icons/angel-list-brand.svg +0 -3
- package/dist/collection/assets/icons/angel-list.svg +0 -3
- package/dist/collection/assets/icons/apple-brand.svg +0 -3
- package/dist/collection/assets/icons/apple.svg +0 -3
- package/dist/collection/assets/icons/arrow-narrow.svg +0 -3
- package/dist/collection/assets/icons/arrow.svg +0 -3
- package/dist/collection/assets/icons/backup-kit.svg +0 -4
- package/dist/collection/assets/icons/capsule-logo.svg +0 -18
- package/dist/collection/assets/icons/capsule-rings-dark.svg +0 -34
- package/dist/collection/assets/icons/capsule-rings.svg +0 -34
- package/dist/collection/assets/icons/capsule.svg +0 -4
- package/dist/collection/assets/icons/check.svg +0 -3
- package/dist/collection/assets/icons/clock.svg +0 -3
- package/dist/collection/assets/icons/close.svg +0 -4
- package/dist/collection/assets/icons/clubhouse-brand.svg +0 -4
- package/dist/collection/assets/icons/clubhouse.svg +0 -4
- package/dist/collection/assets/icons/copy.svg +0 -3
- package/dist/collection/assets/icons/discord-brand.svg +0 -4
- package/dist/collection/assets/icons/discord.svg +0 -4
- package/dist/collection/assets/icons/download-cloud.svg +0 -3
- package/dist/collection/assets/icons/dribbble-brand.svg +0 -4
- package/dist/collection/assets/icons/dribbble.svg +0 -3
- package/dist/collection/assets/icons/eye-off.svg +0 -3
- package/dist/collection/assets/icons/eye.svg +0 -4
- package/dist/collection/assets/icons/facebook-brand.svg +0 -11
- package/dist/collection/assets/icons/facebook.svg +0 -10
- package/dist/collection/assets/icons/figma-brand.svg +0 -14
- package/dist/collection/assets/icons/figma.svg +0 -3
- package/dist/collection/assets/icons/github-brand.svg +0 -10
- package/dist/collection/assets/icons/github.svg +0 -10
- package/dist/collection/assets/icons/google-brand.svg +0 -13
- package/dist/collection/assets/icons/google.svg +0 -10
- package/dist/collection/assets/icons/help-circle.svg +0 -3
- package/dist/collection/assets/icons/hero-email.svg +0 -12
- package/dist/collection/assets/icons/hero-lock.svg +0 -4
- package/dist/collection/assets/icons/hero-passkey.svg +0 -12
- package/dist/collection/assets/icons/hero-phone.svg +0 -4
- package/dist/collection/assets/icons/hero-wallet.svg +0 -5
- package/dist/collection/assets/icons/index.js +0 -70
- package/dist/collection/assets/icons/index.js.map +0 -1
- package/dist/collection/assets/icons/info-circle.svg +0 -3
- package/dist/collection/assets/icons/instagram-brand.svg +0 -12
- package/dist/collection/assets/icons/instagram.svg +0 -12
- package/dist/collection/assets/icons/key.svg +0 -3
- package/dist/collection/assets/icons/linkedin-brand.svg +0 -10
- package/dist/collection/assets/icons/linkedin.svg +0 -10
- package/dist/collection/assets/icons/mail.svg +0 -3
- package/dist/collection/assets/icons/more-login-options.svg +0 -13
- package/dist/collection/assets/icons/phone.svg +0 -3
- package/dist/collection/assets/icons/pintrest-brand.svg +0 -11
- package/dist/collection/assets/icons/pintrest.svg +0 -10
- package/dist/collection/assets/icons/plus-circle.svg +0 -5
- package/dist/collection/assets/icons/reddit-brand.svg +0 -11
- package/dist/collection/assets/icons/reddit.svg +0 -3
- package/dist/collection/assets/icons/signal-brand.svg +0 -3
- package/dist/collection/assets/icons/signal.svg +0 -3
- package/dist/collection/assets/icons/snapchat-brand.svg +0 -4
- package/dist/collection/assets/icons/snapchat.svg +0 -3
- package/dist/collection/assets/icons/telegram-brand.svg +0 -15
- package/dist/collection/assets/icons/telegram.svg +0 -10
- package/dist/collection/assets/icons/tik-tok-brand.svg +0 -5
- package/dist/collection/assets/icons/tik-tok.svg +0 -3
- package/dist/collection/assets/icons/tumblr-brand.svg +0 -10
- package/dist/collection/assets/icons/tumblr.svg +0 -10
- package/dist/collection/assets/icons/twitter-brand.svg +0 -3
- package/dist/collection/assets/icons/twitter.svg +0 -3
- package/dist/collection/assets/icons/wallet.svg +0 -5
- package/dist/collection/assets/icons/youtube-brand.svg +0 -11
- package/dist/collection/assets/icons/youtube.svg +0 -3
- package/dist/collection/collection-manifest.json +0 -33
- package/dist/collection/components/cpsl-alert/cpsl-alert.css +0 -98
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +0 -80
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +0 -1
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js +0 -29
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js +0 -37
- package/dist/collection/components/cpsl-alert/test/cpsl-alert.spec.js.map +0 -1
- package/dist/collection/components/cpsl-animation/cpsl-animation.css +0 -17
- package/dist/collection/components/cpsl-animation/cpsl-animation.js +0 -102
- package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +0 -1
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js +0 -29
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js +0 -37
- package/dist/collection/components/cpsl-animation/test/cpsl-animation.spec.js.map +0 -1
- package/dist/collection/components/cpsl-button/cpsl-button.css +0 -162
- package/dist/collection/components/cpsl-button/cpsl-button.js +0 -68
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +0 -1
- package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js +0 -29
- package/dist/collection/components/cpsl-button/test/cpsl-button.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js +0 -37
- package/dist/collection/components/cpsl-button/test/cpsl-button.spec.js.map +0 -1
- package/dist/collection/components/cpsl-code-input/code-change-interface.js +0 -2
- package/dist/collection/components/cpsl-code-input/code-change-interface.js.map +0 -1
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.css +0 -134
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +0 -223
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +0 -1
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js +0 -29
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js +0 -37
- package/dist/collection/components/cpsl-code-input/test/cpsl-code-input.spec.js.map +0 -1
- package/dist/collection/components/cpsl-col/cpsl-col.css +0 -200
- package/dist/collection/components/cpsl-col/cpsl-col.js +0 -528
- package/dist/collection/components/cpsl-col/cpsl-col.js.map +0 -1
- package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js +0 -29
- package/dist/collection/components/cpsl-col/test/cpsl-col.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js +0 -37
- package/dist/collection/components/cpsl-col/test/cpsl-col.spec.js.map +0 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.css +0 -73
- package/dist/collection/components/cpsl-divider/cpsl-divider.js +0 -19
- package/dist/collection/components/cpsl-divider/cpsl-divider.js.map +0 -1
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js +0 -29
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js +0 -37
- package/dist/collection/components/cpsl-divider/test/cpsl-divider.spec.js.map +0 -1
- package/dist/collection/components/cpsl-grid/cpsl-grid.css +0 -235
- package/dist/collection/components/cpsl-grid/cpsl-grid.js +0 -46
- package/dist/collection/components/cpsl-grid/cpsl-grid.js.map +0 -1
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js +0 -29
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js +0 -37
- package/dist/collection/components/cpsl-grid/test/cpsl-grid.spec.js.map +0 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.css +0 -95
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +0 -68
- package/dist/collection/components/cpsl-icon/cpsl-icon.js.map +0 -1
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js +0 -29
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js +0 -37
- package/dist/collection/components/cpsl-icon/test/cpsl-icon.spec.js.map +0 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.css +0 -77
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +0 -19
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js.map +0 -1
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js +0 -29
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js +0 -37
- package/dist/collection/components/cpsl-info-box/test/cpsl-info-box.spec.js.map +0 -1
- package/dist/collection/components/cpsl-input/cpsl-input.css +0 -194
- package/dist/collection/components/cpsl-input/cpsl-input.js +0 -708
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +0 -1
- package/dist/collection/components/cpsl-input/input-interface.js +0 -2
- package/dist/collection/components/cpsl-input/input-interface.js.map +0 -1
- package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js +0 -29
- package/dist/collection/components/cpsl-input/test/cpsl-input.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js +0 -37
- package/dist/collection/components/cpsl-input/test/cpsl-input.spec.js.map +0 -1
- package/dist/collection/components/cpsl-modal/cpsl-modal.css +0 -172
- package/dist/collection/components/cpsl-modal/cpsl-modal.js +0 -430
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +0 -1
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js +0 -29
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js +0 -37
- package/dist/collection/components/cpsl-modal/test/cpsl-modal.spec.js.map +0 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.css +0 -11
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +0 -108
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +0 -1
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js +0 -29
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js +0 -37
- package/dist/collection/components/cpsl-overlay/test/cpsl-overlay.spec.js.map +0 -1
- package/dist/collection/components/cpsl-pill/cpsl-pill.css +0 -92
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +0 -43
- package/dist/collection/components/cpsl-pill/cpsl-pill.js.map +0 -1
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js +0 -29
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js +0 -37
- package/dist/collection/components/cpsl-pill/test/cpsl-pill.spec.js.map +0 -1
- package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.css +0 -82
- package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js +0 -71
- package/dist/collection/components/cpsl-progress-indicator/cpsl-progress-indicator.js.map +0 -1
- package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js +0 -2
- package/dist/collection/components/cpsl-progress-indicator/progress-indicator-interface.js.map +0 -1
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js +0 -29
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js +0 -37
- package/dist/collection/components/cpsl-progress-indicator/test/cpsl-progress-indicator.spec.js.map +0 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.css +0 -81
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +0 -107
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js.map +0 -1
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js +0 -29
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js +0 -37
- package/dist/collection/components/cpsl-qr-code/test/cpsl-qr-code.spec.js.map +0 -1
- package/dist/collection/components/cpsl-row/cpsl-row.css +0 -136
- package/dist/collection/components/cpsl-row/cpsl-row.js +0 -19
- package/dist/collection/components/cpsl-row/cpsl-row.js.map +0 -1
- package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js +0 -29
- package/dist/collection/components/cpsl-row/test/cpsl-row.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js +0 -37
- package/dist/collection/components/cpsl-row/test/cpsl-row.spec.js.map +0 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.css +0 -175
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +0 -252
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +0 -1
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js +0 -29
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js +0 -37
- package/dist/collection/components/cpsl-slide-button/test/cpsl-slide-button.spec.js.map +0 -1
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.css +0 -68
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +0 -69
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js.map +0 -1
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js +0 -29
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js +0 -37
- package/dist/collection/components/cpsl-spinner/test/cpsl-spinner.spec.js.map +0 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.css +0 -23
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +0 -121
- package/dist/collection/components/cpsl-tab/cpsl-tab.js.map +0 -1
- package/dist/collection/components/cpsl-tab/tab-interface.js +0 -2
- package/dist/collection/components/cpsl-tab/tab-interface.js.map +0 -1
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js +0 -29
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js +0 -37
- package/dist/collection/components/cpsl-tab/test/cpsl-tab.spec.js.map +0 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.css +0 -111
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +0 -170
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +0 -1
- package/dist/collection/components/cpsl-tabs/tabs-interface.js +0 -2
- package/dist/collection/components/cpsl-tabs/tabs-interface.js.map +0 -1
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js +0 -29
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js +0 -37
- package/dist/collection/components/cpsl-tabs/test/cpsl-tabs.spec.js.map +0 -1
- package/dist/collection/components/cpsl-text/cpsl-text.css +0 -59
- package/dist/collection/components/cpsl-text/cpsl-text.js +0 -19
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +0 -1
- package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js +0 -29
- package/dist/collection/components/cpsl-text/test/cpsl-text.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js +0 -37
- package/dist/collection/components/cpsl-text/test/cpsl-text.spec.js.map +0 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.css +0 -97
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +0 -67
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js.map +0 -1
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js +0 -29
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js +0 -37
- package/dist/collection/components/cpsl-tile-button/test/cpsl-tile-button.spec.js.map +0 -1
- package/dist/collection/constants.js +0 -6
- package/dist/collection/constants.js.map +0 -1
- package/dist/collection/index.js +0 -3
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/interface.js +0 -2
- package/dist/collection/interface.js.map +0 -1
- package/dist/collection/utils/media.js +0 -18
- package/dist/collection/utils/media.js.map +0 -1
- package/dist/collection/utils/theme/generateBorderRadii.js +0 -56
- package/dist/collection/utils/theme/generateBorderRadii.js.map +0 -1
- package/dist/collection/utils/theme/generateFont.js +0 -7
- package/dist/collection/utils/theme/generateFont.js.map +0 -1
- package/dist/collection/utils/theme/generatePalette.js +0 -46
- package/dist/collection/utils/theme/generatePalette.js.map +0 -1
- package/dist/collection/utils/theme/generateTheme.js +0 -12
- package/dist/collection/utils/theme/generateTheme.js.map +0 -1
- package/dist/collection/utils/theme/utils.js +0 -21
- package/dist/collection/utils/theme/utils.js.map +0 -1
- package/dist/esm/_commonjsHelpers-1789f0cf.js +0 -9
- package/dist/esm/_commonjsHelpers-1789f0cf.js.map +0 -1
- package/dist/esm/capsule.js +0 -22
- package/dist/esm/capsule.js.map +0 -1
- package/dist/esm/cpsl-alert_17.entry.js +0 -10691
- package/dist/esm/cpsl-alert_17.entry.js.map +0 -1
- package/dist/esm/cpsl-animation.entry.js.map +0 -1
- package/dist/esm/cpsl-col.entry.js.map +0 -1
- package/dist/esm/cpsl-grid.entry.js.map +0 -1
- package/dist/esm/cpsl-info-box.entry.js.map +0 -1
- package/dist/esm/cpsl-row.entry.js +0 -18
- package/dist/esm/cpsl-row.entry.js.map +0 -1
- package/dist/esm/index-f00e090c.js +0 -1982
- package/dist/esm/index-f00e090c.js.map +0 -1
- package/dist/esm/index.js +0 -338
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js +0 -13
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -21
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -11
- package/dist/scripts/buildIconLibrary.js +0 -33
- package/dist/scripts/buildIconLibrary.js.map +0 -1
- /package/dist/{esm → capsule}/app-globals-0f993ce5.js +0 -0
- /package/dist/{esm → capsule}/app-globals-0f993ce5.js.map +0 -0
- /package/dist/{esm → capsule}/constants-7b49abd5.js +0 -0
- /package/dist/{esm → capsule}/constants-7b49abd5.js.map +0 -0
@@ -1,223 +0,0 @@
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
2
|
-
export class CpslCodeInput {
|
3
|
-
constructor() {
|
4
|
-
this.handleInput = (ind, ev) => {
|
5
|
-
var _a;
|
6
|
-
const inputElements = this.inputs;
|
7
|
-
if (ev.inputType == 'insertText') {
|
8
|
-
if (this.type === 'number' && isNaN(parseInt(ev.data))) {
|
9
|
-
inputElements[ind].value = '';
|
10
|
-
return;
|
11
|
-
}
|
12
|
-
inputElements[Math.min(this.length - 1, ind + 1)].focus();
|
13
|
-
const newCode = `${(_a = this.code) !== null && _a !== void 0 ? _a : ''}${ev.data}`;
|
14
|
-
this.cpslInput.emit({ value: newCode });
|
15
|
-
this.code = newCode;
|
16
|
-
}
|
17
|
-
};
|
18
|
-
this.handleKeyDown = (ind, ev) => {
|
19
|
-
const inputElements = this.inputs;
|
20
|
-
switch (ev.key) {
|
21
|
-
case 'Backspace': {
|
22
|
-
let newCode;
|
23
|
-
if (!inputElements[ind].value) {
|
24
|
-
inputElements[Math.max(0, ind - 1)].value = '';
|
25
|
-
inputElements[Math.max(0, ind - 1)].focus();
|
26
|
-
newCode = this.code.substring(0, ind - 1);
|
27
|
-
}
|
28
|
-
else {
|
29
|
-
newCode = this.code.substring(0, ind);
|
30
|
-
}
|
31
|
-
this.cpslInput.emit({ value: newCode });
|
32
|
-
this.code = newCode;
|
33
|
-
break;
|
34
|
-
}
|
35
|
-
case 'ArrowLeft': {
|
36
|
-
setTimeout(() => {
|
37
|
-
this.inputs[ind].setSelectionRange(1, 1);
|
38
|
-
}, 0);
|
39
|
-
break;
|
40
|
-
}
|
41
|
-
default: {
|
42
|
-
break;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
};
|
46
|
-
this.handleFocus = (ind) => {
|
47
|
-
const inputElements = this.inputs;
|
48
|
-
for (const input of inputElements) {
|
49
|
-
if (!input.value) {
|
50
|
-
input.focus();
|
51
|
-
break;
|
52
|
-
}
|
53
|
-
else if (input.id === `code-input-${this.length - 1}`) {
|
54
|
-
input.focus();
|
55
|
-
break;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
setTimeout(() => {
|
59
|
-
inputElements[ind].setSelectionRange(1, 1);
|
60
|
-
}, 0);
|
61
|
-
};
|
62
|
-
this.handlePaste = (e) => {
|
63
|
-
const inputElements = this.inputs;
|
64
|
-
const pastedCode = e.clipboardData.getData('text');
|
65
|
-
if (this.type === 'number' && isNaN(parseInt(pastedCode))) {
|
66
|
-
setTimeout(() => {
|
67
|
-
inputElements[0].value = '';
|
68
|
-
}, 0);
|
69
|
-
return;
|
70
|
-
}
|
71
|
-
this.cpslInput.emit({
|
72
|
-
value: pastedCode,
|
73
|
-
});
|
74
|
-
inputElements.forEach((input, index) => {
|
75
|
-
input.value = pastedCode.charAt(index);
|
76
|
-
});
|
77
|
-
inputElements[this.length - 1].focus();
|
78
|
-
};
|
79
|
-
this.code = undefined;
|
80
|
-
this.errorText = undefined;
|
81
|
-
this.helperText = undefined;
|
82
|
-
this.length = undefined;
|
83
|
-
this.type = 'number';
|
84
|
-
}
|
85
|
-
get inputs() {
|
86
|
-
return Array.from(this.el.shadowRoot.querySelectorAll('input'));
|
87
|
-
}
|
88
|
-
render() {
|
89
|
-
var _a;
|
90
|
-
return (h(Host, { key: 'a71927ad671c9bcea55951797bb22fcede118d59' }, h("div", { key: '033281ae8250377ee175112f6428f412eaa339f5', class: "code-container" }, new Array(this.length).fill(0).map((_, i) => {
|
91
|
-
var _a;
|
92
|
-
return (h("input", { class: { 'code-input': true, 'error': Boolean(this.errorText) }, id: `code-input-${i}`, maxLength: 1, onKeyDown: ev => this.handleKeyDown(i, ev), onInput: ev => this.handleInput(i, ev), onFocus: () => this.handleFocus(i), onPaste: this.handlePaste, min: 0, max: 9, value: (_a = this.code) === null || _a === void 0 ? void 0 : _a[i], inputMode: this.type === 'number' ? 'numeric' : 'text' }));
|
93
|
-
})), (this.errorText || this.helperText) && (h("div", { class: { 'helper-text-container': true, 'error-text': Boolean(this.errorText) } }, h("cpsl-icon", { icon: Boolean(this.errorText) ? 'alertCircle' : 'infoCircle' }), h("span", null, (_a = this.errorText) !== null && _a !== void 0 ? _a : this.helperText)))));
|
94
|
-
}
|
95
|
-
static get is() { return "cpsl-code-input"; }
|
96
|
-
static get encapsulation() { return "shadow"; }
|
97
|
-
static get originalStyleUrls() {
|
98
|
-
return {
|
99
|
-
"$": ["cpsl-code-input.scss"]
|
100
|
-
};
|
101
|
-
}
|
102
|
-
static get styleUrls() {
|
103
|
-
return {
|
104
|
-
"$": ["cpsl-code-input.css"]
|
105
|
-
};
|
106
|
-
}
|
107
|
-
static get properties() {
|
108
|
-
return {
|
109
|
-
"code": {
|
110
|
-
"type": "string",
|
111
|
-
"mutable": true,
|
112
|
-
"complexType": {
|
113
|
-
"original": "string",
|
114
|
-
"resolved": "string",
|
115
|
-
"references": {}
|
116
|
-
},
|
117
|
-
"required": false,
|
118
|
-
"optional": false,
|
119
|
-
"docs": {
|
120
|
-
"tags": [],
|
121
|
-
"text": "Value of the code."
|
122
|
-
},
|
123
|
-
"attribute": "code",
|
124
|
-
"reflect": false
|
125
|
-
},
|
126
|
-
"errorText": {
|
127
|
-
"type": "string",
|
128
|
-
"mutable": false,
|
129
|
-
"complexType": {
|
130
|
-
"original": "string",
|
131
|
-
"resolved": "string",
|
132
|
-
"references": {}
|
133
|
-
},
|
134
|
-
"required": false,
|
135
|
-
"optional": true,
|
136
|
-
"docs": {
|
137
|
-
"tags": [],
|
138
|
-
"text": "Error text to show below the input. If this is provided the input will enter an error state."
|
139
|
-
},
|
140
|
-
"attribute": "error-text",
|
141
|
-
"reflect": false
|
142
|
-
},
|
143
|
-
"helperText": {
|
144
|
-
"type": "string",
|
145
|
-
"mutable": false,
|
146
|
-
"complexType": {
|
147
|
-
"original": "string",
|
148
|
-
"resolved": "string",
|
149
|
-
"references": {}
|
150
|
-
},
|
151
|
-
"required": false,
|
152
|
-
"optional": true,
|
153
|
-
"docs": {
|
154
|
-
"tags": [],
|
155
|
-
"text": "Helper text to show below the input. If `\"errorText\"` is provided that will take precedence."
|
156
|
-
},
|
157
|
-
"attribute": "helper-text",
|
158
|
-
"reflect": false
|
159
|
-
},
|
160
|
-
"length": {
|
161
|
-
"type": "number",
|
162
|
-
"mutable": false,
|
163
|
-
"complexType": {
|
164
|
-
"original": "number",
|
165
|
-
"resolved": "number",
|
166
|
-
"references": {}
|
167
|
-
},
|
168
|
-
"required": false,
|
169
|
-
"optional": false,
|
170
|
-
"docs": {
|
171
|
-
"tags": [],
|
172
|
-
"text": "Length of the code."
|
173
|
-
},
|
174
|
-
"attribute": "length",
|
175
|
-
"reflect": false
|
176
|
-
},
|
177
|
-
"type": {
|
178
|
-
"type": "string",
|
179
|
-
"mutable": false,
|
180
|
-
"complexType": {
|
181
|
-
"original": "'number' | 'string'",
|
182
|
-
"resolved": "\"number\" | \"string\"",
|
183
|
-
"references": {}
|
184
|
-
},
|
185
|
-
"required": false,
|
186
|
-
"optional": true,
|
187
|
-
"docs": {
|
188
|
-
"tags": [],
|
189
|
-
"text": "Type of characters to accept in the code.\nDefaults to number."
|
190
|
-
},
|
191
|
-
"attribute": "type",
|
192
|
-
"reflect": false,
|
193
|
-
"defaultValue": "'number'"
|
194
|
-
}
|
195
|
-
};
|
196
|
-
}
|
197
|
-
static get events() {
|
198
|
-
return [{
|
199
|
-
"method": "cpslInput",
|
200
|
-
"name": "cpslInput",
|
201
|
-
"bubbles": true,
|
202
|
-
"cancelable": true,
|
203
|
-
"composed": true,
|
204
|
-
"docs": {
|
205
|
-
"tags": [],
|
206
|
-
"text": "The `cpslInput` event is fired each time the user modifies the input's value."
|
207
|
-
},
|
208
|
-
"complexType": {
|
209
|
-
"original": "CodeChangeEventDetail",
|
210
|
-
"resolved": "CodeChangeEventDetail",
|
211
|
-
"references": {
|
212
|
-
"CodeChangeEventDetail": {
|
213
|
-
"location": "import",
|
214
|
-
"path": "./code-change-interface",
|
215
|
-
"id": "src/components/cpsl-code-input/code-change-interface.ts::CodeChangeEventDetail"
|
216
|
-
}
|
217
|
-
}
|
218
|
-
}
|
219
|
-
}];
|
220
|
-
}
|
221
|
-
static get elementRef() { return "el"; }
|
222
|
-
}
|
223
|
-
//# sourceMappingURL=cpsl-code-input.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cpsl-code-input.js","sourceRoot":"","sources":["../../../../src/components/cpsl-code-input/cpsl-code-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAQ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;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Element, Event, EventEmitter } from '@stencil/core';\nimport { CodeChangeEventDetail } from './code-change-interface';\n\n@Component({\n tag: 'cpsl-code-input',\n styleUrl: 'cpsl-code-input.scss',\n shadow: true,\n})\nexport class CpslCodeInput {\n @Element() el!: HTMLCpslCodeInputElement;\n\n /**\n * Value of the code.\n */\n // eslint-disable-next-line @stencil-community/strict-mutable\n @Prop({ mutable: true }) code: string;\n\n /**\n * Error text to show below the input. If this is provided the input will enter an error state.\n */\n @Prop() errorText?: string;\n\n /**\n * Helper text to show below the input. If `\"errorText\"` is provided that will take precedence.\n */\n @Prop() helperText?: string;\n\n /**\n * Length of the code.\n */\n @Prop() length: number;\n\n /**\n * Type of characters to accept in the code.\n * Defaults to number.\n */\n @Prop() type?: 'number' | 'string' = 'number';\n\n /**\n * The `cpslInput` event is fired each time the user modifies the input's value.\n */\n @Event() cpslInput!: EventEmitter<CodeChangeEventDetail>;\n\n private handleInput = (ind: number, ev: InputEvent) => {\n const inputElements = this.inputs;\n if (ev.inputType == 'insertText') {\n if (this.type === 'number' && isNaN(parseInt(ev.data))) {\n inputElements[ind].value = '';\n return;\n }\n inputElements[Math.min(this.length - 1, ind + 1)].focus();\n\n const newCode = `${this.code ?? ''}${ev.data}`;\n this.cpslInput.emit({ value: newCode });\n this.code = newCode;\n }\n };\n\n private handleKeyDown = (ind: number, ev: KeyboardEvent) => {\n const inputElements = this.inputs;\n\n switch (ev.key) {\n case 'Backspace': {\n let newCode;\n if (!inputElements[ind].value) {\n inputElements[Math.max(0, ind - 1)].value = '';\n inputElements[Math.max(0, ind - 1)].focus();\n newCode = this.code.substring(0, ind - 1);\n } else {\n newCode = this.code.substring(0, ind);\n }\n this.cpslInput.emit({ value: newCode });\n this.code = newCode;\n break;\n }\n case 'ArrowLeft': {\n setTimeout(() => {\n this.inputs[ind].setSelectionRange(1, 1);\n }, 0);\n break;\n }\n default: {\n break;\n }\n }\n };\n\n private handleFocus = (ind: number) => {\n const inputElements = this.inputs;\n\n for (const input of inputElements) {\n if (!input.value) {\n input.focus();\n break;\n } else if (input.id === `code-input-${this.length - 1}`) {\n input.focus();\n break;\n }\n }\n\n setTimeout(() => {\n inputElements[ind].setSelectionRange(1, 1);\n }, 0);\n };\n\n // TODO: figure out why pasting a string populates the first input\n private handlePaste = (e: ClipboardEvent) => {\n const inputElements = this.inputs;\n const pastedCode = e.clipboardData.getData('text');\n\n if (this.type === 'number' && isNaN(parseInt(pastedCode))) {\n // Remove illegal value from the first input. Not using a timeout here doesn't change the value properly.\n setTimeout(() => {\n inputElements[0].value = '';\n }, 0);\n return;\n }\n\n this.cpslInput.emit({\n value: pastedCode,\n });\n inputElements.forEach((input, index) => {\n input.value = pastedCode.charAt(index);\n });\n inputElements[this.length - 1].focus();\n };\n\n private get inputs() {\n return Array.from(this.el.shadowRoot.querySelectorAll('input'));\n }\n\n render() {\n return (\n <Host>\n <div class=\"code-container\">\n {new Array(this.length).fill(0).map((_, i) => (\n <input\n class={{ 'code-input': true, 'error': Boolean(this.errorText) }}\n id={`code-input-${i}`}\n maxLength={1}\n onKeyDown={ev => this.handleKeyDown(i, ev)}\n onInput={ev => this.handleInput(i, ev)}\n onFocus={() => this.handleFocus(i)}\n onPaste={this.handlePaste}\n min={0}\n max={9}\n value={this.code?.[i]}\n inputMode={this.type === 'number' ? 'numeric' : 'text'}\n />\n ))}\n </div>\n {(this.errorText || this.helperText) && (\n <div class={{ 'helper-text-container': true, 'error-text': Boolean(this.errorText) }}>\n <cpsl-icon icon={Boolean(this.errorText) ? 'alertCircle' : 'infoCircle'} />\n <span>{this.errorText ?? this.helperText}</span>\n </div>\n )}\n </Host>\n );\n }\n}\n"]}
|
@@ -1,29 +0,0 @@
|
|
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-code-input', () => {
|
22
|
-
it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
|
23
|
-
const page = yield newE2EPage();
|
24
|
-
yield page.setContent('<cpsl-code-input></cpsl-code-input>');
|
25
|
-
const element = yield page.find('cpsl-code-input');
|
26
|
-
expect(element).toHaveClass('hydrated');
|
27
|
-
}));
|
28
|
-
});
|
29
|
-
//# sourceMappingURL=cpsl-code-input.e2e.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cpsl-code-input.e2e.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-code-input/test/cpsl-code-input.e2e.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAChC,MAAM,IAAI,CAAC,UAAU,CAAC,qCAAqC,CAAC,CAAC;QAE7D,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACnD,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-code-input', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<cpsl-code-input></cpsl-code-input>');\n\n const element = await page.find('cpsl-code-input');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
@@ -1,37 +0,0 @@
|
|
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 { CpslCodeInput } from "../cpsl-code-input";
|
22
|
-
describe('cpsl-code-input', () => {
|
23
|
-
it('renders', () => __awaiter(void 0, void 0, void 0, function* () {
|
24
|
-
const page = yield newSpecPage({
|
25
|
-
components: [CpslCodeInput],
|
26
|
-
html: `<cpsl-code-input></cpsl-code-input>`,
|
27
|
-
});
|
28
|
-
expect(page.root).toEqualHtml(`
|
29
|
-
<cpsl-code-input>
|
30
|
-
<mock:shadow-root>
|
31
|
-
<slot></slot>
|
32
|
-
</mock:shadow-root>
|
33
|
-
</cpsl-code-input>
|
34
|
-
`);
|
35
|
-
}));
|
36
|
-
});
|
37
|
-
//# sourceMappingURL=cpsl-code-input.spec.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"cpsl-code-input.spec.js","sourceRoot":"","sources":["../../../../../src/components/cpsl-code-input/test/cpsl-code-input.spec.tsx"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,SAAS,EAAE,GAAS,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;YAC7B,UAAU,EAAE,CAAC,aAAa,CAAC;YAC3B,IAAI,EAAE,qCAAqC;SAC5C,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 { CpslCodeInput } from '../cpsl-code-input';\n\ndescribe('cpsl-code-input', () => {\n it('renders', async () => {\n const page = await newSpecPage({\n components: [CpslCodeInput],\n html: `<cpsl-code-input></cpsl-code-input>`,\n });\n expect(page.root).toEqualHtml(`\n <cpsl-code-input>\n <mock:shadow-root>\n <slot></slot>\n </mock:shadow-root>\n </cpsl-code-input>\n `);\n });\n});\n"]}
|
@@ -1,200 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Convert a font size to a dynamic font size.
|
3
|
-
* Fonts that participate in Dynamic Type should use
|
4
|
-
* dynamic font sizes.
|
5
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
6
|
-
* @param unit (optional) - The unit to convert to. Use this if you want to
|
7
|
-
* convert to a unit other than $baselineUnit.
|
8
|
-
*/
|
9
|
-
/**
|
10
|
-
* Convert a font size to a dynamic font size but impose
|
11
|
-
* a maximum font size.
|
12
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
13
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
14
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
15
|
-
* convert to a unit other than $baselineUnit.
|
16
|
-
*/
|
17
|
-
/**
|
18
|
-
* Convert a font size to a dynamic font size but impose
|
19
|
-
* a minimum font size.
|
20
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
21
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
22
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
23
|
-
* convert to a unit other than $baselineUnit.
|
24
|
-
*/
|
25
|
-
/**
|
26
|
-
* Convert a font size to a dynamic font size but impose
|
27
|
-
* maximum and minimum font sizes.
|
28
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
29
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
30
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
31
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
32
|
-
* convert to a unit other than $baselineUnit.
|
33
|
-
*/
|
34
|
-
/**
|
35
|
-
* A heuristic that applies CSS to tablet
|
36
|
-
* viewports.
|
37
|
-
*
|
38
|
-
* Usage:
|
39
|
-
* @include tablet-viewport() {
|
40
|
-
* :host {
|
41
|
-
* background-color: green;
|
42
|
-
* }
|
43
|
-
* }
|
44
|
-
*/
|
45
|
-
/**
|
46
|
-
* A heuristic that applies CSS to mobile
|
47
|
-
* viewports (i.e. phones, not tablets).
|
48
|
-
*
|
49
|
-
* Usage:
|
50
|
-
* @include mobile-viewport() {
|
51
|
-
* :host {
|
52
|
-
* background-color: blue;
|
53
|
-
* }
|
54
|
-
* }
|
55
|
-
*/
|
56
|
-
/**
|
57
|
-
* Convert a font size to a dynamic font size.
|
58
|
-
* Fonts that participate in Dynamic Type should use
|
59
|
-
* dynamic font sizes.
|
60
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
61
|
-
* @param unit (optional) - The unit to convert to. Use this if you want to
|
62
|
-
* convert to a unit other than $baselineUnit.
|
63
|
-
*/
|
64
|
-
/**
|
65
|
-
* Convert a font size to a dynamic font size but impose
|
66
|
-
* a maximum font size.
|
67
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
68
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
69
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
70
|
-
* convert to a unit other than $baselineUnit.
|
71
|
-
*/
|
72
|
-
/**
|
73
|
-
* Convert a font size to a dynamic font size but impose
|
74
|
-
* a minimum font size.
|
75
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
76
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
77
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
78
|
-
* convert to a unit other than $baselineUnit.
|
79
|
-
*/
|
80
|
-
/**
|
81
|
-
* Convert a font size to a dynamic font size but impose
|
82
|
-
* maximum and minimum font sizes.
|
83
|
-
* @param size - The initial font size including the unit (i.e. px or pt)
|
84
|
-
* @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
|
85
|
-
* @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
|
86
|
-
* @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
|
87
|
-
* convert to a unit other than $baselineUnit.
|
88
|
-
*/
|
89
|
-
/**
|
90
|
-
* A heuristic that applies CSS to tablet
|
91
|
-
* viewports.
|
92
|
-
*
|
93
|
-
* Usage:
|
94
|
-
* @include tablet-viewport() {
|
95
|
-
* :host {
|
96
|
-
* background-color: green;
|
97
|
-
* }
|
98
|
-
* }
|
99
|
-
*/
|
100
|
-
/**
|
101
|
-
* A heuristic that applies CSS to mobile
|
102
|
-
* viewports (i.e. phones, not tablets).
|
103
|
-
*
|
104
|
-
* Usage:
|
105
|
-
* @include mobile-viewport() {
|
106
|
-
* :host {
|
107
|
-
* background-color: blue;
|
108
|
-
* }
|
109
|
-
* }
|
110
|
-
*/
|
111
|
-
/**
|
112
|
-
* A heuristic that applies CSS to tablet
|
113
|
-
* viewports.
|
114
|
-
*
|
115
|
-
* Usage:
|
116
|
-
* @include tablet-viewport() {
|
117
|
-
* :host {
|
118
|
-
* background-color: green;
|
119
|
-
* }
|
120
|
-
* }
|
121
|
-
*/
|
122
|
-
/**
|
123
|
-
* A heuristic that applies CSS to mobile
|
124
|
-
* viewports (i.e. phones, not tablets).
|
125
|
-
*
|
126
|
-
* Usage:
|
127
|
-
* @include mobile-viewport() {
|
128
|
-
* :host {
|
129
|
-
* background-color: blue;
|
130
|
-
* }
|
131
|
-
* }
|
132
|
-
*/
|
133
|
-
:host {
|
134
|
-
/**
|
135
|
-
* @prop --cpsl-grid-columns: The number of total Columns in the Grid
|
136
|
-
* @prop --cpsl-grid-column-padding: Padding for the Column
|
137
|
-
* @prop --cpsl-grid-column-padding-xs: Padding for the Column on xs screens and up
|
138
|
-
* @prop --cpsl-grid-column-padding-sm: Padding for the Column on sm screens and up
|
139
|
-
* @prop --cpsl-grid-column-padding-md: Padding for the Column on md screens and up
|
140
|
-
* @prop --cpsl-grid-column-padding-lg: Padding for the Column on lg screens and up
|
141
|
-
* @prop --cpsl-grid-column-padding-xl: Padding for the Column on xl screens and up
|
142
|
-
*/
|
143
|
-
-webkit-padding-start: var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));
|
144
|
-
padding-inline-start: var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));
|
145
|
-
-webkit-padding-end: var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));
|
146
|
-
padding-inline-end: var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));
|
147
|
-
padding-top: var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));
|
148
|
-
padding-bottom: var(--cpsl-grid-column-padding-xs, var(--cpsl-grid-column-padding, 0px));
|
149
|
-
margin-left: 0;
|
150
|
-
margin-right: 0;
|
151
|
-
margin-top: 0;
|
152
|
-
margin-bottom: 0;
|
153
|
-
box-sizing: border-box;
|
154
|
-
position: relative;
|
155
|
-
flex-basis: 0;
|
156
|
-
flex-grow: 1;
|
157
|
-
width: 100%;
|
158
|
-
max-width: 100%;
|
159
|
-
min-height: 1px;
|
160
|
-
}
|
161
|
-
@media (min-width: 576px) {
|
162
|
-
:host {
|
163
|
-
-webkit-padding-start: var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));
|
164
|
-
padding-inline-start: var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));
|
165
|
-
-webkit-padding-end: var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));
|
166
|
-
padding-inline-end: var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));
|
167
|
-
padding-top: var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));
|
168
|
-
padding-bottom: var(--cpsl-grid-column-padding-sm, var(--cpsl-grid-column-padding, 0px));
|
169
|
-
}
|
170
|
-
}
|
171
|
-
@media (min-width: 768px) {
|
172
|
-
:host {
|
173
|
-
-webkit-padding-start: var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));
|
174
|
-
padding-inline-start: var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));
|
175
|
-
-webkit-padding-end: var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));
|
176
|
-
padding-inline-end: var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));
|
177
|
-
padding-top: var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));
|
178
|
-
padding-bottom: var(--cpsl-grid-column-padding-md, var(--cpsl-grid-column-padding, 0px));
|
179
|
-
}
|
180
|
-
}
|
181
|
-
@media (min-width: 992px) {
|
182
|
-
:host {
|
183
|
-
-webkit-padding-start: var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));
|
184
|
-
padding-inline-start: var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));
|
185
|
-
-webkit-padding-end: var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));
|
186
|
-
padding-inline-end: var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));
|
187
|
-
padding-top: var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));
|
188
|
-
padding-bottom: var(--cpsl-grid-column-padding-lg, var(--cpsl-grid-column-padding, 0px));
|
189
|
-
}
|
190
|
-
}
|
191
|
-
@media (min-width: 1200px) {
|
192
|
-
:host {
|
193
|
-
-webkit-padding-start: var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));
|
194
|
-
padding-inline-start: var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));
|
195
|
-
-webkit-padding-end: var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));
|
196
|
-
padding-inline-end: var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));
|
197
|
-
padding-top: var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));
|
198
|
-
padding-bottom: var(--cpsl-grid-column-padding-xl, var(--cpsl-grid-column-padding, 0px));
|
199
|
-
}
|
200
|
-
}
|