@peektravel/app-utilities 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/index.cjs +9 -3
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +2 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.js +9 -3
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/odyssey.css +1 -0
- package/package.json +1 -1
package/dist/ui/index.cjs
CHANGED
|
@@ -811,13 +811,19 @@ define("ody-alert", OdyAlert);
|
|
|
811
811
|
|
|
812
812
|
// src/ui/components/card.ts
|
|
813
813
|
var OdyCard = class extends OdyElement {
|
|
814
|
-
static observedAttributes = ["bar-color", "clickable"];
|
|
814
|
+
static observedAttributes = ["bar-color", "clickable", "no-bar"];
|
|
815
815
|
render() {
|
|
816
|
+
const noBar = this.flag("no-bar");
|
|
816
817
|
const barColor = this.attr("bar-color");
|
|
817
818
|
const barStyle = barColor ? ` style="background-color:${this.esc(barColor)}"` : "";
|
|
818
|
-
const cls = classes(
|
|
819
|
+
const cls = classes(
|
|
820
|
+
"ody-card__container",
|
|
821
|
+
this.flag("clickable") && "ody-card--clickable",
|
|
822
|
+
noBar && "ody-card--no-bar"
|
|
823
|
+
);
|
|
824
|
+
const bar = noBar ? "" : `<div class="ody-card__container__bar"${barStyle}></div>`;
|
|
819
825
|
this.mount(
|
|
820
|
-
`<div class="${cls}" style="display:flex"
|
|
826
|
+
`<div class="${cls}" style="display:flex">` + bar + `<div class="ody-card__container__content" data-ody-slot></div></div>`
|
|
821
827
|
);
|
|
822
828
|
}
|
|
823
829
|
};
|