@julseb-lib/react 1.0.11 → 1.0.12

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.cjs CHANGED
@@ -66512,6 +66512,9 @@ var Rating = ({
66512
66512
  id,
66513
66513
  validation,
66514
66514
  containerClassName,
66515
+ iconsSize = 32,
66516
+ accentColor = "primary",
66517
+ gap = "xs",
66515
66518
  ...rest
66516
66519
  }) => {
66517
66520
  return /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
@@ -66528,7 +66531,7 @@ var Rating = ({
66528
66531
  {
66529
66532
  ref,
66530
66533
  id,
66531
- className: clsx("flex gap-2", "rating", className),
66534
+ className: clsx("flex", genGap[gap], "rating", className),
66532
66535
  ...rest,
66533
66536
  children: (0, import_utils82.generateNumbers)(0, 4).map((n) => {
66534
66537
  const Element = readOnly ? "span" : "button";
@@ -66538,20 +66541,20 @@ var Rating = ({
66538
66541
  onClick: () => !readOnly && setRating(n + 1),
66539
66542
  type: "button",
66540
66543
  className: clsx(
66541
- readOnly ? "text-primary-500" : genTextColorHover["primary"],
66544
+ readOnly ? genTextAllColor[accentColor] : genTextColorHover[accentColor],
66542
66545
  validation?.status === false ? readOnly ? "text-danger-500" : genTextColorHover["danger"] : validation?.status === true && (readOnly ? "text-success-500" : genTextColorHover["success"]),
66543
66546
  "rating-item"
66544
66547
  ),
66545
66548
  children: n >= rating ? icons?.default ?? /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
66546
66549
  import_bi15.BiStar,
66547
66550
  {
66548
- size: 32,
66551
+ size: iconsSize,
66549
66552
  className: "rating-icon"
66550
66553
  }
66551
66554
  ) : icons?.checked ?? /* @__PURE__ */ (0, import_jsx_runtime319.jsx)(
66552
66555
  import_bi15.BiSolidStar,
66553
66556
  {
66554
- size: 32,
66557
+ size: iconsSize,
66555
66558
  className: "rating-icon"
66556
66559
  }
66557
66560
  )