@flonix/ig-embed 0.1.0 → 0.1.1
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/flonix-ig.global.js +11 -2
- package/dist/flonix-ig.global.js.map +1 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -871,6 +871,15 @@ var STYLES = `
|
|
|
871
871
|
container-type: inline-size;
|
|
872
872
|
}
|
|
873
873
|
|
|
874
|
+
/* Borderless / full-bleed: blends into the host page and fills its container.
|
|
875
|
+
Only the OUTER chrome is removed \u2014 internal borders (tiles, inputs) stay. */
|
|
876
|
+
.flxig-root.flxig-plain {
|
|
877
|
+
border: none;
|
|
878
|
+
border-radius: 0;
|
|
879
|
+
padding: 0;
|
|
880
|
+
background: transparent;
|
|
881
|
+
}
|
|
882
|
+
|
|
874
883
|
/* ---- typography ---- */
|
|
875
884
|
.flxig-h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
|
|
876
885
|
.flxig-h2 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; margin: 0; }
|
|
@@ -1041,7 +1050,9 @@ var Widget = class {
|
|
|
1041
1050
|
el("style", { text: `${buildThemeVars(theme)}
|
|
1042
1051
|
${STYLES}` })
|
|
1043
1052
|
);
|
|
1044
|
-
this.root = el("div", {
|
|
1053
|
+
this.root = el("div", {
|
|
1054
|
+
class: config.appearance === "plain" ? "flxig-root flxig-plain" : "flxig-root"
|
|
1055
|
+
});
|
|
1045
1056
|
this.content = el("div", { class: "flxig-content" });
|
|
1046
1057
|
this.root.appendChild(this.content);
|
|
1047
1058
|
this.shadow.appendChild(this.root);
|
|
@@ -1286,7 +1297,7 @@ function createMockTransport(options = {}) {
|
|
|
1286
1297
|
}
|
|
1287
1298
|
|
|
1288
1299
|
// src/index.ts
|
|
1289
|
-
var version = "0.1.
|
|
1300
|
+
var version = "0.1.1";
|
|
1290
1301
|
function mount(target, config) {
|
|
1291
1302
|
var _a, _b, _c;
|
|
1292
1303
|
const element = typeof target === "string" ? document.querySelector(target) : target;
|