@saas-ui/react 3.0.0-alpha.22 → 3.0.0-alpha.23
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -8,8 +8,8 @@ var Status = forwardRef(
|
|
8
8
|
function Status2(props, ref) {
|
9
9
|
const { children, value, ...rest } = props;
|
10
10
|
const color = value ? `status.${value}` : void 0;
|
11
|
-
return /* @__PURE__ */ jsxs(ChakraStatus.Root, { ref,
|
12
|
-
/* @__PURE__ */ jsx(ChakraStatus.Indicator, {}),
|
11
|
+
return /* @__PURE__ */ jsxs(ChakraStatus.Root, { ref, ...rest, children: [
|
12
|
+
/* @__PURE__ */ jsx(ChakraStatus.Indicator, { bg: color }),
|
13
13
|
children
|
14
14
|
] });
|
15
15
|
}
|
@@ -33,8 +33,8 @@ var Status = (0, import_react.forwardRef)(
|
|
33
33
|
function Status2(props, ref) {
|
34
34
|
const { children, value, ...rest } = props;
|
35
35
|
const color = value ? `status.${value}` : void 0;
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.Status.Root, { ref,
|
37
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Status.Indicator, {}),
|
36
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react2.Status.Root, { ref, ...rest, children: [
|
37
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react2.Status.Indicator, { bg: color }),
|
38
38
|
children
|
39
39
|
] });
|
40
40
|
}
|
package/dist/index.cjs
CHANGED
@@ -1565,6 +1565,20 @@ var semanticColors = import_react25.defineSemanticTokens.colors({
|
|
1565
1565
|
value: { _light: "{colors.gray.400}", _dark: "{colors.gray.400}" }
|
1566
1566
|
}
|
1567
1567
|
},
|
1568
|
+
status: {
|
1569
|
+
success: {
|
1570
|
+
value: { _light: "{colors.green.500}", _dark: "{colors.green.500}" }
|
1571
|
+
},
|
1572
|
+
error: {
|
1573
|
+
value: { _light: "{colors.red.500}", _dark: "{colors.red.500}" }
|
1574
|
+
},
|
1575
|
+
warning: {
|
1576
|
+
value: { _light: "{colors.orange.500}", _dark: "{colors.orange.500}" }
|
1577
|
+
},
|
1578
|
+
info: {
|
1579
|
+
value: { _light: "{colors.blue.500}", _dark: "{colors.blue.500}" }
|
1580
|
+
}
|
1581
|
+
},
|
1568
1582
|
sidebar: {
|
1569
1583
|
bg: {
|
1570
1584
|
value: { _light: "{colors.gray.100}", _dark: "{colors.gray.900}" }
|
@@ -3703,11 +3717,14 @@ var tagSlotRecipe = (0, import_react39.defineSlotRecipe)({
|
|
3703
3717
|
justifyContent: "center",
|
3704
3718
|
flexShrink: 0,
|
3705
3719
|
boxSize: "var(--tag-element-size)",
|
3720
|
+
_icon: { boxSize: "80% !important" },
|
3706
3721
|
"&:has([data-scope=avatar])": {
|
3707
3722
|
boxSize: "var(--tag-avatar-size)",
|
3708
3723
|
ms: "var(--tag-element-offset)"
|
3709
3724
|
},
|
3710
|
-
|
3725
|
+
'&:has([class*="status__root"])': {
|
3726
|
+
width: "var(--tag-status-size)"
|
3727
|
+
}
|
3711
3728
|
},
|
3712
3729
|
endElement: {
|
3713
3730
|
flexShrink: 0,
|
@@ -3726,6 +3743,7 @@ var tagSlotRecipe = (0, import_react39.defineSlotRecipe)({
|
|
3726
3743
|
minH: "5",
|
3727
3744
|
gap: "1",
|
3728
3745
|
"--tag-avatar-size": "spacing.3.5",
|
3746
|
+
"--tag-status-size": "spacing.2",
|
3729
3747
|
"--tag-element-size": "spacing.3.5",
|
3730
3748
|
"--tag-element-offset": "spacing.-0.5"
|
3731
3749
|
},
|
@@ -3739,6 +3757,7 @@ var tagSlotRecipe = (0, import_react39.defineSlotRecipe)({
|
|
3739
3757
|
minH: "6",
|
3740
3758
|
gap: "1",
|
3741
3759
|
"--tag-avatar-size": "spacing.4",
|
3760
|
+
"--tag-status-size": "spacing.2",
|
3742
3761
|
"--tag-element-size": "spacing.4",
|
3743
3762
|
"--tag-element-offset": "spacing.-1"
|
3744
3763
|
},
|
@@ -3752,6 +3771,7 @@ var tagSlotRecipe = (0, import_react39.defineSlotRecipe)({
|
|
3752
3771
|
minH: "7",
|
3753
3772
|
gap: "1",
|
3754
3773
|
"--tag-avatar-size": "spacing.5",
|
3774
|
+
"--tag-status-size": "spacing.2",
|
3755
3775
|
"--tag-element-size": "spacing.5",
|
3756
3776
|
"--tag-element-offset": "spacing.-1.5"
|
3757
3777
|
},
|
@@ -3768,11 +3788,12 @@ var tagSlotRecipe = (0, import_react39.defineSlotRecipe)({
|
|
3768
3788
|
minH: "8",
|
3769
3789
|
gap: "1.5",
|
3770
3790
|
"--tag-avatar-size": "spacing.6",
|
3791
|
+
"--tag-status-size": "spacing.2",
|
3771
3792
|
"--tag-element-size": "spacing.6",
|
3772
3793
|
"--tag-element-offset": "spacing.-2"
|
3773
3794
|
},
|
3774
3795
|
label: {
|
3775
|
-
textStyle: "
|
3796
|
+
textStyle: "md"
|
3776
3797
|
},
|
3777
3798
|
closeTrigger: {
|
3778
3799
|
padding: "3px"
|
@@ -10756,8 +10777,8 @@ var Status = (0, import_react159.forwardRef)(
|
|
10756
10777
|
function Status2(props, ref) {
|
10757
10778
|
const { children, value, ...rest } = props;
|
10758
10779
|
const color = value ? `status.${value}` : void 0;
|
10759
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react160.Status.Root, { ref,
|
10760
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react160.Status.Indicator, {}),
|
10780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_react160.Status.Root, { ref, ...rest, children: [
|
10781
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react160.Status.Indicator, { bg: color }),
|
10761
10782
|
children
|
10762
10783
|
] });
|
10763
10784
|
}
|
package/dist/index.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
} from "./chunk-
|
2
|
+
Status
|
3
|
+
} from "./chunk-YKSY7UOM.js";
|
4
|
+
import {
|
5
|
+
steps_exports
|
6
|
+
} from "./chunk-VZG7EJ64.js";
|
7
7
|
import {
|
8
8
|
Switch
|
9
9
|
} from "./chunk-SA3OGTOO.js";
|
@@ -17,45 +17,42 @@ import {
|
|
17
17
|
import {
|
18
18
|
Tooltip
|
19
19
|
} from "./chunk-QSNSWCTM.js";
|
20
|
-
import {
|
21
|
-
steps_exports
|
22
|
-
} from "./chunk-VZG7EJ64.js";
|
23
|
-
import {
|
24
|
-
Status
|
25
|
-
} from "./chunk-Q6IC3BTH.js";
|
26
20
|
import {
|
27
21
|
colors
|
28
22
|
} from "./chunk-3MO37LYW.js";
|
29
23
|
import {
|
30
|
-
|
31
|
-
} from "./chunk-
|
24
|
+
PasswordInput
|
25
|
+
} from "./chunk-CD2JUFI2.js";
|
32
26
|
import {
|
33
27
|
Persona,
|
34
28
|
PersonaAvatar,
|
35
29
|
defaultPresenceOptions
|
36
30
|
} from "./chunk-GWC5GCMW.js";
|
31
|
+
import {
|
32
|
+
PinInput
|
33
|
+
} from "./chunk-2EUACKRH.js";
|
37
34
|
import {
|
38
35
|
Radio,
|
39
36
|
RadioGroup
|
40
37
|
} from "./chunk-WYLMBMAH.js";
|
41
|
-
import {
|
42
|
-
SegmentedControl
|
43
|
-
} from "./chunk-SKXSBAOS.js";
|
44
38
|
import {
|
45
39
|
SearchInput
|
46
40
|
} from "./chunk-46ISJZBS.js";
|
41
|
+
import {
|
42
|
+
SegmentedControl
|
43
|
+
} from "./chunk-SKXSBAOS.js";
|
47
44
|
import {
|
48
45
|
namespace_exports as namespace_exports3
|
49
46
|
} from "./chunk-BU7QENBQ.js";
|
50
47
|
import {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
} from "./chunk-
|
48
|
+
sidebar_exports,
|
49
|
+
useSidebar,
|
50
|
+
useSidebarItemStyles,
|
51
|
+
useSidebarStyles
|
52
|
+
} from "./chunk-U23VDAWJ.js";
|
56
53
|
import {
|
57
|
-
|
58
|
-
} from "./chunk-
|
54
|
+
Link
|
55
|
+
} from "./chunk-TZBAM4AD.js";
|
59
56
|
import {
|
60
57
|
loading_overlay_exports,
|
61
58
|
useLoadingOverlayStyles
|
@@ -64,8 +61,12 @@ import {
|
|
64
61
|
Spinner
|
65
62
|
} from "./chunk-32JGENDB.js";
|
66
63
|
import {
|
67
|
-
|
68
|
-
} from "./chunk-
|
64
|
+
menu_exports
|
65
|
+
} from "./chunk-KFXNVUEZ.js";
|
66
|
+
import "./chunk-KTLWEUNW.js";
|
67
|
+
import {
|
68
|
+
navbar_exports
|
69
|
+
} from "./chunk-Q6SNJJO2.js";
|
69
70
|
import {
|
70
71
|
SuiContext,
|
71
72
|
SuiProvider,
|
@@ -75,49 +76,48 @@ import {
|
|
75
76
|
import {
|
76
77
|
NumberInput
|
77
78
|
} from "./chunk-S5J6REMC.js";
|
78
|
-
import {
|
79
|
-
pagination_exports
|
80
|
-
} from "./chunk-MLJN6IOJ.js";
|
81
|
-
import {
|
82
|
-
PasswordInput
|
83
|
-
} from "./chunk-CD2JUFI2.js";
|
84
79
|
import {
|
85
80
|
InputGroup
|
86
81
|
} from "./chunk-PKI6YH2V.js";
|
82
|
+
import {
|
83
|
+
pagination_exports
|
84
|
+
} from "./chunk-MLJN6IOJ.js";
|
87
85
|
import {
|
88
86
|
Command
|
89
87
|
} from "./chunk-UASXI64E.js";
|
90
88
|
import {
|
91
89
|
namespace_exports
|
92
90
|
} from "./chunk-EQ7Q6HRE.js";
|
93
|
-
import {
|
94
|
-
EmptyState
|
95
|
-
} from "./chunk-FJFNGSPL.js";
|
96
91
|
import {
|
97
92
|
namespace_exports as namespace_exports2
|
98
93
|
} from "./chunk-VJ4NCA6R.js";
|
99
94
|
import {
|
100
95
|
CloseButton
|
101
96
|
} from "./chunk-BKYGKH3L.js";
|
97
|
+
import "./chunk-4TPVIHNO.js";
|
98
|
+
import {
|
99
|
+
EmptyState
|
100
|
+
} from "./chunk-FJFNGSPL.js";
|
102
101
|
import {
|
103
102
|
grid_list_exports
|
104
103
|
} from "./chunk-NSD5HRIP.js";
|
105
|
-
import "./chunk-KTLWEUNW.js";
|
106
|
-
import "./chunk-4TPVIHNO.js";
|
107
104
|
import {
|
108
105
|
IconBadge
|
109
106
|
} from "./chunk-I2RXEKTB.js";
|
107
|
+
import {
|
108
|
+
IconButton
|
109
|
+
} from "./chunk-MS2ELLDY.js";
|
110
110
|
import {
|
111
111
|
AppShell
|
112
112
|
} from "./chunk-6ZNR6N2K.js";
|
113
|
+
import {
|
114
|
+
Badge
|
115
|
+
} from "./chunk-INV6RT5B.js";
|
113
116
|
import "./chunk-YHQ5JGCC.js";
|
114
117
|
import {
|
115
118
|
Avatar,
|
116
119
|
AvatarGroup
|
117
120
|
} from "./chunk-JO4WJVYO.js";
|
118
|
-
import {
|
119
|
-
Badge
|
120
|
-
} from "./chunk-INV6RT5B.js";
|
121
121
|
import {
|
122
122
|
breadcrumb_exports
|
123
123
|
} from "./chunk-TT4C5VXB.js";
|
@@ -1609,6 +1609,20 @@ var semanticColors = defineSemanticTokens.colors({
|
|
1609
1609
|
value: { _light: "{colors.gray.400}", _dark: "{colors.gray.400}" }
|
1610
1610
|
}
|
1611
1611
|
},
|
1612
|
+
status: {
|
1613
|
+
success: {
|
1614
|
+
value: { _light: "{colors.green.500}", _dark: "{colors.green.500}" }
|
1615
|
+
},
|
1616
|
+
error: {
|
1617
|
+
value: { _light: "{colors.red.500}", _dark: "{colors.red.500}" }
|
1618
|
+
},
|
1619
|
+
warning: {
|
1620
|
+
value: { _light: "{colors.orange.500}", _dark: "{colors.orange.500}" }
|
1621
|
+
},
|
1622
|
+
info: {
|
1623
|
+
value: { _light: "{colors.blue.500}", _dark: "{colors.blue.500}" }
|
1624
|
+
}
|
1625
|
+
},
|
1612
1626
|
sidebar: {
|
1613
1627
|
bg: {
|
1614
1628
|
value: { _light: "{colors.gray.100}", _dark: "{colors.gray.900}" }
|
@@ -3750,11 +3764,14 @@ var tagSlotRecipe = defineSlotRecipe12({
|
|
3750
3764
|
justifyContent: "center",
|
3751
3765
|
flexShrink: 0,
|
3752
3766
|
boxSize: "var(--tag-element-size)",
|
3767
|
+
_icon: { boxSize: "80% !important" },
|
3753
3768
|
"&:has([data-scope=avatar])": {
|
3754
3769
|
boxSize: "var(--tag-avatar-size)",
|
3755
3770
|
ms: "var(--tag-element-offset)"
|
3756
3771
|
},
|
3757
|
-
|
3772
|
+
'&:has([class*="status__root"])': {
|
3773
|
+
width: "var(--tag-status-size)"
|
3774
|
+
}
|
3758
3775
|
},
|
3759
3776
|
endElement: {
|
3760
3777
|
flexShrink: 0,
|
@@ -3773,6 +3790,7 @@ var tagSlotRecipe = defineSlotRecipe12({
|
|
3773
3790
|
minH: "5",
|
3774
3791
|
gap: "1",
|
3775
3792
|
"--tag-avatar-size": "spacing.3.5",
|
3793
|
+
"--tag-status-size": "spacing.2",
|
3776
3794
|
"--tag-element-size": "spacing.3.5",
|
3777
3795
|
"--tag-element-offset": "spacing.-0.5"
|
3778
3796
|
},
|
@@ -3786,6 +3804,7 @@ var tagSlotRecipe = defineSlotRecipe12({
|
|
3786
3804
|
minH: "6",
|
3787
3805
|
gap: "1",
|
3788
3806
|
"--tag-avatar-size": "spacing.4",
|
3807
|
+
"--tag-status-size": "spacing.2",
|
3789
3808
|
"--tag-element-size": "spacing.4",
|
3790
3809
|
"--tag-element-offset": "spacing.-1"
|
3791
3810
|
},
|
@@ -3799,6 +3818,7 @@ var tagSlotRecipe = defineSlotRecipe12({
|
|
3799
3818
|
minH: "7",
|
3800
3819
|
gap: "1",
|
3801
3820
|
"--tag-avatar-size": "spacing.5",
|
3821
|
+
"--tag-status-size": "spacing.2",
|
3802
3822
|
"--tag-element-size": "spacing.5",
|
3803
3823
|
"--tag-element-offset": "spacing.-1.5"
|
3804
3824
|
},
|
@@ -3815,11 +3835,12 @@ var tagSlotRecipe = defineSlotRecipe12({
|
|
3815
3835
|
minH: "8",
|
3816
3836
|
gap: "1.5",
|
3817
3837
|
"--tag-avatar-size": "spacing.6",
|
3838
|
+
"--tag-status-size": "spacing.2",
|
3818
3839
|
"--tag-element-size": "spacing.6",
|
3819
3840
|
"--tag-element-offset": "spacing.-2"
|
3820
3841
|
},
|
3821
3842
|
label: {
|
3822
|
-
textStyle: "
|
3843
|
+
textStyle: "md"
|
3823
3844
|
},
|
3824
3845
|
closeTrigger: {
|
3825
3846
|
padding: "3px"
|