@dexma/ui-components 8.0.18 → 8.0.20
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.
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Theme } from '../../utils/theme';
|
|
2
|
+
export type TagSelectProps = {
|
|
3
|
+
dataId?: string;
|
|
4
|
+
theme?: Theme;
|
|
5
|
+
isLoading?: boolean;
|
|
6
|
+
onChange: (value: string[]) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
style?: React.CSSProperties;
|
|
10
|
+
};
|
|
11
|
+
export declare const TagSelect: import('react').ForwardRefExoticComponent<TagSelectProps & {
|
|
12
|
+
dataId?: string;
|
|
13
|
+
} & import('react').RefAttributes<unknown>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TagSelect';
|
package/dist/ui-components.es.js
CHANGED
|
@@ -65697,6 +65697,7 @@ const vwe = "50px", bwe = At.div`
|
|
|
65697
65697
|
nextDotsPageAriaLabel: w || "",
|
|
65698
65698
|
showSizeChanger: m,
|
|
65699
65699
|
pageSizeOptions: g,
|
|
65700
|
+
totalBoundaryShowSizeChanger: m ? 50 : 1 / 0,
|
|
65700
65701
|
onChange: (P, j) => {
|
|
65701
65702
|
M(j !== b ? 1 : P), L(j), C && C(j !== b ? 1 : P, j);
|
|
65702
65703
|
}
|
|
@@ -4577,7 +4577,7 @@ Valid keys: `+JSON.stringify(Object.keys(H),null," "));var K=ee(W,ne,Z,te,q+"."
|
|
|
4577
4577
|
transform: rotate(-90deg);
|
|
4578
4578
|
border-color: transparent;
|
|
4579
4579
|
}
|
|
4580
|
-
`,c4e=e=>{const{expanded:t,onExpand:n,record:r,expandIconAriaLabel:a}=e;return r.children||r.expandable?me.jsx(s4e,{children:me.jsx(Vo,{kind:"iconButton",className:`expand-button ${t?"button-no-expanded":"button-expanded"}`,iconAfter:"chevron_down",isCircle:!0,variant:"icon-secondary",onClick:i=>{i.stopPropagation(),n(r,i)},iconAriaLabel:a||""})}):me.jsx("span",{style:{height:"16px",width:"16px",display:"inline-block"}})},oT=e=>{const{isExpanded:t,isPaginated:n=!0,expandable:r,columns:a,dataSource:i,isLoading:o,showError:l,errorContent:s,dataId:c,rowsCanBeSelectAriaLabel:d,selectAllRowsAriaLabel:u,totalRegisters:p,currentPage:h=1,pageSize:b=10,showSizeChanger:m,pageSizeOptions:g=["5","10","20"],onPageChange:C,prevPageAriaLabel:y,nextPageAriaLabel:x,prevDotsPageAriaLabel:$,nextDotsPageAriaLabel:w}=e;z.useEffect(()=>{document.querySelectorAll(".ant-checkbox-inner").forEach(F=>F.setAttribute("aria-label",d||""));const j=document.querySelector(".ant-table-thead"),H=j==null?void 0:j.querySelector(".ant-checkbox-inner");H&&u&&H.setAttribute("aria-label",u)},[d,u]);const[E,M]=z.useState(h),[_,P]=z.useState(b),O=i??[],N=V2(e,["theme","columns","dataId","expandable","dataSource"]),T=z.useContext(pn)||Cn,I=()=>a?[{className:"expanded-first-column",...a[0]},...a.slice(1)]:[],L=o&&!l,A=!o&&l&&s,D=!L&&!A&&a&&i;r&&!r.expandIcon&&(r.expandIcon=c4e);const k=r?r.expandIcon:void 0;return me.jsx(va,{theme:{token:{colorPrimary:T.primary}},children:me.jsxs(r4e,{"data-testid":"table",theme:T,"data-id":c,children:[L&&me.jsx(i4e,{}),A&&me.jsxs(l4e,{children:[" ",s," "]}),D&&me.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[me.jsx($o,{expandable:{expandedRowRender:r==null?void 0:r.expandedRowRender,expandIcon:k},pagination:!1,columns:t?I():a,dataSource:O,...N}),n&&me.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:me.jsx(QR,{total:p,pageSize:b,current:E,previousPageAriaLabel:y||"",nextPageAriaLabel:x||"",prevDotsPageAriaLabel:$||"",nextDotsPageAriaLabel:w||"",showSizeChanger:m,pageSizeOptions:g,onChange:(R,j)=>{M(j!==b?1:R),P(j),C&&C(j!==b?1:R,j)}})})]})]})})},d4e=()=>aa(oT,"table"),u4e=({children:e,options:t})=>{if(!e)return null;let n;return t===void 0||t&&Object.entries(t).length===0?n=Cn:n={...Cn,...t,backgroundColorActive:t.backgroundColor?t.backgroundColor:t.primary},me.jsx(XN,{theme:n,children:e})},lT=Nt.div`
|
|
4580
|
+
`,c4e=e=>{const{expanded:t,onExpand:n,record:r,expandIconAriaLabel:a}=e;return r.children||r.expandable?me.jsx(s4e,{children:me.jsx(Vo,{kind:"iconButton",className:`expand-button ${t?"button-no-expanded":"button-expanded"}`,iconAfter:"chevron_down",isCircle:!0,variant:"icon-secondary",onClick:i=>{i.stopPropagation(),n(r,i)},iconAriaLabel:a||""})}):me.jsx("span",{style:{height:"16px",width:"16px",display:"inline-block"}})},oT=e=>{const{isExpanded:t,isPaginated:n=!0,expandable:r,columns:a,dataSource:i,isLoading:o,showError:l,errorContent:s,dataId:c,rowsCanBeSelectAriaLabel:d,selectAllRowsAriaLabel:u,totalRegisters:p,currentPage:h=1,pageSize:b=10,showSizeChanger:m,pageSizeOptions:g=["5","10","20"],onPageChange:C,prevPageAriaLabel:y,nextPageAriaLabel:x,prevDotsPageAriaLabel:$,nextDotsPageAriaLabel:w}=e;z.useEffect(()=>{document.querySelectorAll(".ant-checkbox-inner").forEach(F=>F.setAttribute("aria-label",d||""));const j=document.querySelector(".ant-table-thead"),H=j==null?void 0:j.querySelector(".ant-checkbox-inner");H&&u&&H.setAttribute("aria-label",u)},[d,u]);const[E,M]=z.useState(h),[_,P]=z.useState(b),O=i??[],N=V2(e,["theme","columns","dataId","expandable","dataSource"]),T=z.useContext(pn)||Cn,I=()=>a?[{className:"expanded-first-column",...a[0]},...a.slice(1)]:[],L=o&&!l,A=!o&&l&&s,D=!L&&!A&&a&&i;r&&!r.expandIcon&&(r.expandIcon=c4e);const k=r?r.expandIcon:void 0;return me.jsx(va,{theme:{token:{colorPrimary:T.primary}},children:me.jsxs(r4e,{"data-testid":"table",theme:T,"data-id":c,children:[L&&me.jsx(i4e,{}),A&&me.jsxs(l4e,{children:[" ",s," "]}),D&&me.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[me.jsx($o,{expandable:{expandedRowRender:r==null?void 0:r.expandedRowRender,expandIcon:k},pagination:!1,columns:t?I():a,dataSource:O,...N}),n&&me.jsx("div",{style:{display:"flex",justifyContent:"flex-end"},children:me.jsx(QR,{total:p,pageSize:b,current:E,previousPageAriaLabel:y||"",nextPageAriaLabel:x||"",prevDotsPageAriaLabel:$||"",nextDotsPageAriaLabel:w||"",showSizeChanger:m,pageSizeOptions:g,totalBoundaryShowSizeChanger:m?50:1/0,onChange:(R,j)=>{M(j!==b?1:R),P(j),C&&C(j!==b?1:R,j)}})})]})]})})},d4e=()=>aa(oT,"table"),u4e=({children:e,options:t})=>{if(!e)return null;let n;return t===void 0||t&&Object.entries(t).length===0?n=Cn:n={...Cn,...t,backgroundColorActive:t.backgroundColor?t.backgroundColor:t.primary},me.jsx(XN,{theme:n,children:e})},lT=Nt.div`
|
|
4581
4581
|
position: fixed;
|
|
4582
4582
|
z-index: 100000;
|
|
4583
4583
|
top: 0;
|