@oliasoft-open-source/react-ui-library 3.9.18 → 3.9.19

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/index.js CHANGED
@@ -13948,6 +13948,15 @@ const styles$B = {
13948
13948
  tabsContent,
13949
13949
  resizeHandle
13950
13950
  };
13951
+ const TabBadge = ({ badge: badge2, children }) => {
13952
+ if (!badge2)
13953
+ return children;
13954
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(Badge, {
13955
+ small: true,
13956
+ title: badge2,
13957
+ children
13958
+ });
13959
+ };
13951
13960
  const DrawerTabs = ({
13952
13961
  tabs: tabs2,
13953
13962
  activeTab,
@@ -13969,7 +13978,10 @@ const DrawerTabs = ({
13969
13978
  style: { background: background2 },
13970
13979
  onClick: () => handleTabClick(index2),
13971
13980
  "data-testid": testId && `${testId}-icon-${index2}`,
13972
- children: tab2.icon
13981
+ children: /* @__PURE__ */ jsxRuntime.exports.jsx(TabBadge, {
13982
+ badge: tab2.badge,
13983
+ children: tab2.icon
13984
+ })
13973
13985
  }, index2))
13974
13986
  }),
13975
13987
  tabs2.map((tab2, index2) => {
@@ -16224,7 +16236,8 @@ Drawer.propTypes = {
16224
16236
  tabs: propTypes$1.exports.arrayOf(
16225
16237
  propTypes$1.exports.shape({
16226
16238
  icon: propTypes$1.exports.node,
16227
- content: propTypes$1.exports.node
16239
+ content: propTypes$1.exports.node,
16240
+ badge: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number])
16228
16241
  })
16229
16242
  ),
16230
16243
  testId: propTypes$1.exports.string,