tcce-design-system 0.1.27 → 0.1.28
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.
|
@@ -12612,7 +12612,7 @@ const aw = C.div`
|
|
|
12612
12612
|
background-color: var(--color-blue-400);
|
|
12613
12613
|
`}
|
|
12614
12614
|
`, Ma = C.div`
|
|
12615
|
-
${vu}
|
|
12615
|
+
${vu};
|
|
12616
12616
|
justify-content: ${({ $align: e }) => e || "space-between"};
|
|
12617
12617
|
`, bu = C.button`
|
|
12618
12618
|
all: unset;
|
|
@@ -12974,28 +12974,30 @@ const Rw = (e) => {
|
|
|
12974
12974
|
$active: !!l,
|
|
12975
12975
|
colSpan: e.colSpan,
|
|
12976
12976
|
$width: e.getSize(),
|
|
12977
|
-
children: s ? /* @__PURE__ */
|
|
12978
|
-
|
|
12979
|
-
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
|
|
12991
|
-
|
|
12992
|
-
|
|
12993
|
-
|
|
12994
|
-
|
|
12995
|
-
|
|
12996
|
-
|
|
12997
|
-
|
|
12998
|
-
|
|
12977
|
+
children: s ? /* @__PURE__ */ M("section", { className: "flex", onClick: e.column.getToggleSortingHandler(), children: [
|
|
12978
|
+
/* @__PURE__ */ g(
|
|
12979
|
+
bu,
|
|
12980
|
+
{
|
|
12981
|
+
onClick: e.column.getToggleSortingHandler(),
|
|
12982
|
+
type: "button",
|
|
12983
|
+
"aria-label": `Sort by ${Qn(e.column.columnDef.header, e.getContext())}`,
|
|
12984
|
+
"aria-sort": c === "asc" ? "ascending" : c === "desc" ? "descending" : "none",
|
|
12985
|
+
children: /* @__PURE__ */ g(Ma, { $align: i?.align, children: /* @__PURE__ */ M(Va, { children: [
|
|
12986
|
+
Qn(e.column.columnDef.header, e.getContext()),
|
|
12987
|
+
/* @__PURE__ */ g(uw, { $direction: c, children: c === "none" ? /* @__PURE__ */ g(J, { component: Z0, size: "tn" }) : /* @__PURE__ */ g(J, { component: Y0, size: "tn" }) })
|
|
12988
|
+
] }) })
|
|
12989
|
+
}
|
|
12990
|
+
),
|
|
12991
|
+
a && /* @__PURE__ */ g(
|
|
12992
|
+
_o,
|
|
12993
|
+
{
|
|
12994
|
+
column: e.column,
|
|
12995
|
+
uniqueValues: u,
|
|
12996
|
+
selectedValues: r,
|
|
12997
|
+
onChange: o
|
|
12998
|
+
}
|
|
12999
|
+
)
|
|
13000
|
+
] }) : /* @__PURE__ */ g(Ma, { $align: i?.align, children: /* @__PURE__ */ M(Va, { children: [
|
|
12999
13001
|
Qn(e.column.columnDef.header, e.getContext()),
|
|
13000
13002
|
a && /* @__PURE__ */ g(
|
|
13001
13003
|
_o,
|
|
@@ -13049,8 +13051,8 @@ const Rw = (e) => {
|
|
|
13049
13051
|
border-left: 1px solid var(--color-main-light-borders);
|
|
13050
13052
|
border-top: 1px solid var(--color-main-light-borders);
|
|
13051
13053
|
transition: background-color 0.3s ease-out;
|
|
13052
|
-
`, Mw = C.
|
|
13053
|
-
${vu}
|
|
13054
|
+
`, Mw = C.section`
|
|
13055
|
+
${vu};
|
|
13054
13056
|
justify-content: ${({ $align: e }) => e === "center" ? "center" : e === "right" ? "flex-end" : "flex-start"};
|
|
13055
13057
|
|
|
13056
13058
|
width: 100%;
|
|
@@ -1712,7 +1712,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1712
1712
|
background-color: var(--color-blue-400);
|
|
1713
1713
|
`}
|
|
1714
1714
|
`,Vu=k.div`
|
|
1715
|
-
${Mu}
|
|
1715
|
+
${Mu};
|
|
1716
1716
|
justify-content: ${({$align:e})=>e||"space-between"};
|
|
1717
1717
|
`,Du=k.button`
|
|
1718
1718
|
all: unset;
|
|
@@ -1863,7 +1863,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1863
1863
|
align-items: center;
|
|
1864
1864
|
gap: 0.25rem;
|
|
1865
1865
|
width: 100%;
|
|
1866
|
-
`,Nu=({header:e})=>{const{size:t,getUniqueValues:n}=bn(),{selectedValues:r,handleChange:o}=pw(e.column.id),i=e.column.columnDef.meta,s=e.column.getCanSort()&&i?.sortable!==!1,a=i?.filterable!==!1&&e.column.getCanFilter(),l=e.column.getIsSorted(),c=l||"none",d=e.column.id,u=a?n(d):[];return g.jsx(ew,{$size:i?.size||t,$active:!!l,colSpan:e.colSpan,$width:e.getSize(),children:s?g.jsx(Du,{onClick:e.column.getToggleSortingHandler(),type:"button","aria-label":`Sort by ${mr(e.column.columnDef.header,e.getContext())}`,"aria-sort":c==="asc"?"ascending":c==="desc"?"descending":"none",children:g.jsx(Vu,{$align:i?.align,children:g.jsxs(_u,{children:[mr(e.column.columnDef.header,e.getContext()),g.jsx(tw,{$direction:c,children:c==="none"?g.jsx(K,{component:yy,size:"tn"}):g.jsx(K,{component:my,size:"tn"})}),a&&g.jsx(gr,{column:e.column,uniqueValues:u,selectedValues:r,onChange:o})]})
|
|
1866
|
+
`,Nu=({header:e})=>{const{size:t,getUniqueValues:n}=bn(),{selectedValues:r,handleChange:o}=pw(e.column.id),i=e.column.columnDef.meta,s=e.column.getCanSort()&&i?.sortable!==!1,a=i?.filterable!==!1&&e.column.getCanFilter(),l=e.column.getIsSorted(),c=l||"none",d=e.column.id,u=a?n(d):[];return g.jsx(ew,{$size:i?.size||t,$active:!!l,colSpan:e.colSpan,$width:e.getSize(),children:s?g.jsxs("section",{className:"flex",onClick:e.column.getToggleSortingHandler(),children:[g.jsx(Du,{onClick:e.column.getToggleSortingHandler(),type:"button","aria-label":`Sort by ${mr(e.column.columnDef.header,e.getContext())}`,"aria-sort":c==="asc"?"ascending":c==="desc"?"descending":"none",children:g.jsx(Vu,{$align:i?.align,children:g.jsxs(_u,{children:[mr(e.column.columnDef.header,e.getContext()),g.jsx(tw,{$direction:c,children:c==="none"?g.jsx(K,{component:yy,size:"tn"}):g.jsx(K,{component:my,size:"tn"})})]})})}),a&&g.jsx(gr,{column:e.column,uniqueValues:u,selectedValues:r,onChange:o})]}):g.jsx(Vu,{$align:i?.align,children:g.jsxs(_u,{children:[mr(e.column.columnDef.header,e.getContext()),a&&g.jsx(gr,{column:e.column,uniqueValues:u,selectedValues:r,onChange:o})]})})})},Ou=({headerGroup:e})=>g.jsx(Au,{children:e.headers.map(t=>g.jsx(Nu,{header:t},t.id))}),Bu=({headerGroups:e,stickyHeader:t,className:n})=>g.jsx(Z1,{$sticky:t,className:n,children:e.map(r=>g.jsx(Ou,{headerGroup:r},r.id))}),mw={sm:T`
|
|
1867
1867
|
${Kt.sm}
|
|
1868
1868
|
${V[14]}
|
|
1869
1869
|
`,md:T`
|
|
@@ -1893,8 +1893,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Bn]+=1);const _r={80:T`
|
|
|
1893
1893
|
border-left: 1px solid var(--color-main-light-borders);
|
|
1894
1894
|
border-top: 1px solid var(--color-main-light-borders);
|
|
1895
1895
|
transition: background-color 0.3s ease-out;
|
|
1896
|
-
`,yw=k.
|
|
1897
|
-
${Mu}
|
|
1896
|
+
`,yw=k.section`
|
|
1897
|
+
${Mu};
|
|
1898
1898
|
justify-content: ${({$align:e})=>e==="center"?"center":e==="right"?"flex-end":"flex-start"};
|
|
1899
1899
|
|
|
1900
1900
|
width: 100%;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.28",
|
|
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",
|