@youngonesworks/ui 0.1.43 → 0.1.45

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
@@ -103270,7 +103270,7 @@ const AvatarIndicator = ({ indicatorCount, className }) => /* @__PURE__ */ jsx("
103270
103270
 
103271
103271
  //#endregion
103272
103272
  //#region src/components/badge/index.tsx
103273
- const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile = false, badgeBorder = false, fullWidth = false,...props }) => /* @__PURE__ */ jsxs("span", {
103273
+ const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile = false, badgeBorder = false, fullWidth = false, leftSection, rightSection, children,...props }) => /* @__PURE__ */ jsxs("span", {
103274
103274
  "data-testid": "badge",
103275
103275
  "data-component": "Badge",
103276
103276
  className: clsx_default("inline-flex h-[1.375rem] max-w-full place-content-center items-center p-[10px] align-middle text-xs leading-[20px] font-medium tracking-wide text-wrap whitespace-normal normal-case", mobile ? "rounded-s" : "rounded-[2rem]", fullWidth && "w-full", badgeBorder && {
@@ -103297,18 +103297,18 @@ const Badge = ({ styleVariant = COLOR.ACCENT_BLUE, className, favorite, mobile =
103297
103297
  }, className),
103298
103298
  ...props,
103299
103299
  children: [
103300
- props.leftSection && /* @__PURE__ */ jsx("div", {
103300
+ leftSection && /* @__PURE__ */ jsx("div", {
103301
103301
  "data-testid": "left-section",
103302
- children: props.leftSection
103302
+ children: leftSection
103303
103303
  }),
103304
103304
  /* @__PURE__ */ jsx("span", {
103305
103305
  "data-testid": "badge-content",
103306
103306
  className: cn("block h-5 overflow-hidden text-ellipsis whitespace-nowrap", { "flex items-center": favorite }),
103307
- children: props.children
103307
+ children
103308
103308
  }),
103309
- props.rightSection && /* @__PURE__ */ jsx("div", {
103309
+ rightSection && /* @__PURE__ */ jsx("div", {
103310
103310
  "data-testid": "right-section",
103311
- children: props.rightSection
103311
+ children: rightSection
103312
103312
  })
103313
103313
  ]
103314
103314
  });
@@ -109917,8 +109917,10 @@ const Rating = ({ rating, ratings, size: size$3 = "normal", setReview, className
109917
109917
  }, index$4))
109918
109918
  }),
109919
109919
  setReview && /* @__PURE__ */ jsx("div", {
109920
- className: "mt-4 inline-flex flex-col items-start",
109920
+ "data-testid": "small-stars-container",
109921
+ className: "mt-4 flex flex-col gap-2",
109921
109922
  children: ratings.map(({ value, label }) => /* @__PURE__ */ jsxs("span", {
109923
+ "data-testid": `small-star-item-${value}`,
109922
109924
  className: "flex w-auto cursor-pointer items-center gap-1",
109923
109925
  onMouseEnter: () => setHoveredSmallStars(value),
109924
109926
  onMouseLeave: () => setHoveredSmallStars(0),
@@ -116029,9 +116031,9 @@ const TabsBadge = ({ children }) => {
116029
116031
  const isCircular = typeof children === "number" && children <= 9 || typeof children === "string" && children.length === 1 || false;
116030
116032
  return /* @__PURE__ */ jsx("div", {
116031
116033
  "data-testid": "tabs-badge",
116032
- className: clsx_default("bg-pink h-5 text-xs leading-5 font-medium text-white", {
116033
- "rounded-full w-5 text-center": isCircular,
116034
- "rounded px-2": !isCircular
116034
+ className: clsx_default("bg-pink h-5 rounded-full text-xs leading-5 font-medium text-white", {
116035
+ "w-5 text-center": isCircular,
116036
+ "px-2": !isCircular
116035
116037
  }),
116036
116038
  children
116037
116039
  });
@@ -116281,7 +116283,8 @@ const Tooltip = ({ content, children, passedOpen = false, size: size$3 = "md", v
116281
116283
  height: 17,
116282
116284
  tipRadius: 1,
116283
116285
  fill: "white",
116284
- className: "drop-shadow-xl"
116286
+ className: "drop-shadow-xl",
116287
+ "data-testid": "tooltip-arrow"
116285
116288
  }) : /* @__PURE__ */ jsx(FloatingArrow, {
116286
116289
  ref: arrowRef,
116287
116290
  context,
@@ -116289,7 +116292,8 @@ const Tooltip = ({ content, children, passedOpen = false, size: size$3 = "md", v
116289
116292
  height: 6,
116290
116293
  tipRadius: 1,
116291
116294
  fill: "white",
116292
- className: "drop-shadow-xl"
116295
+ className: "drop-shadow-xl",
116296
+ "data-testid": "tooltip-arrow"
116293
116297
  })]
116294
116298
  })
116295
116299
  })] });