github chakra-ui/ark @ark-ui/solid@5.18.0

latest releases: @ark-ui/mcp@1.2.0, @ark-ui/mcp@1.1.2, @ark-ui/mcp@1.1.1...
one month ago

Added

  • Collection: Add useListSelection hook for managing collection item selection with support for single/multiple
    selection modes

    const collection = createListCollection({ items: ['React', 'Vue', 'Angular'] })
    const selection = useListSelection({ collection })
    
    // Check if item is selected
    const isSelected = selection.isSelected('React')
    
    // Select/deselect items
    selection.select('React')
    selection.toggle('Vue')
  • File Upload: Add support for programmatically controlling the accepted files via acceptedFiles and
    defaultAcceptedFiles

  • Signature Pad: Add support for programmatically controlling the paths via paths and defaultPaths props.

  • Date Picker: Added hover range preview support for date picker range selection. Added inHoveredRange,
    firstInHoveredRange, and lastInHoveredRange properties to DayTableCellState with corresponding data attributes
    data-in-hover-range, data-hover-range-start, and data-hover-range-end.

    Hover range states are only active when not overlapping with actual selected range, enabling distinct styling for
    hover preview vs actual selection in range mode.

Fixed

  • Date Picker: Fix date comparison issues when time components are involved. This resolves critical issues with date
    comparison operations when different date types (CalendarDate, CalendarDateTime, ZonedDateTime) are mixed,
    particularly in scenarios involving time components.

Don't miss a new ark release

NewReleases is sending notifications on new releases.