Svelte implementation of the Carbon Design System
APACHE-2.0 License
Published by metonym over 3 years ago
Fixes
selectedId
(https://github.com/IBM/carbon-components-svelte/pull/611, contributed by @DavidEspinosa42)DataTable
, HamburgerMenu
components (https://github.com/IBM/carbon-components-svelte/pull/594, contributed by @vegardlarsen)Housekeeping
carbon-components
to version 10.32.1Published by metonym over 3 years ago
Fixes
Published by metonym over 3 years ago
Breaking Changes
CodeSnippet
and CopyButton
using clipboard-copy
light
prop in ContentSwitcher
Features
SelectableTile
, RadioTile
TooltipFooter
componentOverflowMenu
in BreadcrumbsContextMenuOption
DataTable
<DataTable
sortable
headers={[
{ key: 'name', value: 'Name' },
{ key: 'protocol', value: 'Protocol', sort: false }
]}
/>
DataTableSkeleton
if a value is { "empty": true }
inputRef
prop in MultiSelect
searchClass
prop to Search
, which is passed to the outermost elementnoMargin
prop to FormGroup
to remove default bottom margin (default value is false
)Fixes
ContextMenu
position based on viewport constraintsTimePicker
ToolbarSearch
ModalBody
Documentation
SelectableTile
, RadioTile
DataTable
size examples, empty header column DataTableSkeleton
exampleContentSwitcher
exampleHousekeeping
carbon-components
to version 10.32.0clipboard-copy
to direct dependenciesPublished by metonym over 3 years ago
Fixes
NumberInput
Form
FluidForm
to Form
Published by metonym over 3 years ago
Breaking Changes
title
value in InlineNotification
title
, caption
values in ToastNotification
iconDescription
prop from HeaderNavMenu
Features
Popover
componentContextMenu
componentTabsSkeleton
Select
Pagination
Fixes
NumberInput
Slider
markup to use CSS to hide input if hideTextInput
is true
StructuredListBody
MultiSelect
: "clear" should be typed as a custom eventLink
autofocus
attribute if the value is true
Documentation
Slider
hidden text input, invalid, disabled examplesSelect
warning, invalid, helper text, skeleton (hidden label) examplesRadioButton
disabled buttons exampleToastNotification
, InlineNotification
Select
item groups example to use the hidden default optionHousekeeping
carbon-components
to version 10.31.0carbon-icons-svelte
to version 10.27.0 (icons are correctly typed using SvelteComponentTyped
)Published by metonym over 3 years ago
Breaking Changes
$$restProps
to the input element in Search
, MultiSelect
, ComboBox
, TimePicker
, DatePickerInput
, NumberInput
Features
ImageLoader
componentLocalStorage
componentToolbarSearch
RadioButtonGroup
Tag
SideNavMenuItem
text slottableIcon
, IconSkeleton
Fixes
SideNav
SideNav
TextInputSkeleton
RadioButton
label if labelText
is truthyNumberInput
mobile variantMultiSelect
select eventButton
ListBoxSelection
to fix filterable MultiSelect
ListBoxMenuIcon
to correctly render Dropdown
chevron iconz-index: 1
on tooltip when open; style can be overridden through $$restProps.style
Documentation
Search
PasswordInput
RadioButtonGroup
Tag
NumberInput
Housekeeping
carbon-components
to v10.30.0Published by metonym over 3 years ago
Fixes
slot
to correctly render button with icon in Safari 13Published by metonym over 3 years ago
Fixes
ComboBox
, MultiSelect
based on relatedTarget tag nametruncate
action to preserve existing class names on nodePublished by metonym over 3 years ago
Breaking Changes
TimePicker
is changed from "hh=mm" to "hh:mm"Features
SideNavDivider
componentComboBox
, Dropdown
, MultiSelect
to render the dropdown menu above or below the inputComboBox
warning stateTruncate
) and action (use:truncate
)css/*.scss
filesSvelteComponentTyped
interface in the component TypeScript definitionsFixes
description
as warning icon title in ProgressStep
DataTable
type definition to include $$restProps
Documentation
Tag
exampleComboBox
invalid state exampleComboBox
, Dropdown
, MultiSelect
ProgressIndicator
invalid/disabled stepsRadioTile
light variant exampleHousekeeping
carbon-components
to version 10.29.0Published by metonym over 3 years ago
Breaking Changes
transitionend
event in ComposedModal is dispatched, not forwarded; it will only trigger when the modal has finished animatingFeatures
size="sm"
)close
event in a filterable Tag (an alias for click
)toggle
event in ToggletooltipText
slottable in TooltipIcon (slot name="tooltipText")hideLabel
prop to Dropdowntransitionend
event in Modal, ComposedModal to fire after the modal has finished animatingFixes
click
event to TabDocumentation
Housekeeping
carbon-components
to version 10.28.0@carbon/themes
development dependency; themes are pulled from carbon-components
Published by metonym over 3 years ago
Features
optimizeCarbonImports
preprocessor to rewrite base Carbon imports to the source Svelte filetooltipAlignment
("center") and tooltipPosition
("bottom") in Buttontimeout
to dispatched on:close
event detail in InlineNotification and ToastNotificationflatpickr
to version 4.6.9 for ES module (ESM) importsFixes
submit
event to FluidFormfocusout
eventBreaking Changes
src/DataTable
notificationType
is removed from InlineNotification and ToastNotificationrenderIcon
prop renamed to icon
in NotificationButtonicon
prop type changed to "typeof import("carbon-icons-svelte").CarbonIcon" in HeaderAction, HeaderActionLink, SideNavLink, SideNavMenusass.outputStyle
instead of "compact"Documentation
Housekeeping
node-sass
with sass
carbon-components
to version 10.27.0@carbon/themes
to version 10.26.0autoprefixer
, postcss
, prettier-plugin-svelte
Published by metonym almost 4 years ago
Features
Render the UI Shell hamburger menu only if the SideNav
component is present (PR #457, issue #434)
Clear the Search
input value if the "Escape" key is pressed (PR #448)
Customize the Tooltip
alignment using the align
prop (PR #446, issue #398)
<!-- default alignment is "center" -->
<Tooltip align="center">...</Tooltip>
<Tooltip align="start">...</Tooltip>
<Tooltip align="end">...</Tooltip>
Fixes
files
prop type FileUploader
to be a list of Files instead of file names (PR #437)NumberInput
(PR #444)$$restProps
in DataTableSkeleton
to the top-level element to be consistent with DataTable
(PR #441, issue #423)Tooltip
on the mousedown event; re-focus the tooltip icon after closing and forward click
, mousedown
eventsDropdown
button correctly for multiple dropdowns (PR #447)ComboBox
input correctly for multiple combo boxes (PR #447)ComboBox
when clicking a search input (PR #447, issue #436)HeaderSearch
when using the up/down arrow keys to navigate results (PR #432, issue #431)small
prop in ButtonSkeleton
CodeSnippetSkeleton
type to only be "single" or "multi"Breaking Changes
files
in FileUploader
components is a list of Files, not just file names$$restProps
is spread to the top-level element in DataTableSkeleton
Documentation
Search
, ContentSwitcher
, Toggle
componentsSideNav
) UI Shell exampleHousekeeping
carbon-components
to version 10.25 for the pre-compiled CSS StyleSheetsPublished by metonym almost 4 years ago
Fixes
selectedResultIndex
in HeaderSearch when clicking a result (PR #430, issue #429)Published by metonym almost 4 years ago
Features
Add padding
prop to Grid, Row, Column components (PR #420, issue #410)
<!-- applies vertical padding to all child columns -->
<Grid padding>...</Grid>
<!-- applies vertical padding to child columns in a specific row -->
<Grid><Row padding>...</Row></Grid>
<!-- applies vertical padding to a specific column -->
<Grid><Row><Column padding>...</Column></Row></Grid>
Add transition
prop to UI Shell HeaderAction
to customize panel slide transition; by default, the slide duration is 200
ms (PR #419, issue #384)
Custom slide transition parameters:
<script>
import { quintOut } from "svelte/easing";
</script>
<HeaderAction transition="{{ duration: 1200, delay: 200, easing: quintOut }}">...</HeaderAction>
Disabled:
<HeaderAction transition="{false}">...</HeaderAction>
Fixes
Files
type for FileUploader (PR #422, issue #421)Documentation
Housekeeping
sveld
to version 0.3.0Contributors
Published by metonym almost 4 years ago
Features
Add a HeaderSearch
component for the UI Shell that can render user-provided search results (PR #417, issue #395); HeaderActionSearch
is deprecated in favor of HeaderSearch
<HeaderSearch
bind:ref
bind:active
bind:value
bind:selectedResultIndex
placeholder="Search services"
results="{results}"
on:active
on:inactive
on:clear
on:select="{(e) => {
console.log(e.detail); // { value: string; selectedResultIndex: number; result: HeaderSearchReseult }
}}"
/>
Expand headers
prop type in DataTableSkeleton
to be consistent with that of the DataTable
(PR #415, issue #413)
Before, you had to map the header value when using the DataTableSkeleton:
<DataTableSkeleton headers={headers.map(header => header.value)} />
Now, you can simply reuse the headers supplied to the DataTable component:
{#if loading}
<DataTableSkeleton {headers} />
{:else}
<DataTable {headers} {rows} />
{/if}
Fixes
DataTableRow
prop type in DataTable to require an "id" key and value (PR #415, issue #414)Documentation
Published by metonym almost 4 years ago
Fixes
Contributors
Published by metonym almost 4 years ago
Fixes
selected
prop reactivity in RadioButtonGroup so that it can be programmatically updated (PR #407, issue #406)Documentation
Contributors
Published by metonym almost 4 years ago
Features
persistentHamburgerMenu
is true
(PR #396, issue #374, rendered example)selectorPrimaryFocus
is null
(PR #393)size
is "sm"
; deprecate ToggleSmall which will be removed in the next major release (PR #401)Fixes
currentIndex
reactivity in ProgressIndicator so that it can be programmatically updated (PR #404, issue #399)Refactoring
svelte:component
in Button; by design, svelte:component
will not render falsy values (PR #402)Documentation
code
tag (PR #392, issue #390)Housekeeping
carbon-icons-svelte
from version ^10.17 to ^10.21Breaking Changes
Contributors
Special thanks to @albertms10 for reviewing pull requests.
Published by metonym almost 4 years ago
Features
Fixes
tabindex
attribute from trigger button (87b8de1159d1e1dabfbfa75b478060047e42b70f)showMoreLess
should be re-computed if code
is dynamically updated (PR #381)Documentation
itemToString
prop for Dropdown, MultiSelectcode
Housekeeping
carbon-components
to v10.23.1, @carbon/themes
to v10.22.1Published by metonym almost 4 years ago
Features
ToolbarMenu
, ToolbarMenuItem
(PR #369)empty
key to headers
prop (PR #370)Fixes
Documentation
Dropdown
, MultiSelect
, Select
Contributors