@peektravel/app-utilities 0.1.2 → 0.1.5
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 +18 -3
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.cts +45 -1
- package/dist/ui/index.d.ts +45 -1
- package/dist/ui/index.js +18 -4
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/odyssey.css +6 -0
- package/docs/ui.md +53 -2
- 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
|
};
|
|
@@ -1260,6 +1266,14 @@ define("ody-two-column-main", OdyTwoColumnMain);
|
|
|
1260
1266
|
define("ody-two-column-secondary", OdyTwoColumnSecondary);
|
|
1261
1267
|
define("ody-two-column-secondary-header", OdyTwoColumnSecondaryHeader);
|
|
1262
1268
|
|
|
1269
|
+
// src/ui/components/page-container.ts
|
|
1270
|
+
var OdyPageContainer = class extends OdyElement {
|
|
1271
|
+
render() {
|
|
1272
|
+
this.mount(`<div class="ody-page-container" data-ody-slot></div>`);
|
|
1273
|
+
}
|
|
1274
|
+
};
|
|
1275
|
+
define("ody-page-container", OdyPageContainer);
|
|
1276
|
+
|
|
1263
1277
|
// src/ui/components/collapsible-section.ts
|
|
1264
1278
|
var OdyCollapsibleSection = class extends OdyElement {
|
|
1265
1279
|
static observedAttributes = ["header-text", "secondary-header-text", "icon", "expanded"];
|
|
@@ -3877,6 +3891,7 @@ exports.OdyMessage = OdyMessage;
|
|
|
3877
3891
|
exports.OdyModal = OdyModal;
|
|
3878
3892
|
exports.OdyMoneyInput = OdyMoneyInput;
|
|
3879
3893
|
exports.OdyOption = OdyOption;
|
|
3894
|
+
exports.OdyPageContainer = OdyPageContainer;
|
|
3880
3895
|
exports.OdyPanel = OdyPanel;
|
|
3881
3896
|
exports.OdyPercentageInput = OdyPercentageInput;
|
|
3882
3897
|
exports.OdyPopover = OdyPopover;
|