@npm_leadtech/legal-contracts-ui 0.170.0 → 0.171.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.
- package/dist/components/Item.js +19 -19
- package/package.json +36 -31
package/dist/components/Item.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { isValidElement as p, cloneElement as f } from "react";
|
|
3
|
-
import
|
|
3
|
+
import l from "clsx";
|
|
4
4
|
import { ChevronRightIcon as h } from "./ChevronRightIcon.js";
|
|
5
|
-
const x = (e,
|
|
5
|
+
const x = (e, t) => {
|
|
6
6
|
if (!p(e)) return e;
|
|
7
|
-
if (
|
|
8
|
-
const
|
|
7
|
+
if (t) {
|
|
8
|
+
const r = e.props["data-qa"];
|
|
9
9
|
return f(e, {
|
|
10
|
-
"data-qa":
|
|
10
|
+
"data-qa": r ? `${r}${t}` : void 0
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
return e;
|
|
14
14
|
}, N = ({
|
|
15
15
|
id: e,
|
|
16
|
-
image:
|
|
17
|
-
description:
|
|
16
|
+
image: t,
|
|
17
|
+
description: r,
|
|
18
18
|
url: n,
|
|
19
|
-
urlDataQaSuffix:
|
|
19
|
+
urlDataQaSuffix: d,
|
|
20
20
|
variant: a = "default",
|
|
21
|
-
className:
|
|
21
|
+
className: i = ""
|
|
22
22
|
}) => {
|
|
23
|
-
const c = x(n,
|
|
24
|
-
return /* @__PURE__ */
|
|
23
|
+
const c = x(n, d), m = a === "default";
|
|
24
|
+
return /* @__PURE__ */ s(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
27
|
-
className:
|
|
27
|
+
className: l(
|
|
28
28
|
'hover:bg-primary-50 relative flex cursor-pointer items-center gap-4 rounded-sm [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""]',
|
|
29
29
|
{
|
|
30
30
|
default: "py-4 px-2 items-start",
|
|
31
31
|
card: "border border-0.5 border-neutral-200 shadow-lg bg-white pl-6 pr-4 py-5"
|
|
32
32
|
}[a],
|
|
33
|
-
|
|
33
|
+
i
|
|
34
34
|
),
|
|
35
35
|
children: [
|
|
36
|
-
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
|
|
36
|
+
t,
|
|
37
|
+
/* @__PURE__ */ s("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
38
|
+
/* @__PURE__ */ o("p", { className: l("text-medium break-words text-neutral-800", m ? "" : "font-bold"), children: c }),
|
|
39
|
+
r && /* @__PURE__ */ o("p", { className: "text-extra-small break-words text-neutral-600", children: r })
|
|
40
40
|
] }),
|
|
41
|
-
a === "card" && /* @__PURE__ */
|
|
41
|
+
a === "card" && /* @__PURE__ */ o(h, { width: 20, height: 20 })
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
e
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-contracts-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.171.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -697,16 +697,39 @@
|
|
|
697
697
|
"bugs": {
|
|
698
698
|
"url": "https://bitbucket.org/grupoblidoo/legal-contracts-ui/issues"
|
|
699
699
|
},
|
|
700
|
-
"
|
|
701
|
-
"
|
|
702
|
-
"
|
|
703
|
-
"
|
|
700
|
+
"scripts": {
|
|
701
|
+
"dev": "vite",
|
|
702
|
+
"build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
|
|
703
|
+
"sonar:scan": "bash scripts/sonar.sh",
|
|
704
|
+
"sonar": "pnpm test && pnpm sonar:scan",
|
|
705
|
+
"chromatic": "npx chromatic --project-token=chpt_f2cdc115a03f4c9",
|
|
706
|
+
"yalc-push": "pnpm build && yalc push",
|
|
707
|
+
"format": "prettier --write .",
|
|
708
|
+
"prettier": "prettier --check .",
|
|
709
|
+
"eslint": "eslint . --quiet",
|
|
710
|
+
"test": "vitest run --coverage",
|
|
711
|
+
"test:watch": "vitest --coverage",
|
|
712
|
+
"storybook": "storybook dev -p 6006",
|
|
713
|
+
"build-storybook": "storybook build",
|
|
714
|
+
"reinstall-force": "rm -Rf node_modules && pnpm install",
|
|
715
|
+
"prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
|
|
716
|
+
"upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
|
|
717
|
+
"upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
|
|
718
|
+
"upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags",
|
|
719
|
+
"prepare": "husky"
|
|
720
|
+
},
|
|
721
|
+
"dependencies": {
|
|
722
|
+
"clsx": "^2.1.1",
|
|
704
723
|
"react-markdown": "^10.1.0",
|
|
705
|
-
"react-router-dom": "^7.11.0",
|
|
706
724
|
"rehype-raw": "^7.0.0",
|
|
707
725
|
"remark-gfm": "^4.0.1",
|
|
708
726
|
"sanitize-html": "2.17.0"
|
|
709
727
|
},
|
|
728
|
+
"peerDependencies": {
|
|
729
|
+
"react": "^19.2.3",
|
|
730
|
+
"react-dom": "^19.2.3",
|
|
731
|
+
"react-router-dom": "^7.11.0"
|
|
732
|
+
},
|
|
710
733
|
"devDependencies": {
|
|
711
734
|
"@chromatic-com/storybook": "^4.1.3",
|
|
712
735
|
"@eslint/js": "^9.39.3",
|
|
@@ -730,7 +753,6 @@
|
|
|
730
753
|
"@vitest/coverage-v8": "^4.0.18",
|
|
731
754
|
"autoprefixer": "^10.4.27",
|
|
732
755
|
"chromatic": "^13.3.5",
|
|
733
|
-
"clsx": "^2.1.1",
|
|
734
756
|
"eslint": "^9.39.3",
|
|
735
757
|
"eslint-plugin-prettier": "^5.5.5",
|
|
736
758
|
"eslint-plugin-react-compiler": "0.0.0-experimental-16c1bb9-20241023",
|
|
@@ -748,11 +770,8 @@
|
|
|
748
770
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
749
771
|
"react": "^19.2.4",
|
|
750
772
|
"react-dom": "^19.2.4",
|
|
751
|
-
"react-markdown": "10.1.0",
|
|
752
773
|
"react-router-dom": "^7.13.1",
|
|
753
|
-
"remark-gfm": "^4.0.1",
|
|
754
774
|
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
755
|
-
"sanitize-html": "2.17.0",
|
|
756
775
|
"storybook": "^10.2.15",
|
|
757
776
|
"tailwindcss": "^4.2.1",
|
|
758
777
|
"typescript": "~5.8.3",
|
|
@@ -768,30 +787,16 @@
|
|
|
768
787
|
"@ast-grep/napi-linux-x64-gnu": "^0.40.5",
|
|
769
788
|
"@rollup/rollup-linux-x64-gnu": "^4.59.0"
|
|
770
789
|
},
|
|
790
|
+
"pnpm": {
|
|
791
|
+
"onlyBuiltDependencies": [
|
|
792
|
+
"esbuild",
|
|
793
|
+
"unrs-resolver"
|
|
794
|
+
]
|
|
795
|
+
},
|
|
771
796
|
"lint-staged": {
|
|
772
797
|
"**/*": [
|
|
773
798
|
"eslint --fix",
|
|
774
799
|
"prettier --write --ignore-unknown"
|
|
775
800
|
]
|
|
776
|
-
},
|
|
777
|
-
"scripts": {
|
|
778
|
-
"dev": "vite",
|
|
779
|
-
"build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
|
|
780
|
-
"sonar:scan": "bash scripts/sonar.sh",
|
|
781
|
-
"sonar": "pnpm test && pnpm sonar:scan",
|
|
782
|
-
"chromatic": "npx chromatic --project-token=chpt_f2cdc115a03f4c9",
|
|
783
|
-
"yalc-push": "pnpm build && yalc push",
|
|
784
|
-
"format": "prettier --write .",
|
|
785
|
-
"prettier": "prettier --check .",
|
|
786
|
-
"eslint": "eslint . --quiet",
|
|
787
|
-
"test": "vitest run --coverage",
|
|
788
|
-
"test:watch": "vitest --coverage",
|
|
789
|
-
"storybook": "storybook dev -p 6006",
|
|
790
|
-
"build-storybook": "storybook build",
|
|
791
|
-
"reinstall-force": "rm -Rf node_modules && pnpm install",
|
|
792
|
-
"prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
|
|
793
|
-
"upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
|
|
794
|
-
"upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
|
|
795
|
-
"upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags"
|
|
796
801
|
}
|
|
797
|
-
}
|
|
802
|
+
}
|