@youversion/design-system-components 1.3.4 → 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
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
|
-
|
|
2790
|
-
|
|
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,8 +2797,8 @@ 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:
|
|
2811
|
-
...
|
|
2800
|
+
ref: g,
|
|
2801
|
+
...v,
|
|
2812
2802
|
children: X(e ?? "div", {
|
|
2813
2803
|
children: l,
|
|
2814
2804
|
...r,
|
|
@@ -2817,15 +2807,14 @@ const p2 = ({
|
|
|
2817
2807
|
// `href` only exists on some elements, so TS is throwing an error about `div` not having it.
|
|
2818
2808
|
// But it needs to be checked.
|
|
2819
2809
|
// @ts-expect-error
|
|
2820
|
-
|
|
2810
|
+
u || r != null && r.href ? "cursor-pointer hover:bg-warm-neutral hover:dark:bg-warm-neutral-dark" : void 0,
|
|
2821
2811
|
a ? "pointer-events-none" : "",
|
|
2822
|
-
u,
|
|
2823
2812
|
r != null && r.className ? r.className : ""
|
|
2824
2813
|
),
|
|
2825
|
-
onClick:
|
|
2826
|
-
onKeyUp:
|
|
2827
|
-
onTouchEnd:
|
|
2828
|
-
tabIndex:
|
|
2814
|
+
onClick: u,
|
|
2815
|
+
onKeyUp: p,
|
|
2816
|
+
onTouchEnd: u,
|
|
2817
|
+
tabIndex: u ? 0 : void 0
|
|
2829
2818
|
})
|
|
2830
2819
|
}
|
|
2831
2820
|
);
|