@pindoba/core-avatar 0.0.0-alpha-20260426220647

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.
@@ -0,0 +1,731 @@
1
+ import { RecipeVariantProps } from "@pindoba/styled-system/css";
2
+ import { AvatarStyleProps } from "@pindoba/styles-avatar";
3
+ import * as _$_pindoba_styled_system_types0 from "@pindoba/styled-system/types";
4
+ import { SystemStyleObject } from "@pindoba/styled-system/types";
5
+
6
+ //#region ../../styles/panel/dist/panel.d.ts
7
+ declare const panelStyles: _$_pindoba_styled_system_types0.SlotRecipeRuntimeFn<"root", {
8
+ background: {
9
+ "surface.soft": {
10
+ root: {
11
+ background: "colorPalette.surface.soft";
12
+ };
13
+ };
14
+ "surface.step.1": {
15
+ root: {
16
+ background: "colorPalette.surface.step.1";
17
+ };
18
+ };
19
+ "surface.step.2": {
20
+ root: {
21
+ background: "colorPalette.surface.step.2";
22
+ };
23
+ };
24
+ "surface.step.3": {
25
+ root: {
26
+ background: "colorPalette.surface.step.3";
27
+ };
28
+ };
29
+ "surface.deep": {
30
+ root: {
31
+ background: "colorPalette.surface.deep";
32
+ };
33
+ };
34
+ transparent: {
35
+ root: {
36
+ background: "transparent";
37
+ };
38
+ };
39
+ };
40
+ accent: {
41
+ true: {};
42
+ false: {};
43
+ };
44
+ emphasis: {
45
+ primary: {
46
+ root: {
47
+ color: "colorPalette.text";
48
+ };
49
+ };
50
+ secondary: {
51
+ root: {
52
+ color: "colorPalette.text.accent";
53
+ };
54
+ };
55
+ };
56
+ translucent: {
57
+ true: {
58
+ root: {
59
+ backdropFilter: "auto";
60
+ backdropBlur: "md";
61
+ backdropSaturate: string;
62
+ backdropBrightness: string;
63
+ };
64
+ };
65
+ false: {};
66
+ };
67
+ feedback: {
68
+ inherit: {
69
+ root: {};
70
+ };
71
+ neutral: {
72
+ root: {
73
+ colorPalette: "neutral";
74
+ };
75
+ };
76
+ primary: {
77
+ root: {
78
+ colorPalette: "primary";
79
+ color: "colorPalette.text";
80
+ };
81
+ };
82
+ success: {
83
+ root: {
84
+ colorPalette: "success";
85
+ color: "colorPalette.text";
86
+ };
87
+ };
88
+ warning: {
89
+ root: {
90
+ colorPalette: "warning";
91
+ color: "colorPalette.text";
92
+ };
93
+ };
94
+ danger: {
95
+ root: {
96
+ colorPalette: "danger";
97
+ color: "colorPalette.text";
98
+ };
99
+ };
100
+ };
101
+ padding: {
102
+ none: {
103
+ root: {
104
+ padding: "none";
105
+ };
106
+ };
107
+ "4xs": {
108
+ root: {
109
+ padding: "4xs";
110
+ };
111
+ };
112
+ "3xs": {
113
+ root: {
114
+ padding: "3xs";
115
+ };
116
+ };
117
+ "2xs": {
118
+ root: {
119
+ padding: "2xs";
120
+ };
121
+ };
122
+ xs: {
123
+ root: {
124
+ padding: "xs";
125
+ };
126
+ };
127
+ sm: {
128
+ root: {
129
+ padding: "sm";
130
+ };
131
+ };
132
+ md: {
133
+ root: {
134
+ padding: "md";
135
+ };
136
+ };
137
+ lg: {
138
+ root: {
139
+ padding: "lg";
140
+ };
141
+ };
142
+ xl: {
143
+ root: {
144
+ padding: "xl";
145
+ };
146
+ };
147
+ "2xl": {
148
+ root: {
149
+ padding: "2xl";
150
+ };
151
+ };
152
+ "3xl": {
153
+ root: {
154
+ padding: "3xl";
155
+ };
156
+ };
157
+ "4xl": {
158
+ root: {
159
+ padding: "4xl";
160
+ };
161
+ };
162
+ "5xl": {
163
+ root: {
164
+ padding: "5xl";
165
+ };
166
+ };
167
+ "6xl": {
168
+ root: {
169
+ padding: "6xl";
170
+ };
171
+ };
172
+ "7xl": {
173
+ root: {
174
+ padding: "7xl";
175
+ };
176
+ };
177
+ "8xl": {
178
+ root: {
179
+ padding: "8xl";
180
+ };
181
+ };
182
+ "9xl": {
183
+ root: {
184
+ padding: "9xl";
185
+ };
186
+ };
187
+ "10xl": {
188
+ root: {
189
+ padding: "10xl";
190
+ };
191
+ };
192
+ "11xl": {
193
+ root: {
194
+ padding: "11xl";
195
+ };
196
+ };
197
+ };
198
+ radius: {
199
+ none: {
200
+ root: {
201
+ borderRadius: "none";
202
+ };
203
+ };
204
+ "2xs": {
205
+ root: {
206
+ borderRadius: "2xs";
207
+ };
208
+ };
209
+ xs: {
210
+ root: {
211
+ borderRadius: "xs";
212
+ };
213
+ };
214
+ sm: {
215
+ root: {
216
+ borderRadius: "sm";
217
+ };
218
+ };
219
+ md: {
220
+ root: {
221
+ borderRadius: "md";
222
+ };
223
+ };
224
+ lg: {
225
+ root: {
226
+ borderRadius: "lg";
227
+ };
228
+ };
229
+ xl: {
230
+ root: {
231
+ borderRadius: "xl";
232
+ };
233
+ };
234
+ "2xl": {
235
+ root: {
236
+ borderRadius: "2xl";
237
+ };
238
+ };
239
+ "3xl": {
240
+ root: {
241
+ borderRadius: "3xl";
242
+ };
243
+ };
244
+ "4xl": {
245
+ root: {
246
+ borderRadius: "4xl";
247
+ };
248
+ };
249
+ "5xl": {
250
+ root: {
251
+ borderRadius: "5xl";
252
+ };
253
+ };
254
+ "6xl": {
255
+ root: {
256
+ borderRadius: "6xl";
257
+ };
258
+ };
259
+ full: {
260
+ root: {
261
+ borderRadius: "full";
262
+ };
263
+ };
264
+ };
265
+ radiusTop: {
266
+ none: {
267
+ root: {
268
+ borderTopLeftRadius: "none";
269
+ borderTopRightRadius: "none";
270
+ };
271
+ };
272
+ "2xs": {
273
+ root: {
274
+ borderTopLeftRadius: "2xs";
275
+ borderTopRightRadius: "2xs";
276
+ };
277
+ };
278
+ xs: {
279
+ root: {
280
+ borderTopLeftRadius: "xs";
281
+ borderTopRightRadius: "xs";
282
+ };
283
+ };
284
+ sm: {
285
+ root: {
286
+ borderTopLeftRadius: "sm";
287
+ borderTopRightRadius: "sm";
288
+ };
289
+ };
290
+ md: {
291
+ root: {
292
+ borderTopLeftRadius: "md";
293
+ borderTopRightRadius: "md";
294
+ };
295
+ };
296
+ lg: {
297
+ root: {
298
+ borderTopLeftRadius: "lg";
299
+ borderTopRightRadius: "lg";
300
+ };
301
+ };
302
+ xl: {
303
+ root: {
304
+ borderTopLeftRadius: "xl";
305
+ borderTopRightRadius: "xl";
306
+ };
307
+ };
308
+ "2xl": {
309
+ root: {
310
+ borderTopLeftRadius: "2xl";
311
+ borderTopRightRadius: "2xl";
312
+ };
313
+ };
314
+ "3xl": {
315
+ root: {
316
+ borderTopLeftRadius: "3xl";
317
+ borderTopRightRadius: "3xl";
318
+ };
319
+ };
320
+ "4xl": {
321
+ root: {
322
+ borderTopLeftRadius: "4xl";
323
+ borderTopRightRadius: "4xl";
324
+ };
325
+ };
326
+ "5xl": {
327
+ root: {
328
+ borderTopLeftRadius: "5xl";
329
+ borderTopRightRadius: "5xl";
330
+ };
331
+ };
332
+ "6xl": {
333
+ root: {
334
+ borderTopLeftRadius: "6xl";
335
+ borderTopRightRadius: "6xl";
336
+ };
337
+ };
338
+ full: {
339
+ root: {
340
+ borderTopLeftRadius: "full";
341
+ borderTopRightRadius: "full";
342
+ };
343
+ };
344
+ };
345
+ radiusBottom: {
346
+ none: {
347
+ root: {
348
+ borderBottomLeftRadius: "none";
349
+ borderBottomRightRadius: "none";
350
+ };
351
+ };
352
+ "2xs": {
353
+ root: {
354
+ borderBottomLeftRadius: "2xs";
355
+ borderBottomRightRadius: "2xs";
356
+ };
357
+ };
358
+ xs: {
359
+ root: {
360
+ borderBottomLeftRadius: "xs";
361
+ borderBottomRightRadius: "xs";
362
+ };
363
+ };
364
+ sm: {
365
+ root: {
366
+ borderBottomLeftRadius: "sm";
367
+ borderBottomRightRadius: "sm";
368
+ };
369
+ };
370
+ md: {
371
+ root: {
372
+ borderBottomLeftRadius: "md";
373
+ borderBottomRightRadius: "md";
374
+ };
375
+ };
376
+ lg: {
377
+ root: {
378
+ borderBottomLeftRadius: "lg";
379
+ borderBottomRightRadius: "lg";
380
+ };
381
+ };
382
+ xl: {
383
+ root: {
384
+ borderBottomLeftRadius: "xl";
385
+ borderBottomRightRadius: "xl";
386
+ };
387
+ };
388
+ "2xl": {
389
+ root: {
390
+ borderBottomLeftRadius: "2xl";
391
+ borderBottomRightRadius: "2xl";
392
+ };
393
+ };
394
+ "3xl": {
395
+ root: {
396
+ borderBottomLeftRadius: "3xl";
397
+ borderBottomRightRadius: "3xl";
398
+ };
399
+ };
400
+ "4xl": {
401
+ root: {
402
+ borderBottomLeftRadius: "4xl";
403
+ borderBottomRightRadius: "4xl";
404
+ };
405
+ };
406
+ "5xl": {
407
+ root: {
408
+ borderBottomLeftRadius: "5xl";
409
+ borderBottomRightRadius: "5xl";
410
+ };
411
+ };
412
+ "6xl": {
413
+ root: {
414
+ borderBottomLeftRadius: "6xl";
415
+ borderBottomRightRadius: "6xl";
416
+ };
417
+ };
418
+ full: {
419
+ root: {
420
+ borderBottomLeftRadius: "full";
421
+ borderBottomRightRadius: "full";
422
+ };
423
+ };
424
+ };
425
+ radiusLeft: {
426
+ none: {
427
+ root: {
428
+ borderTopLeftRadius: "none";
429
+ borderBottomLeftRadius: "none";
430
+ };
431
+ };
432
+ "2xs": {
433
+ root: {
434
+ borderTopLeftRadius: "2xs";
435
+ borderBottomLeftRadius: "2xs";
436
+ };
437
+ };
438
+ xs: {
439
+ root: {
440
+ borderTopLeftRadius: "xs";
441
+ borderBottomLeftRadius: "xs";
442
+ };
443
+ };
444
+ sm: {
445
+ root: {
446
+ borderTopLeftRadius: "sm";
447
+ borderBottomLeftRadius: "sm";
448
+ };
449
+ };
450
+ md: {
451
+ root: {
452
+ borderTopLeftRadius: "md";
453
+ borderBottomLeftRadius: "md";
454
+ };
455
+ };
456
+ lg: {
457
+ root: {
458
+ borderTopLeftRadius: "lg";
459
+ borderBottomLeftRadius: "lg";
460
+ };
461
+ };
462
+ xl: {
463
+ root: {
464
+ borderTopLeftRadius: "xl";
465
+ borderBottomLeftRadius: "xl";
466
+ };
467
+ };
468
+ "2xl": {
469
+ root: {
470
+ borderTopLeftRadius: "2xl";
471
+ borderBottomLeftRadius: "2xl";
472
+ };
473
+ };
474
+ "3xl": {
475
+ root: {
476
+ borderTopLeftRadius: "3xl";
477
+ borderBottomLeftRadius: "3xl";
478
+ };
479
+ };
480
+ "4xl": {
481
+ root: {
482
+ borderTopLeftRadius: "4xl";
483
+ borderBottomLeftRadius: "4xl";
484
+ };
485
+ };
486
+ "5xl": {
487
+ root: {
488
+ borderTopLeftRadius: "5xl";
489
+ borderBottomLeftRadius: "5xl";
490
+ };
491
+ };
492
+ "6xl": {
493
+ root: {
494
+ borderTopLeftRadius: "6xl";
495
+ borderBottomLeftRadius: "6xl";
496
+ };
497
+ };
498
+ full: {
499
+ root: {
500
+ borderTopLeftRadius: "full";
501
+ borderBottomLeftRadius: "full";
502
+ };
503
+ };
504
+ };
505
+ radiusRight: {
506
+ none: {
507
+ root: {
508
+ borderTopRightRadius: "none";
509
+ borderBottomRightRadius: "none";
510
+ };
511
+ };
512
+ "2xs": {
513
+ root: {
514
+ borderTopRightRadius: "2xs";
515
+ borderBottomRightRadius: "2xs";
516
+ };
517
+ };
518
+ xs: {
519
+ root: {
520
+ borderTopRightRadius: "xs";
521
+ borderBottomRightRadius: "xs";
522
+ };
523
+ };
524
+ sm: {
525
+ root: {
526
+ borderTopRightRadius: "sm";
527
+ borderBottomRightRadius: "sm";
528
+ };
529
+ };
530
+ md: {
531
+ root: {
532
+ borderTopRightRadius: "md";
533
+ borderBottomRightRadius: "md";
534
+ };
535
+ };
536
+ lg: {
537
+ root: {
538
+ borderTopRightRadius: "lg";
539
+ borderBottomRightRadius: "lg";
540
+ };
541
+ };
542
+ xl: {
543
+ root: {
544
+ borderTopRightRadius: "xl";
545
+ borderBottomRightRadius: "xl";
546
+ };
547
+ };
548
+ "2xl": {
549
+ root: {
550
+ borderTopRightRadius: "2xl";
551
+ borderBottomRightRadius: "2xl";
552
+ };
553
+ };
554
+ "3xl": {
555
+ root: {
556
+ borderTopRightRadius: "3xl";
557
+ borderBottomRightRadius: "3xl";
558
+ };
559
+ };
560
+ "4xl": {
561
+ root: {
562
+ borderTopRightRadius: "4xl";
563
+ borderBottomRightRadius: "4xl";
564
+ };
565
+ };
566
+ "5xl": {
567
+ root: {
568
+ borderTopRightRadius: "5xl";
569
+ borderBottomRightRadius: "5xl";
570
+ };
571
+ };
572
+ "6xl": {
573
+ root: {
574
+ borderTopRightRadius: "6xl";
575
+ borderBottomRightRadius: "6xl";
576
+ };
577
+ };
578
+ full: {
579
+ root: {
580
+ borderTopRightRadius: "full";
581
+ borderBottomRightRadius: "full";
582
+ };
583
+ };
584
+ };
585
+ border: {
586
+ none: {};
587
+ default: {
588
+ root: {
589
+ "--panel-border": "0 0 0 1px {colors.colorPalette.border}";
590
+ };
591
+ };
592
+ bold: {
593
+ root: {
594
+ "--panel-border": "0 0 0 1px {colors.colorPalette.border.bold}";
595
+ };
596
+ };
597
+ muted: {
598
+ root: {
599
+ "--panel-border": "0 0 0 1px {colors.colorPalette.border.muted}";
600
+ };
601
+ };
602
+ accent: {
603
+ root: {
604
+ "--panel-border": "0 0 0 1px {colors.colorPalette.border.accent}";
605
+ };
606
+ };
607
+ };
608
+ shadow: {
609
+ none: {};
610
+ xs: {
611
+ root: {
612
+ "--panel-shadow": "{shadows.xs}";
613
+ };
614
+ };
615
+ sm: {
616
+ root: {
617
+ "--panel-shadow": "{shadows.sm}";
618
+ };
619
+ };
620
+ md: {
621
+ root: {
622
+ "--panel-shadow": "{shadows.md}";
623
+ };
624
+ };
625
+ lg: {
626
+ root: {
627
+ "--panel-shadow": "{shadows.lg}";
628
+ };
629
+ };
630
+ xl: {
631
+ root: {
632
+ "--panel-shadow": "{shadows.xl}";
633
+ };
634
+ };
635
+ };
636
+ interactive: {
637
+ true: {};
638
+ false: {};
639
+ };
640
+ }>;
641
+ type PanelStyleProps = NonNullable<RecipeVariantProps<typeof panelStyles>>; //#endregion
642
+ //#endregion
643
+ //#region src/types.d.ts
644
+ type ElementAttributes = Partial<Record<string, unknown>>;
645
+ type AvatarEmphasis = NonNullable<AvatarStyleProps["emphasis"]>;
646
+ type AvatarSize = NonNullable<AvatarStyleProps["size"]>;
647
+ type AvatarShape = NonNullable<AvatarStyleProps["shape"]>;
648
+ type AvatarFeedback = NonNullable<PanelStyleProps["feedback"]>;
649
+ type AvatarBackground = NonNullable<PanelStyleProps["background"]>;
650
+ type AvatarBorder = NonNullable<PanelStyleProps["border"]>;
651
+ type AvatarPadding = NonNullable<PanelStyleProps["padding"]>;
652
+ type AvatarRadius = NonNullable<PanelStyleProps["radius"]>;
653
+ type AvatarShadow = NonNullable<PanelStyleProps["shadow"]>;
654
+ interface AvatarSlotPassThrough<T = ElementAttributes> {
655
+ style?: SystemStyleObject;
656
+ props?: T;
657
+ }
658
+ interface AvatarPassThrough<RootElementAttributes = ElementAttributes> {
659
+ root?: AvatarSlotPassThrough<RootElementAttributes>;
660
+ image?: AvatarSlotPassThrough;
661
+ fallback?: AvatarSlotPassThrough;
662
+ }
663
+ /**
664
+ * Panel style props available on avatar. Avatar delegates its surface
665
+ * (background, border, radius, shadow, …) to panel; user-supplied panel
666
+ * props always win over size/shape-derived defaults.
667
+ */
668
+ type AvatarPanelProps = Omit<PanelStyleProps, "emphasis">;
669
+ interface AvatarBaseCommon<RootElementAttributes = ElementAttributes> {
670
+ size?: AvatarSize;
671
+ shape?: AvatarShape;
672
+ /** Image source; omit to render the fallback. */
673
+ src?: string;
674
+ /** Accessible description for the image. */
675
+ alt?: string;
676
+ /** Name used to derive initials for the fallback. */
677
+ name?: string;
678
+ /** Presence indicator colour; omit to hide. */
679
+ status?: AvatarFeedback | null;
680
+ passThrough?: AvatarPassThrough<RootElementAttributes>;
681
+ }
682
+ /**
683
+ * Base avatar props shared across all frameworks.
684
+ */
685
+ type AvatarBaseProps<RootElementAttributes = ElementAttributes> = AvatarBaseCommon<RootElementAttributes> & AvatarPanelProps & {
686
+ emphasis?: AvatarEmphasis;
687
+ };
688
+ type ConnectAvatarOptions = AvatarBaseCommon<object> & AvatarPanelProps & {
689
+ emphasis?: AvatarEmphasis;
690
+ class?: unknown;
691
+ };
692
+ interface AvatarClasses {
693
+ image: string;
694
+ fallback: string;
695
+ status: string;
696
+ }
697
+ interface AvatarRootProps {
698
+ class: string;
699
+ "data-component": "avatar";
700
+ [key: string]: unknown;
701
+ }
702
+ interface AvatarImageProps {
703
+ class: string;
704
+ src: string;
705
+ alt: string;
706
+ "data-slot": "image";
707
+ }
708
+ interface AvatarFallbackProps {
709
+ class: string;
710
+ "aria-hidden": "true" | undefined;
711
+ "data-slot": "fallback";
712
+ }
713
+ interface AvatarStatusProps {
714
+ class: string;
715
+ role: "status";
716
+ "data-status": AvatarFeedback;
717
+ "data-slot": "status";
718
+ }
719
+ interface AvatarApi {
720
+ rootProps: AvatarRootProps;
721
+ classes: AvatarClasses;
722
+ initials: string;
723
+ showImage: boolean;
724
+ showStatus: boolean;
725
+ imageProps?: AvatarImageProps;
726
+ fallbackProps: AvatarFallbackProps;
727
+ statusProps?: AvatarStatusProps;
728
+ }
729
+ //#endregion
730
+ export { ElementAttributes as S, AvatarShape as _, AvatarBorder as a, AvatarStatusProps as b, AvatarFallbackProps as c, AvatarPadding as d, AvatarPanelProps as f, AvatarShadow as g, AvatarRootProps as h, AvatarBaseProps as i, AvatarFeedback as l, AvatarRadius as m, AvatarBackground as n, AvatarClasses as o, AvatarPassThrough as p, AvatarBaseCommon as r, AvatarEmphasis as s, AvatarApi as t, AvatarImageProps as u, AvatarSize as v, ConnectAvatarOptions as x, AvatarSlotPassThrough as y };
731
+ //# sourceMappingURL=types-CqpEyDfv.d.ts.map