@bikiran/utils 2.1.5 → 2.1.7

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.
@@ -27,7 +27,7 @@ const ServicesPopup = ({ auth, apps = [], setShow, ref, applicationData, LinkCom
27
27
  ? apps.filter((a) => a.status !== "inactive")
28
28
  : (applicationData === null || applicationData === void 0 ? void 0 : applicationData.filter((a) => a.status !== "inactive")) || [];
29
29
  const staticAppLogo = ((_a = auth === null || auth === void 0 ? void 0 : auth.currentUser) === null || _a === void 0 ? void 0 : _a.photoUrl) || "";
30
- return (_jsx("div", { className: style.popupContainer, children: _jsxs("div", { children: [_jsx("div", { className: "flex items-center justify-end sm:hidden", children: _jsx(ButtonClose, { onClick: (ev) => {
30
+ return (_jsx("div", { className: style.popupContainer, children: _jsxs("div", { className: style.popupWrapper, children: [_jsx("div", { className: "flex items-center justify-end sm:hidden", children: _jsx(ButtonClose, { onClick: (ev) => {
31
31
  ev.stopPropagation();
32
32
  ev.preventDefault();
33
33
  setShow(false);
@@ -2,6 +2,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { serviceIcons } from "../icons/Icons";
3
3
  import style from "../style/Service.module.css";
4
4
  const ServiceApp = ({ app, LinkComponent, ImageComponent }) => {
5
- return (_jsx("div", { className: " relative flex justify-end", children: _jsxs(LinkComponent, { href: app.website, referrerPolicy: "no-referrer", target: "_blank", className: style.serviceItem, children: [_jsx("div", { children: _jsx(ImageComponent, { src: (app === null || app === void 0 ? void 0 : app.logo) || serviceIcons.iconDefault, alt: app === null || app === void 0 ? void 0 : app.name, width: 50, height: 50, priority: true, className: "w-full h-full object-contain" }) }), _jsx("p", { children: app === null || app === void 0 ? void 0 : app.name })] }) }));
5
+ return (_jsx("div", { className: " relative flex justify-end", children: _jsxs(LinkComponent, { href: app.website, referrerPolicy: "no-referrer", target: "_blank", className: style.serviceItem, children: [_jsx("div", { className: style.serviceLogo, children: _jsx(ImageComponent, { src: (app === null || app === void 0 ? void 0 : app.logo) || serviceIcons.iconDefault, alt: app === null || app === void 0 ? void 0 : app.name, width: 50, height: 50, priority: true, className: "w-full h-full object-contain" }) }), _jsx("p", { className: style.serviceName, children: app === null || app === void 0 ? void 0 : app.name })] }) }));
6
6
  };
7
7
  export default ServiceApp;
@@ -1,27 +1,26 @@
1
- .popupContainer{
2
- @apply sm:absolute fixed sm:top-11 top-0 sm:-right-8 -right-0 z-[999] p-2.5 pr-1 bg-[#F7F3F8] shadow-[0px_0px_30px_0px_rgba(19,15,64,0.20)] sm:rounded-30 w-screen sm:w-98 h-screen sm:h-[520px] overflow-hidden
1
+ .popupContainer {
2
+ @apply sm:absolute fixed sm:top-11 top-0 sm:-right-8 -right-0 z-[999] p-2.5 pr-1 bg-[#F7F3F8] shadow-[0px_0px_30px_0px_rgba(19,15,64,0.20)] sm:rounded-30 w-screen sm:w-98 h-screen sm:h-[520px] overflow-hidden;
3
3
  }
4
- .popupContainer > div {
5
- @apply "h-full bg-white rounded-[22px] p-[23px] pt-3 overflow-y-scroll custom-scrollbar cursor-default"
4
+ .popupWrapper {
5
+ @apply h-full bg-white rounded-[22px] p-[23px] pt-3 overflow-y-scroll custom-scrollbar cursor-default;
6
6
  }
7
7
 
8
- .popupContainer .closeBtn {
9
- @apply size-[32px] bg-[rgba(245,3,3,0.10)] rounded-full p-2 ml-3
8
+ .closeBtn {
9
+ @apply size-[32px] bg-[rgba(245,3,3,0.10)] rounded-full p-2 ml-3;
10
10
  }
11
11
 
12
-
13
12
  .serviceListContainer {
14
- @apply grid grid-cols-3 gap-3 sm:mt-0 mt-5
13
+ @apply grid grid-cols-3 gap-3 sm:mt-0 mt-5;
15
14
  }
16
15
 
17
- .serviceListContainer .serviceItem{
18
- @apply w-full h-[100px] border border-primary-100 bg-white rounded-[18px] px-4 pt-[8px] overflow-hidden flex flex-col justify-center items-center cursor-pointer
16
+ .serviceItem {
17
+ @apply w-full h-[100px] border border-primary-100 bg-white rounded-[18px] px-4 pt-[8px] overflow-hidden flex flex-col justify-center items-center cursor-pointer;
19
18
  }
20
19
 
21
- .serviceListContainer .serviceItem > div {
22
- @apply size-[35px] sm:size-[50px] mb-[6px]
20
+ .serviceLogo {
21
+ @apply size-[35px] sm:size-[50px] mb-[6px];
23
22
  }
24
23
 
25
- .serviceListContainer .serviceItem p {
26
- @apply text-primary-700 text-xs font-medium whitespace-nowrap overflow-hidden text-ellipsis
27
- }
24
+ .serviceName {
25
+ @apply text-primary-700 text-xs font-medium whitespace-nowrap overflow-hidden text-ellipsis;
26
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikiran/utils",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [