Koichi Kiyokawa
e11a893bee
feat(Dropdown): selectedIndex -> selectedId ( #1004 )
...
* feat(breaking): selectedIndex -> selectedId in Dropdown
* feat: omit `selectedIndex` from the `select` event
2022-01-18 06:37:32 -08:00
Eric Liu
37f10ad1a2
chore(changelog): fix formatting
2022-01-17 15:14:47 -08:00
Eric Liu
c02b84edb2
v0.52.0
2022-01-17 14:12:36 -08:00
Eric Liu
b13bb8e09f
fix(tooltip): pressing "Escape" should break out of trap focus ( #1015 )
...
Fixes #924
2022-01-17 13:40:10 -08:00
Eric Liu
a60bc73fea
fix(combo-box): name should be passed to input ( #1014 )
...
Fixes #797
2022-01-17 13:07:42 -08:00
Alexis Reigel
9b32fe90f5
Emit Checkbox
change event after modifying internal state ( #1013 )
...
The checkbox's internal state doesn't match the visual checked /
unchecked state. The behaviour is visible when using 1-way binding on
the checkbox and using the on:change event. The internal state is always
the opposite of the visual state.
2022-01-17 12:50:08 -08:00
Eric Liu
58de79d66b
docs(radio-button): simplify reactive example ( #1012 )
...
* docs(radio-button): simplify reactive radio button example
* docs(radio-button): rename to "Reactive example"
2022-01-16 15:06:29 -08:00
Eric Liu
e5f77aa614
docs(select): add reactive example ( #1011 )
2022-01-16 14:53:22 -08:00
Eric Liu
653a601f9b
Revert "Refactor prop types to omit redundant null
for null | HTMLElement
types" ( #1008 )
...
#996
2022-01-14 11:29:37 -10:00
Eric Liu
49a94b0ee4
fix(modal): shouldSubmitOnEnter should also dispatch "click:button--primary" ( #1007 )
...
* fix(modal): shouldSubmitOnEnter should also dispatch "click:button--primary"
Fixes #1005
* yarn build:lib
2022-01-14 08:51:48 -10:00
metonym
84d6778036
docs: add pnpm install command for carbon-preprocess-svelte
2022-01-14 06:53:22 -10:00
Eric Liu
32edfa59dd
Make Toggle
labels slottable ( #1002 )
...
* feat(toggle): support slottable labels
* yarn build:lib
* docs(toggle): add "Slottable labels" example
2022-01-12 16:43:27 -10:00
Eric Liu
37f19d2171
Add option to not re-focus ComboBox
when invoking clear()
( #1000 )
...
* feat(combo-box): add option to clear accessor to not re-focus input
Closes #994
* yarn build:lib
* test(combo-box): validate clear accessor params
* docs(combo-box): add clear without focus to "Clear selection" example
2022-01-12 16:12:43 -10:00
Eric Liu
d4dd33e28c
Update docs ( #1001 )
...
* docs(tree-view): avoid redundant copy
* docs(search): "clear" is dispatched when pressing "Escape"
* docs(search): refactor "Expandable variant" to demonstrate reactivity
2022-01-12 16:12:14 -10:00
dependabot[bot]
1a470cb331
build(deps): bump follow-redirects in /examples/webpack ( #999 )
...
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects ) from 1.14.6 to 1.14.7.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases )
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.14.6...v1.14.7 )
---
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-01-12 13:49:49 -10:00
metonym
e6f905228f
v0.51.3
2022-01-12 13:44:50 -10:00
Eric Liu
6de73f86fb
Refactor prop types to omit redundant null
for null | HTMLElement
types ( #998 )
...
* refactor: omit redundant `null` prop type for HTMLElements
* yarn build:lib
* test: assert updated element prop types
2022-01-12 13:36:47 -10:00
István Pató
d31e529ca9
fix(ComboBox): programmatically set selected index ( #995 )
...
* fix(ComboBox): programmatically set selected index
* refactor(ComboBox): renaming example to Reactive example
2022-01-12 13:36:37 -10:00
metonym
8936b9b5fa
chore: re-generate api docs
2022-01-10 13:58:38 -10:00
metonym
6a6713d068
v0.51.2
2022-01-10 13:41:02 -10:00
Eric Liu
f6eb958732
fix(combo-box): reset values when manually clearing input field ( #992 )
2022-01-10 13:05:32 -10:00
István Pató
a2a5159a59
fix(combobox): filtered ComboBox handling with keyboard ( #926 )
...
* fix(combobox): filtered ComboBox handling with keyboard
* fix: dispatching filteredItems
* fix: default value settings (init) on inputValue
* fix: multiple event dispatch, and item selection bug
* fix(ComboBox): programmatically setting selectedIndex has no effect
* fix(ComboBox): selectedIndex prog. setting on filtered items
* fix(ComboBox): removed unnecessary blur code fragment, fix mouse selection after keyboard editing
2022-01-10 12:45:37 -10:00
metonym
483eff6c9b
docs: prefer <strong> over <code>
2022-01-10 12:32:01 -10:00
metonym
6731f944ab
docs: do not use backticks in inline notifications
2022-01-10 12:24:11 -10:00
Eric Liu
01a548fee0
Document DatePicker
usage with a Rollup set-up ( #990 )
...
* chore(example): add inlineDynamicImports: true
* docs(date-picker): add note for using DatePicker with Rollup
Closes #986
2022-01-10 12:03:14 -10:00
Eric Liu
502f9379fa
Fix a11y warnings emitted by Svelte v3.45 ( #989 )
...
* chore(deps-dev): bump svelte to version 3.45
* fix: resolve a11y violations
Fixes #988
2022-01-10 11:57:52 -10:00
Eric Liu
e4a4f136fa
chore(examples): bump deps
2022-01-08 10:00:33 -08:00
dependabot[bot]
93571eb5b7
build(deps-dev): bump postcss from 8.2.4 to 8.2.13 in /docs ( #984 )
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.2.4 to 8.2.13.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.2.4...8.2.13 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-08 09:48:35 -08:00
dependabot[bot]
5aeba4567b
build(deps): bump lodash from 4.17.20 to 4.17.21 in /docs ( #983 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
---
updated-dependencies:
- dependency-name: lodash
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-08 09:47:53 -08:00
dependabot[bot]
74785feddf
build(deps): bump lodash from 4.17.20 to 4.17.21 ( #982 )
...
Bumps [lodash](https://github.com/lodash/lodash ) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases )
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21 )
---
updated-dependencies:
- dependency-name: lodash
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-08 09:47:45 -08:00
dependabot[bot]
9494bb9892
build(deps-dev): bump postcss from 8.2.4 to 8.2.13 ( #981 )
...
Bumps [postcss](https://github.com/postcss/postcss ) from 8.2.4 to 8.2.13.
- [Release notes](https://github.com/postcss/postcss/releases )
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/postcss/postcss/compare/8.2.4...8.2.13 )
---
updated-dependencies:
- dependency-name: postcss
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-08 09:47:36 -08:00
Eric Liu
3ca0297b5e
docs(modal): add multiple modals example ( #980 )
...
Refs: #975
2022-01-08 09:41:00 -08:00
Eric Liu
75dcf24ae5
ci: only trigger workflow on pull requests
2022-01-08 09:40:31 -08:00
Eric Liu
d4db64e2d1
docs(radio-tile): add reactive examples ( #979 )
...
Enabled by #971
2022-01-08 09:37:53 -08:00
brunnerh
e8be9280c7
Update TileGroup on programmatic selection change. ( #971 )
...
Only fire `select` event for user interaction (from RadioTile).
Uses `set` function instead of `$` to prevent cyclic dependency error.
2022-01-08 09:24:33 -08:00
metonym
31a11e6800
v0.51.1
2022-01-03 11:06:53 -08:00
brunnerh
6458c97c1a
Add required
prop to Select. ( #968 )
...
Upgrade sveld to set paths correctly on Windows.
Make Prettier script compatible with Windows and run it.
2022-01-03 10:46:12 -08:00
Eric Liu
26db657868
fix(css): set global theme variable first ( #969 )
...
Fixes #966
2022-01-03 10:43:14 -08:00
Eric Liu
f8b69d23c4
chore(prettier): remove deprecated svelteBracketNewLine option [ci skip]
2022-01-01 11:05:19 -08:00
Eric Liu
dce2dda72a
Update docs ( #965 )
...
* chore(docs): run "npx browserslist@latest --update-db"
* chore(docs): upgrade carbon-icons-svelte to latest
* refactor(docs): re-use styles from css/all.scss
* chore(docs): add pnpm install command
* chore(docs): upgrade prettier, prettier-plugin-svelte
* docs(date-picker): improve "DatePicker in a modal" example
* fix(docs): restore "scripts-markup-styles" svelte sort order
* chore(docs): upgrade mdsvex
* chore(deps-dev): bump prettier, prettier-plugin-svelte, svelte
* refactor(docs): use svelte:fragment where applicable
* fix(docs): include missing "options" in svelteSortOrder prettier config
2022-01-01 10:58:42 -08:00
brunnerh
1bc04c5b42
Switch from svite to vite + vite-plugin-svelte. ( #962 )
...
Use cross-env to set environment variables platform independently in scripts.
2021-12-31 10:11:48 -08:00
Eric Liu
406d8dca25
v0.51.0
2021-12-30 14:24:42 -08:00
Gregor Wassmann
f0cf4e7ba5
Enhance Checkbox to use bind:group ( #947 )
...
* Enhance Checkbox to use bind:group
* Use custom logic
* Move multiple checkboxes above skeleton
* Incorprate PR feedback
* Any instead of string
2021-12-30 13:31:33 -08:00
Eric Liu
8443b2d7c1
v0.50.5
2021-12-30 13:15:21 -08:00
Eric Liu
66150609aa
chore: rebuild docs/types
2021-12-30 13:14:22 -08:00
Eric Liu
997eeb7b48
Fix filterable MultiSelect keydown behavior ( #961 )
...
* fix(multi-select): blur input when tabbing away
Fixes #938
* fix(multi-select): close a filterable menu on "Escape"
* fix(multi-select): open filterable menu on [Space]
2021-12-30 13:00:21 -08:00
Eric Liu
f955b09c09
fix(date-picker): input should not lose focus when pressing "Enter" ( #958 )
...
Fixes #876
2021-12-30 13:00:11 -08:00
Eric Liu
9698625b15
fix(toolbar-search): input should expand if value is programmatically set ( #956 )
...
Fixes #673
2021-12-30 13:00:03 -08:00
Eric Liu
001d62c001
v0.50.4
2021-12-30 07:21:51 -08:00
Eric Liu
a522a55596
fix(date-picker): stop "Escape" from closing modal ( #955 )
...
Fixes #952
2021-12-29 06:02:55 -08:00