Eric Liu
baff07e012
feat(slider): add hideLabel
prop ( #1777 )
...
Closes #1682
Co-authored-by: siaikin <abc1310054026@outlook.com>
2023-07-23 12:04:39 -07: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
7885e124b4
chore(types): fix formatting of prop comments in Header
, SideNav
2023-07-13 10:52:52 -07:00
Eric Liu
2715ed9c38
chore(ui-shell): update company
prop description in Header
( #1770 )
2023-07-13 10:50:51 -07:00
Nestor Orest Plysyuk
ea9b261b60
feat(ui-shell): add preventCloseOnClickOutside
to HeaderAction
( #1625 )
...
Closes #1624
2023-07-13 07:37:21 -07:00
Janos Lengyel
9b3f014a0b
feat(ui-shell): make company
in Header
slottable ( #1764 )
2023-07-13 07:33:48 -07:00
Eric Liu
7fdc2ef7f0
fix(types): allow data-*
attributes for props forwarded to HTML elements ( #1741 )
...
* chore(deps-dev): upgrade `sveld` to v0.18.1
* Run "yarn build:docs"
* test: assert that `data-*` attributes are valid
2023-07-08 16:41:44 -07:00
Sachin
0b4f19c87e
feat: make titleText
slottable in MultiSelect
, ComboBox
( #1750 )
...
Closes #1747
2023-06-11 18:45:55 -07:00
Sam
60a796ea48
feat(pagination-nav): add tooltipPosition
prop ( #1733 )
...
* Add `tooltipPosition` to `PaginationNav` per #1656
* Rebuild test
* Update description in documentation
Co-authored-by: Enrico Sacchetti <esacchetti@gmail.com>
* chore: update docs
---------
Co-authored-by: Samuel Janda <hi@simpleprogramming.com.au>
Co-authored-by: Enrico Sacchetti <esacchetti@gmail.com>
Co-authored-by: Enrico Sacchetti <enrico@theetrain.ca>
2023-05-21 13:59:53 -04:00
Pierre
b9aaa3adca
feat(ui-shell): make HeaderNavItem
slottable ( #1693 )
2023-05-02 16:23:04 -07:00
metonym
ca40dd18c2
fix(selectable-tile): include dispatched events in types ( #1695 )
...
Fixes #1694
2023-03-20 21:27:29 -04:00
Jonathan Quintin
7ddbf17cbb
feat(progress-bar): add status
prop ( #1560 )
...
* ProgressBar status feature added
* ProgressBar: Removed the css variables and use carbon-css instead.
The way of assigning the ProgressBar value has change. It is now a style
variable and scale-x is calculated in the css. This way prevent the
override of carbon css.
* Removed an unessacery span.
* Removed an unnecessary span.
* Added the status for the ProgressBarUx
* Remove `style css` and update docs.
* - Fixed the `capped` variable for more readability
- Updated docs `label` and `helperText`
- Updated docs and css
* fix: finished/error states cannot be indeterminate
* Run "yarn build:css"
* Re-run "yarn build:docs"
* test(progress-bar): assert `status` prop
* chore: add aria-busy and set valuenow to 0 when not active
---------
Co-authored-by: Eric Liu <ericyl.us@gmail.com>
Co-authored-by: Enrico Sacchetti <enrico@theetrain.ca>
2023-02-19 12:34:41 -05:00
metonym
6450e8b0b1
fix(types): add missing $$restProps
for Checkbox
, Filename
, FluidForm
( #1655 )
...
* fix(types): add missing `$$restProps` for `Checkbox`, `Filename`, `FluidForm`
* Run "yarn build:docs"
* test: assert `$$restProps` for `Checkbox`, `Form`
2023-02-11 13:50:01 -05:00
metonym
ec867c46ba
fix(tree-view)!: remove expanded
property from TreeNode
interface ( #1631 )
...
* fix(tree-view)!: remove `expanded` property from `TreeNode`
* fix(tree-view-node-list)!: remove unused `expanded` prop
* docs(tree-view): remove `expanded` as a property
#1630
2023-01-17 20:55:46 -05:00
Enrico Sacchetti
6d2e21f027
chore: improve lint, release workflows ( #1627 )
...
* Add standard-version to automate releases
* Remove husky
* Add lint script; run lint in GitHub Actions
* Run lint script
* Add Enrico to contributors
2023-01-15 15:34:09 -08:00
Enrico Sacchetti
50066966da
feat(notification)!: replace iconDescription
prop with statusIconDescription
, closeButtonDescription
( #1591 )
...
Fixes #672 , fixes #1563
* breaking: remove `iconDescription` prop from `InlineNotification`, `ToastNotification`
* breaking: require `iconDescription` prop in `NotificationIcon`
* feat: add new `statusIconDescription` and `closeButtonDescription` to `InlineNotification`, `ToastNotification`
2022-12-18 15:28:23 -08:00
Gregor Wassmann
e258db0cae
docs(pagination-nav): add change event docs ( #1592 )
...
It seems that in #1518 some docs were not properly generated.
This is the change that results from running `yarn build:docs`.
2022-12-17 09:06:40 -05:00
Enrico Sacchetti
8d55752a18
fix(pagination-nav)!: use 1-indexing to be consistent with Pagination
( #1518 )
...
Fixes #1513
2022-12-13 10:23:04 -08:00
Enrico Sacchetti
9198ed5474
feat!: dispatch "change" event in Pagination
, rename "change" to "update" in Select
( #1497 )
...
Closes #1491
* feat(pagination): dispatch "change" event when interacting with previous/next buttons, page/page size dropdowns
* breaking(select): rename dispatched "change" event to "update"
* breaking(select): forward `change` event to `Select`
2022-12-13 10:22:17 -08:00
metonym
724d90bd7b
chore(types)!: remove sveltekit:
attributes from types ( #1581 )
...
* chore(deps-dev): upgrade sveld 0.17.2 -> 0.18.0
* Run "yarn build:docs"
2022-12-11 15:58:19 -05:00
metonym
837716ff8b
fix(overflow-menu): dispatch "close" event when clicking outside ( #1546 )
...
Fixes #1541
2022-12-07 20:25:47 -08:00
Maxime Fafard
0f8a57b9d2
fix(popover): fire "click:outside" event when clicking sibling elements ( #1570 )
2022-12-07 20:10:45 -08:00
metonym
198e0da4c5
fix(tree-view): loosen TreeNode
text property type to any ( #1576 )
...
* fix(tree-view): loosen `TreeNode` text property type to any
* Run "yarn build:docs"
* test(tree-view): assert updated property type value
2022-12-07 20:00:20 -08:00
DetachHead
21d841feeb
fix(tree-view): make TreeView
children prop type work recursively ( #1566 )
2022-12-07 19:54:14 -08:00
metonym
1c4ee00142
fix(search): prop types should extend input
attributes ( #1523 )
...
Fixes #1520
2022-10-13 22:04:32 -07:00
Ben Periton
bd8741e45b
fix(toolbar-search): forward keyup, keydown, paste events to Search
( #1490 )
2022-09-21 08:25:27 -07:00
metonym
dbe33d5cbb
feat(toolbar-search): add filteredRowIds
prop to support pagination ( #1454 )
...
Closes #1393
* feat(toolbar-search): add `filteredRowIds` prop
* Run "yarn build:docs"
* test(data-table): assert `filteredRowIds` prop
* docs(data-table): add pagination to default filterable examples
2022-08-18 06:59:14 -07:00
metonym
f794cb5312
feat(data-table): dispatch on:click:header--select
event ( #1453 )
...
* feat(data-table): dispatch `on:click:header--select` event
* Run "yarn build:docs"
2022-08-17 10:19:31 -07:00
naegelin
30487128b3
feat(data-table): dispatch on:click:row--select
event ( #1450 )
2022-08-17 06:39:03 -07:00
metonym
8fea168ffd
feat(toast-notification): add fullWidth
prop ( #1444 )
...
* feat(toast-notification): add `fullWidth` prop
* Run "yarn build:docs"
* test(toast-notification): assert `fullWidth` prop
* docs(toast-notification): add "Full width" example
2022-08-14 14:56:02 -07:00
metonym
b04a281939
fix(toolbar-batch-actions): active
prop should be reactive ( #1445 )
...
Follow-up to #1440
2022-08-14 14:55:38 -07:00
naegelin
06777ba803
feat(toolbar-batch-actions): dispatch cancelable on:cancel
event ( #1441 )
...
Closes #1438
2022-08-14 12:09:40 -07:00
naegelin
bc58c7b029
feat(toolbar-batch-actions): add active
prop to show toolbar ( #1440 )
...
Closes #1438
2022-08-12 08:01:58 -07:00
Piper McCorkle
b6e4d133da
fix(notification-action-button): prop types should extend Button
( #1442 )
2022-08-11 18:45:41 -07:00
metonym
7fe9b39436
fix(number-input): forward keydown, keyup events ( #1424 )
...
Fixes #1421
`NumberInput` should forward the keydown and keyup events like other input components.
2022-08-05 04:50:40 -07:00
metonym
ef904567cb
Run "yarn build:docs"
2022-07-26 08:02:24 -07:00
metonym
f4d12b805a
fix(toggle): add missing hideLabel
prop ( #1414 )
...
* fix(toggle): add missing hideLabel prop
* Run "yarn build:docs"
* test(toggle): assert hideLabel prop
* docs(toggle): add "Hidden label text" example
2022-07-26 07:12:57 -07:00
metonym
5a8bd9ca57
chore(code-snippet): preserve custom copy event type ( #1375 )
2022-06-27 05:44:05 -07:00
metonym
1ccdf64504
feat(slider): add fullWidth
prop ( #1354 )
...
The `bx--slider` class in the `Slider` component has max-width of `40rem`. Because `$$restProps` is spread to the top-level `div` element in `Slider`, the only way to override the style is to do so globally:
```css
:global(.bx--slider-container) {
width: 100%;
}
:global(.bx--slider) {
max-width: none;
}
```
This adds a `fullWidth` prop that sets a full width style using inline style attributes.
2022-06-18 12:47:10 -07:00
metonym
b4d0205080
chore(select): update dispatched change event type ( #1357 )
...
Follow-up to #1355
2022-06-18 12:26:46 -07:00
metonym
78d3f1328a
feat(select): support selected
prop number type ( #1355 )
...
* feat(select): support number type
* Run "yarn build:docs"
* refactor(pagination): do not coerce `pageSize`, `page` to be numbers
* test(select): assert selected prop number type
2022-06-18 11:09:41 -07:00
metonym
b21718ccfd
fix(time-picker): use native binding for value prop ( #1344 )
2022-06-12 08:09:43 -07:00
metonym
72c24b83b2
feat(data-table): support programmatic sorting ( #1337 )
...
* refactor(data-table): pass down sortable props instead of using context
* feat(data-table): support programmatic sorting
* test(data-table): assert new props
* docs(data-table): add "Programmatic sorting" example
* refactor(data-table): remove unused tableSortable store
* refactor(data-table): remove unused indices
2022-06-05 13:37:50 -07:00
metonym
260bf4e040
breaking(types): type arrays as read-only ( #1335 )
...
Closes #1259
* breaking(types): type arrays as read-only
* Run "yarn build:docs"
* test: assert read-only arrays
2022-06-05 13:25:43 -07:00
metonym
e230db8115
feat: forward paste event to input/textarea elements ( #1332 )
...
* chore(deps-dev): upgrade sveld, svelte-check
* feat: forward paste event to input/textarea elements
* Run "yarn build:docs"
* test: assert paste event
2022-06-02 18:39:49 -07:00
metonym
f25a10c9c4
feat: support item.disabled
key for Dropdown
, MultiSelect
, ComboBox
( #1328 )
...
Closes #1326
* feat: support item.disabled key for `Dropdown`, `MultiSelect`, `ComboBox`
* Run "yarn build:docs"
* test: assert disabled property
* docs: add "Disabled items" examples
2022-06-02 17:56:30 -07:00
metonym
0063c01beb
breaking(dropdown): remove useless inline
prop ( #1329 )
...
* breaking(dropdown): remove useless `inline` prop
* Run "yarn build:docs"
2022-06-02 17:36:46 -07:00
metonym
04d758f869
fix: CopyButton
text prop and Dropdown
selectedId prop should be required ( #1311 )
...
* chore(deps-dev): upgrade sveld to v0.17.0
* fix(copy-button): text prop is required
* fix(dropdown): selectedId prop is required
* Run "yarn build:docs"
* docs: display "Required" tag for required props
2022-05-22 12:39:53 -07:00
metonym
003ab653eb
fix(theme): use @see
tag for link in tokens prop description ( #1309 )
...
* fix(theme): use `@see` tag for link in tokens prop description
* Run "yarn build:docs"
2022-05-18 19:28:38 -07:00
metonym
4a052afcb5
chore(date-picker): also set static: true
in exported prop ( #1300 )
...
* chore(date-picker): also set `static: true` in exported prop
* Run "yarn build:docs"
2022-05-14 12:49:06 -07:00