freemium-ui 2.0.22 → 2.0.24
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/index.cjs.js +66 -56
- package/lib/index.d.ts +1 -0
- package/lib/index.js +66 -57
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -1329,13 +1329,13 @@ role:"button",...i,ref:l
|
|
|
1329
1329
|
`,Xa=yr(Ga)`
|
|
1330
1330
|
border-radius: ${({theme:e})=>"ltr"===e.direction?"4px 0 0 4px":"0 4px 4px 0"} !important;
|
|
1331
1331
|
padding: 0 8px;
|
|
1332
|
-
border-right: ${({theme:e,variant:t})=>"ltr"===e.direction?`1px solid ${e.components.button[t].borderColor}`:
|
|
1333
|
-
border-left: ${({theme:e,variant:t})=>"rtl"===e.direction?`1px solid ${e.components.button[t].borderColor}`:
|
|
1332
|
+
border-right: ${({theme:e,variant:t})=>"ltr"===e.direction?`1px solid ${e.components.button[t].borderColor}`:void 0};
|
|
1333
|
+
border-left: ${({theme:e,variant:t})=>"rtl"===e.direction?`1px solid ${e.components.button[t].borderColor}`:void 0};
|
|
1334
1334
|
`,Qa=yr(Ga)`
|
|
1335
1335
|
border-radius: ${({theme:e})=>"ltr"===e.direction?"0 4px 4px 0":"4px 0 0 4px"} !important;
|
|
1336
1336
|
padding: 0 8px;
|
|
1337
|
-
border-left: ${({theme:e})=>"ltr"===e.direction?"0":
|
|
1338
|
-
border-right: ${({theme:e})=>"rtl"===e.direction?"0":
|
|
1337
|
+
border-left: ${({theme:e})=>"ltr"===e.direction?"0":void 0};
|
|
1338
|
+
border-right: ${({theme:e})=>"rtl"===e.direction?"0":void 0};
|
|
1339
1339
|
`
|
|
1340
1340
|
;const Ja="dismissableLayer.update",eo="dismissableLayer.pointerDownOutside",to="dismissableLayer.focusOutside"
|
|
1341
1341
|
;let no;const ro=e.createContext({layers:new Set,
|
|
@@ -2145,7 +2145,11 @@ onOpenToggle:e.useCallback((()=>p((e=>!e))),[p]),modal:s
|
|
|
2145
2145
|
},ds=is,hs=t=>{const{__scopeDropdownMenu:n,...r}=t,a=rs(n)
|
|
2146
2146
|
;return e.createElement(qc,o({},a,r))},ps=ls,fs=cs,ms=e.forwardRef(((t,n)=>{
|
|
2147
2147
|
const{__scopeDropdownMenu:r,...a}=t,i=rs(r);return e.createElement(Jc,o({},i,a,{
|
|
2148
|
-
ref:n}))})),vs=yr(us)``,gs=yr(ds)
|
|
2148
|
+
ref:n}))})),vs=yr(us)``,gs=yr(ds)`
|
|
2149
|
+
&:disabled {
|
|
2150
|
+
cursor: not-allowed;
|
|
2151
|
+
}
|
|
2152
|
+
`,ys=yr(hs)``,bs=yr(ms)`
|
|
2149
2153
|
fill: ${({theme:e})=>e.colors.border.light};
|
|
2150
2154
|
`,ws=yr(ss)`
|
|
2151
2155
|
border-bottom: ${({theme:e})=>`1px solid ${e.colors.border.light}`};
|
|
@@ -2580,7 +2584,7 @@ modal:!0}))}))``,pd=yr(od)``,fd=yr(sd)``,md=yr(cd)``,vd=yr(id)`
|
|
|
2580
2584
|
direction: ${({theme:e})=>e.direction};
|
|
2581
2585
|
letter-spacing: 0px;
|
|
2582
2586
|
padding: 0 32px 0px 32px;
|
|
2583
|
-
margin: 10px 0px !important;
|
|
2587
|
+
margin: 10px 0px 24px !important;
|
|
2584
2588
|
`,wd=yr.div`
|
|
2585
2589
|
border-bottom-right-radius: 8px;
|
|
2586
2590
|
border-bottom-left-radius: 8px;
|
|
@@ -12791,6 +12795,9 @@ timePickerProps:p,timePrecision:f}),n)(e)}return s}return i}const fP=yr.div`
|
|
|
12791
12795
|
height: 24px;
|
|
12792
12796
|
width: 24px;
|
|
12793
12797
|
cursor: pointer;
|
|
12798
|
+
svg path {
|
|
12799
|
+
fill: ${({theme:e})=>e.colors.text.primary};
|
|
12800
|
+
}
|
|
12794
12801
|
}
|
|
12795
12802
|
}
|
|
12796
12803
|
}
|
|
@@ -12920,6 +12927,9 @@ timePickerProps:p,timePrecision:f}),n)(e)}return s}return i}const fP=yr.div`
|
|
|
12920
12927
|
align-items: center;
|
|
12921
12928
|
.bp5-timepicker-input-row {
|
|
12922
12929
|
margin: 0 !important;
|
|
12930
|
+
display: flex;
|
|
12931
|
+
align-items: center;
|
|
12932
|
+
color: ${({theme:e})=>e.colors.text.primary};
|
|
12923
12933
|
span.bp5-timepicker-divider-text {
|
|
12924
12934
|
margin: 0 4px;
|
|
12925
12935
|
}
|
|
@@ -15889,14 +15899,14 @@ onClick:()=>{a((e=>({...e,[t.id]:!1}))),i((e=>e.filter((e=>e.id!==t.id))))}
|
|
|
15889
15899
|
},e.createElement(Ga,{variant:"secondary"},"Cancel")),e.createElement(Ga,{
|
|
15890
15900
|
onClick:()=>{t.setColumnOrder(o.map((e=>e.id))),t.setColumnVisibility(r)}
|
|
15891
15901
|
},"Update")))},EB=t=>{
|
|
15892
|
-
const{trigger:n,idAccessor:r="id",nameAccessor:a="name",onSelect:o,options:
|
|
15893
|
-
;return e.createElement(vs,null,e.createElement(gs,{asChild:!0
|
|
15902
|
+
const{trigger:n,idAccessor:r="id",nameAccessor:a="name",onSelect:o,isDisableSortDropdown:i=!1,options:l=[],value:c}=t,s=cr()
|
|
15903
|
+
;return e.createElement(vs,null,e.createElement(gs,{asChild:!0,disabled:i
|
|
15894
15904
|
},e.createElement(Pa,null,n)),e.createElement(ys,null,e.createElement(Cs,{
|
|
15895
15905
|
side:"bottom",sideOffset:4,align:"center",className:"DropdownMenuContent"
|
|
15896
|
-
},
|
|
15906
|
+
},l.map(((t,n)=>e.createElement(e.Fragment,{key:n
|
|
15897
15907
|
},t.map((t=>e.createElement(zs,{id:t?.[r],disabled:t?.disabled,
|
|
15898
|
-
className:"DropdownMenuItem",key:t?.[r],onSelect:()=>{const e=
|
|
15899
|
-
o?.(e)}},t?.[a],
|
|
15908
|
+
className:"DropdownMenuItem",key:t?.[r],onSelect:()=>{const e=c??[];e[n]=t?.[r],
|
|
15909
|
+
o?.(e)}},t?.[a],c?.[n]===t?.[r]&&e.createElement(ra,{fill:s.colors.common.accent
|
|
15900
15910
|
})))),e.createElement(ws,{className:"DropdownMenuSeparator"})))))))
|
|
15901
15911
|
},SB="Tabs",[_B,HB]=i(SB,[gl]),DB=gl(),[kB,VB]=_B(SB),LB=e.forwardRef(((t,n)=>{
|
|
15902
15912
|
const{__scopeTabs:r,value:a,onValueChange:i,defaultValue:l,orientation:c="horizontal",dir:s,activationMode:u="automatic",...d}=t,h=B(s),[p,f]=y({
|
|
@@ -16771,9 +16781,9 @@ disabled:t.disabled,htmlFor:t?.[r]
|
|
|
16771
16781
|
},exports.RadixMenuItem=fs,exports.RadixSelectItem=Rh,
|
|
16772
16782
|
exports.Reorder=YF,exports.RequiredIndicator=Da,
|
|
16773
16783
|
exports.StyledLabel=_a,exports.Table=t=>{
|
|
16774
|
-
const{data:n,columns:a,showFooter:o=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,filterComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,sortingHeading:g,showTableOnLoading:y,hideLoaderOnTopPagination:b,hideActions:w,count:C,pageIndex:z=0,pageSize:M=20,enablePreviousPage:x,enableNextPage:E,hideColumnSettings:S=!0,hideBottomPagination:_,rowMenuOptions:H,onPreviousPageClick:D,enableSorting:k,sortingValues:V,sortingOptions:L,onSortingOptionSelect:A,onNextPageClick:T,disableRowSelect:R,hideSelectAllInTable:I,onSelectAllRows:P,onRowSelect:O,onMenuOptionSelect:N,onRowClick:F,columnOrder:$,setColumnOrder:B,setHiddenColumns:j,hiddenColumns:U,selectedRowIds:Y={},
|
|
16784
|
+
const{data:n,columns:a,showFooter:o=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,filterComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,sortingHeading:g,showTableOnLoading:y,hideLoaderOnTopPagination:b,hideActions:w,count:C,pageIndex:z=0,pageSize:M=20,enablePreviousPage:x,enableNextPage:E,hideColumnSettings:S=!0,hideBottomPagination:_,rowMenuOptions:H,onPreviousPageClick:D,enableSorting:k,sortingValues:V,sortingOptions:L,onSortingOptionSelect:A,onNextPageClick:T,disableRowSelect:R,hideSelectAllInTable:I,onSelectAllRows:P,onRowSelect:O,onMenuOptionSelect:N,onRowClick:F,columnOrder:$,setColumnOrder:B,setHiddenColumns:j,hiddenColumns:U,selectedRowIds:Y={},isDisableSortDropdown:W,setSelectedRowIds:G,dataKey:K="id",cellPropGetter:q,setPageIndex:Z,rowPropGetter:X}=t,Q=cr(),[J,ee]=e.useState(!v),te={
|
|
16775
16785
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
16776
|
-
display:e=>e,group:e=>e},
|
|
16786
|
+
display:e=>e,group:e=>e},ne=-1===C||void 0===C,re=e.useMemo((()=>[...R?[]:[{
|
|
16777
16787
|
id:"select",header:({table:t})=>I?e.createElement("div",{
|
|
16778
16788
|
className:"table-checkbox-header"}):e.createElement(mu,{
|
|
16779
16789
|
className:"table-checkbox",
|
|
@@ -16784,21 +16794,21 @@ cell:({row:t})=>e.createElement(mu,{className:"table-checkbox",
|
|
|
16784
16794
|
checked:t.getIsSelected(),disabled:!t.getCanSelect(),
|
|
16785
16795
|
indeterminate:t.getIsSomeSelected(),onCheckedChange:e=>{
|
|
16786
16796
|
t.toggleSelected(!0===e),O?.(t.original,!0===e)}})
|
|
16787
|
-
}],...a.map((e=>
|
|
16797
|
+
}],...a.map((e=>te.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
16788
16798
|
cell:t=>e.accessorFn(t.row.original)}))),...H?[{id:"rowMenuOptions",
|
|
16789
16799
|
header:()=>e.createElement("div",{id:"more-actions-header"}),
|
|
16790
16800
|
cell:({row:t})=>e.createElement(Iv,{trigger:e.createElement(sa,{
|
|
16791
16801
|
className:"more-actions",fill:"currentcolor"}),options:H(t.original)||[],
|
|
16792
16802
|
onSelect:e=>{e.id&&N?.(e.id,t.original)},side:"bottom",align:"end"})
|
|
16793
|
-
}]:[]]),[a,R,I,
|
|
16803
|
+
}]:[]]),[a,R,I,Q.colors.text.primary]),ae=e.useMemo((()=>{const e={}
|
|
16794
16804
|
;return a.forEach((t=>{e[t.id]=!(U??[]).includes(t.id)})),e
|
|
16795
|
-
}),[a,U]),
|
|
16805
|
+
}),[a,U]),oe=e.useMemo((()=>({pageIndex:z,pageSize:M})),[M,z]),ie=function(e){
|
|
16796
16806
|
const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e
|
|
16797
16807
|
},[n]=r.useState((()=>({current:B$(t)
|
|
16798
16808
|
}))),[a,o]=r.useState((()=>n.current.initialState))
|
|
16799
16809
|
;return n.current.setOptions((t=>({...t,...e,state:{...a,...e.state},
|
|
16800
16810
|
onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current
|
|
16801
|
-
}({data:n,columns:
|
|
16811
|
+
}({data:n,columns:re,getRowId:e=>e?.[K]??"id",
|
|
16802
16812
|
getCoreRowModel:e=>ZF((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],
|
|
16803
16813
|
rowsById:{}},r=function(t,a,o){void 0===a&&(a=0);const i=[]
|
|
16804
16814
|
;for(let c=0;c<t.length;c++){
|
|
@@ -16808,15 +16818,15 @@ n.rowsById[s.id]=s,i.push(s),e.options.getSubRows&&(s.originalSubRows=e.options.
|
|
|
16808
16818
|
null!=(l=s.originalSubRows)&&l.length&&(s.subRows=r(s.originalSubRows,a+1,s)))}
|
|
16809
16819
|
return i};return n.rows=r(t),n
|
|
16810
16820
|
}),XF(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),
|
|
16811
|
-
state:{columnOrder:$,columnVisibility:
|
|
16821
|
+
state:{columnOrder:$,columnVisibility:ae,rowSelection:Y,pagination:oe},
|
|
16812
16822
|
initialState:{columnPinning:{left:["select"],right:["rowMenuOptions"]}},
|
|
16813
|
-
onPaginationChange:e=>{let t=
|
|
16814
|
-
},onColumnVisibilityChange:e=>{let t=
|
|
16815
|
-
;t="function"==typeof e?e(
|
|
16823
|
+
onPaginationChange:e=>{let t=oe;t="function"==typeof e?e(oe):e,Z?.(t.pageIndex)
|
|
16824
|
+
},onColumnVisibilityChange:e=>{let t=ae
|
|
16825
|
+
;t="function"==typeof e?e(ae):e,j?.(Object.keys(t).filter((e=>!t[e])))},
|
|
16816
16826
|
onColumnOrderChange:e=>{let t=$??[];t="function"==typeof e?e($??[]):e,B?.(t)},
|
|
16817
|
-
onRowSelectionChange:e=>{let t=Y;t="function"==typeof e?e(Y):e,
|
|
16818
|
-
enableRowSelection:!0,manualPagination:!0,rowCount:
|
|
16819
|
-
}),{getPageCount:
|
|
16827
|
+
onRowSelectionChange:e=>{let t=Y;t="function"==typeof e?e(Y):e,G?.(t)},
|
|
16828
|
+
enableRowSelection:!0,manualPagination:!0,rowCount:ne?-1:C
|
|
16829
|
+
}),{getPageCount:le,getRowModel:ce,getState:se,getCanNextPage:ue,getCanPreviousPage:de,getPageOptions:he,previousPage:pe,setPageIndex:fe,nextPage:me,lastPage:ve,firstPage:ge}=ie,{rows:ye}=ce(),{pagination:{pageIndex:be,pageSize:we}}=se(),Ce=be*we+(be<le()-1?we:ye.length),ze=ie.getAllColumns().filter((e=>e.getIsVisible())).length+(R?0:1)+(H?1:0),Me=L?.[0].find((e=>e.id===V?.[0]))?.name
|
|
16820
16830
|
;return e.createElement(W$,{className:"TableContainer"},!w&&e.createElement(Q$,{
|
|
16821
16831
|
className:"table-actions"
|
|
16822
16832
|
},d&&e.createElement(e.Fragment,null,d),e.createElement(tB,{
|
|
@@ -16825,50 +16835,50 @@ className:"table-header-dropdown-pagination"},k&&e.createElement("div",{
|
|
|
16825
16835
|
className:"table-heading-dropdown"},e.createElement("div",{
|
|
16826
16836
|
className:"table-sorting-heading"},`${g}:`)," ",e.createElement(EB,{
|
|
16827
16837
|
trigger:e.createElement("div",{className:"table-sorting-value-continer"
|
|
16828
|
-
},e.createElement("div",null,
|
|
16829
|
-
options:L||[],value:V,onSelect:e=>{A?.(e??[])}
|
|
16830
|
-
className:"pagination-actions"
|
|
16838
|
+
},e.createElement("div",null,Me),e.createElement(U$,{fill:"currentcolor"})),
|
|
16839
|
+
isDisableSortDropdown:!!W,options:L||[],value:V,onSelect:e=>{A?.(e??[])}
|
|
16840
|
+
})),e.createElement(rB,{className:"pagination-actions"
|
|
16831
16841
|
},!m&&e.createElement(e.Fragment,null,e.createElement($a,{variant:"primary",
|
|
16832
16842
|
className:"pagination-text"},l&&!b?e.createElement(Vv,{size:"small"
|
|
16833
|
-
}):e.createElement(e.Fragment,null,n.length>0?`${
|
|
16843
|
+
}):e.createElement(e.Fragment,null,n.length>0?`${be*we+1} - ${Ce} of ${ne?""+(ye.length>0?"Many":"-"):C??ye.length??"-"}`:null)),e.createElement(Ga,{
|
|
16834
16844
|
variant:"secondary",className:"table-pagination-button",onClick:()=>{
|
|
16835
|
-
D?.(),
|
|
16836
|
-
fill:
|
|
16837
|
-
className:"table-pagination-button",onClick:()=>{T?.(),
|
|
16838
|
-
disabled:
|
|
16845
|
+
D?.(),ne||pe()},disabled:ne?!x:!de()||l||c},e.createElement(K$,{
|
|
16846
|
+
fill:Q.colors.text.primary})),e.createElement(Ga,{variant:"secondary",
|
|
16847
|
+
className:"table-pagination-button",onClick:()=>{T?.(),ne||me()},
|
|
16848
|
+
disabled:ne?!E:!ue()||l||c},e.createElement(q$,{fill:Q.colors.text.primary
|
|
16839
16849
|
}))),!v&&e.createElement(Ga,{variant:"secondary",
|
|
16840
|
-
className:"table-pagination-button filter-toggle",onClick:()=>
|
|
16841
|
-
},e.createElement(G$,{style:{transform:
|
|
16850
|
+
className:"table-pagination-button filter-toggle",onClick:()=>ee(!J)
|
|
16851
|
+
},e.createElement(G$,{style:{transform:J?"rotateY(180deg)":"rotateY(0deg)"},
|
|
16842
16852
|
fill:"currentcolor"
|
|
16843
|
-
}))))),e.createElement(Z$,null,e.createElement(X$,null,i&&e.createElement(eB,null,i),l&&!y?e.createElement(e.Fragment,null,u):e.createElement(e.Fragment,null,0===
|
|
16853
|
+
}))))),e.createElement(Z$,null,e.createElement(X$,null,i&&e.createElement(eB,null,i),l&&!y?e.createElement(e.Fragment,null,u):e.createElement(e.Fragment,null,0===ye.length&&f?e.createElement(e.Fragment,null,s):e.createElement(aB,null,e.createElement(oB,null,!S&&e.createElement(XP,{
|
|
16844
16854
|
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(Y$,{
|
|
16845
|
-
fill:"currentcolor"})},e.createElement(xB,{table:
|
|
16846
|
-
})),e.createElement(iB,null,
|
|
16855
|
+
fill:"currentcolor"})},e.createElement(xB,{table:ie
|
|
16856
|
+
})),e.createElement(iB,null,ie.getHeaderGroups().map((t=>e.createElement(sB,{
|
|
16847
16857
|
key:t.id},t.headers.map((t=>e.createElement(dB,{key:t.id
|
|
16848
|
-
},t.isPlaceholder?null:j$(t.column.columnDef.header,t.getContext())))))))),e.createElement(lB,null,c&&!l&&e.createElement(uB,null,e.createElement(Vv,null)),
|
|
16849
|
-
key:t.id,$isSelected:t.getIsSelected(),...
|
|
16858
|
+
},t.isPlaceholder?null:j$(t.column.columnDef.header,t.getContext())))))))),e.createElement(lB,null,c&&!l&&e.createElement(uB,null,e.createElement(Vv,null)),ye.map((t=>e.createElement(sB,{
|
|
16859
|
+
key:t.id,$isSelected:t.getIsSelected(),...X?.(t.original)
|
|
16850
16860
|
},t.getVisibleCells().map((n=>e.createElement(hB,{key:n.id,onClick:()=>{
|
|
16851
|
-
F?.(t.original,n.column.columnDef)},...
|
|
16852
|
-
},j$(n.column.columnDef.cell,n.getContext())))))))),o&&e.createElement(cB,null,
|
|
16861
|
+
F?.(t.original,n.column.columnDef)},...q?.(n)
|
|
16862
|
+
},j$(n.column.columnDef.cell,n.getContext())))))))),o&&e.createElement(cB,null,ie.getFooterGroups().map((t=>e.createElement(sB,{
|
|
16853
16863
|
key:t.id},t.headers.map((t=>e.createElement(dB,{key:t.id
|
|
16854
16864
|
},t.isPlaceholder?null:j$(t.column.columnDef.footer,t.getContext())))))))),!_&&e.createElement(cB,null,e.createElement(sB,null,e.createElement(dB,{
|
|
16855
|
-
colSpan:
|
|
16856
|
-
},e.createElement(Ga,{variant:"secondary",onClick:()=>{
|
|
16857
|
-
disabled:!
|
|
16858
|
-
onClick:()=>{
|
|
16859
|
-
},"<"),
|
|
16860
|
-
variant:"secondary",onClick:()=>{
|
|
16861
|
-
},"1"),
|
|
16862
|
-
},"...")),
|
|
16863
|
-
key:t,variant:"secondary",className:
|
|
16865
|
+
colSpan:ze},e.createElement(CB,{className:"table-pagination"
|
|
16866
|
+
},e.createElement(Ga,{variant:"secondary",onClick:()=>{ge()},
|
|
16867
|
+
disabled:!de()||l||c},"<<"),e.createElement(Ga,{variant:"secondary",
|
|
16868
|
+
onClick:()=>{pe()},disabled:!de()||l||c
|
|
16869
|
+
},"<"),be+1>2&&e.createElement(e.Fragment,null,e.createElement(Ga,{
|
|
16870
|
+
variant:"secondary",onClick:()=>{ge()},disabled:l||c
|
|
16871
|
+
},"1"),be+1-3!=0&&e.createElement(Ga,{variant:"secondary",disabled:!0
|
|
16872
|
+
},"...")),he().map((t=>[t-2,t-1,t,t+1,t+2].includes(be+1)&&e.createElement(Ga,{
|
|
16873
|
+
key:t,variant:"secondary",className:be+1===t+1?"active":"",onClick:()=>{fe?.(t)
|
|
16864
16874
|
},disabled:l||c
|
|
16865
|
-
},t+1))),
|
|
16875
|
+
},t+1))),be+2<Math.ceil(n.length/we)-2&&e.createElement(e.Fragment,null,be+2+3!==Math.ceil(n.length/we)&&e.createElement(Ga,{
|
|
16866
16876
|
variant:"secondary",disabled:!0},"..."),e.createElement(Ga,{variant:"secondary",
|
|
16867
|
-
onClick:()=>{
|
|
16868
|
-
},Math.ceil(n.length/
|
|
16869
|
-
|
|
16870
|
-
onClick:()=>{
|
|
16871
|
-
},">>"))))))))),!v&&
|
|
16877
|
+
onClick:()=>{fe?.(Math.ceil(n.length/we)-1)},disabled:l||c
|
|
16878
|
+
},Math.ceil(n.length/we))),e.createElement(Ga,{variant:"secondary",onClick:()=>{
|
|
16879
|
+
me()},disabled:!ue()||l||c},">"),e.createElement(Ga,{variant:"secondary",
|
|
16880
|
+
onClick:()=>{ve()},disabled:!ue()||l||c
|
|
16881
|
+
},">>"))))))))),!v&&J&&p&&e.createElement(J$,null,p)))
|
|
16872
16882
|
},exports.Tabs=({options:t=[],idAccessor:n="id",nameAccessor:r="name",disabledAccessor:a="disabled",onChange:o,defaultValue:i,label:l,renderTabsContent:c,value:s})=>{
|
|
16873
16883
|
const u=cr();return e.createElement(OB,{className:"TabsRoot",value:s,
|
|
16874
16884
|
defaultValue:i,onValueChange:o,dir:u.direction},e.createElement(FB,{
|
package/lib/index.d.ts
CHANGED
|
@@ -1193,6 +1193,7 @@ interface TableProps<T extends RowDataType> {
|
|
|
1193
1193
|
disableRowSelect?: boolean;
|
|
1194
1194
|
infoComponent?: React.ReactElement;
|
|
1195
1195
|
filterComponent?: React.ReactElement;
|
|
1196
|
+
isDisableSortDropdown?: boolean | null;
|
|
1196
1197
|
emptyComponent?: React.ReactElement;
|
|
1197
1198
|
actionComponent?: React.ReactElement;
|
|
1198
1199
|
loadingComponent?: React.ReactElement;
|
package/lib/index.js
CHANGED
|
@@ -1333,13 +1333,13 @@ role:"button",...i,ref:l
|
|
|
1333
1333
|
`,wa=Or(va)`
|
|
1334
1334
|
border-radius: ${({theme:e})=>"ltr"===e.direction?"4px 0 0 4px":"0 4px 4px 0"} !important;
|
|
1335
1335
|
padding: 0 8px;
|
|
1336
|
-
border-right: ${({theme:e,variant:t})=>"ltr"===e.direction?`1px solid ${e.components.button[t].borderColor}`:
|
|
1337
|
-
border-left: ${({theme:e,variant:t})=>"rtl"===e.direction?`1px solid ${e.components.button[t].borderColor}`:
|
|
1336
|
+
border-right: ${({theme:e,variant:t})=>"ltr"===e.direction?`1px solid ${e.components.button[t].borderColor}`:void 0};
|
|
1337
|
+
border-left: ${({theme:e,variant:t})=>"rtl"===e.direction?`1px solid ${e.components.button[t].borderColor}`:void 0};
|
|
1338
1338
|
`,Ca=Or(va)`
|
|
1339
1339
|
border-radius: ${({theme:e})=>"ltr"===e.direction?"0 4px 4px 0":"4px 0 0 4px"} !important;
|
|
1340
1340
|
padding: 0 8px;
|
|
1341
|
-
border-left: ${({theme:e})=>"ltr"===e.direction?"0":
|
|
1342
|
-
border-right: ${({theme:e})=>"rtl"===e.direction?"0":
|
|
1341
|
+
border-left: ${({theme:e})=>"ltr"===e.direction?"0":void 0};
|
|
1342
|
+
border-right: ${({theme:e})=>"rtl"===e.direction?"0":void 0};
|
|
1343
1343
|
`
|
|
1344
1344
|
;const za="dismissableLayer.update",Ma="dismissableLayer.pointerDownOutside",xa="dismissableLayer.focusOutside"
|
|
1345
1345
|
;let Sa;const Ea=n({layers:new Set,
|
|
@@ -2126,8 +2126,11 @@ onOpenToggle:i((()=>f((e=>!e))),[f]),modal:s},o(ms,S({},u,{open:p,
|
|
|
2126
2126
|
onOpenChange:f,dir:r,modal:s}),n))},ks=Hs,Ts=e=>{
|
|
2127
2127
|
const{__scopeDropdownMenu:t,...n}=e,r=Ss(t);return o(gs,S({},r,n))
|
|
2128
2128
|
},Is=Ds,Ps=Vs,Rs=l(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,a=Ss(n)
|
|
2129
|
-
;return o(Cs,S({},a,r,{ref:t}))
|
|
2130
|
-
|
|
2129
|
+
;return o(Cs,S({},a,r,{ref:t}))})),Os=Or(As)``,Ns=Or(ks)`
|
|
2130
|
+
&:disabled {
|
|
2131
|
+
cursor: not-allowed;
|
|
2132
|
+
}
|
|
2133
|
+
`,Fs=Or(Ts)``,$s=Or(Rs)`
|
|
2131
2134
|
fill: ${({theme:e})=>e.colors.border.light};
|
|
2132
2135
|
`,Bs=Or(Ls)`
|
|
2133
2136
|
border-bottom: ${({theme:e})=>`1px solid ${e.colors.border.light}`};
|
|
@@ -2581,7 +2584,7 @@ const{__scopeAlertDialog:t,...n}=e,r=wd(t);return o(dd,S({},r,n,{modal:!0}))
|
|
|
2581
2584
|
direction: ${({theme:e})=>e.direction};
|
|
2582
2585
|
letter-spacing: 0px;
|
|
2583
2586
|
padding: 0 32px 0px 32px;
|
|
2584
|
-
margin: 10px 0px !important;
|
|
2587
|
+
margin: 10px 0px 24px !important;
|
|
2585
2588
|
`,Ud=Or.div`
|
|
2586
2589
|
border-bottom-right-radius: 8px;
|
|
2587
2590
|
border-bottom-left-radius: 8px;
|
|
@@ -12827,6 +12830,9 @@ timePickerProps:p,timePrecision:f}),n)(e)}return s}return i}const BR=Or.div`
|
|
|
12827
12830
|
height: 24px;
|
|
12828
12831
|
width: 24px;
|
|
12829
12832
|
cursor: pointer;
|
|
12833
|
+
svg path {
|
|
12834
|
+
fill: ${({theme:e})=>e.colors.text.primary};
|
|
12835
|
+
}
|
|
12830
12836
|
}
|
|
12831
12837
|
}
|
|
12832
12838
|
}
|
|
@@ -12956,6 +12962,9 @@ timePickerProps:p,timePrecision:f}),n)(e)}return s}return i}const BR=Or.div`
|
|
|
12956
12962
|
align-items: center;
|
|
12957
12963
|
.bp5-timepicker-input-row {
|
|
12958
12964
|
margin: 0 !important;
|
|
12965
|
+
display: flex;
|
|
12966
|
+
align-items: center;
|
|
12967
|
+
color: ${({theme:e})=>e.colors.text.primary};
|
|
12959
12968
|
span.bp5-timepicker-divider-text {
|
|
12960
12969
|
margin: 0 4px;
|
|
12961
12970
|
}
|
|
@@ -16015,18 +16024,18 @@ onClick:()=>{o((t=>({...t,[e.id]:!1}))),i((t=>t.filter((t=>t.id!==e.id))))}
|
|
|
16015
16024
|
},t.createElement(va,{variant:"secondary"},"Cancel")),t.createElement(va,{
|
|
16016
16025
|
onClick:()=>{e.setColumnOrder(a.map((e=>e.id))),e.setColumnVisibility(r)}
|
|
16017
16026
|
},"Update")))},aj=e=>{
|
|
16018
|
-
const{trigger:n,idAccessor:r="id",nameAccessor:o="name",onSelect:a,options:
|
|
16019
|
-
;return t.createElement(Os,null,t.createElement(Ns,{asChild:!0
|
|
16027
|
+
const{trigger:n,idAccessor:r="id",nameAccessor:o="name",onSelect:a,isDisableSortDropdown:i=!1,options:l=[],value:c}=e,s=Hr()
|
|
16028
|
+
;return t.createElement(Os,null,t.createElement(Ns,{asChild:!0,disabled:i
|
|
16020
16029
|
},t.createElement(aa,null,n)),t.createElement(Fs,null,t.createElement(js,{
|
|
16021
16030
|
side:"bottom",sideOffset:4,align:"center",className:"DropdownMenuContent"
|
|
16022
|
-
},
|
|
16031
|
+
},l.map(((e,n)=>t.createElement(t.Fragment,{key:n
|
|
16023
16032
|
},e.map((e=>t.createElement(Us,{id:e?.[r],disabled:e?.disabled,
|
|
16024
|
-
className:"DropdownMenuItem",key:e?.[r],onSelect:()=>{const t=
|
|
16025
|
-
a?.(t)}},e?.[o],
|
|
16033
|
+
className:"DropdownMenuItem",key:e?.[r],onSelect:()=>{const t=c??[];t[n]=e?.[r],
|
|
16034
|
+
a?.(t)}},e?.[o],c?.[n]===e?.[r]&&t.createElement(xo,{fill:s.colors.common.accent
|
|
16026
16035
|
})))),t.createElement(Bs,{className:"DropdownMenuSeparator"})))))))},ij=n=>{
|
|
16027
|
-
const{data:r,columns:o,showFooter:a=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,filterComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,sortingHeading:g,showTableOnLoading:y,hideLoaderOnTopPagination:b,hideActions:w,count:C,pageIndex:z=0,pageSize:M=20,enablePreviousPage:x,enableNextPage:S,hideColumnSettings:E=!0,hideBottomPagination:_,rowMenuOptions:H,onPreviousPageClick:D,enableSorting:V,sortingValues:L,sortingOptions:A,onSortingOptionSelect:k,onNextPageClick:T,disableRowSelect:I,hideSelectAllInTable:P,onSelectAllRows:R,onRowSelect:O,onMenuOptionSelect:N,onRowClick:F,columnOrder:$,setColumnOrder:B,setHiddenColumns:j,hiddenColumns:U,selectedRowIds:Y={},
|
|
16036
|
+
const{data:r,columns:o,showFooter:a=!1,infoComponent:i,isLoading:l,isFetching:c,emptyComponent:s,loadingComponent:u,actionComponent:d,headerComponent:h,filterComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,sortingHeading:g,showTableOnLoading:y,hideLoaderOnTopPagination:b,hideActions:w,count:C,pageIndex:z=0,pageSize:M=20,enablePreviousPage:x,enableNextPage:S,hideColumnSettings:E=!0,hideBottomPagination:_,rowMenuOptions:H,onPreviousPageClick:D,enableSorting:V,sortingValues:L,sortingOptions:A,onSortingOptionSelect:k,onNextPageClick:T,disableRowSelect:I,hideSelectAllInTable:P,onSelectAllRows:R,onRowSelect:O,onMenuOptionSelect:N,onRowClick:F,columnOrder:$,setColumnOrder:B,setHiddenColumns:j,hiddenColumns:U,selectedRowIds:Y={},isDisableSortDropdown:W,setSelectedRowIds:G,dataKey:K="id",cellPropGetter:q,setPageIndex:Z,rowPropGetter:X}=n,Q=Hr(),[J,ee]=t.useState(!v),te={
|
|
16028
16037
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
16029
|
-
display:e=>e,group:e=>e},
|
|
16038
|
+
display:e=>e,group:e=>e},ne=-1===C||void 0===C,re=t.useMemo((()=>[...I?[]:[{
|
|
16030
16039
|
id:"select",header:({table:e})=>P?t.createElement("div",{
|
|
16031
16040
|
className:"table-checkbox-header"}):t.createElement(Nu,{
|
|
16032
16041
|
className:"table-checkbox",
|
|
@@ -16037,21 +16046,21 @@ cell:({row:e})=>t.createElement(Nu,{className:"table-checkbox",
|
|
|
16037
16046
|
checked:e.getIsSelected(),disabled:!e.getCanSelect(),
|
|
16038
16047
|
indeterminate:e.getIsSomeSelected(),onCheckedChange:t=>{
|
|
16039
16048
|
e.toggleSelected(!0===t),O?.(e.original,!0===t)}})
|
|
16040
|
-
}],...o.map((e=>
|
|
16049
|
+
}],...o.map((e=>te.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
16041
16050
|
cell:t=>e.accessorFn(t.row.original)}))),...H?[{id:"rowMenuOptions",
|
|
16042
16051
|
header:()=>t.createElement("div",{id:"more-actions-header"}),
|
|
16043
16052
|
cell:({row:e})=>t.createElement(cg,{trigger:t.createElement(Vo,{
|
|
16044
16053
|
className:"more-actions",fill:"currentcolor"}),options:H(e.original)||[],
|
|
16045
16054
|
onSelect:t=>{t.id&&N?.(t.id,e.original)},side:"bottom",align:"end"})
|
|
16046
|
-
}]:[]]),[o,I,P,
|
|
16055
|
+
}]:[]]),[o,I,P,Q.colors.text.primary]),oe=t.useMemo((()=>{const e={}
|
|
16047
16056
|
;return o.forEach((t=>{e[t.id]=!(U??[]).includes(t.id)})),e
|
|
16048
|
-
}),[o,U]),
|
|
16057
|
+
}),[o,U]),ae=t.useMemo((()=>({pageIndex:z,pageSize:M})),[M,z]),ie=function(t){
|
|
16049
16058
|
const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t
|
|
16050
16059
|
},[r]=e.useState((()=>({current:zB(n)
|
|
16051
16060
|
}))),[o,a]=e.useState((()=>r.current.initialState))
|
|
16052
16061
|
;return r.current.setOptions((e=>({...e,...t,state:{...o,...t.state},
|
|
16053
16062
|
onStateChange:e=>{a(e),null==t.onStateChange||t.onStateChange(e)}}))),r.current
|
|
16054
|
-
}({data:r,columns:
|
|
16063
|
+
}({data:r,columns:re,getRowId:e=>e?.[K]??"id",
|
|
16055
16064
|
getCoreRowModel:e=>V$((()=>[e.options.data]),(t=>{const n={rows:[],flatRows:[],
|
|
16056
16065
|
rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[]
|
|
16057
16066
|
;for(let c=0;c<t.length;c++){
|
|
@@ -16061,15 +16070,15 @@ n.rowsById[s.id]=s,i.push(s),e.options.getSubRows&&(s.originalSubRows=e.options.
|
|
|
16061
16070
|
null!=(l=s.originalSubRows)&&l.length&&(s.subRows=r(s.originalSubRows,o+1,s)))}
|
|
16062
16071
|
return i};return n.rows=r(t),n
|
|
16063
16072
|
}),L$(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),
|
|
16064
|
-
state:{columnOrder:$,columnVisibility:
|
|
16073
|
+
state:{columnOrder:$,columnVisibility:oe,rowSelection:Y,pagination:ae},
|
|
16065
16074
|
initialState:{columnPinning:{left:["select"],right:["rowMenuOptions"]}},
|
|
16066
|
-
onPaginationChange:e=>{let t=
|
|
16067
|
-
},onColumnVisibilityChange:e=>{let t=
|
|
16068
|
-
;t="function"==typeof e?e(
|
|
16075
|
+
onPaginationChange:e=>{let t=ae;t="function"==typeof e?e(ae):e,Z?.(t.pageIndex)
|
|
16076
|
+
},onColumnVisibilityChange:e=>{let t=oe
|
|
16077
|
+
;t="function"==typeof e?e(oe):e,j?.(Object.keys(t).filter((e=>!t[e])))},
|
|
16069
16078
|
onColumnOrderChange:e=>{let t=$??[];t="function"==typeof e?e($??[]):e,B?.(t)},
|
|
16070
|
-
onRowSelectionChange:e=>{let t=Y;t="function"==typeof e?e(Y):e,
|
|
16071
|
-
enableRowSelection:!0,manualPagination:!0,rowCount:
|
|
16072
|
-
}),{getPageCount:
|
|
16079
|
+
onRowSelectionChange:e=>{let t=Y;t="function"==typeof e?e(Y):e,G?.(t)},
|
|
16080
|
+
enableRowSelection:!0,manualPagination:!0,rowCount:ne?-1:C
|
|
16081
|
+
}),{getPageCount:le,getRowModel:ce,getState:se,getCanNextPage:ue,getCanPreviousPage:de,getPageOptions:he,previousPage:pe,setPageIndex:fe,nextPage:me,lastPage:ve,firstPage:ge}=ie,{rows:ye}=ce(),{pagination:{pageIndex:be,pageSize:we}}=se(),Ce=be*we+(be<le()-1?we:ye.length),ze=ie.getAllColumns().filter((e=>e.getIsVisible())).length+(I?0:1)+(H?1:0),Me=A?.[0].find((e=>e.id===L?.[0]))?.name
|
|
16073
16082
|
;return t.createElement(EB,{className:"TableContainer"},!w&&t.createElement(AB,{
|
|
16074
16083
|
className:"table-actions"
|
|
16075
16084
|
},d&&t.createElement(t.Fragment,null,d),t.createElement(IB,{
|
|
@@ -16078,50 +16087,50 @@ className:"table-header-dropdown-pagination"},V&&t.createElement("div",{
|
|
|
16078
16087
|
className:"table-heading-dropdown"},t.createElement("div",{
|
|
16079
16088
|
className:"table-sorting-heading"},`${g}:`)," ",t.createElement(aj,{
|
|
16080
16089
|
trigger:t.createElement("div",{className:"table-sorting-value-continer"
|
|
16081
|
-
},t.createElement("div",null,
|
|
16082
|
-
options:A||[],value:L,onSelect:e=>{k?.(e??[])}
|
|
16083
|
-
className:"pagination-actions"
|
|
16090
|
+
},t.createElement("div",null,Me),t.createElement(xB,{fill:"currentcolor"})),
|
|
16091
|
+
isDisableSortDropdown:!!W,options:A||[],value:L,onSelect:e=>{k?.(e??[])}
|
|
16092
|
+
})),t.createElement(RB,{className:"pagination-actions"
|
|
16084
16093
|
},!m&&t.createElement(t.Fragment,null,t.createElement(sa,{variant:"primary",
|
|
16085
16094
|
className:"pagination-text"},l&&!b?t.createElement(rg,{size:"small"
|
|
16086
|
-
}):t.createElement(t.Fragment,null,r.length>0?`${
|
|
16095
|
+
}):t.createElement(t.Fragment,null,r.length>0?`${be*we+1} - ${Ce} of ${ne?""+(ye.length>0?"Many":"-"):C??ye.length??"-"}`:null)),t.createElement(va,{
|
|
16087
16096
|
variant:"secondary",className:"table-pagination-button",onClick:()=>{
|
|
16088
|
-
D?.(),
|
|
16089
|
-
fill:
|
|
16090
|
-
className:"table-pagination-button",onClick:()=>{T?.(),
|
|
16091
|
-
disabled:
|
|
16097
|
+
D?.(),ne||pe()},disabled:ne?!x:!de()||l||c},t.createElement(HB,{
|
|
16098
|
+
fill:Q.colors.text.primary})),t.createElement(va,{variant:"secondary",
|
|
16099
|
+
className:"table-pagination-button",onClick:()=>{T?.(),ne||me()},
|
|
16100
|
+
disabled:ne?!S:!ue()||l||c},t.createElement(DB,{fill:Q.colors.text.primary
|
|
16092
16101
|
}))),!v&&t.createElement(va,{variant:"secondary",
|
|
16093
|
-
className:"table-pagination-button filter-toggle",onClick:()=>
|
|
16094
|
-
},t.createElement(_B,{style:{transform:
|
|
16102
|
+
className:"table-pagination-button filter-toggle",onClick:()=>ee(!J)
|
|
16103
|
+
},t.createElement(_B,{style:{transform:J?"rotateY(180deg)":"rotateY(0deg)"},
|
|
16095
16104
|
fill:"currentcolor"
|
|
16096
|
-
}))))),t.createElement(VB,null,t.createElement(LB,null,i&&t.createElement(TB,null,i),l&&!y?t.createElement(t.Fragment,null,u):t.createElement(t.Fragment,null,0===
|
|
16105
|
+
}))))),t.createElement(VB,null,t.createElement(LB,null,i&&t.createElement(TB,null,i),l&&!y?t.createElement(t.Fragment,null,u):t.createElement(t.Fragment,null,0===ye.length&&f?t.createElement(t.Fragment,null,s):t.createElement(OB,null,t.createElement(NB,null,!E&&t.createElement(VO,{
|
|
16097
16106
|
align:"end",avoidCollisions:!0,side:"top",trigger:t.createElement(SB,{
|
|
16098
|
-
fill:"currentcolor"})},t.createElement(oj,{table:
|
|
16099
|
-
})),t.createElement(FB,null,
|
|
16107
|
+
fill:"currentcolor"})},t.createElement(oj,{table:ie
|
|
16108
|
+
})),t.createElement(FB,null,ie.getHeaderGroups().map((e=>t.createElement(jB,{
|
|
16100
16109
|
key:e.id},e.headers.map((e=>t.createElement(YB,{key:e.id
|
|
16101
|
-
},e.isPlaceholder?null:MB(e.column.columnDef.header,e.getContext())))))))),t.createElement($B,null,c&&!l&&t.createElement(UB,null,t.createElement(rg,null)),
|
|
16102
|
-
key:e.id,$isSelected:e.getIsSelected(),...
|
|
16110
|
+
},e.isPlaceholder?null:MB(e.column.columnDef.header,e.getContext())))))))),t.createElement($B,null,c&&!l&&t.createElement(UB,null,t.createElement(rg,null)),ye.map((e=>t.createElement(jB,{
|
|
16111
|
+
key:e.id,$isSelected:e.getIsSelected(),...X?.(e.original)
|
|
16103
16112
|
},e.getVisibleCells().map((n=>t.createElement(WB,{key:n.id,onClick:()=>{
|
|
16104
|
-
F?.(e.original,n.column.columnDef)},...
|
|
16105
|
-
},MB(n.column.columnDef.cell,n.getContext())))))))),a&&t.createElement(BB,null,
|
|
16113
|
+
F?.(e.original,n.column.columnDef)},...q?.(n)
|
|
16114
|
+
},MB(n.column.columnDef.cell,n.getContext())))))))),a&&t.createElement(BB,null,ie.getFooterGroups().map((e=>t.createElement(jB,{
|
|
16106
16115
|
key:e.id},e.headers.map((e=>t.createElement(YB,{key:e.id
|
|
16107
16116
|
},e.isPlaceholder?null:MB(e.column.columnDef.footer,e.getContext())))))))),!_&&t.createElement(BB,null,t.createElement(jB,null,t.createElement(YB,{
|
|
16108
|
-
colSpan:
|
|
16109
|
-
},t.createElement(va,{variant:"secondary",onClick:()=>{
|
|
16110
|
-
disabled:!
|
|
16111
|
-
onClick:()=>{
|
|
16112
|
-
},"<"),
|
|
16113
|
-
variant:"secondary",onClick:()=>{
|
|
16114
|
-
},"1"),
|
|
16115
|
-
},"...")),
|
|
16116
|
-
key:e,variant:"secondary",className:
|
|
16117
|
+
colSpan:ze},t.createElement(tj,{className:"table-pagination"
|
|
16118
|
+
},t.createElement(va,{variant:"secondary",onClick:()=>{ge()},
|
|
16119
|
+
disabled:!de()||l||c},"<<"),t.createElement(va,{variant:"secondary",
|
|
16120
|
+
onClick:()=>{pe()},disabled:!de()||l||c
|
|
16121
|
+
},"<"),be+1>2&&t.createElement(t.Fragment,null,t.createElement(va,{
|
|
16122
|
+
variant:"secondary",onClick:()=>{ge()},disabled:l||c
|
|
16123
|
+
},"1"),be+1-3!=0&&t.createElement(va,{variant:"secondary",disabled:!0
|
|
16124
|
+
},"...")),he().map((e=>[e-2,e-1,e,e+1,e+2].includes(be+1)&&t.createElement(va,{
|
|
16125
|
+
key:e,variant:"secondary",className:be+1===e+1?"active":"",onClick:()=>{fe?.(e)
|
|
16117
16126
|
},disabled:l||c
|
|
16118
|
-
},e+1))),
|
|
16127
|
+
},e+1))),be+2<Math.ceil(r.length/we)-2&&t.createElement(t.Fragment,null,be+2+3!==Math.ceil(r.length/we)&&t.createElement(va,{
|
|
16119
16128
|
variant:"secondary",disabled:!0},"..."),t.createElement(va,{variant:"secondary",
|
|
16120
|
-
onClick:()=>{
|
|
16121
|
-
},Math.ceil(r.length/
|
|
16122
|
-
|
|
16123
|
-
onClick:()=>{
|
|
16124
|
-
},">>"))))))))),!v&&
|
|
16129
|
+
onClick:()=>{fe?.(Math.ceil(r.length/we)-1)},disabled:l||c
|
|
16130
|
+
},Math.ceil(r.length/we))),t.createElement(va,{variant:"secondary",onClick:()=>{
|
|
16131
|
+
me()},disabled:!ue()||l||c},">"),t.createElement(va,{variant:"secondary",
|
|
16132
|
+
onClick:()=>{ve()},disabled:!ue()||l||c
|
|
16133
|
+
},">>"))))))))),!v&&J&&p&&t.createElement(kB,null,p)))
|
|
16125
16134
|
},lj="Tabs",[cj,sj]=E(lj,[Nl]),uj=Nl(),[dj,hj]=cj(lj),pj=l(((e,t)=>{
|
|
16126
16135
|
const{__scopeTabs:n,value:r,onValueChange:a,defaultValue:i,orientation:l="horizontal",dir:c,activationMode:s="automatic",...u}=e,d=ce(c),[h,p]=O({
|
|
16127
16136
|
prop:r,onChange:a,defaultProp:i});return o(dj,{scope:n,baseId:W(),value:h,
|
package/lib/package.json
CHANGED