dentil

Changelog

The shadcn CLI copies files into your project and doesn't track versions, so updates don't reach you on their own. To see how your copy differs from the latest, run add with --diff. It changes nothing. Re-run without it, plus --overwrite, to replace your files, then reapply any local edits.

pnpm dlx shadcn@latest add @dentil/data-table --diff
npx shadcn@latest add @dentil/data-table --diff
yarn dlx shadcn@latest add @dentil/data-table --diff
bunx --bun shadcn@latest add @dentil/data-table --diff
  1. Currency input hydration

    @dentil/currency-input
    • @dentil/currency-input: without currencies, the picker reads Intl.supportedValuesOf('currency') only after hydration, so a server render no longer mismatches a browser with a different currency list.
  2. Object header

    @dentil/object-header
    • @dentil/object-header: ObjectHeader, ObjectHeaderCopyButton and ObjectHeaderPresence, a record page header row with the object type, stacked avatars for the people viewing the record, and copy buttons for the page URL and the object ID.
  3. Dashboard layout

    @dentil/dashboard-layout
    • @dentil/dashboard-layout: DashboardContainer, DashboardHeader, DashboardHeading, DashboardSubheading, DashboardGrid, DashboardSplit, DashboardSplitMain, DashboardSplitSidebar, DashboardSection, DashboardSectionHeader, DashboardSectionContent, DashboardSectionTitle and DashboardTableHeader, page layout blocks that let bordered children such as tables and sidebars share a 1px edge.
  4. Charts

    @dentil/charts
    • @dentil/charts: LineChart, a metric over time with a headline, a period-over-period change badge, any number of lines and previous-period comparisons, and a "View more" footer. Lines stop at the last bucket that has started.
    • @dentil/charts: CategoryBarChart, a total split into categories with a stacked share bar and a row per category that can link elsewhere.
    • @dentil/charts: Chart, ChartHeader, ChartContent and ChartFooter for composing your own Recharts plot, plus getPercentChange, formatChartDate, maskFuture and useInViewFetch, which fetches once a chart scrolls into view.
  5. Data table cell alignment

    @dentil/data-table
    • Breaking: @dentil/data-table: cell content is vertically centered within the cell's 40px minimum height. Set column meta.itemAlign to 'start' to keep it top-aligned.
  6. Badge

    @dentil/badge
    • @dentil/badge: Badge, a status label with theme variants (default, secondary, outline, destructive), fixed color variants from red to zinc, and a sm size. asChild renders it as a link. The first letter is capitalized.
  7. Address region select type size

    @dentil/address-input
    • @dentil/address-input: the country and region selects match the text fields, at text-base on small screens and text-sm from md.
  8. Data table bottom border

    @dentil/data-table
    • Breaking: @dentil/data-table: a table with no pagination or "Show more" footer no longer draws a line under the last row. Pass showBottomBorder to draw it.
  9. Invoice table proration and plan changes

    @dentil/invoice-table
    • @dentil/invoice-table: InvoiceLine.proration shows a prorated line as "17 of 31 days of $20.00" after its period, so it no longer has to borrow the struck-through originalAmount, which now documents discounts.
    • @dentil/invoice-table: lines also takes an InvoiceLineGroup, a heading row with an optional net amount and its lines indented under it, for the credit and charge of a plan upgrade or downgrade. isInvoiceLineGroup tells groups from lines.
    • @dentil/invoice-table: the muted line under a description is now data-slot="invoice-table-detail", with the period inside it as invoice-table-period and the proration as invoice-table-proration.
    • @dentil/invoice-table: formatInvoicePeriod writes regular spaces around the dash, fixing a hydration mismatch where Node put thin spaces and the browser didn’t.
  10. JSON Viewer

    @dentil/json-viewer
    • @dentil/json-viewer: JsonViewer, a collapsible JSON tree with defaultExpandDepth, getHref and linkComponent to link object IDs, and timestamps that show their date in a timezone and UTC on hover.
  11. Description list

    @dentil/description-list
    • @dentil/description-list: Descriptions, term and detail pairs in one or two columns built from an array, with links through your linkComponent, copy buttons, a "Show more" section and a vertical layout. The DescriptionList, DescriptionTerm, DescriptionDetails, DescriptionListColumns and DescriptionCopyButton primitives are exported for custom layouts.
  12. Link

    @dentil/link
    • @dentil/link: Link, a text link with a chevron that turns into an arrow on hover, an external variant that opens a new tab, and a linkComponent prop for next/link or your router.
  13. Install into components/dentil

    @dentil/*
    • Breaking: every item now installs into components/dentil/<item>/ instead of components/<item>/, so imports become @/components/dentil/<item>/…. Existing installs keep working where they are. Re-adding an item writes a fresh copy to the new folder, so move any edits (such as your modals/registry.tsx and sheets/registry.tsx entries) across and delete the old folder.
  14. Column alignment

    @dentil/data-table
    • @dentil/data-table: column meta.verticalAlign ('top' | 'middle' | 'bottom') sets where cells sit when the row is taller than them. The default is 'middle', as before.
    • @dentil/data-table: column meta.align also takes 'center'.
  15. Data table without a toolbar

    @dentil/data-table
    • @dentil/data-table: with no toolbar, toolbarActions, showDisplay or tabs, the table no longer draws a border above its header.
  16. Date hover on Base UI

    @dentil/date
    • @dentil/date: hover now opens a HoverCard instead of a Popover, so it builds on Base UI styles and hovering never moves focus. Now depends on hover-card.
  17. Currency picker

    @dentil/currency-input@dentil/select-search
    • @dentil/currency-input: onCurrencyChange turns the currency code into a picker, and currencies limits its list. searchable opens it as a SelectSearch popover filtered by code or name. Switching to a currency with different decimal places keeps the amount on screen and emits it in the new minor units. Now depends on lucide-react and @dentil/select-search.
    • @dentil/select-search: an option icon can be a component, such as a Lucide icon, or any React node. It is shown before the label in the list and on the trigger.
    • @dentil/select-search: options take a description, shown muted in the list and matched by search. renderValue replaces the trigger content, and align and contentClassName position and size the popover.
    • @dentil/currency-input: in the searchable list, each currency code sits in a fixed-width column so the names line up.
  18. Date popover hover and placement

    @dentil/date
    • @dentil/date: hover opens the time-zone popover on hover and keeps it open while the pointer is over the popover. side and align set where it opens.
  19. Date

    @dentil/date
    • @dentil/date: Date, a compact date formatted in a time zone you supply, from unix seconds, milliseconds, an ISO string or a Date. showTimezone underlines the date and opens a popover with that zone and the UTC time. formatDate and toDate parse the same values.
  20. Invoice table

    @dentil/invoice-table
    • @dentil/invoice-table: InvoiceTable, an invoice line items table with optional quantity, unit price and tax columns, a totals footer, and an optional per-line allocation column for credit notes and part payments.
  21. Async select

    @dentil/async-select
    • @dentil/async-select: AsyncSelect, a searchable combobox that loads options from an async fetcher, with debounced search, preloading and custom option rendering.
  22. Object timeline

    @dentil/object-timeline
    • @dentil/object-timeline: ObjectTimeline, a vertical event list with an icon, title, description, date and an optional action on the title.
  23. Color picker

    @dentil/color-picker
    • @dentil/color-picker: ColorPicker, a hex color input that reads and writes a 6-digit hex, with a swatch that opens a saturation and hue picker. With no valid hex, the picker opens on a random color.
  24. Switch label

    @dentil/switch-label
    • @dentil/switch-label: SwitchLabel, a switch with a clickable label and an optional description aligned to the control or the label text.
  25. Preferred countries and flags

    @dentil/country-select@dentil/select-search
    • @dentil/country-select: preferredCountries lists those ISO codes first, ahead of the alphabetical list.
    • @dentil/country-select: showFlags draws a flag beside each country, in the list and on the trigger.
    • @dentil/select-search: groups renders options in groups with a separator between them. The separator hides while searching.
    • @dentil/select-search: an option icon is shown before the label.
  26. Date picker and form inputs

    @dentil/date-picker@dentil/select-search@dentil/country-select@dentil/address-input@dentil/phone-input@dentil/currency-input@dentil/dob-input
    • @dentil/date-picker: DatePicker, SingleDatePicker and DateRangePicker, with range presets, date shortcuts, billing cycles, min and max dates, an Apply step, and Date or unix timestamp values.
    • @dentil/select-search: SelectSearch, a searchable single-select combobox.
    • @dentil/country-select: CountrySelect, with ISO 3166-1 codes and names from Intl.DisplayNames.
    • @dentil/address-input: AddressInput, with state lists for the US, Canada and Australia and a regions prop for any other country.
    • @dentil/phone-input: PhoneInput, which returns E.164 numbers.
    • @dentil/currency-input: CurrencyInput, which reads and writes minor units.
    • @dentil/dob-input: DOBInput, which only emits real dates.
  27. Initial release

    @dentil/data-table@dentil/data-table-filter@dentil/data-table-url-state@dentil/modals@dentil/sheets
    • @dentil/data-table: DataTable with row links, server-side sorting, offset or cursor pagination, tabs, column visibility, context menus, split view, expandable rows and cross-page selection.
    • @dentil/data-table-filter: Linear-style filter bar adapted from bazza/ui. Ships its MIT license as components/data-table/filter/LICENSE.md.
    • @dentil/data-table-url-state: useTableQueryState, which syncs the table query to the URL.
    • @dentil/modals: promise-based modal registry with lazy-loaded contents and stacking.
    • @dentil/sheets: the same registry for side sheets, plus minimize-to-dock and draft retention.
    • Every item works with Radix styles (new-york, radix-*) and Base UI styles (base-*).