@@ -396,7 +396,7 @@ export default function AddPolicyEngine() {
{/* Target Audience Card */}
-
+
@@ -439,7 +439,7 @@ export default function AddPolicyEngine() {
{/* Rule Engine Card */}
-
+
)}
@@ -498,7 +498,7 @@ export default function AddPolicyEngine() {
disabled={prevPriority === null}
className="flex-1 flex items-center justify-center h-full hover:bg-gray-50 text-gray-500 disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent"
>
-
+
{rule.priority}
@@ -508,7 +508,7 @@ export default function AddPolicyEngine() {
disabled={nextPriority === null}
className="flex-1 flex items-center justify-center h-full hover:bg-gray-50 text-gray-500 disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent"
>
-
+
);
@@ -564,7 +564,7 @@ export default function AddPolicyEngine() {
}
+ leftIcon={
}
onClick={() => handleAddCondition(rule.id)}
>
@@ -579,7 +579,7 @@ export default function AddPolicyEngine() {
onClick={() => handleDeleteCondition(rule.id, condition.id)}
className="w-11 h-11 flex items-center justify-center bg-red-50 text-[#D40000] rounded-[10px] hover:bg-red-100 transition-colors"
>
-
+
)}
@@ -630,7 +630,7 @@ export default function AddPolicyEngine() {
}
+ leftIcon={
}
onClick={() => handleAddAction(rule.id)}
>
@@ -645,7 +645,7 @@ export default function AddPolicyEngine() {
onClick={() => handleDeleteAction(rule.id, action.id)}
className="w-11 h-11 flex items-center justify-center bg-red-50 text-[#D40000] rounded-[10px] hover:bg-red-100 transition-colors"
>
-
+
)}
diff --git a/src/app/policyEngine/components/PolicyEngineList.tsx b/src/app/policyEngine/components/PolicyEngineList.tsx
index 3ec751c..df1ba72 100644
--- a/src/app/policyEngine/components/PolicyEngineList.tsx
+++ b/src/app/policyEngine/components/PolicyEngineList.tsx
@@ -1,5 +1,5 @@
import { useState, useEffect, useCallback } from 'react';
-import { Plus, Trash2, Search, Check, X, Pencil, Copy } from 'lucide-react';
+import { PlusIcon, TrashIcon, MagnifyingGlassIcon, XIcon, PencilSimpleIcon, CopyIcon, ChecksIcon } from '@phosphor-icons/react';
import { useNavigate } from 'react-router-dom';
import {
CustomTable,
@@ -183,7 +183,7 @@ export default function PolicyEngineList() {
{row.status !== 'Active' && (
}
+ icon={}
variant="success"
onClick={() => setDeactivateTarget(row)}
>
@@ -192,26 +192,26 @@ export default function PolicyEngineList() {
)}
{row.status === 'Active' && (
}
+ icon={}
onClick={() => setDeactivateTarget(row)}
>
Deactivate
)}
}
+ icon={}
onClick={() => console.log('Duplicate:', row.id)}
>
Duplicate
}
+ icon={}
onClick={() => console.log('Edit:', row.id)}
>
Edit
}
+ icon={}
variant="danger"
onClick={() => setDeleteTarget(row)}
>
@@ -255,7 +255,7 @@ export default function PolicyEngineList() {
placeholder="Search framework registry..."
value={search}
onChange={e => handleSearchChange(e.target.value)}
- leftIcon={}
+ leftIcon={}
className="!bg-[#F3F6F5] !rounded-[10px] !h-[38px] !border !border-[#E5E7EB]"
containerClassName="!gap-0"
/>
@@ -266,7 +266,7 @@ export default function PolicyEngineList() {
}
+ leftIcon={}
className="!rounded-[10px] !gap-[10px] !h-[40px] !bg-[#1E7D5C] hover:!bg-[#17664B]"
onClick={() => navigate('/policy-engine/add')}
>
diff --git a/src/components/custom/CustomAccordionSection.tsx b/src/components/custom/CustomAccordionSection.tsx
index 40d4095..7b2c876 100644
--- a/src/components/custom/CustomAccordionSection.tsx
+++ b/src/components/custom/CustomAccordionSection.tsx
@@ -1,5 +1,5 @@
import React from "react";
-import { CircleCheck } from "lucide-react";
+import { CheckCircleIcon } from "@phosphor-icons/react";
interface CustomAccordionSectionProps {
icon: React.ReactNode;
@@ -27,7 +27,7 @@ const CustomAccordionSection: React.FC = ({
>
{icon}
{title}
- {!isOpen && hasData && }
+ {!isOpen && hasData && }
{isOpen && {children}
}
diff --git a/src/components/custom/CustomActionMenu.tsx b/src/components/custom/CustomActionMenu.tsx
index b913c38..2e79886 100644
--- a/src/components/custom/CustomActionMenu.tsx
+++ b/src/components/custom/CustomActionMenu.tsx
@@ -1,6 +1,6 @@
import React, { useCallback, useEffect, useRef, useState, useLayoutEffect } from "react";
import { createPortal } from "react-dom";
-import { MoreVertical } from "lucide-react";
+import { DotsThreeVerticalIcon } from "@phosphor-icons/react";
interface CustomActionMenuProps {
children: React.ReactNode;
@@ -86,7 +86,7 @@ export const CustomActionMenu: React.FC
= ({
className={`flex h-8 w-8 items-center justify-center rounded-full transition-colors focus:outline-none ${isOpen ? 'bg-gray-100 text-black' : 'text-black hover:bg-gray-100'}`}
aria-label="Actions"
>
-
+
{isOpen &&
diff --git a/src/components/custom/CustomAlertBanner.tsx b/src/components/custom/CustomAlertBanner.tsx
index faddcad..7bb2be9 100644
--- a/src/components/custom/CustomAlertBanner.tsx
+++ b/src/components/custom/CustomAlertBanner.tsx
@@ -1,5 +1,5 @@
import { type FC, useEffect } from "react";
-import { AlertTriangle, CircleCheck, Info, XCircle, X } from 'lucide-react';
+import { WarningIcon, CheckCircleIcon, InfoIcon, XCircleIcon, XIcon } from '@phosphor-icons/react';
type AlertType = 'error' | 'success' | 'warning' | 'info';
@@ -13,19 +13,19 @@ interface AlertBannerProps {
const alertConfig = {
error: {
- icon: ,
+ icon: ,
containerClasses: 'bg-red-50 border-red-500 text-red-800',
},
success: {
- icon: ,
+ icon: ,
containerClasses: 'bg-green-50 border-green-500 text-green-800',
},
warning: {
- icon: ,
+ icon: ,
containerClasses: 'bg-yellow-50 border-yellow-500 text-yellow-800',
},
info: {
- icon: ,
+ icon: ,
containerClasses: 'bg-blue-50 border-blue-500 text-blue-800',
},
};
@@ -75,7 +75,7 @@ const AlertBanner: FC = ({
className="ml-4 p-1 rounded-full hover:bg-black/5 transition-colors focus:outline-none"
aria-label="Close alert"
>
-
+
)}
diff --git a/src/components/custom/CustomAppLoader.tsx b/src/components/custom/CustomAppLoader.tsx
index 34ec1ba..943b60a 100644
--- a/src/components/custom/CustomAppLoader.tsx
+++ b/src/components/custom/CustomAppLoader.tsx
@@ -1,14 +1,14 @@
import { useState, useEffect } from "react";
-import { Users, Briefcase, Building2 } from "lucide-react";
+import { UsersIcon, BriefcaseIcon, BuildingsIcon } from "@phosphor-icons/react";
const CustomAppLoader = () => {
const [currentIndex, setCurrentIndex] = useState(0);
// HRM related icons
const icons = [
- { component: Users, key: "users" },
- { component: Briefcase, key: "briefcase" },
- { component: Building2, key: "building" },
+ { component: UsersIcon, key: "users" },
+ { component: BriefcaseIcon, key: "briefcase" },
+ { component: BuildingsIcon, key: "building" },
];
useEffect(() => {
diff --git a/src/components/custom/CustomBackButton.tsx b/src/components/custom/CustomBackButton.tsx
index b6c3640..1b6a001 100644
--- a/src/components/custom/CustomBackButton.tsx
+++ b/src/components/custom/CustomBackButton.tsx
@@ -1,6 +1,6 @@
import React from "react";
import { Link, useNavigate } from "react-router-dom";
-import { MoveLeft } from "lucide-react";
+import { ArrowLeftIcon } from "@phosphor-icons/react";
interface CustomBackButtonProps {
to?: string;
@@ -29,7 +29,7 @@ const CustomBackButton: React.FC
= ({
className={`group relative inline-flex items-center gap-2 text-gray-500 hover:text-gray-900 transition-colors cursor-pointer ${className}`}
>
{label && {label}}
diff --git a/src/components/custom/CustomCheckBox.tsx b/src/components/custom/CustomCheckBox.tsx
index b5d1cf1..963e20c 100644
--- a/src/components/custom/CustomCheckBox.tsx
+++ b/src/components/custom/CustomCheckBox.tsx
@@ -1,5 +1,5 @@
import React, { forwardRef } from "react";
-import { Check } from "lucide-react";
+import { CheckIcon } from "@phosphor-icons/react";
interface CustomCheckBoxProps
extends Omit, "type"> {
@@ -37,7 +37,7 @@ const CustomCheckBox = forwardRef(
peer-disabled:bg-gray-100 peer-disabled:border-gray-200
`}
>
- = ({
variant === 'success' ? 'bg-emerald-50 text-emerald-600' :
'bg-blue-50 text-blue-600'
}`}>
- {variant === 'success' ? : }
+ {variant === 'success' ? : }
diff --git a/src/components/custom/CustomDatePicker.tsx b/src/components/custom/CustomDatePicker.tsx
index 9713511..42a218e 100644
--- a/src/components/custom/CustomDatePicker.tsx
+++ b/src/components/custom/CustomDatePicker.tsx
@@ -1,5 +1,5 @@
import React, { forwardRef } from "react";
-import { Calendar } from "lucide-react";
+import { CalendarBlankIcon } from "@phosphor-icons/react";
interface CustomDatePickerProps
extends Omit, "type"> {
@@ -42,7 +42,7 @@ const CustomDatePicker = forwardRef(
{...props}
/>
-
+