metonym
ceb7abf2e9
docs: fix formatting, broken link ( #1177 )
2022-03-16 07:33:59 -07:00
metonym
f8aecdbef1
refactor: inline Copy
component ( #1175 )
2022-03-14 08:17:20 -07:00
metonym
ef46f350be
breaking(form): do not prevent default behavior on submit event ( #1170 )
...
* breaking(form): do not prevent default behavior on submit event
* docs(form): add "Prevent default behavior" example
2022-03-13 19:04:10 -07:00
metonym
2657ce71c2
docs: fix formatting, broken link ( #1172 )
...
* chore: remove extra space in description comment
* docs(data-table): fix formatting
* docs(checkbox): fix broken link
* chore(deps-dev): bump deps
* Run "yarn build:docs"
2022-03-13 19:03:15 -07:00
metonym
ba0abe8e34
refactor(search): use native binding for value
prop ( #1173 )
...
* refactor(search): use native binding for value prop
* feat(search): type the value prop as any
2022-03-13 19:02:46 -07:00
metonym
5bf16e42f7
docs: hide deprecated components, add "Disabled items" OverflowMenu example ( #1167 )
2022-03-13 06:14:30 -07:00
metonym
95a1dfa1af
feat(data-table): support non-selectable rows ( #1166 )
...
Closes #1148
2022-03-12 19:36:02 -08:00
metonym
47866b1d51
breaking(header-action): use SlideParams
to type transition
prop ( #1163 )
2022-03-12 14:35:59 -08:00
metonym
cb014219fd
chore(deps-dev): upgrade svelte-check to v2.4.5 ( #1159 )
2022-03-12 13:50:47 -08:00
Dominik G
9215e3b106
feat(multi-select): expose highlightedId
and fix highlighting for filterable variant ( #1153 )
2022-03-12 13:49:10 -08:00
Daniel Power
853942f998
fix(types): correctly type validateFiles
in FileUploaderDropContainer
( #1149 )
2022-03-08 08:40:20 -08:00
brunnerh
5de0d9a357
breaking(breakpoint): add breakpointObserver store ( #1092 )
...
* breaking: re-name event "on:match" to "on:change" in `Breakpoint.svelte`
* feat: add `breakpointObserver` read-only store
* refactor: export breakpoint constants from `breakpoints.js`
2022-03-08 08:38:58 -08:00
metonym
a3d116215d
Align v10.54 ( #1133 )
...
* chore(deps-dev): bump carbon-components to v10.54.0
* feat(progress-bar): add size prop
* docs(progress-bar): add "Small size" example
* docs(progress-bar): add descriptions
* refactor(structured-list): remove monkey patch
* feat(radio-button-group): add hideLegend prop
* docs(radio-button): add "Hidden legend" example
2022-02-26 11:26:31 -08:00
dependabot[bot]
4eca1cc73c
build(deps-dev): bump prismjs from 1.21.0 to 1.27.0 in /docs ( #1131 )
...
Bumps [prismjs](https://github.com/PrismJS/prism ) from 1.21.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases )
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PrismJS/prism/compare/v1.21.0...v1.27.0 )
---
updated-dependencies:
- dependency-name: prismjs
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-02-25 18:14:31 -08:00
metonym
44d848c60d
docs(file-uploader): improve FileUploader
documentation ( #1126 )
...
- add `FileUploader` "Clear files" example
- document `validateFiles` prop for `FileUploaderDropContainer`
- add descriptions for `FileUploaderButton`, `FileUploader` examples
2022-02-21 14:26:02 -08:00
metonym
78072a1c66
Align v10.53 ( #1109 )
...
* chore(deps): upgrade carbon-components to v10.53.0
* feat(text-area): add maxCount prop
* docs(text-area): add maximum character count
* feat(file-uploader): add disabled prop
* docs(file-uploader): add disabled state example
2022-02-21 13:40:57 -08:00
metonym
8d3ac75170
feat(file-uploader-drop-container): rework FileUploaderDropContainer
( #1125 )
...
- convert `FileList` to `File[]` to be consistent with `FileUploader` and `FileUploaderButton`
- add `files` prop for two-way binding
- dispatch instead of forward the `change` event (detail signature: `File[]`)
2022-02-21 13:33:11 -08:00
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