Eric Liu
8e996dc683
chore: format files with Prettier 3
2024-11-11 21:35:48 -08:00
metonym
8bffc17d65
fix(link)!: do not render p
for disabled link
...
Closes #1924
Svelte 5 will not compile if `div` is nested inside `p` element. Refactor Link to render an `a` instead of `p` when disabled.
2024-03-06 22:49:27 -05: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
b015d76f15
chore(a11y): ignore svelte@4
a11y warnings ( #1769 )
2023-07-13 10:50:51 -07:00
metonym
35f4a5cb84
refactor(link): make a
precede p
element for restProps ( #1237 )
2022-04-09 14:17:36 -07:00
metonym
45c272642f
fix(link): $$restProps
should extend p
, a
HTML attributes ( #1233 )
...
* fix(link): restProps should extend `p` or `a` tag attributes
* Run "yarn build:docs"
* test(link): assert anchor link rest attributes
2022-04-09 11:24:25 -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
e23b121143
feat: make icons slottable ( #1186 )
2022-03-19 11:37:20 -07: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
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
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
6db4112b40
Fix a11y-mouse-events warning, update docs ( #765 )
...
* docs: update number of available Carbon icons
* docs: add svelte:head example for loading CDN styles
* chore(deps-dev): upgrade svelte to 3.40.1
* fix(a11y): disable a11y-mouse-events-have-key-events warning #760
* fix(deps): upgrade carbon-icons-svelte to v10.36.0 to avoid a11y warnings #760
* refactor(overflow-menu): remove formatStyle utility
* docs: links in paragraphs should be inline
* docs: add note on using all styles for dynamic theming
2021-07-26 08:40:05 -07:00
Eric Liu
f3cddbad9f
Align v10.33 ( #619 )
...
* chore(deps-dev): upgrade carbon-components to v10.33.0
* fix(clickable-tile): support disabled state for ClickableTile
* fix(aspect-ratio): add missing 3x2 ratio
* docs: update number of supported chart types
* feat(link): support link with icon
* refactor(outbound-link): use icon prop
* fix(search): wrap search icon with div
2021-04-30 17:08:09 -07: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
251f986304
add OutboundLink ( #504 )
...
* feat(link): add OutboundLink
* fix(outbound-link): forward Link events
2021-02-03 05:27:24 -08:00
Eric Liu
75d4b4cf03
refactor(types): shorten ref, id JSDocs, use CarbonIcon type, export component props
2020-11-06 11:30:46 -08:00
Eric Liu
d38e6d8be6
refactor: update/fix JSDoc props
2020-11-04 06:04:25 -08:00
Eric Liu
6dd363c2a9
feat(link): support "sm", "lg" size variants
2020-10-29 13:10:42 -07:00
Eric Liu
378fe06e03
chore: remove storybook
2020-10-14 16:23:44 -07:00
josefaidt
32077693e0
chore(links): add rel="" to all links
2020-10-08 14:02:08 -05:00
albert
115f032317
fix(link): change href description and default value
2020-10-04 20:25:36 +02:00
albert
df2d63d6eb
feat(link): add href prop
2020-10-04 19:55:51 +02:00
josefaidt
398887a3d3
feat(prettier): add svelteBracketNewLine
2020-09-24 10:50:34 -05:00
josefaidt
00cdebadd1
fix(link): remove visited styles by default
2020-09-18 15:09:02 -05:00
Eric Liu
4b7d254560
feat(link): set rel to "noopener noreferrer" if target is "_blank"
...
Protects against cross-origin window.opener exploits when the target attribute is "_blank"
2020-09-04 17:05:47 -07:00
Eric Liu
42b8159b1c
chore(prettier): use svelteStrictMode
2020-09-04 16:35:49 -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
773b18d314
chore: add more prop annotations
2020-07-25 06:26:49 -07:00
Eric Liu
2200b29b92
chore: lift components folder
2020-07-19 09:06:08 -07:00