metonym
7586b2a10f
feat(file-uploader-button): support files
prop ( #1120 )
...
Closes #1116
2022-02-21 13:32:05 -08:00
metonym
714f47a635
fix(types): dispatched events without a detail value should be null
( #1124 )
...
Currently, dispatched events without `e.detail` have a type of `any`.
We can be more specific as a `CustomEvent` detail value is `null`.
2022-02-21 09:42:42 -08:00
metonym
2f3cff2942
fix(file-uploader): update clearFiles
accessor description ( #1122 )
...
The `clearFiles` prop description currently reads "Override the default behavior of clearing the array of uploaded files."
This is misleading as `clearFiles` is a component accessor, not a `let` prop.
2022-02-21 09:24:50 -08:00
metonym
7602731b0b
fix(file-uploader): FileUploader
change detail should be File[]
instead of FileList
( #1117 )
...
Fixes #1112
2022-02-21 08:34:03 -08:00
metonym
df4ed9d75a
fix(types): use @component
comments for deprecation notices ( #1111 )
...
The Svelte Language Server allows component-level comments through `<!-- @component ... -->` syntax.
Deprecation notices for components should be moved from the script block to the markup template.
2022-02-19 18:50:25 -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
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
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
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
20e61724c1
feat(tooltip-definition): export open prop, dispatch open/close events ( #1057 )
2022-02-09 20:00:38 -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
canerakdas
cbecfd41e2
docs(skeleton-text: remove duplicate "Heading variant" example ( #1070 )
2022-02-07 09:25:50 -08:00
metonym
504cf09dc8
fix(tooltip): type Tooltip
open, close events ( #1058 )
2022-02-01 07:20:43 -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
metonym
402de56029
fix(number-input): value 0
should not be converted to null
( #1046 )
2022-01-27 08:00:32 -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
metonym
fd040b3b66
docs(clickable-tile): fix formatting
2022-01-24 13:17:35 -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
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]
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
Eric Liu
1f7b5560a8
Type id
as any in ComboBox
, Dropdown
, MultiSelect
( #1019 )
...
Loosen the prop type for `id`, `selectedId` to be `any` instead of a `string`.
2022-01-20 18:50:36 -08:00
kwieszalka-maystreet
5da83ec869
feat(data-table): support paginated data table ( #880 )
...
Closes #702
2022-01-19 07:51:42 -08:00
Eric Liu
52705bae03
docs: add breaking change notice to ComboBox, Dropdown docs ( #1018 )
2022-01-18 19:33:33 -08:00
Koichi Kiyokawa
cde8a79fa8
feat(ComboBox): selectedIndex -> selectedId ( #1016 )
...
* feat(breaking): selectedIndex -> selectedId in ComboBox
* docs: update ComboBox
2022-01-18 06:37:55 -08:00
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
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
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
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
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
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
Eric Liu
3ca0297b5e
docs(modal): add multiple modals example ( #980 )
...
Refs: #975
2022-01-08 09:41:00 -08:00
Eric Liu
d4db64e2d1
docs(radio-tile): add reactive examples ( #979 )
...
Enabled by #971
2022-01-08 09:37:53 -08:00