@saas-ui/react 3.0.0-alpha.14 → 3.0.0-alpha.15

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs CHANGED
@@ -2585,6 +2585,7 @@ var personaSlotRecipe = (0, import_react32.defineSlotRecipe)({
2585
2585
  ],
2586
2586
  base: {
2587
2587
  root: {
2588
+ "--presence-border-color": "var(--bg-currentcolor)",
2588
2589
  display: "flex",
2589
2590
  flexDirection: "row",
2590
2591
  alignItems: "center"
@@ -2596,11 +2597,11 @@ var personaSlotRecipe = (0, import_react32.defineSlotRecipe)({
2596
2597
  position: "absolute",
2597
2598
  bottom: 0,
2598
2599
  right: 0,
2599
- boxSize: "1em",
2600
- transform: "translate(15%, 15%)",
2601
- borderWidth: "0.15em",
2600
+ boxSize: "calc(var(--avatar-size) / 3)",
2601
+ transform: "translate(12%, 12%)",
2602
+ borderWidth: "0.10em",
2602
2603
  borderRadius: "50%",
2603
- borderColor: "bg.panel",
2604
+ borderColor: "var(--presence-border-color)",
2604
2605
  bg: "var(--persona-presence)"
2605
2606
  },
2606
2607
  details: {
@@ -2621,8 +2622,14 @@ var personaSlotRecipe = (0, import_react32.defineSlotRecipe)({
2621
2622
  },
2622
2623
  variants: {
2623
2624
  size: {
2625
+ "2xs": {
2626
+ details: { ms: 1 },
2627
+ label: { fontSize: "2xs" },
2628
+ secondaryLabel: { display: "none" },
2629
+ tertiaryLabel: { display: "none" }
2630
+ },
2624
2631
  xs: {
2625
- details: { ms: 2 },
2632
+ details: { ms: 1.5 },
2626
2633
  label: { fontSize: "xs" },
2627
2634
  secondaryLabel: { display: "none" },
2628
2635
  tertiaryLabel: { display: "none" }
@@ -2650,6 +2657,12 @@ var personaSlotRecipe = (0, import_react32.defineSlotRecipe)({
2650
2657
  label: { fontSize: "lg" },
2651
2658
  secondaryLabel: { fontSize: "md" },
2652
2659
  tertiaryLabel: { fontSize: "md" }
2660
+ },
2661
+ "2xl": {
2662
+ details: { ms: 4 },
2663
+ label: { fontSize: "xl" },
2664
+ secondaryLabel: { fontSize: "lg" },
2665
+ tertiaryLabel: { fontSize: "lg" }
2653
2666
  }
2654
2667
  }
2655
2668
  },
@@ -3332,6 +3345,7 @@ var avatarSlotRecipe = (0, import_react38.defineSlotRecipe)({
3332
3345
  className: "chakra-avatar",
3333
3346
  base: {
3334
3347
  root: {
3348
+ "--avatar-font-size": "calc(var(--avatar-size) / 2)",
3335
3349
  display: "inline-flex",
3336
3350
  alignItems: "center",
3337
3351
  justifyContent: "center",
@@ -3373,44 +3387,38 @@ var avatarSlotRecipe = (0, import_react38.defineSlotRecipe)({
3373
3387
  },
3374
3388
  "2xs": {
3375
3389
  root: {
3376
- "--avatar-font-size": "fontSizes.2xs",
3377
- "--avatar-size": "sizes.6"
3390
+ "--avatar-size": "sizes.5"
3378
3391
  }
3379
3392
  },
3380
3393
  xs: {
3381
3394
  root: {
3382
- "--avatar-font-size": "fontSizes.xs",
3383
- "--avatar-size": "sizes.8"
3395
+ "--avatar-size": "sizes.6"
3384
3396
  }
3385
3397
  },
3386
3398
  sm: {
3387
3399
  root: {
3388
- "--avatar-font-size": "fontSizes.sm",
3389
3400
  "--avatar-size": "sizes.9"
3390
3401
  }
3391
3402
  },
3392
3403
  md: {
3393
3404
  root: {
3394
- "--avatar-font-size": "fontSizes.md",
3395
- "--avatar-size": "sizes.10"
3405
+ "--avatar-size": "sizes.12"
3396
3406
  }
3397
3407
  },
3398
3408
  lg: {
3399
3409
  root: {
3400
- "--avatar-font-size": "fontSizes.md",
3401
- "--avatar-size": "sizes.11"
3410
+ "--avatar-size": "sizes.14"
3402
3411
  }
3403
3412
  },
3404
3413
  xl: {
3405
3414
  root: {
3406
- "--avatar-font-size": "fontSizes.lg",
3407
- "--avatar-size": "sizes.12"
3415
+ "--avatar-size": "sizes.16"
3408
3416
  }
3409
3417
  },
3410
3418
  "2xl": {
3411
3419
  root: {
3412
- "--avatar-font-size": "fontSizes.xl",
3413
- "--avatar-size": "sizes.16"
3420
+ "--avatar-font-size": "calc(var(--avatar-size) / 2)",
3421
+ "--avatar-size": "sizes.20"
3414
3422
  }
3415
3423
  }
3416
3424
  },
@@ -10004,6 +10012,7 @@ var Persona = React7.forwardRef(
10004
10012
  ref,
10005
10013
  outOfOffice: isOutOfOffice,
10006
10014
  presence,
10015
+ size,
10007
10016
  ...rest,
10008
10017
  children: [
10009
10018
  /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
@@ -10017,7 +10026,7 @@ var Persona = React7.forwardRef(
10017
10026
  onError,
10018
10027
  src,
10019
10028
  srcSet,
10020
- children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PersonaPresenceBadge, { children: presenceIcon })
10029
+ children: presence ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PersonaPresenceBadge, { children: presenceIcon }) : null
10021
10030
  }
10022
10031
  ),
10023
10032
  !hideDetails && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(PersonaDetails, { children: [
package/dist/index.js CHANGED
@@ -19,6 +19,9 @@ import {
19
19
  useSidebarItemStyles,
20
20
  useSidebarStyles
21
21
  } from "./chunk-GGAKUS66.js";
22
+ import {
23
+ steps_exports
24
+ } from "./chunk-44ZA3TYW.js";
22
25
  import {
23
26
  Switch
24
27
  } from "./chunk-SA3OGTOO.js";
@@ -27,11 +30,8 @@ import {
27
30
  toast
28
31
  } from "./chunk-HELHPHIQ.js";
29
32
  import {
30
- steps_exports
31
- } from "./chunk-44ZA3TYW.js";
32
- import {
33
- menu_exports
34
- } from "./chunk-KK77TYNL.js";
33
+ Link
34
+ } from "./chunk-TZBAM4AD.js";
35
35
  import {
36
36
  loading_overlay_exports,
37
37
  useLoadingOverlayStyles
@@ -42,6 +42,12 @@ import {
42
42
  import {
43
43
  navbar_exports
44
44
  } from "./chunk-Q6SNJJO2.js";
45
+ import {
46
+ SuiContext,
47
+ SuiProvider,
48
+ useLink,
49
+ useSui
50
+ } from "./chunk-O2WVT2BP.js";
45
51
  import {
46
52
  NumberInput
47
53
  } from "./chunk-ULAJ3JEO.js";
@@ -51,15 +57,15 @@ import {
51
57
  import {
52
58
  PinInput
53
59
  } from "./chunk-2EUACKRH.js";
54
- import {
55
- Persona,
56
- PersonaAvatar,
57
- defaultPresenceOptions
58
- } from "./chunk-M7FOBCOV.js";
59
60
  import {
60
61
  Radio,
61
62
  RadioGroup
62
63
  } from "./chunk-WYLMBMAH.js";
64
+ import {
65
+ Persona,
66
+ PersonaAvatar,
67
+ defaultPresenceOptions
68
+ } from "./chunk-4VH4IGVF.js";
63
69
  import {
64
70
  namespace_exports
65
71
  } from "./chunk-CB52LBJK.js";
@@ -75,19 +81,13 @@ import {
75
81
  import {
76
82
  IconBadge
77
83
  } from "./chunk-I2RXEKTB.js";
78
- import "./chunk-KTLWEUNW.js";
79
84
  import {
80
85
  InputGroup
81
86
  } from "./chunk-PKI6YH2V.js";
82
87
  import {
83
- Link
84
- } from "./chunk-TZBAM4AD.js";
85
- import {
86
- SuiContext,
87
- SuiProvider,
88
- useLink,
89
- useSui
90
- } from "./chunk-O2WVT2BP.js";
88
+ menu_exports
89
+ } from "./chunk-KK77TYNL.js";
90
+ import "./chunk-KTLWEUNW.js";
91
91
  import {
92
92
  AppShell
93
93
  } from "./chunk-6ZNR6N2K.js";
@@ -98,12 +98,12 @@ import {
98
98
  import {
99
99
  breadcrumb_exports
100
100
  } from "./chunk-TT4C5VXB.js";
101
- import {
102
- Button
103
- } from "./chunk-BCNPBZZK.js";
104
101
  import {
105
102
  Checkbox
106
103
  } from "./chunk-L356FPLY.js";
104
+ import {
105
+ Button
106
+ } from "./chunk-BCNPBZZK.js";
107
107
  import {
108
108
  CloseButton
109
109
  } from "./chunk-FZW2DYK3.js";
@@ -2621,6 +2621,7 @@ var personaSlotRecipe = defineSlotRecipe5({
2621
2621
  ],
2622
2622
  base: {
2623
2623
  root: {
2624
+ "--presence-border-color": "var(--bg-currentcolor)",
2624
2625
  display: "flex",
2625
2626
  flexDirection: "row",
2626
2627
  alignItems: "center"
@@ -2632,11 +2633,11 @@ var personaSlotRecipe = defineSlotRecipe5({
2632
2633
  position: "absolute",
2633
2634
  bottom: 0,
2634
2635
  right: 0,
2635
- boxSize: "1em",
2636
- transform: "translate(15%, 15%)",
2637
- borderWidth: "0.15em",
2636
+ boxSize: "calc(var(--avatar-size) / 3)",
2637
+ transform: "translate(12%, 12%)",
2638
+ borderWidth: "0.10em",
2638
2639
  borderRadius: "50%",
2639
- borderColor: "bg.panel",
2640
+ borderColor: "var(--presence-border-color)",
2640
2641
  bg: "var(--persona-presence)"
2641
2642
  },
2642
2643
  details: {
@@ -2657,8 +2658,14 @@ var personaSlotRecipe = defineSlotRecipe5({
2657
2658
  },
2658
2659
  variants: {
2659
2660
  size: {
2661
+ "2xs": {
2662
+ details: { ms: 1 },
2663
+ label: { fontSize: "2xs" },
2664
+ secondaryLabel: { display: "none" },
2665
+ tertiaryLabel: { display: "none" }
2666
+ },
2660
2667
  xs: {
2661
- details: { ms: 2 },
2668
+ details: { ms: 1.5 },
2662
2669
  label: { fontSize: "xs" },
2663
2670
  secondaryLabel: { display: "none" },
2664
2671
  tertiaryLabel: { display: "none" }
@@ -2686,6 +2693,12 @@ var personaSlotRecipe = defineSlotRecipe5({
2686
2693
  label: { fontSize: "lg" },
2687
2694
  secondaryLabel: { fontSize: "md" },
2688
2695
  tertiaryLabel: { fontSize: "md" }
2696
+ },
2697
+ "2xl": {
2698
+ details: { ms: 4 },
2699
+ label: { fontSize: "xl" },
2700
+ secondaryLabel: { fontSize: "lg" },
2701
+ tertiaryLabel: { fontSize: "lg" }
2689
2702
  }
2690
2703
  }
2691
2704
  },
@@ -3368,6 +3381,7 @@ var avatarSlotRecipe = defineSlotRecipe11({
3368
3381
  className: "chakra-avatar",
3369
3382
  base: {
3370
3383
  root: {
3384
+ "--avatar-font-size": "calc(var(--avatar-size) / 2)",
3371
3385
  display: "inline-flex",
3372
3386
  alignItems: "center",
3373
3387
  justifyContent: "center",
@@ -3409,44 +3423,38 @@ var avatarSlotRecipe = defineSlotRecipe11({
3409
3423
  },
3410
3424
  "2xs": {
3411
3425
  root: {
3412
- "--avatar-font-size": "fontSizes.2xs",
3413
- "--avatar-size": "sizes.6"
3426
+ "--avatar-size": "sizes.5"
3414
3427
  }
3415
3428
  },
3416
3429
  xs: {
3417
3430
  root: {
3418
- "--avatar-font-size": "fontSizes.xs",
3419
- "--avatar-size": "sizes.8"
3431
+ "--avatar-size": "sizes.6"
3420
3432
  }
3421
3433
  },
3422
3434
  sm: {
3423
3435
  root: {
3424
- "--avatar-font-size": "fontSizes.sm",
3425
3436
  "--avatar-size": "sizes.9"
3426
3437
  }
3427
3438
  },
3428
3439
  md: {
3429
3440
  root: {
3430
- "--avatar-font-size": "fontSizes.md",
3431
- "--avatar-size": "sizes.10"
3441
+ "--avatar-size": "sizes.12"
3432
3442
  }
3433
3443
  },
3434
3444
  lg: {
3435
3445
  root: {
3436
- "--avatar-font-size": "fontSizes.md",
3437
- "--avatar-size": "sizes.11"
3446
+ "--avatar-size": "sizes.14"
3438
3447
  }
3439
3448
  },
3440
3449
  xl: {
3441
3450
  root: {
3442
- "--avatar-font-size": "fontSizes.lg",
3443
- "--avatar-size": "sizes.12"
3451
+ "--avatar-size": "sizes.16"
3444
3452
  }
3445
3453
  },
3446
3454
  "2xl": {
3447
3455
  root: {
3448
- "--avatar-font-size": "fontSizes.xl",
3449
- "--avatar-size": "sizes.16"
3456
+ "--avatar-font-size": "calc(var(--avatar-size) / 2)",
3457
+ "--avatar-size": "sizes.20"
3450
3458
  }
3451
3459
  }
3452
3460
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saas-ui/react",
3
- "version": "3.0.0-alpha.14",
3
+ "version": "3.0.0-alpha.15",
4
4
  "description": "Saas UI - The React component library for startups.",
5
5
  "type": "module",
6
6
  "exports": {