Svelte implementation of the Carbon Design System
APACHE-2.0 License
Bot releases are hidden (Show)
Fixes
pre
tag in CodeSnippet
(Svelte v3.46.4 preserves pre
whitespace by default)Breaking Changes
TextInput
is type="number"
, value can be a number
or null
to signify "no value" (173d416, #1065)TextInput
dispatches instead of forwards input
, change
events (detail type: null | number | string
) (a15c1f5, #1065)Features
rowIndex
, cellIndex
to DataTable
"cell" slot (1d861bd, #1086)itemToInput
prop to MultiSelect
to customize name, title, labelText values (0f7349e, #1074)open
prop to TooltipDefinition
; dispatch open
, close
events (20e61724, #1057)Fixes
DataTable
headers should be reactive (a5f5550a, #1075)DataTable
batch selection checkbox should be reactive (0518fe6, #1085)MultiSelect
should correctly lose focus (8b39ccae, #1077)MultiSelect
should dispatch a blur
event (63f52b46, #1080)MultiSelect
accessibility issues (30a5f2c2, #1072)HeaderNavMenu
when pressing "Enter" or "Space" (18eb1e26, #1073)HeaderNavMenu
menu when pressing "Enter" on an item (c196ec0, #1073)HeaderNavMenu
accessibility issues (1939e432, #1079)TextInput
reactivity by using native bind:value
(173d416, #1065)Documentation
Housekeeping
carbon-components
to v10.52.0Fixes
Tooltip
definition is missing open, close events (504cf09d, #1058)TooltipDefinition
button should have type="button"
(5358cf66, #1056)Breaking Changes
NumberInput
"input" event type consistent with "change" (null | number
) (099efede, #1053 contributed @brunnerh)Features
NumberInput
input, change events when clicking the steppers (099efede, #1053 contributed @brunnerh)primaryButtonIcon
prop to Modal
, ModalFooter
(a8039a4d, #1047 contributed by @gregorw)Fixes
NumberInput
from coercing empty string to 0
(099efede, #1053 contributed @brunnerh)Fixes
NumberInput
with value 0
should not be converted to null
(95f0b9d, #1046)Breaking Changes
NumberInput
value as null | number
instead of string | number
(null
signifies "no value") (9e915cf9, #1044)Fixes
readonly
as a prop in TextArea
(3018c2b2, #1043)Checkbox
two-way binding for checked
, group
props (048ebc7b, #1042)Documentation
Checkbox
reactive example for bind:checked
(63ba003, #1045)Checkbox
reactive example for bind:group
to demo two-way binding (3a75244, #1045)Tabs
reactive example (1a1f4a3, #1045)NumberInput
"No value" example (c82990c, #1045)Features
focus
, blur
events to NumberInput
(493568f0, #1033)ProgressStep
icons for current, incomplete steps (e2779b9, #1021)id
as any
instead of string
in ComboBox
, Dropdown
, MultiSelect
(1f7b5560, #1019)Fixes
0
in NumberInput
if allowEmpty
is true (222d5a90, #1032)Slider
input if aria-label
not explicitly defined (c375d64, #1021)required
prop to RadioButton
(25ce57fd, #1035 contributed @brunnerh)required
prop to Checkbox
(201e0375, #1030 contributed @brunnerh)@default undefined
annotations for props that are undefined
by default (0d78c30b, #1020)Refactor
DatePicker
to prevent disabled icon from being clickable (77f31ea, #1021)Housekeeping
carbon-components
to v10.51.0Features
DataTable
(5da83ec8, #880 contributed by @kwieszalka-maystreet)Breaking Changes
selectedIndex
with selectedId
in Dropdown
(e11a893b, #1004 contributed by @KoichiKiyokawa)selectedIndex
with selectedId
in ComboBox
(cde8a79f, #1016 contributed by @KoichiKiyokawa)Fixes
Dropdown
icon from being clickable when disabled (cfa036d7, #1017 contributed by @patoi)Features
Toggle
labels slottable (b13bb8e0, #1015)ComboBox.clear
to not re-focus input (clear({ focus: false })
) (37f19d21, #1000)Fixes
Tooltip
when pressing "Escape" (b13bb8e0, #1015)ComboBox
to input element (a60bc73f, #1014)change
event in Checkbox
after modifying state (9b32fe90, #1013 contributed by @koffeinfrei)null | HTMLElement
for TypeScript strict mode (653a601f, #1008)click:button--primary
in Modal
if shouldSubmitOnEnter
is true (49a94b0e, #1007)Documentation
RadioButton
example (58de79d6, #1012)Select
example for Select
(e5f77aa6, #1011)TreeView
"Expand all nodes" example (872f90c, #1001)Search
clear event is also dispatched when pressing "Escape" (e066a65, #1001)Search
example (95a327f, #1001)Fixes
selectedIndex
reactivity in ComboBox
(d31e529, #995 contributed by @patoi)Refactor
null
in null | HTMLElement
prop types (6de73f8, #998)Fixes
ComboBox
when manually clearing selection (f6eb958, #992)ComboBox
keyboard selection (a2a5159, #926 contributed by @patoi)Dropdown
, Header
to fix a11y warnings (502f937, #989)TileGroup
two-way binding on the selected
prop (e8be928, #971 contributed by @brunnerh)Documentation
DatePicker
usage with a Rollup set-up (01a548f, #990)Modal
(3ca0297, #980)RadioTile
(d4db64e, #979)Fixes
required
prop to Select
(6458c97, #968 contributed by @brunnerh)Features
Checkbox
to support bind:group
(f0cf4e7, #947 contributed by @gregorw)Fixes
MultiSelect
should blur when pressing "Tab" (c2a2f01, #961)MultiSelect
menu should close when pressing "Escape" (29a12f6, #961)MultiSelect
menu should open when pressing "Space" (6dace27, #961)DatePicker
input should not lose focus when pressing "Enter" (f955b09, #958)ToolbarSearch
should expand if value
is programmatically set (9698625, #956)Fixes
DatePicker
should not propagate past the open calendar (a522a55, #955)MultiSelect
from triggering twice (3277527, #954)Fixes
DataTable
events when selecting a checkbox or radio button (ae96fdf, #951)labelText
prop or $$slots.labelText
is truthy (a32bcbc, #949)Tabs
mobile variant when clicking a menu option (d5a6b58, #946 contributed @brunnerh)""
for TextInput
, PasswordInput
, TextArea
(a1377f0, #936 contributed by @patoi)Fixes
MultiSelect
using keyboard navigation (f6c9c8c, #923)sortedItems
in MultiSelect
(6f9dddb, #923)Fixes
DataTable
"click", "click:row" events if target is an OverflowMenu
(4f83b2d, #918)Features
target
prop to ContextMenu
to support custom trigger element(s) (f603106, #916)event.detail
in ContextMenu
"open" event (c43da25, #916)