Svelte implementation of the Carbon Design System
APACHE-2.0 License
Fixes
ComboBox
is disabled, clicking the chevron icon should not toggle the dropdownToolbarBatchActions
cancel button text should be slottableFeatures
add ability to override or customize DatePicker
calendar options using flatpickrProps
(bc0b048, #794 contributed by @stilet)
<script>
import { DatePicker, DatePickerInput } from "carbon-components-svelte";
</script>
<DatePicker
datePickerType="single"
flatpickrProps="{{ static: true }}"
on:change
>
<DatePickerInput labelText="Meeting date" placeholder="mm/dd/yyyy" />
</DatePicker>
Features
add ability to programmatically clear a ComboBox
using the clear
component accessor (dfc00f6, #804 contributed by @rafadess)
<script>
import { ComboBox } from "carbon-components-svelte";
let ref;
</script>
<ComboBox bind:this={ref} />
<button on:click={ref?.clear}>
Clear
</button>
Fixes
RadioButton
"labelText" slot should render even if labelText
is falsy (c1bf349, #808 contributed by @airedwin)FormGroup
legend
element if legendText
is truthy (892c19a, #785 contributed by @ibilux)Published by metonym about 3 years ago
Fixes
ComboBox
(d24c60856f375cf2c9418775b5d9b094d6133002)Documentation
carbon-preprocess-svelte
in README.md (568b256471c70e323d178647c05f0b2fabe746dd)Published by metonym about 3 years ago
Fixes
a11y-mouse-events-have-key-events
warnings (a67e8a81f6dc5d7416ed6f4468efeb759593873c)carbon-icons-svelte
to v10.36.0 to quell a11y-mouse...
warnings (3eac5c3a374c8a019568813d74b2d0e30dcaee6b)Refactor
formatStyle
utility in OverflowMenu
(3eac5c3a374c8a019568813d74b2d0e30dcaee6b)Documentation
svelte:head
example usage for loading CDN styles (47d82fdd9a75d74bd8f6af4e81a1d580f354594b)Published by metonym over 3 years ago
Features
helperText
prop to DatePickerInput
(d0f6ee9b517bd1757c46dba74a60bb4d3fa18f5a)Fixes
svelte:body
with svelte:window
when listening for an outside click (af26bdb10a4c7f8a1db487fd5d84a9a10fc15752, PR #761 contributed by @phil-mayer)Documentation
DatePicker
example "With helper text"
Refactor
treeview.scss
import in css/*.scss
files as it is included by default in [email protected]
(44629b2544c0d478d0c63e0ca0c2733e0c8cd6f5)Housekeeping
carbon-components
to v10.40.0Published by metonym over 3 years ago
Features
TreeView
(d01995e11e803ca9ff54f82e56112849a7071008)Fixes
DataTable
value if falsy (89513fb4cb0296dd83f92e683e9a37afaf964332, #745 contributed by @truongminh)Button
if value is falsy (793ecd8dc2dea2437cfbe052d11dc07c337ac7bb)Documentation
Published by metonym over 3 years ago
Fixes
TreeView
node if active id does not match the selected id (b084350)type="button"
on OverflowMenu
to prevent submit behavior when pressing "Enter" ( ac4dff0)OverflowMenuItem
(af1caf9)OverflowMenuItem
title attribute if using a slot (542200b)NumberInput
on:change event on initialization (9e5adfa)flatpickr
rangePlugin (7777171)Select
(6a7fdd1)DataTableRowId
as any
, fixes (2b9e614)Published by metonym over 3 years ago
Breaking Changes
appendTo
prop in DatePicker
for server-side rendering (SSR) compatibility (https://github.com/IBM/carbon-components-svelte/pull/737/commits/0bfbc9cf8643cbbbc4896cf4e7dbdd07113d4d58)Features
Breakpoint
component to detect the current Carbon grid size based on browser width (https://github.com/IBM/carbon-components-svelte/commit/f31ab25e0a896a5ecfa22f981ad05bc0340833a8)Theme
component to dynamically update the current theme client-side (https://github.com/IBM/carbon-components-svelte/commit/fac78ee4aad272e60b6ebfbdc64fdc2d7ef95471)valueFrom
, valueTo
props for range DatePicker
(https://github.com/IBM/carbon-components-svelte/pull/737/commits/7b9017c9f4dc2a723a1222125ea642ebe1ad5142)multiSelectRef
, fieldRef
, selectionRef
in MultiSelect
(https://github.com/IBM/carbon-components-svelte/pull/738/commits/aa5200cff554f6a35dcdd864083a8ffb3adfb1a3)LocalStorage
(https://github.com/IBM/carbon-components-svelte/pull/738/commits/6c478b819312ba0521fc1dac06cdb3111c40373a)NumberInput
readonly variant (https://github.com/IBM/carbon-components-svelte/pull/738/commits/b8786956e2c285fc9b0c840e3f2327c19fd2c9e1)Fixes
DatePicker
instance to local reference to prevent arrow key locking (https://github.com/IBM/carbon-components-svelte/pull/737/commits/0bfbc9cf8643cbbbc4896cf4e7dbdd07113d4d58)on:change
type signature in DatePicker
(https://github.com/IBM/carbon-components-svelte/pull/737/commits/9353e36921e52647413362203baa02761f153f80)ProgressBar
(https://github.com/IBM/carbon-components-svelte/pull/732/commits/a2b12dc609667c218883aaa7870ee806e3d71580)DataTableSkeleton
(https://github.com/IBM/carbon-components-svelte/commit/19dbad1f76dc433ceef7cf732b73869c3f45cda3)shouldShowBorder
prop in Table
(https://github.com/IBM/carbon-components-svelte/pull/738/commits/69d09507c8dff5c1b0472b13ab87d48a9dc1925e)SvelteComponentTyped
interface (https://github.com/IBM/carbon-components-svelte/commit/18c6f032240e736d39766bcccd30eb2f5f9d838b)Documentation
Housekeeping
carbon-components
to v10.39.0Published by metonym over 3 years ago
Breaking Changes
clipboard-copy
direct dependency; use native Clipboard API instead of clipboard-copy
to copy text in CopyButton
, CodeSnippet
(921c3e121a5cb9e9114f2c631d8d973028497b2d)Features
TreeView
component (6ed4aaa86e163bb51c72a0ad35c61d6276ea2bc9)RecursiveList
component (ae27bedf4c3bc9946a0ac94b831010e877fa834a)Modal
, ComposedModal
via secondaryButtons
(f4a3646cb4d7a0dbed16aaf9cd9eb90b28245180)DataTable
title/description slottable (5fee13b2eb8235eeb24375ca73a64fe312f781bc)expansionBreakpoint
in UI Shell Header
, SideNav
(a62e9c0c3c178cdf96be7502263e3237472a70e8)Modal
, ComposedModal
(85620d7ace0b3ff825f10e28a442c026ab922b2f)Fixes
useStaticWidth
prop in DataTable
(676eedb1a050da806ece713e20cba6e47e3337a2)DataTable
table header if title/description not provided (ba0e9087d5e7f56fcd3260c11de32e1cf3764639)Documentation
Published by metonym over 3 years ago
Fixes
<TextArea readonly={false} />
from being read-only (f9183d343b8c4aa2abb7d9839c3adc56b3255ffb)OveflowMenuItem
if not disabled (776639495f3d0cfa6d31dde38350c57cb07bbeb9)Modal
, ComposedModal
(https://github.com/IBM/carbon-components-svelte/commit/ab04bb756475361a0d81dc6248124f918d518e99, #716 contributed by @dqzx)Published by metonym over 3 years ago
Fixes
all.scss
and the pre-compiled all.css
(#708 contributed by @lamualfa)Published by metonym over 3 years ago
Features
TextInput
(4aceb6c)ComboBox
item (86eff17)Fixes
FileUploaderDropContainer
markup to avoid accessibility error for nested interactive controls (4ae1cab)ErrorFilled16
icon in InlineLoading
for the error status (cd5547d)InlineLoading
(0533a01)StructuredList
(1bdcdd0)span
instead of div
in TooltipDefinition
to avoid potential invalid HTML (dd32a7e)MultiSelect
menu when blurring the last filterable option (2fa069a)MultiSelect
(fefd43d)MultiSelect
(031e2ee)ComboBox
(529b5bd)ComboBox
selection (529b5bd)ComboBox
input text if item is selected (89786a7)SideNav
rail when clicking the hamburger menu (cceb062)ContextMenu
class names (47dd26b)ContextMenu
when left clicking anywhere (1f99115)Documentation
Housekeeping
carbon-components
to v10.38.0Published by metonym over 3 years ago
Features
Fixes
ToolbarSearch
NotificationIcon
in InlineNotification
, ToastNotification
Refactor
TextInput
Documentation
Housekeeping
carbon-components
to version 10.37.0Published by metonym over 3 years ago
Features
StructuredList
SideNav
railHeaderNavItem
labelText
prop slottable (e.g., ...)Fixes
CodeSnippet
ImageLoader
SSR compatible by using a window type check guardSideNavMenuItem
TextArea
StructuredList
Documentation
Housekeeping
carbon-components
to version 10.36.0Published by metonym over 3 years ago
Features
Button
, UnorderedList
, OrderedList
Button
(size="lg"
)ButtonSkeleton
sizesFileUploaderItem
Search
iconNumberInput
input steppers to be hidden (hideSteppers={true}
)icon
prop to TooltipIcon
TooltipIcon
Fixes
Tooltip
screenreader description less verboseDocumentation
Housekeeping
carbon-components
to version 10.35.0Published by metonym over 3 years ago
Features
Search
variantSideNav
iconMenu
, iconClose
)Button
sizeDataTable
sizePasswordInput
Fixes
<strong>
with semantic paragraph element for file uploader labelcode
element with pre
ToolbarSearch
(https://github.com/IBM/carbon-components-svelte/pull/647 contributed by @gregorw)Refactor
Icon
componentDocumentation
Housekeeping
carbon-components
to version 10.34.0Published by metonym over 3 years ago
Features
Link
to support rendering links with icons; refactor OutboundLink
to use Link.icon
propFixes
undefined
to an empty string (https://github.com/IBM/carbon-components-svelte/pull/602, contributed by @alkanna)colspan
to support expandable, selectable rows (https://github.com/IBM/carbon-components-svelte/pull/618, contributed by @mabentley85)ClickableTile
AspectRatio
Documentation
Housekeeping
carbon-components
to version 10.33.0