@appcorp/kismaa-web-ui 0.1.75 → 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.
@@ -8,7 +8,7 @@ var react_1 = __importDefault(require("react"));
8
8
  var app_store_icon_1 = require("../../atoms/app-store-icon");
9
9
  var AppStoreButton = function (_a) {
10
10
  var handleOnClick = _a.handleOnClick;
11
- return (react_1.default.createElement("button", { onClick: handleOnClick, className: "h-fit rounded-sm bg-slate-800 bg-opacity-95 px-4 py-2 transition-all duration-300 ease-in-out hover:scale-105 lg:px-7 lg:py-3" },
11
+ return (react_1.default.createElement("button", { onClick: handleOnClick, className: "bg-opacity-95 h-fit cursor-pointer rounded-sm bg-slate-800 px-4 py-2 transition-all duration-300 ease-in-out hover:scale-105 lg:px-7 lg:py-3" },
12
12
  react_1.default.createElement(app_store_icon_1.AppStoreIcon, null)));
13
13
  };
14
14
  exports.AppStoreButton = AppStoreButton;
@@ -50,7 +50,7 @@ var sizeMap = (_d = {},
50
50
  var Button = function (_a) {
51
51
  var _b = _a.disabled, disabled = _b === void 0 ? false : _b, handleOnClick = _a.handleOnClick, iconPrefix = _a.iconPrefix, iconSuffix = _a.iconSuffix, label = _a.label, _c = _a.outlined, outlined = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? type_1.BUTTON_SIZES.MD : _d, type = _a.type;
52
52
  var disabledStyles = 'opacity-50 cursor-not-allowed';
53
- var buttonClasses = "flex items-center justify-center gap-2 rounded-md w-[100%] ".concat(outlined ? outlinedColorMap[type] : colorMap[type], " ").concat(disabled || type === type_1.BUTTON_TYPES.LOADING
53
+ var buttonClasses = "flex items-center justify-center gap-2 rounded-md w-[100%] cursor-pointer ".concat(outlined ? outlinedColorMap[type] : colorMap[type], " ").concat(disabled || type === type_1.BUTTON_TYPES.LOADING
54
54
  ? disabledStyles
55
55
  : type === type_1.BUTTON_TYPES.SUCCESS || type === type_1.BUTTON_TYPES.ERROR
56
56
  ? ''
@@ -8,7 +8,7 @@ var react_1 = __importDefault(require("react"));
8
8
  var google_play_icon_1 = require("../../atoms/google-play-icon");
9
9
  var PlayStoreButton = function (_a) {
10
10
  var handleOnClick = _a.handleOnClick;
11
- return (react_1.default.createElement("button", { onClick: handleOnClick, className: "h-fit rounded-sm bg-slate-800 bg-opacity-95 px-4 py-2 transition-all duration-300 ease-in-out hover:scale-105 lg:px-7 lg:py-3" },
11
+ return (react_1.default.createElement("button", { onClick: handleOnClick, className: "bg-opacity-95 h-fit cursor-pointer rounded-sm bg-slate-800 px-4 py-2 transition-all duration-300 ease-in-out hover:scale-105 lg:px-7 lg:py-3" },
12
12
  react_1.default.createElement(google_play_icon_1.GooglePlayIcon, null)));
13
13
  };
14
14
  exports.PlayStoreButton = PlayStoreButton;
@@ -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" },
@@ -76,9 +76,9 @@ var CustomerReviews = function (_a) {
76
76
  return (react_1.default.createElement(review_card_1.ReviewCard, __assign({ isActive: isActive }, review)));
77
77
  })); })),
78
78
  react_1.default.createElement("div", { className: "mt-8 flex justify-center gap-5" },
79
- react_1.default.createElement("button", { className: "rounded-lg bg-purple-400/75 p-5 text-white transition-all duration-300 ease-in-out hover:scale-105", onClick: handlePrev },
79
+ react_1.default.createElement("button", { className: "cursor-pointer rounded-lg bg-purple-400/75 p-5 text-white transition-all duration-300 ease-in-out hover:scale-105", onClick: handlePrev },
80
80
  react_1.default.createElement(arrow_left_icon_1.ArrowLeftIcon, { className: "h-4 w-4", fill: "white" })),
81
- react_1.default.createElement("button", { className: "rounded-lg bg-purple-400/75 p-5 text-white transition-all duration-300 ease-in-out hover:scale-105", onClick: handleNext },
81
+ react_1.default.createElement("button", { className: "cursor-pointer rounded-lg bg-purple-400/75 p-5 text-white transition-all duration-300 ease-in-out hover:scale-105", onClick: handleNext },
82
82
  react_1.default.createElement(arrow_right_icon_1.ArrowRightIcon, { className: "h-4 w-4", fill: "white" })))))));
83
83
  };
84
84
  exports.CustomerReviews = CustomerReviews;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/kismaa-web-ui",
3
- "version": "0.1.75",
3
+ "version": "0.1.77",
4
4
  "source": "src/index.ts",
5
5
  "main": "lib/main.js",
6
6
  "module": "lib/module.js",