metonym
fd42cb3891
fix(ui-shell): remove Content
left margin if SideNav
is collapsed ( #1428 )
...
Fixes #1145
Alternative to #1406
2022-08-06 08:27:45 -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
Johannes
8bd615b250
fix(combobox): value should call itemToString
with filtered item ( #1411 )
...
Fixes #1405
When using the `shouldFilterItem` prop, the `ComboBox` does not display the custom label set with `itemToString` in the input after a selection.
2022-07-23 06:15:11 -07:00
metonym
f59daa20a2
docs: specify minimum Svelte version requirement
2022-06-29 11:49:23 -07:00
metonym
04f18ae5e9
docs(notification): add examples "Prevent default close behavior" ( #1380 )
...
Follow-up to #1379
2022-06-29 10:14:22 -07:00
metonym
5a8bd9ca57
chore(code-snippet): preserve custom copy event type ( #1375 )
2022-06-27 05:44:05 -07:00
metonym
45627aad1f
docs: rename ComboBox
example, do not open modal in DatePicker
by default ( #1374 )
...
* docs(combo-box): "Selected id" -> " Initial selected id"
* docs(date-picker): do not open modal by default to prevent stealing focusing
2022-06-26 16:43:34 -07:00
metonym
6a3614bf55
fix(password-input): support invalid state when used in a FluidForm
( #1371 )
...
* fix(password-input): support invalid state when used in a `FluidForm`
* docs(fluid-form): add example "Invalid state"
2022-06-25 08:17:19 -07:00
metonym
388a05c290
fix(side-nav-menu): expanded SideNavMenu
should not have a max-height ( #1368 )
...
* fix(side-nav-menu): expanded `SideNavMenu` should not have a max-height (fixes #1361 )
* chore(docs): remove max-height override
2022-06-23 05:52:02 -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
a86aa5d363
docs(select): adjust default example to demo usage without selected
prop ( #1358 )
2022-06-18 12:45:39 -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
1a904dda36
docs(modal): add "Has scrolling content," "Custom focus" examples ( #1334 )
...
* docs(modal): add example "Has scrolling content"
* docs(modal): add "Custom focus" example
* docs: do not open modals initially
2022-06-02 19:26:26 -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
c90594002a
fix(checkbox): do not set title attribute if already provided ( #1323 )
...
* fix(checkbox): do not set title attribute if already provided
* Run "yarn build:docs"
2022-05-29 10:42:36 -07:00
metonym
f431104057
docs(tabs): add example "Disabled tabs" ( #1322 )
2022-05-29 10:32:22 -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
e1451324cc
docs: update Theme
, DataTable
docs ( #1305 )
...
* docs(theme): add note that `Theme` must be used with `all.css`
* docs(data-table): add note that custom widths do not work with `stickyHeader`
2022-05-17 06:24:23 -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
metonym
37b40d640b
fix(types): use @see
tag for flatpickr options link ( #1299 )
...
* chore(deps-dev): upgrade sveld to v0.15.3
* Run "yarn build:docs"
* fix(types): use `@see` tag for flatpickr options link
2022-05-14 12:43:12 -07:00
metonym
a958825d19
breaking(date-picker): default flatpickrProps.static
to true ( #1298 )
...
Closes #985
* breaking(date-picker): default `flatpickrProps.static` to true
* docs(date-picker): update docs on `flatpickrProps.static`
* docs(date-picker): feature single/range examples first
2022-05-14 11:46:38 -07:00
metonym
c6f210899b
feat(data-table): allow custom column widths ( #1265 )
...
* feat(data-table): allow header column `width`, `minWidth` values
* Run "yarn build:docs"
* test(data-table): assert width, minWidth properties
* docs(data-table): add "Custom column widths" example
2022-05-14 09:24:24 -07:00
metonym
7c4842f506
docs(code-snippet): add "Reactive example" ( #1296 )
...
* docs(code-snippet): add description to "Hidden copy button"
* docs(code-snippet): add "Reactive example"
2022-05-13 19:18:14 -07:00
metonym
88d5152343
fix(types): narrow dispatched events without detail to use null
instead of any
( #1295 )
...
* chore(deps-dev): upgrade sveld to v0.15.2
* Run "yarn build:docs"
2022-05-13 09:56:21 -07:00
metonym
5576c7ce84
fix(header-action): type missing "open" event ( #1293 )
...
* fix(header-action): type missing "open" event
* Run "yarn build:docs"
* test(header-utilities): assert "open" and "close" events
2022-05-12 20:23:16 -07:00
metonym
1454eeae19
feat(code-snippet): dispatch "expand" and "collapse" events ( #1291 )
...
* test(code-snippet): simply assertions
* feat(code-snippet): dispatch "expand," "collapse" events
* Run "yarn build:docs"
* test(code-snippet): assert events
2022-05-12 19:52:31 -07:00
metonym
d242849780
fix(dropdown): strongly type translateWithId
( #1286 )
2022-05-04 07:52:42 -07:00
metonym
f7146b61dc
fix: remove translateWithIdMenu
, use translateWithId
instead, rename translateWithIdInput
( #1285 )
...
* fix: remove translateWithIdMenu, use translateWithId instead
* chore: rename translateWithIdInput to translateWithIdSelection
2022-05-04 07:40:10 -07:00
metonym
0c39506dcb
fix(types): strongly type translateWithId
parameters ( #1284 )
2022-05-04 07:31:51 -07:00
metonym
ff2e6276db
fix: ComboBox
, MultiSelect
should have multiple translateWithId
functions ( #1283 )
...
* fix(combo-box): ListBoxField and ListBoxSelection have different `translateWithId` props
* fix(multi-select): ListBoxField and ListBoxSelection have different `translateWithId` props
* Run "yarn build docs"
* test: assert translateWithIdMenu, translateWIthIdInput props
2022-05-04 07:17:35 -07:00
Eric Liu
2cc54c1a53
docs(aspect-ratio): update aspect ratio values [ci skip]
2022-04-30 13:09:19 -07:00
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
metonym
410ac0c32f
fix(aspect-ratio): add missing "2x3" ratio value ( #1276 )
...
* fix(aspect-ratio): add missing "2x3" ratio value
* Run "yarn buld:docs"
* docs(aspect-ratio): add "Ratio 2x3" example
2022-04-30 09:14:18 -07:00
metonym
30b81f9877
chore: fix typos in type annotations ( #1275 )
...
* chore: fix typos in type annotations
* Run "yarn build:docs"
2022-04-30 08:52:47 -07:00
metonym
3f466bc9bc
docs(icons): correctly render icon imports in examples ( #1273 )
...
Fixes #1272
2022-04-29 07:12:32 -07:00
metonym
3950496b7e
docs(tooltip): remove unnecessary tooltipBodyId
in examples ( #1271 )
...
Fixes #1270
2022-04-28 15:06:10 -07:00
metonym
d40d238de5
docs(file-uploader): improve FileUploaderItem
examples ( #1269 )
2022-04-28 07:39:58 -07:00
metonym
564f25d087
fix(file-uploader-item): fix "delete" event regression ( #1268 )
...
Fixes #1267
2022-04-28 07:30:28 -07:00
Eric Liu
099fcbcda8
chore: update docs [ci skip]
2022-04-18 18:33:52 -07:00
metonym
1041c6e9f8
fix(header-global-action): icon slot should have a default size of 20 ( #1257 )
...
Fixes #1240
2022-04-18 17:57:28 -07:00
Eric Liu
c2568ec5d4
docs(grid): fix typo in padded grid example [ci skip]
2022-04-17 13:04:27 -07:00