@appcorp/kismaa-web-ui 0.1.18 → 0.1.19
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/molecules/badge/badge.js +12 -22
- package/molecules/badge/props.js +1 -6
- package/molecules/badge/type.d.ts +4 -15
- package/molecules/badge/type.js +6 -12
- package/molecules/user-card/props.js +7 -5
- package/molecules/user-card/type.d.ts +0 -2
- package/molecules/user-card/user-card.js +2 -2
- package/organisms/extended-user-card/extended-user-card.js +1 -1
- package/organisms/footer/footer.js +66 -8
- package/organisms/footer/props.js +84 -24
- package/organisms/footer/type.d.ts +19 -14
- package/organisms/section-header/section-header.js +3 -3
- package/organisms/user-cards-grid/props.js +69 -23
- package/package.json +4 -4
package/molecules/badge/badge.js
CHANGED
|
@@ -1,33 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
4
|
};
|
|
16
|
-
var _a;
|
|
17
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
6
|
exports.Badge = void 0;
|
|
19
7
|
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var kismaa_utils_1 = require("@appcorp/kismaa-utils");
|
|
9
|
+
var util_functions_1 = require("@react-pakistan/util-functions");
|
|
20
10
|
var type_1 = require("./type");
|
|
21
|
-
var
|
|
22
|
-
_a
|
|
23
|
-
_a
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
var classNameMap = function (type) {
|
|
12
|
+
var _a;
|
|
13
|
+
return (_a = {},
|
|
14
|
+
_a[type_1.BADGE_TYPE.CARD_BADGE] = "py-1.5 px-2.5 text-xs rounded-full ".concat(kismaa_utils_1.psychicSpecialityColorMap[type]),
|
|
15
|
+
_a[type_1.BADGE_TYPE.FOOTER_BADGE] = 'py-2 px-4 lg:text-base text-sm text-white bg-primary rounded-md',
|
|
16
|
+
_a);
|
|
17
|
+
};
|
|
26
18
|
var Badge = function (_a) {
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
|
|
30
|
-
: { border: "1px solid ".concat(borderColor) }));
|
|
31
|
-
return (react_1.default.createElement("div", { style: badgeStyles, className: "w-fit font-primary ".concat(sizeStyles[size], " ").concat(handleOnClick && 'cursor-pointer'), onClick: handleOnClick && undefined }, label));
|
|
19
|
+
var label = _a.label, type = _a.type;
|
|
20
|
+
var specialityType = (0, util_functions_1.textToEnum)(label);
|
|
21
|
+
return (react_1.default.createElement("div", { className: "w-fit font-primary ".concat(classNameMap(specialityType)[type]) }, label));
|
|
32
22
|
};
|
|
33
23
|
exports.Badge = Badge;
|
package/molecules/badge/props.js
CHANGED
|
@@ -4,10 +4,5 @@ exports.badgeData = void 0;
|
|
|
4
4
|
var type_1 = require("./type");
|
|
5
5
|
exports.badgeData = {
|
|
6
6
|
label: 'Love',
|
|
7
|
-
|
|
8
|
-
bgColor: '#B880F1',
|
|
9
|
-
textColor: '#000',
|
|
10
|
-
type: type_1.BADGE_TYPES.SOLID,
|
|
11
|
-
borderColor: '#282828',
|
|
12
|
-
size: type_1.BADGE_SIZES.MD,
|
|
7
|
+
type: type_1.BADGE_TYPE.FOOTER_BADGE,
|
|
13
8
|
};
|
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
export declare enum
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
LG = "LG"
|
|
5
|
-
}
|
|
6
|
-
export declare enum BADGE_TYPES {
|
|
7
|
-
SOLID = "SOLID",
|
|
8
|
-
OUTLINE = "OUTLINE"
|
|
1
|
+
export declare enum BADGE_TYPE {
|
|
2
|
+
CARD_BADGE = "CARD_BADGE",
|
|
3
|
+
FOOTER_BADGE = "FOOTER_BADGE"
|
|
9
4
|
}
|
|
10
5
|
export interface BadgeProps {
|
|
11
|
-
rounded: number;
|
|
12
|
-
bgColor: string;
|
|
13
|
-
textColor: string;
|
|
14
|
-
size: BADGE_SIZES;
|
|
15
6
|
label: string;
|
|
16
|
-
type:
|
|
17
|
-
borderColor?: string;
|
|
18
|
-
handleOnClick?: () => void;
|
|
7
|
+
type: BADGE_TYPE;
|
|
19
8
|
}
|
package/molecules/badge/type.js
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})(BADGE_SIZES || (exports.BADGE_SIZES = BADGE_SIZES = {}));
|
|
10
|
-
var BADGE_TYPES;
|
|
11
|
-
(function (BADGE_TYPES) {
|
|
12
|
-
BADGE_TYPES["SOLID"] = "SOLID";
|
|
13
|
-
BADGE_TYPES["OUTLINE"] = "OUTLINE";
|
|
14
|
-
})(BADGE_TYPES || (exports.BADGE_TYPES = BADGE_TYPES = {}));
|
|
3
|
+
exports.BADGE_TYPE = void 0;
|
|
4
|
+
var BADGE_TYPE;
|
|
5
|
+
(function (BADGE_TYPE) {
|
|
6
|
+
BADGE_TYPE["CARD_BADGE"] = "CARD_BADGE";
|
|
7
|
+
BADGE_TYPE["FOOTER_BADGE"] = "FOOTER_BADGE";
|
|
8
|
+
})(BADGE_TYPE || (exports.BADGE_TYPE = BADGE_TYPE = {}));
|
|
@@ -7,12 +7,14 @@ exports.userCardData = {
|
|
|
7
7
|
name: 'Manish Kumar Arora',
|
|
8
8
|
description: '19210 for reading 2001',
|
|
9
9
|
badges: [
|
|
10
|
-
{ label: 'Clairvoyant', bgColor: '#FFC5671A', textColor: '#FFC567' },
|
|
11
|
-
{ label: 'Clairaudient', bgColor: '#B880F11A', textColor: '#B880F1' },
|
|
12
10
|
{
|
|
13
|
-
label: '
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
label: 'Psychic Mediums',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: 'Angel Readings',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
label: 'Dream Interpretation',
|
|
16
18
|
},
|
|
17
19
|
],
|
|
18
20
|
rating: 3.5,
|
|
@@ -65,8 +65,8 @@ var UserCard = function (_a) {
|
|
|
65
65
|
react_1.default.createElement("div", { className: "mb-2" },
|
|
66
66
|
react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.H3 }, name)),
|
|
67
67
|
react_1.default.createElement("div", { className: "mb-2 min-h-5 text-gray-500" }, !!description && (react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.P1 }, description))),
|
|
68
|
-
react_1.default.createElement("div", { className: "mt-1.5 flex
|
|
69
|
-
react_1.default.createElement(badge_1.Badge, { label: badge.label, type: type_1.
|
|
68
|
+
react_1.default.createElement("div", { className: "mt-1.5 flex w-full flex-wrap justify-center gap-1.5" }, badges.slice(0, 2).map(function (badge, index) { return (react_1.default.createElement("div", { className: "h-fit w-fit", key: index },
|
|
69
|
+
react_1.default.createElement(badge_1.Badge, { label: badge.label, type: type_1.BADGE_TYPE.CARD_BADGE }))); })),
|
|
70
70
|
react_1.default.createElement("div", { className: "my-5 flex justify-center" },
|
|
71
71
|
react_1.default.createElement(ratings_1.Ratings, { rating: rating })),
|
|
72
72
|
react_1.default.createElement("div", { className: "flex justify-center gap-2.5" },
|
|
@@ -56,7 +56,7 @@ var ExtendedUserCard = function (_a) {
|
|
|
56
56
|
react_1.default.createElement("div", { className: "my-3 flex w-full" },
|
|
57
57
|
react_1.default.createElement("div", { className: "w-[50%] text-[#8492A7]" },
|
|
58
58
|
react_1.default.createElement(molecules_1.Typography, { variant: molecules_1.TYPOGRAPHY_VARIANTS.P2 }, "Other expertise")),
|
|
59
|
-
react_1.default.createElement("div", { className: "flex w-[50%] flex-col gap-2" }, otherExpertise.map(function (expertise
|
|
59
|
+
react_1.default.createElement("div", { className: "flex w-[50%] flex-col gap-2" }, otherExpertise.map(function (expertise) { return (react_1.default.createElement(molecules_1.Badge, { key: expertise.label, label: expertise.label, type: type_1.BADGE_TYPE.CARD_BADGE })); }))),
|
|
60
60
|
react_1.default.createElement("div", { className: "mt-7 w-full" },
|
|
61
61
|
react_1.default.createElement(molecules_1.Button, { label: 'Chat Now', size: molecules_1.BUTTON_SIZES.MD, type: molecules_1.BUTTON_TYPES.PRIMARY, handleOnClick: onChatClick })))));
|
|
62
62
|
};
|
|
@@ -1,4 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
37
|
};
|
|
@@ -7,13 +40,27 @@ exports.Footer = void 0;
|
|
|
7
40
|
var kismaa_logo_1 = require("../../atoms/kismaa-logo");
|
|
8
41
|
var molecules_1 = require("../../molecules");
|
|
9
42
|
var type_1 = require("../../molecules/badge/type");
|
|
10
|
-
var react_1 =
|
|
43
|
+
var react_1 = __importStar(require("react"));
|
|
11
44
|
var link_1 = __importDefault(require("next/link"));
|
|
12
45
|
var Footer = function (_a) {
|
|
13
46
|
var _b = _a.logoClassName, logoClassName = _b === void 0 ? 'h-24 w-28' : _b, description = _a.description, socialLinks = _a.socialLinks, quickLinks = _a.quickLinks, communities = _a.communities;
|
|
14
47
|
var halfLength = Math.ceil(quickLinks.length / 2);
|
|
15
|
-
var
|
|
16
|
-
|
|
48
|
+
var quickLinksSortedAndFiltered = (0, react_1.useMemo)(function () {
|
|
49
|
+
return quickLinks
|
|
50
|
+
.filter(function (_a) {
|
|
51
|
+
var enabled = _a.enabled;
|
|
52
|
+
return enabled;
|
|
53
|
+
})
|
|
54
|
+
.sort(function (a, b) { return a.order - b.order; });
|
|
55
|
+
}, [quickLinks]);
|
|
56
|
+
var quickLinksLeft = quickLinksSortedAndFiltered
|
|
57
|
+
.filter(function (_a) {
|
|
58
|
+
var enabled = _a.enabled;
|
|
59
|
+
return enabled;
|
|
60
|
+
})
|
|
61
|
+
.sort(function (a, b) { return a.order - b.order; })
|
|
62
|
+
.slice(0, halfLength);
|
|
63
|
+
var quickLinksRight = quickLinksSortedAndFiltered.slice(halfLength);
|
|
17
64
|
return (react_1.default.createElement("section", { className: "kismaa-section-spacing bg-purple-200" },
|
|
18
65
|
react_1.default.createElement("div", { className: "kismaa-container" },
|
|
19
66
|
react_1.default.createElement("footer", { className: "grid w-full items-end gap-10 md:grid-cols-2 lg:grid-cols-3 lg:gap-16" },
|
|
@@ -21,9 +68,15 @@ var Footer = function (_a) {
|
|
|
21
68
|
react_1.default.createElement(kismaa_logo_1.KismaaLogo, { className: logoClassName }),
|
|
22
69
|
react_1.default.createElement("div", { className: "mb-10 mt-3 text-neutral-800" },
|
|
23
70
|
react_1.default.createElement(molecules_1.Typography, { variant: molecules_1.TYPOGRAPHY_VARIANTS.SUBH4 }, description)),
|
|
24
|
-
react_1.default.createElement("div", { className: "flex gap-6" }, socialLinks
|
|
71
|
+
react_1.default.createElement("div", { className: "flex gap-6" }, socialLinks
|
|
72
|
+
.filter(function (_a) {
|
|
73
|
+
var enabled = _a.enabled;
|
|
74
|
+
return enabled;
|
|
75
|
+
})
|
|
76
|
+
.sort(function (a, b) { return a.order - b.order; })
|
|
77
|
+
.map(function (_a) {
|
|
25
78
|
var icon = _a.icon, href = _a.href;
|
|
26
|
-
return (react_1.default.createElement(
|
|
79
|
+
return (react_1.default.createElement(link_1.default, { className: "cursor-pointer rounded-full bg-primary/65 p-2 transition-all duration-300 ease-in-out hover:scale-110", href: href, key: href, rel: "noopener noreferrer", target: "_blank" }, icon));
|
|
27
80
|
}))),
|
|
28
81
|
react_1.default.createElement("div", { className: "w-fit md:w-full" },
|
|
29
82
|
react_1.default.createElement("div", { className: "text-neutral-800" },
|
|
@@ -43,10 +96,15 @@ var Footer = function (_a) {
|
|
|
43
96
|
react_1.default.createElement("div", { className: "text-neutral-800" },
|
|
44
97
|
react_1.default.createElement(molecules_1.Typography, { variant: molecules_1.TYPOGRAPHY_VARIANTS.H5 }, "Communities")),
|
|
45
98
|
react_1.default.createElement("div", { className: "mt-6 flex flex-wrap gap-2" }, communities
|
|
99
|
+
.filter(function (_a) {
|
|
100
|
+
var enabled = _a.enabled;
|
|
101
|
+
return enabled;
|
|
102
|
+
})
|
|
103
|
+
.sort(function (a, b) { return a.order - b.order; })
|
|
46
104
|
.slice(0, 10)
|
|
47
|
-
.map(function (_a
|
|
48
|
-
var label = _a.label
|
|
49
|
-
return (react_1.default.createElement(molecules_1.Badge, { key:
|
|
105
|
+
.map(function (_a) {
|
|
106
|
+
var label = _a.label;
|
|
107
|
+
return (react_1.default.createElement(molecules_1.Badge, { key: label, label: label, type: type_1.BADGE_TYPE.FOOTER_BADGE }));
|
|
50
108
|
})))))));
|
|
51
109
|
};
|
|
52
110
|
exports.Footer = Footer;
|
|
@@ -11,40 +11,100 @@ var twitter_icon_1 = require("../../atoms/twitter-icon");
|
|
|
11
11
|
exports.footerData = {
|
|
12
12
|
description: 'Kismaa simplifies healthcare with an easy-to-use platform for booking appointments, telehealth services, and managing patient records.',
|
|
13
13
|
socialLinks: [
|
|
14
|
-
{
|
|
14
|
+
{
|
|
15
|
+
icon: react_1.default.createElement(facebook_icon_1.FacebookIcon, { className: "size-5" }),
|
|
16
|
+
href: 'https://facebook.com',
|
|
17
|
+
enabled: true,
|
|
18
|
+
order: 1,
|
|
19
|
+
},
|
|
15
20
|
{
|
|
16
21
|
icon: react_1.default.createElement(instagram_icon_1.InstagramIcon, { className: "size-5" }),
|
|
17
22
|
href: 'https://instagram.com',
|
|
23
|
+
enabled: true,
|
|
24
|
+
order: 2,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
icon: react_1.default.createElement(twitter_icon_1.TwitterIcon, { className: "size-5" }),
|
|
28
|
+
href: 'https://twitter.com',
|
|
29
|
+
enabled: true,
|
|
30
|
+
order: 3,
|
|
18
31
|
},
|
|
19
|
-
{ icon: react_1.default.createElement(twitter_icon_1.TwitterIcon, { className: "size-5" }), href: 'https://twitter.com' },
|
|
20
32
|
],
|
|
21
33
|
quickLinks: [
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
{
|
|
29
|
-
|
|
34
|
+
{
|
|
35
|
+
label: 'About Us',
|
|
36
|
+
href: '/about-us',
|
|
37
|
+
enabled: true,
|
|
38
|
+
order: 1,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: 'Services',
|
|
42
|
+
href: '/services',
|
|
43
|
+
enabled: true,
|
|
44
|
+
order: 2,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: 'Contact',
|
|
48
|
+
href: '/contact',
|
|
49
|
+
enabled: true,
|
|
50
|
+
order: 3,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: 'FAQ',
|
|
54
|
+
href: '/faq',
|
|
55
|
+
enabled: true,
|
|
56
|
+
order: 4,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: 'Blog',
|
|
60
|
+
href: '/blog',
|
|
61
|
+
enabled: true,
|
|
62
|
+
order: 5,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: 'Blog',
|
|
66
|
+
href: '/blog',
|
|
67
|
+
enabled: true,
|
|
68
|
+
order: 6,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: 'Blog',
|
|
72
|
+
href: '/blog',
|
|
73
|
+
enabled: true,
|
|
74
|
+
order: 7,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: 'Blog',
|
|
78
|
+
href: '/blog',
|
|
79
|
+
enabled: true,
|
|
80
|
+
order: 8,
|
|
81
|
+
},
|
|
30
82
|
],
|
|
31
83
|
communities: [
|
|
32
|
-
{ label: 'All', bgColor: '#B880F1', textColor: '#fff' },
|
|
33
|
-
{ label: 'All', bgColor: '#B880F1', textColor: '#fff' },
|
|
34
|
-
{ label: 'Love', bgColor: '#B880F1', textColor: '#fff' },
|
|
35
|
-
{ label: 'Dating', bgColor: '#B880F1', textColor: '#fff' },
|
|
36
|
-
{ label: 'Locality', bgColor: '#B880F1', textColor: '#fff' },
|
|
37
|
-
{ label: 'Backup', bgColor: '#B880F1', textColor: '#fff' },
|
|
38
|
-
{ label: 'Backup', bgColor: '#B880F1', textColor: '#fff' },
|
|
39
|
-
{ label: 'Backup', bgColor: '#B880F1', textColor: '#fff' },
|
|
40
|
-
{ label: 'Backup', bgColor: '#B880F1', textColor: '#fff' },
|
|
41
|
-
{ label: 'Backup', bgColor: '#B880F1', textColor: '#fff' },
|
|
42
84
|
{
|
|
85
|
+
enabled: true,
|
|
86
|
+
label: 'All',
|
|
87
|
+
order: 1,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
enabled: true,
|
|
91
|
+
label: 'Love',
|
|
92
|
+
order: 2,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
enabled: true,
|
|
96
|
+
label: 'Dating',
|
|
97
|
+
order: 3,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
enabled: true,
|
|
101
|
+
label: 'Locality',
|
|
102
|
+
order: 4,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
enabled: true,
|
|
43
106
|
label: 'More...',
|
|
44
|
-
|
|
45
|
-
textColor: '#000',
|
|
46
|
-
outlined: true,
|
|
47
|
-
borderColor: '#000',
|
|
107
|
+
order: 5,
|
|
48
108
|
},
|
|
49
109
|
],
|
|
50
110
|
};
|
|
@@ -1,20 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
export interface FooterCommunityItem {
|
|
3
|
+
enabled: boolean;
|
|
2
4
|
label: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
order: number;
|
|
6
|
+
}
|
|
7
|
+
export interface SocialLinkItem {
|
|
8
|
+
enabled: boolean;
|
|
9
|
+
href: string;
|
|
10
|
+
icon: ReactNode;
|
|
11
|
+
order: number;
|
|
12
|
+
}
|
|
13
|
+
export interface QuickLinkItem {
|
|
14
|
+
enabled: true;
|
|
15
|
+
href: string;
|
|
16
|
+
label: string;
|
|
17
|
+
order: number;
|
|
7
18
|
}
|
|
8
19
|
export interface FooterProps {
|
|
9
|
-
logoClassName?: string;
|
|
10
|
-
description: string;
|
|
11
|
-
socialLinks: {
|
|
12
|
-
icon: React.ReactNode;
|
|
13
|
-
href: string;
|
|
14
|
-
}[];
|
|
15
|
-
quickLinks: {
|
|
16
|
-
label: string;
|
|
17
|
-
href: string;
|
|
18
|
-
}[];
|
|
19
20
|
communities: FooterCommunityItem[];
|
|
21
|
+
description: string;
|
|
22
|
+
logoClassName?: string;
|
|
23
|
+
quickLinks: QuickLinkItem[];
|
|
24
|
+
socialLinks: SocialLinkItem[];
|
|
20
25
|
}
|
|
@@ -10,7 +10,7 @@ var solid_1 = require("@heroicons/react/24/solid");
|
|
|
10
10
|
var type_1 = require("../../molecules/badge/type");
|
|
11
11
|
var breadcrumbs_1 = require("../../molecules/breadcrumbs");
|
|
12
12
|
var SectionHeader = function (_a) {
|
|
13
|
-
var
|
|
13
|
+
var _b = _a.badgeText, badgeText = _b === void 0 ? '' : _b, breadcrumbs = _a.breadcrumbs, _c = _a.btnIcon, btnIcon = _c === void 0 ? react_1.default.createElement(solid_1.ChevronRightIcon, { className: "size-7" }) : _c, _d = _a.btnOutlined, btnOutlined = _d === void 0 ? false : _d, btnText = _a.btnText, _e = _a.btnType, btnType = _e === void 0 ? molecules_1.BUTTON_TYPES.QUATERNARY : _e, handleButtonClick = _a.handleButtonClick, heading = _a.heading, renderCtaButton = _a.renderCtaButton, subheading = _a.subheading;
|
|
14
14
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
15
15
|
breadcrumbs && (react_1.default.createElement("div", { className: "mb-14" },
|
|
16
16
|
react_1.default.createElement(breadcrumbs_1.BreadCrumbs, { pathname: breadcrumbs }))),
|
|
@@ -19,10 +19,10 @@ var SectionHeader = function (_a) {
|
|
|
19
19
|
react_1.default.createElement("div", { className: "flex items-center gap-10" },
|
|
20
20
|
react_1.default.createElement("div", { className: "" },
|
|
21
21
|
react_1.default.createElement(molecules_1.Typography, { variant: molecules_1.TYPOGRAPHY_VARIANTS.H2 }, heading)),
|
|
22
|
-
!!badgeText && (react_1.default.createElement(molecules_1.Badge, { label: badgeText, type: type_1.
|
|
22
|
+
!!badgeText && (react_1.default.createElement(molecules_1.Badge, { label: badgeText, type: type_1.BADGE_TYPE.FOOTER_BADGE }))),
|
|
23
23
|
subheading && (react_1.default.createElement("div", { className: "mt-3 text-black/45" },
|
|
24
24
|
react_1.default.createElement(molecules_1.Typography, { variant: molecules_1.TYPOGRAPHY_VARIANTS.P1 }, subheading)))),
|
|
25
|
-
renderCtaButton && (react_1.default.createElement("div", { className: "flex w-
|
|
25
|
+
renderCtaButton && (react_1.default.createElement("div", { className: "flex w-full justify-start lg:w-[50%] lg:justify-end" },
|
|
26
26
|
react_1.default.createElement("div", { className: "w-fit" },
|
|
27
27
|
react_1.default.createElement(molecules_1.Button, { outlined: btnOutlined, type: btnType, label: btnText, iconSuffix: btnIcon, size: molecules_1.BUTTON_SIZES.MD, handleOnClick: handleButtonClick })))))));
|
|
28
28
|
};
|
|
@@ -8,11 +8,21 @@ exports.userCardGridData = [
|
|
|
8
8
|
name: 'Emma Thompson',
|
|
9
9
|
description: '15420 reading for 2005',
|
|
10
10
|
badges: [
|
|
11
|
-
{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
{
|
|
15
|
-
|
|
11
|
+
{
|
|
12
|
+
label: 'Angel Readings',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: 'Astrology Readings',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: 'Aura Cleansing',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: 'Psychic Mediums',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: 'Love And Relationships',
|
|
25
|
+
},
|
|
16
26
|
],
|
|
17
27
|
rating: 4.8,
|
|
18
28
|
price: { current: 1, duration: 5 },
|
|
@@ -25,8 +35,12 @@ exports.userCardGridData = [
|
|
|
25
35
|
name: 'Michael Chen',
|
|
26
36
|
description: '15420 reading for 2005',
|
|
27
37
|
badges: [
|
|
28
|
-
{
|
|
29
|
-
|
|
38
|
+
{
|
|
39
|
+
label: 'Astrology Readings',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: 'Psychic Mediums',
|
|
43
|
+
},
|
|
30
44
|
],
|
|
31
45
|
rating: 4.5,
|
|
32
46
|
price: { current: 1.5, duration: 10 },
|
|
@@ -39,8 +53,12 @@ exports.userCardGridData = [
|
|
|
39
53
|
name: 'Sophia Rodriguez',
|
|
40
54
|
description: '15420 reading for 2005',
|
|
41
55
|
badges: [
|
|
42
|
-
{
|
|
43
|
-
|
|
56
|
+
{
|
|
57
|
+
label: 'Psychic Mediums',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: 'Astrology Readings',
|
|
61
|
+
},
|
|
44
62
|
],
|
|
45
63
|
rating: 4.9,
|
|
46
64
|
price: { current: 2, duration: 15 },
|
|
@@ -52,8 +70,12 @@ exports.userCardGridData = [
|
|
|
52
70
|
imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
|
|
53
71
|
name: 'Alex Johnson',
|
|
54
72
|
badges: [
|
|
55
|
-
{
|
|
56
|
-
|
|
73
|
+
{
|
|
74
|
+
label: 'Angel Readings',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: 'Dream Interpretation',
|
|
78
|
+
},
|
|
57
79
|
],
|
|
58
80
|
rating: 4.6,
|
|
59
81
|
price: { current: 1.2, duration: 8 },
|
|
@@ -65,8 +87,12 @@ exports.userCardGridData = [
|
|
|
65
87
|
imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
|
|
66
88
|
name: 'Olivia Baker',
|
|
67
89
|
badges: [
|
|
68
|
-
{
|
|
69
|
-
|
|
90
|
+
{
|
|
91
|
+
label: 'Angel Readings',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
label: 'Dream Interpretation',
|
|
95
|
+
},
|
|
70
96
|
],
|
|
71
97
|
rating: 4.7,
|
|
72
98
|
price: { current: 1.8, duration: 12 },
|
|
@@ -79,8 +105,12 @@ exports.userCardGridData = [
|
|
|
79
105
|
name: 'Daniel Lee',
|
|
80
106
|
description: '15420 reading for 2005',
|
|
81
107
|
badges: [
|
|
82
|
-
{
|
|
83
|
-
|
|
108
|
+
{
|
|
109
|
+
label: 'Angel Readings',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
label: 'Dream Interpretation',
|
|
113
|
+
},
|
|
84
114
|
],
|
|
85
115
|
rating: 4.8,
|
|
86
116
|
price: { current: 1.5, duration: 10 },
|
|
@@ -93,8 +123,12 @@ exports.userCardGridData = [
|
|
|
93
123
|
name: 'Isabella Martinez',
|
|
94
124
|
description: '15420 reading for 2005',
|
|
95
125
|
badges: [
|
|
96
|
-
{
|
|
97
|
-
|
|
126
|
+
{
|
|
127
|
+
label: 'Psychic Mediums',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
label: 'Dream Interpretation',
|
|
131
|
+
},
|
|
98
132
|
],
|
|
99
133
|
rating: 4.9,
|
|
100
134
|
price: { current: 2.2, duration: 15 },
|
|
@@ -107,8 +141,12 @@ exports.userCardGridData = [
|
|
|
107
141
|
name: 'William Taylor',
|
|
108
142
|
description: '15420 reading for 2005',
|
|
109
143
|
badges: [
|
|
110
|
-
{
|
|
111
|
-
|
|
144
|
+
{
|
|
145
|
+
label: 'Psychic Mediums',
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: 'Psychic Mediums',
|
|
149
|
+
},
|
|
112
150
|
],
|
|
113
151
|
rating: 4.6,
|
|
114
152
|
price: { current: 1.3, duration: 8 },
|
|
@@ -121,8 +159,12 @@ exports.userCardGridData = [
|
|
|
121
159
|
name: 'Ava Wilson',
|
|
122
160
|
description: '15420 reading for 2005',
|
|
123
161
|
badges: [
|
|
124
|
-
{
|
|
125
|
-
|
|
162
|
+
{
|
|
163
|
+
label: 'Aura Cleansing',
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
label: 'Psychic Mediums',
|
|
167
|
+
},
|
|
126
168
|
],
|
|
127
169
|
rating: 4.7,
|
|
128
170
|
price: { current: 1.7, duration: 12 },
|
|
@@ -135,8 +177,12 @@ exports.userCardGridData = [
|
|
|
135
177
|
name: 'Ethan Brown',
|
|
136
178
|
description: '15420 reading for 2005',
|
|
137
179
|
badges: [
|
|
138
|
-
{
|
|
139
|
-
|
|
180
|
+
{
|
|
181
|
+
label: 'Numerology',
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
label: 'Angel Readings',
|
|
185
|
+
},
|
|
140
186
|
],
|
|
141
187
|
rating: 4.8,
|
|
142
188
|
price: { current: 1.6, duration: 10 },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/kismaa-web-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.19",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"main": "lib/main.js",
|
|
6
6
|
"module": "lib/module.js",
|
|
@@ -40,11 +40,10 @@
|
|
|
40
40
|
"pre-commit": "eslint --max-warnings=0 ."
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"dependencies": {
|
|
44
|
-
"@react-pakistan/util-functions": "^1.23.33"
|
|
45
|
-
},
|
|
43
|
+
"dependencies": {},
|
|
46
44
|
"devDependencies": {
|
|
47
45
|
"@appcorp/app-corp-designs": "^0.4.42",
|
|
46
|
+
"@appcorp/kismaa-utils": "^0.1.34",
|
|
48
47
|
"@chromatic-com/storybook": "3.2.2",
|
|
49
48
|
"@eslint/compat": "^1.2.3",
|
|
50
49
|
"@headlessui/react": "^2.2.0",
|
|
@@ -54,6 +53,7 @@
|
|
|
54
53
|
"@mdx-js/react": "^3.1.0",
|
|
55
54
|
"@next/eslint-plugin-next": "^15.1.0",
|
|
56
55
|
"@next/mdx": "^15.0.4",
|
|
56
|
+
"@react-pakistan/util-functions": "^1.23.34",
|
|
57
57
|
"@storybook/addon-essentials": "8.4.7",
|
|
58
58
|
"@storybook/addon-interactions": "8.4.7",
|
|
59
59
|
"@storybook/addon-onboarding": "8.4.7",
|