Skip to content

Commit eae941c

Browse files
Jeffrey Lauwersclaude
andcommitted
docs: bijwerk documentatie voor Container en box-shadow tokens (v5.2.0, v5.3.0)
- README.md: Layout Components 3→4, Container toegevoegd aan tabel en compositie-voorbeelden - docs/README.md: versie bijgewerkt naar 5.3.0, componenttelling 37→41, tests 880→962 - docs/03-components.md: Container sectie toegevoegd aan Layout Components, statistieken bijgewerkt (40→41) - docs/changelog.md: v5.2.0 (box-shadow tokens) en v5.3.0 (Container) toegevoegd - packages/components-react/README.md: Layout Components sectie toegevoegd (Container, Grid, GridItem, Stack), Display & Feedback en ButtonLink/LinkButton aangevuld Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bf7cde4 commit eae941c

File tree

5 files changed

+137
-15
lines changed

5 files changed

+137
-15
lines changed

README.md

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,14 @@ All components are fully typed with TypeScript and include comprehensive JSDoc d
162162

163163
### Current Components
164164

165-
**Layout Components (3)**
165+
**Layout Components (4)**
166166

167-
| Component | HTML/CSS | React | Web Component |
168-
| ------------ | -------- | ----- | ------------- |
169-
| **Grid** | Yes | Yes ||
170-
| **GridItem** | Yes | Yes ||
171-
| **Stack** | Yes | Yes ||
167+
| Component | HTML/CSS | React | Web Component |
168+
| ------------- | -------- | ----- | ------------- |
169+
| **Container** | Yes | Yes ||
170+
| **Grid** | Yes | Yes ||
171+
| **GridItem** | Yes | Yes ||
172+
| **Stack** | Yes | Yes ||
172173

173174
**Content Components (9)**
174175

@@ -228,6 +229,27 @@ See the [Documentation](./docs/) for full component details and specifications.
228229

229230
Components are designed to compose together:
230231

232+
**Layout Components**
233+
234+
```jsx
235+
// React — Container als visueel kader voor gerelateerde content
236+
<Container>
237+
<Heading level={2}>Sectie</Heading>
238+
<Paragraph>Inhoud van de container.</Paragraph>
239+
</Container>
240+
241+
// React — Elevated container met schaduw (bijv. kaart)
242+
<Container elevated as="article">
243+
<Paragraph>Dit is een elevated container.</Paragraph>
244+
</Container>
245+
246+
// React — Grid met Containers als items
247+
<Grid contained>
248+
<GridItem colSpan={8}><Container>Hoofdinhoud</Container></GridItem>
249+
<GridItem colSpan={4}><Container>Sidebar</Container></GridItem>
250+
</Grid>
251+
```
252+
231253
**Content Components**
232254

233255
```jsx

docs/03-components.md

Lines changed: 59 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Components
22

3-
**Last Updated:** March 5, 2026
3+
**Last Updated:** March 6, 2026
44

55
Complete component specifications and guidelines for the Design System Starter Kit.
66

@@ -155,7 +155,61 @@ Components are designed to compose together:
155155

156156
## Layout Components
157157

158-
Layout components bieden structuur voor paginalayouts zonder eigen visuele stijl. Ze zijn pure CSS-utilities.
158+
Layout components bieden structuur voor paginalayouts. Container heeft een visuele stijl; Grid en Stack zijn pure CSS-utilities.
159+
160+
### Container
161+
162+
Visueel kader voor het groeperen van gerelateerde content. Voegt achtergrond, border, border-radius en padding toe. De `elevated` variant voegt een lichte `box-shadow.sm` schaduw toe voor kaarten en panelen.
163+
164+
**HTML/CSS:**
165+
166+
```html
167+
<!-- Standaard container -->
168+
<div class="dsn-container">
169+
<p class="dsn-paragraph">Inhoud van de container.</p>
170+
</div>
171+
172+
<!-- Elevated container (kaart, paneel) -->
173+
<div class="dsn-container dsn-container--elevated">
174+
<p class="dsn-paragraph">Elevated container.</p>
175+
</div>
176+
177+
<!-- Als semantisch article -->
178+
<article class="dsn-container">
179+
<p class="dsn-paragraph">Artikel-inhoud.</p>
180+
</article>
181+
```
182+
183+
**React:**
184+
185+
```tsx
186+
// Standaard
187+
<Container>
188+
<Paragraph>Inhoud van de container.</Paragraph>
189+
</Container>
190+
191+
// Elevated
192+
<Container elevated>
193+
<Paragraph>Elevated container.</Paragraph>
194+
</Container>
195+
196+
// Met semantisch element
197+
<Container as="article">
198+
<Paragraph>Artikel-inhoud.</Paragraph>
199+
</Container>
200+
201+
// Als kader rondom Grid-items
202+
<Grid contained>
203+
<GridItem colSpan={8}><Container>Hoofdinhoud</Container></GridItem>
204+
<GridItem colSpan={4}><Container>Sidebar</Container></GridItem>
205+
</Grid>
206+
```
207+
208+
**Props:** `as` (`div` | `section` | `article` | `aside`, default `div`), `elevated` (boolean, default `false`).
209+
210+
**Design tokens:** `--dsn-container-background-color`, `--dsn-container-border-color`, `--dsn-container-border-radius`, `--dsn-container-border-width`, `--dsn-container-box-shadow`, `--dsn-container-color`, `--dsn-container-padding-block`, `--dsn-container-padding-inline`, `--dsn-container-elevated-box-shadow`.
211+
212+
---
159213

160214
### Grid
161215

@@ -950,12 +1004,12 @@ defineButton('my-custom-button');
9501004

9511005
## Component Statistics
9521006

953-
**Total Components:** 40
1007+
**Total Components:** 41
9541008

9551009
**Implementations:**
9561010

957-
- **HTML/CSS:** 40 components
958-
- **React:** 40 components (962 tests total)
1011+
- **HTML/CSS:** 41 components
1012+
- **React:** 41 components (962 tests total)
9591013
- **Web Component:** 7 components (Button, Heading, Icon, Link, OrderedList, Paragraph, UnorderedList)
9601014

9611015
**Test Coverage:** 962 tests across 46 test suites

docs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Design System Documentation
22

3-
**Version:** 4.9.0
4-
**Last Updated:** March 5, 2026
3+
**Version:** 5.3.0
4+
**Last Updated:** March 6, 2026
55

66
Complete documentation voor het Design System Starter Kit.
77

@@ -83,8 +83,8 @@ Complete documentation voor het Design System Starter Kit.
8383

8484
- **Tokens per configuration:** ~1100 (400 semantic + 700 component)
8585
- **Configurations:** 8 (2 themes × 2 modes × 2 project types)
86-
- **Components:** 37 implemented (9 content + 3 display/feedback + 25 form; HTML/CSS + React)
87-
- **Tests:** 880 across 43 test suites
86+
- **Components:** 41 (4 layout + 9 content + 3 display/feedback + 25 form; HTML/CSS + React)
87+
- **Tests:** 962 across 46 test suites
8888
- **Storybook stories:** 130+
8989

9090
---

docs/changelog.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,37 @@ All notable changes to this project are documented in this file.
66

77
---
88

9+
## Version 5.3.0 (March 6, 2026)
10+
11+
### Container layout component (PR #75, issue #74)
12+
13+
- **Container component** (`dsn-container`) — Visueel kader voor het groeperen van gerelateerde content
14+
- `elevated` variant via `--dsn-container-elevated-box-shadow``box-shadow.sm` (kaarten, panelen, demo-wrappers)
15+
- `as` prop: `div` (default), `section`, `article`, `aside` — semantiek losgekoppeld van stijl
16+
- 9 component tokens: `background-color`, `border-color`, `border-radius`, `border-width`, `box-shadow`, `color`, `padding-block`, `padding-inline`, `elevated.box-shadow`
17+
- React `forwardRef` met `as`-prop casting via `React.Ref<HTMLDivElement>`
18+
- Storybook: Default, Elevated, ElevatedWithContent, AllStates stories
19+
- Stack en Grid stories: placeholder `Box` component vervangen door `Container` als inhoud-items
20+
- HTML/CSS export toegevoegd aan `components-html/package.json`
21+
22+
---
23+
24+
## Version 5.2.0 (March 6, 2026)
25+
26+
### Elevatie box-shadow tokens: sm, md, lg (PR #73, issue #72)
27+
28+
- **Drie semantische schaduw-niveaus**: `sm` (cards), `md` (dropdowns/tooltips), `lg` (modals)
29+
- Elke shadow bestaat uit 3 lagen: directe schaduw + ambient schaduw + spread-only outline (highlight)
30+
- **Kleurtokens** in `colors-light.json` / `colors-dark.json`: `dsn.color.shadow.{direct,ambient,highlight}`
31+
- **Shorthand tokens** in `base.json`: `dsn.box-shadow.{sm,md,lg}` als string met embedded SD-referenties
32+
- SD v3 aanpak: `outputReferences: true` resolvet embedded `{dsn.color.shadow.*}` naar `var(--dsn-color-shadow-*)` in CSS-output
33+
- Light mode: `highlight: transparent` (no-op); Dark mode: `highlight: color-mix(in srgb, white 8%, transparent)`
34+
- Dark mode: `direct` 60%, `ambient` 40% (zwart) — schaduwen bewust minder prominent
35+
- Wireframe thema: `box-shadow.sm/md/lg: none` (alles flat)
36+
- Storybook `TokenTable`: `previewType="shadow"` toont kaartje met shadow, reageert op theme/mode wisseling
37+
38+
---
39+
940
## Version 5.1.0 (March 5, 2026)
1041

1142
### Grid en GridItem layout componenten met 12 kolommen (PR #71, issue #21)

packages/components-react/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,31 @@ function App() {
4545

4646
## Available Components
4747

48+
### Layout Components
49+
50+
- **Container** - Visueel kader voor het groeperen van gerelateerde content (achtergrond, border, padding, optionele schaduw)
51+
- **Grid** - 12-koloms CSS Grid container met gutter, outer margin en optionele max-width
52+
- **GridItem** - Grid child met colSpan (1–12), responsive varianten en fullBleed prop
53+
- **Stack** - Verticale stapeling met consistente ruimte via flexbox + gap (9 space-varianten)
54+
4855
### Content Components
4956

5057
- **Button** - Primary action component with variants and sizes
58+
- **ButtonLink** - Semantisch `<a>`, visueel als Button (navigatie met hoge attentiewaarde)
5159
- **Heading** - Semantic heading component (h1-h6)
5260
- **Icon** - SVG icon component with 45+ icons
5361
- **Link** - Anchor element with external link support
62+
- **LinkButton** - Semantisch `<button>`, visueel als Link (JS-acties met lage attentiewaarde)
5463
- **OrderedList** - Numbered list component
5564
- **Paragraph** - Text paragraph component
5665
- **UnorderedList** - Bulleted list component
5766

67+
### Display & Feedback Components
68+
69+
- **Alert** - Belangrijk bericht met `role="alert"` (4 varianten: info, positive, negative, warning)
70+
- **Note** - Passieve notitie zonder live region (5 varianten incl. neutral)
71+
- **StatusBadge** - Compact inline label met signaalkleur (5 varianten)
72+
5873
### Form Components
5974

6075
- **TextInput** - Single-line text input

0 commit comments

Comments
 (0)