Releases: Workday/canvas-kit
Releases · Workday/canvas-kit
v11.0.1
Documentation
- fix: Add explicit info about tokens (#2754) (@mannycarrera4, manuel.carrera, @josh-bagwell)
v11.0.0
BREAKING CHANGES
- #2472 - The prop
hasError
for Preview componentsFormField
,TexInput
andTextArea
have been renamed toerror
and accepts the values:"error" | "alert" | undefined
- #2546 There may be slight visual changes.
- #2567 There may be slight visual changes.
- #2583 There may be slight visual changes.
- #2600 -
rowState
no longer exists.- The component is now a compound component with access to lower level elements.
- #2615 Impacts only internal Canvas Kit code.
Icon
component has been removed and no longer used. - #2697 Adds
box-sizing: border-box
to all stencils. If your stencil did not add this style already, it may change the waywidth
works for the component. Our intent is to make all elements use border box layouts to make width calculations more predictable. This change may change the way your component works if you use thewidth
style property.
- chore: Refactor StatusIndicator component (#2620) (@harshanarisetty)
StatusIndicator
now uses Canvas Tokens and our new styling utilities.
The component now supports thecs
prop, but otherwise the API has not changed. It should behave
identically as it did in previous versions.
- feat(loading-dots): Use static styling utilities (#2540) (@harshanarisetty)
Components
- chore: Update CountBadge styles (#2442) (@alanbsmith, manuel.carrera)
- feat: Update FormField Preview API to support different inputs (#2472) (@mannycarrera4, manuel.carrera, @RayRedGoose)
TextInput
from Preview has been deprecated. Please useFormField
from Preview.TextArea
from Preview has been deprecated. Please useFormField
from Preview.FormField
from Main has been deprecated. Please useFormField
from Preview.orientation
prop defaults tovertical
and is no longer required.FormField.Input
can be used by anyinput
FormField
does not support theuseFieldSet
prop that theFormField
in Main
does. In order to achieve the same behavior, set theas
prop on theFormField
element to
fieldset
and theas
prop ofFormField.Label
tolegend
- feat: Text style refactoring (#2455) (@RayRedGoose, @mannycarrera4, manuel.carrera)
Text related components have been refactored to support the newcs
prop and v10 styling utilities. Type level components,Title
,Heading
,BodyText
andSubtext
, as well asText
andLabelText
updated to use the new system level tokens via CSS variables from the CanvasProvider.LabelText
has been deprecated. - chore: Refactor Card Styles (#2471) (@alanbsmith, @RayRedGoose)
- feat: Component Style Updates from Audit (#2485) (@josh-bagwell, @mannycarrera4)
Style updates will have minor visual changes. - chore: Bump canvas-kit-styling version (@alanbsmith)
- chore: Bump canvas kit styling (@)
- fix: Update testing to use preview formfield (@)
- test: Add inverse variant visual tests (#2544) (@RayRedGoose)
- chore: Refactor FormField in Preview to use new styling utilities and tokens (#2541) (@mannycarrera4, manuel.carrera)
Update FormField in Preview to use our new styling utilities and tokens. - chore: Radio Styles Refactor (#2546) (@josh-bagwell)
Radio
andRadioGroup
now use Canvas Tokens and our new styling utilities. The component now supports thecs
prop, but otherwise the API has not changed. It should behave identically as it did in previous versions however, there may be some slight visual changes. - chore: Refactor Checkbox styles (#2542) (@RayRedGoose, @mannycarrera4, @alanbsmith)
Checkbox
now uses Canvas Tokens and our new styling utilities. The component now supports thecs
prop, but otherwise the API has not changed. It should behave identically as it did in previous versions. - chore: Table(Preview) Styles Refactor (#2567) (@josh-bagwell)
Table now uses Canvas Tokens and our new styling utilities. The component now supports the cs prop, but otherwise the API has not changed. It should behave identically as it did in previous versions however, there may be some slight visual changes. - fix: Fix build script on css packages (@NicholasBoll)
- chore: Switch Styles Refactor (#2583) (@josh-bagwell)
Switch now uses Canvas Tokens and our new styling utilities. The component now supports the cs prop, but otherwise the API has not changed. It should behave identically as it did in previous versions however, there may be some slight visual changes. - chore: Updated Radio(Preview) & Table(Preview) with createStencil (#2585) (@josh-bagwell)
- chore: Table Promotion from preview (#2600) (@josh-bagwell)
We've promoted the compoundTable
component from Preview to Main. This compound component API allows for more flexibility and access to lower level elements. - feat: Add support for stencil extension (#2612) (@NicholasBoll)
- chore: Refactor Select and Combobox to use new styling utilities and tokens (#2570) (@mannycarrera4, manuel.carrera, @josh-bagwell, @RayRedGoose)
- chore: Refactor icon components (#2615) (@RayRedGoose, @alanbsmith, @NicholasBoll, @mannycarrera4, manuel.carrera)
Icon components,Svg
,SystemIcon
,AccentIcon
,AppletIcon
,Graphic
now uses Canvas Tokens
and new styling utilities. Components now supports thecs
prop insteadstyles
, but otherwise the API has not changed. It should behave similar as it did in previous versions. - chore: Update Text to use system tokens (#2659) (@mannycarrera4, manuel.carrera, @RayRedGoose)
Update our Text components to use our system tokens. - fix: Make variable names safe for Emotion (#2687) (@NicholasBoll)
- chore: Update Card color tokens (#2682) (@alanbsmith)
- chore: Update FormField and Select to use system colors (#2685) (@RayRedGoose)
- chore: Update checkbox to use system color tokens (#2683) ([@RayRedGoose](ht...
v10.3.40
Components
- fix(radio): Spread props to input (#2747) (@mannycarrera4, manuel.carrera)
StyledRadio was spreading props to the input and it's parent div. This change removed spreading prop to the parent div except for className.
v9.1.42
Components
- fix(radio): Spread props to input (#2747) (@mannycarrera4, manuel.carrera)
StyledRadio was spreading props to the input and it's parent div. This change removed spreading prop to the parent div except for className.
Infrastructure
- ci: Fix package.json forward-merge resolution (@NicholasBoll)
v10.3.39
Documentation
- docs: Fix typo (#2738) (@aarongarciah)
Infrastructure
- chore: SNYK Security upgrade jscodeshift from 0.13.1 to 0.14.0 (#2739) (@mannycarrera4)
v10.3.38
Documentation
- docs: Fix typo in Merging Styles story name (#2732) (@josephnle)
v10.3.37
Components
- fix(select): Redirect focus to visual input (#2723) (@NicholasBoll)
v10.3.36
Components
- fix: Style merging in compat mode (#2719) (@NicholasBoll)
This fixes an issue where styles would merge incorrectly in compatibility mode. Compatibility mode is triggered when our component is augmented by a style prop, wrapped withstyled
, passed acss
prop, or passed acs
prop with object styles. This fix ensures thatmodifiers
viacreateModifiers
orcreateStencil
merge styles the same way in both static and compat modes. See the linked issue for more details.
v10.3.35
Components
- fix: CanvasProvider should use JS tokens instead of hard-coded strings (#2710) (@NicholasBoll)
v10.3.34
Components
- fix: Remove unused state parameter from getFirst in useCursorListModel (#2713) (@gbernert, @NicholasBoll, @RayRedGoose)