Svelte implementation of the Carbon Design System
APACHE-2.0 License
Bot releases are hidden (Show)
Fixes
Tabs
should not dispatch an initial "change" event when no change has occurred (9bbc769, #882 contributed by @miedzikd)Pagination
page value should not exceed total pages (1aad315, #911 contributed by @ibilux)Popover
relative prop by inlining style (914f9af, #915)onDestroy
with onMount
return function to avoid running code server-side (fd53ce, #914)Fixes
Popover
styles from [email protected]
(1a0e990, #913)Features
UIShell
HeaderNavMenu with current item (bb2912b, #907)InlineNotification
title, subtitle props slottable (e59e1a9, #907)ToastNotification
title, subtitle, and caption props slottable (e225c54, #907)Refactor
ExpandableTile
(6772489, #907)refContent
in ExpandableTile
(ee03b95, #907)Housekeeping
carbon-components
to v10.48.0Fixes
DatePicker
locale prop as flatpickr CustomLocale
or key
(a308c89, #906)carbon-icons-svelte
imports to use inlined icons (36f6a32, #905)Breaking Changes
carbon-icons-svelte
from direct dependencies (040e3d3, #904)Features
Tabs
(ea6757d, #901)Form
(08402e5, #900)Fixes
null
when destroying DatePicker
(4df812b, #903)Fixes
Tooltip
two way binding when icon is in focus (7e76cbc, #895 contributed by @malinowskip)TextInput
value to a number if type="number"
(32beeac, #902)Fixes
Tooltip
open/close logic to allow two way binding of the open
prop (f32f8fb, #885 contributed by @malinowskip)position: relative
style in ExpandableTile
(b22058f)Fixes
click:row--expand
when clicking an expandable DataTable
row chevron (0e460cd, #890)Fixes
DataTable
(fb7ebb9, #873)Fixes
Tooltip
when using multiple tooltips (51cd4ec, #870 contributed by @miedzikd)DataTable
if one or more rows is collapsed (2aeeb72, #868)icon
prop descriptions (7b65a15, #866)Fixes
DataTable
(bebc497, #864)Published by metonym about 3 years ago
Features
nonExpandableRowsIds
prop to DataTable
to specify rows that should not be expandable (cab576c, #862)Breaking Changes
.svelte.d.ts
extension instead of .d.ts
for Svelte component TypeScript definitions (3203e7a, #856)This breaking change affects TypeScript users using the direct component import path.
To fix any type errors, append a ".svelte"
to the import.
- import Button from "carbon-components-svelte/src/Button/Button";
+ import Button from "carbon-components-svelte/src/Button/Button.svelte";
Features
Tag
outline type (9f2e38f, #854)hideLabel
prop to MultiSelect
(b2812a1, #854)icon
props, not just CarbonIcon
(b21600c, #806)closeIcon
prop to HeaderAction
to override the default Close20
icon (fc9e8a6, #840 contributed by @miedzikd)Fixes
DatePickerInput
is a disabled fieldset
descendant (b616243, #860)stopPropagation
modifier from HeaderAction
to allow multiple UI Shell app switchers (b85ab30, #840 contributed by @miedzikd)Housekeeping
carbon-components
to v10.46.0Fixes
ProgressIndicator
steps (6759d3e, #852)Features
TreeView
component accessors to programmatically expand/collapse nodes (c441363, #850)
Treeview.expandAll
: expands all nodesTreeview.collapseAll
: collapses all nodesTreeview.expandNodes
: expands a subset of nodesTreeview.collapseNodes
: collapses a subset of nodesAccess the component accessors by using the bind:this directive:
<script>
import { TreeView } from "carbon-components-svelte";
let treeview;
$: if (treeview) treeview.expandAll();
</script>
<TreeView bind:this={treeview} ... />
Fixes
value
prop to Checkbox
(fed34e4, #849 contributed by @KoichiKiyokawa)Fixes
DataTable
sorting to tolerate null
, undefined
values (d3eb146, #846 contributed by @malinowskip)When sorting in the ascending/descending directions, null
and undefined
values will be sorted last.
Fixes
menuOptionsClass
in OverflowMenu
(05f9d2a, #836 contributed by @KoichiKiyokawa)Fixes
ClickableTile
TypeScript definition restProps should extend attributes of either a
or p
tagsFixes
DataTable
with a title and description (dbf1f22, #824 contributed by @Florian-Schoenherr)Housekeeping
carbon-components
to v10.44.0