@youversion/design-system-components 1.3.3 → 1.3.5

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.5
4
+
5
+ ### Patch Changes
6
+
7
+ - cc4b4a7: Remove unused `innerBoxClassName` from ListItem
8
+
9
+ ## 1.3.4
10
+
11
+ ### Patch Changes
12
+
13
+ - c95d6c5: Fix: prevent ListItem componentProps.className from nuking all styles
14
+
3
15
  ## 1.3.3
4
16
 
5
17
  ### Patch Changes
package/dist/index.es.js CHANGED
@@ -2785,19 +2785,9 @@ const g2 = ({
2785
2785
  ] });
2786
2786
  }, P0 = d(g2);
2787
2787
  P0.displayName = "Input";
2788
- const p2 = ({
2789
- children: l,
2790
- className: i,
2791
- component: e,
2792
- componentProps: r,
2793
- disabled: a,
2794
- divider: t,
2795
- innerBoxClassName: u,
2796
- onClick: v,
2797
- ...g
2798
- }, p) => {
2799
- const w = (b) => {
2800
- v && (b.code === "Enter" || b.key === " ") && v();
2788
+ const p2 = ({ children: l, className: i, component: e, componentProps: r, disabled: a, divider: t, onClick: u, ...v }, g) => {
2789
+ const p = (w) => {
2790
+ u && (w.code === "Enter" || w.key === " ") && u();
2801
2791
  };
2802
2792
  return /* @__PURE__ */ n(
2803
2793
  "li",
@@ -2807,24 +2797,24 @@ const p2 = ({
2807
2797
  t ? "after:last:content-none after:absolute after:inset-x-0 after:bottom-0 after:mx-2 after:bg-gray-10 after:dark:bg-gray-40 after:h-px" : null,
2808
2798
  i
2809
2799
  ]),
2810
- ref: p,
2811
- ...g,
2800
+ ref: g,
2801
+ ...v,
2812
2802
  children: X(e ?? "div", {
2813
2803
  children: l,
2804
+ ...r,
2814
2805
  className: f(
2815
2806
  "flex flex-1 py-2 gap-x-2 items-center pie-2 pis-2",
2816
2807
  // `href` only exists on some elements, so TS is throwing an error about `div` not having it.
2817
2808
  // But it needs to be checked.
2818
2809
  // @ts-expect-error
2819
- v || r != null && r.href ? "cursor-pointer hover:bg-warm-neutral hover:dark:bg-warm-neutral-dark" : void 0,
2810
+ u || r != null && r.href ? "cursor-pointer hover:bg-warm-neutral hover:dark:bg-warm-neutral-dark" : void 0,
2820
2811
  a ? "pointer-events-none" : "",
2821
- u
2812
+ r != null && r.className ? r.className : ""
2822
2813
  ),
2823
- onClick: v,
2824
- onKeyUp: w,
2825
- onTouchEnd: v,
2826
- tabIndex: v ? 0 : void 0,
2827
- ...r
2814
+ onClick: u,
2815
+ onKeyUp: p,
2816
+ onTouchEnd: u,
2817
+ tabIndex: u ? 0 : void 0
2828
2818
  })
2829
2819
  }
2830
2820
  );