@viswa-test/creative-workspace-ui-component 0.0.29 → 0.0.30
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.
- package/dist/cjs/components/AssignReminders/components/ReviewStatus.js +1 -1
- package/dist/components/AssignReminders/components/ReviewStatus.js +1 -1
- package/dist/types/components/AssignReminders/components/ReviewStatus.d.ts.map +1 -1
- package/dist/types/components/AssignReminders/types/types.d.ts +22 -2
- package/dist/types/components/AssignReminders/types/types.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),l=require("../styles/ReviewStatusStyles.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=r(i),a=function(e){var s=e.trim().split(/\s+/);return 1===s.length?s[0].slice(0,2).toUpperCase():(s[0][0]+s[s.length-1][0]).toUpperCase()},o=function(e){for(var s=[{bg:"#FEF9C3",fg:"#854D0E"},{bg:"#DCFCE7",fg:"#166534"},{bg:"#DBEAFE",fg:"#1E40AF"},{bg:"#F3E8FF",fg:"#6B21A8"},{bg:"#FFE4E6",fg:"#9F1239"},{bg:"#FEE2E2",fg:"#991B1B"},{bg:"#E0F2FE",fg:"#0369A1"}],i=0,n=0;n<e.length;n++)i=e.charCodeAt(n)+((i<<5)-i);return s[Math.abs(i)%s.length]};function d(i){var l=i.reviewLevel,r=l.level,t=l.assigneeStatuses,a=l.extendedStatus,o="approved"===a,d={approved:{bg:"#ECFDF5",color:"#059669",icon:s.jsx(n.Check,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:s.jsx(n.Hourglass,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"}}[a],g=o?"1px solid #D1FAE5":"1px solid #E5E7EB",x=o?"#F0FDF4":"#F8FAFC";return s.jsxs("div",e.__assign({style:{backgroundColor:"#FFFFFF",border:g,borderRadius:"8px",display:"flex",flexDirection:"column",overflow:"hidden"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:x,borderBottom:g,padding:"12px 16px"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[s.jsx(c,{name:r.headerName}),s.jsx("span",e.__assign({style:{fontSize:15,fontWeight:500,color:"#374151"}},{children:r.title}))]})),s.jsxs("div",e.__assign({style:{backgroundColor:d.bg,color:d.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[d.icon,d.text]}))]})),s.jsx("div",e.__assign({style:{padding:"16px"}},{children:t.length>0?s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:16}},{children:t.map(function(e,i){var n;return s.jsx(p,{assigneeStatus:e,extendedStatus:a},null!==(n=e.user.id)&&void 0!==n?n:i)})})):s.jsx("div",e.__assign({style:{fontSize:14,color:"#6B7280"}},{children:"No assignees added yet"}))}))]}))}function g(i){var l,r,t,d=i.reviewLevel,g=d.assigneeStatuses,p=d.extendedStatus,c={approved:{bg:"#ECFDF5",color:"#059669",icon:s.jsx(n.Check,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:s.jsx(n.Hourglass,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"}}[p],x=null===(l=g[0])||void 0===l?void 0:l.user;return s.jsxs("div",e.__assign({style:{backgroundColor:"#FFFFFF",border:"1px solid #E5E7EB",borderRadius:"8px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[x?s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[s.jsx("div",e.__assign({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:o(null!==(r=x.id)&&void 0!==r?r:x.name).bg,color:o(null!==(t=x.id)&&void 0!==t?t:x.name).fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"14px"}},{children:a(x.name)})),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column"}},{children:[s.jsx("span",e.__assign({style:{fontSize:"15px",fontWeight:400,color:"#374151"}},{children:x.name})),s.jsx("span",e.__assign({style:{fontSize:"13px",color:"#6B7280"}},{children:"Will be notified after all levels approve"}))]}))]})):s.jsx("span",e.__assign({style:{fontSize:14,color:"#6B7280"}},{children:"No owner assigned"})),s.jsxs("div",e.__assign({style:{backgroundColor:c.bg,color:c.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[c.icon,c.text]}))]}))}function p(i){var l,r=i.assigneeStatus,t=i.extendedStatus,d=r.user,g=a(d.name),p=o(null!==(l=d.id)&&void 0!==l?l:d.name);return s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[s.jsx("div",e.__assign({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:p.bg,color:p.fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,fontSize:"13px"}},{children:g})),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"2px"}},{children:[s.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:400,color:"#374151"}},{children:d.name})),s.jsx("span",e.__assign({style:{fontSize:"13px",color:"#6B7280"}},{children:d.email}))]}))]})),s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:["pending"===t&&s.jsxs(s.Fragment,{children:[s.jsx("span",e.__assign({style:{fontSize:"13px",color:"#4B5563"}},{children:"Notified 1h ago"})),s.jsx(n.MinusCircle,{size:20,color:"#9CA3AF",strokeWidth:1.5})]}),"approved"===t&&s.jsx(n.CircleCheck,{size:20,color:"#16A34A",strokeWidth:1.5})]}))]}))}function c(i){var n=i.name,l=o(n);return s.jsx("span",e.__assign({style:{backgroundColor:l.bg,color:l.fg,borderRadius:12,padding:"3px 10px",fontSize:12,fontWeight:500}},{children:n}))}var x=function(e){switch(e){case 0:return s.jsx(n.LucidePen,{size:16,color:"#475569"});case 1:return s.jsx(n.FileCheck,{size:16,color:"#475569"});case 2:return s.jsx(n.User,{size:16,color:"#475569"});default:return s.jsx(n.CheckCircle,{size:16,color:"#475569"})}};function _(i){var r=i.levels,a=r.some(function(e){var s,i;return(null!==(i=null===(s=e.assignees)||void 0===s?void 0:s.length)&&void 0!==i?i:0)>0});return s.jsxs("div",e.__assign({style:l.DEFAULT_REVIEW_STATUS_STYLES.flowBox},{children:[s.jsx("span",e.__assign({style:l.DEFAULT_REVIEW_STATUS_STYLES.flowTitle},{children:"Current Approval Flow"})),a?s.jsx("div",e.__assign({style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center",marginTop:6}},{children:r.map(function(i,a){var o,d=i.isHidden,g=null===(o=i.assignees)||void 0===o?void 0:o.map(function(e){return e.name}).join(" / ");if(!g)return null;var p=d?s.jsx(n.User,{size:16,color:"#475569"}):x(a);return s.jsxs(t.default.Fragment,{children:[s.jsxs("span",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_REVIEW_STATUS_STYLES.flowChip),{display:"flex",alignItems:"center",gap:"6px"})},{children:[p,s.jsx("span",e.__assign({style:{fontSize:13,color:"#374151"}},{children:g}))]})),a<r.length-1&&s.jsx(n.ArrowRight,{size:16,color:"#9CA3AF"})]},a)})})):s.jsx("p",e.__assign({style:l.DEFAULT_REVIEW_STATUS_STYLES.flowEmpty},{children:"No owners assigned yet."}))]}))}exports.default=function(i){var r=i.levels,a=i.reviewData,o=void 0===a?{}:a,p=r.map(function(e,s){var i,n,l=null!==(i=o[s])&&void 0!==i?i:{},r=(null!==(n=e.assignees)&&void 0!==n?n:[]).map(function(e){var s;return{user:e,approved:null!==(s=l[String(e.id)])&&void 0!==s&&s}}),t=r.length>0&&r.every(function(e){return e.approved});return{level:e,assigneeStatuses:r,status:t?"approved":"not_started"}}),c=!1,x=p.map(function(s){var i="waiting";"approved"===s.status?i="approved":c||(i="pending",c=!0);var n=!0===s.level.isHidden;return e.__assign(e.__assign({},s),{extendedStatus:i,isFinalApproval:n})}),u=function(e){return e.filter(function(e){return"approved"===e.status}).length}(p),f=p.length;return s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:24}},{children:[s.jsxs("div",{children:[s.jsxs("div",e.__assign({style:l.DEFAULT_REVIEW_STATUS_STYLES.progressHeader},{children:[s.jsx("span",e.__assign({style:l.DEFAULT_REVIEW_STATUS_STYLES.progressTitle},{children:"Approval Progress"})),s.jsxs("span",e.__assign({style:l.DEFAULT_REVIEW_STATUS_STYLES.progressCount},{children:[u," of ",f," level",1!==f?"s":""," complete"]}))]})),s.jsx("div",e.__assign({style:l.DEFAULT_REVIEW_STATUS_STYLES.progressBarTrack},{children:p.map(function(i,n){var r="approved"===i.status,t=0===n,a=n===f-1;return s.jsx("div",{style:e.__assign(e.__assign({},l.DEFAULT_REVIEW_STATUS_STYLES.progressSegment),{backgroundColor:r?"#6366F1":"#E5E7EB",borderRadius:t&&a?"999px":t?"999px 0 0 999px":a?"0 999px 999px 0":"0",marginRight:a?0:3})},n)})})),s.jsx("div",e.__assign({style:l.DEFAULT_REVIEW_STATUS_STYLES.progressLabels},{children:p.map(function(i,n){return s.jsxs("span",e.__assign({style:e.__assign(e.__assign({},l.DEFAULT_REVIEW_STATUS_STYLES.progressLabel),{color:"approved"===i.status?"#6366F1":"#9CA3AF",fontWeight:"approved"===i.status?600:400})},{children:[i.level.headerName," - ",i.level.title]}),n)})}))]}),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:0}},{children:[s.jsx("div",e.__assign({style:l.DEFAULT_REVIEW_STATUS_STYLES.sectionHeadingRow},{children:s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[s.jsx("span",e.__assign({style:l.DEFAULT_REVIEW_STATUS_STYLES.sectionTitle},{children:"Approval Levels"})),s.jsx(n.Info,{size:15,color:"#9CA3AF"})]}))})),s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",marginTop:12}},{children:x.map(function(i,n){var l,r=n===x.length-1,a=i.isFinalApproval,o=null===(l=x[n+1])||void 0===l?void 0:l.isFinalApproval;return a?s.jsxs(t.default.Fragment,{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",margin:"16px 0"}},{children:[s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),s.jsx("span",e.__assign({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:"then"})),s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]})),s.jsx("div",e.__assign({style:{marginBottom:"12px",fontSize:"15px",fontWeight:500,color:"#6B7280"}},{children:"Final Approval"})),s.jsx(g,{reviewLevel:i})]},n):s.jsxs(t.default.Fragment,{children:[s.jsx(d,{reviewLevel:i}),!r&&!o&&s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",margin:"20px 0"}},{children:[s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),s.jsx("span",e.__assign({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:"then"})),s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]}))]},n)})}))]})),s.jsx(_,{levels:r})]}))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),t=require("../styles/ReviewStatusStyles.js");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(i),o=function(e){var s=e.trim().split(/\s+/);return 1===s.length?s[0].slice(0,2).toUpperCase():(s[0][0]+s[s.length-1][0]).toUpperCase()},a=function(e){for(var s=[{bg:"#FEF9C3",fg:"#854D0E"},{bg:"#DCFCE7",fg:"#166534"},{bg:"#DBEAFE",fg:"#1E40AF"},{bg:"#F3E8FF",fg:"#6B21A8"},{bg:"#FFE4E6",fg:"#9F1239"},{bg:"#FEE2E2",fg:"#991B1B"},{bg:"#E0F2FE",fg:"#0369A1"}],i=0,n=0;n<e.length;n++)i=e.charCodeAt(n)+((i<<5)-i);return s[Math.abs(i)%s.length]};function d(i){var t=i.reviewLevel,r=t.level,l=t.assigneeStatuses,o=t.extendedStatus,a={approved:{bg:"#ECFDF5",color:"#059669",icon:s.jsx(n.Check,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:s.jsx(n.Hourglass,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:s.jsx(n.X,{size:14}),text:"Rejected"}}[o]||{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},d="approved"===o?"1px solid #D1FAE5":"rejected"===o?"1px solid #FCA5A5":"1px solid #E5E7EB",c="approved"===o?"#F0FDF4":"rejected"===o?"#FEF2F2":"#F8FAFC";return s.jsxs("div",e.__assign({style:{backgroundColor:"#FFFFFF",border:d,borderRadius:"8px",display:"flex",flexDirection:"column",overflow:"hidden"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:c,borderBottom:d,padding:"12px 16px"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:10}},{children:[s.jsx(p,{name:r.headerName}),s.jsx("span",e.__assign({style:{fontSize:15,fontWeight:500,color:"#374151"}},{children:r.title}))]})),s.jsxs("div",e.__assign({style:{backgroundColor:a.bg,color:a.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[a.icon,a.text]}))]})),s.jsx("div",e.__assign({style:{padding:"16px"}},{children:l.length>0?s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:16}},{children:l.map(function(e,i){var n;return s.jsx(g,{assigneeStatus:e,extendedStatus:o},null!==(n=e.user.id)&&void 0!==n?n:i)})})):s.jsx("div",e.__assign({style:{fontSize:14,color:"#6B7280"}},{children:"No assignees added yet"}))}))]}))}function c(i){var t,r,l,d=i.reviewLevel,c=d.assigneeStatuses,g=d.extendedStatus,p={approved:{bg:"#ECFDF5",color:"#059669",icon:s.jsx(n.Check,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:s.jsx(n.Hourglass,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:s.jsx(n.X,{size:14}),text:"Rejected"}}[g]||{bg:"#F3F4F6",color:"#4B5563",icon:s.jsx(n.Hourglass,{size:14}),text:"Waiting"},x=null===(t=c[0])||void 0===t?void 0:t.user;return s.jsxs("div",e.__assign({style:{backgroundColor:"#FFFFFF",border:"1px solid #E5E7EB",borderRadius:"8px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[x?s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[s.jsx("div",e.__assign({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:a(null!==(r=x.id)&&void 0!==r?r:x.name).bg,color:a(null!==(l=x.id)&&void 0!==l?l:x.name).fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"14px"}},{children:o(x.name)})),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column"}},{children:[s.jsx("span",e.__assign({style:{fontSize:"15px",fontWeight:400,color:"#374151"}},{children:x.name})),s.jsx("span",e.__assign({style:{fontSize:"13px",color:"#6B7280"}},{children:"Will be notified after all levels approve"}))]}))]})):s.jsx("span",e.__assign({style:{fontSize:14,color:"#6B7280"}},{children:"No owner assigned"})),s.jsxs("div",e.__assign({style:{backgroundColor:p.bg,color:p.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[p.icon,p.text]}))]}))}function g(i){var t,r=i.assigneeStatus,l=i.extendedStatus,d=r,c=d.user,g=d.approved,p=d.rejected,x=o(c.name),_=a(null!==(t=c.id)&&void 0!==t?t:c.name);return s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[s.jsx("div",e.__assign({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:_.bg,color:_.fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,fontSize:"13px"}},{children:x})),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:"2px"}},{children:[s.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:400,color:"#374151"}},{children:c.name})),s.jsx("span",e.__assign({style:{fontSize:"13px",color:"#6B7280"}},{children:c.email}))]}))]})),s.jsx("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:g||"approved"===c.action?s.jsx(n.CircleCheck,{size:20,color:"#16A34A",strokeWidth:1.5}):p||"rejected"===c.action?s.jsx(n.X,{size:20,color:"#DC2626",strokeWidth:1.5}):"pending"===l?s.jsxs(s.Fragment,{children:[s.jsx("span",e.__assign({style:{fontSize:"13px",color:"#4B5563"}},{children:"Notified 1h ago"})),s.jsx(n.MinusCircle,{size:20,color:"#9CA3AF",strokeWidth:1.5})]}):s.jsx(n.MinusCircle,{size:20,color:"#9CA3AF",strokeWidth:1.5})}))]}))}function p(i){var n=i.name,t=a(n);return s.jsx("span",e.__assign({style:{backgroundColor:t.bg,color:t.fg,borderRadius:12,padding:"3px 10px",fontSize:12,fontWeight:500}},{children:n}))}var x=function(e){switch(e){case 0:return s.jsx(n.LucidePen,{size:16,color:"#475569"});case 1:return s.jsx(n.FileCheck,{size:16,color:"#475569"});case 2:return s.jsx(n.User,{size:16,color:"#475569"});default:return s.jsx(n.CheckCircle,{size:16,color:"#475569"})}};function _(i){var r=i.levels,o=r.some(function(e){var s,i;return(null!==(i=null===(s=e.assignees)||void 0===s?void 0:s.length)&&void 0!==i?i:0)>0});return s.jsxs("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.flowBox},{children:[s.jsx("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.flowTitle},{children:"Current Approval Flow"})),o?s.jsx("div",e.__assign({style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center",marginTop:6}},{children:r.map(function(i,o){var a,d=i.isHidden,c=null===(a=i.assignees)||void 0===a?void 0:a.map(function(e){return e.name}).join(" / ");if(!c)return null;var g=d?s.jsx(n.User,{size:16,color:"#475569"}):x(o);return s.jsxs(l.default.Fragment,{children:[s.jsxs("span",e.__assign({style:e.__assign(e.__assign({},t.DEFAULT_REVIEW_STATUS_STYLES.flowChip),{display:"flex",alignItems:"center",gap:"6px"})},{children:[g,s.jsx("span",e.__assign({style:{fontSize:13,color:"#374151"}},{children:c}))]})),o<r.length-1&&s.jsx(n.ArrowRight,{size:16,color:"#9CA3AF"})]},o)})})):s.jsx("p",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.flowEmpty},{children:"No owners assigned yet."}))]}))}exports.default=function(i){var r=i.levels,o=i.reviewData,a=void 0===o?{}:o,g=r.map(function(e,s){var i,n,t,r=null!==(n=null!==(i=a[s])&&void 0!==i?i:a[e.headerName])&&void 0!==n?n:{},l=(null!==(t=e.assignees)&&void 0!==t?t:[]).map(function(e){return{user:e,approved:!0===r[String(e.id)]||!0===r[String(e.email)]||"approved"===e.action||!0===e.approved,rejected:"rejected"===r[String(e.id)]||"rejected"===r[String(e.email)]||"rejected"===e.action}}),o=e.isApproved||l.length>0&&l.every(function(e){return e.approved}),d=e.isRejected||l.some(function(e){return e.rejected}),c="not_started";return o?c="approved":d&&(c="rejected"),{level:e,assigneeStatuses:l,status:c}}),p=!1,x=g.map(function(s){var i="waiting";"approved"===s.status?i="approved":"rejected"===s.status?(i="rejected",p=!0):p||(i="pending",p=!0);var n=!0===s.level.isHidden;return e.__assign(e.__assign({},s),{extendedStatus:i,isFinalApproval:n})}),u=function(e){return e.filter(function(e){return"approved"===e.status}).length}(g),v=g.length;return s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:24}},{children:[s.jsxs("div",{children:[s.jsxs("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressHeader},{children:[s.jsx("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressTitle},{children:"Approval Progress"})),s.jsxs("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressCount},{children:[u," of ",v," level",1!==v?"s":""," complete"]}))]})),s.jsx("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressBarTrack},{children:x.map(function(i,n){var r="approved"===i.extendedStatus,l="rejected"===i.extendedStatus,o=0===n,a=n===v-1;return s.jsx("div",{style:e.__assign(e.__assign({},t.DEFAULT_REVIEW_STATUS_STYLES.progressSegment),{backgroundColor:r?"#6366F1":l?"#EF4444":"#E5E7EB",borderRadius:o&&a?"999px":o?"999px 0 0 999px":a?"0 999px 999px 0":"0",marginRight:a?0:3})},n)})})),s.jsx("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.progressLabels},{children:x.map(function(i,n){return s.jsxs("span",e.__assign({style:e.__assign(e.__assign({},t.DEFAULT_REVIEW_STATUS_STYLES.progressLabel),{color:"approved"===i.extendedStatus?"#6366F1":"rejected"===i.extendedStatus?"#EF4444":"#9CA3AF",fontWeight:"approved"===i.extendedStatus||"rejected"===i.extendedStatus?600:400})},{children:[i.level.headerName," - ",i.level.title]}),n)})}))]}),s.jsxs("div",e.__assign({style:{display:"flex",flexDirection:"column",gap:0}},{children:[s.jsx("div",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.sectionHeadingRow},{children:s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:6}},{children:[s.jsx("span",e.__assign({style:t.DEFAULT_REVIEW_STATUS_STYLES.sectionTitle},{children:"Approval Levels"})),s.jsx(n.Info,{size:15,color:"#9CA3AF"})]}))})),s.jsx("div",e.__assign({style:{display:"flex",flexDirection:"column",marginTop:12}},{children:x.map(function(i,n){var t,r=n===x.length-1,o=i.isFinalApproval,a=null===(t=x[n+1])||void 0===t?void 0:t.isFinalApproval;return o?s.jsxs(l.default.Fragment,{children:[s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",margin:"16px 0"}},{children:[s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),s.jsx("span",e.__assign({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:"then"})),s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]})),s.jsx("div",e.__assign({style:{marginBottom:"12px",fontSize:"15px",fontWeight:500,color:"#6B7280"}},{children:"Final Approval"})),s.jsx(c,{reviewLevel:i})]},n):s.jsxs(l.default.Fragment,{children:[s.jsx(d,{reviewLevel:i}),!r&&!a&&s.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",margin:"20px 0"}},{children:[s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),s.jsx("span",e.__assign({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:"then"})),s.jsx("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]}))]},n)})}))]})),s.jsx(_,{levels:r})]}))};
|
|
2
2
|
//# sourceMappingURL=ReviewStatus.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as i,Fragment as n}from"react/jsx-runtime";import r from"react";import{Info as l,Check as o,Hourglass as d,X as s,CircleCheck as a,MinusCircle as c,User as p,ArrowRight as g,CheckCircle as u,FileCheck as v,LucidePen as f}from"lucide-react";import{DEFAULT_REVIEW_STATUS_STYLES as x}from"../styles/ReviewStatusStyles.js";var h=function(e){var t=e.trim().split(/\s+/);return 1===t.length?t[0].slice(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()},y=function(e){for(var t=[{bg:"#FEF9C3",fg:"#854D0E"},{bg:"#DCFCE7",fg:"#166534"},{bg:"#DBEAFE",fg:"#1E40AF"},{bg:"#F3E8FF",fg:"#6B21A8"},{bg:"#FFE4E6",fg:"#9F1239"},{bg:"#FEE2E2",fg:"#991B1B"},{bg:"#E0F2FE",fg:"#0369A1"}],i=0,n=0;n<e.length;n++)i=e.charCodeAt(n)+((i<<5)-i);return t[Math.abs(i)%t.length]};function F(n){var o=n.levels,d=n.reviewData,s=void 0===d?{}:d,a=o.map(function(e,t){var i,n,r,l=null!==(n=null!==(i=s[t])&&void 0!==i?i:s[e.headerName])&&void 0!==n?n:{},o=(null!==(r=e.assignees)&&void 0!==r?r:[]).map(function(e){return{user:e,approved:!0===l[String(e.id)]||!0===l[String(e.email)]||"approved"===e.action||!0===e.approved,rejected:"rejected"===l[String(e.id)]||"rejected"===l[String(e.email)]||"rejected"===e.action}}),d=e.isApproved||o.length>0&&o.every(function(e){return e.approved}),a=e.isRejected||o.some(function(e){return e.rejected}),c="not_started";return d?c="approved":a&&(c="rejected"),{level:e,assigneeStatuses:o,status:c}}),c=!1,p=a.map(function(t){var i="waiting";"approved"===t.status?i="approved":"rejected"===t.status?(i="rejected",c=!0):c||(i="pending",c=!0);var n=!0===t.level.isHidden;return e(e({},t),{extendedStatus:i,isFinalApproval:n})}),g=function(e){return e.filter(function(e){return"approved"===e.status}).length}(a),u=a.length;return t("div",e({style:{display:"flex",flexDirection:"column",gap:24}},{children:[t("div",{children:[t("div",e({style:x.progressHeader},{children:[i("span",e({style:x.progressTitle},{children:"Approval Progress"})),t("span",e({style:x.progressCount},{children:[g," of ",u," level",1!==u?"s":""," complete"]}))]})),i("div",e({style:x.progressBarTrack},{children:p.map(function(t,n){var r="approved"===t.extendedStatus,l="rejected"===t.extendedStatus,o=0===n,d=n===u-1;return i("div",{style:e(e({},x.progressSegment),{backgroundColor:r?"#6366F1":l?"#EF4444":"#E5E7EB",borderRadius:o&&d?"999px":o?"999px 0 0 999px":d?"0 999px 999px 0":"0",marginRight:d?0:3})},n)})})),i("div",e({style:x.progressLabels},{children:p.map(function(i,n){return t("span",e({style:e(e({},x.progressLabel),{color:"approved"===i.extendedStatus?"#6366F1":"rejected"===i.extendedStatus?"#EF4444":"#9CA3AF",fontWeight:"approved"===i.extendedStatus||"rejected"===i.extendedStatus?600:400})},{children:[i.level.headerName," - ",i.level.title]}),n)})}))]}),t("div",e({style:{display:"flex",flexDirection:"column",gap:0}},{children:[i("div",e({style:x.sectionHeadingRow},{children:t("div",e({style:{display:"flex",alignItems:"center",gap:6}},{children:[i("span",e({style:x.sectionTitle},{children:"Approval Levels"})),i(l,{size:15,color:"#9CA3AF"})]}))})),i("div",e({style:{display:"flex",flexDirection:"column",marginTop:12}},{children:p.map(function(n,l){var o,d=l===p.length-1,s=n.isFinalApproval,a=null===(o=p[l+1])||void 0===o?void 0:o.isFinalApproval;return t(r.Fragment,s?{children:[t("div",e({style:{display:"flex",alignItems:"center",margin:"16px 0"}},{children:[i("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),i("span",e({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:"then"})),i("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]})),i("div",e({style:{marginBottom:"12px",fontSize:"15px",fontWeight:500,color:"#6B7280"}},{children:"Final Approval"})),i(b,{reviewLevel:n})]}:{children:[i(m,{reviewLevel:n}),!d&&!a&&t("div",e({style:{display:"flex",alignItems:"center",margin:"20px 0"}},{children:[i("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}}),i("span",e({style:{padding:"0 16px",fontSize:"14px",color:"#6B7280"}},{children:"then"})),i("div",{style:{flex:1,height:"1px",backgroundColor:"#E5E7EB"}})]}))]},l)})}))]})),i(z,{levels:o})]}))}function m(n){var r=n.reviewLevel,l=r.level,a=r.assigneeStatuses,c=r.extendedStatus,p={approved:{bg:"#ECFDF5",color:"#059669",icon:i(o,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:i(d,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:i(d,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:i(s,{size:14}),text:"Rejected"}}[c]||{bg:"#F3F4F6",color:"#4B5563",icon:i(d,{size:14}),text:"Waiting"},g="approved"===c?"1px solid #D1FAE5":"rejected"===c?"1px solid #FCA5A5":"1px solid #E5E7EB";return t("div",e({style:{backgroundColor:"#FFFFFF",border:g,borderRadius:"8px",display:"flex",flexDirection:"column",overflow:"hidden"}},{children:[t("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"approved"===c?"#F0FDF4":"rejected"===c?"#FEF2F2":"#F8FAFC",borderBottom:g,padding:"12px 16px"}},{children:[t("div",e({style:{display:"flex",alignItems:"center",gap:10}},{children:[i(C,{name:l.headerName}),i("span",e({style:{fontSize:15,fontWeight:500,color:"#374151"}},{children:l.title}))]})),t("div",e({style:{backgroundColor:p.bg,color:p.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[p.icon,p.text]}))]})),i("div",e({style:{padding:"16px"}},{children:a.length>0?i("div",e({style:{display:"flex",flexDirection:"column",gap:16}},{children:a.map(function(e,t){var n;return i(E,{assigneeStatus:e,extendedStatus:c},null!==(n=e.user.id)&&void 0!==n?n:t)})})):i("div",e({style:{fontSize:14,color:"#6B7280"}},{children:"No assignees added yet"}))}))]}))}function b(n){var r,l,a,c=n.reviewLevel,p=c.assigneeStatuses,g=c.extendedStatus,u={approved:{bg:"#ECFDF5",color:"#059669",icon:i(o,{size:14}),text:"Approved"},pending:{bg:"#FFEDD5",color:"#C2410C",icon:i(d,{size:14}),text:"Pending"},waiting:{bg:"#F3F4F6",color:"#4B5563",icon:i(d,{size:14}),text:"Waiting"},rejected:{bg:"#FEF2F2",color:"#DC2626",icon:i(s,{size:14}),text:"Rejected"}}[g]||{bg:"#F3F4F6",color:"#4B5563",icon:i(d,{size:14}),text:"Waiting"},v=null===(r=p[0])||void 0===r?void 0:r.user;return t("div",e({style:{backgroundColor:"#FFFFFF",border:"1px solid #E5E7EB",borderRadius:"8px",padding:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[v?t("div",e({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[i("div",e({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:y(null!==(l=v.id)&&void 0!==l?l:v.name).bg,color:y(null!==(a=v.id)&&void 0!==a?a:v.name).fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:600,fontSize:"14px"}},{children:h(v.name)})),t("div",e({style:{display:"flex",flexDirection:"column"}},{children:[i("span",e({style:{fontSize:"15px",fontWeight:400,color:"#374151"}},{children:v.name})),i("span",e({style:{fontSize:"13px",color:"#6B7280"}},{children:"Will be notified after all levels approve"}))]}))]})):i("span",e({style:{fontSize:14,color:"#6B7280"}},{children:"No owner assigned"})),t("div",e({style:{backgroundColor:u.bg,color:u.color,padding:"4px 10px",borderRadius:"16px",fontSize:"12px",fontWeight:500,display:"flex",alignItems:"center",gap:"6px"}},{children:[u.icon,u.text]}))]}))}function E(r){var l,o=r.assigneeStatus,d=r.extendedStatus,p=o,g=p.user,u=p.approved,v=p.rejected,f=h(g.name),x=y(null!==(l=g.id)&&void 0!==l?l:g.name);return t("div",e({style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},{children:[t("div",e({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:[i("div",e({style:{width:"36px",height:"36px",borderRadius:"50%",backgroundColor:x.bg,color:x.fg,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:500,fontSize:"13px"}},{children:f})),t("div",e({style:{display:"flex",flexDirection:"column",gap:"2px"}},{children:[i("span",e({style:{fontSize:"14px",fontWeight:400,color:"#374151"}},{children:g.name})),i("span",e({style:{fontSize:"13px",color:"#6B7280"}},{children:g.email}))]}))]})),i("div",e({style:{display:"flex",alignItems:"center",gap:"12px"}},{children:u||"approved"===g.action?i(a,{size:20,color:"#16A34A",strokeWidth:1.5}):v||"rejected"===g.action?i(s,{size:20,color:"#DC2626",strokeWidth:1.5}):"pending"===d?t(n,{children:[i("span",e({style:{fontSize:"13px",color:"#4B5563"}},{children:"Notified 1h ago"})),i(c,{size:20,color:"#9CA3AF",strokeWidth:1.5})]}):i(c,{size:20,color:"#9CA3AF",strokeWidth:1.5})}))]}))}function C(t){var n=t.name,r=y(n);return i("span",e({style:{backgroundColor:r.bg,color:r.fg,borderRadius:12,padding:"3px 10px",fontSize:12,fontWeight:500}},{children:n}))}var S=function(e){switch(e){case 0:return i(f,{size:16,color:"#475569"});case 1:return i(v,{size:16,color:"#475569"});case 2:return i(p,{size:16,color:"#475569"});default:return i(u,{size:16,color:"#475569"})}};function z(n){var l=n.levels,o=l.some(function(e){var t,i;return(null!==(i=null===(t=e.assignees)||void 0===t?void 0:t.length)&&void 0!==i?i:0)>0});return t("div",e({style:x.flowBox},{children:[i("span",e({style:x.flowTitle},{children:"Current Approval Flow"})),o?i("div",e({style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"center",marginTop:6}},{children:l.map(function(n,o){var d,s=n.isHidden,a=null===(d=n.assignees)||void 0===d?void 0:d.map(function(e){return e.name}).join(" / ");if(!a)return null;var c=s?i(p,{size:16,color:"#475569"}):S(o);return t(r.Fragment,{children:[t("span",e({style:e(e({},x.flowChip),{display:"flex",alignItems:"center",gap:"6px"})},{children:[c,i("span",e({style:{fontSize:13,color:"#374151"}},{children:a}))]})),o<l.length-1&&i(g,{size:16,color:"#9CA3AF"})]},o)})})):i("p",e({style:x.flowEmpty},{children:"No owners assigned yet."}))]}))}export{F as default};
|
|
2
2
|
//# sourceMappingURL=ReviewStatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/ReviewStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ReviewStatus.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/ReviewStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAc1B,OAAO,EAKH,iBAAiB,EACpB,MAAM,gBAAgB,CAAC;AAmCxB,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,MAAM,EAAE,UAAe,EAAE,EAAE,iBAAiB,qBA0KlF"}
|
|
@@ -5,6 +5,10 @@ export interface AssigneeUser {
|
|
|
5
5
|
name: string;
|
|
6
6
|
id: any;
|
|
7
7
|
accessLevel?: string;
|
|
8
|
+
/** Runtime: set when the user takes an action on this redline */
|
|
9
|
+
action?: "approved" | "rejected" | "iterated";
|
|
10
|
+
/** ISO datetime string of when action was taken */
|
|
11
|
+
action_taken_at?: string;
|
|
8
12
|
}
|
|
9
13
|
export interface Level {
|
|
10
14
|
headerName: string;
|
|
@@ -14,6 +18,10 @@ export interface Level {
|
|
|
14
18
|
dueDate?: Date | null;
|
|
15
19
|
isHidden?: boolean;
|
|
16
20
|
assignees?: AssigneeUser[];
|
|
21
|
+
isApproved?: boolean;
|
|
22
|
+
isRejected?: boolean;
|
|
23
|
+
/** Granular status propagated from the backend via mapApprovalLevelsToUI */
|
|
24
|
+
status?: "approved" | "rejected" | "completed" | "pending" | "waiting" | "not_started";
|
|
17
25
|
}
|
|
18
26
|
export type DropdownOption = {
|
|
19
27
|
label: string;
|
|
@@ -129,7 +137,7 @@ export interface LevelAccordionProps {
|
|
|
129
137
|
onDueDateChange: (date: Date | null) => void;
|
|
130
138
|
onAssigneesChange: (assignees: AssigneeUser[]) => void;
|
|
131
139
|
}
|
|
132
|
-
export type ApprovalStatus = "approved" | "
|
|
140
|
+
export type ApprovalStatus = "approved" | "rejected" | "not_started";
|
|
133
141
|
export interface LevelReviewStatus {
|
|
134
142
|
level: Level;
|
|
135
143
|
assigneeStatuses: AssigneeApprovalStatus[];
|
|
@@ -138,10 +146,22 @@ export interface LevelReviewStatus {
|
|
|
138
146
|
export interface AssigneeApprovalStatus {
|
|
139
147
|
user: AssigneeUser;
|
|
140
148
|
approved: boolean;
|
|
149
|
+
/** Populated inside ReviewStatus — not part of the public Level contract */
|
|
150
|
+
rejected?: boolean;
|
|
141
151
|
}
|
|
142
152
|
export interface ReviewStatusProps {
|
|
143
153
|
levels: Level[];
|
|
144
|
-
|
|
154
|
+
/**
|
|
155
|
+
* @deprecated
|
|
156
|
+
* reviewData is no longer the primary status source.
|
|
157
|
+
* Status is now derived directly from `level.isApproved`, `level.isRejected`,
|
|
158
|
+
* and `level.status` — which are kept in sync by mapApprovalLevelsToUI and
|
|
159
|
+
* the approve/reject submitAction handlers.
|
|
160
|
+
*
|
|
161
|
+
* This prop is kept for backward compatibility only and is used as a last-resort
|
|
162
|
+
* fallback when none of the level status fields are set.
|
|
163
|
+
*/
|
|
164
|
+
reviewData?: Record<string | number, any>;
|
|
145
165
|
}
|
|
146
166
|
export interface ColorConfig {
|
|
147
167
|
bg: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEzD,MAAM,WAAW,YAAY;IACzB,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEzD,MAAM,WAAW,YAAY;IACzB,KAAK,EAAS,MAAM,CAAC;IACrB,IAAI,EAAU,MAAM,CAAC;IACrB,EAAE,EAAY,GAAG,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,MAAM,CAAC,EAAO,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;IACnD,mDAAmD;IACnD,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,KAAK;IAClB,UAAU,EAAG,MAAM,CAAC;IACpB,KAAK,EAAQ,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAK,IAAI,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAI,OAAO,CAAC;IACrB,SAAS,CAAC,EAAG,YAAY,EAAE,CAAC;IAK5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4EAA4E;IAC5E,MAAM,CAAC,EAAM,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;CAC9F;AAID,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,WAAW,WAAW;IACxB,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAChC;AAED,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAA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AAC;IAChC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,iBAAiB,CAAC,EAAE;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,0BAA0B,CAAC,EAAE,MAAM,EAAE,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,aAAa,EAAE,MAAM,IAAI,CAAC;CAC7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viswa-test/creative-workspace-ui-component",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"author": "Viswa Koduru",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -138,6 +138,7 @@
|
|
|
138
138
|
},
|
|
139
139
|
"dependencies": {
|
|
140
140
|
"@craco/craco": "^7.1.0",
|
|
141
|
-
"@radix-ui/react-tooltip": "^1.2.8"
|
|
141
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
142
|
+
"@viswa-test/requirement-ai": "^0.0.28"
|
|
142
143
|
}
|
|
143
144
|
}
|