Skip to content

Releases: carbon-design-system/carbon-components-svelte

v0.94.0

29 Nov 22:48

Choose a tag to compare

What's Changed

⚠ BREAKING CHANGES

  • progress-step: remove one-update delay for complete prop by @metonym in (#2368)

Features

Bug Fixes


New NotificationQueue component

Control toast notifications using an imperative API. See Documentation.

<script>
  import { Button, NotificationQueue } from "carbon-components-svelte";

  let queue;
</script>

<NotificationQueue bind:this={queue} />

<Button
  on:click={() => {
    queue.add({
      kind: "success",
      title: "Success",
      subtitle: "Your changes have been saved.",
      timeout: 3000,
    });
  }}
>
  Show success
</Button>
<Button
  on:click={() => {
    queue.clear();
  }}
>
  Clear all
</Button>

New SelectableTileGroup component

Similar to TileGroup for radio tiles, the new SelectableTileGroup component abstracts state management for multi-selectable tiles. See Documentation.

<script>
  import { SelectableTileGroup, SelectableTile } from "carbon-components-svelte";
</script>

<SelectableTileGroup
  legend="Select options"
  name="options"
  selected={["option1", "option2"]}
>
  <SelectableTile value="option1">Option 1</SelectableTile>
  <SelectableTile value="option2">Option 2</SelectableTile>
  <SelectableTile value="option3">Option 3</SelectableTile>
</SelectableTileGroup>

Full Changelog: v0.93.0...v0.94.0

v0.93.0

22 Nov 20:38

Choose a tag to compare

What's Changed

⚠ BREAKING CHANGES

Features

Bug Fixes


New Stack component

Use Stack to manage vertical and horizontal spacing using Carbon Design System layout tokens. See Documentation.

<Stack>
  <p>Item 1</p>
  <p>Item 2</p>
  <p>Item 3</p>
</Stack>

OverflowMenuItem supports close on click

Use preventDefault() on individual click events to prevent the menu from closing when that item is clicked.

<OverflowMenu>
  <OverflowMenuItem
    text="Show all files"
    on:click={(e) => {
      // Prevent menu from closing for this item.
      e.preventDefault();
    }}
  />
  <OverflowMenuItem text="Close menu" />
</OverflowMenu>

Full Changelog: v0.92.0...v0.93.0

v0.92.1

22 Nov 18:45

Choose a tag to compare

Fix is backported from v0.93.0

Bug Fixes

Full Changelog: v0.92.0...v0.92.1

v0.91.1

18 Nov 00:06

Choose a tag to compare

Fix is backported from v0.93.0

Bug Fixes

Full Changelog: v0.91.0...v0.91.1

v0.92.0

13 Nov 15:54

Choose a tag to compare

What's Changed

⚠ BREAKING CHANGES

  • number-input: rename label to labelText (#2337)
  • multi-select: rename titleText to labelText (#2337)
  • dropdown: rename titleText to labelText (#2337)
  • combo-box: rename titleText to labelText (#2337)

Features

  • feat(combo-box): add typeahead prop for autocomplete by @spburtsev in #2340

Fixes

  • fix!: rename form label prop names for consistency by @spburtsev in #2337
  • fix(modal): prevent pointer events on closed modals by @metonym in #2339

Full Changelog: v0.91.0...v0.92.0

v0.91.0

10 Nov 15:43

Choose a tag to compare

What's Changed

  • feat(tree-view): add filterTreeNodes utilities by @metonym in #2269
  • feat(tree-view): showNode is configurable by @metonym in #2332
  • feat(combo-box): support TypeScript generics by @metonym in #2271
  • feat(dropdown): support TypeScript generics by @metonym in #2315
  • feat(multi-select): support TypeScript generics by @metonym in #2316
  • feat(types): annotate typedefs and dispatched events by @metonym in #2322
  • perf(data-table): hoist regex for nested keys by @metonym in #2318
  • perf: optimize barrel file exports by @metonym in #2327
  • fix(slider): store event object for drag calculations by @metonym in #2320
  • fix(types): correctly generate @default values by @metonym in #2325
  • fix(multi-select): restore complete keyboard navigation for filterable variant by @metonym in #2317
  • fix(breakpoint): use declare const in types by @metonym in #2330
  • fix(tree-view-node): correctly type computeTreeLeafDepth export by @metonym in #2333

Full Changelog: v0.90.2...v0.91.0

v0.90.3

08 Nov 20:47

Choose a tag to compare

Bug Fixes

  • multi-select: restore complete keyboard navigation for filterable variant (#2317) (4958db4), closes #2313

Full Changelog: v0.90.2...v0.90.3

v0.90.2

08 Nov 17:43

Choose a tag to compare

What's Changed

  • fix(types): include skeleton props for Button/DataTableSkeleton by @metonym in #2306
  • fix(button): icon slot includes style prop in TypeScript definitions by @metonym in #2310
  • fix(multi-select): restore keyboard navigation for filterable variant by @metonym in #2314

Full Changelog: v0.90.1...v0.90.2

v0.89.11

08 Nov 19:35

Choose a tag to compare

Fix is backported from v0.90.3

Bug Fixes

  • multi-select: restore complete keyboard navigation for filterable variant (#2317) (e7808bc), closes #2313

Full Changelog: v0.89.10...v0.89.11

v0.89.10

08 Nov 16:34

Choose a tag to compare

Fix is backported from v0.90.2

Bug Fixes

  • multi-select: restore keyboard navigation for filterable variant (#2314) (ce0b9ca), closes #2313

Full Changelog: v0.89.9...v0.89.10