Commit graph

948 commits

Author SHA1 Message Date
Eric Liu
2ebaf15fc3 Merge branch 'master' of https://github.com/IBM/carbon-components-svelte into refactor 2019-12-29 19:48:41 -08:00
Eric Liu
81cf0680fa refactor(form): move reactive assignments 2019-12-29 19:46:09 -08:00
Eric Liu
d9c951f332 refactor(fileuploader): move reactive assignment 2019-12-29 19:43:58 -08:00
Eric Liu
bb18cdf797 refactor(timepicker): forward events, remove dispatch 2019-12-29 19:37:15 -08:00
Eric Liu
4b1ed0adce refactor(toggle): remove dispatch, inputRef, afterUpdate 2019-12-29 19:25:54 -08:00
Eric Liu
29c7c471c3 refactor(textinput): forward events 2019-12-29 19:17:30 -08:00
Eric Liu
77046a4959 refactor(textarea): remove dispatch, forward events 2019-12-29 19:13:35 -08:00
Eric Liu
86a65c8ff8 refactor(skeleton-text): rename lineCount 2019-12-29 19:08:26 -08:00
Eric Liu
24c44ad41b refactor(search): remove dispatch, rename placeHolderText 2019-12-29 19:04:36 -08:00
Eric Liu
60d9258d0b refactor(checkbox): make classes reactive 2019-12-29 18:52:20 -08:00
Eric Liu
b1688e9561 chore(deps): bump carbon-icons-svelte to ^10.8.1
Forward keydown event to Filename icon
2019-12-29 16:21:54 -08:00
Eric Liu
866cc962cd chore(lint): apply recommended lint rules 2019-12-29 15:37:56 -08:00
Eric Liu
4e578bc55d feat(component): add NumberInput
Closes #21
2019-12-29 14:08:42 -08:00
Eric Liu
50fbb60f3c feat(component): add Slider
Closes #26
2019-12-29 12:25:14 -08:00
Eric Liu
7e5252951a feat(component): add Tooltip
Closes #11

- Fixes `tabindex` prop storybook typo
2019-12-29 10:10:56 -08:00
Eric Liu
6ca56d67a6 feat(component): add DatePicker
Closes #15
2019-12-28 18:11:05 -08:00
Eric Liu
99f4b7b85d fix(test): update snapshot with updated Layout component 2019-12-26 10:30:02 -08:00
Eric Liu
9e3d387da3 feat(component): add OverflowMenu
Closes #22
2019-12-26 10:25:46 -08:00
Eric Liu
bf18b7b65a feat(component): add TimePicker
Closes #28
2019-12-25 14:23:20 -08:00
Eric Liu
0cc7c7afeb chore: forward class to Tile content 2019-12-25 14:22:52 -08:00
Eric Liu
a8f464586a feat(component): add Modal
Closes #18
2019-12-25 13:20:14 -08:00
Eric Liu
5e522c399c refactor(composed-modal): focus currentTarget in transitionend event
- Dispatch open event
2019-12-25 13:13:28 -08:00
Eric Liu
fd91dd80c5 feat(search): export autofocus prop 2019-12-25 07:22:29 -08:00
Eric Liu
152cbcd1ab refactor(code-snippet): use afterUpdate 2019-12-25 07:20:57 -08:00
Eric Liu
6a28583a85 chore(file-uploader-drop-container): move class names to markup 2019-12-25 07:20:23 -08:00
Eric Liu
3f03a1c259 refactor(composed-modal): use onMount, afterUpdate methods 2019-12-25 07:19:51 -08:00
Eric Liu
52dd244516 refactor(switch): focus ref in afterUpdate method 2019-12-25 07:17:51 -08:00
Eric Liu
0fe8975850 feat(file-uploader): export clearFiles method 2019-12-25 07:17:30 -08:00
Eric Liu
8ea50a807a refactor(toggle): access ref in afterUpdate method 2019-12-25 07:16:43 -08:00
Eric Liu
2cac297abf refactor(timeout): move setTimeout to afterUpdate method 2019-12-25 06:21:09 -08:00
Eric Liu
7a612e60cf feat(toast-notification): clear timeout when destroyed 2019-12-25 06:20:38 -08:00
Eric Liu
41c096bada refactor(expandable-tile): use onMount, afterUpdate methods 2019-12-25 06:10:07 -08:00
Eric Liu
f802fdb1bd refactor(expandable-tile): remove onMount method
- Prevent default keypress if key is a <Space> or 'Enter'
2019-12-24 09:55:52 -08:00
Eric Liu
0c9fb41aff chore(button-skeleton): remove unused const 2019-12-24 09:55:16 -08:00
Eric Liu
c446fc74f4 refactor(components): convert const to reactive where appropriate
- Inline class assignments to avoid script-level clutter
- Ignore a11y-missing-attribute instead of redundant href
2019-12-24 09:41:12 -08:00
Eric Liu
4ed754c549 refactor(expandable-tile): remove dispatcher, inline functions 2019-12-24 09:38:33 -08:00
Eric Liu
ffb6f477b9 refactor(composed-modal): register buttonRef directly 2019-12-24 09:37:35 -08:00
Eric Liu
85c4a14b2a feat(component): add FileUploader
Closes #16
2019-12-23 20:59:56 -08:00
Eric Liu
2d3edce3ca feat(button): derive hasIconOnly from icon and slots
Instead of explicitly defining hasIconOnly, its value can be inferred from a falsy icon prop and an empty slot.
2019-12-23 18:46:22 -08:00
Eric Liu
fc366a9366 feat(component): add ComposedModal
Closes #13
2019-12-23 18:38:33 -08:00
Eric Liu
f3c702947c refactor(lib): extract fillArray utility 2019-12-23 09:47:34 -08:00
Eric Liu
4dad89e12d feat(component): add Pagination
Closes #23
2019-12-23 09:32:20 -08:00
Eric Liu
35806566a0 fix(select): update defaultValue when $selected changes 2019-12-23 09:30:55 -08:00
Eric Liu
5ae12066fb feat(component): add Icon
Closes #30
2019-12-22 15:33:55 -08:00
Eric Liu
9c83fbda69 feat(lib): add css utility to format style values 2019-12-22 15:32:21 -08:00
Eric Liu
1286b9901d refactor(components): remove exported "props"
Closes #17

- Forward events
- Adds style prop, removes exported props
2019-12-22 09:29:45 -08:00
Eric Liu
3be285e112 feat(components): add Form, FormGroup, FormItem, FormLabel
Supports #17

Fixes broken storybook.

TODO: Define stories using other components (e.g. NumberInput, Select...)
2019-12-22 08:53:50 -08:00
Eric Liu
d2878983dc
Merge branch 'master' into tabs 2019-12-22 05:51:51 -08:00
Eric Liu
4ba8df4425 feat(components): add Tabs
Closes #32
2019-12-22 05:50:12 -08:00
Eric Liu
3db87de307 fix(structured-list): remove StructuredList import 2019-12-21 19:05:56 -08:00