carbon-components-svelte
Advanced tools
Changelog
0.58.0 - 2022-02-11
Breaking Changes
TextInput
is type="number"
, value can be a number
or null
to signify "no value"TextInput
dispatches instead of forwards input
, change
events (detail: null | number | string
)Features
rowIndex
, cellIndex
to DataTable
"cell" slotitemToInput
prop to MultiSelect
to customize name, title, labelText valuesopen
prop to TooltipDefinition
; dispatch open
, close
eventsFixes
DataTable
headers should be reactiveDataTable
batch selection checkbox should be reactiveMultiSelect
should correctly lose focusMultiSelect
should dispatch a blur
eventMultiSelect
accessibility issuesHeaderNavMenu
when pressing "Enter" or "Space"HeaderNavMenu
menu when pressing "Enter" on an itemHeaderNavMenu
accessibility issuesTextInput
reactivity by using native bind:value
Documentation
Housekeeping
carbon-components
to v10.52.0Changelog
0.57.0 - 2022-01-30
Breaking Changes
NumberInput
"input" event type consistent with "change" (null | number
)Features
NumberInput
input, change events when clicking the steppersprimaryButtonIcon
prop to Modal
, ModalFooter
Fixes
NumberInput
from coercing empty string to 0
Changelog
0.56.0 - 2022-01-27
Breaking Changes
NumberInput
value as null | number
instead of string | number
(null
signifies "no value")Fixes
readonly
as a prop in TextArea
Checkbox
two-way binding for checked
, group
propsDocumentation
Checkbox
reactive example for bind:checked
Checkbox
reactive example for bind:group
to demo two-way bindingTabs
reactive exampleNumberInput
"No value" exampleChangelog
0.55.0 - 2022-01-22
Features
focus
, blur
events to NumberInput
ProgressStep
icons for current, incomplete stepsid
as any
instead of string
in ComboBox
, Dropdown
, MultiSelect
Fixes
0
in NumberInput
if allowEmpty
is trueSlider
input if aria-label
not explicitly definedrequired
prop to RadioButton
required
prop to Checkbox
@default undefined
annotations for props that are undefined
by defaultRefactor
DatePicker
to prevent disabled icon from being clickableHousekeeping
carbon-components
to v10.51.0Changelog
0.52.0 - 2022-01-17
Features
Toggle
labels slottableComboBox.clear
to not re-focus input (clear({ focus: false })
)Fixes
Tooltip
when pressing "Escape"ComboBox
to input elementchange
event in Checkbox
after modifying statenull | HTMLElement
for TypeScript strict modeclick:button--primary
in Modal
if shouldSubmitOnEnter
is trueDocumentation
RadioButton
exampleSelect
example for Select
TreeView
"Expand all nodes" exampleSearch
clear event is also dispatched when pressing "Escape"Search
example