UNPKG

@zoff-tech/zt-bottom-drawer

Version:
35 lines (28 loc) 1.97 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-d7fcb92f.js'); const theme = require('@utils/theme'); const ionicGlobal = require('./ionic-global-70a62cb2.js'); const cardHeaderIosCss = ":host{--background:transparent;--color:inherit;display:flex;position:relative;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:16px;flex-direction:column-reverse}@supports (backdrop-filter: blur(0)){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);backdrop-filter:saturate(180%) blur(30px)}}"; const cardHeaderMdCss = ":host{--background:transparent;--color:inherit;display:flex;position:relative;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}"; const CardHeader = class { constructor(hostRef) { index.registerInstance(this, hostRef); this.color = undefined; this.translucent = false; } render() { const mode = ionicGlobal.getIonMode(this); return (index.h(index.Host, { class: theme.createColorClasses(this.color, { 'card-header-translucent': this.translucent, 'ion-inherit-color': true, [mode]: true, }) }, index.h("slot", null))); } }; CardHeader.style = { ios: cardHeaderIosCss, md: cardHeaderMdCss }; exports.ion_card_header = CardHeader; //# sourceMappingURL=ion-card-header.cjs.entry.js.map