Skip to content

Releases: primer/view_components

v0.0.40

06 May 21:09
654cbb9
Compare
Choose a tag to compare

New

  • Create ImageCrop component.

    Kristján Oddsson

Changes

  • Promote IconButton to beta.

    Manuel Puyol

  • Add box argument to IconButton.

    Manuel Puyol

  • Promote Markdown to beta.

    Manuel Puyol

Bug fixes

  • Fix IconButton raising when aria-label was provided using an object.

    Manuel Puyol

  • Fix disabling of default styles for SpinnerComponent via nil style parameter.

    Chris Wilson

Deprecations

  • Deprecate Flex in favor of BoxComponent.

    Manuel Puyol

Breaking Changes

  • Restrict ButtonGroup tag to :div and update docs for Text tag.

    Kate Higa

  • Remove non-functional width and height :fill option.

    Jon Rohan, Joel Hawksley

  • Restrict Subhead heading slot tag to div and h1-h6.

    Kate Higa

  • Restrict Blankslate tag to div.

    Kate Higa

  • Explicitly limit tag for AvatarStack to :div and :span.

    Kate Higa

  • Rename MarkdownComponent to Markdown.

    Manuel Puyol

v0.0.39

29 Apr 20:48
7c653b1
Compare
Choose a tag to compare
  • Promote CloseButton to beta.

    Manuel Puyol

  • Update ClipboardCopy to not toggle icons unless they both exist.

    Kristjan Oddsson

  • Add icon and counter slots to ButtonComponent.

    Manuel Puyol

  • Create IconButton component.

    Manuel Puyol

  • Removing trailing whitespace from output of class="" Classify generation.

    Jon Rohan

  • Deprecate FlexItem in favor of BoxComponent.

    Manuel Puyol

  • Dropping requirement of octicons_helper and updating OcticonComponent to use octicon gem directly.

    Jon Rohan

  • Breaking change: Remove :overlay option from border_color.

    Simon Luthi

v0.0.38

26 Apr 18:06
f0efadc
Compare
Choose a tag to compare
  • Extract BaseButton component.

    Manuel Puyol

  • Add default aria-label of "Close" to CloseButton component.

    Kate Higa

  • Set button variants in the ButtonGroup parent.

    Manuel Puyol

  • Breaking change: Rename ButtonGroupComponent to ButtonGroup and promote it to beta.

    Manuel Puyol

  • Breaking change: Do not provide default for Heading and improve documentation.

    Kate Higa

  • Breaking change: Don't allow StateComponent to be a link.

    Kate Higa

v0.0.37

15 Apr 20:20
96cb6e5
Compare
Choose a tag to compare
  • Update NPM package to include subdirectory JS files.

    Manuel Puyol

v0.0.36

15 Apr 16:30
5ef567b
Compare
Choose a tag to compare
  • Add block flag to ButtonComponent.

    Manuel Puyol

  • Add link and invisible schemes to ButtonComponent.

    Manuel Puyol

  • Create CloseButton and HiddenTextExpander component.

    Manuel Puyol

  • Breaking change: Rename AutoCompleteComponent to AutoComplete and AutoCompleteItemComponent to AutoComplete::Item.

    Manuel Puyol

  • Breaking change: Rename TruncateComponent to Truncate and promote it to beta.

    Manuel Puyol

v0.0.35

09 Apr 16:19
f89f9f9
Compare
Choose a tag to compare
  • Promote AutoCompleteComponent, AutoCompleteItemComponent, AvatarStackComponent and ButtonComponent to beta.

    Manuel Puyol

  • Allow UnderlineNav tabs to be rendered as a <ul><li> list.

    Manuel Puyol

  • Accessibility: Don't add tab roles when UnderlineNav or TabNav use link redirects.

    Manuel Puyol

  • Breaking change: Make label required for UnderlineNav and TabNav.

    Manuel Puyol

v0.0.34

01 Apr 19:48
b01664a
Compare
Choose a tag to compare
  • Add p: :responsive and m: :auto system arguments.

    Manuel Puyol

  • Remove my: :auto and negative m: system arguments.

    Manuel Puyol

  • Breaking change: Rename FlashComponent variant argument to scheme.

    Manuel Puyol

  • Breaking change: Rename LinkComponent variant argument to scheme.

    Manuel Puyol

  • Breaking change: Rename ButtonComponent button_type argument to scheme.

    Manuel Puyol

  • Breaking change: Rename ButtonMarketingComponent button_type argument to scheme.

    Manuel Puyol

  • Breaking change: Rename StateComponent color argument to scheme.

    Manuel Puyol

v0.0.33

26 Mar 15:06
5ca912e
Compare
Choose a tag to compare
  • Remove TabbedComponent validation requiring a tab to be selected.

    Manuel Puyol

v0.0.32

23 Mar 20:48
42b3f3c
Compare
Choose a tag to compare
  • Allow passing the icon name as a positional argument to OcticonComponent.

    Manuel Puyol

  • Promote TimeAgoComponent to beta.

    Manuel Puyol

  • Breaking change: Update TabNav#tab API to accept the tab content as a block and panel content as a slot.

    Manuel Puyol

  • Breaking change: Update UnderlineNavComponent API be more strict and support TabContainer.

    Manuel Puyol

v0.0.31

15 Mar 15:41
ae194ec
Compare
Choose a tag to compare
  • Fix Popover bug where body was only returning the last line of the HTML.

    Manuel Puyol, Blake Williams