@webtides/element-library 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +300 -0
- package/README.md +72 -56
- package/all.js +16 -0
- package/catalog.js +17 -1
- package/custom-elements.json +15912 -10065
- package/package.json +1 -1
- package/src/components/accordion/accordion.changelog.md +11 -0
- package/src/components/accordion/accordion.js +15 -3
- package/src/components/accordion/accordion.readme.md +27 -1
- package/src/components/accordion/accordion.style.js +19 -0
- package/src/components/app-bar/app-bar.changelog.md +24 -0
- package/src/components/app-bar/app-bar.define.js +3 -0
- package/src/components/app-bar/app-bar.js +91 -0
- package/src/components/app-bar/app-bar.readme.md +130 -0
- package/src/components/app-bar/app-bar.style.js +103 -0
- package/src/components/app-frame/app-frame.changelog.md +59 -0
- package/src/components/app-frame/app-frame.define.js +3 -0
- package/src/components/app-frame/app-frame.events.js +6 -0
- package/src/components/app-frame/app-frame.js +1085 -0
- package/src/components/app-frame/app-frame.readme.md +425 -0
- package/src/components/app-frame/app-frame.style.js +534 -0
- package/src/components/button/button.changelog.md +21 -0
- package/src/components/button/button.events.js +3 -0
- package/src/components/button/button.js +145 -3
- package/src/components/button/button.readme.md +72 -4
- package/src/components/button/button.style.js +167 -8
- package/src/components/button-group/button-group.changelog.md +10 -0
- package/src/components/button-group/button-group.readme.md +2 -0
- package/src/components/button-group/button-group.style.js +6 -2
- package/src/components/checkbox-group-field/checkbox-group-field.changelog.md +6 -0
- package/src/components/checkbox-group-field/checkbox-group-field.js +7 -2
- package/src/components/checkbox-group-field/checkbox-group-field.readme.md +23 -1
- package/src/components/combobox-field/combobox-field.changelog.md +6 -0
- package/src/components/combobox-field/combobox-field.readme.md +8 -0
- package/src/components/combobox-field/combobox-field.style.js +2 -0
- package/src/components/date-field/date-field.changelog.md +6 -0
- package/src/components/date-field/date-field.readme.md +10 -0
- package/src/components/date-field/date-field.style.js +8 -3
- package/src/components/description-list/description-list.changelog.md +42 -0
- package/src/components/description-list/description-list.define.js +3 -0
- package/src/components/description-list/description-list.js +49 -0
- package/src/components/description-list/description-list.readme.md +161 -0
- package/src/components/description-list/description-list.style.js +169 -0
- package/src/components/dialog/dialog.changelog.md +7 -0
- package/src/components/dialog/dialog.readme.md +5 -0
- package/src/components/dialog/dialog.style.js +17 -2
- package/src/components/divider/divider.changelog.md +6 -0
- package/src/components/divider/divider.readme.md +1 -1
- package/src/components/divider/divider.style.js +6 -0
- package/src/components/drawer/drawer.changelog.md +7 -0
- package/src/components/drawer/drawer.readme.md +7 -6
- package/src/components/drawer/drawer.style.js +35 -2
- package/src/components/dropdown/dropdown.readme.md +6 -1
- package/src/components/file-field/file-field.changelog.md +8 -0
- package/src/components/file-field/file-field.js +135 -5
- package/src/components/file-field/file-field.readme.md +35 -6
- package/src/components/file-field/file-field.style.js +71 -0
- package/src/components/form-field/form-field.js +1 -1
- package/src/components/input-field/input-field.changelog.md +10 -0
- package/src/components/input-field/input-field.js +192 -14
- package/src/components/input-field/input-field.readme.md +88 -2
- package/src/components/input-field/input-field.style.js +2 -0
- package/src/components/list/list.changelog.md +30 -0
- package/src/components/list/list.define.js +3 -0
- package/src/components/list/list.js +68 -0
- package/src/components/list/list.readme.md +123 -0
- package/src/components/list/list.style.js +56 -0
- package/src/components/list-item/list-item.changelog.md +40 -0
- package/src/components/list-item/list-item.define.js +3 -0
- package/src/components/list-item/list-item.js +130 -0
- package/src/components/list-item/list-item.readme.md +144 -0
- package/src/components/list-item/list-item.style.js +246 -0
- package/src/components/menu/menu.changelog.md +44 -0
- package/src/components/menu/menu.define.js +3 -0
- package/src/components/menu/menu.events.js +5 -0
- package/src/components/menu/menu.js +793 -0
- package/src/components/menu/menu.readme.md +313 -0
- package/src/components/menu/menu.style.js +59 -0
- package/src/components/menu-group/menu-group.changelog.md +20 -0
- package/src/components/menu-group/menu-group.define.js +3 -0
- package/src/components/menu-group/menu-group.js +44 -0
- package/src/components/menu-group/menu-group.readme.md +74 -0
- package/src/components/menu-group/menu-group.style.js +38 -0
- package/src/components/menu-item/menu-item.changelog.md +32 -0
- package/src/components/menu-item/menu-item.define.js +3 -0
- package/src/components/menu-item/menu-item.js +168 -0
- package/src/components/menu-item/menu-item.readme.md +132 -0
- package/src/components/menu-item/menu-item.style.js +117 -0
- package/src/components/nav/nav.changelog.md +35 -0
- package/src/components/nav/nav.define.js +3 -0
- package/src/components/nav/nav.js +212 -0
- package/src/components/nav/nav.readme.md +248 -0
- package/src/components/nav/nav.style.js +269 -0
- package/src/components/nav-item/nav-item.changelog.md +25 -0
- package/src/components/nav-item/nav-item.define.js +3 -0
- package/src/components/nav-item/nav-item.js +75 -0
- package/src/components/nav-item/nav-item.readme.md +111 -0
- package/src/components/nav-item/nav-item.style.js +159 -0
- package/src/components/otp-field/otp-field.changelog.md +6 -0
- package/src/components/otp-field/otp-field.readme.md +8 -0
- package/src/components/otp-field/otp-field.style.js +8 -3
- package/src/components/pagination/pagination.changelog.md +8 -0
- package/src/components/pagination/pagination.js +123 -49
- package/src/components/pagination/pagination.readme.md +24 -6
- package/src/components/pagination/pagination.style.js +11 -1
- package/src/components/password-field/password-field.changelog.md +7 -0
- package/src/components/password-field/password-field.readme.md +11 -1
- package/src/components/password-field/password-field.style.js +2 -0
- package/src/components/popover/popover.changelog.md +6 -0
- package/src/components/popover/popover.style.js +1 -0
- package/src/components/radio-field/radio-field.changelog.md +6 -0
- package/src/components/radio-field/radio-field.js +7 -2
- package/src/components/radio-field/radio-field.readme.md +23 -1
- package/src/components/scroll-to-top/scroll-to-top.changelog.md +7 -5
- package/src/components/scroll-to-top/scroll-to-top.js +16 -12
- package/src/components/scroll-to-top/scroll-to-top.readme.md +2 -0
- package/src/components/segmented-field/segmented-field.changelog.md +27 -0
- package/src/components/segmented-field/segmented-field.define.js +3 -0
- package/src/components/segmented-field/segmented-field.js +175 -0
- package/src/components/segmented-field/segmented-field.readme.md +140 -0
- package/src/components/segmented-field/segmented-field.style.js +193 -0
- package/src/components/splitter/splitter.changelog.md +24 -0
- package/src/components/splitter/splitter.define.js +3 -0
- package/src/components/splitter/splitter.events.js +4 -0
- package/src/components/splitter/splitter.js +237 -0
- package/src/components/splitter/splitter.readme.md +164 -0
- package/src/components/splitter/splitter.style.js +100 -0
- package/src/components/status-bar/status-bar.changelog.md +25 -0
- package/src/components/status-bar/status-bar.define.js +3 -0
- package/src/components/status-bar/status-bar.js +74 -0
- package/src/components/status-bar/status-bar.readme.md +139 -0
- package/src/components/status-bar/status-bar.style.js +122 -0
- package/src/components/tab-group/tab-group.changelog.md +7 -0
- package/src/components/tab-group/tab-group.js +30 -9
- package/src/components/tab-group/tab-group.readme.md +14 -0
- package/src/components/textarea-field/textarea-field.changelog.md +6 -0
- package/src/components/textarea-field/textarea-field.js +14 -1
- package/src/components/textarea-field/textarea-field.readme.md +23 -1
- package/src/components/toast/toast.changelog.md +6 -0
- package/src/components/toast/toast.readme.md +5 -3
- package/src/components/toast/toast.style.js +22 -6
- package/src/components/toolbar/toolbar.changelog.md +24 -0
- package/src/components/toolbar/toolbar.define.js +3 -0
- package/src/components/toolbar/toolbar.js +233 -0
- package/src/components/toolbar/toolbar.readme.md +156 -0
- package/src/components/toolbar/toolbar.style.js +49 -0
- package/src/components/tooltip/tooltip.changelog.md +11 -0
- package/src/components/tooltip/tooltip.js +51 -4
- package/src/components/tooltip/tooltip.readme.md +26 -1
- package/src/components/tree/tree.changelog.md +23 -0
- package/src/components/tree/tree.define.js +3 -0
- package/src/components/tree/tree.js +138 -0
- package/src/components/tree/tree.readme.md +119 -0
- package/src/components/tree/tree.style.js +16 -0
- package/src/components/tree-item/tree-item.changelog.md +23 -0
- package/src/components/tree-item/tree-item.define.js +3 -0
- package/src/components/tree-item/tree-item.events.js +3 -0
- package/src/components/tree-item/tree-item.js +246 -0
- package/src/components/tree-item/tree-item.readme.md +128 -0
- package/src/components/tree-item/tree-item.style.js +226 -0
- package/src/styles/appearance.style.js +47 -0
- package/src/styles/choice-group.style.js +27 -1
- package/src/styles/input-control.style.js +87 -0
- package/src/styles/modal.style.js +14 -1
- package/src/styles/native.css +100 -0
- package/src/styles/size.style.js +41 -0
- package/src/utils/floating.js +15 -1
- package/src/utils/focus.js +69 -0
- package/src/utils/options.js +35 -0
- package/src/utils/scroll.js +24 -0
- package/src/utils/text-entry-attributes.js +13 -0
- package/types/all.d.ts +16 -0
- package/types/src/components/accordion/accordion.d.ts +3 -1
- package/types/src/components/app-bar/app-bar.d.ts +43 -0
- package/types/src/components/app-bar/app-bar.define.d.ts +1 -0
- package/types/src/components/app-bar/app-bar.style.d.ts +2 -0
- package/types/src/components/app-frame/app-frame.d.ts +497 -0
- package/types/src/components/app-frame/app-frame.define.d.ts +1 -0
- package/types/src/components/app-frame/app-frame.events.d.ts +7 -0
- package/types/src/components/app-frame/app-frame.style.d.ts +8 -0
- package/types/src/components/button/button.d.ts +61 -0
- package/types/src/components/button/button.events.d.ts +4 -0
- package/types/src/components/checkbox-group-field/checkbox-group-field.d.ts +5 -2
- package/types/src/components/combobox-field/combobox-field.d.ts +10 -0
- package/types/src/components/date-field/date-field.d.ts +10 -0
- package/types/src/components/description-list/description-list.d.ts +34 -0
- package/types/src/components/description-list/description-list.define.d.ts +1 -0
- package/types/src/components/description-list/description-list.style.d.ts +2 -0
- package/types/src/components/file-field/file-field.d.ts +68 -3
- package/types/src/components/form-field/form-field.d.ts +1 -1
- package/types/src/components/input-field/input-field.d.ts +99 -0
- package/types/src/components/list/list.d.ts +41 -0
- package/types/src/components/list/list.define.d.ts +1 -0
- package/types/src/components/list/list.style.d.ts +2 -0
- package/types/src/components/list-item/list-item.d.ts +64 -0
- package/types/src/components/list-item/list-item.define.d.ts +1 -0
- package/types/src/components/list-item/list-item.style.d.ts +2 -0
- package/types/src/components/menu/menu.d.ts +362 -0
- package/types/src/components/menu/menu.define.d.ts +1 -0
- package/types/src/components/menu/menu.events.d.ts +6 -0
- package/types/src/components/menu/menu.style.d.ts +2 -0
- package/types/src/components/menu-group/menu-group.d.ts +24 -0
- package/types/src/components/menu-group/menu-group.define.d.ts +1 -0
- package/types/src/components/menu-group/menu-group.style.d.ts +2 -0
- package/types/src/components/menu-item/menu-item.d.ts +80 -0
- package/types/src/components/menu-item/menu-item.define.d.ts +1 -0
- package/types/src/components/menu-item/menu-item.style.d.ts +2 -0
- package/types/src/components/nav/nav.d.ts +103 -0
- package/types/src/components/nav/nav.define.d.ts +1 -0
- package/types/src/components/nav/nav.style.d.ts +2 -0
- package/types/src/components/nav-item/nav-item.d.ts +39 -0
- package/types/src/components/nav-item/nav-item.define.d.ts +1 -0
- package/types/src/components/nav-item/nav-item.style.d.ts +2 -0
- package/types/src/components/otp-field/otp-field.d.ts +10 -0
- package/types/src/components/pagination/pagination.d.ts +31 -2
- package/types/src/components/password-field/password-field.d.ts +10 -0
- package/types/src/components/radio-field/radio-field.d.ts +5 -2
- package/types/src/components/scroll-to-top/scroll-to-top.d.ts +6 -5
- package/types/src/components/segmented-field/segmented-field.d.ts +85 -0
- package/types/src/components/segmented-field/segmented-field.define.d.ts +1 -0
- package/types/src/components/segmented-field/segmented-field.style.d.ts +2 -0
- package/types/src/components/splitter/splitter.d.ts +127 -0
- package/types/src/components/splitter/splitter.define.d.ts +1 -0
- package/types/src/components/splitter/splitter.events.d.ts +5 -0
- package/types/src/components/splitter/splitter.style.d.ts +2 -0
- package/types/src/components/status-bar/status-bar.d.ts +44 -0
- package/types/src/components/status-bar/status-bar.define.d.ts +1 -0
- package/types/src/components/status-bar/status-bar.style.d.ts +2 -0
- package/types/src/components/tab-group/tab-group.d.ts +17 -0
- package/types/src/components/textarea-field/textarea-field.d.ts +7 -0
- package/types/src/components/toolbar/toolbar.d.ts +96 -0
- package/types/src/components/toolbar/toolbar.define.d.ts +1 -0
- package/types/src/components/toolbar/toolbar.style.d.ts +2 -0
- package/types/src/components/tooltip/tooltip.d.ts +26 -0
- package/types/src/components/tree/tree.d.ts +62 -0
- package/types/src/components/tree/tree.define.d.ts +1 -0
- package/types/src/components/tree/tree.style.d.ts +2 -0
- package/types/src/components/tree-item/tree-item.d.ts +106 -0
- package/types/src/components/tree-item/tree-item.define.d.ts +1 -0
- package/types/src/components/tree-item/tree-item.events.d.ts +4 -0
- package/types/src/components/tree-item/tree-item.style.d.ts +2 -0
- package/types/src/styles/appearance.style.d.ts +31 -0
- package/types/src/styles/choice-group.style.d.ts +1 -1
- package/types/src/styles/input-control.style.d.ts +15 -0
- package/types/src/styles/modal.style.d.ts +5 -0
- package/types/src/styles/size.style.d.ts +24 -0
- package/types/src/utils/floating.d.ts +11 -0
- package/types/src/utils/focus.d.ts +25 -0
- package/types/src/utils/options.d.ts +17 -0
- package/types/src/utils/scroll.d.ts +11 -0
- package/types/src/utils/text-entry-attributes.d.ts +10 -0
- package/web-types.json +2935 -308
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,306 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/) and this
|
|
|
12
12
|
|
|
13
13
|
## Unreleased
|
|
14
14
|
|
|
15
|
+
## [0.5.0] - 2026-11-27
|
|
16
|
+
|
|
17
|
+
### app-frame
|
|
18
|
+
|
|
19
|
+
- Fixed: the link that skips to the content lies in a landmark: a navigation (`<nav>`) of the frame, the part `skip-landmark`. A page whose shell is a frame was reported by axe on every view (`region: el-app-frame,.skip`): content outside of a landmark. axe lets a skip link stand alone, and knows one by its place in front of the first link of the page that leads elsewhere; the link of the frame is in a shadow root, and so is the first link of most views (an `el-nav-item`), so neither is in front of the other in the document. A link the page writes in front of the frame is reported for the same reason. The link stays the first stop of the Tab key, where the frame is narrow and where it is wide, does what it did, and has its text from `skip-label`. The landmark takes no room, and is in server-rendered markup. ([#209](https://github.com/webtides/element-library/issues/209))
|
|
20
|
+
- Changed: the frame has a landmark of its own now, where it had none: a page sees one more navigation in its list of landmarks. A page that worked around the finding, with a skip link of its own in its banner and `el-app-frame::part(skip-link) { display: none }`, takes both out: it would have two skip links, or a navigation with nothing in it. ([#209](https://github.com/webtides/element-library/issues/209))
|
|
21
|
+
- Added: `skip-landmark-label` is the name of that landmark for assistive technology, `Skip link` by default. The page gives it a name in its language, and one no other navigation of the page has: two navigations of one name are one too many (`landmark-unique`). ([#209](https://github.com/webtides/element-library/issues/209))
|
|
22
|
+
|
|
23
|
+
### button
|
|
24
|
+
|
|
25
|
+
- Changed: in an `el-button-group` the control of a button with a neighbour in front lies on the border of that neighbour by itself: it reads the width from the group (`--_el-group-overlap`, internal and inherited), where the group gave the element a negative margin before. The element of such a button stands beside its neighbour and is narrower than its control by that border. Outside of a group nothing changes. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
26
|
+
|
|
27
|
+
### button-group
|
|
28
|
+
|
|
29
|
+
- Fixed: the buttons of a group lie on the border of their neighbour on a page whose stylesheet takes the margin off every element (`* { margin: 0 }`, the reset of Tailwind CSS v4). The group pulled a button over the border of the one in front of it with a negative margin of the button (`::slotted`), and a rule of the page wins over such a rule: two outlined buttons had two lines between them, and the group was wider by a border for every button after the first. The group names the width of the border in a property that inherits now (`--_el-group-overlap`), and the button pulls its control over it. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
30
|
+
- Changed: a page that put the overlap back itself, with a negative margin for the buttons of a group, takes that rule out: the buttons would lie on each other by two borders. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
31
|
+
|
|
32
|
+
### checkbox-group-field
|
|
33
|
+
|
|
34
|
+
- Added: an option can show something in front of its label: `color` is a colour that is drawn as a dot, `icon` the address of an SVG symbol, as an option of `el-segmented-field` has it. Things a user knows by their colour, tags or calendars, are found by it where they are chosen. Both are decorations, hidden from assistive technology: the label stays the name of the option. They are part of the option, so they work for options as an attribute and as a property, and are in server-rendered markup. The dot keeps its colour where the user forces colours. ([#198](https://github.com/webtides/element-library/issues/198))
|
|
35
|
+
|
|
36
|
+
### combobox-field
|
|
37
|
+
|
|
38
|
+
- Added: takes content of the page into its control, an element with `slot="start"` or `slot="end"`, and has the button that empties it (`clearable`, `clear-label`), as `el-input-field`, which it extends. ([#168](https://github.com/webtides/element-library/issues/168))
|
|
39
|
+
|
|
40
|
+
### date-field
|
|
41
|
+
|
|
42
|
+
- Added: takes content of the page into its control, an element with `slot="start"` or `slot="end"`, and has the button that empties it (`clearable`, `clear-label`), as `el-input-field`, which it extends. ([#168](https://github.com/webtides/element-library/issues/168))
|
|
43
|
+
|
|
44
|
+
### description-list
|
|
45
|
+
|
|
46
|
+
- Fixed: the list looks the same on a page whose stylesheet takes the margin, the padding and the border off every element and off what an element generates (`*, ::before, ::after { margin: 0; padding: 0; border: 0 solid; }`, the reset of Tailwind CSS v4). The room of a row was a padding of the `<dt>` and the `<dd>` of the page, the gap between a name and its value a padding as well, and the line was moved to its place with a margin (`::slotted`). A rule of the page wins over such a rule, whatever its specificity and its cascade layer: the rows had no room, a name stood right under the line, and the line was drawn below its place. The room is the gap between the rows of the grid and the padding of the list now, the gap a column of the grid, and the line is placed with `translate`. The list takes nothing from the margin, the padding or the border of a `<dt>` or a `<dd>`. On a page without a reset it is the same to the pixel. ([#208](https://github.com/webtides/element-library/issues/208))
|
|
47
|
+
- Changed: a page that gave the room back itself, with a padding for the `<dt>`, the `<dd>` and the `<dd data-action>` in a list and a margin for the `::before` of a `<dt>`, takes those rules out, the ones for a wide list as well: a padding of the page adds to the room now, and the line would be drawn a row too high. ([#208](https://github.com/webtides/element-library/issues/208))
|
|
48
|
+
- Changed: `--el-description-list-term-width` is the width of the names alone: the gap to the values comes after it. It was inside of that width before, so a list with the property set has its values begin one gap (`--el-space-4`) later, and its names have that much more room. Unset, nothing changes: the names and the gap take 40% of the list at most, as before. ([#208](https://github.com/webtides/element-library/issues/208))
|
|
49
|
+
- Changed: a `<dt>` and a `<dd>` are as high as their text, and a `<dd data-action>` as high as one line where the list is wide as well: the room of the row is around them, not in them. A background the page gives one of them covers its text, not the row. ([#208](https://github.com/webtides/element-library/issues/208))
|
|
50
|
+
- Changed: a list whose rows are all hidden keeps the room above its first and below its last row, which is a padding of the list. A list with nothing in it has no height, as before. ([#208](https://github.com/webtides/element-library/issues/208))
|
|
51
|
+
- Added: `--el-description-list-padding-block` sets the room above and below a row, and `--el-description-list-gap` the gap between a name and its value and in front of an action. Unset, they are `--el-space-3` and `--el-space-4` as before. ([#208](https://github.com/webtides/element-library/issues/208))
|
|
52
|
+
|
|
53
|
+
### divider
|
|
54
|
+
|
|
55
|
+
- Added: a container can give its lines room: it names the room in a property that inherits (`--_el-context-divider-space`, internal), and the line has it in front of it and after it, above and below a horizontal line and at both sides of a vertical one. `el-menu` does so for a line between two entries. Outside of such a container a divider has no space around it, as before. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
56
|
+
|
|
57
|
+
### file-field
|
|
58
|
+
|
|
59
|
+
- Added: `drop-message`: an area to drop a file onto, around the control, with that text in it. The control took a drop on its small button, and nothing invited one. While a dragged file is over the area it looks different, and the host has the state `dragover`. A click on the area opens the dialog; the keyboard is on the control in it. ([#197](https://github.com/webtides/element-library/issues/197))
|
|
60
|
+
- Added: a drop is a choice as one in the dialog: the control has the files, `input` and `change` are fired on it, and `input-change` reports them. A drop that `accept` or `multiple` refuses is not taken, the control keeps what it had, and the field says that the choice was not valid, with its `error-message`. ([#197](https://github.com/webtides/element-library/issues/197))
|
|
61
|
+
- Added: without JavaScript the area is a box with its text around the control of the browser, which posts the file with its form as before. ([#197](https://github.com/webtides/element-library/issues/197))
|
|
62
|
+
|
|
63
|
+
### input-field
|
|
64
|
+
|
|
65
|
+
- Added: content of the page at the start and at the end of the control: an element with `slot="start"` or `slot="end"` among the children of the field is taken into the control when the field renders. An icon, a unit, the start of an address, a button. It stands in a row with the input, whose text does not run under it, and follows the reading direction. The field moves the element of the page and does not copy it, and server-rendered markup has it in its place. ([#168](https://github.com/webtides/element-library/issues/168))
|
|
66
|
+
- Added: a click on a text or on an icon in the control puts the focus into the input; a button or a link there keeps its click and its stop of the Tab key. A text there is part of the description of the input (`aria-describedby`), so a unit is read with it; an icon and a button are not. ([#168](https://github.com/webtides/element-library/issues/168))
|
|
67
|
+
- Added: `clearable`: a button at the end of the control that empties the field. It shows while the field has a value and is not disabled, `input-change` reports the empty value, and the focus stays in the input. `clear-label` is its name (`Clear`). ([#168](https://github.com/webtides/element-library/issues/168))
|
|
68
|
+
- Added: with `styles/native.css` the control with its content is the control to the eye: the border, the surface and the focus ring are around all of it, as the border of a field that is not valid and the look of a disabled one, and it is as high as an input of its size alone. Without that file the content stands beside an input with the look of the browser. A field without content and without `clearable` renders its input alone, as before. ([#168](https://github.com/webtides/element-library/issues/168))
|
|
69
|
+
- Added: `maxlength` and `minlength` are passed on to the native `<input>`, in server-rendered markup as well, and one that is not set is not rendered. The control takes no more characters than `maxlength` while the user types, and a typed text that is shorter than `minlength` makes the field invalid the way `required` and `pattern` do, with its `error-message`. Set on the element they did nothing before. The fields that extend this one take both as well. ([#190](https://github.com/webtides/element-library/issues/190))
|
|
70
|
+
|
|
71
|
+
### list
|
|
72
|
+
|
|
73
|
+
- Added: `--el-list-gap` sets the gap between the start, the texts, the end and the control of a row. The rows read it, so it can be set on the list or for the page. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
74
|
+
|
|
75
|
+
### list-item
|
|
76
|
+
|
|
77
|
+
- Fixed: what is in `end` keeps its width beside a title or a description that is longer than the row. It shrank together with the texts, down to next to nothing: on a phone a date broke after every character and stood as a column of ten lines, and an icon shrank to a sliver, or left its place and was drawn in the padding of the row where the page kept it from shrinking. It takes the width it has now, up to half of the row, and breaks after that, as the readme said. The ends of all rows of a list end on one line. ([#207](https://github.com/webtides/element-library/issues/207))
|
|
78
|
+
- Changed: a page that kept the end from shrinking itself (`el-list-item::part(end) { flex-shrink: 0 }`) does not need that rule any more. ([#207](https://github.com/webtides/element-library/issues/207))
|
|
79
|
+
- Fixed: the gap beside what is in `start`, `end` and `action` holds on a page whose stylesheet takes the margin off every element (`* { margin: 0 }`, the reset of Tailwind CSS v4). The row gave the gap to what the page slots in, as a margin (`::slotted`), and a rule of the page wins over such a rule, whatever its specificity and its cascade layer: the icon touched the title. The gap is one of the parts of the row now, and the row takes nothing from the margin, the padding or the border of what is slotted. A row without a `start` has no gap there, and a list without one in any row has no first column, as before. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
80
|
+
- Changed: a page that gave the gap back itself, with a margin on what it slots into `start`, `end` and `action`, takes those rules out: a margin of the page adds to the gap now. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
81
|
+
- Added: `--el-list-gap` sets the gap between the start, the texts, the end and the control of a row, on the list, on a row, or for the page. Unset, it is `--el-space-3` as before. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
82
|
+
|
|
83
|
+
### menu
|
|
84
|
+
|
|
85
|
+
- Fixed: an `el-divider` between two entries has its room above and below on a page whose stylesheet takes the margin off every element (`* { margin: 0 }`, the reset of Tailwind CSS v4). The menu gave that room to the line as a margin (`::slotted`), and a rule of the page wins over such a rule: the line touched the entries. The menu names the room in a property that inherits now, and the line takes it in its own shadow root. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
86
|
+
- Changed: a page that gave the room back itself, with a margin for an `el-divider` in a menu, takes that rule out: the margin adds to the room now. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
87
|
+
- Changed: the panel is no part of a row of joined buttons: it stops the property that pulls a button over its neighbour there (`--_el-group-overlap`), as the ones for the corners and the line. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
88
|
+
- Fixed: an open menu keeps the keyboard wherever the focus is. `Escape` closes it and gives the focus back to what it was opened for, and the key does not reach the page behind; `ArrowDown` and `ArrowUp` bring the focus to its first and to its last entry; the Tab key closes it, and the focus moves on from where it is. The menu heard its keys on its panel alone: an open menu whose entries did not have the focus was left with no key, and `Escape` closed what was behind it. It hears them at the window now, for as long as it is open. ([#202](https://github.com/webtides/element-library/issues/202))
|
|
89
|
+
- Fixed: a press on the heading of a group, on a line or on the padding of the panel leaves the focus on the entry that had it, and the arrow keys go on from there. The focus was nowhere in the page after such a press. Where no entry had the focus, the panel takes it itself: it has `tabindex="-1"`, and is no stop of the Tab key. ([#202](https://github.com/webtides/element-library/issues/202))
|
|
90
|
+
- Fixed: a menu that is open at a point closes when what it was opened for scrolls away under it: the page, or a region around the row, also one in a shadow root the row is slotted into (the content of an `el-app-frame`). The menu stayed where it was, over another row and with the actions of the first one. The focus goes back to what the menu was opened for without scrolling to it, so the scroll goes on. A scroll inside of a long menu, and one of a region that does not move the row, leave the menu open, and a menu at an element follows the element as before. ([#204](https://github.com/webtides/element-library/issues/204))
|
|
91
|
+
- Fixed: the button of a row closes the menu it has opened: a second press on the element the menu is open at closes it, and it stays closed, with the listener of the readme (`menu.showAt(button)` for a click) and nothing more. The press closed the menu when the pointer went down, as a press beside it, and the click of the same press opened it again: `menu-hide`, then `menu-show`, and a button that said `aria-expanded="true"` and could not collapse what it had expanded. The menu stays open now while the pointer is down on that element, and the `showAt()` that is called with the click closes it. A call with no press before it opens the menu as before. ([#203](https://github.com/webtides/element-library/issues/203))
|
|
92
|
+
- Fixed: a menu that is opened with `showAt()` is where it was opened while its own element is out of view, below a long list for example. It was at its own element instead, off the screen: the element was placed once before it had taken its place from `showAt()`, and that placement, which had to try the other side, was done after the right one. The panel is placed once it is shown now, and one placement at a time.
|
|
93
|
+
- Fixed: entries that the page renders after the menu has opened, and entries whose element is defined after it, get the focus once they are there: the first one, or the last one where `ArrowUp` has opened the menu. The menu is placed again for its new size. The focus stayed where it was, and a menu at a point kept the place of an empty panel. ([#202](https://github.com/webtides/element-library/issues/202))
|
|
94
|
+
|
|
95
|
+
### menu-item
|
|
96
|
+
|
|
97
|
+
- Added: `type`: an entry that sets something instead of doing something. With `type="checkbox"` it is on or off (`role="menuitemcheckbox"`), with `type="radio"` it is one of several of which one is chosen (`role="menuitemradio"`). `checked` is its state, which it says (`aria-checked`), also while it is off and while it is disabled. A page could put a mark into the `icon` slot before, and a screen reader heard nothing of it: the role of an entry is inside of its shadow root. ([#205](https://github.com/webtides/element-library/issues/205))
|
|
98
|
+
- Added: the state shows as a mark in front of the text, a check or a dot, in the new part `mark`. Its place is there while the entry is not checked as well, so the text does not move when the state changes. Where the user forces colours the mark has the colour of the text: the check is text, the dot is drawn with a border. ([#205](https://github.com/webtides/element-library/issues/205))
|
|
99
|
+
- Added: the page sets the state: the entry does not change `checked` when it is chosen, and the menu fires `menu-select` and closes as for every entry. The state is in the server-rendered markup. ([#205](https://github.com/webtides/element-library/issues/205))
|
|
100
|
+
|
|
101
|
+
### otp-field
|
|
102
|
+
|
|
103
|
+
- Added: takes content of the page into its control, an element with `slot="start"` or `slot="end"`, and has the button that empties it (`clearable`, `clear-label`), as `el-input-field`, which it extends. ([#168](https://github.com/webtides/element-library/issues/168))
|
|
104
|
+
|
|
105
|
+
### password-field
|
|
106
|
+
|
|
107
|
+
- Added: takes content of the page into its control, an element with `slot="start"` or `slot="end"`, and has the button that empties it (`clearable`, `clear-label`), as `el-input-field`, which it extends. Its own button, the one that shows the password, stays beside the control. ([#168](https://github.com/webtides/element-library/issues/168))
|
|
108
|
+
- Added: `maxlength` and `minlength` are passed on to the input, as in `el-input-field`: a password that is typed shorter than `minlength` makes the field invalid, with its `error-message`. ([#190](https://github.com/webtides/element-library/issues/190))
|
|
109
|
+
|
|
110
|
+
### popover
|
|
111
|
+
|
|
112
|
+
- Changed: the panel is no part of a row of joined buttons: it stops the property that pulls a button over its neighbour there (`--_el-group-overlap`), as the ones for the corners and the line. ([#206](https://github.com/webtides/element-library/issues/206))
|
|
113
|
+
|
|
114
|
+
### radio-field
|
|
115
|
+
|
|
116
|
+
- Added: an option can show something in front of its label: `color` is a colour that is drawn as a dot, `icon` the address of an SVG symbol, as an option of `el-segmented-field` has it. Things a user knows by their colour, tags or calendars, are found by it where they are chosen. Both are decorations, hidden from assistive technology: the label stays the name of the option. They are part of the option, so they work for options as an attribute and as a property, and are in server-rendered markup. The dot keeps its colour where the user forces colours. ([#198](https://github.com/webtides/element-library/issues/198))
|
|
117
|
+
|
|
118
|
+
### textarea-field
|
|
119
|
+
|
|
120
|
+
- Added: `maxlength` and `minlength` are passed on to the native `<textarea>`, in server-rendered markup as well, and one that is not set is not rendered. The control takes no more characters than `maxlength` while the user types, and a typed text that is shorter than `minlength` makes the field invalid the way `required` does, with its `error-message`. Set on the element they did nothing before. ([#190](https://github.com/webtides/element-library/issues/190))
|
|
121
|
+
|
|
122
|
+
## [0.4.0] - 2026-11-27
|
|
123
|
+
|
|
124
|
+
### accordion
|
|
125
|
+
|
|
126
|
+
- Changed: where scripting is off, a server-rendered accordion without `open="true"` is closed and cannot be opened; it was open before, because nothing had collapsed it. The readme has a rule for a page that wants the content readable there (`@media (scripting: none)` and the `content` part). ([#187](https://github.com/webtides/element-library/issues/187))
|
|
127
|
+
- Fixed: a closed accordion that was rendered on the server shows its header alone from the first paint. The markup of the server had the content as it is while open, the browser painted it, and the element took it away once it started: everything below the accordion jumped up with every page load, and where scripting is off the accordion was open. The stylesheet of the element now collapses the content unless the host has `open="true"`, which holds before the element starts. An accordion with `open="true"` is server-rendered open, with the line under its header and the turned chevron, and stays that way. ([#187](https://github.com/webtides/element-library/issues/187))
|
|
128
|
+
- Fixed: a closed accordion that is rendered in the browser starts closed. It was rendered open and collapsed with the transition, in front of the user and with the content below it moving. ([#187](https://github.com/webtides/element-library/issues/187))
|
|
129
|
+
|
|
130
|
+
### app-bar
|
|
131
|
+
|
|
132
|
+
- Added: `el-app-bar`, a new component: the bar at the top of a view, with a start (a button back, or the one for the navigation), a title and an end (the actions). Start and end follow the reading direction, and a region the page leaves empty takes no room. ([#178](https://github.com/webtides/element-library/issues/178))
|
|
133
|
+
- Added: the title is one line: what does not fit is cut with an ellipsis, and never pushes the actions out. The whole title stays in the page for assistive technology. `heading-level` (1 to 6) makes it the heading of the view; unset, it is text.
|
|
134
|
+
- Added: the buttons of the bar are plain while they have no appearance of their own; `appearance` names another one. The bar does not write to its buttons: it says the appearance in CSS properties that are inherited.
|
|
135
|
+
- Added: in the header of an `el-app-frame` the surface of the bar reaches as far as the surface of the region: under the status bar and the notch of a phone and to the sides of the screen, while its content stays clear of them. The line to the content is the one of the region there.
|
|
136
|
+
- Added: as high as a control and its padding, with and without a button, and at least `--el-touch-target` high on a touch screen.
|
|
137
|
+
- Added: a surface from `--el-color-bg` and a line to the content from `--el-color-border` and `--el-border-width`. The line is a border, which stays where the user forces colours and is there without a theme then. The bar is no landmark and has no role.
|
|
138
|
+
|
|
139
|
+
### app-frame
|
|
140
|
+
|
|
141
|
+
- Added: `el-app-frame`, a new component: the frame of an application. It fills what the browser shows and lays out five regions, a header, a footer, a navigation at the start side, an aside at the end side, and the content. A region the page leaves empty takes no room, and start and end follow the reading direction. ([#176](https://github.com/webtides/element-library/issues/176))
|
|
142
|
+
- Added: the frame is fixed to the edges of the viewport, which move with the address bar of a phone: it is as high as what the browser shows, and no higher. The content scrolls between the header and the footer, which stay in view. The window does not scroll in a frame; `scroller` is the element that does, for a page that sets the scroll back after a change of the view.
|
|
143
|
+
- Added: narrow and wide by its own width: from the width `wide-from` names (`30rem`, `40rem`, `48rem` by default, `64rem` or `80rem`) the navigation and the aside are columns beside the content, and each scrolls on its own. Below it the content and the aside are one column that scrolls, and the navigation is a drawer. The stylesheet decides, with a container query per step, so a server-rendered frame has its layout before the script has run. `wide` reads what the stylesheet has decided.
|
|
144
|
+
- Added: `--el-app-frame-navigation-size` (`16rem`) and `--el-app-frame-aside-size` (`20rem`) are the widths of the two columns.
|
|
145
|
+
- Added: the page writes the landmarks: `<header slot="header">`, `<nav slot="navigation" aria-label="…">`, `<main id="…">`, `<aside slot="aside">` and `<footer slot="footer">`. The frame adds none of its own.
|
|
146
|
+
- Added: the first stop of the Tab key is a link that skips to the content, with the text of `skip-label`. It is a link to the id of the `main` of the page, which works before the script has run. After it the content is in view from its start, the keys scroll it, and the Tab key goes on inside of it.
|
|
147
|
+
- Added: on a phone with `viewport-fit=cover` nothing in a region lies under the notch, the rounded corners or the home indicator. The surface of a region (`::part(header)`, `::part(footer)`, …) reaches the edge of the screen, and what is in it does not. A region tells the components in it how far its surface reaches, and that it draws the line to the content itself, in CSS properties that are inherited.
|
|
148
|
+
- Added: a region that scrolls and has nothing in it that takes the focus is a stop of the Tab key itself, so the keyboard can scroll it in every browser.
|
|
149
|
+
- Added: on paper the frame is as long as its content, which prints whole.
|
|
150
|
+
- Added: lines between the regions from `--el-color-border` and `--el-border-width`. They are borders, which stay where the user forces colours, and they are there without a theme then. Without a theme the frame paints nothing.
|
|
151
|
+
- Added: `narrow-only` and `wide-only` name the regions that are there at one width only (`header`, `navigation`, `aside`, `footer`, with a space between them): a bar of destinations in the footer of a phone, for example (`narrow-only="footer"`), or an aside for a desktop (`wide-only="aside"`). The stylesheet leaves a region out, without a script, and the frame keeps the edge of the screen clear that the region kept clear. ([#179](https://github.com/webtides/element-library/issues/179))
|
|
152
|
+
- Added: where the frame is narrow, the navigation does not show and opens as a drawer from the start edge. The page writes the navigation once: the element in the `navigation` slot is the column of the wide frame and the content of the drawer of the narrow one, and no node is moved. ([#177](https://github.com/webtides/element-library/issues/177))
|
|
153
|
+
- Added: any element with `data-navigation-toggle` in the frame opens and closes that drawer. The frame writes `aria-expanded` onto it, and it is not there where the navigation is a column: an `el-button` by the stylesheet of the frame, before any script has run, another element by the script (`hidden`).
|
|
154
|
+
- Added: the drawer is an `el-drawer`: modal, with the focus kept in it. `Escape`, its close button and a click beside it close it, and the focus goes back to the button that opened it. A link the user follows in it closes it, also where the page takes the click. `navigation-label` is its title and `close-label` the name of its close button; its parts are `drawer`, `drawer-header`, `drawer-title`, `drawer-close-button` and `drawer-body`.
|
|
155
|
+
- Added: a change of the width while the drawer is open leaves nothing behind: no backdrop, no lock on the scroll of the page and no inert page.
|
|
156
|
+
- Added: `navigation-open` opens and closes the drawer from a script, `app-frame-navigation-toggle` tells of both, and `:state(navigation-open)` matches while it is open.
|
|
157
|
+
- Added: `narrow-navigation="bar"`: where the frame is narrow, the navigation lies at the lower edge, over the footer, instead of being a drawer. For an `el-nav` in the `navigation` slot, whose destinations are a bar there and a rail in the column of the wide frame: the page writes them once. The region is a surface of the frame at the lower edge, as the footer is, and the column is as wide as what is in it. ([#181](https://github.com/webtides/element-library/issues/181))
|
|
158
|
+
- Added: the column of the navigation tells an `el-nav` in it to be a column (a rail, or the list its `column` asks for), and that the region draws the line to the content, in CSS properties that are inherited. The drawer of the navigation says the same.
|
|
159
|
+
- Added: `resizable` names the columns whose width the user sets by dragging their edge (`navigation`, `aside`). The edge is an `el-splitter` of the frame at the side of the column that faces the content: dragged with a mouse, a finger or a pen, a stop of the Tab key with the arrow keys, `Home` and `End`, and a separator with the width and the name of the column for assistive technology (`navigation-label`, and the new `aside-label`). Its parts are `navigation-splitter` and `aside-splitter`. ([#182](https://github.com/webtides/element-library/issues/182))
|
|
160
|
+
- Added: `navigation-size` and `aside-size` are the widths of the two columns in pixels. The frame sets them while the user drags, `app-frame-resize` tells of every width and `app-frame-resize-end` of the one that stays (`detail.region`, `detail.size`). The page keeps the width and gives it back in the attribute: the template writes it onto the grid, so a server-rendered frame has it before the script has run.
|
|
161
|
+
- Added: `--el-app-frame-navigation-min-size`, `--el-app-frame-navigation-max-size`, `--el-app-frame-aside-min-size` and `--el-app-frame-aside-max-size` are the limits of a column that is resizable (`10rem`, and `min(30rem, 40cqi)`: two fifths of the width of the frame at most). The stylesheet holds a width that is kept between them.
|
|
162
|
+
- Added: where the frame is narrow, a column has no edge to drag, and the drawer of the navigation keeps the width of the stylesheet.
|
|
163
|
+
- Added: a view of columns in the content: a list and what is chosen in it beside each other, each scrolling on its own where the frame is wide, and a page that scrolls as a whole where it is narrow. The frame does it as it is: the region of the content has a height where the frame is wide, and the frame is a container for the queries of the page. The readme says what the page writes, and tests and a story hold it. ([#200](https://github.com/webtides/element-library/issues/200))
|
|
164
|
+
- Added: an on-screen keyboard that the browser lays over the page: while it covers a part of the viewport, the frame is as high as the part above it and where that part is (`window.visualViewport`), so the header stays in view and the footer lies above the keyboard, without room for a home indicator. `:state(keyboard)` matches while it is so. A viewport that shows less is a keyboard only while the user types into something (a field, a text they edit or an `iframe` has the focus): Safari on iOS shows less while a finger pulls the page past its top as well. Only a frame that fills the viewport follows, and not while the user has zoomed in. ([#201](https://github.com/webtides/element-library/issues/201))
|
|
165
|
+
- Added: the field the user types into stays in view: the frame scrolls its region to it when the region gets less high, for a keyboard or a window that gets smaller. A field in a dialog or a popover is left to the browser.
|
|
166
|
+
- Added: `status-bar-tap`: a tap on the status bar of an iPhone brings the content to its top, as in an application. iOS scrolls the document for that tap and never a region, so the frame keeps the document one pixel higher than the viewport, lets it snap to that pixel, hears it go to zero, and scrolls what scrolls its content (`scroller`), smoothly unless the user asks for less motion. `app-frame-status-bar-tap` is fired first, and a listener that prevents its default keeps the frame from scrolling. Off by default: the document scrolls by a pixel with it, and the frame writes `scroll-snap-type` onto the `html` element while it listens. ([#201](https://github.com/webtides/element-library/issues/201))
|
|
167
|
+
- Added: only the tap is taken for one. A script that scrolls the window does not move a document that snaps, so a router that sets the scroll back, or brings a place back, is none; where a script can move the document, the frame takes no scroll for the tap. A finger that drags the page, a wheel or a key, a keyboard that comes or goes and a viewport that changes its size are none, and neither is the moment after them, nor what iOS does to the document until it has arrived at the top. While a dialog or a drawer locks the scroll of the document nothing happens, and the document is on its pixel after. Only on iOS, and only for a frame that fills the viewport.
|
|
168
|
+
|
|
169
|
+
### button
|
|
170
|
+
|
|
171
|
+
- Added: `toggle`: the button is a toggle button, one that stays pressed. A click flips `pressed`, and so do the Space and the Enter key; the control has `aria-pressed` with the state, so a screen reader announces a toggle button. `pressed` is a property and an attribute the page can set and read, and a toggle button writes the attribute itself (`pressed="true"`, `"false"`). `toggle` is ignored on a button with `href`. ([#172](https://github.com/webtides/element-library/issues/172))
|
|
172
|
+
- Added: `button-toggle`, fired when a click has flipped a toggle button, with the new state in `detail.pressed`. Not fired when `pressed` is set from a script. A `click` listener of the page that calls `preventDefault()` keeps the button from flipping. ([#172](https://github.com/webtides/element-library/issues/172))
|
|
173
|
+
- Added: a pressed button shows that it is pressed: a ring inside of its edge in the colour of its label, in every variant and appearance, and a tint of the text colour where the button has no fill. The ring is a border, so it stays where the user forces colours, and it has the corners of the button, the joined ones of an `el-button-group` as well. Before, no rule selected a pressed button, and it looked like one that is not pressed. ([#172](https://github.com/webtides/element-library/issues/172))
|
|
174
|
+
- Added: in a container that gives its controls a size and an appearance, an `el-toolbar`, the button takes them from it, while the page has not set `size` or `appearance` on the button itself. A button that names its own keeps it, the defaults included (`appearance="filled"`, `size="medium"`). The container says both in CSS properties that are inherited, and the button reads them in its stylesheet: its attributes are not written, and outside of such a container nothing changes. ([#194](https://github.com/webtides/element-library/issues/194))
|
|
175
|
+
- Added: an `el-button` with `data-navigation-toggle`, the button that opens the navigation of an `el-app-frame`, is not there where the navigation is a column beside the content. The frame says so in a CSS property that is inherited, so this holds before any script has run. Outside of a frame the attribute changes nothing. ([#177](https://github.com/webtides/element-library/issues/177))
|
|
176
|
+
- Added: in a container that has the edge of the screen around it, an `el-status-bar`, the focus ring of a theme is inside of the button and not around it. The container says so in a CSS property that is inherited (`--_el-context-focus-ring-offset`); outside of such a container the ring is where it was. ([#180](https://github.com/webtides/element-library/issues/180))
|
|
177
|
+
- Changed: a button with `aria-pressed="true"` that the page sets itself shows the ring of a pressed button as well. The attribute goes to the control as before, and no click changes it. ([#172](https://github.com/webtides/element-library/issues/172))
|
|
178
|
+
|
|
179
|
+
### description-list
|
|
180
|
+
|
|
181
|
+
- Added: `el-description-list`, a new component: rows of a name and its value, for a settings page or the page of an entry. The element is the native `<dl>` (it is inside of the shadow root), and the page writes the names as `<dt>` and the values as `<dd>` into it. Below 30rem of its own width a name stands above its value; from 30rem the two stand side by side, with the values of all rows on one line. The list measures itself (a container query), not the viewport. `--el-description-list-term-width` sets the width of the column of the names. Unset, it is as wide as the longest name, and 40% of the list at most. A `<dd data-action>` ends its row in an action, a link or a small button: at the end of the row, in the middle of the first line of the value. A row with a button is as high as a row without one. A row has `--el-space-3` above and below, and a line in `--el-color-border` above every row but the first, over the whole width. The line is not a border, so a reset of the page that takes the border off every element leaves it. Where the user forces colours it is drawn in the text colour of the system. A long value breaks, inside of a word where it has to: the list is never wider than its place. The list runs no script: a server-rendered list is laid out before the element takes over, and looks the same after. ([#195](https://github.com/webtides/element-library/issues/195))
|
|
182
|
+
|
|
183
|
+
### dialog
|
|
184
|
+
|
|
185
|
+
- Fixed: a dialog is never higher than what the browser shows. Its greatest height counted the address bar of a phone in (`100vh`), so the footer of a long dialog was below the edge while the bar was there. It follows the bar now (`100dvh`). ([#183](https://github.com/webtides/element-library/issues/183))
|
|
186
|
+
- Fixed: on a phone whose page reaches under the notch and the home indicator (`viewport-fit=cover`), the dialog keeps out of the room the system takes at the edges of the screen, and is in the middle of what is left. Elsewhere nothing changes.
|
|
187
|
+
|
|
188
|
+
### drawer
|
|
189
|
+
|
|
190
|
+
- Fixed: on a phone whose page reaches under the notch and the home indicator (`viewport-fit=cover`), the header of a drawer was under the status bar and its footer under the home indicator. The surface still reaches the three edges it lies against, and its header, its body and its footer keep clear of that room now. The size the page gives is the one of what is in the drawer, and the room is on top. Elsewhere nothing changes. ([#183](https://github.com/webtides/element-library/issues/183))
|
|
191
|
+
- Fixed: what is in a drawer and would keep the edges of the screen clear itself (an `el-app-bar`, an `el-nav`) is told that the surface does so, and adds no room of its own.
|
|
192
|
+
|
|
193
|
+
### list
|
|
194
|
+
|
|
195
|
+
- Added: `el-list`, a new component: a list of rows, for messages, articles, files or the entries of a settings page. It is the list for assistive technology (`role="list"`, named by `label`), and every `el-list-item` slotted into it is an item of that list. The texts of all rows begin on one line, after the widest start of the list: the list has a column for the start and one for the rest, and a row takes them over (`subgrid`). A list without a start in any row has no first column. `density` (`'default'` or `'compact'`): `--el-space-3` or `--el-space-2` above and below the texts of a row. `appearance`: `'plain'` (the default) has no surface and reaches from edge to edge of its place; `'outlined'` and `'filled'` are the surfaces of `el-card`. Between two rows is a line in `--el-color-border`. Without a theme the list paints nothing. `--el-list-padding-inline` is the padding of a row at its start and its end, `--el-space-4` unset. With `0` a list in the body of an `el-card` has its rows on the line of the other content. The list runs no script: a server-rendered list is complete without JavaScript, and looks the same before and after the element takes over. ([#192](https://github.com/webtides/element-library/issues/192))
|
|
196
|
+
|
|
197
|
+
### list-item
|
|
198
|
+
|
|
199
|
+
- Added: `el-list-item`, a new component: one row of an `el-list`, an item of its list (`role="listitem"`). It has a start (`start` slot), a title (default slot), a line under it (`description`), an end (`end`) and a control of its own (`action`). With `href` the row is a link as a whole: the title is a native link (`target` is passed on, `rel` is written with it), and its target is the whole row. A control in `action` lies on top of the link and stays a target of its own. On a touch screen a row that is a link is at least `--el-touch-target` high. `current` marks the current or the chosen row: `aria-current` (`"page"` on the link, `"true"` on a row without one), a tint, a bar at the start in the accent colour and a heavier title. The bar is a border, so it stays where the user forces colours. `mark` draws a dot in the padding at the start of the row, which does not move the texts. Its text is read in front of the title and is part of the name of the link (`mark="Unread"`). A long title breaks into more lines, inside of a word where it has to, so a text a user typed cannot widen the page. `truncate` cuts the title and the line under it after one line. The row runs no script: its link works before the element takes over, and without JavaScript in server-rendered markup. ([#192](https://github.com/webtides/element-library/issues/192))
|
|
200
|
+
|
|
201
|
+
### menu
|
|
202
|
+
|
|
203
|
+
- Added: `el-menu`, a new component: a menu button. A button of the page in the `trigger` slot opens a list of actions, which are `el-menu-item` elements. To assistive technology it is a menu (`role="menu"`) of menu items, and the button says that it opens one and whether it is open (`aria-haspopup="menu"`, `aria-expanded`). ([#167](https://github.com/webtides/element-library/issues/167))
|
|
204
|
+
- Added: a click, `Enter`, `Space` and `ArrowDown` on the button open the menu and put the focus on its first entry, `ArrowUp` on its last. In the menu the arrow keys move through the entries and around the ends, `Home` and `End` go to the first and to the last, and a letter goes to the next entry that starts with it.
|
|
205
|
+
- Added: `Escape` closes the menu and gives the focus back to the button. The Tab key closes it and moves on, and a click beside it closes it.
|
|
206
|
+
- Added: choosing an entry closes the menu and fires `menu-select`, with the entry in `detail.item` and its `value` in `detail.value`. `menu-show` and `menu-hide` tell of the menu itself, `open` (reflected) and `:state(open)` say whether it is shown, and `show()`, `hide()` and `toggle()` open and close it from a script.
|
|
207
|
+
- Added: the panel is a native popover in the top layer: nothing clips it, and it moves nothing on the page. It is placed at the button with Floating UI, at the side `placement` names (`bottom-start` by default) with a gap of `distance`, on the other side without room there, and never outside of the viewport. A long menu scrolls in what the browser shows. The menu opens and closes that popover itself (`popover="manual"`): a pointer that goes down beside it closes it, `Escape` in the menu closes it and leaves a dialog around it open, and a menu that opens closes the one before it. One the platform closes (`auto`) would be gone when the finger of a long press is lifted.
|
|
208
|
+
- Added: a surface, a border and a shadow from the tokens, with the colours of the system without a theme. `--el-menu-min-width` (`10rem`) and `--el-menu-max-width` (`20rem`) bound its width. An `el-divider` in the menu is a line between two entries.
|
|
209
|
+
- Added: `showAt(place, opener)`: one menu for many things, the rows of a list. It opens the menu at a point of the viewport, for a right click or a long press, with the corner of the menu at the point and the menu inside of the viewport, or at an element of the page, the button of a row, placed as at its own button. ([#186](https://github.com/webtides/element-library/issues/186))
|
|
210
|
+
- Added: what the menu is opened for is its `opener`: the property while the menu is open, `detail.opener` of `menu-select`, and what gets the focus back. An open menu moves when `showAt()` is called again, and tells of both rows (`menu-hide`, `menu-show`).
|
|
211
|
+
- Added: a button of the page that says that it opens a menu (`aria-haspopup="menu"`) is told whether the menu is open for it (`aria-expanded`), and gives the menu its name while it has no `label`.
|
|
212
|
+
|
|
213
|
+
### menu-group
|
|
214
|
+
|
|
215
|
+
- Added: `el-menu-group`, a new component: a group of entries in an `el-menu`. A group to assistive technology (`role="group"`), with `label` as its heading and its name. The heading the eye sees is not read a second time. ([#167](https://github.com/webtides/element-library/issues/167))
|
|
216
|
+
- Added: a line divides a group from what is before it in the menu. A group that is the first thing in its menu has none. Where the user forces colours the line is there without a theme as well.
|
|
217
|
+
|
|
218
|
+
### menu-item
|
|
219
|
+
|
|
220
|
+
- Added: `el-menu-item`, a new component: one entry of an `el-menu`. A `<button>` with `role="menuitem"`, or a link with `href`, `target` and `rel`. It is out of the order of the Tab key: the menu moves the focus to it. ([#167](https://github.com/webtides/element-library/issues/167))
|
|
221
|
+
- Added: `value` is what the entry stands for, for the listener of `menu-select`. Choosing an entry is a click on it, which the page can hear on the entry as well.
|
|
222
|
+
- Added: `disabled`: the entry cannot be chosen. It says so (`aria-disabled`), fires no click, and the keyboard still gets to it. A link that is disabled has no address.
|
|
223
|
+
- Added: the `icon` slot takes an icon in front of the text, and takes no room while it is empty.
|
|
224
|
+
- Added: `variant` (reflected): `danger` shows an entry for something that cannot be undone in the colour of a danger, from the shared variants.
|
|
225
|
+
- Added: the entry under the pointer and the one with the focus of the keyboard have a tint of the text colour, and the focus a ring inside of the entry, which is what shows where the user forces colours. On a touch screen an entry is at least `--el-touch-target` high.
|
|
226
|
+
|
|
227
|
+
### nav
|
|
228
|
+
|
|
229
|
+
- Added: `el-nav`, a new component: the destinations of an application as a bar for the lower edge of a phone. A navigation landmark (`<nav>`, named by `label`) with a list of `el-nav-item` links. ([#179](https://github.com/webtides/element-library/issues/179))
|
|
230
|
+
- Added: three to five destinations share the width in equal parts, however long their texts are. The bar is as high as an `el-app-bar`, and keeps that height: a text that does not fit is cut.
|
|
231
|
+
- Added: in the footer of an `el-app-frame` the surface of the bar reaches the lower edge of the screen and its sides, and the destinations stay above the home indicator of a phone. The line to the content is the one of the region there. Alone, the bar keeps its destinations clear of the home indicator and of the sides itself (`env(safe-area-inset-*)`).
|
|
232
|
+
- Added: a surface from `--el-color-bg` and a line to the content from `--el-color-border` and `--el-border-width`. The line is a border, which stays where the user forces colours and is there without a theme then.
|
|
233
|
+
- Added: `layout="rail"`: the destinations below each other in a narrow column for the side of a wider screen, `--el-nav-rail-size` wide (`5rem`), with a line to the content at the side that faces it. The rail is as high as its place, and scrolls where it has more destinations than height. ([#181](https://github.com/webtides/element-library/issues/181))
|
|
234
|
+
- Added: the `end` slot: a second group at the lower end of a rail, for the settings and the account. It is a list of its own, stays in view while the group at the top scrolls, and is not shown in a bar.
|
|
235
|
+
- Added: `labels="false"`: the destinations show an icon alone. Their texts are off the screen and stay the names of their links, and show as tooltips for the pointer and for the focus of the keyboard, beside a rail and above a bar. The tooltips are `el-tooltip` elements in the shadow root (`::part(tooltip)`); the element imports the tooltip, and with it `@floating-ui/dom`.
|
|
236
|
+
- Added: `layout="auto"`, the new default: a bar, and a rail where an `el-app-frame` has the element in the column at its side. The frame says so in a CSS property that is inherited, so the page writes the destinations once and the stylesheets decide, before any script has run. Alone, and in the footer of a frame, `auto` is the bar that was the default.
|
|
237
|
+
- Added: alone, a rail keeps its destinations clear of the top, its side and the lower edge of the screen (`env(safe-area-inset-*)`).
|
|
238
|
+
- Added: `layout="list"`: the destinations below each other, each a row with its icon and its text beside it, for a sidebar. A list is as wide as its place and as high as it, scrolls where it has more destinations than height, and keeps the `end` slot at its lower end in view. Where its place is as wide as what is in it, it is `--el-nav-list-size` wide (`16rem`). ([#199](https://github.com/webtides/element-library/issues/199))
|
|
239
|
+
- Added: `column`: what `layout="auto"` is in the column at the side of an `el-app-frame`, `rail` (the default) or `list`. The class of the landmark says it and the stylesheet decides, so a server-rendered page has a list on one view and a rail on another before any script has run.
|
|
240
|
+
- Added: the `secondary` slot: a second group of destinations below the first, for the pages that have no room in a bar, with `secondary-label` as its heading. A list shows the heading, a rail shows the group below a line, and a bar leaves the group out. The group is a list of its own with the heading as its name (`::part(secondary)`, `::part(secondary-label)`, `::part(secondary-list)`).
|
|
241
|
+
- Added: in an element of the page that is in the `navigation` slot of a frame, the element takes its layout from the frame as one that is in the slot itself. In a flex column of that element it takes the height that is left: its destinations scroll, and what the page puts above and below it stays in view.
|
|
242
|
+
- Changed: the groups at the top of a rail scroll together in a new part, `groups`. `::part(list)` is the first group as before and no longer the element that scrolls. ([#199](https://github.com/webtides/element-library/issues/199))
|
|
243
|
+
|
|
244
|
+
### nav-item
|
|
245
|
+
|
|
246
|
+
- Added: `el-nav-item`, a new component: one destination of an `el-nav`. A link with an icon (slot `icon`) and a short text under it, as an entry of a list. `href`, `target` and `rel` are the ones of the link. ([#179](https://github.com/webtides/element-library/issues/179))
|
|
247
|
+
- Added: `current` marks the destination of the current view: the link gets `aria-current="page"`, the colour of the text instead of the muted one, a heavier text and a shape behind its icon. The shape has a border, so it stays where the user forces colours, and the weight marks the destination without a theme.
|
|
248
|
+
- Added: the text is one line: what does not fit is cut with an ellipsis, and the whole text stays in the page for assistive technology.
|
|
249
|
+
- Added: the `badge` slot takes a count or a dot, an `el-badge` as a rule, on the corner of the icon. It is part of the link and comes after the text, so a screen reader reads it with the name of the destination.
|
|
250
|
+
- Added: on a touch screen the link is at least `--el-touch-target` wide and high.
|
|
251
|
+
- Added: in an `el-nav` that shows icons alone (`labels="false"`) the text of the destination is off the screen and stays the name of its link. In a rail a destination is as high as it is, and in a bar a share of the width: the `el-nav` says which in CSS properties that are inherited. ([#181](https://github.com/webtides/element-library/issues/181))
|
|
252
|
+
- Added: as a row of a list (`layout="list"` of the `el-nav`, or `column="list"` in the column of a frame) the text is beside the icon, the row is as high as a control, the shape of the current destination is behind the whole row, and what is in the `badge` slot is at the end of the row. The `el-nav` says so in CSS properties that are inherited: the markup of a destination is the same. ([#199](https://github.com/webtides/element-library/issues/199))
|
|
253
|
+
|
|
254
|
+
### pagination
|
|
255
|
+
|
|
256
|
+
- Added: `href`: the address of a page, with `{page}` in the place of its number (`/notes?page={page}`). With it the pages, the page before and the page after are links, in the server-rendered markup as well: a list that is rendered a page at a time is paged without JavaScript, a page opens in a new tab, and its address can be copied. Without it the pagination is buttons, as before. ([#189](https://github.com/webtides/element-library/issues/189))
|
|
257
|
+
- Added: the current page is a link to its own address with `aria-current="page"`. On the first page the way back, and on the last one the way on, is a link without an address: no stop of the Tab key, and announced as a link that is not available (`role="link"`, `aria-disabled="true"`).
|
|
258
|
+
- Added: a link fires no `pagination-change` and does not set `page`: the address brings the next page. The parts, the sizes, the focus ring and the touch targets are the ones of the buttons.
|
|
259
|
+
|
|
260
|
+
### scroll-to-top
|
|
261
|
+
|
|
262
|
+
- Changed: it scrolls the element around it that scrolls to the top, the content of an `el-app-frame` for example, and the window where there is none. Before, it scrolled the window whatever it was in. `duration` is ignored when that element has `scroll-behavior: smooth`. ([#176](https://github.com/webtides/element-library/issues/176))
|
|
263
|
+
|
|
264
|
+
### segmented-field
|
|
265
|
+
|
|
266
|
+
- Added: `el-segmented-field`, a new component: one choice of a few options as a row of joined buttons, which behaves like a group of radios. It extends `el-radio-field`: a native `<fieldset>`/`<legend>` with an `<input type="radio">` per option, so the one tab stop, the arrow keys, the value in the form, its reset and `required` are native, and the label, the help message and the error message are the ones of every field. `input-change` reports the value. `options` as `el-radio-field` has them: plain strings, or objects with a `value`, a `label` and `disabled`. The whole field can be disabled as well. An option with `icon`, the address of an SVG symbol (`#grid`, `/icons.svg#grid`), shows that icon in the place of its label. The label is then its name for assistive technology and its tooltip. The row looks like an `el-button-group`: two neighbours share one line, only the corners at the two ends are round (at the other ends in a text that runs from right to left), and the option with the keyboard focus lies over its neighbours. The row is never wider than its place: the options share the width then, and a label breaks into lines. The chosen option has a tint of its text colour and a ring inside of its edge, as a pressed `el-button`. The ring is a border, so it stays where the user forces colours. `size` (`small`, `medium`, `large`): an option is as high as an `el-button` of that size. On a touch screen it is at least `--el-touch-target` high and wide. The look is the stylesheet reading the native radios. A server-rendered field does not change when the element takes over, and it submits its value before the script has run. ([#166](https://github.com/webtides/element-library/issues/166))
|
|
267
|
+
- Added: in a container that gives its controls a size, an `el-toolbar`, the field takes it from there, while the page has not set `size` on the field itself. ([#194](https://github.com/webtides/element-library/issues/194))
|
|
268
|
+
|
|
269
|
+
### splitter
|
|
270
|
+
|
|
271
|
+
- Added: `el-splitter`, a new component: the edge between two panes that are beside each other, which the user drags to set the width of one of them. It is the control and sizes nothing itself, as a range does: `value` is the width in pixels, between `min` and `max`, and the layout around it takes it from the events. ([#182](https://github.com/webtides/element-library/issues/182))
|
|
272
|
+
- Added: dragged with a mouse, a finger and a pen. While it is dragged no text is selected, a finger does not scroll the page, and the edge keeps following the pointer over an `iframe`: it captures the pointer and covers the viewport for that time. `:state(dragging)` matches while it is dragged.
|
|
273
|
+
- Added: a stop of the Tab key: the arrow keys move the edge by `step` pixels (`16` by default), `Home` and `End` take it to the least and to the greatest width. To assistive technology it is a separator with a value (`role="separator"`, `aria-valuenow`, `aria-valuemin`, `aria-valuemax`) and with the name of what it sizes (`label`).
|
|
274
|
+
- Added: `splitter-resize` tells of every width while the user changes it, `splitter-resize-end` of the one that stays: when the pointer lets go, and with every key. A width the page sets tells of nothing.
|
|
275
|
+
- Added: `placement` is the edge of its pane the splitter is: `end` (the default, the pane is in front of it) or `start` (the pane is after it). The direction of the drag and of the arrow keys follows it, and the reading direction.
|
|
276
|
+
- Added: the edge is thin, a line from `--el-color-border` and `--el-border-width` (`--el-splitter-line-width` sets another width), and takes the pointer in a wider area around it: `--el-space-2` wide, and at least `--el-touch-target` on a touch screen. Under the pointer, while it is dragged and with the keyboard focus the line is a mark in `--el-color-accent`, and the focus has a ring. The line is a border, which stays where the user forces colours and is there without a theme then.
|
|
277
|
+
|
|
278
|
+
### status-bar
|
|
279
|
+
|
|
280
|
+
- Added: `el-status-bar`, a new component: a narrow line of state at the lower edge of a tool for a desktop, with entries at its start and at its end (slot `end`), which follow the reading direction. An entry is what the page writes: a text, an icon with a name, an `el-button`, an `el-spinner` or an `el-progress-bar`. ([#180](https://github.com/webtides/element-library/issues/180))
|
|
281
|
+
- Added: the bar is lower than a control, seven tenths of `--el-control-height`, with the small text of the tokens (`--el-font-size-sm`), and keeps that height whatever is in it. On a touch screen it is at least `--el-touch-target` high.
|
|
282
|
+
- Added: an `el-button` in the bar is as high as the bar, plain, has its small text, and shows its focus ring inside of itself. The bar does not write to its buttons: it says all of it in CSS properties that are inherited.
|
|
283
|
+
- Added: entries that do not fit do not wrap and do not lie on each other. The entries at the start give way: their group is cut at its end, and the entries at the end stay. A button in the part that is cut shows while it has the keyboard focus.
|
|
284
|
+
- Added: the bar is no live region and has no role. The page marks an entry whose change is announced (`role="status"`).
|
|
285
|
+
- Added: in the footer of an `el-app-frame` the surface of the bar reaches as far as the surface of the region: to the lower edge of the screen and to its sides, while its entries stay clear of them. The line to the content is the one of the region there.
|
|
286
|
+
- Added: a surface from `--el-color-bg`, text in `--el-color-fg-muted`, and a line to the content from `--el-color-border` and `--el-border-width`. The line is a border, which stays where the user forces colours and is there without a theme then.
|
|
287
|
+
|
|
288
|
+
### tab-group
|
|
289
|
+
|
|
290
|
+
- Fixed: a group finds its panels and links also when `name` and `for` were set as properties. It compared the `name` and the `for` attribute with `selected`, and a framework that creates the elements in the browser sets the property where the element has one (Svelte 5, for example after a hot reload of a component): such a panel had no attribute, the group matched none, hid every panel and took `aria-selected` from every link. The group reads the property now and falls back to the attribute, on start and with every selection. `el-tab-panel` and `el-tab-link` do not reflect the two properties. ([#196](https://github.com/webtides/element-library/issues/196))
|
|
291
|
+
- Fixed: a `name` that is a number works: `selected="2"`, `for="2"` and `name="2"` belong together, also after a click on the link. element-js reads such an attribute as a number, and the group compared it with the text of the attribute; it compares texts now. ([#196](https://github.com/webtides/element-library/issues/196))
|
|
292
|
+
|
|
293
|
+
### toast
|
|
294
|
+
|
|
295
|
+
- Fixed: on a phone whose page reaches under the notch and the home indicator (`viewport-fit=cover`), a toast could lie under them. The distance of the stack from an edge (`--el-toast-inset`) is on top of the room the system takes there now, and the stack is no wider than what is between the two sides. Elsewhere nothing changes. ([#183](https://github.com/webtides/element-library/issues/183))
|
|
296
|
+
|
|
297
|
+
### toolbar
|
|
298
|
+
|
|
299
|
+
- Added: `el-toolbar`, a new component: the row of controls over a list or a view. A toolbar for assistive technology (`role="toolbar"`, named by `label`), with what the page writes into it as its controls: `el-button`, `el-button-group`, `el-segmented-field`, and `el-divider` between two groups. `size` and `appearance` are the size and the appearance of the controls that have none of their own: of every `el-button` in the toolbar, also inside of a group, and `size` of an `el-segmented-field`. A toolbar that names none has controls of the medium size and plain buttons. A control that names its own keeps it, the defaults included. The toolbar does not write to its controls: it says both in CSS properties that are inherited. The controls stand in a row with a gap of `--el-space-2`. What is slotted into `end` stands at the end; start and end follow the reading direction. A toolbar with more controls than its width takes breaks into a second line. One stop of the Tab key, as the WAI-ARIA toolbar pattern says: the arrow keys move the focus between the controls and around the ends, Home and End go to the first and the last one, and Tab leaves the toolbar and comes back to the control that had the focus last. The options of an `el-segmented-field` are controls of the toolbar: the left and right arrow keys go through them, Space and the up and down keys choose. In a control that takes text the keys belong to that control. An `el-button` with an `aria-label`, a button with an icon alone, shows that name as a tooltip, for the pointer and for the focus of the keyboard. The tooltips are `el-tooltip` elements in the shadow root of the toolbar (`::part(tooltip)`); the toolbar imports the tooltip, and with it `@floating-ui/dom`. The look is the stylesheets alone: a server-rendered toolbar does not change when the elements take over. The script adds the keyboard and the tooltips. ([#194](https://github.com/webtides/element-library/issues/194))
|
|
300
|
+
|
|
301
|
+
### tooltip
|
|
302
|
+
|
|
303
|
+
- Added: `anchor`: the anchor as an element, for one that an id cannot name: an element in another tree than the tooltip, the light DOM of a component whose shadow root the tooltip is in. A property only, and it comes before `for`. ([#194](https://github.com/webtides/element-library/issues/194))
|
|
304
|
+
- Added: `type` (`'description'` by default, or `'label'`): a tooltip of the type `label` shows the name its anchor already has, of a button with an icon alone for example. It does not describe the anchor (`aria-describedby` is not written) and is hidden from assistive technology, which would read the name twice. ([#194](https://github.com/webtides/element-library/issues/194))
|
|
305
|
+
- Fixed: in Safari a tooltip could stay shown after its anchor had lost the pointer or the focus: `open` was `false`, and the tooltip was still there. The tooltip read its own state back (`states.has('open')`) to know whether there was something to close, and WebKit forgets what was added to the states of an element a moment later, while `:state(open)` still matches. The tooltip keeps a field of its own now.
|
|
306
|
+
|
|
307
|
+
### tree
|
|
308
|
+
|
|
309
|
+
- Added: `el-tree`, a new component: entries that open and close, for folders, categories and a library beside the content. The tree is a list (`role="list"`, named by `label`), every `el-tree-item` in it is an entry, and an entry holds the entries below it, to any depth. To assistive technology it is nested lists of links with a button per branch, not a `role="tree"`: the entries stay links, and they work before the script has run. The readme says why. The keys of the WAI-ARIA tree view pattern, on top of the Tab key: up and down between the entries that are shown, right opens a branch or goes into it, left closes it or goes to the entry above, Home and End. The other way round for left and right in a text that runs from right to left. `--el-tree-indent` is how far the entries of a level stand in from the ones above, `--el-space-4` unset. The tree keeps no state: which branches are open is the `open` attribute of the entries. `tree-item-toggle` of an entry bubbles through the tree. ([#193](https://github.com/webtides/element-library/issues/193))
|
|
310
|
+
|
|
311
|
+
### tree-item
|
|
312
|
+
|
|
313
|
+
- Added: `el-tree-item`, a new component: one entry of an `el-tree`, an item of its list (`role="listitem"`), with the entries below it in a list of their own. It has an icon at the start (`start` slot), its name (`label`, or the `label` slot) and a count at the end (`end`). With `href` the name is a native link whose target is the whole row. An entry that also has entries below it gets a button that opens and closes them, named by the name of the entry, with `aria-expanded`. Without `href`, an entry with entries below it is that button as a whole. `open` is the state of a branch, reflected to the attribute. The stylesheet reads the attribute: a server-rendered entry shows its entries, or hides them, from the first paint. The button, the arrow keys and `toggle()` change it and fire `tree-item-toggle`; setting `open` from a script fires nothing. `current` marks the entry of the page the user is on: `aria-current="page"`, a tint, a bar at the start in the accent colour and a heavier name. The bar is a border, so it stays where the user forces colours. A row is as wide as the tree on every level, and what stands in it is moved in by `--el-tree-indent` per level. A long name breaks, inside of a word where it has to. On a touch screen a row is at least `--el-touch-target` high, and the button of a branch that wide and high. ([#193](https://github.com/webtides/element-library/issues/193))
|
|
314
|
+
|
|
15
315
|
## [0.3.1] - 2026-11-17
|
|
16
316
|
|
|
17
317
|
### button
|
package/README.md
CHANGED
|
@@ -55,62 +55,78 @@ Each theme defines the library's `--el-*` design-token contract at `:root` and u
|
|
|
55
55
|
|
|
56
56
|
## Components
|
|
57
57
|
|
|
58
|
-
| Package | Description
|
|
59
|
-
| -------------------- |
|
|
60
|
-
| accordion | Single Accordion element
|
|
61
|
-
| accordion-group | Accordion group to hold multiple elements
|
|
62
|
-
| amount-field | A simple element to create amount stepping input fields
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
|
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
|
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
58
|
+
| Package | Description | Version |
|
|
59
|
+
| -------------------- | ------------------------------------------------------------------------------- | ------- |
|
|
60
|
+
| accordion | Single Accordion element | `0.1.0` |
|
|
61
|
+
| accordion-group | Accordion group to hold multiple elements | `0.1.0` |
|
|
62
|
+
| amount-field | A simple element to create amount stepping input fields | `0.1.1` |
|
|
63
|
+
| app-bar | The bar at the top of a view: a title, a way back and a few actions | `0.1.0` |
|
|
64
|
+
| app-frame | The frame of an application: five regions around its content, on any screen | `0.1.0` |
|
|
65
|
+
| avatar | The picture of a person or a thing: an image, initials or an icon | `0.1.0` |
|
|
66
|
+
| badge | A short label for a status or a count, with variants and appearances | `0.1.0` |
|
|
67
|
+
| breadcrumb | The trail from the start page to the current page: a landmark with a list | `0.1.0` |
|
|
68
|
+
| breadcrumb-item | One entry of a breadcrumb: a link with href, text without, with a separator | `0.1.0` |
|
|
69
|
+
| button | A themeable button with variants, sizes, icon slots, caret and loading | `0.1.0` |
|
|
70
|
+
| button-group | A row of buttons that reads as one control, a group with a name | `0.1.0` |
|
|
71
|
+
| card | A surface that groups content, with media, header, body and footer regions | `0.1.0` |
|
|
72
|
+
| carousel | A carousel element that wraps the glide.js library for sliding elements | `0.1.1` |
|
|
73
|
+
| checkbox-field | | `0.1.1` |
|
|
74
|
+
| checkbox-group-field | A choice of any number of options: checkboxes in a native fieldset | `0.1.0` |
|
|
75
|
+
| color-field | A colour for a form, picked in the picker of a native colour input | `0.1.0` |
|
|
76
|
+
| combobox-field | A text input with suggestions the browser offers, in a native datalist | `0.1.0` |
|
|
77
|
+
| copy-button | A button that copies a text to the clipboard and shows the outcome | `0.1.0` |
|
|
78
|
+
| date-field | A date, a time or both in the control of the browser, with min, max and step | `0.1.0` |
|
|
79
|
+
| description-list | Rows of a name and its value on a native dl, stacked or side by side | `0.1.0` |
|
|
80
|
+
| dialog | A modal dialog built on the native `<dialog>` element | `0.1.0` |
|
|
81
|
+
| divider | A line between two groups of content, horizontal or vertical | `0.1.0` |
|
|
82
|
+
| drawer | A panel that slides in from an edge of the viewport, built on the dialog | `0.1.0` |
|
|
83
|
+
| dropdown | A dropdown element | `0.1.0` |
|
|
84
|
+
| empty-state | A message in the place of a list that is empty, with an optional action | `0.1.0` |
|
|
85
|
+
| file-field | One or several files for a form, built on a native file input | `0.1.0` |
|
|
86
|
+
| form-field | | `0.1.0` |
|
|
87
|
+
| input-field | | `0.1.0` |
|
|
88
|
+
| lazy-src | | `0.2.0` |
|
|
89
|
+
| list | A list of rows with one density, one line between them and one text line | `0.1.0` |
|
|
90
|
+
| list-item | One row of a list: a start, a title, a line under it, an end, a link as a whole | `0.1.0` |
|
|
91
|
+
| menu | A button that opens a list of actions: a menu the keyboard moves through | `0.1.0` |
|
|
92
|
+
| menu-group | A group of entries in a menu, with a heading | `0.1.0` |
|
|
93
|
+
| menu-item | One entry of a menu: an action, or a link | `0.1.0` |
|
|
94
|
+
| nav | The destinations of an application: a bar on a phone, a rail or a list beside | `0.1.0` |
|
|
95
|
+
| nav-item | One destination of a nav: a link with an icon, a short text and a count | `0.1.0` |
|
|
96
|
+
| notification | An alert with variants, auto-dismiss and a live region, inline or as a toast | `0.1.0` |
|
|
97
|
+
| otp-field | A one-time code in one native input, cleaned as it is entered | `0.1.0` |
|
|
98
|
+
| pagination | The way through a list that is split into pages, with a button per page | `0.1.0` |
|
|
99
|
+
| password-field | A masked password input with an optional show/hide reveal toggle | `0.1.0` |
|
|
100
|
+
| popover | A panel that floats next to an anchor, built on the native popover | `0.1.0` |
|
|
101
|
+
| progress-bar | A track that fills with the progress of a task, with or without a value | `0.1.0` |
|
|
102
|
+
| progress-ring | A ring that closes with the progress of a task, with room for a short text | `0.1.0` |
|
|
103
|
+
| radio-field | A single-choice radio group built on a native fieldset | `0.1.0` |
|
|
104
|
+
| range-field | A number from a span, picked with the thumb of a native range | `0.1.0` |
|
|
105
|
+
| rating-field | A rating from 1 to max as a row of stars, built on a native radio group | `0.1.0` |
|
|
106
|
+
| scroll-to | | `0.1.0` |
|
|
107
|
+
| scroll-to-top | | `0.1.0` |
|
|
108
|
+
| segmented-field | One choice of a few options as a row of joined buttons, on native radios | `0.1.0` |
|
|
109
|
+
| select-field | | `0.1.0` |
|
|
110
|
+
| skeleton | A shape in the place of content that is still loading, with sheen and pulse | `0.1.0` |
|
|
111
|
+
| slider | CSS only slider element to slide child elements | `0.4.3` |
|
|
112
|
+
| spinner | A spinner for a wait of unknown length, sized by the font size | `0.1.0` |
|
|
113
|
+
| splitter | The edge between two panes, which the user drags to set the width of one | `0.1.0` |
|
|
114
|
+
| status-bar | A narrow line of state at the lower edge of a tool for a desktop | `0.1.0` |
|
|
115
|
+
| sticky | | `0.2.0` |
|
|
116
|
+
| svg-use | | `0.1.0` |
|
|
117
|
+
| switch-field | An on/off toggle backed by a native checkbox with role="switch" | `0.1.0` |
|
|
118
|
+
| tab-group | A tab group wraps a list of tab-links and tab-panels and shows one at a time | `0.1.0` |
|
|
119
|
+
| tab-link | A link that serves as a label for one of the tab panels to display that panel | `0.1.0` |
|
|
120
|
+
| tab-panel | The element that contains the content associated with a tab | `0.1.0` |
|
|
121
|
+
| tag | A label for a keyword or a filter, with variants, sizes and a remove button | `0.1.0` |
|
|
122
|
+
| tag-field | A list of entries the user writes, as tags under one name | `0.1.0` |
|
|
123
|
+
| textarea-field | | `0.1.0` |
|
|
124
|
+
| toast | The region where toasts appear: a stack of notifications at an edge | `0.1.0` |
|
|
125
|
+
| toolbar | The controls over a list or a view, with one size, one look and the arrow keys | `0.1.0` |
|
|
126
|
+
| tooltip | A short text that explains its anchor, for the pointer and the keyboard | `0.1.0` |
|
|
127
|
+
| transition-classes | An element that applies classes for various stages of a transition | `0.1.0` |
|
|
128
|
+
| tree | Entries that open and close: nested lists of links with the keys of a tree | `0.1.0` |
|
|
129
|
+
| tree-item | One entry of a tree: an icon, its name, a count, a link, and the entries below | `0.1.0` |
|
|
114
130
|
|
|
115
131
|
<!-- Please move these up once they are implemented
|
|
116
132
|
| modal-element | | TBD |
|