freemium-ui 2.1.0-alpha.12 → 2.1.0-alpha.13
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/lib/Accordion/{index-hvUji5Nt.js → index-BKhVIoxF.js} +2 -2
- package/lib/Accordion/index.js +1 -1
- package/lib/Alert/{index-BCHNrxNW.js → index-CZXYpsOs.js} +1 -1
- package/lib/Alert/index.js +1 -1
- package/lib/AutoComplete/{index-DWKI-Bc0.js → index-B9TZqlI1.js} +1 -1
- package/lib/AutoComplete/index.js +1 -1
- package/lib/BoxedRadio/{index-BY5Xc4Vk.js → index-CVxlY3rB.js} +2 -2
- package/lib/BoxedRadio/index.js +1 -1
- package/lib/ButtonDropdown/{index-CD2zfRM3.js → index-CnaJfrKq.js} +2 -2
- package/lib/ButtonDropdown/index.js +1 -1
- package/lib/Checkbox/{index-B6JlcoSN.js → index-BsjmV0hy.js} +4 -4
- package/lib/Checkbox/index.js +1 -1
- package/lib/Combination/{index-BJuS1U3T.js → index-b5frlUiu.js} +1 -1
- package/lib/Confirmation/{index-CPWGifNc.js → index-CW5zlCS4.js} +1 -1
- package/lib/Confirmation/index.js +1 -1
- package/lib/CustomizeColumns/{index-ZqIsWwEo.js → index-etfd-otK.js} +6 -6
- package/lib/Drawer/{index-sOajAmfB.js → index-D3U74w0b.js} +1 -1
- package/lib/Drawer/index.js +1 -1
- package/lib/Dropdown/index-De1d7eOv.js +1 -0
- package/lib/Dropdown/index.js +1 -1
- package/lib/Loader/{index-DZ9I1n1Y.js → index-ZyKVoj4A.js} +1 -1
- package/lib/Loader/index.js +1 -1
- package/lib/Menu/{index-BWXpPd7b.js → index-D_xw-X-N.js} +1 -1
- package/lib/Menu/index.js +1 -1
- package/lib/Modal/{index-DceQfawy.js → index-C7St4LMx.js} +1 -1
- package/lib/Modal/index.js +1 -1
- package/lib/MultiSelectDropdown/{index-B--Ddc1y.js → index-C-QyjthX.js} +2 -2
- package/lib/MultiSelectDropdown/index.js +1 -1
- package/lib/Pickers/index.js +1 -1
- package/lib/Popover/{index-By-CG_W2.js → index-Cia2Ay5Z.js} +4 -4
- package/lib/Popover/index.js +1 -1
- package/lib/Radio/index.js +1 -1
- package/lib/RadioGroup/{index-Cd7kQVx2.js → index-B6ZQusN4.js} +2 -2
- package/lib/SortDropdown/index-B5GtlOVB.js +1 -0
- package/lib/SortDropdown/index.js +1 -1
- package/lib/Table/{index-DnCBne9j.js → index-DU5Q3ZRb.js} +1 -1
- package/lib/Table/index.js +1 -1
- package/lib/Tabs/{index-CZ_BWlxa.js → index-gIeNhq6G.js} +3 -3
- package/lib/Tabs/index.js +1 -1
- package/lib/Tag/{index-ByBvlE_y.js → index-niIm7trf.js} +2 -2
- package/lib/Tag/index.js +1 -1
- package/lib/ThemeProvider/index-BcubY7n7.js +16 -0
- package/lib/ThemeProvider/index.d.ts +116 -2
- package/lib/ThemeProvider/index.js +1 -1
- package/lib/TimePicker/{index-808D7rTU.js → index-DjYMzAV-.js} +1 -1
- package/lib/Toast/index.js +1 -1
- package/lib/ToastProvider/{index-CD9U0zSi.js → index-ypcx69bc.js} +14 -14
- package/lib/Toggle/{index-Bdoyj004.js → index-C5YDjm0m.js} +1 -1
- package/lib/Toggle/index.js +1 -1
- package/lib/Tooltip/{index-CZ7Ml1ii.js → index-CR3v-B25.js} +3 -3
- package/lib/Tooltip/index.js +1 -1
- package/lib/WorkspaceTable/{index-r1tFDdhB.js → index-DxZwUTpN.js} +1 -1
- package/lib/WorkspaceTable/index.js +1 -1
- package/lib/allPaths/{index-diXESfUu.js → index-CdLNHuqE.js} +1 -1
- package/lib/allPathsLoader/{index-xDGJix7X.js → index-DpsnKKV5.js} +1 -1
- package/lib/{index-DUUx2Zie.js → index-BBZ7Acl3.js} +1 -1
- package/lib/{index-Bt8YEIBk.js → index-Ch9hqhMW.js} +5 -5
- package/lib/{index-D_NmNz6K.js → index-CpKjHgOm.js} +5 -5
- package/lib/{index-DsMsIF0a.js → index-D76LBwe9.js} +1 -1
- package/lib/{index-BtogZdFr.js → index-DSFkVExg.js} +1 -1
- package/lib/{index-CGIN8I3H.js → index-DmrSN1YW.js} +1 -1
- package/lib/{index-CoSaDZpU.js → index-Lgc6rwoR.js} +1 -1
- package/lib/index.d.ts +38 -139
- package/lib/index.js +1 -11
- package/lib/splitPathsBySizeLoader/{index-CmRhWgGZ.js → index-DVKxXjm3.js} +1 -1
- package/lib/use-toasts/index-u9NYa3aT.js +1 -0
- package/package.json +1 -1
- package/lib/Dropdown/index-BG7Yfr7R.js +0 -1
- package/lib/SortDropdown/index-Cd_neGbn.js +0 -1
- package/lib/ThemeProvider/index-BsIPNav6.js +0 -6
- package/lib/use-toasts/index-D3l-oeRc.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as s,j as e}from"../styled-components.browser.esm/index-8pR-v2ng.js";import o from"react";import{T as r}from"../index-Dv0uT_-u.js";import{a as n,b as a,c as i,d as c,D as d,e as t}from"../index-CpKjHgOm.js";import{T as m}from"../TickIcon/index-De06qfuL.js";const l=l=>{const{trigger:p,idAccessor:j="id",nameAccessor:x="name",onSelect:f,isDisableSortDropdown:h=!1,options:b=[],value:D}=l,u=s();return e.jsxs(n,{children:[e.jsx(a,{asChild:!0,disabled:h,children:e.jsx(r,{children:p})}),e.jsx(i,{children:e.jsx(c,{side:"bottom",sideOffset:4,align:"center",className:"DropdownMenuContent",children:b.map(((s,r)=>e.jsxs(o.Fragment,{children:[s.map((s=>e.jsxs(d,{id:s?.[j],disabled:s?.disabled,className:"DropdownMenuItem",onSelect:()=>{const e=D??[];e[r]=s?.[j],f?.(e)},children:[s?.[x],D?.[r]===s?.[j]&&e.jsx(m,{fill:u.colors.common.accent})]},s?.[j]))),e.jsx(t,{className:"DropdownMenuSeparator"})]},r)))})})]})};export{l as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{S as default}from"./index-
|
|
1
|
+
export{S as default}from"./index-B5GtlOVB.js";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"react";import"../index-Dv0uT_-u.js";import"../index-CMYH5FSo.js";import"react-dom";import"../index-Bw1WW_qt.js";import"../keyframes/index-CVfQXEtZ.js";import"../index-CpKjHgOm.js";import"../index-D4pfkNFk.js";import"../index-BCBGGtXO.js";import"../index-BJXW8qXz.js";import"../index-BxvGNAuC.js";import"../index-DmrSN1YW.js";import"../Combination/index-b5frlUiu.js";import"../index-DSFkVExg.js";import"../index-Bj96NGNJ.js";import"../index-BrmsftDQ.js";import"../index-BBZ7Acl3.js";import"../index-DE6Djr2P.js";import"../TickIcon/index-De06qfuL.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e,e as n}from"../styled-components.browser.esm/index-8pR-v2ng.js";import i from"react";import{M as a,u as s,T as l,a as t,b as o,c as r,x as d,d as c,C as g,e as h,y as m,f as x,g as p,h as j,S as u,i as C,j as b,k as f,l as w,m as S,n as y,o as v,p as P,B as k,q as N,r as M,s as I,t as O,v as R,w as F}from"../CustomizeColumns/index-
|
|
1
|
+
import{j as e,e as n}from"../styled-components.browser.esm/index-8pR-v2ng.js";import i from"react";import{M as a,u as s,T as l,a as t,b as o,c as r,x as d,d as c,C as g,e as h,y as m,f as x,g as p,h as j,S as u,i as C,j as b,k as f,l as w,m as S,n as y,o as v,p as P,B as k,q as N,r as M,s as I,t as O,v as R,w as F}from"../CustomizeColumns/index-etfd-otK.js";import{B as T}from"../Button/index-CX4tZVcp.js";import{C as D}from"../Checkbox/index-BsjmV0hy.js";import{L}from"../Loader/index-ZyKVoj4A.js";import{M as A}from"../Menu/index-D_xw-X-N.js";import"../index-CpKjHgOm.js";import{P as B}from"../Popover/index-Cia2Ay5Z.js";import{S as z}from"../SortDropdown/index-B5GtlOVB.js";import{T as H}from"../Typography/index-CDTZdQLs.js";const V=i.forwardRef(((n,i)=>e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{width:"16",height:"16",fill:"white",fillOpacity:"0.01"}),e.jsx("path",{d:"M7.99999 10.62C7.84999 10.62 7.68999 10.56 7.57999 10.44L3.53999 6.41001C3.30999 6.18001 3.30999 5.80001 3.53999 5.56001C3.76999 5.33001 4.14999 5.33001 4.38999 5.56001L7.99999 9.17001L11.61 5.56001C11.84 5.33001 12.23 5.33001 12.46 5.56001C12.69 5.79001 12.69 6.17001 12.46 6.41001L8.41999 10.44C8.29999 10.56 8.14999 10.62 7.99999 10.62Z",fill:"currentcolor"})]}))),$=$=>{const{data:G,columns:Y,showFooter:E=!1,infoComponent:q,isLoading:K,isFetching:Z,emptyComponent:J,loadingComponent:Q,actionComponent:U,headerComponent:W,editColumnComponent:X,filterComponent:_,hideTableOnEmpty:ee,hideTopPagination:ne,hideFilters:ie,isFilterOpenByDefault:ae=!0,sortingHeading:se,showTableOnLoading:le,hideLoaderOnTopPagination:te,hideActions:oe,count:re,pageIndex:de=0,pageSize:ce=20,enablePreviousPage:ge,enableNextPage:he,hideColumnSettings:me=!0,hideBottomPagination:xe,rowMenuOptions:pe,onPreviousPageClick:je,enableSorting:ue,sortingValues:Ce,sortingOptions:be,onSortingOptionSelect:fe,onNextPageClick:we,disableRowSelect:Se,hideSelectAllInTable:ye,onSelectAllRows:ve,onRowSelect:Pe,onMenuOptionSelect:ke,onRowClick:Ne,columnOrder:Me,setColumnOrder:Ie,setHiddenColumns:Oe,hiddenColumns:Re,selectedRowIds:Fe={},isDisableSortDropdown:Te,setSelectedRowIds:De,dataKey:Le="id",cellPropGetter:Ae,setPageIndex:Be,rowPropGetter:ze,translationTexts:He}=$,Ve=n(),[$e,Ge]=i.useState(!!ae),Ye=R(),Ee=-1===re||void 0===re,qe=i.useMemo((()=>[...Se?[]:[{id:"select",header:({table:n})=>ye?e.jsx("div",{className:"table-checkbox-header"}):e.jsx(D,{className:"table-checkbox",checked:n.getIsSomeRowsSelected()?"indeterminate":n.getIsAllRowsSelected(),indeterminate:n.getIsSomeRowsSelected(),onCheckedChange:e=>{n.toggleAllPageRowsSelected(!0===e),ve?.(!0===e)}}),cell:({row:n})=>e.jsx(D,{className:"table-checkbox",checked:n.getIsSelected(),disabled:!n.getCanSelect(),indeterminate:n.getIsSomeSelected(),onCheckedChange:e=>{n.toggleSelected(!0===e),Pe?.(n.original,!0===e)}})}],...Y.map((e=>Ye.accessor(e.id,{header:e.Header,id:e.id??e.Header,cell:n=>e.accessorFn(n.row.original)}))),...pe?[{id:"rowMenuOptions",header:()=>e.jsx("div",{id:"more-actions-header"}),cell:({row:n})=>e.jsx(A,{trigger:e.jsx(a,{className:"more-actions",fill:"currentcolor"}),options:pe(n.original)||[],onSelect:e=>{e.id&&ke?.(e.id,n.original)},side:"bottom",align:"rtl"===Ve.direction?"start":"end"})}]:[]]),[Y,Se,ye,Ve.colors.text.primary]),Ke=i.useMemo((()=>{const e={};return Y.forEach((n=>{e[n.id]=!(Re??[]).includes(n.id)})),e}),[Y,Re]),Ze=i.useMemo((()=>({pageIndex:de,pageSize:ce})),[ce,de]),Je=s({data:G,columns:qe,getRowId:e=>e?.[Le]??"id",getCoreRowModel:F(),state:{columnOrder:Me,columnVisibility:Ke,rowSelection:Fe,pagination:Ze},initialState:{columnPinning:{left:["select"],right:["rowMenuOptions"]}},onPaginationChange:e=>{let n=Ze;n="function"==typeof e?e(Ze):e,Be?.(n.pageIndex)},onColumnVisibilityChange:e=>{let n=Ke;n="function"==typeof e?e(Ke):e,Oe?.(Object.keys(n).filter((e=>!n[e])))},onColumnOrderChange:e=>{let n=Me??[];n="function"==typeof e?e(Me??[]):e,Ie?.(n)},onRowSelectionChange:e=>{let n=Fe;n="function"==typeof e?e(Fe):e,De?.(n)},enableRowSelection:!0,manualPagination:!0,rowCount:Ee?-1:re}),{getPageCount:Qe,getRowModel:Ue,getState:We,getCanNextPage:Xe,getCanPreviousPage:_e,getPageOptions:en,previousPage:nn,setPageIndex:an,nextPage:sn,lastPage:ln,firstPage:tn}=Je,{rows:on}=Ue(),{pagination:{pageIndex:rn,pageSize:dn}}=We(),cn=rn*dn+(rn<Qe()-1?dn:on.length),gn=Je.getAllColumns().filter((e=>e.getIsVisible())).length+(Se?0:1)+(pe?1:0),hn=be?.[0].find((e=>e.id===Ce?.[0]))?.name;return e.jsxs(l,{className:"TableContainer",children:[!oe&&e.jsxs(t,{className:"table-actions",children:[U&&e.jsx(e.Fragment,{children:U}),e.jsx(o,{className:"table-header-component",children:W??null}),e.jsxs(r,{className:"table-header-dropdown-pagination",children:[ue&&e.jsxs("div",{className:"table-heading-dropdown",children:[e.jsx("div",{className:"table-sorting-heading",children:se+":"})," ",e.jsx(z,{trigger:e.jsxs("div",{className:"table-sorting-value-continer",children:[e.jsx("div",{children:hn}),e.jsx(V,{fill:"currentcolor"})]}),isDisableSortDropdown:!!Te,options:be||[],value:Ce,onSelect:e=>{fe?.(e??[])}})]}),e.jsx(d,{className:"table-edit-column-component",children:X??null}),e.jsxs(c,{className:"pagination-actions",children:[!ne&&e.jsxs(e.Fragment,{children:[e.jsx(H,{variant:"primary",className:"pagination-text",children:K&&!te?e.jsx(L,{size:"small"}):e.jsx(e.Fragment,{children:G.length>0?`${rn*dn+1} - ${cn} ${He?.of||"of"} ${Ee?on.length>0?""+(He?.many||"Many"):"-":re??on.length??"-"}`:null})}),e.jsx(T,{variant:"secondary",className:"table-pagination-button",onClick:()=>{je?.(),Ee||nn()},disabled:Ee?!ge:!_e()||K||Z,children:e.jsx(g,{fill:Ve.colors.text.primary})}),e.jsx(T,{variant:"secondary",className:"table-pagination-button",onClick:()=>{we?.(),Ee||sn()},disabled:Ee?!he:!Xe()||K||Z,children:e.jsx(h,{fill:Ve.colors.text.primary})})]}),!ie&&e.jsx(T,{variant:"secondary",className:"table-pagination-button filter-toggle",onClick:()=>Ge(!$e),children:e.jsx(m,{style:{transform:$e?"rotateY(180deg)":"rotateY(0deg)"},fill:"currentcolor"})})]})]})]}),e.jsxs(x,{children:[e.jsxs(p,{className:"table-wrapper",children:[q&&e.jsx(j,{children:q}),e.jsx(e.Fragment,K&&!le?{children:Q}:{children:0===on.length&&ee?e.jsx(e.Fragment,{children:J}):e.jsx(u,{children:e.jsxs(C,{children:[!me&&e.jsx(B,{align:"end",avoidCollisions:!0,side:"top",trigger:e.jsx(b,{fill:"currentcolor"}),children:e.jsx(f,{table:Je})}),e.jsx(w,{children:Je.getHeaderGroups().map((n=>e.jsx(S,{children:n.headers.map((n=>e.jsx(y,{children:n.isPlaceholder?null:v(n.column.columnDef.header,n.getContext())},n.id)))},n.id)))}),e.jsxs(P,{children:[Z&&!K&&e.jsx(k,{children:e.jsx(L,{})}),on.map((n=>e.jsx(S,{$isSelected:n.getIsSelected(),...ze?.(n.original),children:n.getVisibleCells().map((i=>e.jsx(N,{onClick:()=>{Ne?.(n.original,i.column.columnDef)},...Ae?.(i),children:v(i.column.columnDef.cell,i.getContext())},i.id)))},n.id)))]}),E&&e.jsx(M,{children:Je.getFooterGroups().map((n=>e.jsx(S,{children:n.headers.map((n=>e.jsx(y,{children:n.isPlaceholder?null:v(n.column.columnDef.footer,n.getContext())},n.id)))},n.id)))}),!xe&&e.jsx(M,{children:e.jsx(S,{children:e.jsx(y,{colSpan:gn,children:e.jsxs(I,{className:"table-pagination",children:[e.jsx(T,{variant:"secondary",onClick:()=>{tn()},disabled:!_e()||K||Z,children:"<<"}),e.jsx(T,{variant:"secondary",onClick:()=>{nn()},disabled:!_e()||K||Z,children:"<"}),rn+1>2&&e.jsxs(e.Fragment,{children:[e.jsx(T,{variant:"secondary",onClick:()=>{tn()},disabled:K||Z,children:"1"}),rn+1-3!=0&&e.jsx(T,{variant:"secondary",disabled:!0,children:"..."})]}),en().map((n=>[n-2,n-1,n,n+1,n+2].includes(rn+1)&&e.jsx(T,{variant:"secondary",className:rn+1===n+1?"active":"",onClick:()=>{an?.(n)},disabled:K||Z,children:n+1},n))),Math.ceil(G.length/dn)-2>rn+2&&e.jsxs(e.Fragment,{children:[rn+2+3!==Math.ceil(G.length/dn)&&e.jsx(T,{variant:"secondary",disabled:!0,children:"..."}),e.jsx(T,{variant:"secondary",onClick:()=>{an?.(Math.ceil(G.length/dn)-1)},disabled:K||Z,children:Math.ceil(G.length/dn)})]}),e.jsx(T,{variant:"secondary",onClick:()=>{sn()},disabled:!Xe()||K||Z,children:">"}),e.jsx(T,{variant:"secondary",onClick:()=>{ln()},disabled:!Xe()||K||Z,children:">>"})]})})})})]})})})]}),!ie&&$e&&_&&e.jsx(O,{children:_})]})]})};export{$ as T};
|
package/lib/Table/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as default}from"./index-
|
|
1
|
+
export{T as default}from"./index-DU5Q3ZRb.js";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"react";import"../CustomizeColumns/index-etfd-otK.js";import"../index-Dv0uT_-u.js";import"../index-CMYH5FSo.js";import"react-dom";import"../index-Bw1WW_qt.js";import"../keyframes/index-CVfQXEtZ.js";import"../ChevronUp/index-Ce4eVyDz.js";import"../Button/index-CX4tZVcp.js";import"../Checkbox/index-BsjmV0hy.js";import"../index-BCBGGtXO.js";import"../index-D4pfkNFk.js";import"../index-DZzFKxNs.js";import"../index-Bj96NGNJ.js";import"../index-BrmsftDQ.js";import"../TickIcon/index-De06qfuL.js";import"../Cross/index-COzwlvOZ.js";import"../TextArea/index-D204gYac.js";import"../ErrorText/index-Cg0k001T.js";import"../Popover/index-Cia2Ay5Z.js";import"../index-DmrSN1YW.js";import"../Combination/index-b5frlUiu.js";import"../index-DE6Djr2P.js";import"../index-DSFkVExg.js";import"../Reorder/index-BlLihKmG.js";import"../index-DP7HoUNK.js";import"../Typography/index-CDTZdQLs.js";import"../Loader/index-ZyKVoj4A.js";import"../Menu/index-D_xw-X-N.js";import"../index-CpKjHgOm.js";import"../index-BJXW8qXz.js";import"../index-BxvGNAuC.js";import"../index-BBZ7Acl3.js";import"../SortDropdown/index-B5GtlOVB.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{u as e,e as a,j as o}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{a as t,_ as r}from"../index-CMYH5FSo.js";import{forwardRef as n,createElement as i,useRef as s,useEffect as d}from"react";import{a as l,$ as c}from"../index-D4pfkNFk.js";import{$ as u}from"../index-BCBGGtXO.js";import{$ as b,a as m,b as p}from"../index-
|
|
1
|
+
import{u as e,e as a,j as o}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{a as t,_ as r}from"../index-CMYH5FSo.js";import{forwardRef as n,createElement as i,useRef as s,useEffect as d}from"react";import{a as l,$ as c}from"../index-D4pfkNFk.js";import{$ as u}from"../index-BCBGGtXO.js";import{$ as b,a as m,b as p}from"../index-BBZ7Acl3.js";import{$ as h}from"../index-BrmsftDQ.js";import{$ as f}from"../index-BxvGNAuC.js";import{$ as x}from"../index-DE6Djr2P.js";const v="Tabs",[g,$]=u(v,[b]),T=b(),[y,C]=g(v),j=n(((e,a)=>{const{__scopeTabs:o,value:n,onValueChange:s,defaultValue:d,orientation:c="horizontal",dir:u,activationMode:b="automatic",...m}=e,p=f(u),[h,v]=l({prop:n,onChange:s,defaultProp:d});return i(y,{scope:o,baseId:x(),value:h,onValueChange:v,orientation:c,dir:p,activationMode:b},i(t.div,r({dir:p,"data-orientation":c},m,{ref:a})))}));function w(e,a){return`${e}-trigger-${a}`}function V(e,a){return`${e}-content-${a}`}const _=n(((e,a)=>{const{__scopeTabs:o,loop:n=!0,...s}=e,d=C("TabsList",o),l=T(o);return i(m,r({asChild:!0},l,{orientation:d.orientation,dir:d.dir,loop:n}),i(t.div,r({role:"tablist","aria-orientation":d.orientation},s,{ref:a})))})),A=n(((e,a)=>{const{__scopeTabs:o,value:n,disabled:s=!1,...d}=e,l=C("TabsTrigger",o),u=T(o),b=w(l.baseId,n),m=V(l.baseId,n),h=n===l.value;return i(p,r({asChild:!0},u,{focusable:!s,active:h}),i(t.button,r({type:"button",role:"tab","aria-selected":h,"aria-controls":m,"data-state":h?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:b},d,{ref:a,onMouseDown:c(e.onMouseDown,(e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(n)})),onKeyDown:c(e.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(n)})),onFocus:c(e.onFocus,(()=>{h||s||"manual"===l.activationMode||l.onValueChange(n)}))})))})),D=n(((e,a)=>{const{__scopeTabs:o,value:n,forceMount:l,children:c,...u}=e,b=C("TabsContent",o),m=w(b.baseId,n),p=V(b.baseId,n),f=n===b.value,x=s(f);return d((()=>{const e=requestAnimationFrame((()=>x.current=!1));return()=>cancelAnimationFrame(e)}),[]),i(h,{present:l||f},(({present:o})=>i(t.div,r({"data-state":f?"active":"inactive","data-orientation":b.orientation,role:"tabpanel","aria-labelledby":m,hidden:!o,id:p,tabIndex:0},u,{ref:a,style:{...e.style,animationDuration:x.current?"0s":void 0}}),o&&c)))})),F=e(j)``,I=e(D)``,M=e(_)`
|
|
2
2
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-wrap: nowrap;
|
|
5
5
|
gap: 12px;
|
|
6
6
|
direction: ${({theme:e})=>e.direction};
|
|
7
|
-
`,
|
|
7
|
+
`,k=e(A)`
|
|
8
8
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
9
9
|
direction: ${({theme:e})=>e.direction};
|
|
10
10
|
background-color: unset;
|
|
@@ -32,4 +32,4 @@ import{u as e,e as a,j as o}from"../styled-components.browser.esm/index-8pR-v2ng
|
|
|
32
32
|
color: ${({theme:e})=>e.colors.text.disabled};
|
|
33
33
|
cursor: not-allowed;
|
|
34
34
|
}
|
|
35
|
-
`,N=({options:e=[],idAccessor:t="id",nameAccessor:r="name",disabledAccessor:n="disabled",onChange:i,defaultValue:s,label:d,renderTabsContent:l,value:c})=>{const u=a();return o.jsxs(
|
|
35
|
+
`,N=({options:e=[],idAccessor:t="id",nameAccessor:r="name",disabledAccessor:n="disabled",onChange:i,defaultValue:s,label:d,renderTabsContent:l,value:c})=>{const u=a();return o.jsxs(F,{className:"TabsRoot",value:c,defaultValue:s,onValueChange:i,dir:u.direction,children:[o.jsx(M,{className:"TabsList","aria-label":d,children:e.map((e=>o.jsx(k,{className:"TabsTrigger",value:e?.[t],disabled:e?.[n],children:e?.[r]},e?.[t])))}),e.map((e=>o.jsx(I,{className:"TabsContent",value:e?.[t],children:l?l(e):null},e?.[t])))]})};export{N as T,I as a,M as b,F as c,k as d};
|
package/lib/Tabs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as Tabs,a as TabsContent,b as TabsList,c as TabsRoot,d as TabsTrigger}from"./index-
|
|
1
|
+
export{T as Tabs,a as TabsContent,b as TabsList,c as TabsRoot,d as TabsTrigger}from"./index-gIeNhq6G.js";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"react";import"../index-CMYH5FSo.js";import"react-dom";import"../index-D4pfkNFk.js";import"../index-BCBGGtXO.js";import"../index-BBZ7Acl3.js";import"../index-BJXW8qXz.js";import"../index-DE6Djr2P.js";import"../index-BxvGNAuC.js";import"../index-BrmsftDQ.js";
|
|
@@ -35,7 +35,7 @@ import{u as e,e as r,j as o}from"../styled-components.browser.esm/index-8pR-v2ng
|
|
|
35
35
|
&:hover {
|
|
36
36
|
background-color: ${({theme:e})=>"dark"===e.mode?e.colors.fill.hover:e.colors.fill.surface};
|
|
37
37
|
}
|
|
38
|
-
`,
|
|
38
|
+
`,C=e.span`
|
|
39
39
|
padding: 4px 6px;
|
|
40
40
|
border-radius: 16px;
|
|
41
41
|
display: flex;
|
|
@@ -54,4 +54,4 @@ import{u as e,e as r,j as o}from"../styled-components.browser.esm/index-8pR-v2ng
|
|
|
54
54
|
&:hover {
|
|
55
55
|
border-color: ${({theme:e})=>e.colors.border.hover};
|
|
56
56
|
}
|
|
57
|
-
`,
|
|
57
|
+
`,k=t.forwardRef(((e,t)=>{const{children:a,iconProps:i,onClose:n,showBorder:s=!1,hideClose:d=!1,avatarImgAlt:l,avatarImgSrc:c,avatarText:h,style:m,state:g,iconSVGProps:f,...y}=e,u=r();return o.jsxs(C,{$showBorder:s,style:m,className:"StyledTag",dir:u.direction,...y,ref:t,children:[c||h?o.jsxs($,{className:"AvatarRoot",children:[o.jsx(j,{className:"AvatarImage",src:c,alt:l}),o.jsx(A,{className:"AvatarFallback",delayMs:600,children:h})]}):o.jsx("div",{}),a,d?o.jsx("div",{}):o.jsx(S,{...i,onClick:n,children:o.jsx(p,{...f,fill:"dark"===u.mode?u.colors.text.inverse:u.colors.text.primary})})]})}));export{k as T};
|
package/lib/Tag/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as default}from"./index-
|
|
1
|
+
export{T as default}from"./index-niIm7trf.js";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"react";import"../index-CMYH5FSo.js";import"react-dom";import"../index-BCBGGtXO.js";import"../Cross/index-COzwlvOZ.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{d as e,j as o,t}from"../styled-components.browser.esm/index-8pR-v2ng.js";import{Z as i}from"../index-Bw1WW_qt.js";import{T as r}from"../ToastProvider/index-ypcx69bc.js";import"react";var s=e`
|
|
2
|
+
|
|
3
|
+
div:has( > div[data-tooltip-content]){
|
|
4
|
+
z-index: ${({theme:e})=>e.zIndex.tooltip||i.tooltip} !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
div:has( > div[data-popover-content]){
|
|
8
|
+
z-index: ${({theme:e})=>e.zIndex.popover||i.popover} !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
`,d=e`
|
|
12
|
+
* {
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
/* direction: ${({theme:e})=>e.direction}; */
|
|
15
|
+
}
|
|
16
|
+
`;const n=e=>o.jsxs(t,{theme:e.theme,children:[o.jsx(d,{}),o.jsx(r,{children:e.children})]});export{n as T,s as g};
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import * as styled_components from 'styled-components';
|
|
3
|
+
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
4
|
+
import * as react from 'react';
|
|
2
5
|
import { CSSProperties } from 'react';
|
|
3
6
|
|
|
7
|
+
declare const CardContent: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
8
|
+
declare const CardActions: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
9
|
+
declare const TriggerButtonWrapper: styled_components.IStyledComponent<"web", styled_components_dist_types.FastOmit<styled_components_dist_types.FastOmit<styled_components_dist_types.Substitute<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Omit<react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | react.RefObject<HTMLButtonElement> | null | undefined;
|
|
11
|
+
}>, never>, never>>;
|
|
12
|
+
|
|
13
|
+
declare const _default: react.NamedExoticComponent<styled_components.ExecutionProps & object>;
|
|
14
|
+
//# sourceMappingURL=globalStyles.d.ts.map
|
|
15
|
+
|
|
4
16
|
type TypographyWeightType = 'regular' | 'bold' | 'semi-bold';
|
|
5
17
|
|
|
6
18
|
type BreakpointKeys = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -146,7 +158,109 @@ interface FreemiumUiTheme {
|
|
|
146
158
|
link: FreemiumUiButtonTheme;
|
|
147
159
|
};
|
|
148
160
|
};
|
|
149
|
-
}
|
|
161
|
+
}
|
|
162
|
+
type FreshworksPalette = {
|
|
163
|
+
primary: {
|
|
164
|
+
elephant: string;
|
|
165
|
+
smoke: string;
|
|
166
|
+
milk: string;
|
|
167
|
+
E900: string;
|
|
168
|
+
E800: string;
|
|
169
|
+
E700: string;
|
|
170
|
+
E600: string;
|
|
171
|
+
E500: string;
|
|
172
|
+
E400: string;
|
|
173
|
+
E300: string;
|
|
174
|
+
E200: string;
|
|
175
|
+
E100: string;
|
|
176
|
+
E50: string;
|
|
177
|
+
S900: string;
|
|
178
|
+
S800: string;
|
|
179
|
+
S700: string;
|
|
180
|
+
S600: string;
|
|
181
|
+
S500: string;
|
|
182
|
+
S400: string;
|
|
183
|
+
S300: string;
|
|
184
|
+
S200: string;
|
|
185
|
+
S100: string;
|
|
186
|
+
S75: string;
|
|
187
|
+
S50: string;
|
|
188
|
+
S25: string;
|
|
189
|
+
S10: string;
|
|
190
|
+
};
|
|
191
|
+
secondary: {
|
|
192
|
+
jungle: string;
|
|
193
|
+
J900: string;
|
|
194
|
+
J800: string;
|
|
195
|
+
J700: string;
|
|
196
|
+
J600: string;
|
|
197
|
+
J500: string;
|
|
198
|
+
J400: string;
|
|
199
|
+
J300: string;
|
|
200
|
+
J200: string;
|
|
201
|
+
J100: string;
|
|
202
|
+
J50: string;
|
|
203
|
+
azure: string;
|
|
204
|
+
A900: string;
|
|
205
|
+
A800: string;
|
|
206
|
+
A700: string;
|
|
207
|
+
A600: string;
|
|
208
|
+
A500: string;
|
|
209
|
+
A400: string;
|
|
210
|
+
A300: string;
|
|
211
|
+
A200: string;
|
|
212
|
+
A100: string;
|
|
213
|
+
A50: string;
|
|
214
|
+
persimmon: string;
|
|
215
|
+
P900: string;
|
|
216
|
+
P800: string;
|
|
217
|
+
P700: string;
|
|
218
|
+
P600: string;
|
|
219
|
+
P500: string;
|
|
220
|
+
P400: string;
|
|
221
|
+
P300: string;
|
|
222
|
+
P200: string;
|
|
223
|
+
P100: string;
|
|
224
|
+
P50: string;
|
|
225
|
+
casablanca: string;
|
|
226
|
+
C900: string;
|
|
227
|
+
C800: string;
|
|
228
|
+
C700: string;
|
|
229
|
+
C600: string;
|
|
230
|
+
C500: string;
|
|
231
|
+
C400: string;
|
|
232
|
+
C300: string;
|
|
233
|
+
C200: string;
|
|
234
|
+
C100: string;
|
|
235
|
+
C50: string;
|
|
236
|
+
};
|
|
237
|
+
common: {
|
|
238
|
+
black: string;
|
|
239
|
+
white: string;
|
|
240
|
+
neutral: {
|
|
241
|
+
light_mild: string;
|
|
242
|
+
light_normal: string;
|
|
243
|
+
light_bold: string;
|
|
244
|
+
dark_mild: string;
|
|
245
|
+
dark_normal: string;
|
|
246
|
+
dark_bold: string;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
type FuiContextType = {
|
|
251
|
+
theme: FreemiumUiTheme;
|
|
252
|
+
};
|
|
253
|
+
type ModalCssType = {
|
|
254
|
+
left?: string;
|
|
255
|
+
top?: string;
|
|
256
|
+
transform?: string;
|
|
257
|
+
right?: string;
|
|
258
|
+
bottom?: string;
|
|
259
|
+
y?: string;
|
|
260
|
+
x?: string;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
declare const Z_INDEX: ZIndex;
|
|
150
264
|
|
|
151
265
|
type ThemeProviderType<Theme> = React.ComponentType<{
|
|
152
266
|
children: React.ReactNode;
|
|
@@ -155,4 +269,4 @@ type ThemeProviderType<Theme> = React.ComponentType<{
|
|
|
155
269
|
|
|
156
270
|
declare const ThemeProvider: ThemeProviderType<FreemiumUiTheme>;
|
|
157
271
|
|
|
158
|
-
export { type ThemeProviderType, ThemeProvider as default };
|
|
272
|
+
export { type BaseTypography, type BorderColors, type Breakpoints, CardActions, CardContent, type Colors, type CommonColors, type Duration, type Easing, type FillColors, _default as FreemiumUIGlobalStyles, type FreemiumUiButtonTheme, type FreemiumUiTheme, type FreshworksPalette, type FuiContextType, type FuiTypography, type ModalCssType, type SemanticColors, type SemanticColorsType, type TextColorSemantics, type TextColors, type ThemeProviderType, type Transitions, TriggerButtonWrapper, type ZIndex, Z_INDEX, ThemeProvider as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{T as
|
|
1
|
+
export{b as CardActions,C as CardContent,T as TriggerButtonWrapper}from"../index-Dv0uT_-u.js";export{g as FreemiumUIGlobalStyles,T as default}from"./index-BcubY7n7.js";export{Z as Z_INDEX}from"../index-Bw1WW_qt.js";import"../index-CMYH5FSo.js";import"react";import"react-dom";import"../styled-components.browser.esm/index-8pR-v2ng.js";import"../keyframes/index-CVfQXEtZ.js";import"../ToastProvider/index-ypcx69bc.js";import"../index-DP7HoUNK.js";import"../index-D4pfkNFk.js";import"../index-BCBGGtXO.js";import"../index-BJXW8qXz.js";import"../index-DmrSN1YW.js";import"../index-BrmsftDQ.js";import"../index-9P5loDNm.js";import"../Cross/index-COzwlvOZ.js";import"../Info/index-B4VPdcNm.js";
|