@appcorp/kismaa-web-ui 0.1.76 → 0.1.77

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.
@@ -5,21 +5,20 @@ 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
9
  var react_1 = __importDefault(require("react"));
10
+ var image_1 = __importDefault(require("next/image"));
9
11
  var active_icon_1 = require("../../atoms/active-icon");
10
12
  var button_1 = require("../button");
11
13
  var typography_1 = require("../typography");
12
14
  var badge_1 = require("../badge");
13
15
  var type_1 = require("../badge/type");
14
16
  var ratings_1 = require("../ratings");
15
- var image_1 = __importDefault(require("next/image"));
16
- var kismaa_utils_1 = require("@appcorp/kismaa-utils");
17
- var util_functions_1 = require("@react-pakistan/util-functions");
18
17
  var UserCard = function (_a) {
19
18
  var badges = _a.badges, description = _a.description, handleButtonClick = _a.handleButtonClick, handleCardClick = _a.handleCardClick, id = _a.id, imageAlt = _a.imageAlt, imageSrc = _a.imageSrc, isHovered = _a.isHovered, name = _a.name, onlineStatus = _a.onlineStatus, originalPrice = _a.originalPrice, price = _a.price, rating = _a.rating, setIsHovered = _a.setIsHovered, username = _a.username;
20
19
  return (react_1.default.createElement("div", { className: "w-full overflow-hidden rounded-xl shadow-[0px_5px_16px_0px_#0000001A] hover:cursor-pointer lg:max-w-[415px]", onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, onClick: function (e) {
21
20
  e.stopPropagation();
22
- handleCardClick("".concat(id).concat(util_functions_1.VALUE_DELIMITER.COLON).concat(username));
21
+ handleCardClick(username);
23
22
  } },
24
23
  react_1.default.createElement("div", { className: "relative overflow-hidden rounded-xl" },
25
24
  react_1.default.createElement("div", { className: "absolute top-4 right-4 z-10" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/kismaa-web-ui",
3
- "version": "0.1.76",
3
+ "version": "0.1.77",
4
4
  "source": "src/index.ts",
5
5
  "main": "lib/main.js",
6
6
  "module": "lib/module.js",