@appcorp/kismaa-web-ui 0.2.11 → 0.2.14
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.
|
@@ -4,11 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.CtaBanner = void 0;
|
|
7
|
-
var molecules_1 = require("../../molecules");
|
|
8
|
-
var solid_1 = require("@heroicons/react/24/solid");
|
|
9
7
|
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var solid_1 = require("@heroicons/react/24/solid");
|
|
9
|
+
var button_1 = require("../../molecules/button");
|
|
10
|
+
var typography_1 = require("../../molecules/typography");
|
|
10
11
|
var CtaBanner = function (_a) {
|
|
11
|
-
var bgImage = _a.bgImage,
|
|
12
|
+
var bgImage = _a.bgImage, description = _a.description, firstBtnHandleClick = _a.firstBtnHandleClick, firstBtnText = _a.firstBtnText, heading = _a.heading, secondBtnHandleClick = _a.secondBtnHandleClick, secondBtnText = _a.secondBtnText;
|
|
12
13
|
return (react_1.default.createElement("section", { className: "kismaa-section-spacing", style: {
|
|
13
14
|
background: "url(".concat(bgImage, ")"),
|
|
14
15
|
backgroundColor: 'rgba(255, 255, 255, 0.8)',
|
|
@@ -20,11 +21,11 @@ var CtaBanner = function (_a) {
|
|
|
20
21
|
react_1.default.createElement("div", { className: "kismaa-container flex items-center justify-center" },
|
|
21
22
|
react_1.default.createElement("div", { className: "flex max-w-xl flex-col items-center justify-center text-center" },
|
|
22
23
|
react_1.default.createElement("div", { className: "text-gray-600/80" },
|
|
23
|
-
react_1.default.createElement(
|
|
24
|
+
react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.H1 }, heading)),
|
|
24
25
|
react_1.default.createElement("div", { className: "mt-4 mb-10 text-slate-900/95 lg:mb-16" },
|
|
25
|
-
react_1.default.createElement(
|
|
26
|
+
react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.P1 }, description)),
|
|
26
27
|
react_1.default.createElement("div", { className: "flex w-fit flex-col items-start justify-start gap-6 md:w-[75%] lg:w-[85%] lg:flex-row lg:items-center" },
|
|
27
|
-
react_1.default.createElement(
|
|
28
|
-
react_1.default.createElement(
|
|
28
|
+
react_1.default.createElement(button_1.Button, { handleOnClick: firstBtnHandleClick, label: firstBtnText, type: button_1.BUTTON_TYPES.PRIMARY }),
|
|
29
|
+
react_1.default.createElement(button_1.Button, { handleOnClick: secondBtnHandleClick, iconSuffix: react_1.default.createElement(solid_1.ArrowRightIcon, { className: "size-5" }), label: secondBtnText, outlined: true, type: button_1.BUTTON_TYPES.PRIMARY }))))));
|
|
29
30
|
};
|
|
30
31
|
exports.CtaBanner = CtaBanner;
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/kismaa-web-ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "lib/main.js",
|
|
6
6
|
"module": "lib/module.js",
|
|
7
7
|
"types": "lib/types.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib",
|
|
9
|
+
"build": "yarn clean && yarn build:ts && cp package.json lib && cp README.md lib && cp yarn.lock lib",
|
|
10
10
|
"build:next": "next build",
|
|
11
11
|
"build:storybook": "storybook build -c .storybook -o .out",
|
|
12
12
|
"build:ts": "tsc --project tsconfig.build.json",
|
|
@@ -42,21 +42,20 @@
|
|
|
42
42
|
"pre-commit": "eslint --max-warnings=0 ."
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
|
-
"dependencies": {},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@appcorp/app-corp-designs": "^0.4.
|
|
48
|
-
"@appcorp/app-corp-vista": "^0.2.
|
|
49
|
-
"@appcorp/kismaa-utils": "^0.2.
|
|
46
|
+
"@appcorp/app-corp-designs": "^0.4.80",
|
|
47
|
+
"@appcorp/app-corp-vista": "^0.2.75",
|
|
48
|
+
"@appcorp/kismaa-utils": "^0.2.17",
|
|
50
49
|
"@chromatic-com/storybook": "3.2.6",
|
|
51
50
|
"@eslint/compat": "^1.2.8",
|
|
52
|
-
"@headlessui/react": "^2
|
|
53
|
-
"@headlessui/tailwindcss": "^0
|
|
54
|
-
"@heroicons/react": "^2
|
|
55
|
-
"@mdx-js/loader": "^3
|
|
56
|
-
"@mdx-js/react": "^3
|
|
51
|
+
"@headlessui/react": "^2",
|
|
52
|
+
"@headlessui/tailwindcss": "^0",
|
|
53
|
+
"@heroicons/react": "^2",
|
|
54
|
+
"@mdx-js/loader": "^3",
|
|
55
|
+
"@mdx-js/react": "^3",
|
|
57
56
|
"@next/eslint-plugin-next": "^15",
|
|
58
57
|
"@next/mdx": "^15",
|
|
59
|
-
"@react-pakistan/util-functions": "^1.24.
|
|
58
|
+
"@react-pakistan/util-functions": "^1.24.33",
|
|
60
59
|
"@storybook/addon-essentials": "^8",
|
|
61
60
|
"@storybook/addon-interactions": "^8",
|
|
62
61
|
"@storybook/addon-links": "^8",
|
|
@@ -78,32 +77,33 @@
|
|
|
78
77
|
"@types/node": "^22",
|
|
79
78
|
"@types/react": "^19",
|
|
80
79
|
"@types/react-dom": "^19",
|
|
81
|
-
"concurrently": "^9
|
|
82
|
-
"dayjs": "^1
|
|
83
|
-
"eslint": "^9
|
|
80
|
+
"concurrently": "^9",
|
|
81
|
+
"dayjs": "^1",
|
|
82
|
+
"eslint": "^9",
|
|
84
83
|
"eslint-config-next": "^15",
|
|
85
84
|
"eslint-config-prettier": "^9.1.0",
|
|
86
85
|
"eslint-plugin-prettier": "^5.2.1",
|
|
87
86
|
"eslint-plugin-storybook": "^0.11.1",
|
|
88
|
-
"globals": "^15
|
|
89
|
-
"husky": "^9
|
|
90
|
-
"jest": "^29
|
|
91
|
-
"jest-environment-jsdom": "^29
|
|
92
|
-
"lint-staged": "15
|
|
87
|
+
"globals": "^15",
|
|
88
|
+
"husky": "^9",
|
|
89
|
+
"jest": "^29",
|
|
90
|
+
"jest-environment-jsdom": "^29",
|
|
91
|
+
"lint-staged": "15",
|
|
93
92
|
"next": "^15",
|
|
94
|
-
"next-mdx-remote": "^5
|
|
95
|
-
"next-themes": "^0
|
|
93
|
+
"next-mdx-remote": "^5",
|
|
94
|
+
"next-themes": "^0",
|
|
96
95
|
"postcss": "^8",
|
|
97
|
-
"prettier": "^3
|
|
98
|
-
"prettier-plugin-tailwindcss": "^0
|
|
96
|
+
"prettier": "^3",
|
|
97
|
+
"prettier-plugin-tailwindcss": "^0",
|
|
99
98
|
"react": "^19",
|
|
100
99
|
"react-dom": "^19",
|
|
101
|
-
"rimraf": "^6
|
|
100
|
+
"rimraf": "^6",
|
|
102
101
|
"storybook": "^8",
|
|
103
|
-
"swiper": "^11
|
|
102
|
+
"swiper": "^11",
|
|
104
103
|
"tailwindcss": "^4",
|
|
105
|
-
"ts-jest": "^29
|
|
106
|
-
"ts-node": "^10
|
|
104
|
+
"ts-jest": "^29",
|
|
105
|
+
"ts-node": "^10",
|
|
107
106
|
"typescript": "^5"
|
|
108
|
-
}
|
|
107
|
+
},
|
|
108
|
+
"packageManager": "yarn@4.9.2"
|
|
109
109
|
}
|