metonym
c7de897b89
fix(overflow-menu): keyboard navigation should skip disabled items ( #1096 )
2022-02-12 15:43:45 -08:00
metonym
16790daaa9
fix(ui-shell): use semantic hr
in HeaderPanelDivider
to render dividers ( #1093 )
2022-02-12 08:07:21 -08:00
brunnerh
05e4c282b0
fix(button): not set aria-pressed
on link buttons ( #1091 )
2022-02-12 06:47:53 -08:00
dependabot[bot]
acf8a26290
build(deps): bump follow-redirects in /examples/webpack ( #1089 )
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.7...v1.14.8 )
---
updated-dependencies:
- dependency-name: follow-redirects
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-11 17:04:49 -08:00
Eric Liu
c2b87d987e
v0.58.1
2022-02-11 16:59:00 -08:00
metonym
2f556cdda3
fix(code-snippet): remove whitespace from pre
tag ( #1088 )
...
Svelte v3.46.4 preserves whitespace inside `pre` tags by default; this removes whitespace from inside the `pre` tag in `CodeSnippet`.
2022-02-11 16:56:46 -08:00
Eric Liu
933cf845c8
v0.58.0
2022-02-11 07:34:06 -08:00
metonym
3b70a35df6
feat(data-table): pass row index, cell index to "cell" slot ( #1086 )
2022-02-11 07:13:55 -08:00
metonym
34affd851a
fix(data-table): batch selection checkbox should be reactive ( #1085 )
2022-02-10 19:51:26 -08:00
metonym
a3c329a2e8
fix(ui-shell): prevent default behavior when pressing Space ( #1084 )
2022-02-10 19:27:59 -08:00
metonym
2148e1c7b6
feat(multi-select): add itemToProp
to customize name, title, labelText values passed to input ( #1074 )
...
Currently, the input `name` for each item uses the same value as `itemToString(item)`.
This adds an `itemToInput` prop to allow the consumer to customize the name/title/labelText values passed to the `Checkbox` input.
The name attribute now defaults to use the `item.id` instead of `item.text`.
2022-02-10 08:32:24 -08:00
metonym
4a197fdb7f
ci: adjust run rules, use cache actions ( #1081 )
...
- adjust run rules to run on any pull request or a push to `master`
- use action to cache install folder to speed up builds
- run `build:api` and `build:lib` in parallel
2022-02-10 08:28:07 -08:00
metonym
63f52b4683
fix(multi-select): non-filterable MultiSelect
should dispatch a blur event ( #1080 )
...
The non-filterable `MultiSelect` is missing a `blur` event.
Implementation-wise, we have to dispatch it and include the event as the `detail`. Otherwise, the filterable variant will dispatch "blur" twice because it has both a button and input.
The filterable `MultiSelect` continues to forward the blur event to the input.
2022-02-10 08:27:09 -08:00
metonym
1939e4328d
fix(ui-shell): fix HeaderNavMenu
accessibility, undefined context ( #1079 )
...
Fixes:
* hotfix: remove toggle accessor from HeaderNavMenu
* hotfix(ui-shell): HeaderNavMenu context is possibly undefined
* fix: apply a11y navigation menubar attributes
2022-02-10 08:11:56 -08:00
metonym
5103e13321
feat(css): upgrade carbon-components
to v10.52.0 ( #1078 )
...
Fixes:
- move `FileUploaderDropContainer` input outside of label to fix a11y error
- prevent inadvertent text selection when clicking through flatpickr months
2022-02-10 06:47:36 -08:00
metonym
18eb1e2649
fix(ui-shell): HeaderNavMenu
should close when pressing Enter ( #1073 )
...
Fixes:
- pressing "Enter" on a `HeaderNavMenuItem` should close the menu
- tab blurring the last item in an open menu should close the menu
- remove "role" to fix a11y warning
2022-02-10 06:46:11 -08:00
metonym
20e61724c1
feat(tooltip-definition): export open prop, dispatch open/close events ( #1057 )
2022-02-09 20:00:38 -08:00
metonym
8b39ccae89
fix(multi-select): MultiSelect should correctly lose focus ( #1077 )
...
Currently, opening a MultiSelect and then clicking an interactive target will cause the MultiSelect to retain focus. This removes the logic that interferes with native blurring behavior.
2022-02-09 19:53:07 -08:00
metonym
989e0f4c65
breaking(text-input): use native bind:value
, dispatch instead of forward change
, input
events ( #1065 )
...
Use the native `bind:value` to fix two-way reactivity. As a result, "type" is read through `$$restProps` because it cannot be dynamic when using `bind:value`.
Extend value type to include `null` for the "number" type. This is similar to how `NumberInput` works; `null` represents "no value."
2022-02-09 19:52:10 -08:00
metonym
30a5f2c201
fix(multi-select): resolve a11y violations ( #1072 )
...
- role="listbox" children require the role="option" attribute
- add a "aria-multiselectable" attribute to the listbox menu
- move "aria-label" attribute from listbox to listbox menu
- listbox field should not have a "combobox" role when expanded (the non-filterable variant serves as a button)
2022-02-09 19:49:30 -08:00
metonym
a5f5550aa0
fix(data-table): headers
should be reactive ( #1075 )
...
If `headers` is dynamically updated, clicking a sortable table header will sort the incorrect column. Instead of randomly generating an id and keeping track of it through context, we can simply use the required key in `headers` as the id.
2022-02-09 19:48:20 -08:00
canerakdas
cbecfd41e2
docs(skeleton-text: remove duplicate "Heading variant" example ( #1070 )
2022-02-07 09:25:50 -08:00
Eric Liu
4c1277d920
v0.57.1
2022-02-01 07:28:17 -08:00
metonym
504cf09dc8
fix(tooltip): type Tooltip
open, close events ( #1058 )
2022-02-01 07:20:43 -08:00
metonym
5358cf66ea
fix(tooltip-definition): button should have type "button" ( #1056 )
...
Fixes #1055
2022-02-01 07:05:20 -08:00
Eric Liu
d1a85915fe
v0.57.0
2022-01-30 19:11:20 -08:00
brunnerh
099efedef1
breaking(number-input): align change
, input
events with native input
behavior ( #1053 )
...
* Closes #1052
* Closes #1050
2022-01-30 09:01:51 -08:00
Gregor Wassmann
a8039a4d1e
feat(modal): support primaryButtonIcon prop ( #1047 )
2022-01-29 09:35:08 -08:00
Eric Liu
f53b5472e5
v0.56.1
2022-01-27 08:01:44 -08:00
metonym
402de56029
fix(number-input): value 0
should not be converted to null
( #1046 )
2022-01-27 08:00:32 -08:00
Eric Liu
6154e8ba05
v0.56.0
2022-01-27 07:31:48 -08:00
metonym
4e3415a4e9
docs: Checkbox, Tabs, NumberInput ( #1045 )
...
* add `Checkbox` reactive example for `bind:checked` (#967 )
* update `Checkbox` reactive example for `bind:group` to demo two-way binding
* simplify `Tabs` reactive example
* add `NumberInput` "No value" example
2022-01-27 07:27:10 -08:00
metonym
9e915cf90a
breaking(number-input): type value
as null | number
( #1044 )
...
Fixes #1039
2022-01-27 06:57:32 -08:00
metonym
3018c2b207
fix(text-area): export readonly prop ( #1043 )
...
Fixes #1009
2022-01-26 19:19:49 -08:00
metonym
048ebc7b81
fix(checkbox): fix two-way binding ( #1042 )
...
Fixes #967
2022-01-26 19:04:32 -08:00
Eric Liu
e37b632fef
build: decouple typegen/docgen from yarn build:lib
( #1038 )
...
* chore(deps-dev): upgrade sveld to v0.13.1
* build: separate sveld into a separate build script
* docs(contributing): update guideline on re-building docs
2022-01-24 14:16:31 -08:00
metonym
fd040b3b66
docs(clickable-tile): fix formatting
2022-01-24 13:17:35 -08:00
Eric Liu
ced7a25880
v0.55.0
2022-01-22 09:16:05 -08:00
brunnerh
25ce57fd5a
Add required
prop to RadioButton
. ( #1035 )
...
Fixes #1034 .
2022-01-22 09:05:41 -08:00
Eric Liu
493568f08d
feat(number-input): forward focus, blur events to input ( #1033 )
2022-01-22 08:58:59 -08:00
Eric Liu
222d5a90e4
fix(number-input): empty input should not be coerced to 0 ( #1032 )
...
Fixes #1031
2022-01-22 08:58:48 -08:00
Eric Liu
4d51250173
Align 10.51 ( #1021 )
...
* chore(deps-dev): upgrade carbon-components to v10.51.0
* fix(slider): input should also be labelled
* refactor(date-picker): remove hotfix logic to prevent disabled icon from being clickable
Ref: https://github.com/carbon-design-system/carbon-components-svelte/pull/860
* feat(progress-step): update icons for current, incomplete steps
2022-01-22 08:02:24 -08:00
brunnerh
201e03757b
Add required
prop to Checkbox. ( #1030 )
...
Fixes #1029 .
2022-01-22 07:43:53 -08:00
dependabot[bot]
e3902fe724
build(deps): bump nanoid from 3.1.30 to 3.2.0 in /examples/webpack ( #1027 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-21 19:06:00 -08:00
dependabot[bot]
e951c9425d
build(deps): bump nanoid from 3.1.30 to 3.2.0 in /docs ( #1022 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-21 19:04:44 -08:00
dependabot[bot]
a238032b58
build(deps): bump nanoid from 3.1.23 to 3.2.0 in /examples/rollup ( #1026 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.23 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-21 19:02:31 -08:00
dependabot[bot]
b31b176c09
build(deps): bump nanoid from 3.1.23 to 3.2.0 in /examples/sapper ( #1024 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.23 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.23...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-21 18:51:55 -08:00
dependabot[bot]
37c54e0a14
build(deps): bump nanoid from 3.1.30 to 3.2.0 in /examples/snowpack ( #1025 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-21 18:43:13 -08:00
dependabot[bot]
8094fd4fef
build(deps): bump nanoid from 3.1.30 to 3.2.0 ( #1023 )
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 3.1.30 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.2.0 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-21 18:31:07 -08:00
Eric Liu
0d78c30b9d
fix(types): include @default
annotations for props that are undefined
by default ( #1020 )
...
* chore(deps-dev): upgrade sveld to v0.12.1
* Run "yarn build:lib"
* Re-run "yarn build:lib"
2022-01-20 19:29:06 -08:00