sodtrack-web-ui 0.74.16 → 0.76.0

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.
Files changed (36) hide show
  1. package/dist/chunk-EC4MRIVM.mjs +1 -0
  2. package/dist/chunk-MOY7IRJM.mjs +1 -0
  3. package/dist/components/carousel.d.mts +26 -0
  4. package/dist/components/carousel.d.ts +26 -0
  5. package/dist/components/carousel.js +16 -0
  6. package/dist/components/carousel.mjs +1 -0
  7. package/dist/components/chip-form.d.mts +3 -3
  8. package/dist/components/chip-form.d.ts +3 -3
  9. package/dist/components/chip-status-table.d.mts +1 -1
  10. package/dist/components/chip-status-table.d.ts +1 -1
  11. package/dist/components/data-table.d.mts +1 -1
  12. package/dist/components/data-table.d.ts +1 -1
  13. package/dist/components/data-table.js +4 -2
  14. package/dist/components/data-table.mjs +1 -1
  15. package/dist/components/index.d.mts +3 -1
  16. package/dist/components/index.d.ts +3 -1
  17. package/dist/components/index.js +2 -2
  18. package/dist/components/index.mjs +1 -1
  19. package/dist/components/list-item-arrow.mjs +1 -1
  20. package/dist/components/list-item-button.mjs +1 -1
  21. package/dist/components/list-item-checkbox-left.js +1 -1
  22. package/dist/components/list-item-checkbox-left.mjs +1 -1
  23. package/dist/components/list-item-checkbox.js +1 -1
  24. package/dist/components/list-item-checkbox.mjs +1 -1
  25. package/dist/components/list-item.mjs +1 -1
  26. package/dist/components/tab.d.mts +1 -1
  27. package/dist/components/tab.d.ts +1 -1
  28. package/dist/components/table.d.mts +1 -1
  29. package/dist/components/table.d.ts +1 -1
  30. package/dist/{data-table-CbbFV6I5.d.mts → data-table-DfqlaNv3.d.mts} +15 -2
  31. package/dist/{data-table-B5WIrr-Y.d.ts → data-table-DoL1dJyd.d.ts} +15 -2
  32. package/dist/styles/index.css +1 -1
  33. package/dist/styles/spacing.css +1 -1
  34. package/package.json +1 -1
  35. package/dist/chunk-OUAQ2CF7.mjs +0 -1
  36. /package/dist/{chunk-UARWHSVD.mjs → chunk-G2WUCUE7.mjs} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sodtrack-web-ui",
3
- "version": "0.74.16",
3
+ "version": "0.76.0",
4
4
  "description": "UI components for Sodtrack Web",
5
5
  "exports": {
6
6
  "./styles/index.css": "./dist/styles/index.css",
@@ -1 +0,0 @@
1
- import {a,b,c,g,h,d,e as e$1,i,j,f}from'./chunk-2UWUPQW7.mjs';import {b as b$1}from'./chunk-PF2FHSIC.mjs';import {e}from'./chunk-4HYLZVI5.mjs';import {useMemo}from'react';import {useReactTable,getPaginationRowModel,getCoreRowModel,flexRender}from'@tanstack/react-table';import {jsxs,jsx}from'react/jsx-runtime';function oe({columns:h$1,data:m,rowsCount:l,pagination:i$1,onPaginationChange:p,noResults:N,rowsPerPageText:H="Rows per page",ofText:I="of",onNextPageClick:v,onPreviousPageClick:k,disableNextPage:d$1,disablePreviousPage:T,className:z,onRowsPerPageChange:M,columnOrder:O,columnVisibility:B,rowsPerPageOptions:V,...L}){let t=useReactTable({data:m,columns:h$1,rowCount:l,state:{pagination:i$1,columnOrder:O,columnVisibility:B},onPaginationChange:p,manualPagination:true,getCoreRowModel:getCoreRowModel(),getPaginationRowModel:getPaginationRowModel()}),A=useMemo(()=>T||!!l&&!t.getCanPreviousPage(),[T,l,i$1?.pageIndex]),F=useMemo(()=>d$1||!!l&&!t.getCanNextPage(),[d$1,l,i$1?.pageIndex]);return t.getRowModel().rows?.length?jsxs(a,{className:z,...L,children:[jsxs(b,{children:[jsx("colgroup",{children:t.getHeaderGroups()[0].headers.map(a=>{let o=a.column.getSize()/t.getHeaderGroups()[0].headers.reduce((n,G)=>n+G.getSize(),0)*100;return jsx("col",{span:1,style:{width:`${o}%`,minWidth:`${a.column.getSize()}px`}},a.id)})}),jsx(c,{children:t.getHeaderGroups().map(a=>jsx(g,{children:a.headers.map(o=>{let n=o.column.columnDef;return jsx(h,{children:jsxs("div",{className:"flex items-center",children:[o.isPlaceholder?null:jsx(b$1,{content:flexRender(n.header,o.getContext()),contentClassName:"font-normal normal-case",children:jsx("span",{className:"line-clamp-1 text-xs uppercase leading-[130%]",children:flexRender(n.header,o.getContext())})}),n.headerInfoTooltip&&jsx(b$1,{size:n.headerInfoTooltipSize,content:n.headerInfoTooltip,contentClassName:"font-normal normal-case",children:jsx(e,{className:"ml-1 w-[0.875rem] shrink-0"})})]})},o.id)})},a.id))}),jsx(d,{children:t.getRowModel().rows.map(a=>jsx(e$1,{"data-state":a.getIsSelected()&&"selected",children:a.getVisibleCells().map(o=>jsx(i,{children:flexRender(o.column.columnDef.cell,o.getContext())},o.id))},a.id))})]}),i$1&&p&&m.length>0&&jsx(j,{rowsPerPageOptions:V,rowsCount:l,pagination:i$1,onRowsPerPageChange:a=>{t.setPageSize(a),t.setPageIndex(0),M?.(a);},onPreviousPageClick:()=>{t.previousPage(),k?.();},onNextPageClick:()=>{t.nextPage(),v?.();},disableNextPage:F,disablePreviousPage:A,ofText:I,rowsPerPageText:H})]}):jsx(f,{...N})}export{oe as a};
File without changes