tcce-design-system 0.3.29 → 0.3.31

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.
@@ -9109,7 +9109,7 @@ const w0 = S.div`
9109
9109
  // Overlays / modals
9110
9110
  // Tooltips / menus that should appear above header/sidebar.
9111
9111
  TOOLTIP: 1202,
9112
- POPOVER_MENU: 1201,
9112
+ POPOVER_MENU: 9999,
9113
9113
  DIALOG_OVERLAY: 2001
9114
9114
  }, R0 = S(Ue.div)`
9115
9115
  position: fixed;
@@ -12873,7 +12873,7 @@ const Iv = Ln(Fv), Lv = Is`
12873
12873
  l.id
12874
12874
  );
12875
12875
  }),
12876
- e.length === 0 && /* @__PURE__ */ g("tr", { children: /* @__PURE__ */ g("td", { colSpan: 100, className: "text-main-grey py-4 text-center", children: "No results found" }) })
12876
+ e.length === 0 && /* @__PURE__ */ g("tr", { children: /* @__PURE__ */ g("td", { colSpan: 100, className: "text-main-grey py-4 text-center bg-main-white", children: "No results found" }) })
12877
12877
  ] }) });
12878
12878
  }, zv = S.section`
12879
12879
  display: flex;
@@ -12903,7 +12903,7 @@ const Iv = Ln(Fv), Lv = Is`
12903
12903
  color: ${({ $active: e }) => e ? "var(--color-main-white)" : "var(--color-main-blue-primary)"};
12904
12904
  border-radius: var(--border-radius-outline);
12905
12905
  cursor: ${({ $disabled: e }) => e ? "not-allowed" : "pointer"};
12906
- opacity: 1
12906
+ opacity: 1;
12907
12907
 
12908
12908
  &:hover:not(:disabled) {
12909
12909
  background-color: ${({ $active: e }) => e ? "var(--color-blue-600)" : "var(--color-main-blue-primary)"};
@@ -1134,7 +1134,7 @@
1134
1134
  flex-direction: column;
1135
1135
  gap: 0.5rem;
1136
1136
  width: 100%;
1137
- `,E0=m.memo(({inputId:e,label:t,size:n,required:o,disabled:r,hasError:i,errorMessage:s,isCheckbox:a=!1,className:l,labelClassName:c,messageErrorClassName:u,children:d})=>g.jsxs($0,{className:l,children:[t&&!a&&g.jsx(Tn,{htmlFor:e,size:n,required:o,disabled:r,className:c,children:t}),d,i&&s&&g.jsx(fr,{id:`${e}-error`,size:n,className:u,children:s})]})),Il=({id:e,name:t,label:n,type:o="text",size:r="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:c,radioName:u,pinLength:d=6,pinType:f="number",rows:h=4,className:p,inputClassName:y,labelClassName:b,messageErrorClassName:w,leftIcon:x,rightIcon:C,iconSize:T,iconColor:$,onOptionSelect:M,onRadioChange:F,onPinComplete:E,onChange:D,optionsClassName:P,optionClassName:R,..._})=>{const{field:k,hasError:A,errorMessage:O,inputId:L,ariaProps:G,handleStandardChange:H,handleTextAreaChange:Y,handleCheckboxChange:J,handleSelectChange:te,handleRadioChange:We,handlePinChange:j,handlePinComplete:Q}=C0({name:t,required:a,onChange:D,onOptionSelect:M,onRadioChange:F,onPinComplete:E,options:l}),K=e?.toString?.()||L;return g.jsx(E0,{inputId:K,label:n,size:r,required:a,disabled:s,hasError:A,errorMessage:O,isCheckbox:o==="checkbox",className:p,labelClassName:b,messageErrorClassName:w,children:g.jsx(Fl,{type:o,inputId:K,name:t,size:r,hasError:A,disabled:s,placeholder:i,inputClassName:y,fieldValue:k.value,ariaProps:G,options:l,onSelectChange:te,checkboxLabel:c,onCheckboxChange:J,radioName:u,onRadioChange:We,pinLength:d,pinType:f,rows:h,onPinChange:j,onPinComplete:Q,onStandardChange:H,onTextAreaChange:Y,leftIcon:x,rightIcon:C,iconSize:T,iconColor:$,optionsClassName:P,optionClassName:R,additionalProps:_})})},Ll={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},Tr={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},P0={fromBottom:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2,ease:"easeInOut"}},fromTop:{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.2,ease:"easeInOut"}},fromLeft:{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2,ease:"easeInOut"}},fromRight:{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.2,ease:"easeInOut"}}},Rl={initial:{height:0,opacity:0,y:-6},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:-6},transition:{duration:.2,ease:"easeInOut"}},je={HEADER:1e3,HEADER_DROPDOWN:1001,MOBILE_OPEN_BUTTON:1002,SIDEBAR_OVERLAY:1100,SIDEBAR_ASIDE:1101,TOOLTIP:1202,POPOVER_MENU:1201,DIALOG_OVERLAY:2001},k0=v(Ie.div)`
1137
+ `,E0=m.memo(({inputId:e,label:t,size:n,required:o,disabled:r,hasError:i,errorMessage:s,isCheckbox:a=!1,className:l,labelClassName:c,messageErrorClassName:u,children:d})=>g.jsxs($0,{className:l,children:[t&&!a&&g.jsx(Tn,{htmlFor:e,size:n,required:o,disabled:r,className:c,children:t}),d,i&&s&&g.jsx(fr,{id:`${e}-error`,size:n,className:u,children:s})]})),Il=({id:e,name:t,label:n,type:o="text",size:r="md",placeholder:i,disabled:s=!1,required:a=!1,options:l=[],checkboxLabel:c,radioName:u,pinLength:d=6,pinType:f="number",rows:h=4,className:p,inputClassName:y,labelClassName:b,messageErrorClassName:w,leftIcon:x,rightIcon:C,iconSize:T,iconColor:$,onOptionSelect:M,onRadioChange:F,onPinComplete:E,onChange:D,optionsClassName:P,optionClassName:R,..._})=>{const{field:k,hasError:A,errorMessage:O,inputId:L,ariaProps:G,handleStandardChange:H,handleTextAreaChange:Y,handleCheckboxChange:J,handleSelectChange:te,handleRadioChange:We,handlePinChange:j,handlePinComplete:Q}=C0({name:t,required:a,onChange:D,onOptionSelect:M,onRadioChange:F,onPinComplete:E,options:l}),K=e?.toString?.()||L;return g.jsx(E0,{inputId:K,label:n,size:r,required:a,disabled:s,hasError:A,errorMessage:O,isCheckbox:o==="checkbox",className:p,labelClassName:b,messageErrorClassName:w,children:g.jsx(Fl,{type:o,inputId:K,name:t,size:r,hasError:A,disabled:s,placeholder:i,inputClassName:y,fieldValue:k.value,ariaProps:G,options:l,onSelectChange:te,checkboxLabel:c,onCheckboxChange:J,radioName:u,onRadioChange:We,pinLength:d,pinType:f,rows:h,onPinChange:j,onPinComplete:Q,onStandardChange:H,onTextAreaChange:Y,leftIcon:x,rightIcon:C,iconSize:T,iconColor:$,optionsClassName:P,optionClassName:R,additionalProps:_})})},Ll={initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2,ease:"easeInOut"},layout:!1},Tr={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"}},P0={fromBottom:{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:20},transition:{duration:.2,ease:"easeInOut"}},fromTop:{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.2,ease:"easeInOut"}},fromLeft:{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},transition:{duration:.2,ease:"easeInOut"}},fromRight:{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:20},transition:{duration:.2,ease:"easeInOut"}}},Rl={initial:{height:0,opacity:0,y:-6},animate:{height:"auto",opacity:1,y:0},exit:{height:0,opacity:0,y:-6},transition:{duration:.2,ease:"easeInOut"}},je={HEADER:1e3,HEADER_DROPDOWN:1001,MOBILE_OPEN_BUTTON:1002,SIDEBAR_OVERLAY:1100,SIDEBAR_ASIDE:1101,TOOLTIP:1202,POPOVER_MENU:9999,DIALOG_OVERLAY:2001},k0=v(Ie.div)`
1138
1138
  position: fixed;
1139
1139
  inset: 0;
1140
1140
  z-index: ${je.DIALOG_OVERLAY};
@@ -2007,7 +2007,7 @@
2007
2007
  &:hover {
2008
2008
  background-color: transparent;
2009
2009
  }
2010
- `,by=e=>{const t=["60%","75%","85%","70%","80%"];return t[e%t.length]},xy=({columnCount:e,cellWidths:t,size:n="md"})=>g.jsx(wy,{role:"row","aria-busy":"true",children:Array.from({length:e}).map((o,r)=>g.jsx(yy,{$width:t?.[r]||by(r),$size:n},r))}),Bn=({rows:e,className:t,rowClassName:n,cellClassName:o,isLoading:r=!1,rowCount:i=5,columnCount:s=3})=>{const{size:a}=Ct();return g.jsx("tbody",{className:t,"aria-busy":r,children:r?Array.from({length:i}).map((l,c)=>g.jsx(xy,{columnCount:s,size:a},`skeleton-${c}`)):g.jsxs(g.Fragment,{children:[e.map(l=>{const c=typeof n=="function"?n(l):n,u=typeof o=="function"?o(l):o;return g.jsx(xc,{row:l,className:c,cellClassName:u},l.id)}),e.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:100,className:"text-main-grey py-4 text-center",children:"No results found"})})]})})},Cy=v.section`
2010
+ `,by=e=>{const t=["60%","75%","85%","70%","80%"];return t[e%t.length]},xy=({columnCount:e,cellWidths:t,size:n="md"})=>g.jsx(wy,{role:"row","aria-busy":"true",children:Array.from({length:e}).map((o,r)=>g.jsx(yy,{$width:t?.[r]||by(r),$size:n},r))}),Bn=({rows:e,className:t,rowClassName:n,cellClassName:o,isLoading:r=!1,rowCount:i=5,columnCount:s=3})=>{const{size:a}=Ct();return g.jsx("tbody",{className:t,"aria-busy":r,children:r?Array.from({length:i}).map((l,c)=>g.jsx(xy,{columnCount:s,size:a},`skeleton-${c}`)):g.jsxs(g.Fragment,{children:[e.map(l=>{const c=typeof n=="function"?n(l):n,u=typeof o=="function"?o(l):o;return g.jsx(xc,{row:l,className:c,cellClassName:u},l.id)}),e.length===0&&g.jsx("tr",{children:g.jsx("td",{colSpan:100,className:"text-main-grey py-4 text-center bg-main-white",children:"No results found"})})]})})},Cy=v.section`
2011
2011
  display: flex;
2012
2012
  align-items: center;
2013
2013
  gap: 0.5rem;
@@ -2035,7 +2035,7 @@
2035
2035
  color: ${({$active:e})=>e?"var(--color-main-white)":"var(--color-main-blue-primary)"};
2036
2036
  border-radius: var(--border-radius-outline);
2037
2037
  cursor: ${({$disabled:e})=>e?"not-allowed":"pointer"};
2038
- opacity: 1
2038
+ opacity: 1;
2039
2039
 
2040
2040
  &:hover:not(:disabled) {
2041
2041
  background-color: ${({$active:e})=>e?"var(--color-blue-600)":"var(--color-main-blue-primary)"};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.29",
6
+ "version": "0.3.31",
7
7
  "description": "This package provides reusable UI components to ensure consistency across all CRM frontend applications",
8
8
  "author": "BizAppsTotal <bizapps@tcce.biz>",
9
9
  "type": "module",
@@ -11,9 +11,10 @@
11
11
  "dist"
12
12
  ],
13
13
  "main": "./dist/tcce-design-system-components.umd.cjs",
14
- "module": "./dist/tcce-design-system-components.js",
14
+ "module": "./dist/tcce-design-system-componentsfdsafds.js",
15
15
  "exports": {
16
16
  ".": {
17
+
17
18
  "import": "./dist/tcce-design-system-components.js",
18
19
  "require": "./dist/tcce-design-system-components.umd.cjs"
19
20
  },