Eric Liu
6bf72d4602
fix(types): loosen icon
prop type to any
( #2095 )
...
Fixes https://github.com/carbon-design-system/carbon-icons-svelte/issues/207
`carbon-icons-svelte@13` and `carbon-pictograms-svelte@13` now
only support TypeScript for Svelte 4/5.
The new `Component` type is incompatible with the `icon` prop in
`carbon-components-svelte`, causing a type error with Svelte 5, as
`typeof SvelteComponent` doesn't match the new `Component` type.
Since `Component` isn't available in Svelte 3/4, this PR changes
the `icon` prop type to `any` for compatibility across Svelte 3, 4, and 5.
2025-02-02 19:49:53 -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
82905ac696
feat(treeview)!: rename children
prop to nodes
for Svelte 5 compatibility
2024-11-09 14:53:02 -08:00
metonym
6fbd8ae6a9
fix(types): use type alias instead of interface for $$restProps
2024-11-09 14:41:28 -08: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
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
metonym
ec867c46ba
fix(tree-view)!: remove expanded
property from TreeNode
interface ( #1631 )
...
* fix(tree-view)!: remove `expanded` property from `TreeNode`
* fix(tree-view-node-list)!: remove unused `expanded` prop
* docs(tree-view): remove `expanded` as a property
#1630
2023-01-17 20:55:46 -05: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
DetachHead
21d841feeb
fix(tree-view): make TreeView
children prop type work recursively ( #1566 )
2022-12-07 19:54:14 -08:00
metonym
260bf4e040
breaking(types): type arrays as read-only ( #1335 )
...
Closes #1259
* breaking(types): type arrays as read-only
* Run "yarn build:docs"
* test: assert read-only arrays
2022-06-05 13:25:43 -07:00
metonym
ea38cd2568
feat(types): support sveltekit:prefetch
, sveltekit:noscroll
attributes in type definitions ( #1234 )
...
* chore(deps-dev): upgrade sveld to 0.14.0
* Run "yarn build:docs"
2022-04-09 14:13:56 -07:00
Eric Liu
3203e7a61f
Upgrade sveld to v0.10 ( #856 )
...
* chore(deps-dev): upgrade sveld to v0.10.2
* feat(types): regenerate types using sveld@0.10.2
* fix(types): update @extends to use .svelte extension
2021-10-16 12:34:29 -07:00
Eric Liu
b21600c9d6
feat(types): loosen icon
prop type to allow any Svelte component #806 ( #853 )
...
* feat(types): loosen type for Carbon icons #806
* Add closeIcon option and remove stopPropagation on:click in HeaderAction (#840 )
* Remove stopPropagation on:click
Remove stopPropagation on:click helps when you have more then one acction to switch between actions tabs
* fix bug for default icon
* add closeIcon attribute to HeaderAction
* feat(types): loosen type for Carbon icons #806
* chore: update TreeView, HeaderAction icon types
Co-authored-by: Daniel Miedzik <daniel.miedzik@gmail.com>
2021-10-15 16:40:23 -07:00
Eric Liu
c4413636a4
Programmatically expand/collapse TreeView nodes ( #850 )
...
* feat(tree-view): add accessors to programmatically expand/collapse nodes
* feat(tree-view): update docs/types
* test(tree-view): test updated TreeView accessors
* docs(tree-view): document TreeView accessors
2021-10-13 08:54:37 -07:00
Eric Liu
d01995e11e
feat(tree-view): add expandedIds #750 ( #751 )
2021-07-15 07:49:25 -07:00
Eric Liu
6ed4aaa86e
TreeView ( #725 )
...
* feat(tree-view): add TreeView
* fix(tree-view): select initial active node, correct typedefs
* docs(tree-view): update examples
* chore(tree-view): add test for types
* docs(tree-view): rename example
* docs(tree-view): improve docs
* docs(tree-view): refine examples
* docs: fix invalid syntax
* chore: rebuild component index/api
* docs(layout): increase height of sidenav menu [ci skip]
2021-07-05 09:11:15 -07:00