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 FieldFormFieldContext
,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
toInputLegacy
All API tokens with--saltInput-
prefix changed to--saltInputLegacy-
prefix -
bf5a944: Breaking change
Rename
FormField
toFormFieldLegacy
All API tokens with--saltFormField-
prefix changed to--saltFormFieldLegacy-
prefix -
eb3db91: Removed
startAdornment
andendAdornment
props fromInputNext
. Props will be added back once adornments come in v2Moved input-next to core as input
Input
: First version ofInputNext
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 - All tokens prefixed
-
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 backa11yValueAriaProps
type fora11yProps
inFormFieldContextNextValue
Addedid={a11yProps?.["aria-describedby"]}
to helper text
Addedid={a11yProps?.["aria-labelledby"]}
to label -
95a360b:
InputNext
:InputProps
interface changed to extendOmit<ComponentPropsWithoutRef<"div">,"defaultValue">, Pick<ComponentPropsWithoutRef<"input">, "disabled" | "value" | "defaultValue">
ref
prop moved to target container div: for direct ref on input component, use newinputRef
prop -
d78ff53: Refactored all components to use new style injection mechanism provided by
@salt-ds/styles