@youngonesworks/ui 0.1.99 → 0.1.101
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/components/avatarIndicator/index.d.ts +2 -3
- package/dist/index.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -624,12 +624,13 @@ Avatar.displayName = "Avatar";
|
|
|
624
624
|
|
|
625
625
|
//#endregion
|
|
626
626
|
//#region src/components/avatarIndicator/index.tsx
|
|
627
|
-
const AvatarIndicator = ({ indicatorCount, className }) => /* @__PURE__ */ jsx("div", {
|
|
628
|
-
className: cn("
|
|
627
|
+
const AvatarIndicator = ({ indicatorCount, className,...props }) => /* @__PURE__ */ jsx("div", {
|
|
628
|
+
className: cn("grid h-5 min-w-5 w-fit flex-col place-content-center items-center justify-center rounded-full bg-white px-0.5", className),
|
|
629
629
|
"data-component": "AvatarIndicator",
|
|
630
630
|
"data-testid": "AvatarIndicator",
|
|
631
|
+
...props,
|
|
631
632
|
children: /* @__PURE__ */ jsx("div", {
|
|
632
|
-
className: "font-['Gotham'] text-[10px] leading-[10px]
|
|
633
|
+
className: "font-['Gotham'] text-[10px] leading-[10px] text-black",
|
|
633
634
|
children: `+${indicatorCount}`
|
|
634
635
|
})
|
|
635
636
|
});
|
|
@@ -641,7 +642,7 @@ const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, children
|
|
|
641
642
|
return /* @__PURE__ */ jsx("span", {
|
|
642
643
|
"data-testid": "badge",
|
|
643
644
|
"data-component": "Badge",
|
|
644
|
-
className:
|
|
645
|
+
className: cn("inline-flex max-w-full place-content-center items-center px-2.5 align-middle text-xs leading-[20px] font-medium tracking-wide text-wrap whitespace-normal normal-case rounded-sm", {
|
|
645
646
|
"bg-accent-blue-light text-accent-blue": styleVariant === COLOR.ACCENT_BLUE,
|
|
646
647
|
"bg-green-light text-green": styleVariant === COLOR.GREEN_LIGHT,
|
|
647
648
|
"bg-red-50 text-red-500": styleVariant === COLOR.RED,
|