@appcorp/kismaa-web-ui 0.3.3 → 0.3.5
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.
|
@@ -2,7 +2,7 @@ import { KismaaLogo } from '../../atoms/kismaa-logo';
|
|
|
2
2
|
import { Typography, TYPOGRAPHY_VARIANTS } from '../../molecules';
|
|
3
3
|
import React, { useMemo } from 'react';
|
|
4
4
|
import Link from 'next/link';
|
|
5
|
-
import Image from 'next/image';
|
|
5
|
+
// import Image from 'next/image';
|
|
6
6
|
export var Footer = function (_a) {
|
|
7
7
|
var _b = _a.logoClassName, logoClassName = _b === void 0 ? 'h-24 w-28' : _b, description = _a.description, socialLinks = _a.socialLinks, quickLinks = _a.quickLinks;
|
|
8
8
|
var halfLength = Math.ceil(quickLinks.length / 2);
|
|
@@ -54,14 +54,5 @@ export var Footer = function (_a) {
|
|
|
54
54
|
return (React.createElement(Link, { key: index, href: href, className: "cursor-pointer" },
|
|
55
55
|
React.createElement(Typography, { variant: TYPOGRAPHY_VARIANTS.SUBH4 }, label)));
|
|
56
56
|
})))),
|
|
57
|
-
React.createElement("div", { className: "block h-full w-fit" }
|
|
58
|
-
React.createElement("div", { className: "text-neutral-800" },
|
|
59
|
-
React.createElement(Typography, { variant: TYPOGRAPHY_VARIANTS.H5 }, "Payment Solutions")),
|
|
60
|
-
React.createElement("div", { className: "mt-6 flex flex-wrap items-start gap-2" },
|
|
61
|
-
React.createElement("table", { className: "w-full" },
|
|
62
|
-
React.createElement("tbody", null,
|
|
63
|
-
React.createElement("tr", null,
|
|
64
|
-
React.createElement("td", null,
|
|
65
|
-
React.createElement("div", { className: "relative h-32 w-full" },
|
|
66
|
-
React.createElement(Image, { alt: "PayPal Acceptance Mark", className: "object-contain object-top", fill: true, height: 0, sizes: "20vw", src: "https://ccxavhjpwqlubqxzrdqp.supabase.co/storage/v1/object/public/publicBlob/assets/paypal-solutions.png", width: 0 })))))))))))));
|
|
57
|
+
React.createElement("div", { className: "block h-full w-fit" }))))));
|
|
67
58
|
};
|
|
@@ -21,9 +21,9 @@ export var SectionHeader = function (_a) {
|
|
|
21
21
|
renderCtaButton && (React.createElement("div", { className: "flex w-full justify-start lg:w-[50%] lg:justify-end" },
|
|
22
22
|
React.createElement("div", { className: "relative w-fit" },
|
|
23
23
|
React.createElement(Button, { handleOnClick: handleButtonClick, iconSuffix: btnIcon, label: btnText, outlined: btnOutlined, size: BUTTON_SIZES.MD, type: btnType }),
|
|
24
|
-
numberOfFilters && handleOnClearFilters
|
|
24
|
+
numberOfFilters && handleOnClearFilters ? (React.createElement("button", { onClick: handleOnClearFilters },
|
|
25
25
|
React.createElement("div", { className: "absolute -top-4 -left-4" },
|
|
26
|
-
React.createElement(VistaBadgeV1, { label: "X", type: VISTA_BADGE_TYPE.INFO })))),
|
|
27
|
-
numberOfFilters
|
|
28
|
-
React.createElement(VistaBadgeV1, { label: String(numberOfFilters), type: VISTA_BADGE_TYPE.INFO })))))))));
|
|
26
|
+
React.createElement(VistaBadgeV1, { label: "X", type: VISTA_BADGE_TYPE.INFO })))) : null,
|
|
27
|
+
numberOfFilters ? (React.createElement("div", { className: "absolute -top-4 -right-4" },
|
|
28
|
+
React.createElement(VistaBadgeV1, { label: String(numberOfFilters), type: VISTA_BADGE_TYPE.INFO }))) : null))))));
|
|
29
29
|
};
|
|
@@ -32,8 +32,9 @@ export var UserCardsGrid = function (_a) {
|
|
|
32
32
|
React.createElement("div", { className: "grid gap-10 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3" }, Array.from({ length: cardsLimit }).map(function (_, index) { return (React.createElement(UserCardShimmer, { key: index })); }))));
|
|
33
33
|
return (React.createElement("div", { className: "mt-10" },
|
|
34
34
|
React.createElement("div", { className: "grid gap-10 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3" },
|
|
35
|
-
(filteredCardItems === null || filteredCardItems === void 0 ? void 0 : filteredCardItems.length) === 0 && (React.createElement("div", { className: "col-span-full flex flex-col items-center justify-center py-10" },
|
|
35
|
+
!loading && (filteredCardItems === null || filteredCardItems === void 0 ? void 0 : filteredCardItems.length) === 0 && (React.createElement("div", { className: "col-span-full flex flex-col items-center justify-center py-10" },
|
|
36
36
|
React.createElement("p", { className: "mt-4 text-lg font-medium text-gray-600" }, "No users found - Try again"))),
|
|
37
|
-
|
|
37
|
+
!loading &&
|
|
38
|
+
filteredCardItems.length > 0 &&
|
|
38
39
|
(filteredCardItems === null || filteredCardItems === void 0 ? void 0 : filteredCardItems.map(function (userData) { return (React.createElement(UserCard, __assign({ key: userData.id }, userData))); })))));
|
|
39
40
|
};
|