@npm_leadtech/legal-contracts-ui 0.169.2 → 0.169.3

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,44 +1,44 @@
1
- import { jsxs as o, jsx as l } from "react/jsx-runtime";
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 s from "clsx";
3
+ import l from "clsx";
4
4
  import { ChevronRightIcon as h } from "./ChevronRightIcon.js";
5
- const x = (e, r) => {
5
+ const x = (e, t) => {
6
6
  if (!p(e)) return e;
7
- if (r) {
8
- const t = e.props["data-qa"];
7
+ if (t) {
8
+ const r = e.props["data-qa"];
9
9
  return f(e, {
10
- "data-qa": t ? `${t}${r}` : void 0
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: r,
17
- description: t,
16
+ image: t,
17
+ description: r,
18
18
  url: n,
19
- urlDataQaSuffix: i,
19
+ urlDataQaSuffix: d,
20
20
  variant: a = "default",
21
- className: d = ""
21
+ className: i = ""
22
22
  }) => {
23
- const c = x(n, i), m = a === "default";
24
- return /* @__PURE__ */ o(
23
+ const c = x(n, d), m = a === "default";
24
+ return /* @__PURE__ */ s(
25
25
  "div",
26
26
  {
27
- className: s(
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
- d
33
+ i
34
34
  ),
35
35
  children: [
36
- r,
37
- /* @__PURE__ */ o("div", { className: "flex flex-1 flex-col gap-1", children: [
38
- /* @__PURE__ */ l("p", { className: s("text-medium break-all text-neutral-800", m ? "" : "font-bold"), children: c }),
39
- t && /* @__PURE__ */ l("p", { className: "text-extra-small break-all text-neutral-600", children: t })
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__ */ l(h, { width: 20, height: 20 })
41
+ a === "card" && /* @__PURE__ */ o(h, { width: 20, height: 20 })
42
42
  ]
43
43
  },
44
44
  e
package/dist/globals.css CHANGED
@@ -269,7 +269,7 @@ body {
269
269
  }
270
270
 
271
271
  @utility btn-secondary-green {
272
- @apply btn-base border-primary-700 text-primary-700 hover:bg-primary-100 hover:text-primary-800 border-2 bg-transparent font-semibold disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400;
272
+ @apply btn-base border-primary-700 text-primary-700 hover:bg-primary-100 hover:text-primary-800 border-2 bg-white font-semibold disabled:cursor-not-allowed disabled:border-neutral-200 disabled:bg-neutral-200 disabled:text-neutral-400;
273
273
  }
274
274
 
275
275
  @utility btn-secondary-yellow {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.169.2",
3
+ "version": "0.169.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -697,6 +697,27 @@
697
697
  "bugs": {
698
698
  "url": "https://bitbucket.org/grupoblidoo/legal-contracts-ui/issues"
699
699
  },
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
+ },
700
721
  "peerDependencies": {
701
722
  "clsx": "^2.1.0",
702
723
  "react": "^19.2.3",
@@ -768,30 +789,16 @@
768
789
  "@ast-grep/napi-linux-x64-gnu": "^0.40.5",
769
790
  "@rollup/rollup-linux-x64-gnu": "^4.59.0"
770
791
  },
792
+ "pnpm": {
793
+ "onlyBuiltDependencies": [
794
+ "esbuild",
795
+ "unrs-resolver"
796
+ ]
797
+ },
771
798
  "lint-staged": {
772
799
  "**/*": [
773
800
  "eslint --fix",
774
801
  "prettier --write --ignore-unknown"
775
802
  ]
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
803
  }
797
- }
804
+ }