metonym
52eff3c5a8
docs(data-table): add "Expandable and selectable" example ( #1277 )
...
* docs(data-table): add "Expandable and selectable" example
* docs(data-table): add "Batch selection" example
* docs(data-table): rework "Batch selection with initial selected rows" example
* docs(data-table): rework selectable examples to include selectedRowIds
* docs: remove extra space from pre tags
2022-04-30 09:58:14 -07:00
Eric Liu
c2568ec5d4
docs(grid): fix typo in padded grid example [ci skip]
2022-04-17 13:04:27 -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
d34f571150
docs: use all.css
for prefixed styles ( #1221 )
...
* docs: remove .bx--content override
* docs(ui-shell): add note on UI Shell theming
* docs(grid): touch up grid examples
* docs(theme): wrap localStorage in try catch
So that the site still works in Safari with all cookies blocked.
* docs: use prefixed all.css
Without vendor prefixes, some styles are lost in Safari.
* docs: remove svelte-preprocess from svelte.config.js
2022-04-02 11:45:29 -07:00
metonym
5209f329bd
build(types): copy .d.ts files from src to types ( #1218 )
2022-03-27 13:26:13 -07:00
metonym
21714d0e3a
breaking: remove deprecated props and components ( #1191 )
2022-03-27 08:21:58 -07:00
metonym
53fdbdf991
fix(data-table): expandable rows should work with zebra styles ( #1200 )
...
Fixes #1199
2022-03-23 08:04:08 -07:00
metonym
2df7b92269
feat(toolbar-search): support auto-filterable rows ( #1179 )
...
Closes #591
2022-03-19 12:01:03 -07:00
metonym
1017e80198
feat(multi-select): make MultiSelect
slottable ( #1183 )
2022-03-19 09:15:58 -07:00
metonym
f5594daba6
feat(dropdown): make Dropdown
slottable ( #1182 )
2022-03-19 09:15:52 -07:00
metonym
2858776367
feat(combo-box): make ComboBox
slottable ( #1181 )
...
Closes #1176
2022-03-19 09:15:41 -07:00
metonym
ceb7abf2e9
docs: fix formatting, broken link ( #1177 )
2022-03-16 07:33:59 -07:00
metonym
95a1dfa1af
feat(data-table): support non-selectable rows ( #1166 )
...
Closes #1148
2022-03-12 19:36:02 -08:00
metonym
cb014219fd
chore(deps-dev): upgrade svelte-check to v2.4.5 ( #1159 )
2022-03-12 13:50:47 -08:00
brunnerh
5de0d9a357
breaking(breakpoint): add breakpointObserver store ( #1092 )
...
* breaking: re-name event "on:match" to "on:change" in `Breakpoint.svelte`
* feat: add `breakpointObserver` read-only store
* refactor: export breakpoint constants from `breakpoints.js`
2022-03-08 08:38:58 -08:00
metonym
44d848c60d
docs(file-uploader): improve FileUploader
documentation ( #1126 )
...
- add `FileUploader` "Clear files" example
- document `validateFiles` prop for `FileUploaderDropContainer`
- add descriptions for `FileUploaderButton`, `FileUploader` examples
2022-02-21 14:26:02 -08:00
Gregor Wassmann
a8039a4d1e
feat(modal): support primaryButtonIcon prop ( #1047 )
2022-01-29 09:35:08 -08:00
metonym
4e3415a4e9
docs: Checkbox, Tabs, NumberInput ( #1045 )
...
* add `Checkbox` reactive example for `bind:checked` (#967 )
* update `Checkbox` reactive example for `bind:group` to demo two-way binding
* simplify `Tabs` reactive example
* add `NumberInput` "No value" example
2022-01-27 07:27:10 -08:00
Koichi Kiyokawa
cde8a79fa8
feat(ComboBox): selectedIndex -> selectedId ( #1016 )
...
* feat(breaking): selectedIndex -> selectedId in ComboBox
* docs: update ComboBox
2022-01-18 06:37:55 -08:00
Koichi Kiyokawa
e11a893bee
feat(Dropdown): selectedIndex -> selectedId ( #1004 )
...
* feat(breaking): selectedIndex -> selectedId in Dropdown
* feat: omit `selectedIndex` from the `select` event
2022-01-18 06:37:32 -08:00
Eric Liu
58de79d66b
docs(radio-button): simplify reactive example ( #1012 )
...
* docs(radio-button): simplify reactive radio button example
* docs(radio-button): rename to "Reactive example"
2022-01-16 15:06:29 -08:00
Eric Liu
e5f77aa614
docs(select): add reactive example ( #1011 )
2022-01-16 14:53:22 -08:00
Eric Liu
37f19d2171
Add option to not re-focus ComboBox
when invoking clear()
( #1000 )
...
* feat(combo-box): add option to clear accessor to not re-focus input
Closes #994
* yarn build:lib
* test(combo-box): validate clear accessor params
* docs(combo-box): add clear without focus to "Clear selection" example
2022-01-12 16:12:43 -10:00
Eric Liu
d4dd33e28c
Update docs ( #1001 )
...
* docs(tree-view): avoid redundant copy
* docs(search): "clear" is dispatched when pressing "Escape"
* docs(search): refactor "Expandable variant" to demonstrate reactivity
2022-01-12 16:12:14 -10:00
István Pató
d31e529ca9
fix(ComboBox): programmatically set selected index ( #995 )
...
* fix(ComboBox): programmatically set selected index
* refactor(ComboBox): renaming example to Reactive example
2022-01-12 13:36:37 -10:00
Eric Liu
3ca0297b5e
docs(modal): add multiple modals example ( #980 )
...
Refs: #975
2022-01-08 09:41:00 -08:00
Eric Liu
d4db64e2d1
docs(radio-tile): add reactive examples ( #979 )
...
Enabled by #971
2022-01-08 09:37:53 -08:00
brunnerh
6458c97c1a
Add required
prop to Select. ( #968 )
...
Upgrade sveld to set paths correctly on Windows.
Make Prettier script compatible with Windows and run it.
2022-01-03 10:46:12 -08:00
Eric Liu
dce2dda72a
Update docs ( #965 )
...
* chore(docs): run "npx browserslist@latest --update-db"
* chore(docs): upgrade carbon-icons-svelte to latest
* refactor(docs): re-use styles from css/all.scss
* chore(docs): add pnpm install command
* chore(docs): upgrade prettier, prettier-plugin-svelte
* docs(date-picker): improve "DatePicker in a modal" example
* fix(docs): restore "scripts-markup-styles" svelte sort order
* chore(docs): upgrade mdsvex
* chore(deps-dev): bump prettier, prettier-plugin-svelte, svelte
* refactor(docs): use svelte:fragment where applicable
* fix(docs): include missing "options" in svelteSortOrder prettier config
2022-01-01 10:58:42 -08:00
Gregor Wassmann
f0cf4e7ba5
Enhance Checkbox to use bind:group ( #947 )
...
* Enhance Checkbox to use bind:group
* Use custom logic
* Move multiple checkboxes above skeleton
* Incorprate PR feedback
* Any instead of string
2021-12-30 13:31:33 -08:00
Eric Liu
ccc733f3f7
Support custom target(s) for ContextMenu
( #916 )
...
* feat(context-menu): add target prop to selectively trigger context menu
* feat(context-menu): include clicked element in "open" event detail
* docs(context-menu): add target, multiple target examples
2021-11-18 13:32:13 -08:00
Eric Liu
a298a1bf15
Revert "docs(tooltip): hotfix reactive example #872 [ci skip]"
...
This reverts commit 3a0e2e92b8
.
2021-11-07 12:04:06 -08:00
Nicco
a317c7ed52
document static property on datepicker modal ( #879 )
...
* document static property on datepicker modal
* move to frame
* docs(date-picker): add missing props to DatePickerModal.svelte
Co-authored-by: metonym <ericyl.us@gmail.com>
2021-11-05 10:02:56 -07:00
metonym
3a0e2e92b8
docs(tooltip): hotfix reactive example #872 [ci skip]
2021-10-21 09:49:16 -07:00
Eric Liu
c64075acbe
fix(data-table): include border style for non-expandable rows ( #864 )
...
* fix(data-table): include border style for non-expandable rows
Fixes #861
* docs(data-table): use batchExpansion for non-expandable rows example [ci skip]
2021-10-20 10:02:10 -07:00
Eric Liu
96d848e9ef
feat(data-table): add nonExpandableRowIds prop ( #862 )
...
* feat(data-table): add nonExpandableRowIds prop #861
* test(data-table): validate nonExpandableRowIds prop
* docs(data-table): add Non-expandable rows example
2021-10-19 07:25:22 -07:00
Daniel Miedzik
1581bc0122
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
2021-10-15 16:23:34 -07:00
Eric Liu
c4413636a4
Programmatically expand/collapse TreeView nodes ( #850 )
...
* feat(tree-view): add accessors to programmatically expand/collapse nodes
* feat(tree-view): update docs/types
* test(tree-view): test updated TreeView accessors
* docs(tree-view): document TreeView accessors
2021-10-13 08:54:37 -07:00
Eric Liu
d01995e11e
feat(tree-view): add expandedIds #750 ( #751 )
2021-07-15 07:49:25 -07:00
Eric Liu
fac78ee4aa
feat(theme): add Theme ( #741 )
...
* feat(theme): add Theme
* fix(theme): fix broken type test
* docs(theme): add examples
* docs(theme): add description, update carbon theme link [ci skip]
* docs: pre-wrap type code snippet [ci skip]
2021-07-10 16:00:03 -07:00
Eric Liu
b6fa25c3e7
Align v10.39 ( #738 )
...
* chore(deps-dev): upgrade carbon-components to v10.39.0
* fix(data-table): deprecate Table shouldShowBorder prop
Ref: 0f7324156
* fix(form-group): add legendId
Ref: 4fc56c30b
* feat(number-input): support readonly variant
Ref: d0bd8eddb
* feat(multi-select): export multiSelectRef, fieldRef, selectionRef
* feat(local-storage): add clearItem, clearAll instance methods
* docs(local-storage): simplify clear example
* docs(local-storage): add instructions [ci skip]
* chore(local-storage): reset value on clear [ci skip]
* chore(local-storage): revert value clear [ci skip]
2021-07-09 13:40:25 -07:00
Eric Liu
edefd6429b
DatePicker rework ( #737 )
...
* fix(date-picker): append calendar to date picker element #345
Fixes #345
* fix(date-picker): do not import rangePlugin from esm folder
* fix(date-picker): correctly type change event for single/range types
* feat(date-picker): add valueFrom, valueTo for range datepicker
* docs(date-picker): add range type example
* docs(date-picker): extract range example to iframe
* docs(date-picker): extract single type to iframe
2021-07-08 16:33:03 -07:00
Eric Liu
f31ab25e0a
Breakpoint ( #733 )
...
* feat(breakpoint): add Breakpoint
* docs(breakpoint): update docs
* refactor(breakpoint): add prop descriptions, type slot
* docs: add missing semicolon to last typedef
* docs: decrease margin bottom for inline snippet
* docs: add Breakpoint to new components [ci skip]
* docs(config): use "scripts-markup-styles" for svelteSortOrder [ci skip]
* docs(breakpoint): label on:match event [ci skip]
2021-07-07 12:40:06 -07:00
Eric Liu
2d47bcaf1f
Export id in ProgressBar, add UX animated progress bar example ( #732 )
...
* fix(progress-bar): export id prop #731
Fixes #731
* docs(progress-bar): add UX example
2021-07-07 10:08:03 -07:00
Eric Liu
921c3e121a
Remove clipboard-copy dependency from CodeSnippet, CopyButton ( #726 )
...
* chore(deps): remove clipboard-copy
* feat: add copy prop, use navigator.clipboard API
* docs: add clipboard-copy back to docsite for more browser support
* docs(component-api): use outbound link
* docs: add override/prevent copy examples
2021-07-05 12:12:28 -07:00
Eric Liu
6ed4aaa86e
TreeView ( #725 )
...
* feat(tree-view): add TreeView
* fix(tree-view): select initial active node, correct typedefs
* docs(tree-view): update examples
* chore(tree-view): add test for types
* docs(tree-view): rename example
* docs(tree-view): improve docs
* docs(tree-view): refine examples
* docs: fix invalid syntax
* chore: rebuild component index/api
* docs(layout): increase height of sidenav menu [ci skip]
2021-07-05 09:11:15 -07:00
Eric Liu
f4a3646cb4
feat(modal): support 3-button Modal, ComposedModal ( #724 )
...
* feat(modal): support 3-button modal #528 , #472
* fix(modal): "supercede" --> "supersede"
* test(modal): test secondaryButtons prop, updated click:button--secondary custom event
* docs(modal): add multiple secondary button example for ComposedModal
* docs(modal): rename example
* fix(modal): do not render secondary button if secondaryButtonText is falsy
* docs(composed-modal): add button to re-open modal
2021-07-05 08:44:51 -07:00
Eric Liu
ae27bedf4c
RecursiveList ( #717 )
...
* feat(recursive-list): add RecursiveList
* feat(recursive-list): rename items prop to children
* docs(recursive-list): add full examples
* test(recursive-list): add types test
* refactor(recursive-list): remove superfluous nested prop
* docs(recursive-list): update docs
* fix(recursive-list): remove nested prop from type test
* fix(recursive-list): explicitly type restProps
2021-07-05 08:43:48 -07:00
Eric Liu
e51f50da0c
Align v10.38 ( #698 )
...
* chore(deps-dev): upgrade carbon-components to v10.38.0
* feat(text-input): support read-only variant
* docs: use consistent lingo for inline variant examples
* docs(popover): add Popover alignment example
* fix(file-uploader): adjust markup to avoid accessibility errors
Ref: 0dfde60e3
* fix(inline-loading): use error filled icon
* fix(inline-loading): render iconDescription as title in error/warning icons
Ref: 51c53c923
* fix(structured-list): update accessibility attributes
* fix(tooltip-definition): use span instead of div
Ref: cb6de3025
* fix(multi-select): close menu when blurring the last filterable option
* fix(multi-select): open/focus field for filterable multiselect #635
* fix(multi-select): unblock focus when blurring input #635
* fix(combo-box): select correct item with keys, allow input after clearing #195
* fix(combo-box): update input text if item is selected
* feat(combo-box): render checkmark icon for selected item
* fix(ui-shell): toggle SideNav rail when clicking the hamburger menu #699
* fix(context-menu): update context menu classes #684
* docs(context-menu): improve demo instructions #684
* fix(context-menu): close menu when clicking anywhere
2021-06-27 08:46:57 -07:00
Eric Liu
fb5c7553ac
Align v10.37 ( #697 )
...
* chore(deps-dev): upgrade carbon-components to v10.27.1
* fix(toolbar-search): omit size prop
* feat(progress-bar): add ProgressBar
* refactor(text-input): use class directive
* chore(deps-dev): rebuild yarn.lock
* fix(notification): omit iconDescription from NotificationIcon #672
Fixes #672
2021-06-26 16:45:37 -07:00