@febkosq8/arc 0.8.10 → 0.9.0

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.
Files changed (2) hide show
  1. package/dist/arc.js +11 -10
  2. package/package.json +2 -2
package/dist/arc.js CHANGED
@@ -791,7 +791,7 @@ var Le = class e {
791
791
  children: [/* @__PURE__ */ p(M.Trigger, {
792
792
  render: /* @__PURE__ */ f(X, {
793
793
  active: r,
794
- className: t("w-fit", r && i, e)
794
+ className: t("w-fit", !r && "text-foreground!", r && i, e)
795
795
  }),
796
796
  children: [a, /* @__PURE__ */ f(N, {
797
797
  className: "-mr-1 ml-2 h-4 w-4",
@@ -808,20 +808,21 @@ var Le = class e {
808
808
  }) })]
809
809
  }), {
810
810
  Item: ({ active: e, asChild: r = !1, className: i, nativeButton: o, children: s, ...c }) => {
811
- let l = t("flex min-h-10 pointer-coarse:min-h-11 w-full cursor-default items-center justify-start rounded-md border border-transparent px-3 py-2 text-base font-medium text-foreground outline-none select-none", "data-highlighted:bg-accent data-highlighted:text-primary", "focus-visible:ring-0", e && "text-primary!", i);
811
+ let l;
812
812
  if (r) {
813
813
  let e = n.only(s);
814
814
  if (!a(e)) throw Error("Menu.Item with asChild requires a single React element child.");
815
- return /* @__PURE__ */ f(M.Item, {
816
- ...c,
817
- className: l,
818
- nativeButton: o ?? !0,
819
- render: e
820
- });
815
+ l = e;
821
816
  }
822
- return /* @__PURE__ */ f(M.Item, {
817
+ let u = l !== void 0 && a(l) && l.props.active === !0, d = t("flex min-h-10 pointer-coarse:min-h-11 w-full cursor-default items-center justify-start rounded-md border border-transparent px-3 py-2 text-base font-medium text-foreground! outline-none select-none", "data-highlighted:bg-accent data-highlighted:text-primary", "focus-visible:ring-0", !!(e || u) && "text-primary!", i);
818
+ return l ? /* @__PURE__ */ f(M.Item, {
823
819
  ...c,
824
- className: l,
820
+ className: d,
821
+ nativeButton: o ?? !0,
822
+ render: l
823
+ }) : /* @__PURE__ */ f(M.Item, {
824
+ ...c,
825
+ className: d,
825
826
  nativeButton: o,
826
827
  children: s
827
828
  });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@febkosq8/arc",
3
3
  "description": "A React components library for febkosq8",
4
4
  "private": false,
5
- "version": "0.8.10",
5
+ "version": "0.9.0",
6
6
  "type": "module",
7
7
  "main": "./dist/arc.js",
8
8
  "types": "./dist/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "license": "CC-BY-NC-4.0",
26
26
  "engines": {
27
- "node": ">=26.13.0"
27
+ "node": ">=26.13.1"
28
28
  },
29
29
  "homepage": "https://www.npmjs.com/package/@febkosq8/arc",
30
30
  "repository": {