Skip to content

v2.5.0

Compare
Choose a tag to compare
@morrys morrys released this 05 Nov 15:30
· 3 commits to main since this release

New Additions

  • NsSwitch:

    • Introduced the new NsSwitch component for toggle functionality.
  • NsNumberInput:

    • Added NsNumberInput component to replace <input type="number"> for improved accessibility, non-incrementable fields (like passport numbers), and better user experience. The new component uses <input type="text" inputmode="numeric" pattern="[0-9]*"> for enhanced compatibility across devices.

Improved

  • NsHeader:

    • Added infoBox prop allowing a React component to be centered within the header for greater customization.
  • NsDataGrid:

    • Adjusted Typography to render as <div> instead of <p> to prevent nesting errors when including other elements inside it.
  • NsPanel:

    • Provided an example usage to simulate a specific case and ensure the panel dynamically adapts to the parent container size.
  • Storybook:

    • Updated the dark mode banner's "Need Help" color for better visibility.

Fixed

  • Tooltip:

    • Removed the border for a cleaner visual appearance.
  • Exports:

    • Exported the DynamicLink component for wider availability in the project.