Skip to content

Releases: chakra-ui/ark

@ark-ui/[email protected]

19 Jun 13:33
Compare
Choose a tag to compare

Fixed

  • General: Ensure pointerdown or click event handlers only execute when the main button is clicked
  • Tree View: Exported TreeViewNodeState and TreeViewNodeProps types from @zag-js/tree-view

Changed

  • Collection: Improve the APIs around tree.flatten(...) and flattenedToTree to ensure the original node
    properties are preserved.

    Previously, tree.flatten() would return an array of objects with value and label stripping out the original
    node properties.

    const tree = new TreeCollection({
      rootNode: {
        value: 'ROOT',
        children: [{ value: 'child1' }, { value: 'child2' }],
      },
    })
    
    const flattened = tree.flatten()
    const reconstructed = flattenedToTree(flattened)
    
    console.log(reconstructed.rootNode)
    
    // {
    //   value: "ROOT",
    //   children: [{ value: "child1" }, { value: "child2" }],
    // }

@ark-ui/[email protected]

19 Jun 13:32
Compare
Choose a tag to compare

Fixed

  • General: Ensure pointerdown or click event handlers only execute when the main button is clicked
  • Tree View: Exported TreeViewNodeState and TreeViewNodeProps types from @zag-js/tree-view

Changed

  • Collection: Improve the APIs around tree.flatten(...) and flattenedToTree to ensure the original node
    properties are preserved.

    Previously, tree.flatten() would return an array of objects with value and label stripping out the original
    node properties.

    const tree = new TreeCollection({
      rootNode: {
        value: 'ROOT',
        children: [{ value: 'child1' }, { value: 'child2' }],
      },
    })
    
    const flattened = tree.flatten()
    const reconstructed = flattenedToTree(flattened)
    
    console.log(reconstructed.rootNode)
    
    // {
    //   value: "ROOT",
    //   children: [{ value: "child1" }, { value: "child2" }],
    // }

@ark-ui/[email protected]

19 Jun 13:30
Compare
Choose a tag to compare

Fixed

  • General: Ensure pointerdown or click event handlers only execute when the main button is clicked
  • Tree View: Exported TreeViewNodeState and TreeViewNodeProps types from @zag-js/tree-view

Changed

  • Collection: Improve the APIs around tree.flatten(...) and flattenedToTree to ensure the original node
    properties are preserved.

    Previously, tree.flatten() would return an array of objects with value and label stripping out the original
    node properties.

    const tree = new TreeCollection({
      rootNode: {
        value: 'ROOT',
        children: [{ value: 'child1' }, { value: 'child2' }],
      },
    })
    
    const flattened = tree.flatten()
    const reconstructed = flattenedToTree(flattened)
    
    console.log(reconstructed.rootNode)
    
    // {
    //   value: "ROOT",
    //   children: [{ value: "child1" }, { value: "child2" }],
    // }

@ark-ui/[email protected]

19 Jun 13:48
Compare
Choose a tag to compare
Pre-release

Added

  • Added all components to match React and Vue packages.

@ark-ui/[email protected]

17 Jun 18:43
Compare
Choose a tag to compare

Fixed

  • Popover: Fixed issue where onOpenChange could be called twice when controlled
  • File Utils: Improved downloadFile function to handle webview scenarios
  • Toast: Fixed issue where toast's CSS variables don't apply correctly
  • Combobox:
    • Fixed issue where onInputValueChange could be called twice when selecting an item
    • Fixed issue where combobox with allowCustomValue: true used within in a form requires two enter keypress to submit

@ark-ui/[email protected]

17 Jun 18:42
Compare
Choose a tag to compare

Fixed

  • Popover: Fixed issue where onOpenChange could be called twice when controlled
  • File Utils: Improved downloadFile function to handle webview scenarios
  • Combobox:
    • Fixed issue where onInputValueChange could be called twice when selecting an item
    • Fixed issue where combobox with allowCustomValue: true used within in a form requires two enter keypress to submit

@ark-ui/[email protected]

17 Jun 18:40
Compare
Choose a tag to compare

Fixed

  • Popover: Fixed issue where onOpenChange could be called twice when controlled
  • File Utils: Improved downloadFile function to handle webview scenarios
  • Combobox:
    • Fixed issue where onInputValueChange could be called twice when selecting an item
    • Fixed issue where combobox with allowCustomValue: true used within in a form requires two enter keypress to submit

@ark-ui/[email protected]

10 Jun 20:34
Compare
Choose a tag to compare

Added

  • Editable: Added support for activationMode=none
  • Collection
    • Exposed copy method
    • Added support for getParentNodes to accept a value or index path

Fixed

  • Collection: Fixed issue where entrypoint @ark-ui/vue/collection was not working as expected
  • Carousel: Fixed issue where carousel crashes when slidesPerPage is 0
  • File Upload: Prevented undefined in acceptedFiles when no files accepted
  • Select: Fixed issue where highlighted item could be cleared when navigating up/down the list with keyboard
  • Tabs: Fixed issue where tabs with links should not trigger tab change upon cmd/middle click
  • Menu: Fixed issue where Menu.ItemText could not be used with Menu.Item

@ark-ui/[email protected]

10 Jun 20:37
Compare
Choose a tag to compare

Added

  • Editable: Added support for activationMode=none
  • Collection
    • Exposed copy method
    • Added support for getParentNodes to accept a value or index path

Fixed

  • Collection: Fixed issue where entrypoint @ark-ui/solid/collection was not working as expected
  • Carousel: Fixed issue where carousel crashes when slidesPerPage is 0
  • File Upload: Prevented undefined in acceptedFiles when no files accepted
  • Select: Fixed issue where highlighted item could be cleared when navigating up/down the list with keyboard
  • Tabs: Fixed issue where tabs with links should not trigger tab change upon cmd/middle click
  • Menu: Fixed issue where Menu.ItemText could not be used with Menu.Item

@ark-ui/[email protected]

10 Jun 19:37
Compare
Choose a tag to compare

Added

  • Editable: Added support for activationMode=none
  • Collection
    • Exposed copy method
    • Added support for getParentNodes to accept a value or index path

Fixed

  • Collection: Fixed issue where entrypoint @ark-ui/react/collection was not working as expected
  • Carousel: Fixed issue where carousel crashes when slidesPerPage is 0
  • File Upload: Prevented undefined in acceptedFiles when no files accepted
  • Select: Fixed issue where highlighted item could be cleared when navigating up/down the list with keyboard
  • Tabs: Fixed issue where tabs with links should not trigger tab change upon cmd/middle click
  • Menu: Fixed issue where Menu.ItemText could not be used with Menu.Item