@appcorp/kismaa-web-ui 0.2.65 → 0.2.66

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,4 +1,4 @@
1
- import { PSYCHIC_ONLINE_STATUS } from '@appcorp/kismaa-utils';
1
+ import { PSYCHIC_ONLINE_STATUS } from '@appcorp/kismaa-utils/api/type/psychic';
2
2
  import { FC } from 'react';
3
3
  export interface ActiveIconProps {
4
4
  onlineStatus: PSYCHIC_ONLINE_STATUS;
@@ -5,12 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  var _a;
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.ActiveIcon = void 0;
8
- var kismaa_utils_1 = require("@appcorp/kismaa-utils");
8
+ var psychic_1 = require("@appcorp/kismaa-utils/api/type/psychic");
9
9
  var react_1 = __importDefault(require("react"));
10
10
  var statusColorMap = (_a = {},
11
- _a[kismaa_utils_1.PSYCHIC_ONLINE_STATUS.ONLINE] = 'bg-green-500',
12
- _a[kismaa_utils_1.PSYCHIC_ONLINE_STATUS.BUSY] = 'bg-orange-500',
13
- _a[kismaa_utils_1.PSYCHIC_ONLINE_STATUS.OFFLINE] = 'bg-gray-500',
11
+ _a[psychic_1.PSYCHIC_ONLINE_STATUS.ONLINE] = 'bg-green-500',
12
+ _a[psychic_1.PSYCHIC_ONLINE_STATUS.BUSY] = 'bg-orange-500',
13
+ _a[psychic_1.PSYCHIC_ONLINE_STATUS.OFFLINE] = 'bg-gray-500',
14
14
  _a);
15
15
  var ActiveIcon = function (_a) {
16
16
  var onlineStatus = _a.onlineStatus;
@@ -1,4 +1,4 @@
1
- import type { StoryObj } from '@storybook/react';
1
+ import type { StoryObj } from '@storybook/nextjs';
2
2
  declare const meta: {
3
3
  component: import("react").FC<import("./type").RatingTypes>;
4
4
  tags: string[];
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.userCardData = void 0;
4
- var kismaa_utils_1 = require("@appcorp/kismaa-utils");
4
+ var psychic_1 = require("@appcorp/kismaa-utils/api/type/psychic");
5
5
  exports.userCardData = {
6
6
  id: '1',
7
7
  description: '19210 for reading 2001',
@@ -9,7 +9,7 @@ exports.userCardData = {
9
9
  imageSrc: '/card-person.jpg',
10
10
  isHovered: false,
11
11
  name: 'Manish Kumar Arora',
12
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.OFFLINE,
12
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.OFFLINE,
13
13
  handleOnMouseEnter: function () { return void 0; },
14
14
  handleOnMouseLeave: function () { return void 0; },
15
15
  badges: [
@@ -1,5 +1,5 @@
1
1
  import { LoggedInUser } from '../../organisms/navbar/type';
2
- import { PSYCHIC_ONLINE_STATUS } from '@appcorp/kismaa-utils';
2
+ import { PSYCHIC_ONLINE_STATUS } from '@appcorp/kismaa-utils/api/type/psychic';
3
3
  export interface UserCardProps {
4
4
  imageAlt: string;
5
5
  imageSrc: string;
@@ -5,7 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  };
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.UserCard = void 0;
8
- var kismaa_utils_1 = require("@appcorp/kismaa-utils");
8
+ var psychic_1 = require("@appcorp/kismaa-utils/api/type/psychic");
9
+ var user_1 = require("@appcorp/kismaa-utils/api/type/user");
9
10
  var react_1 = __importDefault(require("react"));
10
11
  var image_1 = __importDefault(require("next/image"));
11
12
  var active_icon_1 = require("../../atoms/active-icon");
@@ -28,9 +29,9 @@ var UserCard = function (_a) {
28
29
  react_1.default.createElement("div", { className: "relative h-64 w-full" },
29
30
  react_1.default.createElement(image_1.default, { alt: imageAlt, className: "h-full w-full object-cover object-center", fill: true, height: 0, sizes: "20vw", src: imageSrc, width: 0 })),
30
31
  isHovered &&
31
- onlineStatus === kismaa_utils_1.PSYCHIC_ONLINE_STATUS.ONLINE &&
32
+ onlineStatus === psychic_1.PSYCHIC_ONLINE_STATUS.ONLINE &&
32
33
  (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.userType) &&
33
- loggedInUser.userType == kismaa_utils_1.USER_TYPE.USER && (react_1.default.createElement(react_1.default.Fragment, null,
34
+ loggedInUser.userType == user_1.USER_TYPE.USER && (react_1.default.createElement(react_1.default.Fragment, null,
34
35
  react_1.default.createElement("div", { className: "absolute inset-0 bg-gradient-to-b from-transparent to-[rgba(22,18,69,0.85)] transition-opacity duration-300" }),
35
36
  react_1.default.createElement("div", { className: "absolute bottom-7 flex w-full justify-center" },
36
37
  react_1.default.createElement("div", { className: "w-fit" },
@@ -56,7 +57,7 @@ var UserCard = function (_a) {
56
57
  price.duration,
57
58
  "min")),
58
59
  (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.userType) &&
59
- loggedInUser.userType == kismaa_utils_1.USER_TYPE.USER && (react_1.default.createElement("div", { className: "absolute right-2 bottom-2 z-10 cursor-pointer" }, isFavorite ? (react_1.default.createElement("div", { onClick: function (e) {
60
+ loggedInUser.userType == user_1.USER_TYPE.USER && (react_1.default.createElement("div", { className: "absolute right-2 bottom-2 z-10 cursor-pointer" }, isFavorite ? (react_1.default.createElement("div", { onClick: function (e) {
60
61
  e.stopPropagation();
61
62
  handleIsFavorite(id);
62
63
  } },
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.extendedUserCardData = void 0;
4
- var kismaa_utils_1 = require("@appcorp/kismaa-utils");
4
+ var psychic_1 = require("@appcorp/kismaa-utils/api/type/psychic");
5
5
  exports.extendedUserCardData = {
6
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.OFFLINE,
6
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.OFFLINE,
7
7
  imageUrl: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
8
8
  title: 'TRUE HEALER',
9
9
  rate: '$199.00/min',
@@ -1,4 +1,4 @@
1
- import { PSYCHIC_ONLINE_STATUS } from '@appcorp/kismaa-utils';
1
+ import { PSYCHIC_ONLINE_STATUS } from '@appcorp/kismaa-utils/api/type/psychic';
2
2
  export interface Expertise {
3
3
  label: string;
4
4
  }
@@ -9,10 +9,10 @@ var molecules_1 = require("../../molecules");
9
9
  var image_1 = __importDefault(require("next/image"));
10
10
  var react_1 = __importDefault(require("react"));
11
11
  var atoms_1 = require("../../atoms");
12
- var kismaa_utils_1 = require("@appcorp/kismaa-utils");
12
+ var user_1 = require("@appcorp/kismaa-utils/api/type/user");
13
13
  var MobileMenu = function (_a) {
14
14
  var headerActions = _a.headerActions, isMobileMenuOpen = _a.isMobileMenuOpen, loggedInUser = _a.loggedInUser, navLinks = _a.navLinks, toggleMobileMenu = _a.toggleMobileMenu, homeLink = _a.homeLink;
15
- var avatarClassName = (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.userType) === kismaa_utils_1.USER_TYPE.USER
15
+ var avatarClassName = (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.userType) === user_1.USER_TYPE.USER
16
16
  ? 'h-10 w-10 rounded-full ring-2 ring-white'
17
17
  : 'h-10 w-10 rounded-full';
18
18
  return (react_1.default.createElement("div", null, isMobileMenuOpen && (react_1.default.createElement("div", { className: "col-span-2 max-h-90 overflow-y-scroll bg-purple-200/90 lg:hidden" },
@@ -17,7 +17,7 @@ var header_pointer_icon_1 = require("../../atoms/header-pointer-icon");
17
17
  var user_icon_1 = require("../../atoms/user-icon");
18
18
  var react_2 = require("@headlessui/react");
19
19
  var mobile_menu_1 = require("./mobile-menu");
20
- var kismaa_utils_1 = require("@appcorp/kismaa-utils");
20
+ var user_1 = require("@appcorp/kismaa-utils/api/type/user");
21
21
  var Navbar = function (_a) {
22
22
  var _b, _c;
23
23
  var handleMegaMenuToggle = _a.handleMegaMenuToggle, handleSearch = _a.handleSearch, headerActions = _a.headerActions, homeLink = _a.homeLink, isMobileMenuOpen = _a.isMobileMenuOpen, _d = _a.loggedInUser, loggedInUser = _d === void 0 ? null : _d, navLinks = _a.navLinks, _e = _a.showSearch, showSearch = _e === void 0 ? false : _e, toggleMobileMenu = _a.toggleMobileMenu;
@@ -31,7 +31,7 @@ var Navbar = function (_a) {
31
31
  react_1.default.createElement("div", { className: "absolute w-max pt-10" },
32
32
  react_1.default.createElement(mega_menu_1.MegaMenu, { items: link.megaMenuItems }))))));
33
33
  };
34
- var avatarClassName = (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.userType) === kismaa_utils_1.USER_TYPE.USER
34
+ var avatarClassName = (loggedInUser === null || loggedInUser === void 0 ? void 0 : loggedInUser.userType) === user_1.USER_TYPE.USER
35
35
  ? 'h-10 w-10 cursor-pointer rounded-full ring-2 ring-white'
36
36
  : 'h-10 w-10 cursor-pointer rounded-full';
37
37
  return (react_1.default.createElement("nav", { className: "fixed z-20 w-full bg-purple-200/90" },
@@ -1,6 +1,6 @@
1
1
  import { MouseEvent } from 'react';
2
2
  import { BUTTON_TYPES, MegaMenuCardProps } from '../../molecules';
3
- import { USER_TYPE } from '@appcorp/kismaa-utils';
3
+ import { USER_TYPE } from '@appcorp/kismaa-utils/api/type/user';
4
4
  export interface NavLinks {
5
5
  enabled: boolean;
6
6
  href: string;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.userGridData = exports.userCardGridData = void 0;
4
- var kismaa_utils_1 = require("@appcorp/kismaa-utils");
4
+ var psychic_1 = require("@appcorp/kismaa-utils/api/type/psychic");
5
5
  exports.userCardGridData = [
6
6
  {
7
7
  id: '1',
8
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.ONLINE,
8
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.ONLINE,
9
9
  imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
10
10
  imageAlt: '',
11
11
  name: 'Emma Thompson',
@@ -44,7 +44,7 @@ exports.userCardGridData = [
44
44
  },
45
45
  {
46
46
  id: '2',
47
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.ONLINE,
47
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.ONLINE,
48
48
  imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
49
49
  imageAlt: '',
50
50
  name: 'Michael Chen',
@@ -72,7 +72,7 @@ exports.userCardGridData = [
72
72
  },
73
73
  {
74
74
  id: '3',
75
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.OFFLINE,
75
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.OFFLINE,
76
76
  imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
77
77
  imageAlt: '',
78
78
  name: 'Sophia Rodriguez',
@@ -100,7 +100,7 @@ exports.userCardGridData = [
100
100
  },
101
101
  {
102
102
  id: '4',
103
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.ONLINE,
103
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.ONLINE,
104
104
  imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
105
105
  imageAlt: 'Alex Johnson',
106
106
  name: 'Alex Johnson',
@@ -127,7 +127,7 @@ exports.userCardGridData = [
127
127
  },
128
128
  {
129
129
  id: '5',
130
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.OFFLINE,
130
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.OFFLINE,
131
131
  imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
132
132
  imageAlt: 'Olivia Baker',
133
133
  name: 'Olivia Baker',
@@ -154,7 +154,7 @@ exports.userCardGridData = [
154
154
  },
155
155
  {
156
156
  id: '6',
157
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.ONLINE,
157
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.ONLINE,
158
158
  imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
159
159
  imageAlt: 'Daniel Lee',
160
160
  name: 'Daniel Lee',
@@ -182,7 +182,7 @@ exports.userCardGridData = [
182
182
  },
183
183
  {
184
184
  id: '7',
185
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.ONLINE,
185
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.ONLINE,
186
186
  imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
187
187
  imageAlt: 'Isbella Martineź',
188
188
  name: 'Isabella Martinez',
@@ -210,7 +210,7 @@ exports.userCardGridData = [
210
210
  },
211
211
  {
212
212
  id: '8',
213
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.BUSY,
213
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.BUSY,
214
214
  imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
215
215
  imageAlt: 'William Taylor',
216
216
  name: 'William Taylor',
@@ -238,7 +238,7 @@ exports.userCardGridData = [
238
238
  },
239
239
  {
240
240
  id: '9',
241
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.ONLINE,
241
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.ONLINE,
242
242
  imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
243
243
  imageAlt: 'Ava Wilson',
244
244
  name: 'Ava Wilson',
@@ -266,7 +266,7 @@ exports.userCardGridData = [
266
266
  },
267
267
  {
268
268
  id: '10',
269
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.ONLINE,
269
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.ONLINE,
270
270
  imageSrc: 'https://ytiwekjzaihrkrirjgpk.supabase.co/storage/v1/object/public/publicBlob/assets/psychic.webp',
271
271
  imageAlt: 'Ethan Brown',
272
272
  name: 'Ethan Brown',
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.userDetailsData = void 0;
4
- var kismaa_utils_1 = require("@appcorp/kismaa-utils");
4
+ var psychic_1 = require("@appcorp/kismaa-utils/api/type/psychic");
5
5
  var props_1 = require("../attributes-section/props");
6
6
  exports.userDetailsData = {
7
7
  heading: 'Advisors',
@@ -10,7 +10,7 @@ exports.userDetailsData = {
10
10
  aboutTitle: 'About Me',
11
11
  description: 'My clairsentient abilities enable me to receive psychic insights by sensing subtle energies and interpreting images from my angels. Starting as a teenager, I discovered my unique gift of consistently seeing a persons soul, always radiating unconditional love, irrespective of their actions. Guided by my angels, Ive honed this ability over 42 years of continuous learning. My extensive practice has allowed me to develop a range of skills, including clairaudience, clairvoyance, empathic abilities, autowriting, energy reading, and Tarot. Remote psychic readings are facilitated by tapping into your energy field, providing accurate insights for both you and those close to you.',
12
12
  attributesData: props_1.attributesData,
13
- onlineStatus: kismaa_utils_1.PSYCHIC_ONLINE_STATUS.ONLINE,
13
+ onlineStatus: psychic_1.PSYCHIC_ONLINE_STATUS.ONLINE,
14
14
  profileImageSrc: '/card-person.jpg',
15
15
  profileImageAlt: '',
16
16
  title: 'TRUE HEALER',
@@ -1,4 +1,4 @@
1
- import { PSYCHIC_ONLINE_STATUS } from '@appcorp/kismaa-utils';
1
+ import { PSYCHIC_ONLINE_STATUS } from '@appcorp/kismaa-utils/api/type/psychic';
2
2
  import { BreadcrumbsProps } from '../../molecules/breadcrumbs';
3
3
  import { AttributeItem } from '../attributes-section';
4
4
  import { Expertise } from '../extended-user-card';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/kismaa-web-ui",
3
- "version": "0.2.65",
3
+ "version": "0.2.66",
4
4
  "source": "src/index.ts",
5
5
  "main": "lib/main.js",
6
6
  "module": "lib/module.js",
@@ -44,10 +44,9 @@
44
44
  }
45
45
  },
46
46
  "devDependencies": {
47
- "@appcorp/app-corp-designs": "^0.4.92",
48
- "@appcorp/app-corp-vista": "^0.3.35",
49
- "@appcorp/kismaa-utils": "^0.2.57",
50
- "@chromatic-com/storybook": "3.2.6",
47
+ "@appcorp/app-corp-vista": "^0.3.45",
48
+ "@appcorp/kismaa-utils": "^0.2.61",
49
+ "@chromatic-com/storybook": "^4",
51
50
  "@headlessui/react": "^2",
52
51
  "@headlessui/tailwindcss": "^0",
53
52
  "@heroicons/react": "^2",
@@ -56,16 +55,11 @@
56
55
  "@next/eslint-plugin-next": "^15",
57
56
  "@next/mdx": "^15",
58
57
  "@react-pakistan/util-functions": "^1.24.57",
59
- "@storybook/addon-essentials": "^8",
60
- "@storybook/addon-interactions": "^8",
61
- "@storybook/addon-links": "^8",
62
- "@storybook/addon-onboarding": "^8",
63
- "@storybook/addon-themes": "^8",
64
- "@storybook/blocks": "^8",
65
- "@storybook/nextjs": "^8",
66
- "@storybook/react": "^8",
67
- "@storybook/test": "^8",
68
- "@storybook/types": "^8",
58
+ "@storybook/addon-docs": "^9",
59
+ "@storybook/addon-links": "^9",
60
+ "@storybook/addon-onboarding": "^9",
61
+ "@storybook/addon-themes": "^9",
62
+ "@storybook/nextjs": "^9",
69
63
  "@tailwindcss/cli": "^4",
70
64
  "@tailwindcss/forms": "^0.5.10",
71
65
  "@tailwindcss/postcss": "^4",
@@ -101,12 +95,13 @@
101
95
  "react": "^19",
102
96
  "react-dom": "^19",
103
97
  "rimraf": "^6",
104
- "storybook": "^8",
98
+ "storybook": "^9",
105
99
  "swiper": "^11",
106
100
  "tailwindcss": "^4",
107
101
  "ts-jest": "^29",
108
102
  "ts-node": "^10",
109
103
  "typescript": "^5",
104
+ "uuid": "^13",
110
105
  "zod": "^4"
111
106
  },
112
107
  "packageManager": "yarn@4.9.2"