Skip to content

@digdir/[email protected]

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 08 Oct 11:33
· 183 commits to next since this release
8d3a3c5

Patch Changes

  • Pagination: (#2460)

    • Remove attributes currentPage and totalPages on Pagination
    • Replace Pagination.Root with Paginaton
    • Replace Pagination.Next, Pagination.Previous and Pagination.Ellipsis with Paginaton.Button
    • Make usePagination return spreadable props for subcomponents
    • Add support for showPages and onChange in usePagination
  • Skiplink: (#2577)

    • Simplify DOM
    • Add support for forwardRef
  • Accordion: Animate open/close with CSS (#2527)

    • Replace onFound with onToggle
  • Heading: (#2525)

    • Classes with data attributes
    • Move base style to utility classes
  • Modal: (#2440)

    • Rename Modal.Dialog to Modal
    • Rename Modal.Root to Modal.Context
    • Replace onInteractOutside event with backdropClose boolean
    • Replace closeButton and closeButtonTitle on Modal.Header with closeButton on Modal
    • Add border to Modal.Header and Modal.Footer
    • Remove Modal.Content
    • Remove onBeforeClose
    • Remove subtitle from Modal.Header
  • Body/Paragraph (#2529)

    • Add body-xl token
    • Add xl paragraph
    • Remove ingress tokens
  • Ingress: Remove component (#2515)

    • Use Paragraph variant='long' instead
  • Card: (#2509)

    • Allow Card with content placed directly inside
    • Replace Card.Header, Card.Content and Card.Footer with Card.Block
    • Replace isLink with anchor-in-heading + click handler for better accessibility
  • Modal: Remove Modal.Header and Modal.Footer, replace with Modal.Block (#2583)

  • SkipLink: Remove ds-sr-only class (#2546)

  • Paragraph: Add css classes and style with data attributes (#2523)

  • Chip: (#2493)

    • Add Chip.Button
    • Rename Chip.Toggle to Chip.Radio and Chip.Checkbox
    • Remove Chip.Group