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.
* 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>
* chore(deps-dev): upgrade carbon-components to v10.35
* feat(tooltip-icon): add icon prop
This allows consumers to pass a Carbon icon as a prop instead of using the default slot.
* fix(tooltip): make screenreader description less verbose
Ref: b5f40d8fc
* feat(search): allow custom search icon
Allows consumers to render a different Carbon icon instead of the default Search16 icon.
* feat(number-input): add hideSteppers prop
Allows consumers to hide the input stepper buttons.
* feat: support expressive styles for Button, UnorderedList, OrderedList
* feat(button): support large size button
Set size to "lg" to use the large size.
* feat(button-skeleton): support xl, lg sizes
* docs(button): add "lg" size to expressive styles example
* feat(file-uploader-item): support field, small sizes
* feat(tooltip-icon): support disabled state
* 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
* 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(deps-dev): bump devDependencies
* docs: update number of available carbon icons
* feat(notification): distinguish dispatched close event between click/timeout
* fix(notification): prevent class from being overriden by $$restProps
* docs(notification): improve example body copy
* fix(notification): remove notificationType prop
* refactor(notification): resolve svelte file in imports
* fix(notification): prevent class from being overridden by $$restProps
* feat(notification): update TS signature for dispatched close event
* docs: update contributing
* fix(loading): adjust spinner styles
* feat(tag): support custom icon variant
* feat(tile): add optional expand/collapse icon labels to ExpandableTile
* feat(code-snippet): support disabled state for single and multi-line types
* fix(code-snippet): remove impossible class directive
* fix(code-snippet): showMoreLess button size should be "field", not "small"
* fix(password-input): disable visibility button
- set default values for tooltipAlignment, tooltipPosition
* fix(text-input): add missing warning field wrapper class
* feat(button): infer hasIconOnly using $$slots API
- requires Svelte version >=3.25
* docs(button): add danger tertiary, icon-only example
* feat(button): set default values for tooltip alignment, position
* docs: document dynamic theming
* fix(modal): correctly set class props #482
* fix(form): forward submit event in FluidForm #487
* feat(dropdown): support warning state
* feat(multi-select): support warning state
* fix(multi-select): prevent dropdown from opening if disabled
* feat(number-input): support warning state
* chore(deps-dev): upgrade devDependencies
* docs: bump @carbon/themes, carbon-components
* refactor(data-table): co-locate DataTableSkeleton with DataTable
* docs: update number of pictograms
* fix(password-input): add missing "bx--btn" class to visibility toggle
* docs: increase z-index for component preview
* refactor(search): resolve svelte file paths
* docs(Search): add reactive example
* refactor(tag): use class name directive for tag types, resolve svelte icon path
* chore(button-skeleton): deprecate small prop
* fix(breadcrumb-item): type default slot
* refactor(breadcrumb-skeleton): omit unused index
* refactor(aspect-ratio): use class name directive
* refactor(accordion): use the class name directive, resolve svelte icon paths
* refactor(code-snippet): use class name directive, resolve svelte icon paths
* fix(code-snippet-skeleton): CodeSnippetSkeleton can only be single or multi
* refactor(content-switcher): use class name directive
* docs(content-switcher): add reactive example
* docs(content-switcher): remove unused import
* docs(toggle): add reactive example
* refactor(tooltip-definition): use class name directive
* refactor(tooltip-icon): use class name directive
* refactor(tooltip): resolve svelte icon import
* fix(select): type dispatched change event
* refactor(select): resolve svelte icon import
* feat(select-item): spread rest props, avoid $ variable name
* fix(pagination-nav): type dispatched events
* refactor(pagination): resolve svelte imports
* fix(pagination): type dispatched update event
* fix(overflow-menu): type dispatched close event
* fix(number-input): type dispatched change event
* refactor(modal): use class name directive, resolve svelte imports
* refactor(inline-loading): use class name directive, resolve svelte imports
* refactor(composed-modal): resolve svelte icon imports
* refactor(combo-box): resolve svelte imports
* fix(fluid-form): rest props should not override Form class
* refactor(progress-step): resolve svelte icon imports