rbro-tat-uds 1.6.29 → 1.6.30

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.
@@ -7,6 +7,7 @@ export interface SidebarItemProps extends React.ButtonHTMLAttributes<HTMLButtonE
7
7
  selected?: boolean;
8
8
  onClick?: () => void;
9
9
  theme?: "light" | "dark";
10
+ badgeText?: string;
10
11
  }
11
12
  declare const SidebarItem: React.FC<SidebarItemProps>;
12
13
  export default SidebarItem;
package/dist/index.cjs.js CHANGED
@@ -503,6 +503,27 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
503
503
  padding: 2px 12px;
504
504
  border-radius: 999999px;
505
505
  background: ${({$selected:t,$theme:i})=>t?i&&Object.keys(y1).includes(i)?y1[i].itemActive.backgroundColor:y1.light.itemActive.backgroundColor:"transparent"};
506
+ position: relative;
507
+
508
+ ${({$badgeText:t})=>t&&d`
509
+ & > div {
510
+ position: absolute;
511
+ top: -23%;
512
+ right: -23%;
513
+ background-color: ${l.danger_500};
514
+ padding: 2px 6.175px;
515
+ border-radius: 999999px;
516
+ display: flex;
517
+ align-items: center;
518
+ justify-content: center;
519
+
520
+ & > span {
521
+ color: ${l.white};
522
+ font-size: 11px;
523
+ font-weight: 500;
524
+ }
525
+ }
526
+ `}
506
527
  }
507
528
 
508
529
  & > span {
@@ -533,7 +554,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
533
554
  color: ${({$theme:t})=>t&&Object.keys(y1).includes(t)?y1[t].text.disabled:y1.light.text.disabled};
534
555
  }
535
556
  }
536
- `,U4=({icon:t="home",label:i="Label",selected:a=!1,onClick:n,disabled:r=!1,theme:c="light",...o})=>L.jsxs(q4,{onClick:n,$selected:a,$theme:c,disabled:r,...o,children:[L.jsx("div",{children:L.jsx(N,{icon:t,size:20,color:r?y1[c].icon.disabled:y1[c].icon.default})}),L.jsx("span",{children:i})]}),X4=F.div`
557
+ `,U4=({icon:t="home",label:i="Label",selected:a=!1,onClick:n,disabled:r=!1,theme:c="light",badgeText:o="",...C})=>L.jsxs(q4,{onClick:n,$selected:a,$theme:c,$badgeText:o,disabled:r,...C,children:[L.jsxs("div",{children:[L.jsx(N,{icon:t,size:20,color:r?y1[c].icon.disabled:y1[c].icon.default}),o&&L.jsx("div",{children:L.jsx("span",{children:o})})]}),L.jsx("span",{children:i})]}),X4=F.div`
537
558
  width: 100%;
538
559
  box-sizing: border-box;
539
560
  padding: 0;
@@ -5283,6 +5304,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[g2]+=1);const U5=t=>e.createE
5283
5304
  flex-direction: column;
5284
5305
  overflow: hidden;
5285
5306
  cursor: pointer;
5307
+ background-color: ${l.white};
5286
5308
 
5287
5309
  &:hover {
5288
5310
  outline: 2px solid ${l.info_800};