@sikka/hawa 0.42.10-next → 0.42.11-next
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/dist/appLayout/index.d.mts +2 -2
- package/dist/appLayout/index.d.ts +2 -2
- package/dist/appLayout/index.js +18 -4
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +18 -4
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +18 -4
- package/dist/index.mjs +18 -4
- package/dist/layout/index.d.mts +2 -2
- package/dist/layout/index.d.ts +2 -2
- package/dist/layout/index.js +18 -4
- package/dist/layout/index.mjs +18 -4
- package/dist/sidebar/index.d.mts +2 -2
- package/dist/sidebar/index.d.ts +2 -2
- package/dist/sidebar/index.js +18 -4
- package/dist/sidebar/index.js.map +1 -1
- package/dist/sidebar/index.mjs +18 -4
- package/dist/sidebar/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -47,7 +47,7 @@ type AppSidebarItemProps = {
|
|
47
47
|
label: string;
|
48
48
|
badge?: {
|
49
49
|
label: string;
|
50
|
-
color
|
50
|
+
color?: ChipColors;
|
51
51
|
};
|
52
52
|
icon?: any;
|
53
53
|
subitems?: SubItem[];
|
@@ -60,7 +60,7 @@ type SubItem = {
|
|
60
60
|
slug?: string;
|
61
61
|
badge?: {
|
62
62
|
label: string;
|
63
|
-
color
|
63
|
+
color?: ChipColors;
|
64
64
|
};
|
65
65
|
icon?: any;
|
66
66
|
onMouseDown?: (e: React.MouseEvent) => void;
|
@@ -47,7 +47,7 @@ type AppSidebarItemProps = {
|
|
47
47
|
label: string;
|
48
48
|
badge?: {
|
49
49
|
label: string;
|
50
|
-
color
|
50
|
+
color?: ChipColors;
|
51
51
|
};
|
52
52
|
icon?: any;
|
53
53
|
subitems?: SubItem[];
|
@@ -60,7 +60,7 @@ type SubItem = {
|
|
60
60
|
slug?: string;
|
61
61
|
badge?: {
|
62
62
|
label: string;
|
63
|
-
color
|
63
|
+
color?: ChipColors;
|
64
64
|
};
|
65
65
|
icon?: any;
|
66
66
|
onMouseDown?: (e: React.MouseEvent) => void;
|
package/dist/appLayout/index.js
CHANGED
@@ -1154,12 +1154,19 @@ var SidebarItem = ({
|
|
1154
1154
|
"span",
|
1155
1155
|
{
|
1156
1156
|
className: cn(
|
1157
|
-
"hawa-transition-all",
|
1157
|
+
"hawa-transition-all hawa-flex hawa-flex-row hawa-items-center hawa-gap-2 hawa-whitespace-nowrap",
|
1158
1158
|
isOpen ? "hawa-opacity-100" : "hawa-opacity-0"
|
1159
1159
|
)
|
1160
1160
|
},
|
1161
1161
|
item.label,
|
1162
|
-
item.badge && /* @__PURE__ */ React11.createElement(
|
1162
|
+
item.badge && /* @__PURE__ */ React11.createElement(
|
1163
|
+
Chip,
|
1164
|
+
{
|
1165
|
+
label: item.badge.label,
|
1166
|
+
color: item.badge.color,
|
1167
|
+
size: "small"
|
1168
|
+
}
|
1169
|
+
)
|
1163
1170
|
)
|
1164
1171
|
)
|
1165
1172
|
),
|
@@ -1201,7 +1208,7 @@ var SidebarItem = ({
|
|
1201
1208
|
Chip,
|
1202
1209
|
{
|
1203
1210
|
label: subitem.badge.label,
|
1204
|
-
color:
|
1211
|
+
color: subitem.badge.color,
|
1205
1212
|
size: "small"
|
1206
1213
|
}
|
1207
1214
|
)
|
@@ -1243,7 +1250,14 @@ var SidebarItem = ({
|
|
1243
1250
|
},
|
1244
1251
|
item.label,
|
1245
1252
|
" ",
|
1246
|
-
item.badge && /* @__PURE__ */ React11.createElement(
|
1253
|
+
item.badge && /* @__PURE__ */ React11.createElement(
|
1254
|
+
Chip,
|
1255
|
+
{
|
1256
|
+
label: item.badge.label,
|
1257
|
+
color: item.badge.color,
|
1258
|
+
size: "small"
|
1259
|
+
}
|
1260
|
+
)
|
1247
1261
|
))
|
1248
1262
|
);
|
1249
1263
|
}
|