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.
* 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]
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.
* 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>
* 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
* chore(deps-dev): upgrade carbon-components to v10.36.0
* feat(structured-list): add condensed, flush props
* fix(structured-list): deprecate the border prop
* fix(code-snippet): set min/max height for multi-line code snippet #656Fixes#656
* fix(image-loader): make SSR compatible using a window type check guard
* docs(tag): add separate disabled example for filterable/interactive tags
* docs: update number of supported chart types
* feat(side-nav): support rail variant
* feat(ui-shell): add isSelected prop to HeaderNavItem
* fix(ui-shell): default isSelected to false in SideNavMenuItem
* fix(text-area): forward missing keydown event #665Fixes#665
* feat: forward keyup event to components with inputs
* feat(checkbox): make labelText slottable #563Closes#563
* feat: make labelText slottable
Related #563
* docs(component-api): account for undefined type
* docs(ui-shell): link to correct rail source
* fix(ui-shell): default isSelected in HeaderNavItem to false
* feat(theme): add g80 theme
* docs(data-table): use link with icon variant
* feat(search): support expandable variant
* fix(file-uploaded): use semantic p element instead of strong
* feat(side-nav): dispatch open, close, click:overlay events
* refactor(ui-shell): remove usage of deprecated Icon component
* feat(ui-shell): allow custom hamburger menu icons
* feat(button): support xl size
* fix(code-snippet): wrap code element with pre
* refactor(button): use button specific tooltip class for icon-only variant
* feat(password-input): support warning, inline props
* feat(data-table): support medium size
* fix(context-menu): only prevent default keydown behavior if menu is open
* docs(notification): update copy
* docs(select): update item groups example to use hidden default option
* docs: increase max-height to render UIShell, UnorderedList items
* fix(ui-shell): remove iconDescription prop from HeaderNavMenu #566Fixes#566
* feat(toolbar): forward "clear" event in ToolbarSearch
* docs(search): add on:clear example
* fix(ui-shell): set aria-hidden in SideNav
Ref c2b4f1f00
* chore(deps-dev): upgrade carbon-components to v10.30.0
* fix(text-input): use bx--text-input class for TextInputSkeleton
* fix(radio-button): only render span if labelText is truthy
* docs(password-input): add custom tooltip example
* feat(button): add isSelected prop for icon-only, ghost buttons
* feat(radio-button): add legendText prop to RadioButtonGroup
* docs(tag): add filterable (disabled) variant
* feat(tag): add interactive prop
* chore(number-input): deprecate the mobile variant
Mobile variant styles will no longer work.
* feat(button): set aria-pressed attribute if icon-only, ghost button is selected
* fix(multi-select): type dispatched select event
* fix(button): remove redundant "button" role
* feat(icon): deprecate Icon, IconSkeleton
* feat(ui-shell): make SideNavMenuItem text slottable
* fix(list-box): update styles for ListBoxSelection
* fix(list-box): temporarily apply override styles to ListBoxMenuIcon for chevron
* fix(tag): set disabled prop on interactive tag
* docs(button): extract selected, icon-only button example
* feat(tooltip): elevate z-index of tooltip when open
* feat: forward restProps to input element
* fix(types): fix TimePicker test to pass svelte-check
* feat: add ImageLoader component
* test: add ImageLoader
* feat: add LocalStorage component
* test(local-storage): fix invalid file
* chore(docs): use green tag type
* chore: patch prettier-plugin-svelte
* docs(tag): add filterable small tag example
* feat(ui-shell): add SideNavDivider
* feat(combo-box): support warning state
* docs(combo-box): add invalid state example
* fix(progress-step): add title to warning icon
* docs(progress-indicator): add invalid step example
* docs(progress-indicator): add disabled steps example
* feat(truncate): add text truncation component and action
* docs(radio-tile): fix light variant example
* fix(side-effects): add pre-compiled CSS to library side effects
* refactor(css): use shorthand scss imports, add comments
* refactor(truncate): rename "direction" prop to "clamp"
* chore(deps-dev): bump carbon-components to v10.29.0
* feat(combo-box): add direction prop
* feat(dropdown): add direction prop
* feat(multi-select): add direction prop
* feat(ui-shell): refactor UI Shell search component
* fix(ui-shell): dispatched event is "select", not "search"
* test(header-search): validate HeaderSearch types
* fix(header-search): selecting a result should reset the search
* feat(header-search): deefault selectedResultIndex should be 0
Reset selectedResultIndex, value after dispatching.
* docs(header-search): demo basic filtering
* chore: rebuild types, docs
* feat(header-search): pass index as a slot prop