@netless/telebox-insider 1.0.0-alpha.23 → 1.0.0-alpha.26
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/TeleBox/index.d.ts +1 -0
- package/dist/style.css +17 -0
- package/dist/telebox-insider.cjs.js +8 -4
- package/dist/telebox-insider.cjs.js.map +1 -1
- package/dist/telebox-insider.es.js +8 -4
- package/dist/telebox-insider.es.js.map +1 -1
- package/package.json +1 -1
- package/src/TeleBox/index.ts +8 -2
- package/src/TeleBox/style.scss +6 -0
- package/src/TeleBox/style.shadow.scss +12 -0
package/package.json
CHANGED
package/src/TeleBox/index.ts
CHANGED
|
@@ -65,6 +65,7 @@ type PropsValConfig = {
|
|
|
65
65
|
readonly: RequiredTeleBoxConfig["readonly$"];
|
|
66
66
|
rootRect: RequiredTeleBoxConfig["rootRect$"];
|
|
67
67
|
managerStageRect: RequiredTeleBoxConfig["managerStageRect$"];
|
|
68
|
+
managerStageRatio: RequiredTeleBoxConfig["managerStageRatio$"];
|
|
68
69
|
defaultBoxStageStyle: RequiredTeleBoxConfig["defaultBoxStageStyle$"];
|
|
69
70
|
defaultBoxBodyStyle: RequiredTeleBoxConfig["defaultBoxBodyStyle$"];
|
|
70
71
|
collectorRect: RequiredTeleBoxConfig["collectorRect$"];
|
|
@@ -240,6 +241,7 @@ export class TeleBox {
|
|
|
240
241
|
readonly: readonly$,
|
|
241
242
|
rootRect: rootRect$,
|
|
242
243
|
managerStageRect: managerStageRect$,
|
|
244
|
+
managerStageRatio: managerStageRatio$,
|
|
243
245
|
defaultBoxBodyStyle: defaultBoxBodyStyle$,
|
|
244
246
|
defaultBoxStageStyle: defaultBoxStageStyle$,
|
|
245
247
|
collectorRect: collectorRect$,
|
|
@@ -857,6 +859,10 @@ export class TeleBox {
|
|
|
857
859
|
this.$main = $main;
|
|
858
860
|
$boxMain.appendChild($main);
|
|
859
861
|
|
|
862
|
+
const $quarantineOuter = document.createElement("div");
|
|
863
|
+
$quarantineOuter.className = this.wrapClassName("quarantine-outer");
|
|
864
|
+
$main.appendChild($quarantineOuter);
|
|
865
|
+
|
|
860
866
|
const $quarantine = document.createElement("div");
|
|
861
867
|
$quarantine.className = this.wrapClassName("quarantine");
|
|
862
868
|
$quarantine.appendChild($body);
|
|
@@ -867,10 +873,10 @@ export class TeleBox {
|
|
|
867
873
|
const $shadowStyle = document.createElement("style");
|
|
868
874
|
$shadowStyle.textContent = shadowStyles;
|
|
869
875
|
$quarantine.insertBefore($shadowStyle, $quarantine.firstChild);
|
|
870
|
-
const shadow = $
|
|
876
|
+
const shadow = $quarantineOuter.attachShadow({ mode: "open" });
|
|
871
877
|
shadow.appendChild($quarantine);
|
|
872
878
|
} else {
|
|
873
|
-
$
|
|
879
|
+
$quarantineOuter.appendChild($quarantine);
|
|
874
880
|
}
|
|
875
881
|
|
|
876
882
|
this._renderResizeHandlers();
|
package/src/TeleBox/style.scss
CHANGED
|
@@ -51,6 +51,9 @@
|
|
|
51
51
|
display: flex;
|
|
52
52
|
flex-direction: column;
|
|
53
53
|
|
|
54
|
+
@include v(color, box-footer-color, $titlebar-color);
|
|
55
|
+
@include v(background-color, box-footer-background, $titlebar-background);
|
|
56
|
+
|
|
54
57
|
&::before {
|
|
55
58
|
content: "";
|
|
56
59
|
display: block;
|
|
@@ -85,4 +88,13 @@
|
|
|
85
88
|
$manager-stage-shadow-dark
|
|
86
89
|
);
|
|
87
90
|
}
|
|
91
|
+
|
|
92
|
+
.#{$namespace}-footer-wrap {
|
|
93
|
+
@include v(color, box-footer-color-dark, $titlebar-color-dark);
|
|
94
|
+
@include v(
|
|
95
|
+
background-color,
|
|
96
|
+
box-footer-background-dark,
|
|
97
|
+
$titlebar-background-dark
|
|
98
|
+
);
|
|
99
|
+
}
|
|
88
100
|
}
|