diff --git a/CHANGELOG.md b/CHANGELOG.md index c062aa8d..02ca3c9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Selectable/expandable `DataTable` +## [0.16.0](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.16.0) - 2020-10-12 + +**Features** + +- Pagination: add `pageSizeInputDisabled` prop to hide page size buttons (default is `false`) ([PR #292](https://github.com/IBM/carbon-components-svelte/pull/292)) +- ListBoxMenu: add `ref` prop ([PR #303](https://github.com/IBM/carbon-components-svelte/pull/303)) +- Pre-compiled CSS: upgrade `carbon-components` to version 10.21 + +**Fixes** + +- Link: explicitly define `href` prop to fix TypeScript errors ([PR #301](https://github.com/IBM/carbon-components-svelte/pull/301)) +- RadioButtonGroup: explicitly define `id` prop to fix TypeScript errors ([PR #303](https://github.com/IBM/carbon-components-svelte/pull/303)) +- ComboBox: `light` prop should use the light variant ([PR #303](https://github.com/IBM/carbon-components-svelte/pull/303)) +- ComposedModal: class "bx--body--with-modal-open" should be removed when closing the modal ([PR #306](https://github.com/IBM/carbon-components-svelte/pull/306)) +- Dropdown: remove unused `setContext` import ([PR #308](https://github.com/IBM/carbon-components-svelte/pull/308)) +- `css/all.css`: default theme should be "white," not "g10" ([PR #322](https://github.com/IBM/carbon-components-svelte/pull/322)) +- UI Shell: `HeaderAction` menu should close when clicking in the window, not just the document body ([PR #323](https://github.com/IBM/carbon-components-svelte/pull/323)) + +**Performance** + +- DatePicker: remove default i10n locales import to reduce bundle size by ~42 kB ([PR #316](https://github.com/IBM/carbon-components-svelte/pull/316)) + +**Breaking Changes** + +- DatePicker: default i10n locales are no longer imported +- if using `css/all.css`, set the "theme" attribute on the HTML element to "g10" in order to use the Gray 10 theme + +**Documentation** + +- Redesign component documentation website (Short link: [ibm.biz/carbon-svelte](http://ibm.biz/carbon-svelte)); deployments sponsored by Vercel +- Update development workflow in `CONTRIBUTING.md` +- Typo fixes in `README.md` ([PR #324](https://github.com/IBM/carbon-components-svelte/pull/324), [PR #325](https://github.com/IBM/carbon-components-svelte/pull/325)) + +**Housekeeping** + +- Git hooks: only lint staged files in the pre-commit Git hook ([PR #319](https://github.com/IBM/carbon-components-svelte/pull/319)) + ## [0.15.0](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.15.0) - 2020-10-01 **Features** diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 2b2fe759..52f20a6f 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1,6 +1,6 @@ # Component Index -> 147 components exported from carbon-components-svelte 0.15.0 +> 147 components exported from carbon-components-svelte 0.16.0 - Accordion - [AccordionSkeleton](#accordionskeleton) @@ -2292,9 +2292,10 @@ import { ListBoxMenu } from "carbon-components-svelte"; ### Props -| Prop name | Type | Default value | -| :-------- | :------------------ | :------------ | -| id | string | -- | +| Prop name | Type | Default value | +| :-------- | :-------------------------------------- | :------------ | +| id | string | -- | +| ref | null | HTMLDivElement | null | ### Slots @@ -3327,6 +3328,7 @@ import { RadioButtonGroup } from "carbon-components-svelte"; | disabled | boolean | false | | labelPosition | "right" | "left" | "right" | | orientation | "horizontal" | "vertical" | "horizontal" | +| id | string | -- | ### Slots diff --git a/package.json b/package.json index e96745f0..5773f647 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-components-svelte", - "version": "0.15.0", + "version": "0.16.0", "license": "Apache-2.0", "description": "Svelte implementation of the Carbon Design System", "svelte": "./src/index.js", diff --git a/types/index.d.ts b/types/index.d.ts index 92c4740e..6ecfe905 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for carbon-components-svelte 0.15.0 +// Type definitions for carbon-components-svelte 0.16.0 // Project: https://github.com/IBM/carbon-components-svelte export class CarbonSvelteComponent { @@ -2019,6 +2019,12 @@ export class ListBoxMenu extends CarbonSvelteComponent { * Set an id for the top-level element */ id?: string; + + /** + * Obtain a reference to the input HTML element + * @default null + */ + ref?: null | HTMLDivElement; }; $$slot_def: { default: {} }; @@ -3275,6 +3281,11 @@ export class RadioButtonGroup extends CarbonSvelteComponent { * @default "horizontal" */ orientation?: "horizontal" | "vertical"; + + /** + * Set an id for the container div element + */ + id?: string; }; $$slot_def: { default: {} };