89 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.63.4 - 2022-04-30
Fixes
- add missing
"2x3"ratio value toAspectRatio - fix typo in
ToolbarSearchshouldFilterRows type annotation
Documentation
- correctly generate icon, action imports in examples
- remove unnecessary
tooltipBodyIdinTooltipexamples - add
DataTable"Expandable and selectable" example - add
DataTable"Batch selection" example
0.63.3 - 2022-04-28
Fixes
- fix
FileUploaderItemregression wheredeleteevent should be dispatched if status is "edit"
Documentation
- add
FileUploader"Item (edit)" example - revise
FileUploader"Item (edit status, invalid state)" example to includeon:deleteusage - add
FileUploader"Item (edit status, invalid state with subject, body)" example
0.63.2 - 2022-04-23
Fixes
- set
type="button"onDropdownto fix usage in a form - re-focus search bar when clearing
ToolbarSearchvalue
0.63.1 - 2022-04-18
Fixes
HeaderGlobalActionicon size should be20by default- fix
rowsreactivity inDataTable
0.63.0 - 2022-04-17
Breaking Changes
- remove deprecated components:
Icon,IconSkeleton,NotificationTextDetails,ToggleSmall,ToggleSmallSkeleton,HeaderActionSearch - remove deprecated component props
- remove
optimizeCarbonImportspreprocessor - remove
GlobalHeaderandSideNavsubfolders - move
truncateaction fromactionstosrc/Truncate
Features
- add
breakpointObserver,breakpointsto base exports - add
ProgressBarkindprop to support inline, indented variants
Fixes
- add explicit
type="button"attribute to interactive, filterable tag variants - add TypeScript support for
sveltekit:attributes for anchor elements Linktypes should extendaorpattributes- prevent selectable
DataTablewith sticky header from jumping
Refactor
- use icons from
carbon-icons-sveltev11
Documentation
- add
DataTable"Sticky header" example - refactor
Gridexamples - add note to
UIShellthat theming is not supported - add
ProgressBarexamples "Inline variant" and "Indented variant"
Housekeeping
- upgrade
carbon-componentsto v10.56.0
0.62.3 - 2022-03-26
Fixes
- fix
TreeViewfilter logic in expandNodes/collapseNodes - correctly render slotted label in
NumberInput - only render expandable
DataTablerow content when expanded
0.62.2 - 2022-03-23
Fixes
DataTableexpandable variant should work with zebra stylesDatePickerflatpickrPropsshould override defaultflatpickroptions
Documentation
- add
DataTable"Expandable (zebra styles)" example
0.62.1 - 2022-03-20
Fixes
- fix
ToolbarSearchstandalone usage where "DataTable" context can be undefined
0.62.0 - 2022-03-19
Breaking Changes
- remove
Copycomponent - do not prevent default submit behavior in
Form
Features
- add
shouldFilterRowsprop toToolbarSearchto support auto-filterableDataTablerows - make
SideNavLinktext slottable - make
iconprop slottable inContextMenuOption,Link,Tag,HeaderAction,HeaderActionLink,SideNavLink,SideNavMenu - make
MultiSelectslottable - make
Dropdownslottable - make
ComboBoxslottable
Fixes
- stop click propagation on
HeaderActionbutton
Refactor
- inline
Copycomponent inCopyButton,CodeSnippet - use native
bind:valueinSearch - use native
bind:valueinTextArea
Documentation
- add
DataTable"Filterable" and "Filterable (custom)" examples - add
MultiSelect"Custom slot" example - add
Dropdown"Custom slot" example - add
ComboBox"Custom slot" example - add note that
itemsobject inComboBox,Dropdown,MultiSelectrequires a uniqueid - add
ClickableTile"Prevent default behavior" example - add
Form"Prevent default behavior" example - fix broken link in
Checkboxdocs
0.61.1 - 2022-03-13
Fixes
- do not generate CSS file from
css/_popover.scss
0.61.0 - 2022-03-13
Breaking Changes
- remove
HeaderActionSlideTransitioninterface fromHeaderAction; type transition prop asSlideParams - rename
Breakpoint"on:match" event to "on:change" - move
Breakpointbreakpoints tocarbon-components-svelte/src/Breakpoint/breakpoints
Features
- support
DataTablenon-selectable rows - expose
MultiSelecthighlightedId as a prop - add
breakpointObserverstore as an alternative toBreakpoint
Fixes
- audit
HeaderActiontext styles - visually align
HeaderActionLinkicon withHeaderActionicon - fix
MultiSelectfilterable selection error - correctly type
FileUploaderDropContainervalidateFiles prop - inline
PopoverSCSS fromcarbon-components@10.47
Refactor
- remove usage of deprecated
Iconcomponent - use direct component imports where possible
Documentation
- add
DataTable"Non-selectable rows" example - add
OverflowMenu"Disabled items" example - add
Breakpoint"Store and Breakpoint Values" example
0.60.0 - 2022-02-26
Features
- add
RadioButtonGrouphiddenLegendprop to visually hide the legend - add
ProgressBarsizeprop to support small size variant
Fixes
- update
DatePickercalendar instance if options change
Refactor
- remove
StructuredListoverflow-ystyle monkey patch
Documentation
- add
RadioButton"Hidden legend" example - add
ProgressBar"Small size" example
Housekeeping
- upgrade
carbon-componentsto v10.54.0
0.59.0 - 2022-02-21
Features
- add
maxCountprop toTextArea - add
disabledprop toFileUploader - add
filesprop toFileUploaderDropContainer - add
filesprop toFileUploaderButton
Fixes
- change
add,changeevents inFileUploaderDropContainerto dispatchFile[]instead ofFileList - update
filesprop description inFileUploader
Documentation
- add
TextArea"Maximum character count" example - add
FileUploaderdisabled state example - add
FileUploader"Clear files" example - document
validateFilesprop forFileUploaderDropContainer - add descriptions for
FileUploaderButton,FileUploaderexamples
Housekeeping
- upgrade
carbon-componentsto v10.53.0
0.58.4 - 2022-02-21
Fixes
- dispatched events without a
detailtype should benullinstead ofany FileUploaderclearFilesdescription should reflect that it's an accessor, not a propFileUploadershould correctly fireaddandremoveeventsFileUploaderfiles should not be keyed by file nameFileUploaderchange event detail signature should beFile[]- fix
DataTableregression where sort icon indicators don't update
Refactor
- remove unnecessary JSDoc default type notation
0.58.3 - 2022-02-20
Fixes
- correctly set deprecation comments for deprecated components
TextInputandPasswordInputshould render label if "labelText" slot is usedPasswordInputshould not renderlabelif nolabelTextis providedStructuredListoverflow-y should not be "hidden"MultiSelectshould not prevent default key behavior when openSwitchshould havetype="button"
0.58.2 - 2022-02-12
Fixes
Tooltiparia-labelshould useiconDescriptioniftriggerTextis falsyOverflowMenukeyboard navigation should skip disabled items- UI Shell
HeaderPanelDividershould usehrelement to represent divider Buttonshould not setaria-pressedon icon-only, link buttons
0.58.1 - 2022-02-11
Fixes
- remove whitespace from
pretag inCodeSnippet(Svelte v3.46.4 preservesprewhitespace by default)
0.58.0 - 2022-02-11
Breaking Changes
- if
TextInputistype="number", value can be anumberornullto signify "no value" TextInputdispatches instead of forwardsinput,changeevents (detail:null | number | string)
Features
- pass
rowIndex,cellIndextoDataTable"cell" slot - add
itemToInputprop toMultiSelectto customize name, title, labelText values - add
openprop toTooltipDefinition; dispatchopen,closeevents
Fixes
DataTableheaders should be reactiveDataTablebatch selection checkbox should be reactiveMultiSelectshould correctly lose focus- non-filterable
MultiSelectshould dispatch ablurevent - resolve
MultiSelectaccessibility issues - toggle
HeaderNavMenuwhen pressing "Enter" or "Space" - close
HeaderNavMenumenu when pressing "Enter" on an item - resolve
HeaderNavMenuaccessibility issues - fix
TextInputreactivity by using nativebind:value
Documentation
- remove duplicate "Heading variant" example
Housekeeping
- upgrade
carbon-componentsto v10.52.0
0.57.1 - 2022-02-01
Fixes
Tooltipdefinition is missing open, close eventsTooltipDefinitionbutton should havetype="button"
0.57.0 - 2022-01-30
Breaking Changes
- make
NumberInput"input" event type consistent with "change" (null | number)
Features
- dispatch
NumberInputinput, change events when clicking the steppers - add
primaryButtonIconprop toModal,ModalFooter
Fixes
- prevent
NumberInputfrom coercing empty string to0
0.56.1 - 2022-01-27
Fixes
NumberInputwith value0should not be converted tonull
0.56.0 - 2022-01-27
Breaking Changes
- type
NumberInputvalue asnull | numberinstead ofstring | number(nullsignifies "no value")
Fixes
- export
readonlyas a prop inTextArea - fix
Checkboxtwo-way binding forchecked,groupprops
Documentation
- add
Checkboxreactive example forbind:checked - update
Checkboxreactive example forbind:groupto demo two-way binding - simplify
Tabsreactive example - add
NumberInput"No value" example
0.55.0 - 2022-01-22
Features
- forward
focus,blurevents toNumberInput - update
ProgressStepicons for current, incomplete steps - type
idasanyinstead ofstringinComboBox,Dropdown,MultiSelect
Fixes
- do not coerce empty value to
0inNumberInputifallowEmptyis true - label
Sliderinput ifaria-labelnot explicitly defined - add missing
requiredprop toRadioButton - add missing
requiredprop toCheckbox - include
@default undefinedannotations for props that areundefinedby default
Refactor
- remove hotfix in
DatePickerto prevent disabled icon from being clickable
Housekeeping
- upgrade
carbon-componentsto v10.51.0
0.54.0 - 2022-01-19
Features
- support paginated
DataTable
0.53.0 - 2022-01-18
Breaking Changes
- replace
selectedIndexwithselectedIdinDropdown - replace
selectedIndexwithselectedIdinComboBox
Fixes
- prevent
Dropdownicon from being clickable when disabled
0.52.0 - 2022-01-17
Features
- make
Togglelabels slottable - add option to
ComboBox.clearto not re-focus input (clear({ focus: false }))
Fixes
- break out of trap focus in
Tooltipwhen pressing "Escape" - pass "name" prop in
ComboBoxto input element - emit
changeevent inCheckboxafter modifying state - restore explicit typing of
null | HTMLElementfor TypeScript strict mode - dispatch
click:button--primaryinModalifshouldSubmitOnEnteris true
Documentation
- simplify reactive
RadioButtonexample - add reactive
Selectexample forSelect - fix grammar in
TreeView"Expand all nodes" example - note that
Searchclear event is also dispatched when pressing "Escape" - demo reactivity in expandable
Searchexample
0.51.3 - 2022-01-12
Fixes
- fix
selectedIndexreactivity inComboBox
Refactor
- remove redundant
nullinnull | HTMLElementprop types
0.51.2 - 2022-01-10
Fixes
- correctly reset values in
ComboBoxwhen manually clearing selection - fix filterable
ComboBoxkeyboard selection - remove redundant role attributes from
Dropdown,Headerto fix a11y warnings - fix
TileGrouptwo-way binding on theselectedprop
Documentation
- document
DatePickerusage with a Rollup set-up - add multiple modals example for
Modal - add reactive examples for
RadioTile
0.51.1 - 2022-01-03
Fixes
- add missing
requiredprop toSelect - set global theme variable first in SCSS files
0.51.0 - 2021-12-30
Features
- enhance
Checkboxto supportbind:group
0.50.5 - 2021-12-30
Fixes
- filterable
MultiSelectshould blur when pressing "Tab" - filterable
MultiSelectmenu should close when pressing "Escape" - filterable
MultiSelectmenu should open when pressing "Space" DatePickerinput should not lose focus when pressing "Enter"ToolbarSearchshould expand ifvalueis programmatically set
0.50.4 - 2021-12-30
Fixes
- pressing "Escape" in a
DatePickershould not propagate past the open calendar - prevent menu icon in filterable
MultiSelectfrom triggering twice
0.50.3 - 2021-12-28
Fixes
- do not dispatch "click", "click:row"
DataTableevents when selecting a checkbox or radio button - render "labelText" slot if
labelTextprop or$$slots.labelTextis truthy - prevent default behavior in
Tabsmobile variant when clicking a menu option - coalesce nullish values to
""forTextInput,PasswordInput,TextArea
0.50.2 - 2021-11-27
Fixes
- select correct item in filterable
MultiSelectusing keyboard navigation - do not mutate
sortedItemsinMultiSelect
0.50.1 - 2021-11-19
Fixes
- do not dispatch
DataTable"click", "click:row" events if target is anOverflowMenu
0.50.0 - 2021-11-18
Features
- add
targetprop toContextMenuto support custom trigger element(s) - pass clicked element as
event.detailinContextMenu"open" event
0.49.2 - 2021-11-18
Fixes
Tabsshould not dispatch an initial "change" event when no change has occurredPaginationpage value should not exceed total pages- fix
Popoverrelative prop by inlining style - replace
onDestroywithonMountreturn function to avoid running code server-side
0.49.1 - 2021-11-17
Fixes
- include missing
Popoverstyles fromcarbon-components@10.47
0.49.0 - 2021-11-12
Features
- support
UIShellHeaderNavMenu with current item - make
InlineNotificationtitle, subtitle props slottable - make
ToastNotificationtitle, subtitle, and caption props slottable
Refactor
- remove unnecessary "position: relative" style in
ExpandableTile - remove unused
refContentinExpandableTile
Housekeeping
- upgrade
carbon-componentsto v10.48.0
0.48.1 - 2021-11-12
Fixes
- type
DatePickerlocale prop as flatpickrCustomLocaleorkey - update remaining
carbon-icons-svelteimports to use inlined icons
0.48.0 - 2021-11-11
Breaking Changes
- remove
carbon-icons-sveltefrom direct dependencies
Features
- support auto-width
Tabs - add ref prop to
Form
Fixes
- set calendar instance to
nullwhen destroyingDatePicker
0.47.6 - 2021-11-10
Fixes
- fix
Tooltiptwo way binding when icon is in focus - coerce
TextInputvalue to a number iftype="number"
0.47.5 - 2021-11-07
Fixes
- fix
Tooltipopen/close logic to allow two way binding of theopenprop - inline
position: relativestyle inExpandableTile
0.47.4 - 2021-11-06
Fixes
- only dispatch
click:row--expandwhen clicking an expandableDataTablerow chevron
0.47.3 - 2021-10-22
Fixes
- correctly toggle batch expansion button in
DataTable
0.47.2 - 2021-10-21
Fixes
- close the open
Tooltipwhen using multiple tooltips - collapse batch expansion button in
DataTableif one or more rows is collapsed - omit explicit reference to "carbon-icons-svelte" from
iconprop descriptions
0.47.1 - 2021-10-20
Fixes
- include border style for non-expandable rows in a batch expandable
DataTable
0.47.0 - 2021-10-19
Features
- add
nonExpandableRowsIdsprop toDataTableto specify rows that should not be expandable
0.46.0 - 2021-10-17
Breaking Changes
- use
.svelte.d.tsextension instead of.d.tsfor Svelte component TypeScript definitions
Features
- support
Tagoutline type - add
hideLabelprop toMultiSelect - allow any Svelte component to be used for
iconprops, not justCarbonIcon - add
closeIconprop toHeaderActionto override the defaultClose20icon
Fixes
- avoid opening the calendar if
DatePickerInputis a disabledfieldsetdescendant - remove
stopPropagationmodifier fromHeaderActionto allow multiple UI Shell app switchers
Housekeeping
- upgrade
carbon-componentsto v10.46.0
0.45.1 - 2021-10-15
Fixes
- prevent space/enter keys from selecting incomplete
ProgressIndicatorsteps
0.45.0 - 2021-10-13
Features
- add
TreeViewcomponent accessors to programmatically expand/collapse nodes
0.44.7 - 2021-10-13
Fixes
- add missing
valueprop toCheckbox
0.44.6 - 2021-10-11
Fixes
- fix
DataTablesorting to toleratenull,undefinedvalues
0.44.5 - 2021-10-04
Fixes
- correctly apply
menuOptionsClassinOverflowMenu
0.44.4 - 2021-09-28
Fixes
ClickableTileTypeScript definition restProps should extend attributes of eitheraorptags
0.44.3 - 2021-09-23
Fixes
- correctly apply styles when using a static width
DataTablewith a title and description
0.44.2 - 2021-09-14
Fixes
- prevent redundant
clearevents inComboBox
0.44.1 - 2021-09-11
Fixes
- if
ComboBoxis disabled, clicking the chevron icon should not toggle the dropdown ToolbarBatchActionscancel button text should be slottable
0.44.0 - 2021-09-07
Features
- add ability to override or customize
DatePickercalendar options using theflatpickrPropsprop
0.43.0 - 2021-09-06
Features
- add ability to programmatically clear a
ComboBoxusing theclearcomponent accessor
0.42.3 - 2021-09-05
Fixes
RadioButton"labelText" slot should render even iflabelTextis falsy- only render
FormGrouplegendelement iflegendTextis truthy
0.42.2 - 2021-07-29
Fixes
- fix reactivity regression in
ComboBox
Documentation
- update example set-ups
- document styling instructions,
carbon-preprocess-sveltein README.md
0.42.1 - 2021-07-26
Fixes
- disable
a11y-mouse-events-have-key-eventswarnings - upgrade
carbon-icons-svelteto v10.36.0 to quella11y-mouse...warnings
Refactor
- remove
formatStyleutility inOverflowMenu
Documentation
- add
svelte:headexample usage for loading CDN styles - add instructions for dynamic theming
- update number of available Carbon icons
0.42.0 - 2021-07-22
Features
- add
helperTextprop toDatePickerInput
Fixes
- replace
svelte:bodywithsvelte:windowwhen listening for an outside click
Documentation
- fix typos in styling instructions
- update expanded nodes guidance
- add
DatePickerexample "With helper text"
Refactor
- omit explicit
treeview.scssimport incss/*.scssfiles as it is included by default incarbon-components@10.40
Housekeeping
- upgrade
carbon-componentsto v10.40.0
0.41.0 - 2021-07-18
Features
- add expandedIds to
TreeView
Fixes
- do not fall back to an empty string for a
DataTablevalue if falsy - omit disabled attribute in
Buttonif value is falsy
Documentation
- add styling instructions to the home page
0.40.1 - 2021-07-14
Fixes
- focus first, non-disabled
TreeViewnode if active id does not match the selected id - set
type="button"onOverflowMenuto prevent submit behavior when pressing "Enter" - update semantic attributes in
OverflowMenuItem - do not render
OverflowMenuItemtitle attribute if using a slot - do not dispatch
NumberInputon:change event on initialization - dynamically load ESM
flatpickrrangePlugin - forward input, focus events to
Select - type
DataTableRowIdasany, fixes
0.40.0 - 2021-07-11
Breaking Changes
- remove
appendToprop inDatePickerfor server-side rendering (SSR) compatibility
Features
- add
Breakpointcomponent to detect the current Carbon grid size based on browser width - add
Themecomponent to dynamically update the current theme client-side - add
valueFrom,valueToprops for rangeDatePicker - export
multiSelectRef,fieldRef,selectionRefinMultiSelect - add clearItem, clearAll instance methods to
LocalStorage - support
NumberInputreadonly variant
Fixes
- append
DatePickerinstance to local reference to prevent arrow key locking - fix
on:changetype signature inDatePicker - export id prop in
ProgressBar - add skeleton text for every row and column in
DataTableSkeleton - deprecate
shouldShowBorderprop inTable - correctly type exported constant props and function declarations as accessors in
SvelteComponentTypedinterface
Documentation
- document Breakpoint component
- document Theme component
- add ProgressBar "UX example"
- add DatePicker example "Range"
- add NumberInput example "Read-only variant"
Housekeeping
- upgrade
carbon-componentsto v10.39.0
0.39.0 - 2021-07-05
Breaking Changes
- remove
clipboard-copydirect dependency; use native Clipboard API instead ofclipboard-copyto copy text inCopyButton,CodeSnippet
Features
- add
TreeViewcomponent - add
RecursiveListcomponent - support 3 buttons in
Modal,ComposedModalviasecondaryButtons - make
DataTabletitle/description slottable - allow custom
expansionBreakpointin UI ShellHeader,SideNav - dispatch "click:button--primary" as an alias to "submit" in
Modal,ComposedModal
Fixes
- export
useStaticWidthprop inDataTable - do not render
DataTabletable header if title/description not provided
Documentation
- add TreeView documentation
- add RecursiveList documentation
- add CopyButton examples "Overriding copy functionality", "Preventing copy functionality"
- add CodeSnippet examples "Overriding copy functionality", "Preventing copy functionality"
- add DataTable example "Static width"
- include typedefs in Component API section
0.38.2 - 2021-07-03
Fixes
- prevent
<TextArea readonly={false} />from being read-only - only focus
OveflowMenuItemif not disabled - trap tab focus within
Modal,ComposedModal
0.38.1 - 2021-06-29
Fixes
- add Gray 80 (g80) theme to
all.scssand the pre-compiledall.css
0.38.0 - 2021-06-27
Features
- support read-only
TextInput - render a checkmark icon for the selected
ComboBoxitem
Fixes
- adjust
FileUploaderDropContainermarkup to avoid accessibility error for nested interactive controls - use
ErrorFilled16icon inInlineLoadingfor the error status - render iconDescription as title in error/warning icons in
InlineLoading - update accessibility attributes for
StructuredList - use
spaninstead ofdivinTooltipDefinitionto avoid potential invalid HTML - close
MultiSelectmenu when blurring the last filterable option - open/focus field when tab focusing a filterable
MultiSelect - unblock tab navigation when blurring
MultiSelect - select correct item using keyboard navigation in a filterable
ComboBox - unblock input after clearing a
ComboBoxselection - update
ComboBoxinput text if item is selected - toggle
SideNavrail when clicking the hamburger menu - update
ContextMenuclass names - close
ContextMenuwhen left clicking anywhere
Documentation
- add TextInput example "Read-only variant"
- add Popover example "Popover alignment"
Housekeeping
- upgrade
carbon-componentsto v10.38.0
0.37.0 - 2021-06-26
Features
- add ProgressBar component
Fixes
- omit size prop in
ToolbarSearch - omit passing iconDescription to
NotificationIconinInlineNotification,ToastNotification
Refactor
- use class directive in
TextInput
Documentation
- add ProgressBar component documentation
Housekeeping
- upgrade
carbon-componentsto version 10.37.0
0.36.0 - 2021-06-26
Features
- add condensed, flush props to
StructuredList - support
SideNavrail - add isSelected prop to
HeaderNavItem - make components with
labelTextprop slottable (e.g., ...)
Fixes
- set min/max height for multi-line
CodeSnippet - make
ImageLoaderSSR compatible by using a window type check guard - default isSelected to false in
SideNavMenuItem - forward keydown event to
TextArea - deprecate border prop in
StructuredList
Documentation
- add separate disabled example for filterable/interactive tags
- update number of supported chart types from 17 to 20
Housekeeping
- upgrade
carbon-componentsto version 10.36.0
0.35.0 - 2021-06-26
Features
- support expressive styles for
Button,UnorderedList,OrderedList - support large size for
Button(size="lg") - support large, extra-large
ButtonSkeletonsizes - support field, small sizes for
FileUploaderItem - allow custom
Searchicon - allow
NumberInputinput steppers to be hidden (hideSteppers={true}) - add
iconprop toTooltipIcon - support disabled
TooltipIcon
Fixes
- make
Tooltipscreenreader description less verbose
Documentation
- add Button examples "Large size", "Expressive styles"
- add OrderedList example "Expressive styles"
- add UnorderedList example "Expressive styles"
- add Search example "Custom search icon"
- add NumberInput example "Hidden steppers"
- add TooltipIcon example "Disabled"
Housekeeping
- upgrade
carbon-componentsto version 10.35.0
0.34.0 - 2021-06-25
Features
- add new Gray 80 (g80) theme
- support expandable
Searchvariant - dispatch open, close, click:overlay events in
SideNav - allow custom hamburger menu icons (
iconMenu,iconClose) - support "xl"
Buttonsize - support "medium"
DataTablesize - support warning state, inline variant for
PasswordInput
Fixes
- replace
<strong>with semantic paragraph element for file uploader label - wrap
codeelement withpre - add missing restProps annotation to
ToolbarSearch
Refactor
- remove usage of deprecated
Iconcomponent - use button specific tooltip class for icon-only variant
Documentation
- update available site theming options to include Gray 80 (g80)
- add Search example "Expandable variant"
- add Button example "Extra-large size"
- add DataTable example "Medium rows"
- add PasswordInput examples "Inline" and "Warning state"
Housekeeping
- upgrade
carbon-componentsto version 10.34.0
0.33.0 - 2021-04-30
Features
- support nested object values for DataTable sorting
- pass DataTable header display function to slotted cell
- add icon prop to
Linkto support rendering links with icons; refactorOutboundLinkto useLink.iconprop
Fixes
- prevent DataTable sorting from crashing by defaulting
undefinedto an empty string - add extra DataTable cell
colspanto support expandable, selectable rows - support disabled state for
ClickableTile - add missing "3x2" ratio to
AspectRatio
Documentation
- add DataTable example "Sortable with nested object values"
- add ClickableTile example "Disabled state"
- add Link example "Link with icon"
Housekeeping
- upgrade
carbon-componentsto version 10.33.0
0.32.2 - 2021-04-23
Fixes
- prevent multiple Dropdown items from being selected by updating the
selectedId - prevent the default keydown behavior so that pressing "Enter" should open the Dropdown menu
- resolve Carbon icon imports to Svelte files in
DataTable,HamburgerMenucomponents
Housekeeping
- patch
carbon-componentsto version 10.32.1
0.32.1 - 2021-04-02
Fixes
- hotfix compiled CSS to correctly render default background color for inputs
0.32.0 - 2021-04-02
Breaking Changes
- copy text by default in
CodeSnippetandCopyButtonusingclipboard-copy - deprecate
lightprop inContentSwitcher
Features
- support disabled state for
SelectableTile,RadioTile - add
TooltipFootercomponent - support
OverflowMenuin Breadcrumbs - support danger kind for
ContextMenuOption - allow sorting to be disabled for a specific header in
DataTable - render an empty header column in
DataTableSkeletonif a value is{ "empty": true } - export
inputRefprop inMultiSelect - add
searchClassprop toSearch, which is passed to the outermost element - add
noMarginprop toFormGroupto remove default bottom margin (default value isfalse)
Fixes
- render initial
ContextMenuposition based on viewport constraints - correctly display invalid text in
TimePicker - remove outer div in
ToolbarSearch - set hasScrollingContent class on
ModalBody
Documentation
- add disabled state examples for
SelectableTile,RadioTile - add expandable
DataTablesize examples, empty header columnDataTableSkeletonexample - remove the light
ContentSwitcherexample
Housekeeping
- upgrade
carbon-componentsto version 10.32.0 - add
clipboard-copyto direct dependencies
0.31.1 - 2021-03-28
Fixes
- add missing "name" attribute to non-mobile
NumberInput - forward missing "keydown" event to
Form - forward click/keydown/mouse events in
FluidFormtoForm
0.31.0 - 2021-03-20
Breaking Changes
- remove default
titlevalue inInlineNotification - remove default
title,captionvalues inToastNotification - remove
iconDescriptionprop fromHeaderNavMenu
Features
- add
Popovercomponent - add
ContextMenucomponent - add "container" type for
TabsSkeleton - add warning state to
Select - dispatch "on:click:button--next" and "on:click:button--previous" in
Pagination
Fixes
- replace chevron icons with "Add" and "Subtract" icons in
NumberInput - fix
Slidermarkup to use CSS to hide input ifhideTextInputistrue - remove hotfix inline style to center dropdown chevron
- add "rowgroup" role to
StructuredListBody - fix type definition for
MultiSelect: "clear" should be typed as a custom event - remove line breaks in anchor element in
Link - only set
autofocusattribute if the value istrue
Documentation
- add
Sliderhidden text input, invalid, disabled examples - add
Selectwarning, invalid, helper text, skeleton (hidden label) examples - add
RadioButtondisabled buttons example - update sample copy in
ToastNotification,InlineNotification - update
Selectitem groups example to use the hidden default option
Housekeeping
- upgrade
carbon-componentsto version 10.31.0 - upgrade
carbon-icons-svelteto version 10.27.0 (icons are correctly typed usingSvelteComponentTyped)
0.30.0 - 2021-03-13
Breaking Changes
- forward
$$restPropsto the input element inSearch,MultiSelect,ComboBox,TimePicker,DatePickerInput,NumberInput
Features
- add
ImageLoadercomponent - add
LocalStoragecomponent - forward "clear" event in
ToolbarSearch - add isSelected prop for icon-only, ghost buttons
- add legendText prop/slot to
RadioButtonGroup - add interactive prop to
Tag - make UI Shell
SideNavMenuItemtext slottable - deprecate
Icon,IconSkeleton
Fixes
- set aria-hidden attribute in UI Shell
SideNav - only show overlay for non-fixed UI Shell
SideNav - correctly render skeleton styles for
TextInputSkeleton - only render
RadioButtonlabel iflabelTextis truthy - deprecate the
NumberInputmobile variant - add missing type annotation for dispatched
MultiSelectselect event - remove redundant "button" role in
Button - update styles for
ListBoxSelectionto fix filterableMultiSelect - temporarily apply override styles to
ListBoxMenuIconto correctly renderDropdownchevron icon - apply
z-index: 1on tooltip when open; style can be overridden through$$restProps.style
Documentation
- add "on:clear" example for
Search - add custom tooltip example for
PasswordInput - add legend text examples for
RadioButtonGroup - add filterable (disabled) variant for
Tag - remove the mobile variant example for
NumberInput
Housekeeping
- upgrade
carbon-componentsto v10.30.0
0.29.2 - 2021-03-01
Fixes
- remove blank line after
slotto correctly render button with icon in Safari 13
0.29.1 - 2021-02-26
Fixes
- fix blur logic in
ComboBox,MultiSelectbased on relatedTarget tag name - fix
truncateaction to preserve existing class names on node - use new component tokens to correctly render CSS for tags, low contrast notifications
0.29.0 - 2021-02-19
Breaking Changes
- The default placeholder text for
TimePickeris changed from "hh=mm" to "hh:mm"
Features
- Add UI Shell
SideNavDividercomponent - Add a direction prop to
ComboBox,Dropdown,MultiSelectto render the dropdown menu above or below the input - Support
ComboBoxwarning state - Add text truncation component (
Truncate) and action (use:truncate) - Use shorthand scss imports in
css/*.scssfiles - Use the official
SvelteComponentTypedinterface in the component TypeScript definitions
Fixes
- Use
descriptionas warning icon title inProgressStep - Include pre-compiled CSS to library side effects to prevent inadvertent tree-shaking
- Fix
DataTabletype definition to include$$restProps
Documentation
- Add filterable small
Tagexample - Add
ComboBoxinvalid state example - Add "Top direction" examples for
ComboBox,Dropdown,MultiSelect - Demo
ProgressIndicatorinvalid/disabled steps - Fix
RadioTilelight variant example
Housekeeping
- Upgrade
carbon-componentsto version 10.29.0
0.28.0 - 2021-02-05
Breaking Changes
- The
transitionendevent in ComposedModal is dispatched, not forwarded; it will only trigger when the modal has finished animating
Features
- Support small size variant for Tag (
size="sm") - Dispatch
closeevent in a filterable Tag (an alias forclick) - Dispatch
toggleevent in Toggle - Make
tooltipTextslottable in TooltipIcon (slot name="tooltipText") - Add
hideLabelprop to Dropdown - Dispatch
transitionendevent in Modal, ComposedModal to fire after the modal has finished animating - Add warn state to DatePickerInput
Fixes
- Forward the
clickevent to Tab - Do not trigger initial Tab focus when mounting
Documentation
- Add a "Hidden label" example for the Select component
- Add a light variant example for OverflowMenu
- Add a reactive example for Tabs
Housekeeping
- Upgrade
carbon-componentsto version 10.28.0 - Remove unused
@carbon/themesdevelopment dependency; themes are pulled fromcarbon-components
0.27.0 - 2021-01-28
Features
- Ship scss files used to pre-compile CSS
- Add
optimizeCarbonImportspreprocessor to rewrite base imports from Carbon components/icons/pictograms to the source Svelte file - Support warning state in Dropdown, MultiSelect, NumberInput
- Set default values for Button
tooltipAlignment("center") andtooltipPosition("bottom") in Button - Infer icon-only Button variant using $$slots API
- Support disabled state for CodeSnippet (single or multi type only)
- Add optional expand/collapse icon labels to ExpandableTile
- Support custom icon variant for Tag
- Add
timeoutto dispatchedon:closeevent detail in InlineNotification and ToastNotification - Upgrade
flatpickrto version 4.6.9 for ES module (ESM) imports
Fixes
- Co-locate DataTableSkeleton with DataTable components
- Prevent MultiSelect dropdown from opening if disabled
- Forward
submitevent to FluidForm - Correctly apply class props in ModalHeader
- Add missing warning class to TextInput
- Disable visibility toggle if PasswordInput is disabled
- "Show more" button in CodeSnippet should be "field" sized, not small
- Remove extraneous "bx--btn--copy" class from CodeSnippet
- Adjust Loading spinner styles to remove excess padding
- Prevent class from being overridden by $$restProps in InlineNotification, ToastNotification, NotificationActionButton
- Remove extraneous focus ring in Modal
- Remove aria-hidden prop from ToolbarSearch
- Add label id to Slider
- Remove menubar role from HeaderNav; deprecate ariaLabel prop in HeaderNav in favor of real HTML attributes "aria-label" and "aria-labelledby"
- Remove notificationType prop from InlineNotification and ToastNotification
- Focus the first item when opening an OverflowMenu for the first time
- Close the OverflowMenu on the
focusoutevent - Forward $$restProps to the input element for TextInput, PasswordInput
Breaking Changes
- DataTableSkeleton.svelte is moved to
src/DataTable notificationTypeis removed from InlineNotification and ToastNotification- Svelte version 3.25 or greater is required due to use of the $$slots API
- $$restProps are forwarded to the input element for TextInput, PasswordInput
renderIconprop renamed toiconin NotificationButtoniconprop type changed to "typeof import("carbon-icons-svelte").CarbonIcon" in HeaderAction, HeaderActionLink, SideNavLink, SideNavMenu- Pre-compiled CSS StyleSheets use the "compressed"
sass.outputStyleinstead of "compact"
Documentation
- Add documentation for dynamic, client-side theming
- Add icon-only example for the "danger-tertiary" Button
- Update number of supported Carbon icons and pictograms
- Use more realistic body copy in Notification usage examples
- Update development workflow in the contributing guidelines
Housekeeping
- Replace
node-sasswithsass - Upgrade
carbon-componentsto version 10.27.0 - Upgrade
@carbon/themesto version 10.26.0 - Upgrade
autoprefixer,postcss,prettier-plugin-svelte
0.26.0 - 2020-12-11
Features
- Render the UI Shell hamburger menu only if the
SideNavcomponent is present (PR #457, issue #434) - Clear the
Searchinput value if the "Escape" key is pressed (PR #448) - Customize the
Tooltipalignment using thealignprop (PR #446, issue #398)
Fixes
- Fix
filesprop typeFileUploaderto be a list of Files instead of file names (PR #437) - Allow binding decimal values in
NumberInput(PR #444) - Spread
$$restPropsinDataTableSkeletonto the top-level element to be consistent withDataTable(PR #441, issue #423) - Close the
Tooltipon the mousedown event; re-focus the tooltip icon after closing and forwardclick,mousedownevents - Focus the
Dropdownbutton correctly for multiple dropdowns (PR #447) - Focus the
ComboBoxinput correctly for multiple combo boxes (PR #447) - Blur an opened
ComboBoxwhen clicking a search input (PR #447, issue #436) - Prevent cursor shift in UI Shell
HeaderSearchwhen using the up/down arrow keys to navigate results (PR #432, issue #431) - Deprecate
smallprop inButtonSkeleton - Fix
CodeSnippetSkeletontype to only be "single" or "multi"
Breaking Changes
filesinFileUploadercomponents is a list of Files, not just file names$$restPropsis spread to the top-level element inDataTableSkeleton
Documentation
- Add reactive, hidden, custom alignment examples for Tooltip
- Add reactive examples for
Search,ContentSwitcher,Togglecomponents - Add plain Header (no
SideNav) UI Shell example
Housekeeping
- Upgrade
carbon-componentsto version 10.25 for the pre-compiled CSS StyleSheets
0.25.1 - 2020-11-28
Fixes
- set
selectedResultIndexin HeaderSearch when clicking a result (PR #430, issue #429)
0.25.0 - 2020-11-27
Features
- Add
paddingprop to Grid, Row, Column components (PR #420, issue #410) - Add
transitionprop to UI ShellHeaderActionto customize panel slide transition; by default, the slide duration is200ms (PR #419, issue #384)
Fixes
- fix
Filestype for FileUploader (PR #422, issue #421) - remove the fly transition from HamburgerMenu (PR #419, issue #384)
Documentation
- add "Padded columns" example to Grid docs
- demo different transitions in "Header with app switcher" example in UI Shell
- describe use case for using native styles in OrderedList
Housekeeping
- pin development dependency
sveldto version 0.3.0
Contributors
0.24.0 - 2020-11-26
Features
- Add HeaderSearch component for the UI Shell that can render user-provided search results (PR #417, issue #395); HeaderActionSearch is deprecated in favor of HeaderSearch
- Expand
headersprop type in DataTableSkeleton to be consistent with that of the DataTable (PR #415, issue #413)
Fixes
- Update
DataTableRowprop type in DataTable to require an "id" key and value (PR #415, issue #414)
Documentation
- Add example "Skeleton with object headers" to the DataTable docs
- Add example "Header with global search" to the UI Shell docs
- deprecate HeaderActionSearch in favor of HeaderSearch
0.23.2 - 2020-11-25
Fixes
- Fix dispatched "change" event in RadioButtonGroup (PR #408)
- Export component types and interfaces (PR #411, issue #409)
0.23.1 - 2020-11-22
Fixes
- Fix
selectedprop reactivity in RadioButtonGroup so that it can be programmatically updated (PR #407, issue #406) - Allow click propagation in ListBox so that list box menus can close correctly; this fixes behavior in the ComboBox, Dropdown, and MultiSelect components (PR #405, issue #388)
Documentation
- Add programmatic RadioButton example
- Add multiple ComboBox example
- Add multiple Dropdown example
- Add multiple MultiSelect example
- Add ExpandableAccordion recipe
0.23.0 - 2020-11-20
Features
- Persist UI Shell Header hamburger menu if
persistentHamburgerMenuistrue(PR #396, issue #374, rendered example) - Disable auto focus in ComposedModal if
selectorPrimaryFocusisnull(PR #393) - Use small size Toggle variant if
sizeis"sm"; deprecate ToggleSmall which will be removed in the next major release (PR #401)
Fixes
- Fix
currentIndexreactivity in ProgressIndicator so that it can be programmatically updated (PR #404, issue #399)
Refactoring
- Rewrite TypeScript definitions with better type signatures for slots, dispatched events; fix IntrinsicAttributes errors (PR #385, issue #304)
- Remove useless if statement that wraps
svelte:componentin Button; by design,svelte:componentwill not render falsy values (PR #402)
Documentation
- Update auto-generated Component API documentation with output from sveld
- Label reactive component props and list them first
- Replace back ticks in Component API prop descriptions with a
codetag (PR #392, issue #390) - Simplify date sort method in "Sortable with custom display and sort methods" DataTable example (PR #382)
- Add programmatic ProgressIndicator example
- Add vertical ProgressIndicatorSkeleton example
- Add deprecation warning to the ToggleSmall component
Housekeeping
- Upgrade
carbon-icons-sveltefrom version ^10.17 to ^10.21
Breaking Changes
- Internal component TypeScript interfaces are no longer exported to avoid polluting library exports
0.22.0 - 2020-10-30
Features
- Button: add "danger-tertiary", "danger-ghost" kinds
- OverflowMenu: support "sm", "xl" size variants
- TimePicker: support "sm", "xl" size variants
- Link: support "sm", "lg" size variants
- OrderedList: support native list styles
- MultiSelect: forward "clear" event
- MultiSelect: dispatch "select" event to be consistent with ComboBox, Dropdown
Fixes
- OverflowMenu: dynamic menu shadow width should be scoped to component instance; remove
tabindexattribute from trigger button - CodeSnippet:
showMoreLessshould be re-computed ifcodeis dynamically updated
Documentation
- Document
itemToStringprop for Dropdown, MultiSelect - MultiSelect: add example for "Initial selected items"
- CodeSnippet: add example for dynamically updating
code - CodeSnippet: add example for "Hidden code snippet" edge case (issue #373)
- OverflowMenu: add example for "Custom trigger icon"
Housekeeping
- upgrade
carbon-componentsto v10.23.1,@carbon/themesto v10.22.1 - bump/patch development dependencies
0.21.0 - 2020-10-26
Features
- ListBoxMenu: forward "scroll" event (PR #366)
- ComboBox: export reference to list box menu (PR #366)
- DataTable: add
ToolbarMenu,ToolbarMenuItem(PR #369) - DataTable: support empty table body columns by adding optional
emptykey toheadersprop (PR #370) - Dropdown: support "sm", "xl" field sizes
Fixes
- DataTable: cancelling batch selection should deselect "select all rows" checkbox
- Toolbar: remove duplicate "bx--toolbar-content" element
Documentation
- DataTable: add example "Empty column with overflow menu"
- hand off current theme for examples opened in a new tab
- add field size examples for
Dropdown,MultiSelect,Select
0.20.0 - 2020-10-24
Features
- DataTable: add
Toolbar,ToolbarContent,ToolbarSearch,ToolbarBatchActions - DataTable: support row selection, batch selection, radio selection
- DataTable: dispatch "mouseenter", "mouseleave" events on table rows
- Search: forward "focus", "blur" events to search input; dispatch "clear" event
Fixes
- DataTable: include sort direction with custom sort method (PR #356)
- fix: allow item ids in ComboBox, Dropdown, MultiSelect to be numbers
- fix(ui-shell): initialize
platformNameas empty string to prevent rendering as "undefined"
Refactoring
- refactor(ui-shell): remove redundant conditional in HeaderGlobalAction
Documentation
- new DataTable examples:
- fix(docgen): list both default and named slots in
COMPONENT_INDEX.md
0.19.0 - 2020-10-23
Features
- DataTable: add optional display and sort methods in header object (PR #352)
- ProgressIndicator: add preventChangeOnClick; default value is
false(PR #351) - TooltipDefinition: make tooltip text slottable through
slot="tooltip"
Fixes
- ProgressIndicator: make
currentIndexreactive (PR #351) - ComposedModal: use
onDestroyfor destroy logic due to async usage ofonMount(PR #348) - Search: forward
sizeprop to Search skeleton
Refactoring
- TooltipDefinition: remove redundant
hiddenreactive variable
Breaking Changes
- ProgressIndicator: clicking a completed step will update
currentIndex; to opt out of this default behavior, setpreventChangeOnClicktotrue
Documentation
- ContentSwitcher: add "Selected index" example
- CodeSnippet: add multi-line skeleton example
- InlineLoading: add UX example showcasing various statuses
0.18.0 - 2020-10-17
Features
- DataTable: support individual, batch row expansion (PR 341)
- DataTable: make header, row cells slottable (PR 342)
Fixes
- fix(data-table): fix misaligned tall row table headers (PR 340)
- Documentation generator: parse
ArrayExpressionin exported props (PR 341)
Breaking Changes
- Remove top-level slot in
DataTablein favor of named slots (PR 341)
Documentation
- add Component API metadata (PR 340)
- DataTable: add expandable, batch expandable examples (PR 341)
- DataTable: add slottable cells example (PR 342)
0.17.0 - 2020-10-16
Features
- feat: set
rel="nooopener noreferrer"iftarget="_blank"on link components (PR #321) - feat: support
Searchdisabled state (PR #330) - feat(button-skeleton): add size prop consistent with Button (PR #332)
- feat(progress-indicator-skeleton): add count prop (PR #332)
- feat(accordion): add disabled prop for
AccordionandAccordionItem(PR #333) - feat(accordion): add "sm", "xl" size variants to
AccordionandAccordionSkeleton(PR #333) - feat(content-switcher): add "sm", "xl" size variants (PR #334)
- feat(code-snippet): add wrapText prop for "multi" type CodeSnippet (PR #335)
- feat(aspect-ratio): add AspectRatio component (PR #336)
- feat(dropdown): dispatch select event, use window instead of body for click events (PR #339)
Fixes
- fix(combo-box): disabled combobox should not open (PR #329)
- fix(inline-loading): add wrapper class "bx--inline-loading" (PR #332)
- fix(breadcrumb): forward noTrailingSlash to skeleton (PR #332)
- fix(skeleton-text): unkey paragraph rows due to high collision rate (PR #332)
- fix(accordion-skeleton): forward align prop (PR #333)
Refactoring
- refactor(icon): remove old logic that inferred icon size from function name (PR #332)
Documentation
- AspectRatio (new component): demo all ratios
- Breadcrumb: use
noTrailingSlashin skeleton example - Button: demo skeleton size variants
- CodeSnippet: add example "Wrap text"
- ComboBox: add examples "Light variant," "Filterable"
- ContentSwitcher: add examples "Extra-large size" and "Small size"
- SkeletonText: add example "Paragraph with custom line count"
- Pagination: add example "Hidden page size"
- ProgressIndicator: demo custom step count for skeleton
- Link: add example
Target _blank - MultiSelect: add example "No alphabetical sorting"
- Accordion: add examples for "Extra-large" and "Small" size variants
- Accordion: add examples for "Disabled" and "Disabled (item)"
- AccordionSkeleton: add examples "Skeleton (chevron aligned left)" and size variants
Housekeeping
- chore(deps-dev): bump carbon-components to ^v10.22 (PR #337)
- retire Storybook by removing Storybook-related dependencies, set-up and stories (PR #331)
- use
npm-run-allto runbuild:cssandbuild:libin parallel (PR #331)
0.16.0 - 2020-10-12
Features
- Pagination: add
pageSizeInputDisabledprop to hide page size buttons (default isfalse) (PR #292) - ListBoxMenu: add
refprop (PR #303) - Pre-compiled CSS: upgrade
carbon-componentsto version 10.21
Fixes
- Link: explicitly define
hrefprop to fix TypeScript errors (PR #301) - RadioButtonGroup: explicitly define
idprop to fix TypeScript errors (PR #303) - ComboBox:
lightprop should use the light variant (PR #303) - ComposedModal: class "bx--body--with-modal-open" should be removed when closing the modal (PR #306)
- Dropdown: remove unused
setContextimport (PR #308) css/all.css: default theme should be "white," not "g10" (PR #322)- UI Shell:
HeaderActionmenu should close when clicking in the window, not just the document body (PR #323)
Performance
- DatePicker: remove default i10n locales import to reduce bundle size by ~42 kB (PR #316)
Breaking Changes
- DatePicker: default i10n locales are no longer imported
- if using
css/all.css, set the "theme" attribute on the HTML element to "g10" in order to use the Gray 10 theme
Documentation
- Redesign component documentation website
- Update development workflow in
CONTRIBUTING.md - Typo fixes in
README.md(PR #324, PR #325)
Housekeeping
- Git hooks: only lint staged files in the pre-commit Git hook (PR #319)
0.15.0 - 2020-10-01
Features
-
DataTableSkeleton: add
sizeprop to support "compact", "small", "tall" row heights (PR #279, thanks @albertms10) -
HeaderPanelLink: forward click event (PR #286, thanks @weaseldotro)
-
FluidForm: add
FluidFormcomponent and support fluid variants forTextInput,PasswordInput(PR #293, thanks @josefaidt) -
UI Shell: add
refprop to interactive (i.e., anchor links, buttons) UI Shell elements (PR #297, thanks @josefaidt)
Fixes
-
Slider: attach mousemove/touch events to document body, not slider input (issue #288)
-
Slider:
valueprop type should be anumber, not astring(issue #289) -
Slider: input value should not update if
disabledistrue -
Slider:
changeevent should only be dispatched if the value changes -
UI Shell: correctly bind
refprop inHeaderGlobalAction(PR #297, thanks @josefaidt) -
export
DatePickerSkeleton,FileUploaderSkeletoncomponents
Breaking Changes
- DataTableSkeleton:
compactprop is removed in favor ofsize="compact"
Dependencies
- upgrade
carbon-icons-svelteto version ^10.17.0
Housekeeping
-
prettier: enable
svelteBracketNewLinefor improved readability (PR #281, thanks @josefaidt) -
git: add husky, lint-staged to development workflow (PR #295, thanks @josefaidt)
0.14.0 - 2020-09-23
Features
Modal,ComposedModal: addpreventCloseOnClickOutsidepropModal: addalertprop to support alertdialog ARIA role (PR #273, thanks @josefaidt)TextInput: addwarnprop (PR #275, thanks @josefaidt)TextInput: addinlineprop (PR #277, thanks @josefaidt)
Fixes
DataTableSkeleton: addshowHeader,showToolbarpropsOverflowMenu: focus menu button on escape key onlyDataTable: fixheadersJSDoc type annotation (PR #271, thanks @albertms10)
Breaking Changes
DataTableSkeleton:showHeaderandshowToolbararetrueby default
0.13.0 - 2020-09-18
Features
-
Move helper text below form inputs in
ComboBox,Dropdown,MultiSelect,TextArea,NumberInput,TextInput,Select(PR #256, issue #255) -
ProgressIndicator: add
spaceEqualprop and functionality (PR #263, issue #262)
Fixes
-
Link: remove visited styles by default (PR #259, issue #258)
-
TimePickerSelect: deprecate
hideLabelprop to match spec and set default value totrue(PR #261, issue #260)
Breaking Changes
- TimePickerSelect:
hideLabelprop istrueby default
0.12.3 - 2020-09-16
Fixes
- ClickableTile: add missing
href(PR #254, thanks @josefaidt)
0.12.2 - 2020-09-14
Fixes
- Dropdown: allow event propagation when clicking the chevron icon (
73861e2)
0.12.1 - 2020-09-14
Fixes
- Pagination: ensure
page,pageSizevalues are numbers (0138910) - Pagination: dispatch "update" event only when
pageSizeorpagevalues update (458d1b5) - Pagination: use correct size carbon icons for buttons (size
16instead of24) (192f98d) - ProgressStep: use button element; set negative
tabindexifdisabledistrue(3202f39) - ProgressStep: forward click event (
6cb877e) - SideNavMenu, SideNavMenuItem: remove "role", "aria-haspopup" attributes causing a11y warnings
- RadioTile: move
keydown,tabindexto input element (17d97d1)
0.12.0 - 2020-09-13
Features
- css: ship pre-compiled CSS StyleSheets for each Carbon theme (
70e0875)
Documentation
- examples: add example set-ups using popular bundlers/frameworks
- update README guidance on consuming the library
0.11.0 - 2020-09-05
Features
- UI Shell: add
HeaderGlobalActioncomponent (7b3c111)
0.10.0 - 2020-09-05
Features
- UI Shell: add Close/AppSwitcher as default icons for
HeaderActioncomponent (5f62cde) - ButtonSet: add
stackedprop (c8e0a59) - Link: set
relattribute to "noopener noreferrer" iftargetis "_blank" (4b7d254)
Fixes
- TextInput: add missing
requiredprop to input (PR #237), thanks @kamil-murtaza) - StructuredList: change element semantics from
sectiontodivto avoid accessibility error (117dbcf) - MultiSelect: add
lightvariant to text input (6a955b1) - NumberInput: disable label, helper text if
disabledis set totrue(37c7f07) - Pagination: use singular page range text if
totalis 1 (3d64fb2)
Housekeeping
- add
.prettierrcand enablesvelteStrictMode(42b8159) - remove documentation of non-existent
smallButton prop (41a533d) - upgrade TypeScript to version >=4 (
e7e67f3) - bump prettier, prettier-plugin-svelte (
322b238) - bump rollup, rollup plugins (
00b9068) - require node >=12 for development/CI (
bf0f11a)
0.9.7 - 2020-08-23
0.9.6 - 2020-08-15
- use svelte compiler to generate TypeScript definitions, documentation (issue #227, PR #228)
- fix
DatePickerto use default imports (reverts6d5f1e5; issue #232)
0.9.5 - 2020-08-12
- fix
ModalandComposedModalto prevent modal from closing unexpectedly (PR #231)
0.9.4 - 2020-08-08
- ignore false positive
a11y-label-has-associated-controlwarnings added in svelte^v3.24.1 - fix
DatePicker: use wildcard import to resolve flatpickr "no default" error when using ESM - allow
CodeSnippetbutton to be optional by using thehideCopyButtonprop - refactor
CodeSnippet: replace afterUpdate with reactive statement - fix
CodeSnippet: forwardfeedback,feedbackTimeoutprops toCopycomponent
0.9.3 - 2020-08-02
- rename UI Shell
Headerslot from "skip-to-main-content" to "skip-to-content" - support fixed
SideNav - add
expandedByDefaultprop toHeaderto preventSideNavfrom being expanded
0.9.2 - 2020-08-01
- add "skip-to-main-content" slot to
Header - make
platformNameprop in UI ShellHeaderslottable (i.e., ...) - make
companypropHeaderoptional - fix UI Shell
Headerto add space between company and platform name for ARIA label - fix UI Shell
HeaderActionbug where panel would not open - add
ButtonSetcomponent - fix
Accordionto avoid$$restProps.classoverride
0.9.1 - 2020-07-30
- fix
TabContentto remove hidden prop when panel is selected
0.9.0 - 2020-07-30
- add TypeScript definitions
- dispatch "select" and "clear" events in
ComboBox - forward
keydownevent toTextInput,PasswordInputcomponents - add
countprop toTabsSkeleton - apply toggle behavior to
HeaderActionbutton; dispatch "open" and "close" events - fix forwarded click event in
CodeSnippet - fix class name typo in
UnorderedList
0.8.5 - 2020-07-23
- add
noGutter,noGutterLeft,noGutterRightprops toGrid,Row,Column - add
aspectRatioprop toColumn
0.8.4 - 2020-07-22
- add Grid components (
Grid,Row,Column) - add
PaginationNavcomponent - fix
TooltipIconto avoid$$restProps.classoverride
0.8.3 - 2020-07-20
- bump
carbon-icons-sveltedependency to version >=10.14.0 - support
sizeprop (undefinedor"sm"or"lg) inDatePickerInput,NumberInput,Select,PasswordInput,TextInputcomponents - support light variant for
ContentSwitcher - focus
ComboBoxafter clearing the selection - fix
ListBoxregression where size class can be overriden by$$restProps.class - fix
Paginationregression where current page selection value is stuck at1
0.8.2 - 2020-07-19
- fix
ComboBoxto close dropdown menu when pressing the "Escape" key (Issue #198)
0.8.1 - 2020-07-19
- fix bug in
Tagto prevent custom class from overriding tag class - fix SSR rendering issue in
Modalby replacingonDestroywithonMount(Issue #200)
0.8.0 - 2020-07-19
- use $$restProps API (requires Svelte version >=3.20)
- upgrade
carbon-icons-svelteto version >=10.13.0 - use svelte class:{value} API instead of
cx - add ref prop to "interactive" components like text inputs, anchor links... (Issue #196)
- add slot to Content Switcher
Switchcomponent (Issue #183) - fix
ContentSwitcherbug where boundselectedIndexcould not be updated - remove unused lib utilities (cx, css, fillArray)
- refactor component exports and folder structure
- create Sapper app for e2e testing and alternative development environment in
docs/ - update Travis CI config to build library, build storybook, and run e2e tests in
docs/ - remove Jest in favor of integration/e2e testing with Cypress
- update contributing guidelines
0.7.6 - 2020-07-19
- Add named slot to UI Shell
HeaderActioncomponent for text (PR#201, thanks @danielboven)
0.7.5 - 2020-07-17
-
Add
nameprop to form-related components (PR#199, thanks @softartisan) -
Add
Content,SkipToContentcomponents to the UI Shell -
Forward
on:clickevent to UI ShellHeadercomponent
0.7.4 - 2020-06-17
- Fix
OverflowMenufocus behavior to setdidOpenonly ifopenis true (PR#193)
0.7.3 - 2020-06-16
- Fix
OverflowMenuto focus button only after closing the menu (PR#192)
0.7.2 - 2020-06-04
- Add sort direction to dispatched "click:header" event for a sortable
DataTable(PR#188, thanks @mabentley85!)
0.7.1 - 2020-06-03
- Add missing RadioTile export
0.7.0 - 2020-05-29
-
Dispatch "update" event in
PaginationforpageSize,pagevariables (PR#185, thanks @mabentley85!) -
Drop carbon-components as a peer dependency
0.6.3 - 2020-05-26
-
Replace
"javascript:void(0)"with"/"inHeaderNavMenuhref attribute to fix a11y "not a valid attribute" warning;hrefis an exported property that can be overriden by the consumer (Issue #184) -
Ignore
a11y-no-onchangewarning inTimePickerSelect -
Bump development dependency
svelteto v3.23.0
0.6.2 - 2020-05-09
- Fix
tileMaxHeightbug inExpandableTileby setting the value only if the default value is 0 (Issue #180)
0.6.1 - 2020-05-08
- Fix
Paginationbug by binding the correct variable (selected) to theSelectcomponent (PR#179, thanks @ericol!)
0.6.0 - 2020-05-07
- Fix button with icon bug by manually setting
hasIconOnlyinButton. This results in a breaking change for icon-only buttons, which now must includehasIconOnly(Issue #174)
0.5.1 - 2020-05-03
0.5.0 - 2020-04-29
-
Ship
DataTablethat supports sorting -
Pin dependencies, remove commitlint, husky, eslint, prettier
0.4.2 - 2020-04-20
- Forward
on:blurevent to Select component (PR#169, thanks @httpsOmkar!)
0.4.1 - 2020-04-18
- Refactor UI Shell components to be modular (header, left panel, right panel) (PR#168, thanks @mfeitoza!)
0.4.0 - 2020-04-18
0.3.3 - 2020-03-09
- Fix "window is undefined" error when using UIShell with server-side rendering (SSR) (PR#149, thanks @pbxothi!)
0.3.2 - 2020-02-12
- Fix
SkeletonTextduplicate style attribute to work withsvelte^3.18.2(#134)
0.3.1 - 2020-02-03
-
Fix
DatePickerlocale initialization bug -
Fix
CheckboxSkeletonstyles; bumpcarbon-componentsversion to ^10.9.3
0.3.0 - 2020-02-03
-
Add single component skeleton states for
Accordion,CodeSnippet -
Fix
Select,SelectItemto support two-way binding, programmatic prop setting -
Fix
Tabto setselectedprop tocurrentIndexafter updating
0.2.1 - 2020-01-08
- Check if
l10n.enis defined inDatePickercomponent to resolve Svelte REPL compilation
0.2.0 - 2020-01-08
-
Include
srcin files published to npm to resolve Svelte module entry (#102) -
Support most Carbon components (See the GitHub project)
0.1.0 - 2019-12-15
- Initial release