Skip to content
Compare
Choose a tag to compare
@joshwooding joshwooding released this 07 Jun 11:47
· 1065 commits to main since this release
8fba632

Minor Changes

  • 9d68637: Moved form-field-next and form-field-context-next to core as form-field and form-field-context

    FormField: First version of Form Field built with a compositional API by providing the following components alongside:
    FormFieldHelperText: Helper text component
    FormFieldLabel: Form label component (compatible with left and top placement)
    FormFieldControlWrapper: Styling container for controls used within Form Field

    FormFieldContext, useFormFieldProps: Context and hook for inner controls to respond to disabled, readonly, and validation state on the parent Form Field

  • 22c626e: Breaking change

    Rename Input to InputLegacy
    All API tokens with --saltInput- prefix changed to --saltInputLegacy- prefix

  • bf5a944: Breaking change

    Rename FormField to FormFieldLegacy
    All API tokens with --saltFormField- prefix changed to --saltFormFieldLegacy- prefix

  • eb3db91: Removed startAdornment and endAdornment props from InputNext. Props will be added back once adornments come in v2

    Moved input-next to core as input

    Input: First version of InputNext renamed to Input

    • All tokens prefixed --saltInputNext- changed to prefix --saltInput-

    Moved status-adornment to core

    StatusAdornment: Component to be used for validation status indication

  • 24f44d8: Add docs for InputNext

  • 3e6441d: Nav Item

    Nav Item allows you to compose Navigation patterns.

    <NavItem active parent expanded href="#" onExpand={(event) => {}}>
      Nav Item
    </NavItem>
  • c82a39a: FormFieldNext tests
    Added back a11yValueAriaProps type for a11yProps in FormFieldContextNextValue
    Added id={a11yProps?.["aria-describedby"]} to helper text
    Added id={a11yProps?.["aria-labelledby"]} to label

  • 95a360b: InputNext: InputProps interface changed to extend Omit<ComponentPropsWithoutRef<"div">,"defaultValue">, Pick<ComponentPropsWithoutRef<"input">, "disabled" | "value" | "defaultValue">

    ref prop moved to target container div: for direct ref on input component, use new inputRef prop

  • d78ff53: Refactored all components to use new style injection mechanism provided by @salt-ds/styles

Patch Changes

  • fef8ef5: Banner changes:

    • Remove emphasize, announcement and disableAnnouncer props
    • Add variant prop
    • Replace BannerCloseButton component with BannerActions
  • 46af9f8: Move Banner to core