From 9b6284a1394093d72b2706a54958ca121e59313f Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 5 Sep 2020 09:08:38 -0700 Subject: [PATCH] chore(changelog): 0.10.0 notes --- CHANGELOG.md | 25 +++++++++++++++++++++++++ COMPONENT_INDEX.md | 7 +++++-- package.json | 2 +- types/index.d.ts | 16 +++++++++++++++- 4 files changed, 46 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d2f5893f..7bac3cf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Selectable/expandable `DataTable` +## [0.10.0](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.10.0) - 2020-09-05 + +**Features** + +- UI Shell: add Close/AppSwitcher as default icons for `HeaderAction` component (5f62cde) +- ButtonSet: add `stacked` prop (c8e0a59) +- Link: set `rel` attribute to "noopener noreferrer" if `target` is "_blank" (4b7d254) + +**Fixes** + +- TextInput: add missing `required` prop to input (PR #237), thanks [@kamil-murtaza](https://github.com/kamil-murtaza)) +- StructuredList: change element semantics from `section` to `div` to avoid accessibility error (117dbcf) +- MultiSelect: add `light` variant to text input (6a955b1) +- NumberInput: disable label, helper text if `disabled` is set to `true` (37c7f07) +- Pagination: use singular page range text if `total` is 1 (3d64fb2) + +**Housekeeping** + +- add `.prettierrc` and enable `svelteStrictMode` (42b8159) +- remove documentation of non-existent `small` Button prop (41a533d) +- upgrade TypeScript to version >=4 (e7e67f3) +- bump prettier, prettier-plugin-svelte (322b238) +- bump rollup, rollup plugins (00b9068) +- require node >=12 for development/CI (bf0f11a) + ## [0.9.7](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.9.7) - 2020-08-23 - Fix `InlineNotification` and `ToastNotification` timeout diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index a547b8ac..dbd3c295 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1,6 +1,6 @@ # Component Index -> 143 components exported from carbon-components-svelte 0.9.6 +> 143 components exported from carbon-components-svelte 0.10.0 - Accordion - [AccordionSkeleton](#accordionskeleton) @@ -430,7 +430,9 @@ import { ButtonSet } from "carbon-components-svelte"; ### Props -No exported props. +| Prop name | Type | Default value | +| :-------- | :------------------- | :------------ | +| stacked | boolean | false | ### Slots @@ -4637,6 +4639,7 @@ import { TextInput } from "carbon-components-svelte"; | invalid | boolean | false | | invalidText | string | "" | | ref | null | HTMLInputElement | null | +| required | boolean | false | ### Slots diff --git a/package.json b/package.json index 884fdae5..6d624447 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-components-svelte", - "version": "0.9.7", + "version": "0.10.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 8519b3f7..203e4bc5 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for carbon-components-svelte 0.9.6 +// Type definitions for carbon-components-svelte 0.10.0 // Project: https://github.com/IBM/carbon-components-svelte export class CarbonSvelteComponent { @@ -208,6 +208,14 @@ export class Button extends CarbonSvelteComponent { } export class ButtonSet extends CarbonSvelteComponent { + $$prop_def: { + /** + * Set to `true` to stack the buttons vertically + * @default false + */ + stacked?: boolean; + }; + $$slot_def: { default: {} }; } @@ -4385,6 +4393,12 @@ export class TextInput extends CarbonSvelteComponent { * @default null */ ref?: null | HTMLInputElement; + + /** + * Set to `true` to mark the field as required + * @default false + */ + required?: boolean; }; }