@npm_leadtech/legal-contracts-ui 0.175.0 → 0.176.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.
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface BenefitsBarProps {
|
|
5
|
+
benefits: {
|
|
6
|
+
src: string;
|
|
7
|
+
text: string;
|
|
8
|
+
}[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type InputFieldData = {
|
|
12
|
+
isVisible: boolean;
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
name: string;
|
|
16
|
+
placeholder: string;
|
|
17
|
+
value: string;
|
|
18
|
+
onChange: (str: string) => void;
|
|
19
|
+
dataQa: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export interface JumbotronProps {
|
|
23
|
+
title: string;
|
|
24
|
+
description: string;
|
|
25
|
+
bgImage: ReactNode | null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface PreformOptionProps {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
alternativeUrl: string | null;
|
|
32
|
+
dataQa?: string;
|
|
33
|
+
icon: ReactNode;
|
|
34
|
+
selected: boolean;
|
|
35
|
+
onClick?: (str: string) => void;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface PreformProps {
|
|
39
|
+
trustedBadge: TrustedBadgeProps;
|
|
40
|
+
cta: ReactNode;
|
|
41
|
+
radioFieldData?: RadioFieldData;
|
|
42
|
+
inputFieldData?: InputFieldData;
|
|
43
|
+
tooltips: TooltipsProps[];
|
|
44
|
+
hasMobileRadioField?: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export declare const ProductSemTemplate: FC<ProductSemTemplateProps>;
|
|
48
|
+
|
|
49
|
+
export declare interface ProductSemTemplateProps {
|
|
50
|
+
jumbotron: JumbotronProps;
|
|
51
|
+
preform?: PreformProps;
|
|
52
|
+
benefitsBar?: BenefitsBarProps;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type RadioFieldData = {
|
|
56
|
+
isVisible: boolean;
|
|
57
|
+
label: string;
|
|
58
|
+
name: string;
|
|
59
|
+
options: PreformOptionProps[];
|
|
60
|
+
radioSelected: string;
|
|
61
|
+
onClick: (str: string) => void;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export interface TooltipsProps {
|
|
65
|
+
title: string;
|
|
66
|
+
content: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface TrustedBadgeProps {
|
|
70
|
+
children: ReactNode;
|
|
71
|
+
}
|
|
72
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BenefitsBar as e } from "./BenefitsBar.js";
|
|
2
|
+
import { Jumbotron as t } from "./Jumbotron.js";
|
|
3
|
+
import { Preform as n } from "./Preform.js";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
//#region lib/components/templates/ProductSemTemplate.tsx
|
|
6
|
+
var a = ({ jumbotron: a, preform: o, benefitsBar: s }) => {
|
|
7
|
+
let c = (s?.benefits.length ?? 0) > 0;
|
|
8
|
+
return /* @__PURE__ */ i("main", {
|
|
9
|
+
className: "min-w-0 flex-1",
|
|
10
|
+
"data-qa": "product_sem_page",
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ r(t, { ...a }),
|
|
13
|
+
o ? /* @__PURE__ */ r(n, { ...o }) : null,
|
|
14
|
+
c && s ? /* @__PURE__ */ r(e, { ...s }) : null
|
|
15
|
+
]
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { a as ProductSemTemplate };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-contracts-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.176.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -674,6 +674,10 @@
|
|
|
674
674
|
"import": "./dist/components/PricingTemplate.js",
|
|
675
675
|
"types": "./dist/components/PricingTemplate.d.ts"
|
|
676
676
|
},
|
|
677
|
+
"./components/ProductSemTemplate": {
|
|
678
|
+
"import": "./dist/components/ProductSemTemplate.js",
|
|
679
|
+
"types": "./dist/components/ProductSemTemplate.d.ts"
|
|
680
|
+
},
|
|
677
681
|
"./components/ProductTemplate": {
|
|
678
682
|
"import": "./dist/components/ProductTemplate.js",
|
|
679
683
|
"types": "./dist/components/ProductTemplate.d.ts"
|
|
@@ -697,27 +701,6 @@
|
|
|
697
701
|
"bugs": {
|
|
698
702
|
"url": "https://bitbucket.org/grupoblidoo/legal-contracts-ui/issues"
|
|
699
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
704
|
"dependencies": {
|
|
722
705
|
"clsx": "^2.1.1",
|
|
723
706
|
"react-markdown": "^10.1.0",
|
|
@@ -789,16 +772,30 @@
|
|
|
789
772
|
"@ast-grep/napi-linux-x64-gnu": "^0.44.1",
|
|
790
773
|
"@rollup/rollup-linux-x64-gnu": "^4.62.2"
|
|
791
774
|
},
|
|
792
|
-
"pnpm": {
|
|
793
|
-
"onlyBuiltDependencies": [
|
|
794
|
-
"esbuild",
|
|
795
|
-
"unrs-resolver"
|
|
796
|
-
]
|
|
797
|
-
},
|
|
798
775
|
"lint-staged": {
|
|
799
776
|
"**/*": [
|
|
800
777
|
"eslint --fix",
|
|
801
778
|
"prettier --write --ignore-unknown"
|
|
802
779
|
]
|
|
780
|
+
},
|
|
781
|
+
"scripts": {
|
|
782
|
+
"dev": "vite",
|
|
783
|
+
"build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
|
|
784
|
+
"sonar:scan": "bash scripts/sonar.sh",
|
|
785
|
+
"sonar": "pnpm test && pnpm sonar:scan",
|
|
786
|
+
"chromatic": "npx chromatic --project-token=chpt_f2cdc115a03f4c9",
|
|
787
|
+
"yalc-push": "pnpm build && yalc push",
|
|
788
|
+
"format": "prettier --write .",
|
|
789
|
+
"prettier": "prettier --check .",
|
|
790
|
+
"eslint": "eslint . --quiet",
|
|
791
|
+
"test": "vitest run --coverage",
|
|
792
|
+
"test:watch": "vitest --coverage",
|
|
793
|
+
"storybook": "storybook dev -p 6006",
|
|
794
|
+
"build-storybook": "storybook build",
|
|
795
|
+
"reinstall-force": "rm -Rf node_modules && pnpm install",
|
|
796
|
+
"prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
|
|
797
|
+
"upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
|
|
798
|
+
"upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
|
|
799
|
+
"upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags"
|
|
803
800
|
}
|
|
804
|
-
}
|
|
801
|
+
}
|