@npm_leadtech/legal-contracts-ui 0.53.7 → 0.53.8

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.
@@ -1,15 +1,15 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
2
  import { ChevronDownIcon as o } from "./ChevronDownIcon.js";
3
3
  const f = ({
4
- currentLanguage: l,
4
+ currentLanguage: r,
5
5
  availableLanguages: i,
6
6
  variant: a = "default",
7
- isOpen: r = !1,
7
+ isOpen: l = !1,
8
8
  onToggle: n
9
9
  }) => a === "compact" ? /* @__PURE__ */ s("div", { className: "group relative inline-flex cursor-pointer flex-col py-2", children: [
10
10
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2 px-2 py-1", children: [
11
- /* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: l.flag }),
12
- /* @__PURE__ */ e("span", { className: "text-medium text-gray-600", children: l.name })
11
+ /* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: r.flag }),
12
+ /* @__PURE__ */ e("span", { className: "text-medium text-gray-600", children: r.name })
13
13
  ] }),
14
14
  /* @__PURE__ */ e("div", { className: "pointer-events-none absolute top-full z-10 flex flex-col gap-2 rounded-lg bg-white p-2 opacity-0 shadow-md transition-opacity duration-200 group-hover:pointer-events-auto group-hover:opacity-100", children: i.map((t) => /* @__PURE__ */ s(
15
15
  "a",
@@ -27,18 +27,18 @@ const f = ({
27
27
  /* @__PURE__ */ s(
28
28
  "button",
29
29
  {
30
- className: `bg-primary-800 flex w-full cursor-pointer items-center justify-between px-4 py-2 ${r ? "bg-gray-50" : ""}`,
30
+ className: `bg-primary-800 flex w-full cursor-pointer items-center justify-between rounded px-4 py-2 ${l ? "bg-gray-50" : ""}`,
31
31
  onClick: n,
32
32
  children: [
33
33
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2 px-2 font-medium text-gray-800", children: [
34
- /* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: l.flag }),
35
- /* @__PURE__ */ e("span", { className: "text-base text-white", children: l.name })
34
+ /* @__PURE__ */ e("span", { className: "flex items-center justify-center", children: r.flag }),
35
+ /* @__PURE__ */ e("span", { className: "text-base text-white", children: r.name })
36
36
  ] }),
37
- /* @__PURE__ */ e("div", { className: `mr-1 transition-transform duration-200 ${r ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ e(o, { fill: "#ffff", width: 24, height: 24 }) })
37
+ /* @__PURE__ */ e("div", { className: `mr-1 transition-transform duration-200 ${l ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ e(o, { fill: "#ffff", width: 24, height: 24 }) })
38
38
  ]
39
39
  }
40
40
  ),
41
- r && /* @__PURE__ */ e("div", { className: "absolute top-10 z-10 flex w-full flex-col", children: i.map((t, c) => /* @__PURE__ */ e(
41
+ l && /* @__PURE__ */ e("div", { className: "absolute top-10 z-10 flex w-full flex-col", children: i.map((t, c) => /* @__PURE__ */ e(
42
42
  "a",
43
43
  {
44
44
  href: t.url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.53.7",
3
+ "version": "0.53.8",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",