@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.
@@ -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 sizeStyles = (_a = {},
22
- _a[type_1.BADGE_SIZES.SM] = 'py-1.5 px-2.5 text-xs',
23
- _a[type_1.BADGE_SIZES.MD] = 'py-1.5 px-2.5 lg:text-sm text-xs',
24
- _a[type_1.BADGE_SIZES.LG] = 'py-2 px-4 lg:text-base text-sm',
25
- _a);
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 bgColor = _a.bgColor, rounded = _a.rounded, textColor = _a.textColor, handleOnClick = _a.handleOnClick, label = _a.label, size = _a.size, type = _a.type, borderColor = _a.borderColor;
28
- var badgeStyles = __assign({ borderRadius: "".concat(rounded, "px"), color: textColor }, (type === type_1.BADGE_TYPES.SOLID
29
- ? { backgroundColor: bgColor }
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;
@@ -4,10 +4,5 @@ exports.badgeData = void 0;
4
4
  var type_1 = require("./type");
5
5
  exports.badgeData = {
6
6
  label: 'Love',
7
- rounded: 6,
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 BADGE_SIZES {
2
- SM = "SM",
3
- MD = "MD",
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: BADGE_TYPES;
17
- borderColor?: string;
18
- handleOnClick?: () => void;
7
+ type: BADGE_TYPE;
19
8
  }
@@ -1,14 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BADGE_TYPES = exports.BADGE_SIZES = void 0;
4
- var BADGE_SIZES;
5
- (function (BADGE_SIZES) {
6
- BADGE_SIZES["SM"] = "SM";
7
- BADGE_SIZES["MD"] = "MD";
8
- BADGE_SIZES["LG"] = "LG";
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: 'Destiny & Life Path',
14
- bgColor: '#9BB8ED1A',
15
- textColor: '#9BB8ED',
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,
@@ -4,8 +4,6 @@ export interface UserCardProps {
4
4
  name: string;
5
5
  badges: {
6
6
  label: string;
7
- bgColor: string;
8
- textColor: string;
9
7
  }[];
10
8
  rating: number;
11
9
  price: {
@@ -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 min-h-16 w-full flex-wrap justify-center gap-1.5" }, badges.slice(0, 5).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_TYPES.SOLID, size: type_1.BADGE_SIZES.SM, rounded: 20, bgColor: badge.bgColor, textColor: badge.textColor }))); })),
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, index) { return (react_1.default.createElement(molecules_1.Badge, { key: index, rounded: 20, type: type_1.BADGE_TYPES.SOLID, size: type_1.BADGE_SIZES.MD, label: expertise.label, bgColor: expertise.bgColor, textColor: expertise.textColor })); }))),
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 = __importDefault(require("react"));
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 quickLinksLeft = quickLinks.slice(0, halfLength);
16
- var quickLinksRight = quickLinks.slice(halfLength);
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.map(function (_a, index) {
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("a", { key: index, href: href, target: "_blank", rel: "noopener noreferrer", className: "cursor-pointer rounded-full bg-primary/65 p-2 transition-all duration-300 ease-in-out hover:scale-110" }, icon));
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, index) {
48
- var label = _a.label, bgColor = _a.bgColor, textColor = _a.textColor, outlined = _a.outlined, borderColor = _a.borderColor;
49
- return (react_1.default.createElement(molecules_1.Badge, { key: index, type: outlined ? type_1.BADGE_TYPES.OUTLINE : type_1.BADGE_TYPES.SOLID, label: label, bgColor: bgColor, textColor: textColor, borderColor: borderColor, rounded: 6, size: type_1.BADGE_SIZES.LG }));
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
- { icon: react_1.default.createElement(facebook_icon_1.FacebookIcon, { className: "size-5" }), href: 'https://facebook.com' },
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
- { label: 'About Us', href: '/about-us' },
23
- { label: 'Services', href: '/services' },
24
- { label: 'Contact', href: '/contact' },
25
- { label: 'FAQ', href: '/faq' },
26
- { label: 'Blog', href: '/blog' },
27
- { label: 'Blog', href: '/blog' },
28
- { label: 'Blog', href: '/blog' },
29
- { label: 'Blog', href: '/blog' },
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
- bgColor: '#B880F1',
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
- bgColor: string;
4
- textColor: string;
5
- outlined?: boolean;
6
- borderColor?: string;
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 heading = _a.heading, subheading = _a.subheading, renderCtaButton = _a.renderCtaButton, btnText = _a.btnText, handleButtonClick = _a.handleButtonClick, _b = _a.btnType, btnType = _b === void 0 ? molecules_1.BUTTON_TYPES.QUATERNARY : _b, _c = _a.btnIcon, btnIcon = _c === void 0 ? react_1.default.createElement(solid_1.ChevronRightIcon, { className: "size-7" }) : _c, _d = _a.badgeText, badgeText = _d === void 0 ? '' : _d, _e = _a.btnOutlined, btnOutlined = _e === void 0 ? false : _e, breadcrumbs = _a.breadcrumbs;
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.BADGE_TYPES.SOLID, bgColor: "#B880F1", textColor: "white", rounded: 20, size: type_1.BADGE_SIZES.LG }))),
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-[100%] justify-start lg:w-[50%] lg:justify-end" },
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
- { label: 'Psychic', bgColor: '#FFC5671A', textColor: '#FFC567' },
12
- { label: 'Numerology', bgColor: '#FF33331A', textColor: '#FF3333' },
13
- { label: 'Astrology', bgColor: '#9BB8ED1A', textColor: '#9BB8ED' },
14
- { label: 'Psychic', bgColor: '#FFC5671A', textColor: '#FFC567' },
15
- { label: 'Tarot', bgColor: '#B880F11A', textColor: '#B880F1' },
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
- { label: 'Astrology', bgColor: '#9BB8ED1A', textColor: '#9BB8ED' },
29
- { label: 'Numerology', bgColor: '#FF33331A', textColor: '#FF3333' },
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
- { label: 'Clairvoyant', bgColor: '#FFC5671A', textColor: '#FFC567' },
43
- { label: 'Empath', bgColor: '#B880F11A', textColor: '#B880F1' },
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
- { label: 'Palm Reading', bgColor: '#9BB8ED1A', textColor: '#9BB8ED' },
56
- { label: 'Dream Analysis', bgColor: '#FF33331A', textColor: '#FF3333' },
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
- { label: 'Reiki', bgColor: '#FFC5671A', textColor: '#FFC567' },
69
- { label: 'Chakra Healing', bgColor: '#B880F11A', textColor: '#B880F1' },
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
- { label: 'I Ching', bgColor: '#9BB8ED1A', textColor: '#9BB8ED' },
83
- { label: 'Feng Shui', bgColor: '#FF33331A', textColor: '#FF3333' },
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
- { label: 'Mediumship', bgColor: '#FFC5671A', textColor: '#FFC567' },
97
- { label: 'Past Life', bgColor: '#B880F11A', textColor: '#B880F1' },
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
- { label: 'Runes', bgColor: '#9BB8ED1A', textColor: '#9BB8ED' },
111
- { label: 'Crystals', bgColor: '#FF33331A', textColor: '#FF3333' },
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
- { label: 'Aura Reading', bgColor: '#FFC5671A', textColor: '#FFC567' },
125
- { label: 'Energy Healing', bgColor: '#B880F11A', textColor: '#B880F1' },
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
- { label: 'Numerology', bgColor: '#9BB8ED1A', textColor: '#9BB8ED' },
139
- { label: 'Astrology', bgColor: '#FF33331A', textColor: '#FF3333' },
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.18",
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",