@sikka/hawa 0.42.8-next → 0.42.10-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.
@@ -58,6 +58,10 @@ type SubItem = {
58
58
  value: string;
59
59
  label: string;
60
60
  slug?: string;
61
+ badge?: {
62
+ label: string;
63
+ color: ChipColors;
64
+ };
61
65
  icon?: any;
62
66
  onMouseDown?: (e: React.MouseEvent) => void;
63
67
  onClick?: (e: React.MouseEvent) => void;
@@ -58,6 +58,10 @@ type SubItem = {
58
58
  value: string;
59
59
  label: string;
60
60
  slug?: string;
61
+ badge?: {
62
+ label: string;
63
+ color: ChipColors;
64
+ };
61
65
  icon?: any;
62
66
  onMouseDown?: (e: React.MouseEvent) => void;
63
67
  onClick?: (e: React.MouseEvent) => void;
@@ -1158,7 +1158,8 @@ var SidebarItem = ({
1158
1158
  isOpen ? "hawa-opacity-100" : "hawa-opacity-0"
1159
1159
  )
1160
1160
  },
1161
- item.label
1161
+ item.label,
1162
+ item.badge && /* @__PURE__ */ React11.createElement(Chip, { label: item.badge.label, color: "hyper", size: "small" })
1162
1163
  )
1163
1164
  )
1164
1165
  ),
@@ -1195,7 +1196,15 @@ var SidebarItem = ({
1195
1196
  )
1196
1197
  },
1197
1198
  subitem.icon && subitem.icon,
1198
- subitem.label
1199
+ subitem.label,
1200
+ subitem.badge && /* @__PURE__ */ React11.createElement(
1201
+ Chip,
1202
+ {
1203
+ label: subitem.badge.label,
1204
+ color: "hyper",
1205
+ size: "small"
1206
+ }
1207
+ )
1199
1208
  ))
1200
1209
  ))
1201
1210
  );