@creaditor/newsletter-starterkit 1.0.62 → 1.0.64
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/3847.creaditor.bundle.js +173 -116
- package/dist/3847.creaditor.bundle.js.gz +0 -0
- package/dist/5156.creaditor.bundle.js +1 -1
- package/dist/5156.creaditor.bundle.js.gz +0 -0
- package/dist/5909.creaditor.bundle.js +1 -1
- package/dist/5909.creaditor.bundle.js.gz +0 -0
- package/dist/7209.creaditor.bundle.js +32 -30
- package/dist/7209.creaditor.bundle.js.gz +0 -0
- package/dist/767.creaditor.bundle.js +26 -70
- package/dist/767.creaditor.bundle.js.gz +0 -0
- package/dist/8547.creaditor.bundle.js +1 -1
- package/dist/8547.creaditor.bundle.js.gz +0 -0
- package/dist/8646.creaditor.bundle.js +36 -37
- package/dist/8646.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor.bundle.js +520 -190
- package/dist/creaditor.bundle.js.gz +0 -0
- package/dist/service-worker.js +1 -1
- package/dist/service-worker.js.gz +0 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8646],{48646(e,t,
|
|
1
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[8646],{48646(e,t,o){o.r(t),o.d(t,{Drawer:()=>r});var i=o(59929),s=o(69600);class r extends i.WF{constructor(){super(),this.closeEvent=void 0,this.openEvent=void 0,this.backdropColor="transparent",this.width="600px",this.obKeyDown=this.obKeyDown.bind(this),this.closeEvent=new UIEvent("close",{view:window,bubbles:!0,cancelable:!0}),this.openEvent=new UIEvent("open",{view:window,bubbles:!0,cancelable:!0})}onClickOutside(e){let{target:t}=e;t.closest(".drawer")||t.closest("cdtr-drawer")||this.onClose()}onClose(){const e=this.shadowRoot.querySelector(".drawer");e&&e.classList.add("slide-out"),setTimeout(()=>{this.dispatchEvent(this.closeEvent),e&&e.classList.remove("slide-out"),this.opened=!1,this.requestUpdate()},200)}obKeyDown(e){"Escape"===e.key?this.onClose():"m"===e.key&&e.ctrlKey&&this.dispatchEvent(this.openEvent)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.obKeyDown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.obKeyDown)}render(){return this.style.zIndex=(0,s.A)(),this.opened?i.qy`<div
|
|
2
2
|
@dragover=${e=>{e.preventDefault(),this.onClose()}}
|
|
3
3
|
@mousedown=${this.onClickOutside}
|
|
4
4
|
.style="background:${this.backdropColor};z-index:${(0,s.A)()};${this.backdropStyle};"
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
class="drawer" role="navigation"
|
|
11
11
|
>
|
|
12
12
|
<div class="header">
|
|
13
|
-
<
|
|
13
|
+
<button
|
|
14
|
+
class="close-button"
|
|
14
15
|
@click=${this.onClose}
|
|
15
|
-
style="padding:0;z-index:3;min-width:32px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;margin-inline-start:8px;"
|
|
16
16
|
>
|
|
17
17
|
<cdtr-close-icon class="close-icon" icon="close">
|
|
18
18
|
</cdtr-close-icon>
|
|
19
|
-
</
|
|
19
|
+
</button>
|
|
20
20
|
<h1 class="header-text">
|
|
21
21
|
<lang-text text="${this.headerText}"></lang-text>
|
|
22
22
|
</h1>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<slot></slot>
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
|
-
</div>`:null}}
|
|
28
|
+
</div>`:null}}r.properties={portal:{type:Object},opened:{type:Boolean,reflect:!0},backdropColor:{type:String},width:{type:String},headerText:{type:String},backdropStyle:{},dim:{type:Boolean,reflect:!0}},r.styles=i.AH`
|
|
29
29
|
.backdrop {
|
|
30
30
|
width: 100vw;
|
|
31
31
|
height: 100vh;
|
|
@@ -42,42 +42,34 @@
|
|
|
42
42
|
font-size: var(--text-lg, 16px);
|
|
43
43
|
font-weight: 600;
|
|
44
44
|
font-family: var(--font-sans, -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif);
|
|
45
|
-
text-align: right;
|
|
46
|
-
display: block;
|
|
47
|
-
width: 95%;
|
|
48
|
-
position: absolute;
|
|
49
|
-
top: 50%;
|
|
50
|
-
left: 0;
|
|
51
|
-
transform: translateY(-50%);
|
|
52
|
-
padding: 0 var(--space-4, 16px);
|
|
53
|
-
direction: var(--direction-locale);
|
|
54
|
-
box-sizing: border-box;
|
|
55
45
|
color: var(--color-text, #1a1a1f);
|
|
46
|
+
direction: var(--direction-locale, ltr);
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
text-overflow: ellipsis;
|
|
49
|
+
white-space: nowrap;
|
|
56
50
|
}
|
|
57
51
|
.drawer {
|
|
58
|
-
width: ${500}px;
|
|
59
52
|
height: 100vh;
|
|
60
53
|
background: var(--color-bg, #fff);
|
|
61
54
|
position: absolute;
|
|
62
55
|
right: 0;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
animation: slide-in 0.5s forwards;
|
|
56
|
+
border-left: 1px solid var(--color-border, #e8e8ec);
|
|
57
|
+
transition: width var(--duration-normal, 200ms) var(--ease-default, cubic-bezier(0.4, 0, 0.2, 1));
|
|
58
|
+
box-shadow: var(--shadow-lg, 0 12px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04));
|
|
59
|
+
animation: slide-in var(--duration-normal, 200ms) var(--ease-out, cubic-bezier(0, 0, 0.2, 1)) forwards;
|
|
68
60
|
}
|
|
69
61
|
.slide-out {
|
|
70
|
-
|
|
71
|
-
-webkit-animation-delay: 2s;
|
|
72
|
-
animation: slide-out 0.5s forwards;
|
|
62
|
+
animation: slide-out 160ms var(--ease-default, cubic-bezier(0.4, 0, 0.2, 1)) forwards;
|
|
73
63
|
}
|
|
74
64
|
.header {
|
|
75
65
|
height: 48px;
|
|
76
66
|
width: 100%;
|
|
67
|
+
padding: 0 var(--space-4, 16px);
|
|
77
68
|
border-bottom: 1px solid var(--color-border, #e8e8ec);
|
|
78
69
|
display: flex;
|
|
79
70
|
align-items: center;
|
|
80
|
-
|
|
71
|
+
justify-content: space-between;
|
|
72
|
+
gap: var(--space-2, 8px);
|
|
81
73
|
box-sizing: border-box;
|
|
82
74
|
}
|
|
83
75
|
.body {
|
|
@@ -87,33 +79,40 @@
|
|
|
87
79
|
}
|
|
88
80
|
.close-button {
|
|
89
81
|
cursor: pointer;
|
|
82
|
+
flex: 0 0 auto;
|
|
83
|
+
width: 32px;
|
|
84
|
+
height: 32px;
|
|
85
|
+
border: 0;
|
|
86
|
+
padding: 0;
|
|
87
|
+
border-radius: var(--radius-sm, 6px);
|
|
88
|
+
background: transparent;
|
|
89
|
+
color: var(--color-text-muted, #888888);
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
transition: background var(--duration-fast, 120ms) var(--ease-default, cubic-bezier(0.4, 0, 0.2, 1));
|
|
90
94
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
transform: rotate(180deg);
|
|
94
|
-
}
|
|
95
|
+
.close-button:hover {
|
|
96
|
+
background: var(--color-bg-muted, #f4f4f6);
|
|
95
97
|
}
|
|
96
98
|
@keyframes slide-in {
|
|
97
99
|
0% {
|
|
98
100
|
opacity: 0;
|
|
99
|
-
right:
|
|
101
|
+
right: -100%;
|
|
100
102
|
}
|
|
101
103
|
100% {
|
|
104
|
+
opacity: 1;
|
|
102
105
|
right: 0;
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
|
-
@-webkit-keyframes slide-out {
|
|
106
|
-
100% {
|
|
107
|
-
transform: rotate(180deg);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
108
|
@keyframes slide-out {
|
|
111
109
|
0% {
|
|
112
110
|
opacity: 1;
|
|
113
111
|
right: 0;
|
|
114
112
|
}
|
|
115
113
|
100% {
|
|
116
|
-
|
|
114
|
+
opacity: 0;
|
|
115
|
+
right: -100%;
|
|
117
116
|
}
|
|
118
117
|
}
|
|
119
|
-
`,customElements.define("cdtr-drawer",
|
|
118
|
+
`,customElements.define("cdtr-drawer",r)}}]);
|
|
Binary file
|