Eric Liu
5522c5b0b2
test(select): add unit tests ( #2109 )
2025-03-06 18:32:22 -08:00
Eric Liu
b15bf65f88
test(code-snippet): add unit tests
2025-03-02 14:41:57 -08:00
Eric Liu
936a681194
test(tooltip): add unit tests
2025-03-02 14:41:57 -08:00
Eric Liu
ca4a12164d
test(checkbox): add unit tests
2025-03-02 14:41:57 -08:00
Eric Liu
1ba777ade8
test(breakpoint): add unit tests
2025-03-02 14:41:57 -08:00
Eric Liu
67df81eac9
test(content-switcher): add unit tests
2025-03-02 14:41:57 -08:00
Eric Liu
63fdb75664
test(breadcrumb): add unit tests
2025-03-02 14:41:57 -08:00
Eric Liu
306e09961f
test(overflow-menu): add unit tests
2025-01-30 08:56:52 -08:00
Eric Liu
dd6cbac3ee
fix(data-table): prefix internal ID for radio button, checkbox ( #2082 )
...
Fixes #2081
2025-01-19 17:38:25 -08:00
Eric Liu
f3a8d9972c
test: add unit tests for AspectRatio
, Tag
2024-12-29 13:49:29 -08:00
Eric Liu
cee676331a
test(accordion): add unit tests ( #2079 )
2024-12-29 12:51:06 -08:00
Eric Liu
48afd18e5e
feat: add toHierarchy
utility for TreeView
, RecursiveList
( #2072 )
...
Co-authored-by: Bram <bramhavers@gmail.com>
2024-12-09 12:22:36 -08:00
Eric Liu
f1a27ec855
test(tree-view): coverage for expandAll
and expandNodes
( #2063 )
2024-12-08 11:09:23 -08:00
Paweł Malinowski
e165fa3a87
test(multi-select): add test suite
2024-11-30 10:38:33 -08:00
Eric Liu
8b477b12f9
test: scaffold component testing with Vitest
2024-11-23 13:36:31 -08:00
Eric Liu
8e996dc683
chore: format files with Prettier 3
2024-11-11 21:35:48 -08:00
Eric Liu
dd43224119
feat(data-table): support generics ( #1954 )
...
Co-authored-by: K.Kiyokawa <koichi20110068@gmail.com>
Co-authored-by: brunnerh <brunnerh@users.noreply.github.com>
2024-11-11 21:10:45 -08:00
Eric Liu
82905ac696
feat(treeview)!: rename children
prop to nodes
for Svelte 5 compatibility
2024-11-09 14:53:02 -08:00
Eric Liu
242e2fcbdf
feat(recursive-list): rename children
prop to nodes
for Svelte 5 compatibility
2024-11-09 14:50:44 -08:00
Eric Liu
f25a23dd26
test: fix type errors
2024-11-09 10:07:46 -08:00
Eric Liu
f69b2f15b5
test: use carbon-components-svelte
for type imports
2024-11-09 10:07:46 -08:00
Eric Liu
61eeb37a74
docs: replace yarn
with npm
as default
2024-11-03 14:11:57 -08:00
Eric Liu
67673d5161
docs: drop -D flag from install commands
2024-11-03 14:11:57 -08:00
Eric Liu
0831e87135
fix(combo-box): fix types for on:clear
( #2020 )
2024-10-25 15:36:43 -07:00
Eytan
6140c3c5a9
fix(multi-select): fix filterItem
return type ( #1972 )
2024-08-08 12:34:58 -07:00
spburtsev
d8bc65163e
feat(ui-shell): support button tooltip in HeaderGlobalAction
( #1894 )
...
Closes #1893
2024-03-07 20:37:58 -08:00
mmamedel
90dbd1562b
fix(slider): dispatch on:input
event ( #1906 )
...
Fixes #1643
The dispatched `on:change` event in `Slider` only fires when the slider thumb is released. `on:input` fires when actively dragging the thumb, and should fire on every increment (e.g., 1, 2, 3).
2024-02-10 20:44:39 -08:00
metonym
6590457574
fix(types): improve e.detail
type for dispatched events ( #1907 )
...
* fix(types): improve `e.detail` type for dispatched events
* Run "yarn build:docs"
* test: assert new types
2024-02-01 10:56:34 -05:00
metonym
1ad4e3d385
feat(tree-view): add showNode
accessor ( #1844 )
...
Closes #1377
2023-11-12 14:25:15 -08:00
metonym
6a55fef62e
feat(tree-view): make node
slottable ( #1843 )
...
Closes #1660
2023-11-12 14:15:28 -08:00
Eric Liu
a9460e944d
fix(select-item): export class
and style
props ( #1840 )
...
Closes #1839
2023-11-07 18:58:45 -08:00
Eric Liu
06d81ddbff
fix(radio-button-group): strongly type dispatched change/select events ( #1819 )
2023-10-03 11:23:17 -07:00
Eric Liu
836b360b9b
fix(tile-group): add name
and required
props ( #1818 )
2023-10-03 11:20:16 -07:00
Eric Liu
51c281de4a
feat(file-uploader): add size
prop to FileUploaderButton
( #1786 )
2023-07-24 06:33:53 -07:00
Eric Liu
a7443c2dca
fix(types): correctly type kind
prop in FileUploader
, FileUploaderButton
( #1781 )
2023-07-23 12:42:33 -07:00
Eric Liu
2f026f792a
feat(typescript)!: support svelte 4 ( #1773 )
...
Closes #1753
The minimum Svelte version required for TypeScript users is now 3.55.
2023-07-19 09:44:56 -07:00
Eric Liu
7fdc2ef7f0
fix(types): allow data-*
attributes for props forwarded to HTML elements ( #1741 )
...
* chore(deps-dev): upgrade `sveld` to v0.18.1
* Run "yarn build:docs"
* test: assert that `data-*` attributes are valid
2023-07-08 16:41:44 -07:00
Eric Liu
7381a03951
chore(deps-dev): upgrade svelte-check
to version 3 ( #1739 )
...
* chore(deps-dev): upgrade svelte-check, @tsconfig/svelte
* chore(types): fix type error in `TreeView`
* chore: adjust `test:types` command to ignore folders
2023-07-04 14:00:24 -07:00
Jonathan Quintin
7ddbf17cbb
feat(progress-bar): add status
prop ( #1560 )
...
* ProgressBar status feature added
* ProgressBar: Removed the css variables and use carbon-css instead.
The way of assigning the ProgressBar value has change. It is now a style
variable and scale-x is calculated in the css. This way prevent the
override of carbon css.
* Removed an unessacery span.
* Removed an unnecessary span.
* Added the status for the ProgressBarUx
* Remove `style css` and update docs.
* - Fixed the `capped` variable for more readability
- Updated docs `label` and `helperText`
- Updated docs and css
* fix: finished/error states cannot be indeterminate
* Run "yarn build:css"
* Re-run "yarn build:docs"
* test(progress-bar): assert `status` prop
* chore: add aria-busy and set valuenow to 0 when not active
---------
Co-authored-by: Eric Liu <ericyl.us@gmail.com>
Co-authored-by: Enrico Sacchetti <enrico@theetrain.ca>
2023-02-19 12:34:41 -05:00
metonym
6450e8b0b1
fix(types): add missing $$restProps
for Checkbox
, Filename
, FluidForm
( #1655 )
...
* fix(types): add missing `$$restProps` for `Checkbox`, `Filename`, `FluidForm`
* Run "yarn build:docs"
* test: assert `$$restProps` for `Checkbox`, `Form`
2023-02-11 13:50:01 -05:00
Enrico Sacchetti
9198ed5474
feat!: dispatch "change" event in Pagination
, rename "change" to "update" in Select
( #1497 )
...
Closes #1491
* feat(pagination): dispatch "change" event when interacting with previous/next buttons, page/page size dropdowns
* breaking(select): rename dispatched "change" event to "update"
* breaking(select): forward `change` event to `Select`
2022-12-13 10:22:17 -08:00
Jonathan Quintin
e6f5766e46
fix(number-input): support floating point values ( #1555 )
...
Fixes #233 , fixes #486 , fixes #1554
2022-12-07 20:06:29 -08:00
metonym
198e0da4c5
fix(tree-view): loosen TreeNode
text property type to any ( #1576 )
...
* fix(tree-view): loosen `TreeNode` text property type to any
* Run "yarn build:docs"
* test(tree-view): assert updated property type value
2022-12-07 20:00:20 -08:00
metonym
1c4ee00142
fix(search): prop types should extend input
attributes ( #1523 )
...
Fixes #1520
2022-10-13 22:04:32 -07:00
metonym
dbe33d5cbb
feat(toolbar-search): add filteredRowIds
prop to support pagination ( #1454 )
...
Closes #1393
* feat(toolbar-search): add `filteredRowIds` prop
* Run "yarn build:docs"
* test(data-table): assert `filteredRowIds` prop
* docs(data-table): add pagination to default filterable examples
2022-08-18 06:59:14 -07:00
metonym
8fea168ffd
feat(toast-notification): add fullWidth
prop ( #1444 )
...
* feat(toast-notification): add `fullWidth` prop
* Run "yarn build:docs"
* test(toast-notification): assert `fullWidth` prop
* docs(toast-notification): add "Full width" example
2022-08-14 14:56:02 -07:00
metonym
7fe9b39436
fix(number-input): forward keydown, keyup events ( #1424 )
...
Fixes #1421
`NumberInput` should forward the keydown and keyup events like other input components.
2022-08-05 04:50:40 -07:00
metonym
f4d12b805a
fix(toggle): add missing hideLabel
prop ( #1414 )
...
* fix(toggle): add missing hideLabel prop
* Run "yarn build:docs"
* test(toggle): assert hideLabel prop
* docs(toggle): add "Hidden label text" example
2022-07-26 07:12:57 -07:00
metonym
1ccdf64504
feat(slider): add fullWidth
prop ( #1354 )
...
The `bx--slider` class in the `Slider` component has max-width of `40rem`. Because `$$restProps` is spread to the top-level `div` element in `Slider`, the only way to override the style is to do so globally:
```css
:global(.bx--slider-container) {
width: 100%;
}
:global(.bx--slider) {
max-width: none;
}
```
This adds a `fullWidth` prop that sets a full width style using inline style attributes.
2022-06-18 12:47:10 -07:00
metonym
78d3f1328a
feat(select): support selected
prop number type ( #1355 )
...
* feat(select): support number type
* Run "yarn build:docs"
* refactor(pagination): do not coerce `pageSize`, `page` to be numbers
* test(select): assert selected prop number type
2022-06-18 11:09:41 -07:00