UNPKG

test-isc

Version:

An Ionic component similar to Ionic Select, that allows to search items, including async search, group, add, edit, delete items, and much more.

28 lines (27 loc) 2.66 kB
import { r as registerInstance, h, H as Host } from './index-b6f64b02.js'; import { g as getIonMode } from './ionic-global-5d790111.js'; import { c as createColorClasses } from './theme-74c22054.js'; var cardHeaderIosCss = ":host{--background:transparent;--color:inherit;display:block;position:relative;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{padding-left:20px;padding-right:20px;padding-top:20px;padding-bottom:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px)}}"; var cardHeaderMdCss = ":host{--background:transparent;--color:inherit;display:block;position:relative;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{padding-left:16px;padding-right:16px;padding-top:16px;padding-bottom:16px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}"; var CardHeader = /** @class */ (function () { function CardHeader(hostRef) { registerInstance(this, hostRef); /** * If `true`, the card header will be translucent. * Only applies when the mode is `"ios"` and the device supports * [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility). */ this.translucent = false; } CardHeader.prototype.render = function () { var _a; var mode = getIonMode(this); return (h(Host, { class: Object.assign(Object.assign({}, createColorClasses(this.color)), (_a = { 'card-header-translucent': this.translucent, 'ion-inherit-color': true }, _a[mode] = true, _a)) }, h("slot", null))); }; return CardHeader; }()); CardHeader.style = { /*STENCIL:MODE:ios*/ ios: cardHeaderIosCss, /*STENCIL:MODE:md*/ md: cardHeaderMdCss }; export { CardHeader as ion_card_header };