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
metonym
6fbd8ae6a9
fix(types): use type alias instead of interface for $$restProps
2024-11-09 14:41:28 -08:00
metonym
3167e449fd
fix(types): fix types for on:paste
event
2024-10-25 15:40:59 -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
metonym
1c4ee00142
fix(search): prop types should extend input
attributes ( #1523 )
...
Fixes #1520
2022-10-13 22:04:32 -07:00
metonym
e230db8115
feat: forward paste event to input/textarea elements ( #1332 )
...
* chore(deps-dev): upgrade sveld, svelte-check
* feat: forward paste event to input/textarea elements
* Run "yarn build:docs"
* test: assert paste event
2022-06-02 18:39:49 -07:00
metonym
88d5152343
fix(types): narrow dispatched events without detail to use null
instead of any
( #1295 )
...
* chore(deps-dev): upgrade sveld to v0.15.2
* Run "yarn build:docs"
2022-05-13 09:56:21 -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
metonym
ba58ba8f00
refactor: use icons from carbon-icons-svelte@11
( #1227 )
...
* chore: update ignore rules, remove unused files
* refactor(icons): use icons from carbon-icons-svelte@11
* docs(time-picker): fix default value
* chore: upgrade carbon-icons-svelte to v11
* docs: update examples to use icons from carbon-icons-svelte@11
* docs: update number of icons [ci skip]
2022-04-03 11:57:28 -07:00
metonym
21714d0e3a
breaking: remove deprecated props and components ( #1191 )
2022-03-27 08:21:58 -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
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
Eric Liu
0d78c30b9d
fix(types): include @default
annotations for props that are undefined
by default ( #1020 )
...
* chore(deps-dev): upgrade sveld to v0.12.1
* Run "yarn build:lib"
* Re-run "yarn build:lib"
2022-01-20 19:29:06 -08:00
Eric Liu
7b65a15345
Omit explicit "from carbon-icons-svelte" from icon
prop definitions ( #866 )
...
* fix(types): update description for icon props #865
* docs(component-api): remove hardcoded Carbon Svelte icon description
2021-10-20 13:48:52 -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