Svelte implementation of the Carbon Design System
APACHE-2.0 License
Bot releases are hidden (Show)
Fixes
Toolbar
z-index so overflow menu is not clipped by the table (a2715f3d, #1289)Fixes
translateWithIdsSelection
prop to ComboBox
, MultiSelect
to customize clear selection description (f7146b61, #1285)ListBoxMenuIcon
if translateWithIds
is undefined (8ddb88a, #1282)ListBoxSelection
if translateWithIds
is undefined (1353c31, #1282)Fixes
Tabs
only if selected index has changed (9911764d, #1279)Fixes
"2x3"
ratio value to AspectRatio
(410ac0c3, #1276)ToolbarSearch
shouldFilterRows type annotation (30b81f98, #1275)Documentation
tooltipBodyId
in Tooltip
examplesDataTable
"Expandable and selectable" exampleDataTable
"Batch selection" exampleFixes
FileUploaderItem
regression where delete
event should be dispatched if status is "edit" (564f25d0, #1268)Documentation
FileUploader
"Item (edit)" exampleFileUploader
"Item (edit status, invalid state)" example to include on:delete
usageFileUploader
"Item (edit status, invalid state with subject, body)" exampleFixes
type="button"
on Dropdown
to fix usage in a form (1f18c86f, #1264)ToolbarSearch
value (49a852b1, #1263)Fixes
HeaderGlobalAction
icon size should be 20
by default (1041c6e9, #1257)rows
reactivity in DataTable
(43e29864, #1255 contributed by @n-peugnet)⚠️ If using optimizeImports
from carbon-preprocess-svelte
, you must upgrade to version 0.9.0.
Breaking Changes
Icon
, IconSkeleton
, NotificationTextDetails
, ToggleSmall
, ToggleSmallSkeleton
, HeaderActionSearch
(ba0ed0b, #1191)optimizeCarbonImports
preprocessor (6986aac1, #1217)GlobalHeader
and SideNav
subfolders (62735d62, #1223)truncate
action from actions
to src/Truncate
(9143e502, #1224)Features
breakpointObserver
, breakpoints
to base exports (4d955900, #1216)ProgressBar
kind
prop to support inline, indented variants (c998dbd, #1213)Fixes
type="button"
attribute to interactive, filterable tag variants (7f9f45e5, #1246)sveltekit:
attributes for anchor elements (ea38cd25, #1234)Link
types should extend a
or p
attributes (45c27264, #1233)DataTable
with sticky header from jumping (e8da9d7e, #1230)Refactor
carbon-icons-svelte
v11Documentation
DataTable
"Sticky header" exampleGrid
examplesUIShell
that theming is not supportedProgressBar
examples "Inline variant" and "Indented variant"Housekeeping
carbon-components
to v10.56.0Fixes
TreeView
filter logic in expandNodes/collapseNodes (0e370dd5, #1215)NumberInput
(5e67c707, #1212)DataTable
row content when expanded (051a8702, #1211)Fixes
DataTable
expandable variant should work with zebra styles (53fdbdf9, #1200)DatePicker
flatpickrProps
should override default flatpickr
options (9c45c74d, #1198 contributed by @flut1)Documentation
DataTable
"Expandable (zebra styles)" exampleFixes
ToolbarSearch
standalone usage where "DataTable" context can be undefined (254bd848, #1190)Breaking Changes
Copy
component (e4800d96, #1174)Form
(ef46f350, #1170)Features
shouldFilterRows
prop to ToolbarSearch
to support auto-filterable DataTable
rows (2df7b922, #1179)SideNavLink
text slottable (1462b2ee, #1187)icon
prop slottable in ContextMenuOption
, Link
, Tag
, HeaderAction
, HeaderActionLink
, SideNavLink
, SideNavMenu
(e23b1211, #1186)MultiSelect
slottable (1017e801, #1183)Dropdown
slottable (f5594dab, #1182)ComboBox
slottable (28587763, #1181)Fixes
HeaderAction
button (d9ee8cb2, #1185)Refactor
Copy
component in CopyButton
, CodeSnippet
(f8aecdbe, #1175)bind:value
in Search
(ba0abe8e, #1173)bind:value
in TextArea
(59ecc53a, #1169)Documentation
DataTable
"Filterable" and "Filterable (custom)" examplesMultiSelect
"Custom slot" exampleDropdown
"Custom slot" exampleComboBox
"Custom slot" exampleitems
object in ComboBox
, Dropdown
, MultiSelect
requires a unique id
ClickableTile
"Prevent default behavior" exampleForm
"Prevent default behavior" exampleCheckbox
docsBreaking Changes
HeaderActionSlideTransition
interface from HeaderAction
; type transition prop as SlideParams
(47866b1d, #1163)Breakpoint
"on:match" event to "on:change" (2cd2872, #1092 contributed by @brunnerh)Breakpoint
breakpoints to carbon-components-svelte/src/Breakpoint/breakpoints
(5de0d9a3, #1092 contributed by @brunnerh)Features
DataTable
non-selectable rows (95a1dfa1, #1166)MultiSelect
highlightedId as a prop (9215e3b1, #1153 contributed by @dominikg)breakpointObserver
store as an alternative to Breakpoint
(5de0d9a3, #1092 contributed by @brunnerh)Fixes
HeaderAction
text styles (53853cf6, #1162)HeaderActionLink
icon with HeaderAction
icon (5d153601, #1161)MultiSelect
filterable selection error (9215e3b1, #1153 contributed by @dominikg)FileUploaderDropContainer
validateFiles prop (853942f9, #1149 contributed by @DanielPower)Popover
SCSS from [email protected]
(cc7b30a6, #1139)Refactor
Icon
component (e2c980e2, #1160)Documentation
DataTable
"Non-selectable rows" exampleOverflowMenu
"Disabled items" exampleBreakpoint
"Store and Breakpoint Values" exampleFeatures
RadioButtonGroup
hiddenLegend
prop to visually hide the legend (52cd7af, #1133)ProgressBar
size
prop to support small size variant (93983f9, #1133)Fixes
DatePicker
calendar instance if options change (faeee2b1, #1128)Refactor
StructuredList
overflow-y
style monkey patch (38048d1, #1133)Documentation
RadioButton
"Hidden legend" exampleProgressBar
"Small size" exampleHousekeeping
carbon-components
to v10.54.0Features
maxCount
prop to TextArea
(5cede07, #1109)disabled
prop to FileUploader
(85696ed, #1109)files
prop to FileUploaderDropContainer
(8bfdb7f, #1125)files
prop to FileUploaderButton
(bf85af2, #1120)Fixes
add
, change
events in FileUploaderDropContainer
to dispatch File[]
instead of FileList
(45c0e79, #1125)files
prop description in FileUploader
(c13ade3, #1120)Documentation
TextArea
"Maximum character count" exampleFileUploader
disabled state exampleFileUploader
"Clear files" examplevalidateFiles
prop for FileUploaderDropContainer
FileUploaderButton
, FileUploader
examplesHousekeeping
carbon-components
to v10.53.0Fixes
detail
type should be null
instead of any
(714f47a6, #1124)FileUploader
clearFiles
description should reflect that it's an accessor, not a prop (2f3cff29, #1122)FileUploader
should correctly fire add
and remove
events (6a13ca1c, #1121)FileUploader
files should not be keyed by file name (25d28a9c, #1118)FileUploader
change event detail signature should be File[]
(7602731b, #1117)DataTable
regression where sort icon indicators don't update (dce0309b, #1114)Refactor
Fixes
TextInput
and PasswordInput
should render label if "labelText" slot is used (7c0086d0, #1110)PasswordInput
should not render label
if no labelText
is provided (33c1543b, #1108 contributed by @hnzlmnn)StructuredList
overflow-y should not be "hidden" (6dc17dd8, #1107)MultiSelect
should not prevent default key behavior when open (73b10566, #1101)Switch
should have type="button"
(1ad2ca40, #1104)Fixes
Tooltip
aria-label
should use iconDescription
if triggerText
is falsy (c32df506, #1095)OverflowMenu
keyboard navigation should skip disabled items (c7de897b, #1096)HeaderPanelDivider
should use hr
element to represent divider (16790daa, #1093)Button
should not set aria-pressed
on icon-only, link buttons (05e4c282, #1091 contributed by @brunnerh)