@appcorp/kismaa-web-ui 0.1.27 → 0.1.28

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.
@@ -33,7 +33,7 @@ var UserCard = function (_a) {
33
33
  react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.H3 }, name)),
34
34
  !!description && (react_1.default.createElement("div", { className: "mb-2 min-h-5 text-gray-500" },
35
35
  react_1.default.createElement(typography_1.Typography, { variant: typography_1.TYPOGRAPHY_VARIANTS.P1 }, description))),
36
- 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 },
36
+ 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) { return (react_1.default.createElement("div", { className: "h-fit w-fit", key: badge.label },
37
37
  react_1.default.createElement(badge_1.Badge, { label: badge.label, type: type_1.BADGE_TYPE.CARD_BADGE }))); })),
38
38
  react_1.default.createElement("div", { className: "my-5 flex justify-center" },
39
39
  react_1.default.createElement(ratings_1.Ratings, { rating: rating })),
@@ -11,14 +11,6 @@ exports.extendedUserCardData = {
11
11
  totalRating: 100,
12
12
  totalChat: 50,
13
13
  expertIn: 'Love Psychics',
14
- otherExpertise: [
15
- { label: 'Clairvoyant', bgColor: '#FFC5671A', textColor: '#FFC567' },
16
- { label: 'Clairaudient', bgColor: '#B880F11A', textColor: '#B880F1' },
17
- {
18
- label: 'Destiny & Life Path',
19
- bgColor: '#9BB8ED1A',
20
- textColor: '#9BB8ED',
21
- },
22
- ],
14
+ otherExpertise: [{ label: 'Aura Cleansing' }, { label: 'Angel Readings' }],
23
15
  onChatClick: function () { return console.log('Chat button clicked'); },
24
16
  };
@@ -1,8 +1,6 @@
1
1
  import { PSYCHIC_ONLINE_STATUS } from '@appcorp/kismaa-utils';
2
2
  export interface Expertise {
3
3
  label: string;
4
- bgColor: string;
5
- textColor: string;
6
4
  }
7
5
  export interface ExtendedUserCardProps {
8
6
  onlineStatus: PSYCHIC_ONLINE_STATUS;
@@ -21,13 +21,9 @@ exports.userDetailsData = {
21
21
  expertIn: 'Love Psychics',
22
22
  onChatClick: function () { return void 0; },
23
23
  otherExpertise: [
24
- { label: 'Clairvoyant', bgColor: '#FFC5671A', textColor: '#FFC567' },
25
- { label: 'Clairaudient', bgColor: '#B880F11A', textColor: '#B880F1' },
26
- {
27
- label: 'Destiny & Life Path',
28
- bgColor: '#9BB8ED1A',
29
- textColor: '#9BB8ED',
30
- },
24
+ { label: 'Psychic Readings' },
25
+ { label: 'Aura Cleansing' },
26
+ { label: 'Angel Readings' },
31
27
  ],
32
28
  fee: '$199.00/min',
33
29
  breadcrumbs: { items: [] },
@@ -3,23 +3,23 @@ import { BreadcrumbsProps } from '../../molecules/breadcrumbs';
3
3
  import { AttributeItem } from '../attributes-section';
4
4
  import { Expertise } from '../extended-user-card';
5
5
  export interface UserDetailsProps {
6
- heading: string;
7
- userName: string;
8
- bannerImageSrc: string;
9
- aboutTitle: string;
10
6
  aboutImageSrc: string;
11
- description: string;
7
+ aboutTitle: string;
12
8
  attributeHeading: string;
13
9
  attributesData: AttributeItem[];
10
+ avgRating: number;
11
+ bannerImageSrc: string;
12
+ breadcrumbs: BreadcrumbsProps;
13
+ description: string;
14
+ expertIn: string;
15
+ fee: string;
16
+ heading: string;
17
+ onChatClick: () => void;
14
18
  onlineStatus: PSYCHIC_ONLINE_STATUS;
19
+ otherExpertise: Expertise[];
15
20
  profileImageUrl: string;
16
21
  title: string;
17
- fee: string;
18
- avgRating: number;
19
- totalRating: number;
20
22
  totalChat: number;
21
- expertIn: string;
22
- otherExpertise: Expertise[];
23
- onChatClick: () => void;
24
- breadcrumbs: BreadcrumbsProps;
23
+ totalRating: number;
24
+ userName: string;
25
25
  }
@@ -11,13 +11,13 @@ var extended_user_card_1 = require("../extended-user-card");
11
11
  var attributes_section_1 = require("../attributes-section");
12
12
  var section_header_1 = require("../section-header");
13
13
  var UserDetails = function (_a) {
14
- var heading = _a.heading, userName = _a.userName, bannerImageSrc = _a.bannerImageSrc, aboutTitle = _a.aboutTitle, aboutImageSrc = _a.aboutImageSrc, description = _a.description, attributesData = _a.attributesData, attributeHeading = _a.attributeHeading, onlineStatus = _a.onlineStatus, profileImageUrl = _a.profileImageUrl, title = _a.title, totalChat = _a.totalChat, totalRating = _a.totalRating, avgRating = _a.avgRating, expertIn = _a.expertIn, onChatClick = _a.onChatClick, otherExpertise = _a.otherExpertise, fee = _a.fee, breadcrumbs = _a.breadcrumbs;
14
+ var aboutImageSrc = _a.aboutImageSrc, aboutTitle = _a.aboutTitle, attributeHeading = _a.attributeHeading, attributesData = _a.attributesData, avgRating = _a.avgRating, bannerImageSrc = _a.bannerImageSrc, breadcrumbs = _a.breadcrumbs, description = _a.description, expertIn = _a.expertIn, fee = _a.fee, heading = _a.heading, onChatClick = _a.onChatClick, onlineStatus = _a.onlineStatus, otherExpertise = _a.otherExpertise, profileImageUrl = _a.profileImageUrl, title = _a.title, totalChat = _a.totalChat, totalRating = _a.totalRating, userName = _a.userName;
15
15
  return (react_1.default.createElement("section", { className: "kismaa-section-spacing bg-white" },
16
16
  react_1.default.createElement("div", { className: "kismaa-container" },
17
17
  react_1.default.createElement(section_header_1.SectionHeader, { heading: heading, subheading: "", renderCtaButton: false, handleButtonClick: function () { return null; }, breadcrumbs: breadcrumbs }),
18
18
  react_1.default.createElement("div", { className: "grid w-full gap-6 xl:grid-cols-12 xl:gap-24" },
19
19
  react_1.default.createElement("div", { className: "block w-full md:hidden lg:hidden xl:hidden" },
20
- react_1.default.createElement(extended_user_card_1.ExtendedUserCard, { onlineStatus: onlineStatus, imageUrl: profileImageUrl, onChatClick: onChatClick, otherExpertise: otherExpertise, fee: fee, title: title, avgRating: avgRating, totalRating: totalRating, totalChat: totalChat, expertIn: expertIn })),
20
+ react_1.default.createElement(extended_user_card_1.ExtendedUserCard, { avgRating: avgRating, expertIn: expertIn, fee: fee, imageUrl: profileImageUrl, onChatClick: onChatClick, onlineStatus: onlineStatus, otherExpertise: otherExpertise, title: title, totalChat: totalChat, totalRating: totalRating })),
21
21
  react_1.default.createElement("div", { className: "w-full lg:col-span-7 xl:col-span-8" },
22
22
  react_1.default.createElement("div", { className: "mt-4 lg:mt-9" },
23
23
  react_1.default.createElement(user_detail_banner_1.UserDetailBanner, { userName: userName, bannerImageSrc: bannerImageSrc })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/kismaa-web-ui",
3
- "version": "0.1.27",
3
+ "version": "0.1.28",
4
4
  "source": "src/index.ts",
5
5
  "main": "lib/main.js",
6
6
  "module": "lib/module.js",