Releases: looker-open-source/components
Releases · looker-open-source/components
0.8.2
0.8.1
0.8.0
NOTABLE
ComponentsProvidernow supportscoreColorsattribute for dynamic theme generationtheme.colors.paletteno longer used internally except in very limited (and soon-to-be-deprecated) cases.theme.colorsshape has been significantly refactored (documentation updates to follow)Tooltipnow useskeyAccentfor link color
Added
ActionListItemacceptsactionsButtonLabelprop to help with testingComboboxListandComboboxOptionnow both support a customindicatorSelectandSelectMultialso supportindicatorat both the component and option level
InputColornow supports a "null" stateStatuscomponentTree,TreeItemcomponents- Includes docs and test suite
- Test helper functions for
Comboboxcomponent using react-testing-library
Changed
Badge-defaultintent is nowkeyBanneris nowMessageBar- Major style changes to be more Material-esque
warningis nowwarnerroris nowcriticalinfois nowinformconfirmationis nowpositive
Button*font sizes updated to match design specificationsCheckboxGroupandRadioGroupnameis now optionalTextAreanow supports min-height- Icons:
LookerLogoandLogoRingsupdated to match new branding
Fixed
CheckboxGroupandRadioGroupnow reflect changes tovaluepropInlineInputTextno longer adds a special character to prevent vertical-collapse when emptyInlineInputTextsimpleoption actually removes border-bottomInlineInputText&InlineInputTextAreainherit color and text-alignment from parentPopoverpositioning when placement is "top" and the height changesusePopperreinstate theadaptiveoption ofcomputeStyles
Removed
SemanticColor[s]are no longer supported (see newtheme.colorsshape above)
0.7.37
0.7.36
Added
Accordion,AccordionLabel,AccordionContentcomponentsButtonGroupandButtonTogglewill now wrap if there are too many items for the container widthButtonTogglenow acceptsnullableComboboxListnow accepts properties fromLayoutPropsComponentsProvidernow acceptsie11supportparameter to emit IE11 compatibility styleIEGlobalStylecomponent (underlying component used byComponentsProviderfor IE11)
FieldSelectMulticomponentFieldTimecomponentFieldTimeSelectcomponentSelectnow acceptslistLayoutto control the layout of the listSpace- now supports
around,betweenandevenlyas alternatives togap - now supports
verticalAlignproperty
- now supports
SpaceVerticalnow supportsalignandstretchpropertiesAccordion,AccordionLabel,AccordionContentcomponentsButtonTogglenow acceptsnullableButtonGroupandButtonTogglewill now wrap if there are too many items for the container width- created
FieldRangeSliderandFieldSlidercomponents
Changed
BannerfontSize adjusted and external margin removedButtonandButtonOutlinehorizontal padding on increased, decreased forButtonTransparentDateTimeFormatuses date-fns to format human-readable date string (rather than built-in browser default functionality)Tooltip- Now offers a cloneElement version as well as the existing render props version
- Documentation update to reflect new
childrenstructure - now supports
aria-describedby useTooltipincludes a generated id (or passed-in prop value) for the resulting tooltip in the return object
MenuDisclosure,Banner,IconButton,ModalHeaderexplicitly use their id props to either provideuseTooltipwith an id or to provide another component that usesuseTooltipwith an id to generate the tooltip's id- Icon used for error states in inputs changed to
CircleInfo - Support Warning icon display on Select and SelectMulti inputs
- Refactor use of InputSearch to support more flexible layouts
- Use Babel for building Monorepo ES artifacts
- Change build artifact path from
dist/tolib. - No longer produces multiple artifact formats (
esonly) - Leverages
lernato largely remove need for per-package scripts
- Change build artifact path from
yarn playground&yarn gatsbyreplaceyarn develop- no need to pre-compile for local development now.- Updated artwork for
Downloadicon
Fixed
Confirmcorrected word wrapping when long strings without white-space are usedIconButtonno longer generates spurious DOM outside of itself fortooltip(doesn't create funky layout bugs whenIconButtonis withinSpace)InlineInputTextno longer collapses when value is emptyFieldTimeupdate width to be 100%
Removed
- Deleted
MenuSearchcomponent in favor ofInputSearch
0.7.31
Fixed
FieldInlineforattribute moved to the correctlabel
0.7.30
Added
- Icons:
GitBranch,ViewColumn,SectionDrop InlineInputTextsupports placeholder attributeInlineTextAreaimplemented with test and documentation.RangeSlidercomponentMenunow automatically preserves space for icons if any items have an icon assignedMenuContextnow includesmenuItemStyleContextfor "preserved icon space"-related propertiesMenuItemrenders an empty Box with the same size as the icon(s) of sibling `MenuItem's (if any)MenuList,MenuGroupcontain piece of state the tracks the size of the preserved icon space
SelectandSelectMultinow supports windowing (virtualization)windowedOptionsprop overrides the default condition of >= 100 options
Changed
ActionListno longer highlights selected rows or hovered rows (when onClickRowSelect is true)FieldInline&ButtonItemlabels now include theforattributeField&FieldInline(therefore allField*) have more explicit line-heights to enforce consistent layout.Fieldset- updated documentation to include label and legend
- default spacing switched from
xsmalltosmallto improve visual relationship with theirInput*
- Icon:
ViewColumnupdated to better match keylines and guides
Fixed
Promptbehaves better- Clears out old
defaultValuewhen newdefaultValueis passed in - Clears out any user input after pressing cancel button
- Updated test suite to prevent future regressions for the above fixes
- Clears out old
ToggleSwitchReact warning fixed
Removed
ActionListItemActionno longer supports thecolorprop
0.7.29
[0.7.29] - 2020-04-24
Changed
Checkbox&Radioremove default margin (previously3px)Field- Set
idon label based on field.id to allow forFieldsetlegendreplacement / association - Removed default margin-bottom
- Set
FieldColordefaults towidth=“100%”Fieldset- Implement with a
Space/SpaceVerticallayout (emulateForm) - Enable
inlinepresentation - Use
divinstead offieldsetfor DOM object due to Chrome implementation bug offieldset(doesn’t allow for Flex / Grid layouts withinfieldset - Minor fix-up to Fieldset composition (no visual impact)
- Implement with a
Form- supports layout/simple props (spacing & layout)Grid- Correct column specification to prevent grid “blow-out”
- Remove explicitly specified
width: 100%(it’s implied)
Legend- Extend
Labelstyles to keep Label & Legend presentation bound where appropriate
- Extend
Menucloses by default onMenuItemclickSpace&SpaceVertical- Add
layout/layoutPropstosimpleLayoutPropsto allow for default width specification - Improve specificity of child selectors to apply only to direct descendants.
- Use double selector to override theme reset behavior
- Add
TextAreaonly supports vertical resizing nowToggleSwitchexplicitly specifymargin: 0to suppress browser-default styling- Provide
@types/styled-systemas a package dependency - WWW site keyboard navigation improvement
Fixed
ActionListItemno longer have shadow and cursor: pointer without an onClickActionListItemColumnaligns with header columnsRequiredStarwasn't visual artifact from being rendered (red asterisk)useScrollLockno longer jitters on attempted scroll (used in modals and overlays)
Removed
Radiono longer supportsreadOnly(was nice to know you, albeit briefly)TextAreanow only resizes on the Y access
0.7.28
Added
ActionList- Added test suite around "select" behaviors
- Added documentation
Checkbox&Radionow supportreadOnlyproperty- Icons -
CrossFilter
Fixed
Checkbox&Radiodisabled states match design specComponentsProvidernow automatically loadsGlobalStyle(also providesglobalStyle={false}prop to disable this behavior)
Changed
Field*components no longer have a bottom margin by default (seeFormupdate)Formnow acts asSpaceVerticalcomponent automatically putting a gap between each child itemInputTextwill now show red error icon when validation fails
Removed
FieldInlineno longer supportslabelFontWeight
0.7.27
Added
- New icons for field types
FieldDate,FieldDistance,FieldDuration,FieldLocation,FieldNumber,FieldString,FieldTier,FieldYesNo
Changed
Badgestyle updated to use lighter colors for intents. Badges are now always round.
Fixed
ComboBoxcrash-bug related tobtoadependency needed for Gatsby static-generation reqs.