@saas-ui/react 3.0.0-alpha.13 → 3.0.0-alpha.15
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/CHANGELOG.md +14 -0
- package/dist/{chunk-M7FOBCOV.js → chunk-4VH4IGVF.js} +2 -1
- package/dist/components/navbar/index.d.cts +3 -3
- package/dist/components/navbar/index.d.ts +3 -3
- package/dist/components/persona/index.cjs +2 -1
- package/dist/components/persona/index.d.cts +113 -3
- package/dist/components/persona/index.d.ts +113 -3
- package/dist/components/persona/index.js +1 -1
- package/dist/components/sidebar/index.d.cts +11 -11
- package/dist/components/sidebar/index.d.ts +11 -11
- package/dist/index.cjs +29 -19
- package/dist/index.js +50 -41
- package/package.json +1 -1
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: "
|
|
2600
|
-
transform: "translate(
|
|
2601
|
-
borderWidth: "0.
|
|
2600
|
+
boxSize: "calc(var(--avatar-size) / 3)",
|
|
2601
|
+
transform: "translate(12%, 12%)",
|
|
2602
|
+
borderWidth: "0.10em",
|
|
2602
2603
|
borderRadius: "50%",
|
|
2603
|
-
borderColor: "
|
|
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:
|
|
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-
|
|
3377
|
-
"--avatar-size": "sizes.6"
|
|
3390
|
+
"--avatar-size": "sizes.5"
|
|
3378
3391
|
}
|
|
3379
3392
|
},
|
|
3380
3393
|
xs: {
|
|
3381
3394
|
root: {
|
|
3382
|
-
"--avatar-
|
|
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-
|
|
3395
|
-
"--avatar-size": "sizes.10"
|
|
3405
|
+
"--avatar-size": "sizes.12"
|
|
3396
3406
|
}
|
|
3397
3407
|
},
|
|
3398
3408
|
lg: {
|
|
3399
3409
|
root: {
|
|
3400
|
-
"--avatar-
|
|
3401
|
-
"--avatar-size": "sizes.11"
|
|
3410
|
+
"--avatar-size": "sizes.14"
|
|
3402
3411
|
}
|
|
3403
3412
|
},
|
|
3404
3413
|
xl: {
|
|
3405
3414
|
root: {
|
|
3406
|
-
"--avatar-
|
|
3407
|
-
"--avatar-size": "sizes.12"
|
|
3415
|
+
"--avatar-size": "sizes.16"
|
|
3408
3416
|
}
|
|
3409
3417
|
},
|
|
3410
3418
|
"2xl": {
|
|
3411
3419
|
root: {
|
|
3412
|
-
"--avatar-font-size": "
|
|
3413
|
-
"--avatar-size": "sizes.
|
|
3420
|
+
"--avatar-font-size": "calc(var(--avatar-size) / 2)",
|
|
3421
|
+
"--avatar-size": "sizes.20"
|
|
3414
3422
|
}
|
|
3415
3423
|
}
|
|
3416
3424
|
},
|
|
@@ -8727,6 +8735,7 @@ var spacing = import_react93.defineTokens.spacing({
|
|
|
8727
8735
|
3: { value: scaleToken("0.75rem") },
|
|
8728
8736
|
3.5: { value: scaleToken("0.875rem") },
|
|
8729
8737
|
4: { value: scaleToken("1rem") },
|
|
8738
|
+
4.5: { value: scaleToken("1.125rem") },
|
|
8730
8739
|
5: { value: scaleToken("1.25rem") },
|
|
8731
8740
|
6: { value: scaleToken("1.5rem") },
|
|
8732
8741
|
7: { value: scaleToken("1.75rem") },
|
|
@@ -10003,6 +10012,7 @@ var Persona = React7.forwardRef(
|
|
|
10003
10012
|
ref,
|
|
10004
10013
|
outOfOffice: isOutOfOffice,
|
|
10005
10014
|
presence,
|
|
10015
|
+
size,
|
|
10006
10016
|
...rest,
|
|
10007
10017
|
children: [
|
|
10008
10018
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
@@ -10016,7 +10026,7 @@ var Persona = React7.forwardRef(
|
|
|
10016
10026
|
onError,
|
|
10017
10027
|
src,
|
|
10018
10028
|
srcSet,
|
|
10019
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PersonaPresenceBadge, { children: presenceIcon })
|
|
10029
|
+
children: presence ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(PersonaPresenceBadge, { children: presenceIcon }) : null
|
|
10020
10030
|
}
|
|
10021
10031
|
),
|
|
10022
10032
|
!hideDetails && /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(PersonaDetails, { children: [
|
package/dist/index.js
CHANGED
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
colors
|
|
6
6
|
} from "./chunk-3MO37LYW.js";
|
|
7
|
-
import {
|
|
8
|
-
SearchInput
|
|
9
|
-
} from "./chunk-LIYUBUOP.js";
|
|
10
7
|
import {
|
|
11
8
|
SegmentedControl
|
|
12
9
|
} from "./chunk-SKXSBAOS.js";
|
|
10
|
+
import {
|
|
11
|
+
SearchInput
|
|
12
|
+
} from "./chunk-LIYUBUOP.js";
|
|
13
13
|
import {
|
|
14
14
|
namespace_exports as namespace_exports3
|
|
15
15
|
} from "./chunk-S3CQW7GD.js";
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
toast
|
|
31
31
|
} from "./chunk-HELHPHIQ.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
33
|
+
Link
|
|
34
|
+
} from "./chunk-TZBAM4AD.js";
|
|
35
35
|
import {
|
|
36
36
|
loading_overlay_exports,
|
|
37
37
|
useLoadingOverlayStyles
|
|
@@ -43,23 +43,29 @@ import {
|
|
|
43
43
|
navbar_exports
|
|
44
44
|
} from "./chunk-Q6SNJJO2.js";
|
|
45
45
|
import {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
SuiContext,
|
|
47
|
+
SuiProvider,
|
|
48
|
+
useLink,
|
|
49
|
+
useSui
|
|
50
|
+
} from "./chunk-O2WVT2BP.js";
|
|
48
51
|
import {
|
|
49
52
|
NumberInput
|
|
50
53
|
} from "./chunk-ULAJ3JEO.js";
|
|
51
54
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} from "./chunk-WYLMBMAH.js";
|
|
55
|
+
PasswordInput
|
|
56
|
+
} from "./chunk-CD2JUFI2.js";
|
|
55
57
|
import {
|
|
56
58
|
PinInput
|
|
57
59
|
} from "./chunk-2EUACKRH.js";
|
|
60
|
+
import {
|
|
61
|
+
Radio,
|
|
62
|
+
RadioGroup
|
|
63
|
+
} from "./chunk-WYLMBMAH.js";
|
|
58
64
|
import {
|
|
59
65
|
Persona,
|
|
60
66
|
PersonaAvatar,
|
|
61
67
|
defaultPresenceOptions
|
|
62
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-4VH4IGVF.js";
|
|
63
69
|
import {
|
|
64
70
|
namespace_exports
|
|
65
71
|
} from "./chunk-CB52LBJK.js";
|
|
@@ -72,7 +78,6 @@ import {
|
|
|
72
78
|
import {
|
|
73
79
|
grid_list_exports
|
|
74
80
|
} from "./chunk-NSD5HRIP.js";
|
|
75
|
-
import "./chunk-KTLWEUNW.js";
|
|
76
81
|
import {
|
|
77
82
|
IconBadge
|
|
78
83
|
} from "./chunk-I2RXEKTB.js";
|
|
@@ -80,14 +85,9 @@ import {
|
|
|
80
85
|
InputGroup
|
|
81
86
|
} from "./chunk-PKI6YH2V.js";
|
|
82
87
|
import {
|
|
83
|
-
|
|
84
|
-
} from "./chunk-
|
|
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: "
|
|
2636
|
-
transform: "translate(
|
|
2637
|
-
borderWidth: "0.
|
|
2636
|
+
boxSize: "calc(var(--avatar-size) / 3)",
|
|
2637
|
+
transform: "translate(12%, 12%)",
|
|
2638
|
+
borderWidth: "0.10em",
|
|
2638
2639
|
borderRadius: "50%",
|
|
2639
|
-
borderColor: "
|
|
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:
|
|
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-
|
|
3413
|
-
"--avatar-size": "sizes.6"
|
|
3426
|
+
"--avatar-size": "sizes.5"
|
|
3414
3427
|
}
|
|
3415
3428
|
},
|
|
3416
3429
|
xs: {
|
|
3417
3430
|
root: {
|
|
3418
|
-
"--avatar-
|
|
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-
|
|
3431
|
-
"--avatar-size": "sizes.10"
|
|
3441
|
+
"--avatar-size": "sizes.12"
|
|
3432
3442
|
}
|
|
3433
3443
|
},
|
|
3434
3444
|
lg: {
|
|
3435
3445
|
root: {
|
|
3436
|
-
"--avatar-
|
|
3437
|
-
"--avatar-size": "sizes.11"
|
|
3446
|
+
"--avatar-size": "sizes.14"
|
|
3438
3447
|
}
|
|
3439
3448
|
},
|
|
3440
3449
|
xl: {
|
|
3441
3450
|
root: {
|
|
3442
|
-
"--avatar-
|
|
3443
|
-
"--avatar-size": "sizes.12"
|
|
3451
|
+
"--avatar-size": "sizes.16"
|
|
3444
3452
|
}
|
|
3445
3453
|
},
|
|
3446
3454
|
"2xl": {
|
|
3447
3455
|
root: {
|
|
3448
|
-
"--avatar-font-size": "
|
|
3449
|
-
"--avatar-size": "sizes.
|
|
3456
|
+
"--avatar-font-size": "calc(var(--avatar-size) / 2)",
|
|
3457
|
+
"--avatar-size": "sizes.20"
|
|
3450
3458
|
}
|
|
3451
3459
|
}
|
|
3452
3460
|
},
|
|
@@ -8442,6 +8450,7 @@ var spacing = defineTokens14.spacing({
|
|
|
8442
8450
|
3: { value: scaleToken("0.75rem") },
|
|
8443
8451
|
3.5: { value: scaleToken("0.875rem") },
|
|
8444
8452
|
4: { value: scaleToken("1rem") },
|
|
8453
|
+
4.5: { value: scaleToken("1.125rem") },
|
|
8445
8454
|
5: { value: scaleToken("1.25rem") },
|
|
8446
8455
|
6: { value: scaleToken("1.5rem") },
|
|
8447
8456
|
7: { value: scaleToken("1.75rem") },
|