@openelement/ui 1.0.0-alpha.1 → 1.0.0-alpha.10

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.
@@ -1,603 +1,502 @@
1
- // <auto-generated by open:compiled-element; v0.44.0-alpha.1 - do not edit>
2
- import { computed, OpenElement } from '@openelement/element';
3
- import { CALLOUT_TYPE_ICONS, recipe } from './component-recipes.js';
1
+ import { CALLOUT_TYPE_ICONS, recipe } from "./component-recipes.js";
2
+ import { OpenElement, computed } from "@openelement/element";
3
+ //#region src/open-callout.tsx
4
4
  const __partProgram = {
5
- "version": 1,
6
- "tag": "open-callout",
7
- "root": {
8
- "id": "root",
9
- "kind": "shadow-open",
10
- "nodes": [
11
- "e0"
12
- ]
13
- },
14
- "template": [
15
- {
16
- "k": "el",
17
- "id": "e0",
18
- "tag": "div",
19
- "attrs": [
20
- [
21
- "class",
22
- "callout"
23
- ],
24
- [
25
- "part",
26
- "container"
27
- ]
28
- ],
29
- "children": [
30
- {
31
- "k": "el",
32
- "id": "e1",
33
- "tag": "div",
34
- "attrs": [
35
- [
36
- "class",
37
- "callout-header"
38
- ]
39
- ],
40
- "children": [
41
- {
42
- "k": "el",
43
- "id": "e2",
44
- "tag": "span",
45
- "attrs": [
46
- [
47
- "class",
48
- "callout-icon"
49
- ],
50
- [
51
- "part",
52
- "icon"
53
- ]
54
- ],
55
- "children": [
56
- {
57
- "k": "part",
58
- "id": "p1",
59
- "index": 1
60
- }
61
- ]
62
- },
63
- {
64
- "k": "el",
65
- "id": "e3",
66
- "tag": "span",
67
- "attrs": [
68
- [
69
- "class",
70
- "callout-title"
71
- ]
72
- ],
73
- "children": [
74
- {
75
- "k": "part",
76
- "id": "p2",
77
- "index": 2
78
- }
79
- ]
80
- }
81
- ]
82
- },
83
- {
84
- "k": "el",
85
- "id": "e4",
86
- "tag": "div",
87
- "attrs": [
88
- [
89
- "class",
90
- "callout-body"
91
- ],
92
- [
93
- "part",
94
- "content"
95
- ]
96
- ],
97
- "children": [
98
- {
99
- "k": "el",
100
- "id": "e5",
101
- "tag": "slot",
102
- "attrs": [],
103
- "children": []
104
- }
105
- ]
106
- }
107
- ]
108
- }
109
- ],
110
- "parts": [
111
- {
112
- "k": "bool",
113
- "signal": "headerHidden",
114
- "name": "hidden",
115
- "path": [
116
- 0,
117
- 0
118
- ],
119
- "index": 0,
120
- "location": {
121
- "id": "p0",
122
- "kind": "sink",
123
- "path": [
124
- 0,
125
- 0
126
- ],
127
- "node": "e1"
128
- }
129
- },
130
- {
131
- "k": "text",
132
- "signal": "icon",
133
- "index": 1,
134
- "location": {
135
- "id": "p1",
136
- "kind": "anchor",
137
- "path": [
138
- 0,
139
- 0,
140
- 0,
141
- 0
142
- ]
143
- }
144
- },
145
- {
146
- "k": "text",
147
- "signal": "label",
148
- "index": 2,
149
- "location": {
150
- "id": "p2",
151
- "kind": "anchor",
152
- "path": [
153
- 0,
154
- 0,
155
- 1,
156
- 0
157
- ]
158
- }
159
- }
160
- ],
161
- "regions": [],
162
- "dependencies": [
163
- {
164
- "signal": "headerHidden",
165
- "owner": {
166
- "kind": "part",
167
- "index": 0
168
- },
169
- "location": "p0"
170
- },
171
- {
172
- "signal": "icon",
173
- "owner": {
174
- "kind": "part",
175
- "index": 1
176
- },
177
- "location": "p1"
178
- },
179
- {
180
- "signal": "label",
181
- "owner": {
182
- "kind": "part",
183
- "index": 2
184
- },
185
- "location": "p2"
186
- }
187
- ],
188
- "locations": [
189
- {
190
- "id": "e0",
191
- "kind": "element",
192
- "tag": "div",
193
- "path": [
194
- 0
195
- ]
196
- },
197
- {
198
- "id": "e1",
199
- "kind": "element",
200
- "tag": "div",
201
- "path": [
202
- 0,
203
- 0
204
- ]
205
- },
206
- {
207
- "id": "p0",
208
- "kind": "sink",
209
- "part": 0,
210
- "node": "e1",
211
- "path": [
212
- 0,
213
- 0
214
- ]
215
- },
216
- {
217
- "id": "e2",
218
- "kind": "element",
219
- "tag": "span",
220
- "path": [
221
- 0,
222
- 0,
223
- 0
224
- ]
225
- },
226
- {
227
- "id": "p1",
228
- "kind": "anchor",
229
- "part": 1,
230
- "path": [
231
- 0,
232
- 0,
233
- 0,
234
- 0
235
- ]
236
- },
237
- {
238
- "id": "e3",
239
- "kind": "element",
240
- "tag": "span",
241
- "path": [
242
- 0,
243
- 0,
244
- 1
245
- ]
246
- },
247
- {
248
- "id": "p2",
249
- "kind": "anchor",
250
- "part": 2,
251
- "path": [
252
- 0,
253
- 0,
254
- 1,
255
- 0
256
- ]
257
- },
258
- {
259
- "id": "e4",
260
- "kind": "element",
261
- "tag": "div",
262
- "path": [
263
- 0,
264
- 1
265
- ]
266
- },
267
- {
268
- "id": "e5",
269
- "kind": "element",
270
- "tag": "slot",
271
- "path": [
272
- 0,
273
- 1,
274
- 0
275
- ]
276
- }
277
- ],
278
- "metadata": {
279
- "tag": "open-callout",
280
- "className": "OpenCallout",
281
- "sourceFile": "open-callout.tsx",
282
- "properties": [
283
- {
284
- "name": "type",
285
- "attribute": "type",
286
- "type": "string",
287
- "converter": "string",
288
- "reflect": true,
289
- "default": "info"
290
- },
291
- {
292
- "name": "label",
293
- "attribute": "label",
294
- "type": "string",
295
- "converter": "string",
296
- "reflect": false,
297
- "default": ""
298
- },
299
- {
300
- "name": "icon",
301
- "attribute": null,
302
- "type": "string",
303
- "converter": "string",
304
- "reflect": false,
305
- "default": null,
306
- "computed": true,
307
- "deps": [
308
- "type"
309
- ]
310
- },
311
- {
312
- "name": "headerHidden",
313
- "attribute": null,
314
- "type": "boolean",
315
- "converter": "boolean",
316
- "reflect": false,
317
- "default": null,
318
- "computed": true,
319
- "deps": [
320
- "label"
321
- ]
322
- }
323
- ],
324
- "observedAttributes": [
325
- "type",
326
- "label"
327
- ],
328
- "cem": {
329
- "tagName": "open-callout",
330
- "className": "OpenCallout",
331
- "declaration": {
332
- "name": "OpenCallout",
333
- "module": "open-callout.tsx"
334
- },
335
- "attributes": [
336
- {
337
- "name": "type",
338
- "fieldName": "type",
339
- "type": "string",
340
- "reflect": true
341
- },
342
- {
343
- "name": "label",
344
- "fieldName": "label",
345
- "type": "string",
346
- "reflect": false
347
- }
348
- ],
349
- "members": [
350
- {
351
- "name": "type",
352
- "fieldName": "type",
353
- "type": "string",
354
- "attribute": "type",
355
- "reflect": true
356
- },
357
- {
358
- "name": "label",
359
- "fieldName": "label",
360
- "type": "string",
361
- "attribute": "label",
362
- "reflect": false
363
- },
364
- {
365
- "name": "icon",
366
- "fieldName": "icon",
367
- "type": "string",
368
- "attribute": null,
369
- "reflect": false
370
- },
371
- {
372
- "name": "headerHidden",
373
- "fieldName": "headerHidden",
374
- "type": "boolean",
375
- "attribute": null,
376
- "reflect": false
377
- }
378
- ]
379
- }
380
- }
5
+ "version": 1,
6
+ "tag": "open-callout",
7
+ "root": {
8
+ "id": "root",
9
+ "kind": "shadow-open",
10
+ "nodes": ["e0"]
11
+ },
12
+ "template": [{
13
+ "k": "el",
14
+ "id": "e0",
15
+ "tag": "div",
16
+ "attrs": [["class", "callout"], ["part", "container"]],
17
+ "children": [{
18
+ "k": "el",
19
+ "id": "e1",
20
+ "tag": "div",
21
+ "attrs": [["class", "callout-header"]],
22
+ "children": [{
23
+ "k": "el",
24
+ "id": "e2",
25
+ "tag": "span",
26
+ "attrs": [["class", "callout-icon"], ["part", "icon"]],
27
+ "children": [{
28
+ "k": "part",
29
+ "id": "p1",
30
+ "index": 1
31
+ }]
32
+ }, {
33
+ "k": "el",
34
+ "id": "e3",
35
+ "tag": "span",
36
+ "attrs": [["class", "callout-title"]],
37
+ "children": [{
38
+ "k": "part",
39
+ "id": "p2",
40
+ "index": 2
41
+ }]
42
+ }]
43
+ }, {
44
+ "k": "el",
45
+ "id": "e4",
46
+ "tag": "div",
47
+ "attrs": [["class", "callout-body"], ["part", "content"]],
48
+ "children": [{
49
+ "k": "el",
50
+ "id": "e5",
51
+ "tag": "slot",
52
+ "attrs": [],
53
+ "children": []
54
+ }]
55
+ }]
56
+ }],
57
+ "parts": [
58
+ {
59
+ "k": "bool",
60
+ "signal": "headerHidden",
61
+ "name": "hidden",
62
+ "path": [0, 0],
63
+ "index": 0,
64
+ "location": {
65
+ "id": "p0",
66
+ "kind": "sink",
67
+ "path": [0, 0],
68
+ "node": "e1"
69
+ }
70
+ },
71
+ {
72
+ "k": "text",
73
+ "signal": "icon",
74
+ "index": 1,
75
+ "location": {
76
+ "id": "p1",
77
+ "kind": "anchor",
78
+ "path": [
79
+ 0,
80
+ 0,
81
+ 0,
82
+ 0
83
+ ]
84
+ }
85
+ },
86
+ {
87
+ "k": "text",
88
+ "signal": "label",
89
+ "index": 2,
90
+ "location": {
91
+ "id": "p2",
92
+ "kind": "anchor",
93
+ "path": [
94
+ 0,
95
+ 0,
96
+ 1,
97
+ 0
98
+ ]
99
+ }
100
+ }
101
+ ],
102
+ "regions": [],
103
+ "dependencies": [
104
+ {
105
+ "signal": "headerHidden",
106
+ "owner": {
107
+ "kind": "part",
108
+ "index": 0
109
+ },
110
+ "location": "p0"
111
+ },
112
+ {
113
+ "signal": "icon",
114
+ "owner": {
115
+ "kind": "part",
116
+ "index": 1
117
+ },
118
+ "location": "p1"
119
+ },
120
+ {
121
+ "signal": "label",
122
+ "owner": {
123
+ "kind": "part",
124
+ "index": 2
125
+ },
126
+ "location": "p2"
127
+ }
128
+ ],
129
+ "locations": [
130
+ {
131
+ "id": "e0",
132
+ "kind": "element",
133
+ "tag": "div",
134
+ "path": [0]
135
+ },
136
+ {
137
+ "id": "e1",
138
+ "kind": "element",
139
+ "tag": "div",
140
+ "path": [0, 0]
141
+ },
142
+ {
143
+ "id": "p0",
144
+ "kind": "sink",
145
+ "part": 0,
146
+ "node": "e1",
147
+ "path": [0, 0]
148
+ },
149
+ {
150
+ "id": "e2",
151
+ "kind": "element",
152
+ "tag": "span",
153
+ "path": [
154
+ 0,
155
+ 0,
156
+ 0
157
+ ]
158
+ },
159
+ {
160
+ "id": "p1",
161
+ "kind": "anchor",
162
+ "part": 1,
163
+ "path": [
164
+ 0,
165
+ 0,
166
+ 0,
167
+ 0
168
+ ]
169
+ },
170
+ {
171
+ "id": "e3",
172
+ "kind": "element",
173
+ "tag": "span",
174
+ "path": [
175
+ 0,
176
+ 0,
177
+ 1
178
+ ]
179
+ },
180
+ {
181
+ "id": "p2",
182
+ "kind": "anchor",
183
+ "part": 2,
184
+ "path": [
185
+ 0,
186
+ 0,
187
+ 1,
188
+ 0
189
+ ]
190
+ },
191
+ {
192
+ "id": "e4",
193
+ "kind": "element",
194
+ "tag": "div",
195
+ "path": [0, 1]
196
+ },
197
+ {
198
+ "id": "e5",
199
+ "kind": "element",
200
+ "tag": "slot",
201
+ "path": [
202
+ 0,
203
+ 1,
204
+ 0
205
+ ]
206
+ }
207
+ ],
208
+ "metadata": {
209
+ "tag": "open-callout",
210
+ "className": "OpenCallout",
211
+ "sourceFile": "open-callout.tsx",
212
+ "properties": [
213
+ {
214
+ "name": "type",
215
+ "attribute": "type",
216
+ "type": "string",
217
+ "converter": "string",
218
+ "reflect": true,
219
+ "default": "info"
220
+ },
221
+ {
222
+ "name": "label",
223
+ "attribute": "label",
224
+ "type": "string",
225
+ "converter": "string",
226
+ "reflect": false,
227
+ "default": ""
228
+ },
229
+ {
230
+ "name": "icon",
231
+ "attribute": null,
232
+ "type": "string",
233
+ "converter": "string",
234
+ "reflect": false,
235
+ "default": null,
236
+ "computed": true,
237
+ "deps": ["type"]
238
+ },
239
+ {
240
+ "name": "headerHidden",
241
+ "attribute": null,
242
+ "type": "boolean",
243
+ "converter": "boolean",
244
+ "reflect": false,
245
+ "default": null,
246
+ "computed": true,
247
+ "deps": ["label"]
248
+ }
249
+ ],
250
+ "observedAttributes": ["type", "label"],
251
+ "cem": {
252
+ "tagName": "open-callout",
253
+ "className": "OpenCallout",
254
+ "declaration": {
255
+ "name": "OpenCallout",
256
+ "module": "open-callout.tsx"
257
+ },
258
+ "attributes": [{
259
+ "name": "type",
260
+ "fieldName": "type",
261
+ "type": "string",
262
+ "reflect": true
263
+ }, {
264
+ "name": "label",
265
+ "fieldName": "label",
266
+ "type": "string",
267
+ "reflect": false
268
+ }],
269
+ "members": [
270
+ {
271
+ "name": "type",
272
+ "fieldName": "type",
273
+ "type": "string",
274
+ "attribute": "type",
275
+ "reflect": true
276
+ },
277
+ {
278
+ "name": "label",
279
+ "fieldName": "label",
280
+ "type": "string",
281
+ "attribute": "label",
282
+ "reflect": false
283
+ },
284
+ {
285
+ "name": "icon",
286
+ "fieldName": "icon",
287
+ "type": "string",
288
+ "attribute": null,
289
+ "reflect": false
290
+ },
291
+ {
292
+ "name": "headerHidden",
293
+ "fieldName": "headerHidden",
294
+ "type": "boolean",
295
+ "attribute": null,
296
+ "reflect": false
297
+ }
298
+ ]
299
+ }
300
+ }
381
301
  };
382
302
  const __compiledProperties = [
383
- {
384
- "name": "type",
385
- "attribute": "type",
386
- "type": "string",
387
- "converter": "string",
388
- "reflect": true,
389
- "default": "info"
390
- },
391
- {
392
- "name": "label",
393
- "attribute": "label",
394
- "type": "string",
395
- "converter": "string",
396
- "reflect": false,
397
- "default": ""
398
- },
399
- {
400
- "name": "icon",
401
- "attribute": null,
402
- "type": "string",
403
- "converter": "string",
404
- "reflect": false,
405
- "default": null,
406
- "computed": true,
407
- "deps": [
408
- "type"
409
- ]
410
- },
411
- {
412
- "name": "headerHidden",
413
- "attribute": null,
414
- "type": "boolean",
415
- "converter": "boolean",
416
- "reflect": false,
417
- "default": null,
418
- "computed": true,
419
- "deps": [
420
- "label"
421
- ]
422
- }
303
+ {
304
+ "name": "type",
305
+ "attribute": "type",
306
+ "type": "string",
307
+ "converter": "string",
308
+ "reflect": true,
309
+ "default": "info"
310
+ },
311
+ {
312
+ "name": "label",
313
+ "attribute": "label",
314
+ "type": "string",
315
+ "converter": "string",
316
+ "reflect": false,
317
+ "default": ""
318
+ },
319
+ {
320
+ "name": "icon",
321
+ "attribute": null,
322
+ "type": "string",
323
+ "converter": "string",
324
+ "reflect": false,
325
+ "default": null,
326
+ "computed": true,
327
+ "deps": ["type"]
328
+ },
329
+ {
330
+ "name": "headerHidden",
331
+ "attribute": null,
332
+ "type": "boolean",
333
+ "converter": "boolean",
334
+ "reflect": false,
335
+ "default": null,
336
+ "computed": true,
337
+ "deps": ["label"]
338
+ }
423
339
  ];
424
340
  const __elementMetadata = {
425
- "tag": "open-callout",
426
- "className": "OpenCallout",
427
- "sourceFile": "open-callout.tsx",
428
- "properties": [
429
- {
430
- "name": "type",
431
- "attribute": "type",
432
- "type": "string",
433
- "converter": "string",
434
- "reflect": true,
435
- "default": "info"
436
- },
437
- {
438
- "name": "label",
439
- "attribute": "label",
440
- "type": "string",
441
- "converter": "string",
442
- "reflect": false,
443
- "default": ""
444
- },
445
- {
446
- "name": "icon",
447
- "attribute": null,
448
- "type": "string",
449
- "converter": "string",
450
- "reflect": false,
451
- "default": null,
452
- "computed": true,
453
- "deps": [
454
- "type"
455
- ]
456
- },
457
- {
458
- "name": "headerHidden",
459
- "attribute": null,
460
- "type": "boolean",
461
- "converter": "boolean",
462
- "reflect": false,
463
- "default": null,
464
- "computed": true,
465
- "deps": [
466
- "label"
467
- ]
468
- }
469
- ],
470
- "observedAttributes": [
471
- "type",
472
- "label"
473
- ],
474
- "cem": {
475
- "tagName": "open-callout",
476
- "className": "OpenCallout",
477
- "declaration": {
478
- "name": "OpenCallout",
479
- "module": "open-callout.tsx"
480
- },
481
- "attributes": [
482
- {
483
- "name": "type",
484
- "fieldName": "type",
485
- "type": "string",
486
- "reflect": true
487
- },
488
- {
489
- "name": "label",
490
- "fieldName": "label",
491
- "type": "string",
492
- "reflect": false
493
- }
494
- ],
495
- "members": [
496
- {
497
- "name": "type",
498
- "fieldName": "type",
499
- "type": "string",
500
- "attribute": "type",
501
- "reflect": true
502
- },
503
- {
504
- "name": "label",
505
- "fieldName": "label",
506
- "type": "string",
507
- "attribute": "label",
508
- "reflect": false
509
- },
510
- {
511
- "name": "icon",
512
- "fieldName": "icon",
513
- "type": "string",
514
- "attribute": null,
515
- "reflect": false
516
- },
517
- {
518
- "name": "headerHidden",
519
- "fieldName": "headerHidden",
520
- "type": "boolean",
521
- "attribute": null,
522
- "reflect": false
523
- }
524
- ]
525
- }
341
+ "tag": "open-callout",
342
+ "className": "OpenCallout",
343
+ "sourceFile": "open-callout.tsx",
344
+ "properties": [
345
+ {
346
+ "name": "type",
347
+ "attribute": "type",
348
+ "type": "string",
349
+ "converter": "string",
350
+ "reflect": true,
351
+ "default": "info"
352
+ },
353
+ {
354
+ "name": "label",
355
+ "attribute": "label",
356
+ "type": "string",
357
+ "converter": "string",
358
+ "reflect": false,
359
+ "default": ""
360
+ },
361
+ {
362
+ "name": "icon",
363
+ "attribute": null,
364
+ "type": "string",
365
+ "converter": "string",
366
+ "reflect": false,
367
+ "default": null,
368
+ "computed": true,
369
+ "deps": ["type"]
370
+ },
371
+ {
372
+ "name": "headerHidden",
373
+ "attribute": null,
374
+ "type": "boolean",
375
+ "converter": "boolean",
376
+ "reflect": false,
377
+ "default": null,
378
+ "computed": true,
379
+ "deps": ["label"]
380
+ }
381
+ ],
382
+ "observedAttributes": ["type", "label"],
383
+ "cem": {
384
+ "tagName": "open-callout",
385
+ "className": "OpenCallout",
386
+ "declaration": {
387
+ "name": "OpenCallout",
388
+ "module": "open-callout.tsx"
389
+ },
390
+ "attributes": [{
391
+ "name": "type",
392
+ "fieldName": "type",
393
+ "type": "string",
394
+ "reflect": true
395
+ }, {
396
+ "name": "label",
397
+ "fieldName": "label",
398
+ "type": "string",
399
+ "reflect": false
400
+ }],
401
+ "members": [
402
+ {
403
+ "name": "type",
404
+ "fieldName": "type",
405
+ "type": "string",
406
+ "attribute": "type",
407
+ "reflect": true
408
+ },
409
+ {
410
+ "name": "label",
411
+ "fieldName": "label",
412
+ "type": "string",
413
+ "attribute": "label",
414
+ "reflect": false
415
+ },
416
+ {
417
+ "name": "icon",
418
+ "fieldName": "icon",
419
+ "type": "string",
420
+ "attribute": null,
421
+ "reflect": false
422
+ },
423
+ {
424
+ "name": "headerHidden",
425
+ "fieldName": "headerHidden",
426
+ "type": "boolean",
427
+ "attribute": null,
428
+ "reflect": false
429
+ }
430
+ ]
431
+ }
526
432
  };
527
- const __observedAttributes = [
528
- "type",
529
- "label"
530
- ];
433
+ const __observedAttributes = ["type", "label"];
531
434
  const __compiledProps = {
532
- type: {
533
- type: String,
534
- default: 'info',
535
- reflect: true,
536
- attribute: "type"
537
- },
538
- label: {
539
- type: String,
540
- default: '',
541
- reflect: false,
542
- attribute: "label"
543
- },
544
- icon: {
545
- type: Object,
546
- default: undefined,
547
- reflect: false,
548
- attribute: false
549
- },
550
- headerHidden: {
551
- type: Object,
552
- default: undefined,
553
- reflect: false,
554
- attribute: false
555
- }
435
+ type: {
436
+ type: String,
437
+ default: "info",
438
+ reflect: true,
439
+ attribute: "type"
440
+ },
441
+ label: {
442
+ type: String,
443
+ default: "",
444
+ reflect: false,
445
+ attribute: "label"
446
+ },
447
+ icon: {
448
+ type: Object,
449
+ default: void 0,
450
+ reflect: false,
451
+ attribute: false
452
+ },
453
+ headerHidden: {
454
+ type: Object,
455
+ default: void 0,
456
+ reflect: false,
457
+ attribute: false
458
+ }
556
459
  };
557
- export class OpenCallout extends OpenElement {
558
- static __partProgram = __partProgram;
559
- static __compiledProperties = __compiledProperties;
560
- static __elementMetadata = __elementMetadata;
561
- static props = __compiledProps;
562
- static observedAttributes = __observedAttributes;
563
- static __computedFields = {
564
- icon: (__s)=>computed(()=>CALLOUT_TYPE_ICONS[__s.type.value] ?? CALLOUT_TYPE_ICONS.info),
565
- headerHidden: (__s)=>computed(()=>__s.label.value === '')
566
- };
567
- static styles = [
568
- recipe(`
460
+ var OpenCallout = class extends OpenElement {
461
+ static __partProgram = __partProgram;
462
+ static __compiledProperties = __compiledProperties;
463
+ static __elementMetadata = __elementMetadata;
464
+ static props = __compiledProps;
465
+ static observedAttributes = __observedAttributes;
466
+ static __computedFields = {
467
+ icon: (__s) => computed(() => CALLOUT_TYPE_ICONS[__s.type.value] ?? CALLOUT_TYPE_ICONS.info),
468
+ headerHidden: (__s) => computed(() => __s.label.value === "")
469
+ };
470
+ static styles = [recipe(`
569
471
  :host { display: block; }
570
472
  .callout {
571
- padding: var(--size-3) var(--size-4);
572
- margin: var(--size-3) 0;
573
- border-left: var(--border-size-2) solid var(--brand);
574
- background: var(--brand-subtle);
575
- border-radius: 0 var(--radius-2) var(--radius-2) 0;
473
+ padding: calc(var(--spacing) * 3) calc(var(--spacing) * 4);
474
+ margin: calc(var(--spacing) * 3) 0;
475
+ border-left: calc(var(--spacing) * 0.5) solid var(--color-primary);
476
+ background: color-mix(in srgb, var(--color-primary) 14%, transparent);
477
+ border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
576
478
  }
577
- :host([type='warning']) .callout { border-left-color: var(--warning); background: var(--warning-subtle); }
578
- :host([type='danger']) .callout { border-left-color: var(--error); background: var(--error-subtle); }
579
- :host([type='tip']) .callout { border-left-color: var(--success); background: var(--success-subtle); }
580
- :host([data-theme='light'][type='warning']) .callout { background: rgba(245,158,11,0.06); }
581
- :host([data-theme='light'][type='danger']) .callout { background: rgba(239,68,68,0.06); }
582
- :host([data-theme='light'][type='tip']) .callout { background: rgba(34,197,94,0.06); }
479
+ :host([type='warning']) .callout { border-left-color: var(--color-warning); background: color-mix(in srgb, var(--color-warning) 10%, transparent); }
480
+ :host([type='danger']) .callout { border-left-color: var(--color-destructive); background: color-mix(in srgb, var(--color-destructive) 10%, transparent); }
481
+ :host([type='tip']) .callout { border-left-color: var(--color-success); background: color-mix(in srgb, var(--color-success) 10%, transparent); }
583
482
  .callout-header {
584
- display: flex; align-items: center; gap: var(--size-1); margin-bottom: var(--size-1);
483
+ display: flex; align-items: center; gap: calc(var(--spacing) * 1); margin-bottom: calc(var(--spacing) * 1);
585
484
  }
586
485
  .callout-header[hidden] { display: none; }
587
- .callout-icon { font-size: var(--font-size-0); line-height: 1; flex-shrink: 0; }
486
+ .callout-icon { font-size: var(--text-sm); line-height: 1; flex-shrink: 0; }
588
487
  .callout-title {
589
- font-size: var(--font-size-0); font-weight: var(--font-weight-6); color: var(--text-primary);
488
+ font-size: var(--text-sm); font-weight: var(--font-weight-semibold); color: var(--color-foreground);
590
489
  }
591
490
  .callout-body {
592
- font-size: var(--font-size-1); line-height: var(--font-lineheight-4); color: var(--text-secondary);
491
+ font-size: var(--text-base); line-height: var(--leading-relaxed); color: var(--color-muted-foreground);
593
492
  }
594
493
  .callout-body ::slotted(p) { margin: 0; }
595
- `)
596
- ];
597
- type = 'info';
598
- label = '';
599
- render() {
600
- throw new Error('[open:compiled-element] open-callout is compiled to a Part Program; the runtime JSX render path is not available in 0.44.');
601
- }
602
- }
603
- export { __partProgram, __elementMetadata };
494
+ `)];
495
+ type = "info";
496
+ label = "";
497
+ render() {
498
+ throw new Error("[open:compiled-element] open-callout is compiled to a Part Program; the runtime JSX render path is not available.");
499
+ }
500
+ };
501
+ //#endregion
502
+ export { OpenCallout, __elementMetadata, __partProgram };