@hxtos/hx-components 0.9.1 → 0.9.2
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/index.es.js +4 -4
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -23395,8 +23395,8 @@ function tte({
|
|
|
23395
23395
|
className: et(
|
|
23396
23396
|
"px-2 py-3 text-xs text-left select-none border-b border-brand-disabled",
|
|
23397
23397
|
{
|
|
23398
|
-
"border-r": ue(G) || q(G),
|
|
23399
|
-
"border-l": ue(G) || de(G)
|
|
23398
|
+
"border-r border-brand-disabled": ue(G) || q(G),
|
|
23399
|
+
"border-l border-brand-disabled": ue(G) || de(G)
|
|
23400
23400
|
}
|
|
23401
23401
|
),
|
|
23402
23402
|
colSpan: G.colSpan,
|
|
@@ -23448,8 +23448,8 @@ function tte({
|
|
|
23448
23448
|
className: et(
|
|
23449
23449
|
"px-2 children:align-middle overflow-ellipsis whitespace-nowrap border-brand-disabled",
|
|
23450
23450
|
{
|
|
23451
|
-
"border-r": ae(G),
|
|
23452
|
-
"border-l": Y(G)
|
|
23451
|
+
"border-r border-brand-disabled": ae(G),
|
|
23452
|
+
"border-l border-brand-disabled": Y(G)
|
|
23453
23453
|
}
|
|
23454
23454
|
),
|
|
23455
23455
|
children: fy(G.column.columnDef.cell, G.getContext())
|
package/dist/index.umd.js
CHANGED
|
@@ -187,7 +187,7 @@ You should wrap it with \`css\` like this:
|
|
|
187
187
|
* LICENSE.md file in the root directory of this source tree.
|
|
188
188
|
*
|
|
189
189
|
* @license MIT
|
|
190
|
-
*/function Ux(e,t){return e?HX(e)?re.createElement(e,t):e:null}function HX(e){return WX(e)||typeof e=="function"||ZX(e)}function WX(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function ZX(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function XX(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=re.useState(()=>({current:MX(t)})),[r,i]=re.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:u=>{i(u),e.onStateChange==null||e.onStateChange(u)}})),n.current}function zX({setFilter:e,placeholder:t}){let n=0;function r(i){clearTimeout(n),n=setTimeout(()=>{e(i.target.value||void 0)},500)}return F.jsxs("div",{className:"flex items-center gap-2 px-2 my-2 bg-gray-100 border-b-2 border-gray-200 rounded-sm focus-within:border-0 focus-within:border-b focus-within:border-brand-primary focus-within:ring-brand-primary dark:bg-gray-700",children:[F.jsx(Xh,{className:"text-brand-secondary-text dark:text-brand-gray"}),F.jsx("input",{className:"flex-1 py-2 bg-transparent text-sm border-none appearance-none focus:outline-none focus:ring-0",placeholder:t,onChange:r})]})}function UX(e,t){return e?[{id:"select",sortingFn:!1,header:({table:r})=>F.jsx(Yx,{checked:r.getIsAllRowsSelected(),indeterminate:r.getIsSomeRowsSelected(),onChange:r.getToggleAllRowsSelectedHandler()}),cell:({row:r})=>F.jsx("div",{className:"px-1",children:F.jsx(Yx,{checked:r.getIsSelected(),disabled:!r.getCanSelect(),indeterminate:r.getIsSomeSelected(),onChange:r.getToggleSelectedHandler()})})},...t]:t}function Yx({indeterminate:e,className:t="w-5 h-5 rounded-md border-brand-primary border-1 text-brand-primary focus:ring-0",...n}){const r=b.useRef(null);return b.useEffect(()=>{typeof e=="boolean"&&(r.current.indeterminate=!n.checked&&e)},[r,e]),F.jsx("input",{type:"checkbox",ref:r,className:t+" cursor-pointer",...n})}function YX(e){var n;const t=((n=e==null?void 0:e.subHeaders)==null?void 0:n.length)>0;return console.log("isSubHeader",t),t}function Jx(e){var r,i,a,u,l,c,f;const t=((a=(i=(r=e==null?void 0:e.column)==null?void 0:r.parent)==null?void 0:i.columns)==null?void 0:a.length)-1,n=((c=(l=(u=e==null?void 0:e.column)==null?void 0:u.parent)==null?void 0:l.columns[t])==null?void 0:c.id)===((f=e==null?void 0:e.column)==null?void 0:f.id);return console.log("isBorderRight",n),n}function Kx(e){var n,r,i,a;const t=((i=(r=(n=e==null?void 0:e.column)==null?void 0:n.parent)==null?void 0:r.columns[0])==null?void 0:i.id)===((a=e==null?void 0:e.column)==null?void 0:a.id);return console.log("isBorderLeft",t),t}function JX({data:e,columns:t,isFetching:n,searchable:r=!0,isRowSelection:i=!1,totalRecords:a,spinnerMessage:u="Carregando...",noRecordsMessage:l="Nenhuma entrada encontrada.",searchPlaceholder:c="Buscar...",itemsPerPageMessage:f="Itens por página:",pageSeparatorMessage:p="de",onRowSelection:h,renderSubComponent:m,getRowCanExpand:v,onSearch:S,onSize:C,onPage:E,onColumn:P,onSort:M}){const $="onChange",[B,N]=b.useState([]),[U,X]=b.useState(0),[ee,fe]=b.useState(!1),[Oe,ze]=b.useState(!1),[He,ge]=b.useState({}),we=XX({data:e,columns:UX(i,t),columnResizeMode:$,initialState:{pagination:{pageSize:5}},defaultColumn:{minSize:100,size:150,maxSize:1e3},state:{rowSelection:He,sorting:B},getRowCanExpand:v,onRowSelectionChange:ge,getCoreRowModel:$X(),getFilteredRowModel:BX(),getPaginationRowModel:GX(),onSortingChange:N,getSortedRowModel:kX(),getExpandedRowModel:jX()}),xe=we.getState().pagination.pageSize;function _e(G,q){function ae(){const he=G.column.getIsSorted();return he?he==="desc"?F.jsx(Z2,{}):F.jsx(W2,{}):F.jsx(X2,{})}function Y(he){const be=he.column.getIsSorted();M(typeof be=="boolean"?"":be),P(he.id)}function ue(he){return YX(he)}function Q(he){return Jx(he)}function de(he){return Kx(he)}return F.jsx(F.Fragment,{children:F.jsx("th",{className:et("px-2 py-3 text-xs text-left select-none border-b border-brand-disabled",{"border-r":ue(G)||Q(G),"border-l":ue(G)||de(G)}),colSpan:G.colSpan,style:{width:De(G)},children:F.jsxs("div",{className:"flex items-center justify-between",children:[F.jsxs("div",{className:"flex flex-row items-center space-x-4 text-sm font-bold text-brand-primary",children:[F.jsx("span",{className:"w-full",children:Ux(G.column.columnDef.header,G.getContext())}),G.column.columnDef.sortingFn&&!ue(G)&&F.jsx("span",{className:`px-2 ${G.column.getCanSort()?"cursor-pointer":""}`,onClick:async he=>{await G.column.getToggleSortingHandler()(he),Y(G)},children:ae()})]}),G.id!=="select"&&F.jsx("div",{onMouseDown:G.getResizeHandler(),onTouchStart:G.getResizeHandler(),className:"w-3 h-full text-brand-gray cursor-col-resize",children:F.jsx(H2,{})})]})},`thead-th-${G.id}-${q}`)})}function De(G){return G.id==="select"?50:G.getSize()}function Ye(G){return F.jsx("tr",{className:"mx-auto",children:G.headers.map(_e)},`thead-tr-${G.id}`)}function T(G,q){function ae(ue){return Jx(ue)}function Y(ue){return Kx(ue)}return F.jsx("td",{className:et("px-2 children:align-middle overflow-ellipsis whitespace-nowrap border-brand-disabled",{"border-r":ae(G),"border-l":Y(G)}),children:Ux(G.column.columnDef.cell,G.getContext())},`tbody-td-${G.id}-${q}`)}function _(G,q){return F.jsxs(b.Fragment,{children:[F.jsx("tr",{className:"mx-auto children:text-sm children:py-3 children:text-brand-text dark:children:text-white children:last-of-type:border-b children:last-of-type:border-brand-disabled",children:G.getVisibleCells().map(T)},`tbody-tr-${G.id}-${q}`),G.getIsExpanded()?F.jsx("tr",{children:F.jsx("td",{colSpan:G.getVisibleCells().length,children:m({row:G})})}):null]},`tbody-fragmment-${G.id}-${q}`)}function R(G){E(G),X(G)}function O(G){C(Number(G.target.value)),we.setPageSize(Number(G.target.value))}function y(G){R(0),S(G)}function H(){R(0)}function te(){const G=U-1;R(G)}function oe(){const G=U+1;R(G)}function z(){const G=Math.ceil(a/xe)-1;R(G)}function J(){return h(we.getSelectedRowModel().flatRows)}return b.useEffect(()=>{function G(){if(U===0){fe(!1);return}fe(!0)}function q(){if(U>=Math.ceil(a/xe)-1){ze(!1);return}ze(!0)}G(),q()},[U,a]),F.jsxs("div",{className:"text-black dark:text-white",children:[r&&F.jsx(zX,{setFilter:y,placeholder:c}),n&&F.jsx("div",{className:"flex items-center justify-center mt-10",children:F.jsx(op,{size:50,children:u})}),e.length===0&&!n&&F.jsx("p",{className:"text-sm text-center",children:l}),e.length>0&&!n&&F.jsx("div",{className:"flex justify-center items-center",children:F.jsx("div",{className:"overflow-x-auto",children:F.jsxs("table",{style:{width:we.getCenterTotalSize()},children:[F.jsx("thead",{children:we.getHeaderGroups().map(Ye)}),F.jsx("tbody",{className:"divide-y divide-brand-disabled",children:we.getRowModel().rows.map(_)})]})})}),F.jsxs("div",{className:"flex items-center justify-end gap-2 px-2 py-2 my-2 text-sm text-brand-text dark:text-white",children:[F.jsx("p",{children:f}),F.jsx("select",{className:et("w-20 border-0 border-b border-brand-disabled focus:outline-none focus:ring-0 focus:border-l-0 focus:border-b focus:border-brand-primary","bg-brand-light-gray dark:bg-brand-dark-gray-dark","text-brand-secondary-text dark:text-brand-gray"),value:xe,onChange:O,children:[5,10,25,50].map(G=>F.jsx("option",{value:G,children:G},`page-size-option-${G}`))}),F.jsxs("span",{children:[U+1," ",p," ",Math.ceil(a/xe)]}),F.jsx("button",{onClick:H,disabled:!ee,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(j2,{})}),F.jsx("button",{onClick:te,disabled:!ee,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(Wh,{})}),F.jsx("button",{onClick:oe,disabled:!Oe,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(Zh,{})}),F.jsx("button",{onClick:z,disabled:!Oe,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(G2,{})})]}),i&&h&&J()]})}const KX=({children:e,tooltip:t})=>F.jsxs("div",{className:"relative inline-block group",children:[e,F.jsx("span",{className:`${et("invisible","group-hover:visible","opacity-0","group-hover:opacity-100","z-0","group-hover:z-50","transition","transform","left-1/2","text-xs","-top-9","-translate-x-1/2","bg-brand-text","text-white","p-2","rounded","absolute","whitespace-nowrap")}`,children:t})]}),Tp=({Container:e,children:t,fileName:n,disabled:r,onChange:i,accept:a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"})=>{const u=b.useRef(null),l=()=>{var f;return(f=u.current)==null?void 0:f.click()},c=f=>{const p=f.target;p.value=""};return F.jsxs(F.Fragment,{children:[F.jsx(e,{type:"button",disabled:r,onClick:l,fileName:n,children:t}),F.jsx("input",{ref:u,type:"file",className:"hidden",accept:a,onClick:c,onChange:f=>{i(f.target.files[0])}})]})},qX=e=>F.jsx(Yi,{variant:"primary",...e}),QX=e=>F.jsx(Yi,{variant:"secondary",...e}),ez=({children:e,disabled:t,fileName:n,...r})=>F.jsx("button",{disabled:t,className:`relative ${t?"bg-gray-300 text-white cursor-not-allowed border-2 border-gray-900 border-dashed":"bg-white text-primary-500 hover:bg-primary-100 hover:mb-0 border-2 border-gray-800 border-dashed cursor-pointer"}
|
|
190
|
+
*/function Ux(e,t){return e?HX(e)?re.createElement(e,t):e:null}function HX(e){return WX(e)||typeof e=="function"||ZX(e)}function WX(e){return typeof e=="function"&&(()=>{const t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function ZX(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function XX(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=re.useState(()=>({current:MX(t)})),[r,i]=re.useState(()=>n.current.initialState);return n.current.setOptions(a=>({...a,...e,state:{...r,...e.state},onStateChange:u=>{i(u),e.onStateChange==null||e.onStateChange(u)}})),n.current}function zX({setFilter:e,placeholder:t}){let n=0;function r(i){clearTimeout(n),n=setTimeout(()=>{e(i.target.value||void 0)},500)}return F.jsxs("div",{className:"flex items-center gap-2 px-2 my-2 bg-gray-100 border-b-2 border-gray-200 rounded-sm focus-within:border-0 focus-within:border-b focus-within:border-brand-primary focus-within:ring-brand-primary dark:bg-gray-700",children:[F.jsx(Xh,{className:"text-brand-secondary-text dark:text-brand-gray"}),F.jsx("input",{className:"flex-1 py-2 bg-transparent text-sm border-none appearance-none focus:outline-none focus:ring-0",placeholder:t,onChange:r})]})}function UX(e,t){return e?[{id:"select",sortingFn:!1,header:({table:r})=>F.jsx(Yx,{checked:r.getIsAllRowsSelected(),indeterminate:r.getIsSomeRowsSelected(),onChange:r.getToggleAllRowsSelectedHandler()}),cell:({row:r})=>F.jsx("div",{className:"px-1",children:F.jsx(Yx,{checked:r.getIsSelected(),disabled:!r.getCanSelect(),indeterminate:r.getIsSomeSelected(),onChange:r.getToggleSelectedHandler()})})},...t]:t}function Yx({indeterminate:e,className:t="w-5 h-5 rounded-md border-brand-primary border-1 text-brand-primary focus:ring-0",...n}){const r=b.useRef(null);return b.useEffect(()=>{typeof e=="boolean"&&(r.current.indeterminate=!n.checked&&e)},[r,e]),F.jsx("input",{type:"checkbox",ref:r,className:t+" cursor-pointer",...n})}function YX(e){var n;const t=((n=e==null?void 0:e.subHeaders)==null?void 0:n.length)>0;return console.log("isSubHeader",t),t}function Jx(e){var r,i,a,u,l,c,f;const t=((a=(i=(r=e==null?void 0:e.column)==null?void 0:r.parent)==null?void 0:i.columns)==null?void 0:a.length)-1,n=((c=(l=(u=e==null?void 0:e.column)==null?void 0:u.parent)==null?void 0:l.columns[t])==null?void 0:c.id)===((f=e==null?void 0:e.column)==null?void 0:f.id);return console.log("isBorderRight",n),n}function Kx(e){var n,r,i,a;const t=((i=(r=(n=e==null?void 0:e.column)==null?void 0:n.parent)==null?void 0:r.columns[0])==null?void 0:i.id)===((a=e==null?void 0:e.column)==null?void 0:a.id);return console.log("isBorderLeft",t),t}function JX({data:e,columns:t,isFetching:n,searchable:r=!0,isRowSelection:i=!1,totalRecords:a,spinnerMessage:u="Carregando...",noRecordsMessage:l="Nenhuma entrada encontrada.",searchPlaceholder:c="Buscar...",itemsPerPageMessage:f="Itens por página:",pageSeparatorMessage:p="de",onRowSelection:h,renderSubComponent:m,getRowCanExpand:v,onSearch:S,onSize:C,onPage:E,onColumn:P,onSort:M}){const $="onChange",[B,N]=b.useState([]),[U,X]=b.useState(0),[ee,fe]=b.useState(!1),[Oe,ze]=b.useState(!1),[He,ge]=b.useState({}),we=XX({data:e,columns:UX(i,t),columnResizeMode:$,initialState:{pagination:{pageSize:5}},defaultColumn:{minSize:100,size:150,maxSize:1e3},state:{rowSelection:He,sorting:B},getRowCanExpand:v,onRowSelectionChange:ge,getCoreRowModel:$X(),getFilteredRowModel:BX(),getPaginationRowModel:GX(),onSortingChange:N,getSortedRowModel:kX(),getExpandedRowModel:jX()}),xe=we.getState().pagination.pageSize;function _e(G,q){function ae(){const he=G.column.getIsSorted();return he?he==="desc"?F.jsx(Z2,{}):F.jsx(W2,{}):F.jsx(X2,{})}function Y(he){const be=he.column.getIsSorted();M(typeof be=="boolean"?"":be),P(he.id)}function ue(he){return YX(he)}function Q(he){return Jx(he)}function de(he){return Kx(he)}return F.jsx(F.Fragment,{children:F.jsx("th",{className:et("px-2 py-3 text-xs text-left select-none border-b border-brand-disabled",{"border-r border-brand-disabled":ue(G)||Q(G),"border-l border-brand-disabled":ue(G)||de(G)}),colSpan:G.colSpan,style:{width:De(G)},children:F.jsxs("div",{className:"flex items-center justify-between",children:[F.jsxs("div",{className:"flex flex-row items-center space-x-4 text-sm font-bold text-brand-primary",children:[F.jsx("span",{className:"w-full",children:Ux(G.column.columnDef.header,G.getContext())}),G.column.columnDef.sortingFn&&!ue(G)&&F.jsx("span",{className:`px-2 ${G.column.getCanSort()?"cursor-pointer":""}`,onClick:async he=>{await G.column.getToggleSortingHandler()(he),Y(G)},children:ae()})]}),G.id!=="select"&&F.jsx("div",{onMouseDown:G.getResizeHandler(),onTouchStart:G.getResizeHandler(),className:"w-3 h-full text-brand-gray cursor-col-resize",children:F.jsx(H2,{})})]})},`thead-th-${G.id}-${q}`)})}function De(G){return G.id==="select"?50:G.getSize()}function Ye(G){return F.jsx("tr",{className:"mx-auto",children:G.headers.map(_e)},`thead-tr-${G.id}`)}function T(G,q){function ae(ue){return Jx(ue)}function Y(ue){return Kx(ue)}return F.jsx("td",{className:et("px-2 children:align-middle overflow-ellipsis whitespace-nowrap border-brand-disabled",{"border-r border-brand-disabled":ae(G),"border-l border-brand-disabled":Y(G)}),children:Ux(G.column.columnDef.cell,G.getContext())},`tbody-td-${G.id}-${q}`)}function _(G,q){return F.jsxs(b.Fragment,{children:[F.jsx("tr",{className:"mx-auto children:text-sm children:py-3 children:text-brand-text dark:children:text-white children:last-of-type:border-b children:last-of-type:border-brand-disabled",children:G.getVisibleCells().map(T)},`tbody-tr-${G.id}-${q}`),G.getIsExpanded()?F.jsx("tr",{children:F.jsx("td",{colSpan:G.getVisibleCells().length,children:m({row:G})})}):null]},`tbody-fragmment-${G.id}-${q}`)}function R(G){E(G),X(G)}function O(G){C(Number(G.target.value)),we.setPageSize(Number(G.target.value))}function y(G){R(0),S(G)}function H(){R(0)}function te(){const G=U-1;R(G)}function oe(){const G=U+1;R(G)}function z(){const G=Math.ceil(a/xe)-1;R(G)}function J(){return h(we.getSelectedRowModel().flatRows)}return b.useEffect(()=>{function G(){if(U===0){fe(!1);return}fe(!0)}function q(){if(U>=Math.ceil(a/xe)-1){ze(!1);return}ze(!0)}G(),q()},[U,a]),F.jsxs("div",{className:"text-black dark:text-white",children:[r&&F.jsx(zX,{setFilter:y,placeholder:c}),n&&F.jsx("div",{className:"flex items-center justify-center mt-10",children:F.jsx(op,{size:50,children:u})}),e.length===0&&!n&&F.jsx("p",{className:"text-sm text-center",children:l}),e.length>0&&!n&&F.jsx("div",{className:"flex justify-center items-center",children:F.jsx("div",{className:"overflow-x-auto",children:F.jsxs("table",{style:{width:we.getCenterTotalSize()},children:[F.jsx("thead",{children:we.getHeaderGroups().map(Ye)}),F.jsx("tbody",{className:"divide-y divide-brand-disabled",children:we.getRowModel().rows.map(_)})]})})}),F.jsxs("div",{className:"flex items-center justify-end gap-2 px-2 py-2 my-2 text-sm text-brand-text dark:text-white",children:[F.jsx("p",{children:f}),F.jsx("select",{className:et("w-20 border-0 border-b border-brand-disabled focus:outline-none focus:ring-0 focus:border-l-0 focus:border-b focus:border-brand-primary","bg-brand-light-gray dark:bg-brand-dark-gray-dark","text-brand-secondary-text dark:text-brand-gray"),value:xe,onChange:O,children:[5,10,25,50].map(G=>F.jsx("option",{value:G,children:G},`page-size-option-${G}`))}),F.jsxs("span",{children:[U+1," ",p," ",Math.ceil(a/xe)]}),F.jsx("button",{onClick:H,disabled:!ee,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(j2,{})}),F.jsx("button",{onClick:te,disabled:!ee,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(Wh,{})}),F.jsx("button",{onClick:oe,disabled:!Oe,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(Zh,{})}),F.jsx("button",{onClick:z,disabled:!Oe,className:"text-gray-500 disabled:text-gray-300 hover:text-gray-700",children:F.jsx(G2,{})})]}),i&&h&&J()]})}const KX=({children:e,tooltip:t})=>F.jsxs("div",{className:"relative inline-block group",children:[e,F.jsx("span",{className:`${et("invisible","group-hover:visible","opacity-0","group-hover:opacity-100","z-0","group-hover:z-50","transition","transform","left-1/2","text-xs","-top-9","-translate-x-1/2","bg-brand-text","text-white","p-2","rounded","absolute","whitespace-nowrap")}`,children:t})]}),Tp=({Container:e,children:t,fileName:n,disabled:r,onChange:i,accept:a="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"})=>{const u=b.useRef(null),l=()=>{var f;return(f=u.current)==null?void 0:f.click()},c=f=>{const p=f.target;p.value=""};return F.jsxs(F.Fragment,{children:[F.jsx(e,{type:"button",disabled:r,onClick:l,fileName:n,children:t}),F.jsx("input",{ref:u,type:"file",className:"hidden",accept:a,onClick:c,onChange:f=>{i(f.target.files[0])}})]})},qX=e=>F.jsx(Yi,{variant:"primary",...e}),QX=e=>F.jsx(Yi,{variant:"secondary",...e}),ez=({children:e,disabled:t,fileName:n,...r})=>F.jsx("button",{disabled:t,className:`relative ${t?"bg-gray-300 text-white cursor-not-allowed border-2 border-gray-900 border-dashed":"bg-white text-primary-500 hover:bg-primary-100 hover:mb-0 border-2 border-gray-800 border-dashed cursor-pointer"}
|
|
191
191
|
flex items-center justify-center w-full h-full p-2 overflow-hidden transition-all duration-300 ease-out transform focus:outline-none rounded-2xl border-opacity-20 dark:bg-brand-dark-gray-dark`,...r,children:F.jsxs("div",{className:`flex ${n?"flex-row":"flex-col"} items-center justify-center`,children:[F.jsx("div",{children:n?F.jsx(F2,{}):F.jsx(J2,{})}),F.jsx("div",{children:F.jsx("span",{className:"w-full text-sm text-center text-gray-900 dark:text-brand-secondary-text",children:e})})]})}),tz={PrimaryButton:e=>F.jsx(Tp,{...e,Container:qX}),OutlineButton:e=>F.jsx(Tp,{...e,Container:QX}),BoxButton:e=>F.jsx(Tp,{...e,Container:ez})};var Yu={exports:{}};/**
|
|
192
192
|
* @license
|
|
193
193
|
* Lodash <https://lodash.com/>
|