@creaditor/newsletter-starterkit 1.0.54 → 1.0.55

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.
Files changed (43) hide show
  1. package/dist/1260.creaditor.bundle.js +43 -6
  2. package/dist/1260.creaditor.bundle.js.gz +0 -0
  3. package/dist/1271.creaditor.bundle.js +1 -439
  4. package/dist/1271.creaditor.bundle.js.gz +0 -0
  5. package/dist/1403.creaditor.bundle.js +110 -0
  6. package/dist/1403.creaditor.bundle.js.gz +0 -0
  7. package/dist/1565.creaditor.bundle.js +106 -105
  8. package/dist/1565.creaditor.bundle.js.gz +0 -0
  9. package/dist/168.creaditor.bundle.js +4 -4
  10. package/dist/168.creaditor.bundle.js.gz +0 -0
  11. package/dist/2384.creaditor.bundle.js +4 -4
  12. package/dist/2384.creaditor.bundle.js.gz +0 -0
  13. package/dist/4186.creaditor.bundle.js +1 -1
  14. package/dist/4186.creaditor.bundle.js.gz +0 -0
  15. package/dist/4569.creaditor.bundle.js +64 -257
  16. package/dist/4569.creaditor.bundle.js.gz +0 -0
  17. package/dist/4819.creaditor.bundle.js +1 -1
  18. package/dist/4819.creaditor.bundle.js.gz +0 -0
  19. package/dist/5340.creaditor.bundle.js +7 -6
  20. package/dist/5340.creaditor.bundle.js.gz +0 -0
  21. package/dist/574.creaditor.bundle.js +5 -5
  22. package/dist/574.creaditor.bundle.js.gz +0 -0
  23. package/dist/5926.creaditor.bundle.js +1 -1
  24. package/dist/5926.creaditor.bundle.js.gz +0 -0
  25. package/dist/763.creaditor.bundle.js +1 -1
  26. package/dist/763.creaditor.bundle.js.gz +0 -0
  27. package/dist/7789.creaditor.bundle.js +25 -0
  28. package/dist/7789.creaditor.bundle.js.LICENSE.txt +32 -0
  29. package/dist/7789.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  30. package/dist/7789.creaditor.bundle.js.gz +0 -0
  31. package/dist/7937.creaditor.bundle.js +1 -1
  32. package/dist/7937.creaditor.bundle.js.gz +0 -0
  33. package/dist/8173.creaditor.bundle.js +1 -1
  34. package/dist/8173.creaditor.bundle.js.gz +0 -0
  35. package/dist/9158.creaditor.bundle.js +613 -0
  36. package/dist/9158.creaditor.bundle.js.LICENSE.txt +10 -0
  37. package/dist/9158.creaditor.bundle.js.LICENSE.txt.gz +0 -0
  38. package/dist/9158.creaditor.bundle.js.gz +0 -0
  39. package/dist/creaditor.bundle.js +1349 -600
  40. package/dist/creaditor.bundle.js.gz +0 -0
  41. package/dist/service-worker.js +1 -1
  42. package/dist/service-worker.js.gz +0 -0
  43. package/package.json +1 -1
@@ -0,0 +1,110 @@
1
+ "use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[1403],{71403(e,t,a){a.r(t),a.d(t,{ToastProvider:()=>s});var i=a(59929);class s extends i.WF{constructor(){super(),this.text="",this.variant="default",this.global=!0,this._open=!1,this._leaving=!1,this._hideTimer=null,this._leaveTimer=null}connectedCallback(){super.connectedCallback(),this.global&&(window.snackbar=e=>this.show(e))}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this._hideTimer),clearTimeout(this._leaveTimer)}show(){let{text:e="",timeout:t=3e3,variant:a="default"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};clearTimeout(this._hideTimer),clearTimeout(this._leaveTimer),this.text=e,this.variant=a,this.setAttribute("data-variant",a),this._leaving=!1,this._open=!0,this._hideTimer=setTimeout(()=>this.hide(),parseInt(t,10)||3e3)}hide(){this._open&&(this._leaving=!0,this._leaveTimer=setTimeout(()=>{this._open=!1,this._leaving=!1},220))}render(){return this._open?i.qy`
2
+ <div class="toast ${this._leaving?"leave":"enter"}" role="status" aria-live="polite">
3
+ <span class="accent"></span>
4
+ <span class="msg">${this.text}</span>
5
+ </div>
6
+ `:i.qy``}}s.properties={text:{type:String},variant:{type:String},global:{type:Boolean},_open:{state:!0},_leaving:{state:!0}},s.styles=i.AH`
7
+ :host {
8
+ position: fixed;
9
+ left: 24px;
10
+ bottom: 24px;
11
+ z-index: 2147483000;
12
+ pointer-events: none;
13
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
14
+ Helvetica, Arial, sans-serif;
15
+ }
16
+
17
+ .toast {
18
+ display: inline-flex;
19
+ align-items: center;
20
+ gap: 12px;
21
+ max-width: min(92vw, 460px);
22
+ padding: 13px 20px 13px 16px;
23
+ box-sizing: border-box;
24
+ pointer-events: auto;
25
+ color: #f5f7fa;
26
+ font-size: 14px;
27
+ line-height: 1.45;
28
+ font-weight: 500;
29
+ letter-spacing: 0.1px;
30
+ border-radius: 14px;
31
+ /* glassy dark surface with a subtle top-light gradient */
32
+ background: linear-gradient(
33
+ 180deg,
34
+ rgba(38, 46, 62, 0.96) 0%,
35
+ rgba(23, 29, 41, 0.96) 100%
36
+ );
37
+ border: 1px solid rgba(255, 255, 255, 0.08);
38
+ -webkit-backdrop-filter: blur(12px) saturate(140%);
39
+ backdrop-filter: blur(12px) saturate(140%);
40
+ /* layered depth: tight ambient edge + soft lifted key shadow */
41
+ box-shadow: 0 1px 2px rgba(16, 24, 40, 0.24),
42
+ 0 12px 32px -8px rgba(16, 24, 40, 0.55),
43
+ inset 0 1px 0 rgba(255, 255, 255, 0.06);
44
+ }
45
+
46
+ /* accent dot — colour keys the variant */
47
+ .accent {
48
+ flex: none;
49
+ width: 8px;
50
+ height: 8px;
51
+ border-radius: 50%;
52
+ background: var(--accent, #6ea8fe);
53
+ box-shadow: 0 0 0 4px var(--accent-glow, rgba(110, 168, 254, 0.18));
54
+ }
55
+
56
+ .msg {
57
+ min-width: 0;
58
+ overflow: hidden;
59
+ text-overflow: ellipsis;
60
+ white-space: nowrap;
61
+ }
62
+
63
+ :host([data-variant="success"]) .toast {
64
+ --accent: #34d399;
65
+ --accent-glow: rgba(52, 211, 153, 0.2);
66
+ }
67
+ :host([data-variant="error"]) .toast {
68
+ --accent: #f87171;
69
+ --accent-glow: rgba(248, 113, 113, 0.2);
70
+ }
71
+ :host([data-variant="info"]) .toast {
72
+ --accent: #6ea8fe;
73
+ --accent-glow: rgba(110, 168, 254, 0.2);
74
+ }
75
+
76
+ .enter {
77
+ animation: toast-in 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
78
+ }
79
+ .leave {
80
+ animation: toast-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
81
+ }
82
+
83
+ @keyframes toast-in {
84
+ from {
85
+ opacity: 0;
86
+ transform: translate(-12px, 16px) scale(0.96);
87
+ }
88
+ to {
89
+ opacity: 1;
90
+ transform: translate(0, 0) scale(1);
91
+ }
92
+ }
93
+ @keyframes toast-out {
94
+ from {
95
+ opacity: 1;
96
+ transform: translate(0, 0) scale(1);
97
+ }
98
+ to {
99
+ opacity: 0;
100
+ transform: translate(-12px, 10px) scale(0.98);
101
+ }
102
+ }
103
+
104
+ @media (prefers-reduced-motion: reduce) {
105
+ .enter,
106
+ .leave {
107
+ animation-duration: 1ms;
108
+ }
109
+ }
110
+ `,customElements.get("cdtr-toast-provider")||customElements.define("cdtr-toast-provider",s)}}]);
Binary file