@muibook/components 5.0.0 → 5.2.0
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.
|
@@ -20,7 +20,7 @@ class l extends HTMLElement {
|
|
|
20
20
|
padding: 0;
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
border-radius: var(--dialog-radius);
|
|
23
|
-
background: var(--
|
|
23
|
+
background: var(--dialog-background);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
dialog,
|
|
@@ -94,10 +94,10 @@ class l extends HTMLElement {
|
|
|
94
94
|
this.dialogEl && (this.hasAttribute("open") ? this.dialogEl.open || this.dialogEl.showModal() : this.dialogEl.open && this.dialogEl.close());
|
|
95
95
|
}
|
|
96
96
|
open() {
|
|
97
|
-
this.setAttribute("open", "");
|
|
97
|
+
this.setAttribute("open", ""), this.dispatchEvent(new CustomEvent("mui-dialog-open", { bubbles: !0, composed: !0 }));
|
|
98
98
|
}
|
|
99
99
|
close() {
|
|
100
|
-
this.removeAttribute("open");
|
|
100
|
+
this.removeAttribute("open"), this.dispatchEvent(new CustomEvent("mui-dialog-close", { bubbles: !0, composed: !0 }));
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
customElements.get("mui-dialog") || customElements.define("mui-dialog", l);
|
|
@@ -140,7 +140,7 @@ class p extends HTMLElement {
|
|
|
140
140
|
height: 100dvh;
|
|
141
141
|
z-index: 110;
|
|
142
142
|
transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
|
|
143
|
-
background: var(--
|
|
143
|
+
background: var(--drawer-background);
|
|
144
144
|
border-left: var(--border-thin);
|
|
145
145
|
width: ${t};
|
|
146
146
|
transform: translateX(100%);
|
|
@@ -384,10 +384,10 @@ class p extends HTMLElement {
|
|
|
384
384
|
s.style.display = "grid", t === "push" ? s.style.gridTemplateColumns = a === "left" ? e ? `${i} auto` : "0 auto" : e ? `auto ${i}` : "auto 0" : t === "persistent" && (s.style.gridTemplateColumns = a === "left" ? `${i} auto` : `auto ${i}`);
|
|
385
385
|
}
|
|
386
386
|
open() {
|
|
387
|
-
this.setAttribute("open", "");
|
|
387
|
+
this.setAttribute("open", ""), this.dispatchEvent(new CustomEvent("mui-drawer-open", { bubbles: !0, composed: !0 }));
|
|
388
388
|
}
|
|
389
389
|
close() {
|
|
390
|
-
this.removeAttribute("open");
|
|
390
|
+
this.removeAttribute("open"), this.dispatchEvent(new CustomEvent("mui-drawer-close", { bubbles: !0, composed: !0 }));
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
customElements.get("mui-drawer") || customElements.define("mui-drawer", p);
|
|
@@ -421,6 +421,12 @@ html[data-theme="light"] {
|
|
|
421
421
|
--stepper-background-inactive: var(--white);
|
|
422
422
|
--stepper-border-color: var(--stepper-color);
|
|
423
423
|
--stepper-text-color-active: var(--stepper-color);
|
|
424
|
+
|
|
425
|
+
/* Dialog */
|
|
426
|
+
--dialog-background: var(--white);
|
|
427
|
+
|
|
428
|
+
/* Drawer */
|
|
429
|
+
--drawer-background: var(--white);
|
|
424
430
|
}
|
|
425
431
|
|
|
426
432
|
/* ==================================================================================================== */
|
|
@@ -640,6 +646,12 @@ html[data-theme="dark"] {
|
|
|
640
646
|
--stepper-background-inactive: var(--black);
|
|
641
647
|
--stepper-border-color: var(--stepper-color);
|
|
642
648
|
--stepper-text-color-active: var(--stepper-color);
|
|
649
|
+
|
|
650
|
+
/* Dialog */
|
|
651
|
+
--dialog-background: var(--grey-800);
|
|
652
|
+
|
|
653
|
+
/* Drawer */
|
|
654
|
+
--drawer-background: var(--grey-800);
|
|
643
655
|
}
|
|
644
656
|
|
|
645
657
|
/* ==================================================================================================== */
|