@brickclay-org/ui 0.1.61 → 0.1.63

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/index.d.ts CHANGED
@@ -2006,6 +2006,7 @@ interface ToastConfig {
2006
2006
  timeOut?: number;
2007
2007
  sticky?: boolean;
2008
2008
  icon?: boolean;
2009
+ inline?: boolean;
2009
2010
  actionLabel?: string;
2010
2011
  actionCallback?: () => void;
2011
2012
  }
@@ -2019,6 +2020,7 @@ interface ToastMessage extends ToastConfig {
2019
2020
  readonly timeOut: number;
2020
2021
  readonly sticky: boolean;
2021
2022
  readonly icon: boolean;
2023
+ readonly inline?: boolean;
2022
2024
  leaving: boolean;
2023
2025
  }
2024
2026
  declare class BkToastrService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brickclay-org/ui",
3
- "version": "0.1.61",
3
+ "version": "0.1.63",
4
4
  "schematics": "./schematics/collection.json",
5
5
  "ng-add": {
6
6
  "save": "dependencies"
@@ -11,12 +11,29 @@
11
11
  }
12
12
 
13
13
  /* ── Positions ── */
14
- .toast-container[data-position="top-right"] { @apply top-4 right-4; }
15
- .toast-container[data-position="top-left"] { @apply top-4 left-4; }
16
- .toast-container[data-position="top-center"] { @apply top-4 left-1/2 -translate-x-1/2; }
17
- .toast-container[data-position="bottom-right"] { @apply bottom-4 right-4; }
18
- .toast-container[data-position="bottom-left"] { @apply bottom-4 left-4; }
19
- .toast-container[data-position="bottom-center"]{ @apply bottom-4 left-1/2 -translate-x-1/2; }
14
+ .toast-container[data-position="top-right"] {
15
+ @apply top-4 right-4;
16
+ }
17
+
18
+ .toast-container[data-position="top-left"] {
19
+ @apply top-4 left-4;
20
+ }
21
+
22
+ .toast-container[data-position="top-center"] {
23
+ @apply top-4 left-1/2 -translate-x-1/2;
24
+ }
25
+
26
+ .toast-container[data-position="bottom-right"] {
27
+ @apply bottom-4 right-4;
28
+ }
29
+
30
+ .toast-container[data-position="bottom-left"] {
31
+ @apply bottom-4 left-4;
32
+ }
33
+
34
+ .toast-container[data-position="bottom-center"] {
35
+ @apply bottom-4 left-1/2 -translate-x-1/2;
36
+ }
20
37
 
21
38
  /* ─── Toast item (base) ───────────────────────────────────────────────────── */
22
39
  .toast-item {
@@ -29,66 +46,125 @@
29
46
  .toast-item[data-severity="info"] {
30
47
  @apply bg-[#1434CB] border-[#E5F3FF];
31
48
  }
32
- .toast-item[data-severity="info"] .toast-icon path { stroke: white; }
33
- .toast-item[data-severity="info"] .toast-summary { @apply text-white; }
34
- .toast-item[data-severity="info"] .toast-detail { @apply text-gray-200 text-xs; }
49
+
50
+ .toast-item[data-severity="info"] .toast-icon path {
51
+ stroke: white;
52
+ }
53
+
54
+ .toast-item[data-severity="info"] .toast-summary {
55
+ @apply text-white;
56
+ }
57
+
58
+ .toast-item[data-severity="info"] .toast-detail {
59
+ @apply text-gray-200 text-xs;
60
+ }
61
+
35
62
  .toast-item[data-severity="info"] .toast-action {
36
63
  @apply bg-white text-[#1434CB] border border-[#1434CB];
37
64
  }
65
+
38
66
  /* .toast-item[data-severity="info"] .toast-action:hover { @apply bg-blue-800; } */
39
- .toast-item[data-severity="info"] .toast-close path { stroke: white; }
67
+ .toast-item[data-severity="info"] .toast-close path {
68
+ stroke: white;
69
+ }
40
70
 
41
71
  /* ─── Severity – DEFAULT (gray) ───────────────────────────────────────────── */
42
72
  .toast-item[data-severity="default"] {
43
- @apply bg-black border-gray-200;
73
+ @apply bg-gray-500 border-gray-50;
74
+ }
75
+
76
+ .toast-item[data-severity="default"] .toast-icon path {
77
+ stroke: white;
78
+ }
79
+
80
+ .toast-item[data-severity="default"] .toast-summary {
81
+ @apply text-white;
44
82
  }
45
- .toast-item[data-severity="default"] .toast-icon path { stroke: white; }
46
- .toast-item[data-severity="default"] .toast-summary { @apply text-white; }
83
+
47
84
  /* .toast-item[data-severity="default"] .toast-detail { @apply text-gray-600; } */
48
85
  .toast-item[data-severity="default"] .toast-action {
49
- @apply bg-white text-black;
86
+ @apply bg-white text-gray-500;
50
87
  }
88
+
51
89
  /* .toast-item[data-severity="default"] .toast-action:hover { @apply bg-gray-600; } */
52
- .toast-item[data-severity="default"] .toast-close path { stroke: white; }
90
+ .toast-item[data-severity="default"] .toast-close path {
91
+ stroke: white;
92
+ }
53
93
 
54
94
  /* ─── Severity – ERROR (red) ──────────────────────────────────────────────── */
55
95
  .toast-item[data-severity="error"] {
56
96
  @apply bg-[#C84144] border-[#FFF1F1];
57
97
  }
58
- .toast-item[data-severity="error"] .toast-icon path { stroke: white; }
59
- .toast-item[data-severity="error"] .toast-summary { @apply text-white; }
60
- .toast-item[data-severity="error"] .toast-detail { @apply text-gray-200 text-xs; }
98
+
99
+ .toast-item[data-severity="error"] .toast-icon path {
100
+ stroke: white;
101
+ }
102
+
103
+ .toast-item[data-severity="error"] .toast-summary {
104
+ @apply text-white;
105
+ }
106
+
107
+ .toast-item[data-severity="error"] .toast-detail {
108
+ @apply text-gray-200 text-xs;
109
+ }
110
+
61
111
  .toast-item[data-severity="error"] .toast-action {
62
112
  @apply bg-white text-[#CB1432];
63
113
  }
114
+
64
115
  /* .toast-item[data-severity="error"] .toast-action:hover { @apply bg-red-800; } */
65
- .toast-item[data-severity="error"] .toast-close path { stroke: white; }
116
+ .toast-item[data-severity="error"] .toast-close path {
117
+ stroke: white;
118
+ }
66
119
 
67
120
  /* ─── Severity – WARN (orange / amber) ────────────────────────────────────── */
68
121
  .toast-item[data-severity="warn"] {
69
122
  @apply bg-[#CC6401] border-[#FFEED7];
70
123
  }
71
- .toast-item[data-severity="warn"] .toast-icon path { stroke: white; }
72
- .toast-item[data-severity="warn"] .toast-summary { @apply text-white; }
124
+
125
+ .toast-item[data-severity="warn"] .toast-icon path {
126
+ stroke: white;
127
+ }
128
+
129
+ .toast-item[data-severity="warn"] .toast-summary {
130
+ @apply text-white;
131
+ }
132
+
73
133
  /* .toast-item[data-severity="warn"] .toast-detail { @apply text-amber-700; } */
74
134
  .toast-item[data-severity="warn"] .toast-action {
75
135
  @apply bg-white text-[#CC6401];
76
136
  }
137
+
77
138
  /* .toast-item[data-severity="warn"] .toast-action:hover { @apply bg-amber-800; } */
78
- .toast-item[data-severity="warn"] .toast-close path { stroke: white; }
139
+ .toast-item[data-severity="warn"] .toast-close path {
140
+ stroke: white;
141
+ }
79
142
 
80
143
  /* ─── Severity – SUCCESS (green) ──────────────────────────────────────────── */
81
144
  .toast-item[data-severity="success"] {
82
145
  @apply bg-[#1E7735] border-[#F1FCF3];
83
146
  }
84
- .toast-item[data-severity="success"] .toast-icon path { stroke: white; }
85
- .toast-item[data-severity="success"] .toast-summary { @apply text-white; }
147
+
148
+ .toast-item[data-severity="success"] .toast-icon path {
149
+ stroke: white;
150
+ }
151
+
152
+ .toast-item[data-severity="success"] .toast-summary {
153
+ @apply text-white;
154
+ }
155
+
86
156
  /* .toast-item[data-severity="success"] .toast-detail { @apply text-green-700; } */
87
157
  .toast-item[data-severity="success"] .toast-action {
88
158
  @apply bg-white text-[#22973F];
89
159
  }
90
- .toast-item[data-severity="success"] .toast-action:hover { @apply bg-[#22973F]; }
91
- .toast-item[data-severity="success"] .toast-close path { stroke: white; }
160
+
161
+ .toast-item[data-severity="success"] .toast-action:hover {
162
+ @apply bg-[#22973F];
163
+ }
164
+
165
+ .toast-item[data-severity="success"] .toast-close path {
166
+ stroke: white;
167
+ }
92
168
 
93
169
  /* ─── Summary / Detail / Action / Close (base) ───────────────────────────── */
94
170
  .toast-summary {
@@ -110,6 +186,7 @@
110
186
  position: relative;
111
187
  z-index: 1;
112
188
  }
189
+
113
190
  .toast-close:hover {
114
191
  @apply opacity-60;
115
192
  }
@@ -119,6 +196,7 @@
119
196
  display: block;
120
197
  pointer-events: none;
121
198
  }
199
+
122
200
  .toast-close * {
123
201
  cursor: pointer;
124
202
  }
@@ -138,7 +216,7 @@
138
216
  align-items: center;
139
217
  }
140
218
 
141
- .toast-item {
219
+ .toast-item:not(.toast-item-inline) {
142
220
  display: grid;
143
221
  grid-template-areas:
144
222
  "icon action close"
@@ -148,10 +226,22 @@
148
226
  row-gap: 6px;
149
227
  }
150
228
 
151
- .toast-icon { grid-area: icon; }
152
- .toast-content { grid-area: content; }
153
- .toast-action { grid-area: action; justify-self: end; }
154
- .toast-close { grid-area: close; }
229
+ .toast-icon {
230
+ grid-area: icon;
231
+ }
232
+
233
+ .toast-content {
234
+ grid-area: content;
235
+ }
236
+
237
+ .toast-action {
238
+ grid-area: action;
239
+ justify-self: end;
240
+ }
241
+
242
+ .toast-close {
243
+ grid-area: close;
244
+ }
155
245
  }
156
246
 
157
247
  /* ─── Animations ──────────────────────────────────────────────────────────── */
@@ -168,6 +258,7 @@
168
258
  opacity: 0;
169
259
  transform: translateY(-10px) scale(0.96);
170
260
  }
261
+
171
262
  to {
172
263
  opacity: 1;
173
264
  transform: translateY(0) scale(1);
@@ -179,6 +270,7 @@
179
270
  opacity: 1;
180
271
  transform: translateY(0) scale(1);
181
272
  }
273
+
182
274
  to {
183
275
  opacity: 0;
184
276
  transform: translateY(-10px) scale(0.96);