@youversion/design-system-components 1.3.2 → 1.3.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @youversion/design-system-components
2
2
 
3
+ ## 1.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - c95d6c5: Fix: prevent ListItem componentProps.className from nuking all styles
8
+
9
+ ## 1.3.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 3e2a215: Fixes background style issue with success variant and enables dark mode to inherit text color.
14
+
3
15
  ## 1.3.2
4
16
 
5
17
  ### Patch Changes
package/dist/index.es.js CHANGED
@@ -2811,6 +2811,7 @@ const p2 = ({
2811
2811
  ...g,
2812
2812
  children: X(e ?? "div", {
2813
2813
  children: l,
2814
+ ...r,
2814
2815
  className: f(
2815
2816
  "flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",
2816
2817
  // `href` only exists on some elements, so TS is throwing an error about `div` not having it.
@@ -2818,13 +2819,13 @@ const p2 = ({
2818
2819
  // @ts-expect-error
2819
2820
  v || r != null && r.href ? "cursor-pointer hover:bg-warm-neutral hover:dark:bg-warm-neutral-dark" : void 0,
2820
2821
  a ? "pointer-events-none" : "",
2821
- u
2822
+ u,
2823
+ r != null && r.className ? r.className : ""
2822
2824
  ),
2823
2825
  onClick: v,
2824
2826
  onKeyUp: w,
2825
2827
  onTouchEnd: v,
2826
- tabIndex: v ? 0 : void 0,
2827
- ...r
2828
+ tabIndex: v ? 0 : void 0
2828
2829
  })
2829
2830
  }
2830
2831
  );
@@ -5556,13 +5557,13 @@ const xo = {
5556
5557
  error: "bg-orange-10 dark:bg-orange-50 text-orange-40 dark:text-orange-20",
5557
5558
  info: "bg-blue-10 dark:bg-blue-50 text-blue-40 dark:text-blue-20",
5558
5559
  secondary: "bg-gray-10 dark:bg-gray-35 text-light dark:text-dark",
5559
- success: "bg-green-10, dark:bg-green-50 text-green-40 dark:text-green-20"
5560
+ success: "bg-green-10 dark:bg-green-50 text-green-40 dark:text-green-20"
5560
5561
  }, yo = {
5561
5562
  lg: "text-16 w-fit h-fit rounded-0.5 plb-0.5 pli-1",
5562
5563
  sm: "text-11 w-fit h-fit rounded-0.5 plb-0.25 pli-0.5"
5563
5564
  }, td = ({ message: l, variant: i = "default", size: e = "sm", className: r }) => {
5564
5565
  const a = xo[i], t = yo[e];
5565
- return /* @__PURE__ */ n(B, { className: f(a, t, r), children: /* @__PURE__ */ n(V, { className: "text-inherit", children: l }) });
5566
+ return /* @__PURE__ */ n("div", { className: f(a, t, r), children: /* @__PURE__ */ n(V, { className: "text-inherit dark:text-inherit", children: l }) });
5566
5567
  }, Zo = ({
5567
5568
  className: l,
5568
5569
  disabled: i,