mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
v0.16.0
This commit is contained in:
parent
b6c805e062
commit
2acbb2ba5d
4 changed files with 56 additions and 6 deletions
37
CHANGELOG.md
37
CHANGELOG.md
|
@ -9,6 +9,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
- Selectable/expandable `DataTable`
|
- 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
|
## [0.15.0](https://github.com/IBM/carbon-components-svelte/releases/tag/v0.15.0) - 2020-10-01
|
||||||
|
|
||||||
**Features**
|
**Features**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Component Index
|
# Component Index
|
||||||
|
|
||||||
> 147 components exported from carbon-components-svelte 0.15.0
|
> 147 components exported from carbon-components-svelte 0.16.0
|
||||||
|
|
||||||
- Accordion
|
- Accordion
|
||||||
- [AccordionSkeleton](#accordionskeleton)
|
- [AccordionSkeleton](#accordionskeleton)
|
||||||
|
@ -2292,9 +2292,10 @@ import { ListBoxMenu } from "carbon-components-svelte";
|
||||||
|
|
||||||
### Props
|
### Props
|
||||||
|
|
||||||
| Prop name | Type | Default value |
|
| Prop name | Type | Default value |
|
||||||
| :-------- | :------------------ | :------------ |
|
| :-------- | :-------------------------------------- | :------------ |
|
||||||
| id | <code>string</code> | -- |
|
| id | <code>string</code> | -- |
|
||||||
|
| ref | <code>null | HTMLDivElement</code> | null |
|
||||||
|
|
||||||
### Slots
|
### Slots
|
||||||
|
|
||||||
|
@ -3327,6 +3328,7 @@ import { RadioButtonGroup } from "carbon-components-svelte";
|
||||||
| disabled | <code>boolean</code> | false |
|
| disabled | <code>boolean</code> | false |
|
||||||
| labelPosition | <code>"right" | "left"</code> | "right" |
|
| labelPosition | <code>"right" | "left"</code> | "right" |
|
||||||
| orientation | <code>"horizontal" | "vertical"</code> | "horizontal" |
|
| orientation | <code>"horizontal" | "vertical"</code> | "horizontal" |
|
||||||
|
| id | <code>string</code> | -- |
|
||||||
|
|
||||||
### Slots
|
### Slots
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "carbon-components-svelte",
|
"name": "carbon-components-svelte",
|
||||||
"version": "0.15.0",
|
"version": "0.16.0",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"description": "Svelte implementation of the Carbon Design System",
|
"description": "Svelte implementation of the Carbon Design System",
|
||||||
"svelte": "./src/index.js",
|
"svelte": "./src/index.js",
|
||||||
|
|
13
types/index.d.ts
vendored
13
types/index.d.ts
vendored
|
@ -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
|
// Project: https://github.com/IBM/carbon-components-svelte
|
||||||
|
|
||||||
export class CarbonSvelteComponent {
|
export class CarbonSvelteComponent {
|
||||||
|
@ -2019,6 +2019,12 @@ export class ListBoxMenu extends CarbonSvelteComponent {
|
||||||
* Set an id for the top-level element
|
* Set an id for the top-level element
|
||||||
*/
|
*/
|
||||||
id?: string;
|
id?: string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Obtain a reference to the input HTML element
|
||||||
|
* @default null
|
||||||
|
*/
|
||||||
|
ref?: null | HTMLDivElement;
|
||||||
};
|
};
|
||||||
|
|
||||||
$$slot_def: { default: {} };
|
$$slot_def: { default: {} };
|
||||||
|
@ -3275,6 +3281,11 @@ export class RadioButtonGroup extends CarbonSvelteComponent {
|
||||||
* @default "horizontal"
|
* @default "horizontal"
|
||||||
*/
|
*/
|
||||||
orientation?: "horizontal" | "vertical";
|
orientation?: "horizontal" | "vertical";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set an id for the container div element
|
||||||
|
*/
|
||||||
|
id?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
$$slot_def: { default: {} };
|
$$slot_def: { default: {} };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue