@usecapsule/core-components 3.2.0-dev.1 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/capsule/capsule.esm.js +1 -1
- package/dist/capsule/capsule.esm.js.map +1 -1
- package/dist/capsule/index.esm.js.map +1 -1
- package/dist/capsule/p-0462f723.js.map +1 -1
- package/dist/capsule/p-05cb769b.entry.js +10 -0
- package/dist/capsule/p-05cb769b.entry.js.map +1 -0
- package/dist/capsule/p-0eea90f8.entry.js +2 -0
- package/dist/capsule/{p-6793ef7a.entry.js.map → p-0eea90f8.entry.js.map} +1 -1
- package/dist/capsule/{p-b976b6f0.entry.js → p-41bc3c58.entry.js} +2 -2
- package/dist/capsule/{p-b976b6f0.entry.js.map → p-41bc3c58.entry.js.map} +1 -1
- package/dist/capsule/p-7233228e.entry.js +29 -0
- package/dist/capsule/p-7233228e.entry.js.map +1 -0
- package/dist/capsule/{p-447d49b9.entry.js → p-742bda0b.entry.js} +2 -2
- package/dist/capsule/{p-447d49b9.entry.js.map → p-742bda0b.entry.js.map} +1 -1
- package/dist/capsule/{p-f6c74d69.entry.js → p-c1aa1ffb.entry.js} +2 -2
- package/dist/capsule/{p-f6c74d69.entry.js.map → p-c1aa1ffb.entry.js.map} +1 -1
- package/dist/capsule/p-d351f076.entry.js +2 -0
- package/dist/capsule/p-d351f076.entry.js.map +1 -0
- package/dist/capsule/{p-452b9998.entry.js → p-dc4591d5.entry.js} +2 -2
- package/dist/capsule/{p-452b9998.entry.js.map → p-dc4591d5.entry.js.map} +1 -1
- package/dist/capsule/{p-6dcaee48.entry.js → p-de2a16e4.entry.js} +2 -2
- package/dist/capsule/{p-6dcaee48.entry.js.map → p-de2a16e4.entry.js.map} +1 -1
- package/dist/capsule/p-e1255160.js.map +1 -1
- package/dist/capsule/p-f2393be6.js.map +1 -1
- package/dist/capsule/p-fa6b7678.js +3 -0
- package/dist/capsule/p-fa6b7678.js.map +1 -0
- package/dist/cjs/capsule.cjs.js +10 -10
- package/dist/cjs/capsule.cjs.js.map +1 -1
- package/dist/cjs/{cpsl-alert_34.cjs.entry.js → cpsl-alert_33.cjs.entry.js} +136 -95
- package/dist/cjs/cpsl-alert_33.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-animation.cjs.entry.js +5 -2
- package/dist/cjs/cpsl-animation.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-col.cjs.entry.js +25 -6
- package/dist/cjs/cpsl-col.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-grid.cjs.entry.js +3 -3
- package/dist/cjs/cpsl-hero.cjs.entry.js +35 -0
- package/dist/cjs/cpsl-hero.cjs.entry.js.map +1 -0
- package/dist/cjs/cpsl-identicon.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-info-box.cjs.entry.js +2 -2
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js +3 -2
- package/dist/cjs/cpsl-modal-v2.cjs.entry.js.map +1 -1
- package/dist/cjs/cpsl-row.cjs.entry.js +2 -2
- package/dist/cjs/index-65f57499.js +1439 -0
- package/dist/cjs/index-65f57499.js.map +1 -0
- package/dist/cjs/index.cjs.js +10 -2
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/assets/icons/index.js +1 -3
- package/dist/collection/assets/icons/index.js.map +1 -1
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js +2 -2
- package/dist/collection/components/cpsl-alert/cpsl-alert.js.map +1 -1
- package/dist/collection/components/cpsl-animation/cpsl-animation.js +4 -1
- package/dist/collection/components/cpsl-animation/cpsl-animation.js.map +1 -1
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js +5 -2
- package/dist/collection/components/cpsl-app-bar/cpsl-app-bar.js.map +1 -1
- package/dist/collection/components/cpsl-avatar/cpsl-avatar.js +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.js +5 -2
- package/dist/collection/components/cpsl-button/cpsl-button.js.map +1 -1
- package/dist/collection/components/cpsl-button/cpsl-button.stories.js.map +1 -1
- package/dist/collection/components/cpsl-button-group/cpsl-button-group.js +1 -1
- package/dist/collection/components/cpsl-card/cpsl-card.js +1 -1
- package/dist/collection/components/cpsl-checkbox/cpsl-checkbox.js +1 -1
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js +5 -3
- package/dist/collection/components/cpsl-code-input/cpsl-code-input.js.map +1 -1
- package/dist/collection/components/cpsl-col/cpsl-col.js +21 -5
- package/dist/collection/components/cpsl-col/cpsl-col.js.map +1 -1
- package/dist/collection/components/cpsl-divider/cpsl-divider.js +1 -1
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js +3 -2
- package/dist/collection/components/cpsl-drawer/cpsl-drawer.js.map +1 -1
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js +2 -2
- package/dist/collection/components/cpsl-dropdown/cpsl-dropdown.js.map +1 -1
- package/dist/collection/components/cpsl-dropdown/dropdown-interface.js.map +1 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js +6 -1
- package/dist/collection/components/cpsl-file-upload/cpsl-file-upload.js.map +1 -1
- package/dist/collection/components/cpsl-grid/cpsl-grid.js +2 -2
- package/dist/collection/components/cpsl-hero/cpsl-hero.js +3 -2
- package/dist/collection/components/cpsl-hero/cpsl-hero.js.map +1 -1
- package/dist/collection/components/cpsl-hero/cpsl-hero.stories.js.map +1 -1
- package/dist/collection/components/cpsl-icon/cpsl-icon.js +2 -2
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.js +1 -1
- package/dist/collection/components/cpsl-identicon/cpsl-identicon.stories.js.map +1 -1
- package/dist/collection/components/cpsl-info-box/cpsl-info-box.js +1 -1
- package/dist/collection/components/cpsl-input/cpsl-input.js +36 -2
- package/dist/collection/components/cpsl-input/cpsl-input.js.map +1 -1
- package/dist/collection/components/cpsl-modal/cpsl-modal.js +1 -1
- package/dist/collection/components/cpsl-modal/cpsl-modal.js.map +1 -1
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js +2 -1
- package/dist/collection/components/cpsl-modal-v2/cpsl-modal-v2.js.map +1 -1
- package/dist/collection/components/cpsl-nav-button-group/cpsl-nav-button-group.js +1 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js +2 -1
- package/dist/collection/components/cpsl-overlay/cpsl-overlay.js.map +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js +1 -1
- package/dist/collection/components/cpsl-pagination/cpsl-pagination.js.map +1 -1
- package/dist/collection/components/cpsl-pill/cpsl-pill.js +1 -1
- package/dist/collection/components/cpsl-popover/cpsl-popover.js +18 -6
- package/dist/collection/components/cpsl-popover/cpsl-popover.js.map +1 -1
- package/dist/collection/components/cpsl-qr-code/cpsl-qr-code.js +1 -1
- package/dist/collection/components/cpsl-radio/cpsl-radio.js +1 -1
- package/dist/collection/components/cpsl-row/cpsl-row.js +1 -1
- package/dist/collection/components/cpsl-select/cpsl-select.js +3 -1
- package/dist/collection/components/cpsl-select/cpsl-select.js.map +1 -1
- package/dist/collection/components/cpsl-select-item/cpsl-select-item.js +1 -1
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js +14 -3
- package/dist/collection/components/cpsl-slide-button/cpsl-slide-button.js.map +1 -1
- package/dist/collection/components/cpsl-spinner/cpsl-spinner.js +2 -2
- package/dist/collection/components/cpsl-switch/cpsl-switch.js +1 -1
- package/dist/collection/components/cpsl-tab/cpsl-tab.js +1 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js +11 -1
- package/dist/collection/components/cpsl-table/cpsl-table.js.map +1 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js +7 -1
- package/dist/collection/components/cpsl-tabs/cpsl-tabs.js.map +1 -1
- package/dist/collection/components/cpsl-text/cpsl-text.js +5 -2
- package/dist/collection/components/cpsl-text/cpsl-text.js.map +1 -1
- package/dist/collection/components/cpsl-tile-button/cpsl-tile-button.js +2 -2
- package/dist/collection/interface.js.map +1 -1
- package/dist/collection/utils/media.js +3 -0
- package/dist/collection/utils/media.js.map +1 -1
- package/dist/collection/utils/theme/generateBorderRadii.js +1 -1
- package/dist/collection/utils/theme/generateBorderRadii.js.map +1 -1
- package/dist/collection/utils/theme/generatePalette.js +4 -1
- package/dist/collection/utils/theme/generatePalette.js.map +1 -1
- package/dist/collection/utils/theme/generateTheme.js +4 -0
- package/dist/collection/utils/theme/generateTheme.js.map +1 -1
- package/dist/collection/utils/theme/utils.js +1 -0
- package/dist/collection/utils/theme/utils.js.map +1 -1
- package/dist/esm/capsule.js +11 -11
- package/dist/esm/capsule.js.map +1 -1
- package/dist/esm/{cpsl-alert_34.entry.js → cpsl-alert_33.entry.js} +137 -95
- package/dist/esm/cpsl-alert_33.entry.js.map +1 -0
- package/dist/esm/cpsl-animation.entry.js +5 -2
- package/dist/esm/cpsl-animation.entry.js.map +1 -1
- package/dist/esm/cpsl-col.entry.js +25 -6
- package/dist/esm/cpsl-col.entry.js.map +1 -1
- package/dist/esm/cpsl-grid.entry.js +3 -3
- package/dist/esm/cpsl-hero.entry.js +31 -0
- package/dist/esm/cpsl-hero.entry.js.map +1 -0
- package/dist/esm/cpsl-identicon.entry.js +2 -2
- package/dist/esm/cpsl-info-box.entry.js +2 -2
- package/dist/esm/cpsl-modal-v2.entry.js +3 -2
- package/dist/esm/cpsl-modal-v2.entry.js.map +1 -1
- package/dist/esm/cpsl-row.entry.js +2 -2
- package/dist/esm/index-91db3414.js +1408 -0
- package/dist/esm/index-91db3414.js.map +1 -0
- package/dist/esm/index.js +10 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/loader/cdn.js +1 -3
- package/dist/loader/index.cjs.js +1 -3
- package/dist/loader/index.d.ts +3 -0
- package/dist/loader/index.es2017.js +1 -3
- package/dist/loader/index.js +1 -3
- package/dist/scripts/buildAssets.js +1 -1
- package/dist/types/assets/icons/index.d.ts +0 -2
- package/dist/types/components/cpsl-alert/cpsl-alert.d.ts +8 -0
- package/dist/types/components/cpsl-animation/cpsl-animation.d.ts +6 -0
- package/dist/types/components/cpsl-app-bar/cpsl-app-bar.d.ts +10 -0
- package/dist/types/components/cpsl-avatar/cpsl-avatar.d.ts +11 -0
- package/dist/types/components/cpsl-button/cpsl-button.d.ts +29 -0
- package/dist/types/components/cpsl-button-group/cpsl-button-group.d.ts +3 -0
- package/dist/types/components/cpsl-checkbox/cpsl-checkbox.d.ts +6 -0
- package/dist/types/components/cpsl-code-input/cpsl-code-input.d.ts +19 -0
- package/dist/types/components/cpsl-col/cpsl-col.d.ts +96 -0
- package/dist/types/components/cpsl-drawer/cpsl-drawer.d.ts +31 -0
- package/dist/types/components/cpsl-dropdown/cpsl-dropdown.d.ts +15 -0
- package/dist/types/components/cpsl-dropdown/dropdown-interface.d.ts +1 -1
- package/dist/types/components/cpsl-file-upload/cpsl-file-upload.d.ts +43 -0
- package/dist/types/components/cpsl-grid/cpsl-grid.d.ts +3 -0
- package/dist/types/components/cpsl-hero/cpsl-hero.d.ts +5 -0
- package/dist/types/components/cpsl-icon/cpsl-icon.d.ts +6 -0
- package/dist/types/components/cpsl-identicon/cpsl-identicon.d.ts +4 -0
- package/dist/types/components/cpsl-input/cpsl-input.d.ts +138 -0
- package/dist/types/components/cpsl-input/input-interface.d.ts +5 -0
- package/dist/types/components/cpsl-modal/cpsl-modal.d.ts +39 -0
- package/dist/types/components/cpsl-modal-v2/cpsl-modal-v2.d.ts +32 -0
- package/dist/types/components/cpsl-nav-button-group/cpsl-nav-button-group.d.ts +3 -0
- package/dist/types/components/cpsl-overlay/cpsl-overlay.d.ts +14 -0
- package/dist/types/components/cpsl-pagination/cpsl-pagination.d.ts +15 -0
- package/dist/types/components/cpsl-pill/cpsl-pill.d.ts +3 -0
- package/dist/types/components/cpsl-popover/cpsl-popover.d.ts +55 -2
- package/dist/types/components/cpsl-progress-indicator/cpsl-progress-indicator.d.ts +6 -0
- package/dist/types/components/cpsl-qr-code/cpsl-qr-code.d.ts +10 -0
- package/dist/types/components/cpsl-radio/cpsl-radio.d.ts +6 -0
- package/dist/types/components/cpsl-select/cpsl-select.d.ts +45 -0
- package/dist/types/components/cpsl-select-item/cpsl-select-item.d.ts +10 -0
- package/dist/types/components/cpsl-slide-button/cpsl-slide-button.d.ts +18 -0
- package/dist/types/components/cpsl-spinner/cpsl-spinner.d.ts +8 -0
- package/dist/types/components/cpsl-switch/cpsl-switch.d.ts +6 -0
- package/dist/types/components/cpsl-tab/cpsl-tab.d.ts +11 -0
- package/dist/types/components/cpsl-tabs/cpsl-tabs.d.ts +13 -0
- package/dist/types/components/cpsl-text/cpsl-text.d.ts +15 -0
- package/dist/types/components/cpsl-tile-button/cpsl-tile-button.d.ts +6 -0
- package/dist/types/components.d.ts +28 -6
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/utils/theme/generateBorderRadii.d.ts +1 -1
- package/dist/types/utils/theme/generatePalette.d.ts +1 -1
- package/dist/types/utils/theme/generateTheme.d.ts +4 -0
- package/package.json +4 -10
- package/readme.md +47 -2
- package/dist/capsule/p-303e6e89.entry.js +0 -29
- package/dist/capsule/p-303e6e89.entry.js.map +0 -1
- package/dist/capsule/p-6793ef7a.entry.js +0 -2
- package/dist/capsule/p-7dde3172.js +0 -3
- package/dist/capsule/p-7dde3172.js.map +0 -1
- package/dist/capsule/p-a6aaf3f4.entry.js +0 -10
- package/dist/capsule/p-a6aaf3f4.entry.js.map +0 -1
- package/dist/cjs/cpsl-alert_34.cjs.entry.js.map +0 -1
- package/dist/cjs/index-528f7428.js +0 -2107
- package/dist/cjs/index-528f7428.js.map +0 -1
- package/dist/collection/assets/icons/double-arc.svg +0 -13
- package/dist/collection/assets/icons/single-arc.svg +0 -11
- 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/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-app-bar/test/cpsl-app-bar.e2e.js +0 -29
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js +0 -37
- package/dist/collection/components/cpsl-app-bar/test/cpsl-app-bar.spec.js.map +0 -1
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js +0 -29
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.js +0 -37
- package/dist/collection/components/cpsl-avatar/test/cpsl-avatar.spec.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-button-group/test/cpsl-button-group.e2e.js +0 -29
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js +0 -37
- package/dist/collection/components/cpsl-button-group/test/cpsl-button-group.spec.js.map +0 -1
- package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js +0 -29
- package/dist/collection/components/cpsl-card/test/cpsl-card.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js +0 -37
- package/dist/collection/components/cpsl-card/test/cpsl-card.spec.js.map +0 -1
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js +0 -29
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.js +0 -37
- package/dist/collection/components/cpsl-checkbox/test/cpsl-checkbox.spec.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/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/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-drawer/test/cpsl-drawer.e2e.js +0 -29
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js +0 -37
- package/dist/collection/components/cpsl-drawer/test/cpsl-drawer.spec.js.map +0 -1
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js +0 -29
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js +0 -37
- package/dist/collection/components/cpsl-dropdown/test/cpsl-dropdown.spec.js.map +0 -1
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js +0 -29
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.js +0 -37
- package/dist/collection/components/cpsl-file-upload/test/cpsl-file-upload.spec.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-hero/test/cpsl-hero.e2e.js +0 -29
- package/dist/collection/components/cpsl-hero/test/cpsl-hero.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.js +0 -37
- package/dist/collection/components/cpsl-hero/test/cpsl-hero.spec.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-identicon/test/cpsl-identicon.e2e.js +0 -29
- package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.js +0 -37
- package/dist/collection/components/cpsl-identicon/test/cpsl-identicon.spec.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/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/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-modal-v2/test/cpsl-modal-v2.e2e.js +0 -29
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js +0 -37
- package/dist/collection/components/cpsl-modal-v2/test/cpsl-modal-v2.spec.js.map +0 -1
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js +0 -29
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.js +0 -37
- package/dist/collection/components/cpsl-nav-button-group/test/cpsl-nav-button-group.spec.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-pagination/test/cpsl-pagination.e2e.js +0 -29
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.js +0 -37
- package/dist/collection/components/cpsl-pagination/test/cpsl-pagination.spec.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-popover/test/cpsl-popover.e2e.js +0 -29
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.js +0 -37
- package/dist/collection/components/cpsl-popover/test/cpsl-popover.spec.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/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-radio/test/cpsl-radio.e2e.js +0 -29
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.js +0 -37
- package/dist/collection/components/cpsl-radio/test/cpsl-radio.spec.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-select/test/cpsl-select.e2e.js +0 -29
- package/dist/collection/components/cpsl-select/test/cpsl-select.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js +0 -37
- package/dist/collection/components/cpsl-select/test/cpsl-select.spec.js.map +0 -1
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js +0 -29
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.js +0 -37
- package/dist/collection/components/cpsl-select-item/test/cpsl-select-item.spec.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/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-switch/test/cpsl-switch.e2e.js +0 -29
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.js +0 -37
- package/dist/collection/components/cpsl-switch/test/cpsl-switch.spec.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-table/test/cpsl-table.e2e.js +0 -29
- package/dist/collection/components/cpsl-table/test/cpsl-table.e2e.js.map +0 -1
- package/dist/collection/components/cpsl-table/test/cpsl-table.spec.js +0 -37
- package/dist/collection/components/cpsl-table/test/cpsl-table.spec.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/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/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/esm/cpsl-alert_34.entry.js.map +0 -1
- package/dist/esm/index-b188f201.js +0 -2076
- package/dist/esm/index-b188f201.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/types/Users/{briancorbin/Documents/Programming/Capsule/component-library/core → taylorbosch/Documents/GitHub/Capsule/web-sdk/packages/core-components}/.stencil/scripts/buildAssets.d.ts +0 -0
@@ -7,19 +7,72 @@ export declare class CpslPopover {
|
|
7
7
|
private triggerClicked;
|
8
8
|
positionX?: number;
|
9
9
|
positionY?: number;
|
10
|
+
/**
|
11
|
+
* ID for the element that the popover anchors to.
|
12
|
+
*/
|
10
13
|
anchorEl?: HTMLElement;
|
14
|
+
/**
|
15
|
+
* Vertical anchor origin.
|
16
|
+
* Options are: `"left"`, `"center"`, `"right"`.
|
17
|
+
* Default is: `"left"`.
|
18
|
+
*/
|
11
19
|
anchorOriginHorizontal?: 'left' | 'center' | 'right';
|
20
|
+
/**
|
21
|
+
* Vertical anchor origin.
|
22
|
+
* Options are: `"top"`, `"center"`, `"bottom"`.
|
23
|
+
* Default is: `"bottom"`.
|
24
|
+
*/
|
12
25
|
anchorOriginVertical?: 'top' | 'center' | 'bottom';
|
26
|
+
/**
|
27
|
+
* If `true` the container will use the width of the content, else it will be set to the width of the trigger.
|
28
|
+
* Default is `true`
|
29
|
+
*/
|
13
30
|
autoWidth?: boolean;
|
31
|
+
/**
|
32
|
+
* Whether or not to disable to popover.
|
33
|
+
*/
|
14
34
|
disabled: boolean;
|
35
|
+
/**
|
36
|
+
* Used internally to prevent select from blurring unintentionally.
|
37
|
+
*/
|
15
38
|
preventBlur: boolean;
|
39
|
+
/**
|
40
|
+
* Vertical transformation origin.
|
41
|
+
* Options are: `"left"`, `"center"`, `"right"`.
|
42
|
+
* Default is: `"left"`.
|
43
|
+
*/
|
16
44
|
transformOriginHorizontal?: 'left' | 'center' | 'right';
|
45
|
+
/**
|
46
|
+
* Vertical transformation origin.
|
47
|
+
* Options are: `"top"`, `"center"`, `"bottom"`.
|
48
|
+
* Default is: `"bottom"`.
|
49
|
+
*/
|
17
50
|
transformOriginVertical?: 'top' | 'center' | 'bottom';
|
51
|
+
/**
|
52
|
+
* Which trigger causes the popover to open.
|
53
|
+
* Options are: `"click"`, `"hover"`.
|
54
|
+
* Default is: `"click"`.
|
55
|
+
*/
|
18
56
|
triggerAction: 'click' | 'hover';
|
57
|
+
/**
|
58
|
+
* ID for the element that triggers the popover to open.
|
59
|
+
*/
|
19
60
|
trigger: string;
|
61
|
+
/**
|
62
|
+
* Padding from edge of window for the popover container.
|
63
|
+
*/
|
20
64
|
windowPadding?: number;
|
21
|
-
|
22
|
-
|
65
|
+
/**
|
66
|
+
* Emitted when the popover opens.
|
67
|
+
*/
|
68
|
+
cpslOpen: EventEmitter;
|
69
|
+
/**
|
70
|
+
* Emitted when the popover closes.
|
71
|
+
*/
|
72
|
+
cpslClose: EventEmitter;
|
73
|
+
/**
|
74
|
+
* Call to close the popover manually.
|
75
|
+
*/
|
23
76
|
closePopover(): Promise<void>;
|
24
77
|
onTriggerChange(): void;
|
25
78
|
onAnchorChange(): void;
|
@@ -1,7 +1,17 @@
|
|
1
1
|
export declare class CpslQrCode {
|
2
2
|
el: HTMLCpslQrCodeElement;
|
3
|
+
/**
|
4
|
+
* URL for the QR code to link to.
|
5
|
+
*/
|
3
6
|
url: string;
|
7
|
+
/**
|
8
|
+
* Source for the center image of the QR code.
|
9
|
+
*/
|
4
10
|
imageSrc?: string;
|
11
|
+
/**
|
12
|
+
* Size of the QR code in pixels.
|
13
|
+
* Default is 250.
|
14
|
+
*/
|
5
15
|
size?: number;
|
6
16
|
componentDidLoad(): void;
|
7
17
|
render(): any;
|
@@ -1,6 +1,12 @@
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
2
2
|
export declare class CpslRadio {
|
3
|
+
/**
|
4
|
+
* Whether or not the radio is checked.
|
5
|
+
*/
|
3
6
|
checked: boolean;
|
7
|
+
/**
|
8
|
+
* Emitted when the radio state changes.
|
9
|
+
*/
|
4
10
|
cpslRadioChanged: EventEmitter<boolean>;
|
5
11
|
private handleRadioClick;
|
6
12
|
render(): any;
|
@@ -7,20 +7,65 @@ export declare class CpslSelect {
|
|
7
7
|
hasFocus: boolean;
|
8
8
|
popoverOpen: boolean;
|
9
9
|
hasSelectedItem: boolean;
|
10
|
+
/**
|
11
|
+
* If `true`, the user cannot interact with the input.
|
12
|
+
*/
|
10
13
|
disabled: boolean;
|
14
|
+
/**
|
15
|
+
* Set the max height of the dropdown.
|
16
|
+
*/
|
11
17
|
dropdownMaxHeight?: number;
|
18
|
+
/**
|
19
|
+
* Error text to show below the input. If this is provided the input will enter an error state.
|
20
|
+
*/
|
12
21
|
errorText?: string;
|
22
|
+
/**
|
23
|
+
* Format value for display when selected.
|
24
|
+
*/
|
13
25
|
formatValue?: (value: string) => string;
|
26
|
+
/**
|
27
|
+
* Helper text to show below the input. If `"errorText"` is provided that will take precedence.
|
28
|
+
*/
|
14
29
|
helperText?: string;
|
30
|
+
/**
|
31
|
+
* ID of the element, must be unique for the popover trigger.
|
32
|
+
*/
|
15
33
|
id: string;
|
34
|
+
/**
|
35
|
+
* The label for the input.
|
36
|
+
*/
|
16
37
|
label?: string;
|
38
|
+
/**
|
39
|
+
* Placeholder to display if `selectedValue` is empty.
|
40
|
+
*/
|
17
41
|
placeholder?: string;
|
42
|
+
/**
|
43
|
+
* If `true`, the user must fill in a value before submitting a form.
|
44
|
+
*/
|
18
45
|
required: boolean;
|
46
|
+
/**
|
47
|
+
* Value of the selected item.
|
48
|
+
*/
|
19
49
|
selectedValue?: string;
|
50
|
+
/**
|
51
|
+
* Will show the formatted selected item (passed in the `selected-item` slot) in the select rather than the item value.
|
52
|
+
*/
|
20
53
|
showFormattedSelectedItem?: boolean;
|
54
|
+
/**
|
55
|
+
* If `true`, the label will display an "optional" tag.
|
56
|
+
*/
|
21
57
|
showOptionalLabel: boolean;
|
58
|
+
/**
|
59
|
+
* Emitted when the input loses focus.
|
60
|
+
*/
|
22
61
|
cpslBlur: EventEmitter<FocusEvent>;
|
62
|
+
/**
|
63
|
+
* Emitted when the input has focus.
|
64
|
+
*/
|
23
65
|
cpslFocus: EventEmitter<FocusEvent>;
|
66
|
+
/**
|
67
|
+
* Emitted when the value changes.
|
68
|
+
*/
|
24
69
|
cpslSelectValueChange: EventEmitter<string>;
|
25
70
|
onValueChange(): void;
|
26
71
|
handleValueChange(): void;
|
@@ -1,7 +1,17 @@
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
2
2
|
export declare class CpslSelectItem {
|
3
|
+
/**
|
4
|
+
* Whether the item is selected or not.
|
5
|
+
*/
|
3
6
|
selected?: boolean;
|
7
|
+
/**
|
8
|
+
* Value of the item.
|
9
|
+
*/
|
4
10
|
value: string;
|
11
|
+
/**
|
12
|
+
* Called when item is clicked.
|
13
|
+
* @internal
|
14
|
+
*/
|
5
15
|
cpslSelectItemClick: EventEmitter<string>;
|
6
16
|
private handleItemClick;
|
7
17
|
render(): any;
|
@@ -2,11 +2,29 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { IconType } from '../../interface';
|
3
3
|
export declare class CpslSlideButton {
|
4
4
|
el: HTMLCpslSlideButtonElement;
|
5
|
+
/**
|
6
|
+
* Whether or not the component is disabled. If true, the component will display the `startText`.
|
7
|
+
*/
|
5
8
|
disabled: boolean;
|
9
|
+
/**
|
10
|
+
* The name of the ending icon to show.
|
11
|
+
*/
|
6
12
|
endIcon: IconType;
|
13
|
+
/**
|
14
|
+
* The ending text.
|
15
|
+
*/
|
7
16
|
endText: string;
|
17
|
+
/**
|
18
|
+
* The name of the starting icon to show.
|
19
|
+
*/
|
8
20
|
startIcon: IconType;
|
21
|
+
/**
|
22
|
+
* The starting text.
|
23
|
+
*/
|
9
24
|
startText: string;
|
25
|
+
/**
|
26
|
+
* The `cpslComplete` event is fired when the slider is at the end.
|
27
|
+
*/
|
10
28
|
cpslComplete: EventEmitter<boolean>;
|
11
29
|
componentDidLoad(): void;
|
12
30
|
private dragElement;
|
@@ -1,6 +1,12 @@
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
2
2
|
export declare class CpslSwitch {
|
3
|
+
/**
|
4
|
+
* Whether or not the switch is checked.
|
5
|
+
*/
|
3
6
|
checked: boolean;
|
7
|
+
/**
|
8
|
+
* Emitted when the switch state changes.
|
9
|
+
*/
|
4
10
|
cpslSwitchChanged: EventEmitter<boolean>;
|
5
11
|
private handleSwitchClick;
|
6
12
|
render(): any;
|
@@ -3,8 +3,19 @@ import { TabClickEventDetail } from './tab-interface';
|
|
3
3
|
import { TabsChangedEventDetail } from '../cpsl-tabs/tabs-interface';
|
4
4
|
export declare class CpslTab {
|
5
5
|
el: HTMLCpslTabElement;
|
6
|
+
/**
|
7
|
+
* The selected tab component
|
8
|
+
*/
|
6
9
|
selected: boolean;
|
10
|
+
/**
|
11
|
+
* A tab id must be provided for each `cpsl-tab`. It's used internally to reference
|
12
|
+
* the selected tab or by the router to switch between them.
|
13
|
+
*/
|
7
14
|
tab: string;
|
15
|
+
/**
|
16
|
+
* Emitted when tabs are clicked
|
17
|
+
* @internal
|
18
|
+
*/
|
8
19
|
cpslTabButtonClick: EventEmitter<TabClickEventDetail>;
|
9
20
|
onTabsChanged(ev: CustomEvent<TabsChangedEventDetail>): void;
|
10
21
|
onTabsInit(ev: CustomEvent<TabsChangedEventDetail>): void;
|
@@ -4,9 +4,22 @@ export declare class CpslTabs {
|
|
4
4
|
el: HTMLCpslTabsElement;
|
5
5
|
selectedTabRect?: DOMRect;
|
6
6
|
loaded: boolean;
|
7
|
+
/**
|
8
|
+
* Whether or not the tabs take the full width of their container.
|
9
|
+
*/
|
7
10
|
fullWidth?: boolean;
|
11
|
+
/**
|
12
|
+
* The selected tab component
|
13
|
+
*/
|
8
14
|
selectedTab?: string;
|
15
|
+
/**
|
16
|
+
* Emitted when a tab is changed
|
17
|
+
*/
|
9
18
|
cpslTabsChanged: EventEmitter<TabsChangedEventDetail>;
|
19
|
+
/**
|
20
|
+
* Emitted when tabs are initialized
|
21
|
+
* @internal
|
22
|
+
*/
|
10
23
|
cpslTabsInit: EventEmitter<TabsChangedEventDetail>;
|
11
24
|
updateSlider(): void;
|
12
25
|
updateTab(newValue?: string, oldValue?: string): void;
|
@@ -1,6 +1,21 @@
|
|
1
1
|
export declare class CpslText {
|
2
|
+
/**
|
3
|
+
* The color of text.
|
4
|
+
* Options are: `"primary"`, `"secondary", `"tertiary", `"subtle", `"inverted", `"error".
|
5
|
+
* Default is: `"primary"`.
|
6
|
+
*/
|
2
7
|
color?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'inverted' | 'error';
|
8
|
+
/**
|
9
|
+
* The variant of text.
|
10
|
+
* Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL".
|
11
|
+
* Default is: `"bodyM"`.
|
12
|
+
*/
|
3
13
|
variant?: 'body2XS' | 'bodyXS' | 'bodyS' | 'bodyM' | 'bodyL' | 'bodyXL' | 'headingXS' | 'headingS' | 'headingM' | 'headingL' | 'headingXL' | 'heading2XL';
|
14
|
+
/**
|
15
|
+
* The weight of text.
|
16
|
+
* Options are: `"regular"`, `"medium", `"semiBold", `"bold".
|
17
|
+
* Default is: `"regular"`.
|
18
|
+
*/
|
4
19
|
weight?: 'regular' | 'medium' | 'semiBold' | 'bold';
|
5
20
|
private get Content();
|
6
21
|
render(): any;
|
@@ -1,6 +1,12 @@
|
|
1
1
|
import { IconType } from '../../interface';
|
2
2
|
export declare class CpslTileButton {
|
3
|
+
/**
|
4
|
+
* The external source of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
5
|
+
*/
|
3
6
|
src?: string;
|
7
|
+
/**
|
8
|
+
* The name of the icon. If both `icon` and `src` are provided, `icon` will be used.
|
9
|
+
*/
|
4
10
|
icon?: IconType;
|
5
11
|
render(): any;
|
6
12
|
}
|
@@ -783,7 +783,18 @@ export namespace Components {
|
|
783
783
|
/**
|
784
784
|
* The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
|
785
785
|
*/
|
786
|
-
"variant"?:
|
786
|
+
"variant"?: | 'body2XS'
|
787
|
+
| 'bodyXS'
|
788
|
+
| 'bodyS'
|
789
|
+
| 'bodyM'
|
790
|
+
| 'bodyL'
|
791
|
+
| 'bodyXL'
|
792
|
+
| 'headingXS'
|
793
|
+
| 'headingS'
|
794
|
+
| 'headingM'
|
795
|
+
| 'headingL'
|
796
|
+
| 'headingXL'
|
797
|
+
| 'heading2XL';
|
787
798
|
/**
|
788
799
|
* The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
|
789
800
|
*/
|
@@ -1125,8 +1136,8 @@ declare global {
|
|
1125
1136
|
new (): HTMLCpslPillElement;
|
1126
1137
|
};
|
1127
1138
|
interface HTMLCpslPopoverElementEventMap {
|
1128
|
-
"cpslOpen":
|
1129
|
-
"cpslClose":
|
1139
|
+
"cpslOpen": any;
|
1140
|
+
"cpslClose": any;
|
1130
1141
|
}
|
1131
1142
|
interface HTMLCpslPopoverElement extends Components.CpslPopover, HTMLStencilElement {
|
1132
1143
|
addEventListener<K extends keyof HTMLCpslPopoverElementEventMap>(type: K, listener: (this: HTMLCpslPopoverElement, ev: CpslPopoverCustomEvent<HTMLCpslPopoverElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
@@ -2018,11 +2029,11 @@ declare namespace LocalJSX {
|
|
2018
2029
|
/**
|
2019
2030
|
* Emitted when the popover closes.
|
2020
2031
|
*/
|
2021
|
-
"onCpslClose"?: (event: CpslPopoverCustomEvent<
|
2032
|
+
"onCpslClose"?: (event: CpslPopoverCustomEvent<any>) => void;
|
2022
2033
|
/**
|
2023
2034
|
* Emitted when the popover opens.
|
2024
2035
|
*/
|
2025
|
-
"onCpslOpen"?: (event: CpslPopoverCustomEvent<
|
2036
|
+
"onCpslOpen"?: (event: CpslPopoverCustomEvent<any>) => void;
|
2026
2037
|
/**
|
2027
2038
|
* Used internally to prevent select from blurring unintentionally.
|
2028
2039
|
*/
|
@@ -2236,7 +2247,18 @@ declare namespace LocalJSX {
|
|
2236
2247
|
/**
|
2237
2248
|
* The variant of text. Options are: `"body2XS"`, `"bodyXS", `"bodyS", `"bodyM", `"bodyL", `"bodyXL", `"headingXS", `"headingS", `"headingM", `"headingL", `"headingXL", `"heading2XL". Default is: `"bodyM"`.
|
2238
2249
|
*/
|
2239
|
-
"variant"?:
|
2250
|
+
"variant"?: | 'body2XS'
|
2251
|
+
| 'bodyXS'
|
2252
|
+
| 'bodyS'
|
2253
|
+
| 'bodyM'
|
2254
|
+
| 'bodyL'
|
2255
|
+
| 'bodyXL'
|
2256
|
+
| 'headingXS'
|
2257
|
+
| 'headingS'
|
2258
|
+
| 'headingM'
|
2259
|
+
| 'headingL'
|
2260
|
+
| 'headingXL'
|
2261
|
+
| 'heading2XL';
|
2240
2262
|
/**
|
2241
2263
|
* The weight of text. Options are: `"regular"`, `"medium", `"semiBold", `"bold". Default is: `"regular"`.
|
2242
2264
|
*/
|
@@ -768,6 +768,7 @@ export declare namespace JSXBase {
|
|
768
768
|
hrefLang?: string;
|
769
769
|
hreflang?: string;
|
770
770
|
media?: string;
|
771
|
+
ping?: string;
|
771
772
|
rel?: string;
|
772
773
|
target?: string;
|
773
774
|
referrerPolicy?: ReferrerPolicy;
|
@@ -794,7 +795,6 @@ export declare namespace JSXBase {
|
|
794
795
|
cite?: string;
|
795
796
|
}
|
796
797
|
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
797
|
-
autoFocus?: boolean;
|
798
798
|
disabled?: boolean;
|
799
799
|
form?: string;
|
800
800
|
formAction?: string;
|
@@ -921,8 +921,6 @@ export declare namespace JSXBase {
|
|
921
921
|
autocapitalize?: string;
|
922
922
|
autoComplete?: string;
|
923
923
|
autocomplete?: string;
|
924
|
-
autoFocus?: boolean;
|
925
|
-
autofocus?: boolean | string;
|
926
924
|
capture?: string;
|
927
925
|
checked?: boolean;
|
928
926
|
crossOrigin?: string;
|
@@ -979,8 +977,6 @@ export declare namespace JSXBase {
|
|
979
977
|
popoverTarget?: string;
|
980
978
|
}
|
981
979
|
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
982
|
-
autoFocus?: boolean;
|
983
|
-
autofocus?: boolean | string;
|
984
980
|
challenge?: string;
|
985
981
|
disabled?: boolean;
|
986
982
|
form?: string;
|
@@ -993,7 +989,6 @@ export declare namespace JSXBase {
|
|
993
989
|
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
994
990
|
form?: string;
|
995
991
|
htmlFor?: string;
|
996
|
-
htmlfor?: string;
|
997
992
|
}
|
998
993
|
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
999
994
|
value?: string | string[] | number;
|
@@ -1104,7 +1099,6 @@ export declare namespace JSXBase {
|
|
1104
1099
|
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
1105
1100
|
form?: string;
|
1106
1101
|
htmlFor?: string;
|
1107
|
-
htmlfor?: string;
|
1108
1102
|
name?: string;
|
1109
1103
|
}
|
1110
1104
|
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
@@ -1129,7 +1123,6 @@ export declare namespace JSXBase {
|
|
1129
1123
|
type?: string;
|
1130
1124
|
}
|
1131
1125
|
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
1132
|
-
autoFocus?: boolean;
|
1133
1126
|
disabled?: boolean;
|
1134
1127
|
form?: string;
|
1135
1128
|
multiple?: boolean;
|
@@ -1164,8 +1157,6 @@ export declare namespace JSXBase {
|
|
1164
1157
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
1165
1158
|
autoComplete?: string;
|
1166
1159
|
autocomplete?: string;
|
1167
|
-
autoFocus?: boolean;
|
1168
|
-
autofocus?: boolean | string;
|
1169
1160
|
cols?: number;
|
1170
1161
|
disabled?: boolean;
|
1171
1162
|
form?: string;
|
@@ -1218,6 +1209,8 @@ export declare namespace JSXBase {
|
|
1218
1209
|
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
1219
1210
|
innerHTML?: string;
|
1220
1211
|
accessKey?: string;
|
1212
|
+
autoFocus?: boolean;
|
1213
|
+
autofocus?: boolean | string;
|
1221
1214
|
class?: string | {
|
1222
1215
|
[className: string]: boolean;
|
1223
1216
|
};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { Theme } from '../../interface';
|
2
|
-
export declare const generateBorderRadii: ({ borderRadius, customBorderRadii }: Pick<Theme, 'borderRadius' | 'customBorderRadii'>) => void;
|
2
|
+
export declare const generateBorderRadii: ({ borderRadius, customBorderRadii, }: Pick<Theme, 'borderRadius' | 'customBorderRadii'>) => void;
|
@@ -4,4 +4,4 @@ export type Palette = {
|
|
4
4
|
backgroundColors: string[];
|
5
5
|
isDarkBackground: boolean;
|
6
6
|
};
|
7
|
-
export declare const generatePalette: ({ foregroundColor, backgroundColor, customPalette }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'customPalette'>) => Palette;
|
7
|
+
export declare const generatePalette: ({ foregroundColor, backgroundColor, customPalette, }: Pick<Theme, 'foregroundColor' | 'backgroundColor' | 'customPalette'>) => Palette;
|
@@ -1,2 +1,6 @@
|
|
1
1
|
import { Theme } from '../../interface';
|
2
|
+
/**
|
3
|
+
* Generates css theme variables.
|
4
|
+
* @returns @boolean Whether background is dark or not.
|
5
|
+
*/
|
2
6
|
export declare const generateTheme: ({ foregroundColor, backgroundColor, font, customPalette, borderRadius, customFontSizes, customBorderRadii, }: Theme) => boolean;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@usecapsule/core-components",
|
3
|
-
"version": "3.2.0
|
3
|
+
"version": "3.2.0",
|
4
4
|
"description": "Capsule Core Components",
|
5
5
|
"main": "dist/index.cjs.js",
|
6
6
|
"module": "dist/index.js",
|
@@ -21,7 +21,6 @@
|
|
21
21
|
"test": "stencil test --spec --e2e",
|
22
22
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
23
23
|
"generate": "stencil generate",
|
24
|
-
"lint": "eslint src/**/*{.ts,.tsx}",
|
25
24
|
"build:css": "sass --embed-sources src/css:./css",
|
26
25
|
"build:assets": "ts-node -T ./scripts/buildAssets.ts",
|
27
26
|
"storybook": "storybook dev -p 6006",
|
@@ -37,7 +36,7 @@
|
|
37
36
|
},
|
38
37
|
"devDependencies": {
|
39
38
|
"@babel/plugin-transform-react-jsx": "^7.24.7",
|
40
|
-
"@
|
39
|
+
"@chromatic-com/storybook": "^1.6.0",
|
41
40
|
"@stencil/react-output-target": "^0.5.3",
|
42
41
|
"@stencil/sass": "^3.0.10",
|
43
42
|
"@storybook/addon-essentials": "^8.1.11",
|
@@ -51,20 +50,15 @@
|
|
51
50
|
"@storybook/test": "^8.1.11",
|
52
51
|
"@types/jest": "^29.5.6",
|
53
52
|
"@types/node": "^16.18.11",
|
54
|
-
"@typescript-eslint/eslint-plugin": "^7.1.1",
|
55
|
-
"@typescript-eslint/parser": "^7.1.1",
|
56
|
-
"eslint": "^8.57.0",
|
57
|
-
"eslint-plugin-react": "^7.34.0",
|
58
|
-
"eslint-plugin-storybook": "^0.8.0",
|
59
53
|
"jest": "^29.7.0",
|
60
54
|
"jest-cli": "^29.7.0",
|
61
55
|
"puppeteer": "^21.9.0",
|
62
56
|
"rollup-plugin-dotenv": "^0.5.0",
|
63
|
-
"rollup-plugin-node-polyfills": "^0.2.1",
|
64
57
|
"sass": "^1.71.1",
|
65
58
|
"stencil-inline-svg": "^1.1.0",
|
66
59
|
"storybook": "^8.1.11",
|
60
|
+
"storybook-addon-stencil": "^0.2.1",
|
67
61
|
"ts-node": "^10.9.2"
|
68
62
|
},
|
69
|
-
"gitHead": "
|
63
|
+
"gitHead": "2f9f59b43c147849f37d50a136970f56dce05be9"
|
70
64
|
}
|
package/readme.md
CHANGED
@@ -1,3 +1,48 @@
|
|
1
|
-
#
|
1
|
+
# component-library
|
2
2
|
|
3
|
-
|
3
|
+
Cross-framework common component library
|
4
|
+
|
5
|
+
## Install
|
6
|
+
|
7
|
+
```bash
|
8
|
+
yarn install
|
9
|
+
```
|
10
|
+
|
11
|
+
## Running
|
12
|
+
|
13
|
+
The component examples can either be run in React or bare HTML.
|
14
|
+
|
15
|
+
### React
|
16
|
+
|
17
|
+
```bash
|
18
|
+
yarn build
|
19
|
+
yarn start-react
|
20
|
+
```
|
21
|
+
|
22
|
+
### HTML
|
23
|
+
|
24
|
+
```bash
|
25
|
+
yarn start-html
|
26
|
+
```
|
27
|
+
|
28
|
+
## Building
|
29
|
+
|
30
|
+
This will build the component libraries for both web components and React.
|
31
|
+
|
32
|
+
```bash
|
33
|
+
yarn build
|
34
|
+
```
|
35
|
+
|
36
|
+
## Generating New Components
|
37
|
+
|
38
|
+
This should be used when adding new components to the library. It will initialize the component, test and styles.
|
39
|
+
|
40
|
+
Once run, follow the prompts to name your component.
|
41
|
+
|
42
|
+
> **Note** Components **MUST** begin the the `cpsl-` string in order for them to pass linting.
|
43
|
+
|
44
|
+
> **Note** The styles should be changed to Sass once the component is generated. Rename the generated `css` file to `scss` and update the import in the component.
|
45
|
+
|
46
|
+
```bash
|
47
|
+
yarn generate
|
48
|
+
```
|