@viswa-test/creative-workspace-ui-component 0.0.12 → 0.0.13
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/AssignLevelAccordions.js +1 -1
- package/dist/cjs/components/AssignReminders/assets/FileCheckCorner.js +1 -1
- package/dist/cjs/components/AssignReminders/components/CustomCheckbox.js +1 -1
- package/dist/components/AssignReminders/AssignLevelAccordions.js +1 -1
- package/dist/components/AssignReminders/assets/FileCheckCorner.js +1 -1
- package/dist/components/AssignReminders/components/CustomCheckbox.js +1 -1
- package/dist/types/App.d.ts +2 -0
- package/dist/types/App.d.ts.map +1 -1
- package/dist/types/components/AssignReminders/AssignLevelAccordions.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),s=require("react"),t=require("lucide-react"),i=require("./utils/generateRandomColorsPair.js"),o=require("./assets/VerticalLine.js"),r=require("./components/AssignLevelsDatePicker.js"),a=require("./components/LevelData.js");exports.default=function(l){var d,p,u=l.level,c=l.id,g=l.accessLevelOptions,x=l.fetchUsers,h=l.onToggleMandatory,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),s=require("react"),t=require("lucide-react"),i=require("./utils/generateRandomColorsPair.js"),o=require("./assets/VerticalLine.js"),r=require("./components/AssignLevelsDatePicker.js"),a=require("./components/LevelData.js");exports.default=function(l){var d,p,u=l.level,c=l.id,g=l.accessLevelOptions,x=l.fetchUsers,h=l.onToggleMandatory,f=l.onDueDateChange,y=l.onAssigneesChange,_=l.onTitleChange,j=l.onDeleteLevel,b=s.useMemo(function(){return i.getRandomColorPair()},[]),v=s.useState(!1),m=v[0],C=v[1],k=s.useState(!1),D=k[0],F=k[1];return n.jsxs("div",e.__assign({style:{width:"100%",border:"1.5px solid #E2E8F0",borderRadius:"5px"}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#F8FAFC",padding:"0px 10px",minHeight:"48px"}},{children:[n.jsxs("span",e.__assign({style:{display:"flex",alignItems:"center",gap:10,paddingLeft:"20px"}},{children:[n.jsx("span",e.__assign({style:{backgroundColor:b.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:b.color,fontSize:"14px",fontWeight:500}},{children:u.headerName})),D?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("input",{type:"text",value:u.title||"",onChange:function(e){return null==_?void 0:_(e.target.value)},onBlur:function(){return F(!1)},onKeyDown:function(e){return"Enter"===e.key&&F(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"14px",fontWeight:500,color:"#374151",background:"transparent",padding:"0 2px",width:"150px"}}),n.jsx("button",e.__assign({type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),F(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:n.jsx(t.Check,{size:16,color:"#10B981"})}))]})):n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:500,color:"#374151"}},{children:u.title})),n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),F(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:n.jsx(t.Edit2,{size:14,color:"#6B7280"})}))]}))]})),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[m&&u.hasDueDate&&n.jsxs(n.Fragment,{children:[n.jsxs("span",e.__assign({style:{color:"#6B7280"}},{children:["Due Date: ",u.isMandatory&&n.jsx("sup",e.__assign({style:{color:"red"}},{children:"*"}))]})),n.jsx(r.default,{value:null!==(d=u.dueDate)&&void 0!==d?d:null,onSet:f,id:c}),n.jsx(o.default,{})]}),"0"!==c&&n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center"}},{children:n.jsxs("button",e.__assign({type:"button",onClick:h,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:u.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[n.jsx("span",{style:{position:"absolute",top:"3px",left:u.isMandatory?"65px":"3px",width:"20px",height:"20px",borderRadius:"50%",background:"#FFF",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"}}),n.jsx("span",e.__assign({style:{color:"#FFF",fontSize:"12px",fontWeight:500,userSelect:"none",paddingLeft:u.isMandatory?"0":"24px",paddingRight:u.isMandatory?"24px":"0"}},{children:"Required"}))]}))})),n.jsx("div",e.__assign({style:{width:"20px",display:"flex",justifyContent:"center",alignItems:"center"}},{children:j&&!u.isMandatory&&n.jsx(t.Trash2,{size:16,color:"#EF4444",onClick:function(e){e.stopPropagation(),j()},style:{cursor:"pointer"}})})),n.jsx(t.ChevronDown,{size:20,onClick:function(e){e.stopPropagation(),C(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:m?"rotate(180deg)":"rotate(0deg)"}})]}))]})),m&&n.jsx("div",e.__assign({style:{width:"100%",height:"auto"}},{children:n.jsx(a.default,{assignees:null!==(p=u.assignees)&&void 0!==p?p:[],onAssigneeChange:y,accessLevelOptions:g,fetchUsers:x})}))]}))};
|
|
2
2
|
//# sourceMappingURL=AssignLevelAccordions.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.height,s=t.width;return r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:s||"14",height:i||"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),r=require("react/jsx-runtime");exports.default=function(t){var i=t.height,s=t.width;return r.jsxs("svg",e.__assign({xmlns:"http://www.w3.org/2000/svg",width:s||"14",height:i||"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-file-check-corner-icon lucide-file-check-corner"},{children:[r.jsx("path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6"}),r.jsx("path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}),r.jsx("path",{d:"m14 20 2 2 4-4"})]}))};
|
|
2
2
|
//# sourceMappingURL=FileCheckCorner.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),r=require("lucide-react");exports.default=function(i){var n=i.getter,s=i.setter;return t.jsxs("label",e.__assign({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",marginTop:"
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),r=require("lucide-react");exports.default=function(i){var n=i.getter,s=i.setter;return t.jsxs("label",e.__assign({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",marginTop:"8px",alignItems:"center",justifyContent:"center"}},{children:[t.jsx("input",{type:"checkbox",checked:n,onChange:function(e){return s(e.target.checked)},style:{display:"none"}}),t.jsx("span",e.__assign({style:{width:"18px",height:"18px",border:"2px solid ".concat(n?"#7C3AED":"#CBD5E1"),borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff"}},{children:n&&t.jsx(r.Check,{size:12,color:"#7C3AED",strokeWidth:3})}))]}))};
|
|
2
2
|
//# sourceMappingURL=CustomCheckbox.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as n,Fragment as o}from"react/jsx-runtime";import{useMemo as i,useState as r}from"react";import{Check as
|
|
1
|
+
import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as n,Fragment as o}from"react/jsx-runtime";import{useMemo as i,useState as r}from"react";import{Check as l,Edit2 as s,Trash2 as a,ChevronDown as d}from"lucide-react";import{getRandomColorPair as p}from"./utils/generateRandomColorsPair.js";import c from"./assets/VerticalLine.js";import u from"./components/AssignLevelsDatePicker.js";import g from"./components/LevelData.js";function f(f){var h,x,y=f.level,m=f.id,b=f.accessLevelOptions,v=f.fetchUsers,C=f.onToggleMandatory,k=f.onDueDateChange,D=f.onAssigneesChange,F=f.onTitleChange,w=f.onDeleteLevel,L=i(function(){return p()},[]),S=r(!1),j=S[0],z=S[1],B=r(!1),M=B[0],I=B[1];return t("div",e({style:{width:"100%",border:"1.5px solid #E2E8F0",borderRadius:"5px"}},{children:[t("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#F8FAFC",padding:"0px 10px",minHeight:"48px"}},{children:[t("span",e({style:{display:"flex",alignItems:"center",gap:10,paddingLeft:"20px"}},{children:[n("span",e({style:{backgroundColor:L.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:L.color,fontSize:"14px",fontWeight:500}},{children:y.headerName})),t("div",e({style:{display:"flex",alignItems:"center",gap:"6px"}},M?{children:[n("input",{type:"text",value:y.title||"",onChange:function(e){return null==F?void 0:F(e.target.value)},onBlur:function(){return I(!1)},onKeyDown:function(e){return"Enter"===e.key&&I(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"14px",fontWeight:500,color:"#374151",background:"transparent",padding:"0 2px",width:"150px"}}),n("button",e({type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),I(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:n(l,{size:16,color:"#10B981"})}))]}:{children:[n("span",e({style:{fontSize:"14px",fontWeight:500,color:"#374151"}},{children:y.title})),n("button",e({type:"button",onClick:function(e){e.stopPropagation(),I(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:n(s,{size:14,color:"#6B7280"})}))]}))]})),t("div",e({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[j&&y.hasDueDate&&t(o,{children:[t("span",e({style:{color:"#6B7280"}},{children:["Due Date: ",y.isMandatory&&n("sup",e({style:{color:"red"}},{children:"*"}))]})),n(u,{value:null!==(h=y.dueDate)&&void 0!==h?h:null,onSet:k,id:m}),n(c,{})]}),"0"!==m&&n("div",e({style:{display:"flex",alignItems:"center"}},{children:t("button",e({type:"button",onClick:C,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:y.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[n("span",{style:{position:"absolute",top:"3px",left:y.isMandatory?"65px":"3px",width:"20px",height:"20px",borderRadius:"50%",background:"#FFF",transition:"all 0.2s ease",boxShadow:"0 1px 3px rgba(0,0,0,0.15)"}}),n("span",e({style:{color:"#FFF",fontSize:"12px",fontWeight:500,userSelect:"none",paddingLeft:y.isMandatory?"0":"24px",paddingRight:y.isMandatory?"24px":"0"}},{children:"Required"}))]}))})),n("div",e({style:{width:"20px",display:"flex",justifyContent:"center",alignItems:"center"}},{children:w&&!y.isMandatory&&n(a,{size:16,color:"#EF4444",onClick:function(e){e.stopPropagation(),w()},style:{cursor:"pointer"}})})),n(d,{size:20,onClick:function(e){e.stopPropagation(),z(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:j?"rotate(180deg)":"rotate(0deg)"}})]}))]})),j&&n("div",e({style:{width:"100%",height:"auto"}},{children:n(g,{assignees:null!==(x=y.assignees)&&void 0!==x?x:[],onAssigneeChange:D,accessLevelOptions:b,fetchUsers:v})}))]}))}export{f as default};
|
|
2
2
|
//# sourceMappingURL=AssignLevelAccordions.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as r,jsx as t}from"react/jsx-runtime";var i=function(i){var o=i.height,
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as r,jsx as t}from"react/jsx-runtime";var i=function(i){var o=i.height,n=i.width;return r("svg",e({xmlns:"http://www.w3.org/2000/svg",width:n||"14",height:o||"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"lucide lucide-file-check-corner-icon lucide-file-check-corner"},{children:[t("path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6"}),t("path",{d:"M14 2v5a1 1 0 0 0 1 1h5"}),t("path",{d:"m14 20 2 2 4-4"})]}))};export{i as default};
|
|
2
2
|
//# sourceMappingURL=FileCheckCorner.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{Check as i}from"lucide-react";function n(n){var o=n.getter,c=n.setter;return t("label",e({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",marginTop:"
|
|
1
|
+
import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{Check as i}from"lucide-react";function n(n){var o=n.getter,c=n.setter;return t("label",e({style:{width:"28px",height:"18px",cursor:"pointer",display:"inline-flex",marginTop:"8px",alignItems:"center",justifyContent:"center"}},{children:[r("input",{type:"checkbox",checked:o,onChange:function(e){return c(e.target.checked)},style:{display:"none"}}),r("span",e({style:{width:"18px",height:"18px",border:"2px solid ".concat(o?"#7C3AED":"#CBD5E1"),borderRadius:"4px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#fff"}},{children:o&&r(i,{size:12,color:"#7C3AED",strokeWidth:3})}))]}))}export{n as default};
|
|
2
2
|
//# sourceMappingURL=CustomCheckbox.js.map
|
package/dist/types/App.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { AssigneeUser } from './components/AssignReminders/types/types';
|
|
3
|
+
export declare const mockFetchUsers: (query: string) => Promise<AssigneeUser[]>;
|
|
2
4
|
declare function App(): React.JSX.Element;
|
|
3
5
|
export default App;
|
|
4
6
|
//# sourceMappingURL=App.d.ts.map
|
package/dist/types/App.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,YAAY,EAAE,MAAM,0CAA0C,CAAC;AAuBxE,eAAO,MAAM,cAAc,UAAiB,MAAM,KAAG,QAAQ,YAAY,EAAE,CAQ1E,CAAC;AA6DF,iBAAS,GAAG,sBAgBX;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssignLevelAccordions.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignLevelAccordions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKpD,UAAU,2BAA4B,SAAQ,mBAAmB;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACnC,KAAK,EACL,EAAE,EACF,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,aAAa,EAChB,EAAE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"AssignLevelAccordions.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignLevelAccordions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKpD,UAAU,2BAA4B,SAAQ,mBAAmB;IAC7D,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACnC,KAAK,EACL,EAAE,EACF,kBAAkB,EAClB,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,aAAa,EAChB,EAAE,2BAA2B,qBA6K7B"}
|
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.13",
|
|
4
4
|
"author": "Viswa Koduru",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@types/react": "^18.3.0",
|
|
106
106
|
"@types/react-dom": "^18.3.0",
|
|
107
107
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
108
|
-
"axios": "
|
|
108
|
+
"axios": "1.7.9",
|
|
109
109
|
"prettier": "^3.7.4",
|
|
110
110
|
"react": "^18.3.1",
|
|
111
111
|
"react-dom": "^18.3.1",
|