Skip to content

Releases: Workday/canvas-kit

v11.0.1

24 May 00:06
Compare
Choose a tag to compare

Documentation

v11.0.0

22 May 16:34
Compare
Choose a tag to compare

BREAKING CHANGES

  • #2472 - The prop hasError for Preview components FormField, TexInput and TextArea have been renamed to error 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 way width 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 the width style property.

category

  • chore: Refactor StatusIndicator component (#2620) (@harshanarisetty)
    StatusIndicator 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.

category

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 use FormField from Preview.
    • TextArea from Preview has been deprecated. Please use FormField from Preview.
    • FormField from Main has been deprecated. Please use FormField from Preview.
    • orientation prop defaults to vertical and is no longer required.
    • FormField.Input can be used by any input
    • FormField does not support the useFieldSet prop that the FormField in Main
      does. In order to achieve the same behavior, set the as prop on the FormField element to
      fieldset and the as prop of FormField.Label to legend
  • feat: Text style refactoring (#2455) (@RayRedGoose, @mannycarrera4, manuel.carrera)
    Text related components have been refactored to support the new cs prop and v10 styling utilities. Type level components,Title, Heading, BodyText and Subtext, as well as Text and LabelText 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 and RadioGroup now use 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: Refactor Checkbox styles (#2542) (@RayRedGoose, @mannycarrera4, @alanbsmith)
    Checkbox 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.
  • 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 compound Table 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 the cs prop instead styles, 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...
Read more

v10.3.40

17 May 17:59
Compare
Choose a tag to compare

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

17 May 17:24
Compare
Choose a tag to compare

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

v10.3.39

15 May 19:58
Compare
Choose a tag to compare

Documentation

Infrastructure

v10.3.38

09 May 18:02
Compare
Choose a tag to compare

Documentation

v10.3.37

03 May 23:11
Compare
Choose a tag to compare

Components

v10.3.36

03 May 18:00
Compare
Choose a tag to compare

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 with styled, passed a css prop, or passed a cs prop with object styles. This fix ensures that modifiers via createModifiers or createStencil merge styles the same way in both static and compat modes. See the linked issue for more details.

v10.3.35

01 May 20:29
Compare
Choose a tag to compare

Components

  • fix: CanvasProvider should use JS tokens instead of hard-coded strings (#2710) (@NicholasBoll)

v10.3.34

01 May 19:34
Compare
Choose a tag to compare

Components