brunnerh
d5a6b5873b
Modify click events to prevent navigation. ( #946 )
...
Without preventDefault the link will navigate the page instead of opening the dropdown when the tabs are in the compact mode.
Because the parent element also toggles on click, there is an additional stopPropagation to not toggle twice which in a no-op.
2021-12-28 12:59:26 -08:00
Daniel Miedzik
9bbc7698a9
Fix: Tabs dispatch change event on init ( #882 )
...
* fix tabs on change problem
* fix(tabs): dispatch change event in update/change context methods
Co-authored-by: metonym <ericyl.us@gmail.com>
2021-11-18 07:45:47 -08:00
Eric Liu
040e3d3372
Inline carbon icons, remove carbon-icons-svelte
from dependencies ( #904 )
...
* feat(icons): inline carbon icons used by components
* feat(icons): update svelte components to use inlined carbon icons
* breaking(deps): remove carbon-icons-svelte
* chore(deps-dev): install carbon-icons-svelte as a devDependency
2021-11-11 08:54:45 -08:00
Eric Liu
ea6757d020
Add autoWidth prop to Tabs
( #901 )
...
* feat(tabs): support auto width tabs
Closes #899
* docs(tabs): add auto width example
2021-11-10 19:46:20 -08:00
Eric Liu
5fad0cb3c7
Alignment with Carbon version 10.31 ( #571 )
...
* chore(deps-dev): upgrade carbon-components to v10.31.0
* fix(slider): use CSS to hide input if hideTextInput is true
* docs(slider): add hidden text input, invalid, disabled examples
* feat(tabs): support "container" type for TabsSkeleton
* chore(list-box): remove hotfix inline style to center dropdown chevron
* fix(number-input): use add, subtract icons and update markup
* feat(select): add warning state
* docs(select): add invalid state example
* docs(select): add helper text example
* fix(structured-list): add "rowgroup" role to StructuredListBody
* docs: release code snippet max-width
* docs(select): add skeleton hidden label example
* feat(popover): add Popover component
* feat(pagination): dispatch button click events to be consistent with PaginationNav
* fix(multi-select): type clear as a custom event
* docs(radio-button): add disabled buttons example
* chore(tabs): use absolute icon import
* fix(link): remove line breaks within anchor link
* docs(radio-button): adjust section copy verbiage
* chore(deps-dev): upgrade carbon-icons-svelte to v10.27
v10.27 uses the SvelteComponentTyped interface
* docs(accordion): adjust section title verbiage
* test(types): fix warnings from svelte-check
* fix(search): only set autofocus attribute if equals true
* feat(popover): add closeOnOutsideClick prop
* docs: style [data-outline] as relative positioned
* feat(context-menu): add initial ContextMenu
* feat(context-menu): annotate props, generate types
* feat(context-menu): add initial focus logic
* fix(context-menu): correctly tab in/out of nested menus
* chore(context-menu): update types
* fix(context-menu): obtain radio id from node directly
* docs(context-menu): add examples and test
* fix(context-menu): prevent default keydown behavior
2021-03-20 10:39:14 -07:00
Eric Liu
d38e6d8be6
refactor: update/fix JSDoc props
2020-11-04 06:04:25 -08:00
josefaidt
398887a3d3
feat(prettier): add svelteBracketNewLine
2020-09-24 10:50:34 -05:00
Eric Liu
42b8159b1c
chore(prettier): use svelteStrictMode
2020-09-04 16:35:49 -07:00
Eric Liu
121768598c
chore(tabs): pass id to anchor link in Tab
2020-07-30 17:27:29 -07:00
Eric Liu
c06aa92978
chore(tabs): document prop types
2020-07-27 20:13:56 -07:00
Eric Liu
f30755b237
chore: complete first pass of apply jsdoc annotations to component props
2020-07-26 17:42:12 -07:00
Eric Liu
2200b29b92
chore: lift components folder
2020-07-19 09:06:08 -07:00