Agriculture Design System
Beta
Design System for the Export Service
4th October 2023

AgDS Beta v1.13.0 release

Small patches to App layout, extended Table primitives to support batch actions, plus various bug fixes and improvements.

Updates

App layout

  • Fixed small issue in AppLayoutSidebar where the text color wasn’t being applied correctly to text list items in dark mode
  • Extended the items prop in AppLayoutSidebar to accept an object with options and items. This allows consumers to control the padding between sidebar navigation groups.

File upload

  • Added thumbnails to selected files. This can be disabled via a new hideThumbnails prop
  • Extended the accept prop so MIME types that are not in the predefined list can be used
  • Exported formatFileSize utility function. Example usage: import { formatFileSize } from '@ag.ds-next/react/file-upload'
  • Upgraded internal react-dropzone dependency

Icon

  • Created new icon FileIcon

table

  • Created new components for batch table actions: TableBatchActionsBar and TableBatchActionsTitle

  • Created new TableRow component. If you’re using the standard <tr> HTML element, you can optionally upgrade to this new component.

<Table>
<TableHead>
- <tr>
+ <TableRow>
<TableHeader scope="col">Location</TableHeader>
<TableHeader scope="col">Population</TableHeader>
- </tr>
+ </TableRow>
</TableHead>
<TableBody>
- <tr>
+ <TableRow>
<TableCell>New South Wales</TableCell>
<TableCell>7,670,700</TableCell>
- <tr>
+ </TableRow>
</TableBody>
</Table>

Released packages

"@ag.ds-next/react": "1.13.0"

Full changelog

Aside from the complete release notes on the @ag.ds-next website, you can also view the verbose change log in the related PR for this release.