@wcomp/elementum 0.0.0-stage → 0.1.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.
Files changed (101) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +266 -2
  3. package/custom-elements.json +3613 -0
  4. package/mcp/server.js +408 -0
  5. package/package.json +72 -4
  6. package/skills/elementum-break-ui/CATALOG.md +11 -0
  7. package/skills/elementum-break-ui/SKILL.md +16 -0
  8. package/skills/elementum-mobile/SKILL.md +18 -0
  9. package/skills/elementum-motion/SKILL.md +18 -0
  10. package/skills/elementum-motion/STANDARDS.md +15 -0
  11. package/skills/elementum-penpot/SKILL.md +45 -0
  12. package/skills/elementum-ui/CATALOG.md +14 -0
  13. package/skills/elementum-ui/SKILL.md +21 -0
  14. package/src/ag-ui.js +474 -0
  15. package/src/components/el-accordion.js +201 -0
  16. package/src/components/el-alert-dialog.js +186 -0
  17. package/src/components/el-alert.js +254 -0
  18. package/src/components/el-aspect-ratio.js +73 -0
  19. package/src/components/el-autocomplete.js +775 -0
  20. package/src/components/el-avatar.js +271 -0
  21. package/src/components/el-badge.js +131 -0
  22. package/src/components/el-border-beam.js +135 -0
  23. package/src/components/el-breadcrumb.js +203 -0
  24. package/src/components/el-button.js +220 -0
  25. package/src/components/el-calendar.js +413 -0
  26. package/src/components/el-callout.js +158 -0
  27. package/src/components/el-card.js +298 -0
  28. package/src/components/el-carousel.js +308 -0
  29. package/src/components/el-chart.js +632 -0
  30. package/src/components/el-checkbox-card.js +221 -0
  31. package/src/components/el-checkbox.js +208 -0
  32. package/src/components/el-chip.js +276 -0
  33. package/src/components/el-code-block.js +228 -0
  34. package/src/components/el-collapsible.js +124 -0
  35. package/src/components/el-command.js +556 -0
  36. package/src/components/el-context-menu.js +328 -0
  37. package/src/components/el-data-list.js +210 -0
  38. package/src/components/el-datepicker.js +192 -0
  39. package/src/components/el-dialog.js +272 -0
  40. package/src/components/el-diff-viewer.js +441 -0
  41. package/src/components/el-drawer.js +782 -0
  42. package/src/components/el-dropdown.js +182 -0
  43. package/src/components/el-dropzone.js +242 -0
  44. package/src/components/el-empty-state.js +130 -0
  45. package/src/components/el-field.js +394 -0
  46. package/src/components/el-form.js +185 -0
  47. package/src/components/el-input.js +212 -0
  48. package/src/components/el-inset.js +90 -0
  49. package/src/components/el-insight-card.js +263 -0
  50. package/src/components/el-kbd.js +151 -0
  51. package/src/components/el-menubar.js +254 -0
  52. package/src/components/el-meter.js +182 -0
  53. package/src/components/el-navbar.js +294 -0
  54. package/src/components/el-navigation-menu.js +327 -0
  55. package/src/components/el-number-field.js +510 -0
  56. package/src/components/el-number-flow.js +153 -0
  57. package/src/components/el-otp-input.js +266 -0
  58. package/src/components/el-pagination.js +229 -0
  59. package/src/components/el-popover.js +288 -0
  60. package/src/components/el-preview-card.js +202 -0
  61. package/src/components/el-progress.js +179 -0
  62. package/src/components/el-prompt-input.js +383 -0
  63. package/src/components/el-radio-card.js +360 -0
  64. package/src/components/el-radio.js +257 -0
  65. package/src/components/el-rating.js +165 -0
  66. package/src/components/el-reasoning-card.js +293 -0
  67. package/src/components/el-resizable.js +324 -0
  68. package/src/components/el-router.js +305 -0
  69. package/src/components/el-scroll-area.js +150 -0
  70. package/src/components/el-segmented-control.js +282 -0
  71. package/src/components/el-select.js +219 -0
  72. package/src/components/el-separator.js +85 -0
  73. package/src/components/el-sidebar.js +386 -0
  74. package/src/components/el-skeleton.js +156 -0
  75. package/src/components/el-slider.js +351 -0
  76. package/src/components/el-sources.js +288 -0
  77. package/src/components/el-spinner.js +159 -0
  78. package/src/components/el-streaming-text.js +199 -0
  79. package/src/components/el-switch.js +221 -0
  80. package/src/components/el-table.js +397 -0
  81. package/src/components/el-tabs.js +235 -0
  82. package/src/components/el-task-list.js +230 -0
  83. package/src/components/el-textarea.js +175 -0
  84. package/src/components/el-theme-switch.js +120 -0
  85. package/src/components/el-timeline.js +254 -0
  86. package/src/components/el-toast.js +778 -0
  87. package/src/components/el-toggle.js +311 -0
  88. package/src/components/el-tool-call.js +386 -0
  89. package/src/components/el-toolbar.js +183 -0
  90. package/src/components/el-tooltip.js +172 -0
  91. package/src/components/el-tree-view.js +261 -0
  92. package/src/components/el-visually-hidden.js +32 -0
  93. package/src/elementum.js +485 -0
  94. package/src/index.d.ts +1007 -0
  95. package/src/index.js +99 -0
  96. package/src/signal.js +194 -0
  97. package/src/ssr.js +136 -0
  98. package/src/template.js +321 -0
  99. package/src/tokens.css +416 -0
  100. package/tokens/figma-tokens.json +69 -0
  101. package/tokens/penpot-tokens.json +98 -0
@@ -0,0 +1,413 @@
1
+ /**
2
+ * <el-calendar>
3
+ * Standalone accessible calendar month-grid component.
4
+ */
5
+
6
+ import { Elementum } from '../elementum.js';
7
+ import { html, css } from '../template.js';
8
+ import { signal, computed } from '../signal.js';
9
+
10
+ const MONTH_NAMES = [
11
+ 'January', 'February', 'March', 'April', 'May', 'June',
12
+ 'July', 'August', 'September', 'October', 'November', 'December'
13
+ ];
14
+
15
+ const WEEKDAYS = ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'];
16
+
17
+ function padZero(n) {
18
+ return n < 10 ? '0' + n : String(n);
19
+ }
20
+
21
+ function formatDateString(year, month, day) {
22
+ return `${year}-${padZero(month + 1)}-${padZero(day)}`;
23
+ }
24
+
25
+ export class ElCalendar extends Elementum {
26
+ static observedAttributes = ['value', 'min-year', 'max-year'];
27
+
28
+ value = signal(''); // 'YYYY-MM-DD'
29
+ viewYear = signal(new Date().getFullYear());
30
+ viewMonth = signal(new Date().getMonth()); // 0 - 11
31
+ minYear = signal(new Date().getFullYear() - 50);
32
+ maxYear = signal(new Date().getFullYear() + 20);
33
+
34
+ monthTitle = computed(() => {
35
+ return `${MONTH_NAMES[this.viewMonth.value]} ${this.viewYear.value}`;
36
+ });
37
+
38
+ static styles = css`
39
+ :host {
40
+ display: inline-block;
41
+ user-select: none;
42
+ font-family: inherit;
43
+ width: 280px;
44
+ }
45
+
46
+ .calendar {
47
+ display: flex;
48
+ flex-direction: column;
49
+ gap: var(--el-spacing-sm, 8px);
50
+ }
51
+
52
+ .header {
53
+ display: flex;
54
+ align-items: center;
55
+ justify-content: space-between;
56
+ padding: 0 var(--el-spacing-xs, 4px);
57
+ }
58
+
59
+ .header-controls {
60
+ display: flex;
61
+ align-items: center;
62
+ gap: 4px;
63
+ }
64
+
65
+ .header-select {
66
+ appearance: none;
67
+ -webkit-appearance: none;
68
+ background: transparent;
69
+ border: 1px solid transparent;
70
+ border-radius: var(--el-radius-sm, 4px);
71
+ color: var(--el-text-base, #111827);
72
+ font-size: 0.875rem;
73
+ font-weight: 600;
74
+ font-family: inherit;
75
+ padding: 3px 6px;
76
+ cursor: pointer;
77
+ outline: none;
78
+ transition: background-color 0.15s ease, border-color 0.15s ease;
79
+ text-align: center;
80
+ }
81
+
82
+ .header-select:hover {
83
+ background: var(--el-surface-muted, #f3f4f6);
84
+ border-color: var(--el-surface-border, #e5e7eb);
85
+ }
86
+
87
+ .header-select:focus-visible {
88
+ border-color: var(--el-color-primary, #2563eb);
89
+ box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
90
+ }
91
+
92
+ .header-select option {
93
+ background: var(--el-surface-base, #ffffff);
94
+ color: var(--el-text-base, #111827);
95
+ font-weight: 500;
96
+ }
97
+
98
+ :root[data-theme="dark"] .header-select option {
99
+ background: #1e293b;
100
+ color: #f8fafc;
101
+ }
102
+
103
+ .header-title {
104
+ font-weight: 600;
105
+ font-size: 0.9375rem;
106
+ color: var(--el-text-base, #111827);
107
+ }
108
+
109
+ .nav-btn {
110
+ display: inline-flex;
111
+ align-items: center;
112
+ justify-content: center;
113
+ width: 28px;
114
+ height: 28px;
115
+ border: 1px solid var(--el-surface-border, #e5e7eb);
116
+ background: var(--el-surface-base, #ffffff);
117
+ border-radius: var(--el-radius-sm, 4px);
118
+ cursor: pointer;
119
+ color: var(--el-text-base, #111827);
120
+ font-size: 0.75rem;
121
+ transition: background-color 0.15s ease;
122
+ }
123
+
124
+ .nav-btn:hover {
125
+ background: var(--el-surface-muted, #f3f4f6);
126
+ }
127
+
128
+ .weekdays {
129
+ display: grid;
130
+ grid-template-columns: repeat(7, 1fr);
131
+ text-align: center;
132
+ font-size: 0.75rem;
133
+ font-weight: 600;
134
+ color: var(--el-text-muted, #6b7280);
135
+ margin-bottom: var(--el-spacing-xs, 4px);
136
+ }
137
+
138
+ .grid {
139
+ display: grid;
140
+ grid-template-columns: repeat(7, 1fr);
141
+ gap: 2px;
142
+ }
143
+
144
+ .day {
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ height: 32px;
149
+ font-size: 0.8125rem;
150
+ border: 1px solid transparent;
151
+ border-radius: var(--el-radius-sm, 4px);
152
+ background: transparent;
153
+ cursor: pointer;
154
+ color: var(--el-text-base, #111827);
155
+ transition: background-color 0.12s ease;
156
+ outline: none;
157
+ }
158
+
159
+ .day:hover:not(.disabled) {
160
+ background: var(--el-surface-muted, #f3f4f6);
161
+ }
162
+
163
+ .day.other-month {
164
+ color: var(--el-text-muted, #9ca3af);
165
+ opacity: 0.5;
166
+ }
167
+
168
+ .day.today {
169
+ font-weight: 700;
170
+ border-color: var(--el-color-primary, #2563eb);
171
+ }
172
+
173
+ .day.selected {
174
+ background: var(--el-color-primary, #2563eb) !important;
175
+ color: var(--el-text-inverse, #ffffff) !important;
176
+ font-weight: 600;
177
+ }
178
+ `;
179
+
180
+ connected() {
181
+ // If an initial value was provided, sync the initial view to it
182
+ if (this.hasAttribute('min-year')) {
183
+ const parsed = Number(this.getAttribute('min-year'));
184
+ if (!isNaN(parsed)) this.minYear.value = parsed;
185
+ }
186
+ if (this.hasAttribute('max-year')) {
187
+ const parsed = Number(this.getAttribute('max-year'));
188
+ if (!isNaN(parsed)) this.maxYear.value = parsed;
189
+ }
190
+ if (this.value.value) {
191
+ const parts = this.value.value.split('-').map(Number);
192
+ if (parts.length === 3) {
193
+ this.viewYear.value = parts[0];
194
+ this.viewMonth.value = parts[1] - 1;
195
+ }
196
+ }
197
+ }
198
+
199
+ attributeChanged(name, oldValue, newValue) {
200
+ if (name === 'value' && newValue) {
201
+ this.value.value = newValue;
202
+ const parts = newValue.split('-').map(Number);
203
+ if (parts.length === 3) {
204
+ this.viewYear.value = parts[0];
205
+ this.viewMonth.value = parts[1] - 1;
206
+ }
207
+ } else if (name === 'min-year' && newValue) {
208
+ const parsed = Number(newValue);
209
+ if (!isNaN(parsed)) this.minYear.value = parsed;
210
+ } else if (name === 'max-year' && newValue) {
211
+ const parsed = Number(newValue);
212
+ if (!isNaN(parsed)) this.maxYear.value = parsed;
213
+ }
214
+ return true;
215
+ }
216
+
217
+ setMonth(m) {
218
+ const month = Number(m);
219
+ if (!isNaN(month) && month >= 0 && month <= 11) {
220
+ this.viewMonth.value = month;
221
+ }
222
+ }
223
+
224
+ setYear(y) {
225
+ const year = Number(y);
226
+ if (!isNaN(year)) {
227
+ this.viewYear.value = year;
228
+ }
229
+ }
230
+
231
+ #onMonthSelect = (e) => {
232
+ this.setMonth(e.target.value);
233
+ };
234
+
235
+ #onYearSelect = (e) => {
236
+ this.setYear(e.target.value);
237
+ };
238
+
239
+ #generateYears() {
240
+ const currentYear = new Date().getFullYear();
241
+ const min = Number(this.minYear.value) || (currentYear - 50);
242
+ const max = Number(this.maxYear.value) || (currentYear + 20);
243
+ const years = [];
244
+ for (let y = min; y <= max; y++) {
245
+ years.push(y);
246
+ }
247
+ return years;
248
+ }
249
+
250
+ prevMonth = () => {
251
+ let m = this.viewMonth.value - 1;
252
+ let y = this.viewYear.value;
253
+ if (m < 0) {
254
+ m = 11;
255
+ y -= 1;
256
+ }
257
+ this.viewMonth.value = m;
258
+ this.viewYear.value = y;
259
+ };
260
+
261
+ nextMonth = () => {
262
+ let m = this.viewMonth.value + 1;
263
+ let y = this.viewYear.value;
264
+ if (m > 11) {
265
+ m = 0;
266
+ y += 1;
267
+ }
268
+ this.viewMonth.value = m;
269
+ this.viewYear.value = y;
270
+ };
271
+
272
+ #selectDate = (dateStr) => {
273
+ this.value.value = dateStr;
274
+ this.emit('select', { date: dateStr });
275
+ };
276
+
277
+ #generateDays() {
278
+ const year = this.viewYear.value;
279
+ const month = this.viewMonth.value;
280
+
281
+ const firstDayIndex = new Date(year, month, 1).getDay();
282
+ const daysInCurrentMonth = new Date(year, month + 1, 0).getDate();
283
+ const daysInPrevMonth = new Date(year, month, 0).getDate();
284
+
285
+ const todayStr = formatDateString(
286
+ new Date().getFullYear(),
287
+ new Date().getMonth(),
288
+ new Date().getDate()
289
+ );
290
+
291
+ const cells = [];
292
+
293
+ // Previous month spillover days
294
+ for (let i = firstDayIndex - 1; i >= 0; i--) {
295
+ const day = daysInPrevMonth - i;
296
+ const prevM = month === 0 ? 11 : month - 1;
297
+ const prevY = month === 0 ? year - 1 : year;
298
+ const dateStr = formatDateString(prevY, prevM, day);
299
+
300
+ cells.push({
301
+ day,
302
+ dateStr,
303
+ isOtherMonth: true,
304
+ isToday: dateStr === todayStr,
305
+ isSelected: dateStr === this.value.value,
306
+ });
307
+ }
308
+
309
+ // Current month days
310
+ for (let day = 1; day <= daysInCurrentMonth; day++) {
311
+ const dateStr = formatDateString(year, month, day);
312
+ cells.push({
313
+ day,
314
+ dateStr,
315
+ isOtherMonth: false,
316
+ isToday: dateStr === todayStr,
317
+ isSelected: dateStr === this.value.value,
318
+ });
319
+ }
320
+
321
+ // Next month spillover days to reach 42 cells (6 rows x 7 columns)
322
+ const remaining = 42 - cells.length;
323
+ for (let day = 1; day <= remaining; day++) {
324
+ const nextM = month === 11 ? 0 : month + 1;
325
+ const nextY = month === 11 ? year + 1 : year;
326
+ const dateStr = formatDateString(nextY, nextM, day);
327
+
328
+ cells.push({
329
+ day,
330
+ dateStr,
331
+ isOtherMonth: true,
332
+ isToday: dateStr === todayStr,
333
+ isSelected: dateStr === this.value.value,
334
+ });
335
+ }
336
+
337
+ return cells;
338
+ }
339
+
340
+ render() {
341
+ return html`
342
+ <div class="calendar" part="calendar">
343
+ <div class="header">
344
+ <button type="button" class="nav-btn" @click=${this.prevMonth} aria-label="Previous Month">◀</button>
345
+ <div class="header-controls">
346
+ <select
347
+ class="header-select month-select"
348
+ aria-label="Select month"
349
+ @change=${this.#onMonthSelect}
350
+ >
351
+ ${() =>
352
+ MONTH_NAMES.map(
353
+ (name, idx) => html`
354
+ <option
355
+ value="${idx}"
356
+ ?selected=${() => this.viewMonth.value === idx}
357
+ >
358
+ ${name}
359
+ </option>
360
+ `
361
+ )}
362
+ </select>
363
+ <select
364
+ class="header-select year-select"
365
+ aria-label="Select year"
366
+ @change=${this.#onYearSelect}
367
+ >
368
+ ${() =>
369
+ this.#generateYears().map(
370
+ (y) => html`
371
+ <option
372
+ value="${y}"
373
+ ?selected=${() => this.viewYear.value === y}
374
+ >
375
+ ${y}
376
+ </option>
377
+ `
378
+ )}
379
+ </select>
380
+ </div>
381
+ <button type="button" class="nav-btn" @click=${this.nextMonth} aria-label="Next Month">▶</button>
382
+ </div>
383
+
384
+ <div class="weekdays">
385
+ ${WEEKDAYS.map((w) => html`<div>${w}</div>`)}
386
+ </div>
387
+
388
+ <div class="grid" role="grid">
389
+ ${() =>
390
+ this.#generateDays().map(
391
+ (cell) => html`
392
+ <button
393
+ type="button"
394
+ class=${() =>
395
+ `day ${cell.isOtherMonth ? 'other-month' : ''} ${cell.isToday ? 'today' : ''} ${
396
+ cell.isSelected ? 'selected' : ''
397
+ }`}
398
+ aria-selected=${() => (cell.isSelected ? 'true' : 'false')}
399
+ @click=${() => this.#selectDate(cell.dateStr)}
400
+ >
401
+ ${cell.day}
402
+ </button>
403
+ `
404
+ )}
405
+ </div>
406
+ </div>
407
+ `;
408
+ }
409
+ }
410
+
411
+ if (typeof customElements !== 'undefined' && !customElements.get('el-calendar')) {
412
+ customElements.define('el-calendar', ElCalendar);
413
+ }
@@ -0,0 +1,158 @@
1
+ import { Elementum } from '../elementum.js';
2
+ import { html, css } from '../template.js';
3
+ import { signal } from '../signal.js';
4
+
5
+ /**
6
+ * <el-callout>
7
+ * Inline callout banner inspired by Radix Themes.
8
+ * Supports variants (info, success, warning, danger) and slots for icon, title, and body.
9
+ */
10
+ export class ElCallout extends Elementum {
11
+ static observedAttributes = ['variant', 'size'];
12
+
13
+ variant = signal('info');
14
+ size = signal('md');
15
+
16
+ static styles = css`
17
+ :host {
18
+ display: flex;
19
+ align-items: flex-start;
20
+ gap: 12px;
21
+ padding: 12px 16px;
22
+ border-radius: var(--el-radius-md, 8px);
23
+ border: 1px solid transparent;
24
+ font-family: inherit;
25
+ font-size: var(--el-text-sm, 0.875rem);
26
+ line-height: 1.5;
27
+ box-sizing: border-box;
28
+ transition: background-color 0.2s ease, border-color 0.2s ease;
29
+ }
30
+
31
+ :host([size="sm"]) {
32
+ padding: 8px 12px;
33
+ font-size: 0.8125rem;
34
+ gap: 8px;
35
+ }
36
+
37
+ :host([size="lg"]) {
38
+ padding: 16px 20px;
39
+ font-size: 1rem;
40
+ gap: 16px;
41
+ }
42
+
43
+ /* Info & Primary */
44
+ :host, :host([variant="info"]), :host([variant="primary"]) {
45
+ background-color: rgba(37, 99, 235, 0.08);
46
+ border-color: rgba(37, 99, 235, 0.2);
47
+ color: #1e40af;
48
+ }
49
+ :host-context([data-theme="dark"]), :host-context([data-theme="dark"])[variant="info"], :host-context([data-theme="dark"])[variant="primary"] {
50
+ background-color: rgba(59, 130, 246, 0.12);
51
+ border-color: rgba(59, 130, 246, 0.25);
52
+ color: #93c5fd;
53
+ }
54
+
55
+ /* Secondary */
56
+ :host([variant="secondary"]) {
57
+ background-color: var(--el-surface-muted, #f1f5f9);
58
+ border-color: var(--el-surface-border, #e2e8f0);
59
+ color: var(--el-text-secondary, #475569);
60
+ }
61
+ :host-context([data-theme="dark"])[variant="secondary"] {
62
+ background-color: rgba(30, 41, 59, 0.7);
63
+ border-color: #334155;
64
+ color: #cbd5e1;
65
+ }
66
+
67
+ /* Success */
68
+ :host([variant="success"]) {
69
+ background-color: rgba(16, 185, 129, 0.08);
70
+ border-color: rgba(16, 185, 129, 0.25);
71
+ color: #065f46;
72
+ }
73
+ :host-context([data-theme="dark"])[variant="success"] {
74
+ background-color: rgba(16, 185, 129, 0.12);
75
+ border-color: rgba(16, 185, 129, 0.25);
76
+ color: #6ee7b7;
77
+ }
78
+
79
+ /* Warning */
80
+ :host([variant="warning"]) {
81
+ background-color: rgba(245, 158, 11, 0.08);
82
+ border-color: rgba(245, 158, 11, 0.25);
83
+ color: #92400e;
84
+ }
85
+ :host-context([data-theme="dark"])[variant="warning"] {
86
+ background-color: rgba(245, 158, 11, 0.12);
87
+ border-color: rgba(245, 158, 11, 0.25);
88
+ color: #fcd34d;
89
+ }
90
+
91
+ /* Danger */
92
+ :host([variant="danger"]) {
93
+ background-color: rgba(239, 68, 68, 0.08);
94
+ border-color: rgba(239, 68, 68, 0.25);
95
+ color: #991b1b;
96
+ }
97
+ :host-context([data-theme="dark"])[variant="danger"] {
98
+ background-color: rgba(239, 68, 68, 0.12);
99
+ border-color: rgba(239, 68, 68, 0.25);
100
+ color: #fca5a5;
101
+ }
102
+
103
+ .icon-wrapper {
104
+ display: flex;
105
+ align-items: center;
106
+ justify-content: center;
107
+ flex-shrink: 0;
108
+ margin-top: 2px;
109
+ font-size: 1.15em;
110
+ }
111
+
112
+ .content-wrapper {
113
+ flex: 1;
114
+ min-width: 0;
115
+ }
116
+
117
+ ::slotted([slot="title"]) {
118
+ font-weight: 600;
119
+ margin-bottom: 2px;
120
+ display: block;
121
+ color: inherit;
122
+ }
123
+ `;
124
+
125
+ connected() {
126
+ this.variant.value = this.getAttribute('variant') || 'info';
127
+ this.size.value = this.getAttribute('size') || 'md';
128
+ }
129
+
130
+ attributeChanged(name, oldValue, newValue) {
131
+ if (name === 'variant') this.variant.value = newValue || 'info';
132
+ if (name === 'size') this.size.value = newValue || 'md';
133
+ }
134
+
135
+ #getDefaultIcon() {
136
+ const v = this.variant.value;
137
+ if (v === 'success') return '✓';
138
+ if (v === 'warning') return '⚠';
139
+ if (v === 'danger') return '✕';
140
+ return 'ℹ';
141
+ }
142
+
143
+ render() {
144
+ return html`
145
+ <div class="icon-wrapper" aria-hidden="true">
146
+ <slot name="icon">${() => this.#getDefaultIcon()}</slot>
147
+ </div>
148
+ <div class="content-wrapper">
149
+ <slot name="title"></slot>
150
+ <slot></slot>
151
+ </div>
152
+ `;
153
+ }
154
+ }
155
+
156
+ if (typeof customElements !== 'undefined' && !customElements.get('el-callout')) {
157
+ customElements.define('el-callout', ElCallout);
158
+ }