@viswa-test/creative-workspace-ui-component 0.0.17 → 0.0.19

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/README.md CHANGED
@@ -349,4 +349,177 @@ import { BookOpen, RadioTower } from 'lucide-react';
349
349
  - The `nodeTypesConfig` array maps to tree depth — index `0` applies to the root node, index `1` to its children, and so on. If the tree is deeper than the config array, the last config entry is reused.
350
350
  - Delete is automatically **disabled** for nodes that have children, with a tooltip explaining why.
351
351
  - The root node auto-expands on load and whenever `data` changes.
352
- - Search expansion is automatic — all ancestor nodes of matching results are expanded.
352
+ - Search expansion is automatic — all ancestor nodes of matching results are expanded.
353
+
354
+
355
+
356
+ # Assign Reminder & Approval Manager
357
+
358
+ A configurable workflow component for managing assignees, approval levels, reminders, and review status tracking.
359
+
360
+ ## Features
361
+
362
+ - Multi-tab interface (Assignees, Reminders, Review Status)
363
+ - Multi-level approval workflows
364
+ - Controlled and uncontrolled state support
365
+ - Async user search and assignment
366
+ - Due date management
367
+ - Final approval workflow support
368
+ - Visual approval progress tracking
369
+ - Customizable metadata, tabs, and priority badges
370
+ - Reusable UI components (Dropdowns, Date Pickers, Checkboxes)
371
+
372
+ ---
373
+
374
+ ## Installation
375
+
376
+ ```bash
377
+ npm install @e-llm-studio/creative-workspace-ui-component
378
+ ```
379
+
380
+ ```tsx
381
+ import AssignReminderWrapper from "@e-llm-studio/creative-workspace-ui-component";
382
+ ```
383
+
384
+ ---
385
+
386
+ ## Basic Usage
387
+
388
+ ```tsx
389
+ <AssignReminderWrapper
390
+ fetchUsers={fetchUsers}
391
+ onClose={() => setOpen(false)}
392
+ onSave={(payload) => console.log(payload)}
393
+ metadata={{
394
+ wrapperTitle: "Contract Review",
395
+ wrapperPriority: "High",
396
+ }}
397
+ />
398
+ ```
399
+
400
+ ---
401
+
402
+ ## Props
403
+
404
+ | Prop | Type | Description |
405
+ |--------|--------|-------------|
406
+ | `metadata` | `MetaData` | Customizes modal title, priority badge, tabs, and display settings. |
407
+ | `reviewData` | `Record<number, Record<string, boolean>>` | Approval status mapping used by Review Status. |
408
+ | `levels` | `Level[]` | Approval workflow levels. |
409
+ | `setLevels` | `Dispatch` | Controlled state setter for levels. |
410
+ | `requireFinalApproval` | `boolean` | Enables final approval step. |
411
+ | `setRequireFinalApproval` | `Dispatch` | Controlled setter for final approval state. |
412
+ | `approvalDueDate` | `Date \| null` | Final approval due date. |
413
+ | `setApprovalDueDate` | `Dispatch` | Controlled setter for approval due date. |
414
+ | `fetchUsers` | `FetchUsersFunction` | Async user lookup function. |
415
+ | `onClose` | `() => void` | Called when modal closes. |
416
+ | `onSave` | `(payload) => void` | Returns configured workflow data. |
417
+ | `onValidationError` | `(message) => void` | Handles validation errors. |
418
+
419
+ ---
420
+
421
+ ## Core Types
422
+
423
+ ### MetaData
424
+
425
+ ```ts
426
+ interface MetaData {
427
+ wrapperTitle?: string;
428
+ wrapperSubTitle?: string;
429
+ wrapperPriority?: string;
430
+ wrapperPriorityStyles?: React.CSSProperties;
431
+ tabData?: TabData[];
432
+ showFinalApprovalDueDate?: boolean;
433
+ }
434
+ ```
435
+
436
+ ### Level
437
+
438
+ ```ts
439
+ interface Level {
440
+ headerName: string;
441
+ title: string;
442
+ isMandatory: boolean;
443
+ hasDueDate: boolean;
444
+ dueDate: Date | null;
445
+ assignees: AssigneeUser[];
446
+ }
447
+ ```
448
+
449
+ ### AssigneeUser
450
+
451
+ ```ts
452
+ interface AssigneeUser {
453
+ id: any;
454
+ name: string;
455
+ email: string;
456
+ accessLevel?: string;
457
+ }
458
+ ```
459
+
460
+ ### SavePayload
461
+
462
+ ```ts
463
+ interface SavePayload {
464
+ levels: Level[];
465
+ requireFinalApproval: boolean;
466
+ finalApprovalDueDate: Date | null;
467
+ activeTab: "assignees" | "reminders" | "review";
468
+ }
469
+ ```
470
+
471
+ ---
472
+
473
+ ## Included Components
474
+
475
+ ### AssignReminderLevels
476
+
477
+ Manages approval levels, assignees, due dates, and final approval configuration.
478
+
479
+ ### ReviewStatus
480
+
481
+ Displays approval progress and assignee review status using `reviewData`.
482
+
483
+ ### LevelData
484
+
485
+ Handles assignee search, selection, and access-level assignment.
486
+
487
+ ### UI Components
488
+
489
+ - `CustomDropdown`
490
+ - `CustomDatePicker`
491
+ - `AssignLevelDatePicker`
492
+ - `CustomCheckbox`
493
+
494
+ ---
495
+
496
+ ## Utilities
497
+
498
+ ### getRandomColorPair
499
+
500
+ ```ts
501
+ function getRandomColorPair(): {
502
+ backgroundColor: string;
503
+ color: string;
504
+ }
505
+ ```
506
+
507
+ Returns a contrasting color pair for badge styling.
508
+
509
+ ### DEFAULT_ASSIGN_REMINDER_LEVELS
510
+
511
+ Default workflow configuration containing:
512
+
513
+ - First Level (Mandatory)
514
+ - Second Level (Optional)
515
+ - Third Level (Optional)
516
+
517
+ ---
518
+
519
+ ## Notes
520
+
521
+ - Supports both controlled and uncontrolled usage patterns.
522
+ - `fetchUsers` is required for assignee lookup functionality.
523
+ - Review progress is driven by the `reviewData` prop.
524
+ - Final approval workflow can be enabled or disabled.
525
+ - All workflow configuration is returned through the `onSave` callback.
@@ -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,f=l.onDueDateChange,y=l.onAssigneesChange,_=l.onTitleChange;l.onDeleteLevel;var j=s.useMemo(function(){return i.getRandomColorPair()},[]),b=s.useState(!1),v=b[0],m=b[1],C=s.useState(!1),k=C[0],D=C[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:j.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:j.color,fontSize:"13px",fontWeight:500}},{children:u.headerName})),k?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 D(!1)},onKeyDown:function(e){return"Enter"===e.key&&D(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"13px",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(),D(!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:"13px",fontWeight:500,color:"#374151"}},{children:u.title})),n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),D(!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:[v&&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,{})]}),n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center"}},{children:n.jsxs("button",e.__assign({type:"button",onClick:h,disabled:"0"===c,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:u.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",opacity:"0"===c?"50%":"100%",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:"10px",fontWeight:500,userSelect:"none",paddingLeft:u.isMandatory?"0":"18px",paddingRight:u.isMandatory?"18px":"0"}},{children:"Required"}))]}))})),n.jsx(t.ChevronDown,{size:20,onClick:function(e){e.stopPropagation(),m(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:v?"rotate(180deg)":"rotate(0deg)"}})]}))]})),v&&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})}))]}))};
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,u,p,c,g=l.level,x=l.id,h=l.accessLevelOptions,f=l.fetchUsers,y=l.onToggleMandatory,_=l.onDueDateChange,v=l.onAssigneesChange,j=l.onTitleChange;l.onDeleteLevel;var b=s.useMemo(function(){return i.getRandomColorPair()},[]),m="0"===x||(null!==(u=null===(d=g.assignees)||void 0===d?void 0:d.length)&&void 0!==u?u:0)>0,C=s.useState(m),k=C[0],D=C[1],F=s.useState(!1),S=F[0],w=F[1];return s.useEffect(function(){var e,n;(null!==(n=null===(e=g.assignees)||void 0===e?void 0:e.length)&&void 0!==n?n:0)>0&&D(!0)},[g.assignees]),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:"13px",fontWeight:500}},{children:g.headerName})),S?n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"6px"}},{children:[n.jsx("input",{type:"text",value:g.title||"",onChange:function(e){return null==j?void 0:j(e.target.value)},onBlur:function(){return w(!1)},onKeyDown:function(e){return"Enter"===e.key&&w(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"13px",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(),w(!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:"13px",fontWeight:500,color:"#374151"}},{children:g.title})),n.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),w(!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:[k&&g.hasDueDate&&n.jsxs(n.Fragment,{children:[n.jsxs("span",e.__assign({style:{color:"#6B7280"}},{children:["Due Date: ",g.isMandatory&&n.jsx("sup",e.__assign({style:{color:"red"}},{children:"*"}))]})),n.jsx(r.default,{value:null!==(p=g.dueDate)&&void 0!==p?p:null,onSet:_,id:x}),n.jsx(o.default,{})]}),n.jsx("div",e.__assign({style:{display:"flex",alignItems:"center"}},{children:n.jsxs("button",e.__assign({type:"button",onClick:y,disabled:"0"===x,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:g.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",opacity:"0"===x?"50%":"100%",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[n.jsx("span",{style:{position:"absolute",top:"3px",left:g.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:"10px",fontWeight:500,userSelect:"none",paddingLeft:g.isMandatory?"0":"18px",paddingRight:g.isMandatory?"18px":"0"}},{children:"Required"}))]}))})),n.jsx(t.ChevronDown,{size:20,onClick:function(e){e.stopPropagation(),D(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:k?"rotate(180deg)":"rotate(0deg)"}})]}))]})),k&&n.jsx("div",e.__assign({style:{width:"100%",height:"auto"}},{children:n.jsx(a.default,{assignees:null!==(c=g.assignees)&&void 0!==c?c:[],onAssigneeChange:v,accessLevelOptions:h,fetchUsers:f})}))]}))};
2
2
  //# sourceMappingURL=AssignLevelAccordions.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 a,Edit2 as l,ChevronDown as s}from"lucide-react";import{getRandomColorPair as d}from"./utils/generateRandomColorsPair.js";import p from"./assets/VerticalLine.js";import c from"./components/AssignLevelsDatePicker.js";import u from"./components/LevelData.js";function g(g){var f,h,x=g.level,y=g.id,m=g.accessLevelOptions,b=g.fetchUsers,v=g.onToggleMandatory,k=g.onDueDateChange,C=g.onAssigneesChange,D=g.onTitleChange;g.onDeleteLevel;var F=i(function(){return d()},[]),w=r(!1),L=w[0],S=w[1],B=r(!1),j=B[0],z=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:F.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:F.color,fontSize:"13px",fontWeight:500}},{children:x.headerName})),t("div",e({style:{display:"flex",alignItems:"center",gap:"6px"}},j?{children:[n("input",{type:"text",value:x.title||"",onChange:function(e){return null==D?void 0:D(e.target.value)},onBlur:function(){return z(!1)},onKeyDown:function(e){return"Enter"===e.key&&z(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"13px",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(),z(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:n(a,{size:16,color:"#10B981"})}))]}:{children:[n("span",e({style:{fontSize:"13px",fontWeight:500,color:"#374151"}},{children:x.title})),n("button",e({type:"button",onClick:function(e){e.stopPropagation(),z(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:n(l,{size:14,color:"#6B7280"})}))]}))]})),t("div",e({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[L&&x.hasDueDate&&t(o,{children:[t("span",e({style:{color:"#6B7280"}},{children:["Due Date: ",x.isMandatory&&n("sup",e({style:{color:"red"}},{children:"*"}))]})),n(c,{value:null!==(f=x.dueDate)&&void 0!==f?f:null,onSet:k,id:y}),n(p,{})]}),n("div",e({style:{display:"flex",alignItems:"center"}},{children:t("button",e({type:"button",onClick:v,disabled:"0"===y,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:x.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",opacity:"0"===y?"50%":"100%",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[n("span",{style:{position:"absolute",top:"3px",left:x.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:"10px",fontWeight:500,userSelect:"none",paddingLeft:x.isMandatory?"0":"18px",paddingRight:x.isMandatory?"18px":"0"}},{children:"Required"}))]}))})),n(s,{size:20,onClick:function(e){e.stopPropagation(),S(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:L?"rotate(180deg)":"rotate(0deg)"}})]}))]})),L&&n("div",e({style:{width:"100%",height:"auto"}},{children:n(u,{assignees:null!==(h=x.assignees)&&void 0!==h?h:[],onAssigneeChange:C,accessLevelOptions:m,fetchUsers:b})}))]}))}export{g as default};
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as n,jsx as t,Fragment as o}from"react/jsx-runtime";import{useMemo as i,useState as r,useEffect as l}from"react";import{Check as s,Edit2 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,m,b=f.level,v=f.id,k=f.accessLevelOptions,C=f.fetchUsers,D=f.onToggleMandatory,F=f.onDueDateChange,w=f.onAssigneesChange,L=f.onTitleChange;f.onDeleteLevel;var S=i(function(){return p()},[]),B="0"===v||(null!==(x=null===(h=b.assignees)||void 0===h?void 0:h.length)&&void 0!==x?x:0)>0,j=r(B),z=j[0],M=j[1],R=r(!1),I=R[0],E=R[1];return l(function(){var e,n;(null!==(n=null===(e=b.assignees)||void 0===e?void 0:e.length)&&void 0!==n?n:0)>0&&M(!0)},[b.assignees]),n("div",e({style:{width:"100%",border:"1.5px solid #E2E8F0",borderRadius:"5px"}},{children:[n("div",e({style:{display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#F8FAFC",padding:"0px 10px",minHeight:"48px"}},{children:[n("span",e({style:{display:"flex",alignItems:"center",gap:10,paddingLeft:"20px"}},{children:[t("span",e({style:{backgroundColor:S.backgroundColor,borderRadius:"10px",padding:"3px 12px",color:S.color,fontSize:"13px",fontWeight:500}},{children:b.headerName})),n("div",e({style:{display:"flex",alignItems:"center",gap:"6px"}},I?{children:[t("input",{type:"text",value:b.title||"",onChange:function(e){return null==L?void 0:L(e.target.value)},onBlur:function(){return E(!1)},onKeyDown:function(e){return"Enter"===e.key&&E(!1)},autoFocus:!0,style:{border:"none",borderBottom:"2px solid #3B82F6",outline:"none",fontSize:"13px",fontWeight:500,color:"#374151",background:"transparent",padding:"0 2px",width:"150px"}}),t("button",e({type:"button",onMouseDown:function(e){return e.preventDefault()},onClick:function(e){e.stopPropagation(),E(!1)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"}},{children:t(s,{size:16,color:"#10B981"})}))]}:{children:[t("span",e({style:{fontSize:"13px",fontWeight:500,color:"#374151"}},{children:b.title})),t("button",e({type:"button",onClick:function(e){e.stopPropagation(),E(!0)},style:{background:"none",border:"none",cursor:"pointer",display:"flex",padding:"2px"},title:"Edit Title"},{children:t(a,{size:14,color:"#6B7280"})}))]}))]})),n("div",e({style:{display:"flex",alignItems:"center",gap:16,marginLeft:"auto"}},{children:[z&&b.hasDueDate&&n(o,{children:[n("span",e({style:{color:"#6B7280"}},{children:["Due Date: ",b.isMandatory&&t("sup",e({style:{color:"red"}},{children:"*"}))]})),t(u,{value:null!==(y=b.dueDate)&&void 0!==y?y:null,onSet:F,id:v}),t(c,{})]}),t("div",e({style:{display:"flex",alignItems:"center"}},{children:n("button",e({type:"button",onClick:D,disabled:"0"===v,style:{position:"relative",width:"88px",height:"26px",border:"none",borderRadius:"999px",backgroundColor:b.isMandatory?"#5B4FE9":"#D1D5DB",cursor:"pointer",opacity:"0"===v?"50%":"100%",display:"flex",alignItems:"center",padding:"0 10px",transition:"all 0.2s ease",flexShrink:0}},{children:[t("span",{style:{position:"absolute",top:"3px",left:b.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)"}}),t("span",e({style:{color:"#FFF",fontSize:"10px",fontWeight:500,userSelect:"none",paddingLeft:b.isMandatory?"0":"18px",paddingRight:b.isMandatory?"18px":"0"}},{children:"Required"}))]}))})),t(d,{size:20,onClick:function(e){e.stopPropagation(),M(function(e){return!e})},style:{cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease",transform:z?"rotate(180deg)":"rotate(0deg)"}})]}))]})),z&&t("div",e({style:{width:"100%",height:"auto"}},{children:t(g,{assignees:null!==(m=b.assignees)&&void 0!==m?m:[],onAssigneeChange:w,accessLevelOptions:k,fetchUsers:C})}))]}))}export{f as default};
2
2
  //# sourceMappingURL=AssignLevelAccordions.js.map
@@ -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,qBAyJ7B"}
1
+ {"version":3,"file":"AssignLevelAccordions.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignLevelAccordions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAE5D,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,qBAiK7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"AssignReminderLevels.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderLevels.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAS,MAAM,eAAe,CAAC;AAsBjE,iBAAS,oBAAoB,CAAC,EAC1B,KAAK,EACL,MAAW,EACX,oBAA4B,EAC5B,cAAc,EACd,SAAS,EACT,uBAAuB,EACvB,UAAU,EACV,kBAAiD,EACjD,cAAc,EACd,iBAAiB,EACjB,YAAiB,EACjB,WAAW,GACd,EAAE,yBAAyB,qBAsN3B;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"AssignReminderLevels.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderLevels.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAS,MAAM,eAAe,CAAC;AAqBjE,iBAAS,oBAAoB,CAAC,EAC1B,KAAK,EACL,MAAW,EACX,oBAA4B,EAC5B,cAAc,EACd,SAAS,EACT,uBAAuB,EACvB,UAAU,EACV,kBAAiD,EACjD,cAAc,EACd,iBAAiB,EACjB,YAAiB,EACjB,WAAW,GACd,EAAE,yBAAyB,qBAsN3B;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"AssignReminderWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAE,0BAA0B,EAAyB,MAAM,eAAe,CAAC;AAoBlF,iBAAS,qBAAqB,CAAC,EAC3B,QAAa,EACb,UAAe,EACf,MAAM,EACN,SAAS,EACT,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,UAAU,EACV,MAAM,EACN,iBAAiB,EACjB,WAAW,EACX,YAAiB,EACjB,QAAgB,GACnB,EAAE,0BAA0B,qBAmL5B;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
1
+ {"version":3,"file":"AssignReminderWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/AssignReminders/AssignReminderWrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,OAAO,EAAE,0BAA0B,EAAyB,MAAM,eAAe,CAAC;AAmBlF,iBAAS,qBAAqB,CAAC,EAC3B,QAAa,EACb,UAAe,EACf,MAAM,EACN,SAAS,EACT,oBAAoB,EACpB,uBAAuB,EACvB,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,UAAU,EACV,MAAM,EACN,iBAAiB,EACjB,WAAW,EACX,YAAiB,EACjB,QAAgB,GACnB,EAAE,0BAA0B,qBAgL5B;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viswa-test/creative-workspace-ui-component",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "author": "Viswa Koduru",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -95,7 +95,7 @@
95
95
  "@babel/plugin-transform-runtime": "^7.25.9",
96
96
  "@babel/preset-react": "7.26.3",
97
97
  "@babel/preset-typescript": "7.26.0",
98
- "@e-llm-studio/requirement-ai": "^0.0.173",
98
+ "@e-llm-studio/requirement-ai": "^0.0.193",
99
99
  "@rollup/plugin-commonjs": "28.0.2",
100
100
  "@rollup/plugin-json": "6.1.0",
101
101
  "@rollup/plugin-node-resolve": "13.3.0",
@@ -122,7 +122,7 @@
122
122
  "typescript": "4.9.5"
123
123
  },
124
124
  "peerDependencies": {
125
- "@e-llm-studio/requirement-ai": "^0.0.173",
125
+ "@e-llm-studio/requirement-ai": "^0.0.193",
126
126
  "lucide-react": "^0.474.0",
127
127
  "primeicons": "^7.0.0",
128
128
  "primereact": "^10.9.7",