@saas-ui/react 3.0.0-alpha.14 → 3.0.0-alpha.16
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/{chunk-4TR3AOMG.js → chunk-UASXI64E.js} +12 -11
- package/dist/components/command/index.cjs +12 -12
- package/dist/components/command/index.d.cts +31 -2
- package/dist/components/command/index.d.ts +31 -2
- package/dist/components/command/index.js +1 -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 +338 -299
- package/dist/index.js +91 -53
- package/package.json +1 -1
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
|
-
SegmentedControl
|
9
|
-
} from "./chunk-SKXSBAOS.js";
|
10
7
|
import {
|
11
8
|
SearchInput
|
12
9
|
} from "./chunk-LIYUBUOP.js";
|
10
|
+
import {
|
11
|
+
SegmentedControl
|
12
|
+
} from "./chunk-SKXSBAOS.js";
|
13
13
|
import {
|
14
14
|
namespace_exports as namespace_exports3
|
15
15
|
} from "./chunk-S3CQW7GD.js";
|
@@ -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";
|
@@ -26,12 +29,6 @@ import {
|
|
26
29
|
Toaster,
|
27
30
|
toast
|
28
31
|
} from "./chunk-HELHPHIQ.js";
|
29
|
-
import {
|
30
|
-
steps_exports
|
31
|
-
} from "./chunk-44ZA3TYW.js";
|
32
|
-
import {
|
33
|
-
menu_exports
|
34
|
-
} from "./chunk-KK77TYNL.js";
|
35
32
|
import {
|
36
33
|
loading_overlay_exports,
|
37
34
|
useLoadingOverlayStyles
|
@@ -39,6 +36,9 @@ import {
|
|
39
36
|
import {
|
40
37
|
Spinner
|
41
38
|
} from "./chunk-32JGENDB.js";
|
39
|
+
import {
|
40
|
+
menu_exports
|
41
|
+
} from "./chunk-KK77TYNL.js";
|
42
42
|
import {
|
43
43
|
navbar_exports
|
44
44
|
} from "./chunk-Q6SNJJO2.js";
|
@@ -48,14 +48,14 @@ import {
|
|
48
48
|
import {
|
49
49
|
PasswordInput
|
50
50
|
} from "./chunk-CD2JUFI2.js";
|
51
|
-
import {
|
52
|
-
PinInput
|
53
|
-
} from "./chunk-2EUACKRH.js";
|
54
51
|
import {
|
55
52
|
Persona,
|
56
53
|
PersonaAvatar,
|
57
54
|
defaultPresenceOptions
|
58
|
-
} from "./chunk-
|
55
|
+
} from "./chunk-4VH4IGVF.js";
|
56
|
+
import {
|
57
|
+
PinInput
|
58
|
+
} from "./chunk-2EUACKRH.js";
|
59
59
|
import {
|
60
60
|
Radio,
|
61
61
|
RadioGroup
|
@@ -110,7 +110,7 @@ import {
|
|
110
110
|
import "./chunk-VDXTEASE.js";
|
111
111
|
import {
|
112
112
|
Command
|
113
|
-
} from "./chunk-
|
113
|
+
} from "./chunk-UASXI64E.js";
|
114
114
|
import "./chunk-RTMS5TJN.js";
|
115
115
|
|
116
116
|
// src/preset.ts
|
@@ -590,6 +590,7 @@ var commandRecipe = defineRecipe2({
|
|
590
590
|
colorPalette: "gray",
|
591
591
|
display: "inline-flex",
|
592
592
|
gap: 1,
|
593
|
+
color: "fg.muted",
|
593
594
|
"[role=tooltip] > &": {
|
594
595
|
ms: 1,
|
595
596
|
_before: {
|
@@ -598,6 +599,22 @@ var commandRecipe = defineRecipe2({
|
|
598
599
|
fontSize: "xs"
|
599
600
|
}
|
600
601
|
}
|
602
|
+
},
|
603
|
+
variants: {
|
604
|
+
size: {
|
605
|
+
sm: {
|
606
|
+
fontSize: "xs"
|
607
|
+
},
|
608
|
+
md: {
|
609
|
+
fontSize: "sm"
|
610
|
+
},
|
611
|
+
lg: {
|
612
|
+
fontSize: "md"
|
613
|
+
}
|
614
|
+
}
|
615
|
+
},
|
616
|
+
defaultVariants: {
|
617
|
+
size: "md"
|
601
618
|
}
|
602
619
|
});
|
603
620
|
|
@@ -1043,7 +1060,7 @@ var kbdRecipe = defineRecipe12({
|
|
1043
1060
|
display: "inline-flex",
|
1044
1061
|
alignItems: "center",
|
1045
1062
|
fontWeight: "medium",
|
1046
|
-
fontFamily: "
|
1063
|
+
fontFamily: "body",
|
1047
1064
|
flexShrink: "0",
|
1048
1065
|
whiteSpace: "nowrap",
|
1049
1066
|
wordSpacing: "-0.5em",
|
@@ -1078,18 +1095,18 @@ var kbdRecipe = defineRecipe12({
|
|
1078
1095
|
height: "4.5"
|
1079
1096
|
},
|
1080
1097
|
md: {
|
1081
|
-
textStyle: "
|
1098
|
+
textStyle: "xs",
|
1082
1099
|
height: "5"
|
1083
1100
|
},
|
1084
1101
|
lg: {
|
1085
|
-
textStyle: "
|
1102
|
+
textStyle: "sm",
|
1086
1103
|
height: "6"
|
1087
1104
|
}
|
1088
1105
|
}
|
1089
1106
|
},
|
1090
1107
|
defaultVariants: {
|
1091
1108
|
size: "md",
|
1092
|
-
variant: "
|
1109
|
+
variant: "subtle"
|
1093
1110
|
}
|
1094
1111
|
});
|
1095
1112
|
|
@@ -2621,6 +2638,7 @@ var personaSlotRecipe = defineSlotRecipe5({
|
|
2621
2638
|
],
|
2622
2639
|
base: {
|
2623
2640
|
root: {
|
2641
|
+
"--presence-border-color": "var(--bg-currentcolor)",
|
2624
2642
|
display: "flex",
|
2625
2643
|
flexDirection: "row",
|
2626
2644
|
alignItems: "center"
|
@@ -2632,11 +2650,11 @@ var personaSlotRecipe = defineSlotRecipe5({
|
|
2632
2650
|
position: "absolute",
|
2633
2651
|
bottom: 0,
|
2634
2652
|
right: 0,
|
2635
|
-
boxSize: "
|
2636
|
-
transform: "translate(
|
2637
|
-
borderWidth: "0.
|
2653
|
+
boxSize: "calc(var(--avatar-size) / 3)",
|
2654
|
+
transform: "translate(12%, 12%)",
|
2655
|
+
borderWidth: "0.10em",
|
2638
2656
|
borderRadius: "50%",
|
2639
|
-
borderColor: "
|
2657
|
+
borderColor: "var(--presence-border-color)",
|
2640
2658
|
bg: "var(--persona-presence)"
|
2641
2659
|
},
|
2642
2660
|
details: {
|
@@ -2657,8 +2675,14 @@ var personaSlotRecipe = defineSlotRecipe5({
|
|
2657
2675
|
},
|
2658
2676
|
variants: {
|
2659
2677
|
size: {
|
2678
|
+
"2xs": {
|
2679
|
+
details: { ms: 1 },
|
2680
|
+
label: { fontSize: "2xs" },
|
2681
|
+
secondaryLabel: { display: "none" },
|
2682
|
+
tertiaryLabel: { display: "none" }
|
2683
|
+
},
|
2660
2684
|
xs: {
|
2661
|
-
details: { ms:
|
2685
|
+
details: { ms: 1.5 },
|
2662
2686
|
label: { fontSize: "xs" },
|
2663
2687
|
secondaryLabel: { display: "none" },
|
2664
2688
|
tertiaryLabel: { display: "none" }
|
@@ -2686,6 +2710,12 @@ var personaSlotRecipe = defineSlotRecipe5({
|
|
2686
2710
|
label: { fontSize: "lg" },
|
2687
2711
|
secondaryLabel: { fontSize: "md" },
|
2688
2712
|
tertiaryLabel: { fontSize: "md" }
|
2713
|
+
},
|
2714
|
+
"2xl": {
|
2715
|
+
details: { ms: 4 },
|
2716
|
+
label: { fontSize: "xl" },
|
2717
|
+
secondaryLabel: { fontSize: "lg" },
|
2718
|
+
tertiaryLabel: { fontSize: "lg" }
|
2689
2719
|
}
|
2690
2720
|
}
|
2691
2721
|
},
|
@@ -3368,6 +3398,7 @@ var avatarSlotRecipe = defineSlotRecipe11({
|
|
3368
3398
|
className: "chakra-avatar",
|
3369
3399
|
base: {
|
3370
3400
|
root: {
|
3401
|
+
"--avatar-font-size": "calc(var(--avatar-size) / 2)",
|
3371
3402
|
display: "inline-flex",
|
3372
3403
|
alignItems: "center",
|
3373
3404
|
justifyContent: "center",
|
@@ -3409,44 +3440,38 @@ var avatarSlotRecipe = defineSlotRecipe11({
|
|
3409
3440
|
},
|
3410
3441
|
"2xs": {
|
3411
3442
|
root: {
|
3412
|
-
"--avatar-
|
3413
|
-
"--avatar-size": "sizes.6"
|
3443
|
+
"--avatar-size": "sizes.5"
|
3414
3444
|
}
|
3415
3445
|
},
|
3416
3446
|
xs: {
|
3417
3447
|
root: {
|
3418
|
-
"--avatar-
|
3419
|
-
"--avatar-size": "sizes.8"
|
3448
|
+
"--avatar-size": "sizes.6"
|
3420
3449
|
}
|
3421
3450
|
},
|
3422
3451
|
sm: {
|
3423
3452
|
root: {
|
3424
|
-
"--avatar-font-size": "fontSizes.sm",
|
3425
3453
|
"--avatar-size": "sizes.9"
|
3426
3454
|
}
|
3427
3455
|
},
|
3428
3456
|
md: {
|
3429
3457
|
root: {
|
3430
|
-
"--avatar-
|
3431
|
-
"--avatar-size": "sizes.10"
|
3458
|
+
"--avatar-size": "sizes.12"
|
3432
3459
|
}
|
3433
3460
|
},
|
3434
3461
|
lg: {
|
3435
3462
|
root: {
|
3436
|
-
"--avatar-
|
3437
|
-
"--avatar-size": "sizes.11"
|
3463
|
+
"--avatar-size": "sizes.14"
|
3438
3464
|
}
|
3439
3465
|
},
|
3440
3466
|
xl: {
|
3441
3467
|
root: {
|
3442
|
-
"--avatar-
|
3443
|
-
"--avatar-size": "sizes.12"
|
3468
|
+
"--avatar-size": "sizes.16"
|
3444
3469
|
}
|
3445
3470
|
},
|
3446
3471
|
"2xl": {
|
3447
3472
|
root: {
|
3448
|
-
"--avatar-font-size": "
|
3449
|
-
"--avatar-size": "sizes.
|
3473
|
+
"--avatar-font-size": "calc(var(--avatar-size) / 2)",
|
3474
|
+
"--avatar-size": "sizes.20"
|
3450
3475
|
}
|
3451
3476
|
}
|
3452
3477
|
},
|
@@ -7969,9 +7994,11 @@ var tooltipSlotRecipe = defineSlotRecipe49({
|
|
7969
7994
|
className: "chakra-tooltip",
|
7970
7995
|
base: {
|
7971
7996
|
content: {
|
7972
|
-
"--tooltip-bg": "colors.bg
|
7997
|
+
"--tooltip-bg": "colors.bg",
|
7998
|
+
display: "flex",
|
7999
|
+
alignItems: "center",
|
7973
8000
|
bg: "var(--tooltip-bg)",
|
7974
|
-
color: "fg
|
8001
|
+
color: "fg",
|
7975
8002
|
px: "2.5",
|
7976
8003
|
py: "1",
|
7977
8004
|
borderRadius: "l2",
|
@@ -7992,13 +8019,24 @@ var tooltipSlotRecipe = defineSlotRecipe49({
|
|
7992
8019
|
},
|
7993
8020
|
arrow: {
|
7994
8021
|
"--arrow-size": "sizes.2",
|
7995
|
-
"--arrow-background": "var(--tooltip-bg)"
|
8022
|
+
"--arrow-background": "var(--tooltip-bg)",
|
8023
|
+
zIndex: "-1"
|
7996
8024
|
},
|
7997
8025
|
arrowTip: {
|
7998
8026
|
borderTopWidth: "1px",
|
7999
8027
|
borderInlineStartWidth: "1px",
|
8000
8028
|
borderColor: "var(--tooltip-bg)"
|
8001
8029
|
}
|
8030
|
+
},
|
8031
|
+
variants: {
|
8032
|
+
variant: {
|
8033
|
+
inverted: {
|
8034
|
+
content: {
|
8035
|
+
"--tooltip-bg": "colors.bg.inverted",
|
8036
|
+
color: "fg.inverted"
|
8037
|
+
}
|
8038
|
+
}
|
8039
|
+
}
|
8002
8040
|
}
|
8003
8041
|
});
|
8004
8042
|
|
@@ -8179,20 +8217,20 @@ var easings = defineTokens7.easings({
|
|
8179
8217
|
// src/theme/tokens/font-sizes.ts
|
8180
8218
|
import { defineTokens as defineTokens8 } from "@chakra-ui/react";
|
8181
8219
|
var fontSizes = defineTokens8.fontSizes({
|
8182
|
-
"2xs": { value: scaleToken("0.
|
8183
|
-
xs: { value: scaleToken("0.
|
8184
|
-
sm: { value: scaleToken("0.
|
8185
|
-
md: { value: scaleToken("
|
8186
|
-
lg: { value: scaleToken("
|
8187
|
-
xl: { value: scaleToken("1.
|
8188
|
-
"2xl": { value: scaleToken("1.
|
8189
|
-
"3xl": { value: scaleToken("1.
|
8190
|
-
"4xl": { value: scaleToken("
|
8191
|
-
"5xl": { value: scaleToken("
|
8192
|
-
"6xl": { value: scaleToken("
|
8193
|
-
"7xl": { value: scaleToken("
|
8194
|
-
"8xl": { value: scaleToken("
|
8195
|
-
"9xl": { value: scaleToken("
|
8220
|
+
"2xs": { value: scaleToken("0.625rem") },
|
8221
|
+
xs: { value: scaleToken("0.75rem") },
|
8222
|
+
sm: { value: scaleToken("0.8125rem") },
|
8223
|
+
md: { value: scaleToken("0.875rem") },
|
8224
|
+
lg: { value: scaleToken("1rem") },
|
8225
|
+
xl: { value: scaleToken("1.125rem") },
|
8226
|
+
"2xl": { value: scaleToken("1.25rem") },
|
8227
|
+
"3xl": { value: scaleToken("1.5rem") },
|
8228
|
+
"4xl": { value: scaleToken("1.875rem") },
|
8229
|
+
"5xl": { value: scaleToken("2.25rem") },
|
8230
|
+
"6xl": { value: scaleToken("3rem") },
|
8231
|
+
"7xl": { value: scaleToken("3.75rem") },
|
8232
|
+
"8xl": { value: scaleToken("4.5rem") },
|
8233
|
+
"9xl": { value: scaleToken("6rem") }
|
8196
8234
|
});
|
8197
8235
|
|
8198
8236
|
// src/theme/tokens/font-weights.ts
|