Commit 90f4951
authored
feat!: data tables, activity indicator + loading buttons, and category reorg
### Highlights
- **Data tables** — new `nldd-table` + `nldd-table-row` bring column-aligned layouts built on the existing cells. Columns are a CSS grid track list that every row shares through subgrid, a `header` slot pins the column headers, and rows are individually selectable. The table is always a boxed surface with a `base` or `tinted` background and full-bleed dividers; overflowing tables inside `nldd-rich-text` adopt the same look.
- **Activity indicator** — `nldd-progress` becomes `nldd-activity-indicator`, now defaulting to an inline, icon-sized `currentColor` ring that scales like an icon, with a `timing` choice between the 1000 ms anti-flash delay and an instant fade-in.
- **Loading buttons** — `nldd-button` and `nldd-icon-button` gain a `loading` state that overlays a centered `nldd-activity-indicator`: the label is hidden without a width jump, and the control stays focusable while it announces `aria-busy` and blocks activation.
- **Reorganized categories** — `menu` moves to **Actions** and **Lists & Menus** becomes **Lists & Tables**, making room for the new table family (import paths and Storybook nav change — see Breaking).
- **Two new icons** — `book` (aliases `guide`, `read`) and `lightbulb` (alias `idea`).
### Added
- **`nldd-table` + `nldd-table-row`**: a `columns` grid-track list applied once and shared by every row via subgrid for true column alignment; reuses `nldd-cell` (generic cells default to full width inside a table); a `header` slot rendered first with `columnheader` roles; per-row `selected` styling; an empty state ("Geen items"); and keyboard focus when the table scrolls horizontally. Always a boxed surface — `background="base"` (default) or `"tinted"`, full-bleed row dividers, inline padding on the rows.
- **`nldd-button` / `nldd-icon-button`**: a `loading` boolean that overlays a centered `nldd-activity-indicator`, hides the label without shifting width, sets `aria-busy`, blocks activation while staying focusable, and matches the control's size and color.
- **`nldd-activity-indicator`** (renamed from `nldd-progress`): a new default inline indicator — an icon-sized `currentColor` ring whose stroke scales with `size` (the `nldd-icon` scale, default `28`). A new `timing` (`'default' | 'instant'`, like `nldd-tooltip`) keeps the 1000 ms anti-flash delay or skips straight to the fade-in. `show-text` (default off) replaces `no-label`, with the accessible name always present via `aria-label`. `text`, `translations`, `complete`, and the overridable default slot are retained.
- **Cells**: `hide-below` / `hide-above` accept named breakpoints, resolved against the surrounding list/table width.
- **`nldd-rich-text`**: `<table>` elements are styled to match `nldd-table` (rounded boxed frame, full-bleed dividers, edge-inset cells).
- **Icons**: `book` (aliases `guide`, `read`) and `lightbulb` (alias `idea`).
- **Tokens**: a shared `--semantics-tables-*` range (border color/width, row padding, column gap, row min-height, selected-row colors) used by `nldd-table` and the rich-text tables.
- **`nldd-progress-bar` / `nldd-progress-circle`**: the indeterminate indicator now carries the same 1px token-colored highlight border as the determinate segment-indicators.
### Breaking
- **Component categories moved.** Import paths change: `…/lists-and-menus/*` → `…/lists-and-tables/*`, and `menu` moves to `…/actions/menu`. Storybook nav follows (`Components/Lists & Menus/*` → `Components/Lists & Tables/*`, `Menu` → `Components/Actions/Menu`).
- **`nldd-progress` → `nldd-activity-indicator`.** The element, class (`NLDDProgress` → `NLDDActivityIndicator`), and translation key are renamed with no alias. `no-label` is replaced by `show-text` (the label is now hidden by default).
- **Progress `segment` → `segment-indicator`.** `nldd-progress-bar-segment` → `nldd-progress-bar-segment-indicator` (and the circle equivalent); exported classes `NLDDProgress{Bar,Circle}Segment` → `…SegmentIndicator`; and the `--components-progress-*-segment-*` custom properties gain `-indicator`.
- **Surface tokens renamed** (same values) so the default variant is named alongside `tinted`:
- `--semantics-surfaces-background-color` → `--semantics-surfaces-base-background-color`
- `--semantics-surfaces-border-color` → `--semantics-surfaces-base-border-color`
### Fixed
- **`nldd-rich-text`**: the host now fills its container's width so a slotted grid resolves its `1fr` tracks in Firefox (Chrome/Safari already did).
- **`nldd-code-viewer`**: the copy button no longer sticks to the corner — it scrolls with the code.1 parent 4589dd6 commit 90f4951
150 files changed
Lines changed: 3011 additions & 1017 deletions
File tree
- .storybook
- src
- assets/styles
- components
- _foundations
- actions
- button
- icon-button
- split-button
- toolbar
- content
- code-viewer
- icon
- icons
- image
- rich-text
- foundations/breakpoints
- inputs
- code-editor
- combo-box
- layout
- app-view
- page-sections/simple-section
- page
- popover
- sheet
- split-views
- bar-split-view
- side-by-side-split-view
- split-view-pane
- stacked-split-view
- window
- lists-and-tables
- cells
- cell
- description-cell
- drag-handle-cell
- icon-cell
- spacer-cell
- text-cell
- timeline-track-cell
- title-cell
- list-item
- list
- table
- status-and-feedback
- activity-indicator
- badge
- banner
- modal-dialog
- progress-bar
- progress-circle
- progress
- docs
- utilities
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
12 | 45 | | |
13 | 46 | | |
14 | 47 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | 258 | | |
259 | | - | |
260 | | - | |
| 259 | + | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
264 | | - | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
265 | 269 | | |
266 | 270 | | |
267 | | - | |
268 | | - | |
| 271 | + | |
| 272 | + | |
269 | 273 | | |
270 | 274 | | |
271 | | - | |
272 | | - | |
| 275 | + | |
| 276 | + | |
273 | 277 | | |
274 | 278 | | |
275 | | - | |
276 | | - | |
| 279 | + | |
| 280 | + | |
277 | 281 | | |
278 | 282 | | |
279 | | - | |
280 | | - | |
| 283 | + | |
| 284 | + | |
281 | 285 | | |
282 | 286 | | |
283 | | - | |
284 | | - | |
| 287 | + | |
| 288 | + | |
285 | 289 | | |
286 | 290 | | |
287 | | - | |
288 | | - | |
| 291 | + | |
| 292 | + | |
289 | 293 | | |
290 | 294 | | |
291 | | - | |
292 | | - | |
| 295 | + | |
| 296 | + | |
293 | 297 | | |
294 | 298 | | |
295 | | - | |
296 | | - | |
| 299 | + | |
| 300 | + | |
297 | 301 | | |
298 | 302 | | |
299 | 303 | | |
| |||
359 | 363 | | |
360 | 364 | | |
361 | 365 | | |
362 | | - | |
363 | | - | |
364 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
365 | 369 | | |
366 | 370 | | |
367 | 371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
869 | 869 | | |
870 | 870 | | |
871 | 871 | | |
872 | | - | |
873 | | - | |
| 872 | + | |
| 873 | + | |
874 | 874 | | |
875 | 875 | | |
876 | 876 | | |
| |||
1034 | 1034 | | |
1035 | 1035 | | |
1036 | 1036 | | |
1037 | | - | |
| 1037 | + | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | 1040 | | |
| |||
1076 | 1076 | | |
1077 | 1077 | | |
1078 | 1078 | | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
1079 | 1091 | | |
1080 | 1092 | | |
1081 | 1093 | | |
| |||
1111 | 1123 | | |
1112 | 1124 | | |
1113 | 1125 | | |
1114 | | - | |
| 1126 | + | |
1115 | 1127 | | |
1116 | 1128 | | |
1117 | 1129 | | |
| |||
1305 | 1317 | | |
1306 | 1318 | | |
1307 | 1319 | | |
1308 | | - | |
| 1320 | + | |
1309 | 1321 | | |
1310 | | - | |
| 1322 | + | |
1311 | 1323 | | |
1312 | 1324 | | |
1313 | 1325 | | |
| |||
1331 | 1343 | | |
1332 | 1344 | | |
1333 | 1345 | | |
1334 | | - | |
| 1346 | + | |
1335 | 1347 | | |
1336 | 1348 | | |
1337 | 1349 | | |
| |||
1500 | 1512 | | |
1501 | 1513 | | |
1502 | 1514 | | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
| 1515 | + | |
| 1516 | + | |
| 1517 | + | |
1506 | 1518 | | |
1507 | 1519 | | |
1508 | 1520 | | |
| |||
1514 | 1526 | | |
1515 | 1527 | | |
1516 | 1528 | | |
1517 | | - | |
| 1529 | + | |
1518 | 1530 | | |
1519 | 1531 | | |
1520 | 1532 | | |
| |||
1642 | 1654 | | |
1643 | 1655 | | |
1644 | 1656 | | |
1645 | | - | |
| 1657 | + | |
1646 | 1658 | | |
1647 | 1659 | | |
1648 | 1660 | | |
| |||
1671 | 1683 | | |
1672 | 1684 | | |
1673 | 1685 | | |
1674 | | - | |
| 1686 | + | |
1675 | 1687 | | |
1676 | 1688 | | |
1677 | | - | |
| 1689 | + | |
1678 | 1690 | | |
1679 | 1691 | | |
1680 | 1692 | | |
| |||
1739 | 1751 | | |
1740 | 1752 | | |
1741 | 1753 | | |
1742 | | - | |
| 1754 | + | |
1743 | 1755 | | |
1744 | 1756 | | |
1745 | 1757 | | |
| |||
0 commit comments