@boostdev/design-system-components 0.1.13 → 0.1.14
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/AGENTS.md +1 -1
- package/README.md +1 -1
- package/dist/client.cjs +54 -50
- package/dist/client.css +495 -511
- package/dist/client.d.cts +5 -3
- package/dist/client.d.ts +5 -3
- package/dist/client.js +54 -50
- package/dist/index.cjs +54 -50
- package/dist/index.css +495 -511
- package/dist/index.d.cts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +54 -50
- package/package.json +4 -2
- package/src/components/interaction/Button/Button.mdx +73 -0
- package/src/components/interaction/Button/Button.module.css +12 -20
- package/src/components/interaction/Button/Button.stories.tsx +0 -1
- package/src/components/interaction/Command/Command.mdx +28 -0
- package/src/components/interaction/Command/Command.module.css +2 -1
- package/src/components/interaction/Command/Command.stories.tsx +3 -3
- package/src/components/interaction/Dialog/Dialog.mdx +57 -0
- package/src/components/interaction/Dialog/Dialog.module.css +1 -1
- package/src/components/interaction/Dialog/Dialog.stories.tsx +0 -1
- package/src/components/interaction/Drawer/Drawer.mdx +35 -0
- package/src/components/interaction/Drawer/Drawer.module.css +3 -9
- package/src/components/interaction/Drawer/Drawer.stories.tsx +3 -3
- package/src/components/interaction/Drawer/Drawer.tsx +5 -3
- package/src/components/interaction/DropdownMenu/DropdownMenu.mdx +40 -0
- package/src/components/interaction/DropdownMenu/DropdownMenu.stories.tsx +5 -5
- package/src/components/interaction/Popover/Popover.mdx +34 -0
- package/src/components/interaction/Popover/Popover.stories.tsx +3 -3
- package/src/components/interaction/Rating/Rating.mdx +38 -0
- package/src/components/interaction/Rating/Rating.stories.tsx +0 -1
- package/src/components/interaction/Toast/Toast.mdx +78 -0
- package/src/components/interaction/Toast/Toast.module.css +21 -7
- package/src/components/interaction/Toast/Toast.stories.tsx +0 -1
- package/src/components/interaction/form/Checkbox/Checkbox.mdx +57 -0
- package/src/components/interaction/form/Checkbox/Checkbox.stories.tsx +0 -1
- package/src/components/interaction/form/Combobox/Combobox.mdx +37 -0
- package/src/components/interaction/form/Combobox/Combobox.stories.tsx +0 -1
- package/src/components/interaction/form/FileInput/FileInput.mdx +38 -0
- package/src/components/interaction/form/FileInput/FileInput.stories.tsx +0 -1
- package/src/components/interaction/form/FormInput/FormInput.mdx +54 -0
- package/src/components/interaction/form/FormInput/FormInput.stories.tsx +0 -1
- package/src/components/interaction/form/NumberInput/NumberInput.mdx +38 -0
- package/src/components/interaction/form/NumberInput/NumberInput.stories.tsx +0 -1
- package/src/components/interaction/form/Radio/Radio.mdx +60 -0
- package/src/components/interaction/form/Radio/Radio.module.css +24 -11
- package/src/components/interaction/form/Radio/Radio.stories.tsx +5 -5
- package/src/components/interaction/form/Radio/Radio.tsx +6 -2
- package/src/components/interaction/form/Select/Select.mdx +58 -0
- package/src/components/interaction/form/Select/Select.stories.tsx +0 -1
- package/src/components/interaction/form/Slider/Slider.mdx +58 -0
- package/src/components/interaction/form/Slider/Slider.stories.tsx +0 -1
- package/src/components/interaction/form/Switch/Switch.mdx +61 -0
- package/src/components/interaction/form/Switch/Switch.module.css +6 -10
- package/src/components/interaction/form/Switch/Switch.stories.tsx +0 -1
- package/src/components/interaction/form/Textarea/Textarea.mdx +41 -0
- package/src/components/interaction/form/Textarea/Textarea.stories.tsx +0 -1
- package/src/components/layout/ButtonGroup/ButtonGroup.mdx +47 -0
- package/src/components/layout/ButtonGroup/ButtonGroup.module.css +10 -10
- package/src/components/layout/ButtonGroup/ButtonGroup.stories.tsx +1 -2
- package/src/components/layout/Card/Card.mdx +58 -0
- package/src/components/layout/Card/Card.stories.tsx +0 -1
- package/src/components/layout/IconWrapper/IconWrapper.mdx +39 -0
- package/src/components/layout/IconWrapper/IconWrapper.stories.tsx +0 -1
- package/src/components/layout/SectionHeader/SectionHeader.mdx +38 -0
- package/src/components/layout/SectionHeader/SectionHeader.stories.tsx +0 -1
- package/src/components/ui/Accordion/Accordion.mdx +40 -0
- package/src/components/ui/Accordion/Accordion.stories.tsx +0 -1
- package/src/components/ui/Alert/Alert.mdx +63 -0
- package/src/components/ui/Alert/Alert.module.css +3 -7
- package/src/components/ui/Alert/Alert.stories.tsx +0 -1
- package/src/components/ui/Avatar/Avatar.mdx +53 -0
- package/src/components/ui/Avatar/Avatar.module.css +4 -8
- package/src/components/ui/Avatar/Avatar.stories.tsx +0 -1
- package/src/components/ui/Badge/Badge.mdx +62 -0
- package/src/components/ui/Badge/Badge.module.css +4 -10
- package/src/components/ui/Badge/Badge.stories.tsx +0 -1
- package/src/components/ui/Breadcrumb/Breadcrumb.mdx +36 -0
- package/src/components/ui/Breadcrumb/Breadcrumb.stories.tsx +0 -1
- package/src/components/ui/Calendar/Calendar.mdx +34 -0
- package/src/components/ui/Calendar/Calendar.stories.tsx +0 -1
- package/src/components/ui/Carousel/Carousel.mdx +31 -0
- package/src/components/ui/Carousel/Carousel.stories.tsx +0 -1
- package/src/components/ui/DescriptionList/DescriptionList.mdx +28 -0
- package/src/components/ui/DescriptionList/DescriptionList.stories.tsx +0 -1
- package/src/components/ui/Link/Link.mdx +44 -0
- package/src/components/ui/Link/Link.module.css +2 -5
- package/src/components/ui/Link/Link.stories.tsx +0 -1
- package/src/components/ui/Loading/Loading.mdx +52 -0
- package/src/components/ui/Loading/Loading.stories.tsx +0 -1
- package/src/components/ui/NotificationBanner/NotificationBanner.mdx +45 -0
- package/src/components/ui/NotificationBanner/NotificationBanner.module.css +3 -7
- package/src/components/ui/NotificationBanner/NotificationBanner.stories.tsx +2 -2
- package/src/components/ui/Pagination/Pagination.mdx +39 -0
- package/src/components/ui/Pagination/Pagination.module.css +3 -7
- package/src/components/ui/Pagination/Pagination.stories.tsx +0 -1
- package/src/components/ui/Progress/Progress.mdx +52 -0
- package/src/components/ui/Progress/Progress.module.css +1 -3
- package/src/components/ui/Progress/Progress.stories.tsx +0 -1
- package/src/components/ui/ProgressCircle/ProgressCircle.mdx +46 -0
- package/src/components/ui/ProgressCircle/ProgressCircle.stories.tsx +0 -1
- package/src/components/ui/Separator/Separator.mdx +29 -0
- package/src/components/ui/Separator/Separator.stories.tsx +0 -1
- package/src/components/ui/Skeleton/Skeleton.mdx +36 -0
- package/src/components/ui/Skeleton/Skeleton.stories.tsx +0 -1
- package/src/components/ui/SkipLink/SkipLink.mdx +34 -0
- package/src/components/ui/SkipLink/SkipLink.stories.tsx +0 -1
- package/src/components/ui/Table/Table.mdx +38 -0
- package/src/components/ui/Table/Table.stories.tsx +0 -1
- package/src/components/ui/Tabs/Tabs.mdx +40 -0
- package/src/components/ui/Tabs/Tabs.module.css +2 -5
- package/src/components/ui/Tabs/Tabs.stories.tsx +0 -1
- package/src/components/ui/Tooltip/Tooltip.mdx +43 -0
- package/src/components/ui/Tooltip/Tooltip.module.css +2 -5
- package/src/components/ui/Tooltip/Tooltip.stories.tsx +6 -6
- package/src/components/ui/Typography/Typography.mdx +41 -0
- package/src/components/ui/Typography/Typography.stories.tsx +0 -1
- package/src/static/logo.svg +8 -0
- package/src/stories/Introduction.css +17 -0
- package/src/stories/Introduction.mdx +129 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import {Meta} from '@storybook/blocks';
|
|
2
|
+
import {Button} from "../components/interaction/Button/index.ts";
|
|
3
|
+
import componentsPackageJson from '../../package.json';
|
|
4
|
+
import foundationPackageJson from '../../node_modules/@boostdev/design-system-foundation/package.json';
|
|
5
|
+
import './Introduction.css';
|
|
6
|
+
import {ButtonGroup} from "../components/layout/ButtonGroup/index.ts";
|
|
7
|
+
import {Card} from "../components/layout/Card/index.ts";
|
|
8
|
+
|
|
9
|
+
<Meta title="Introduction"/>
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
<div>
|
|
14
|
+
<div>
|
|
15
|
+
<img src="../../src/static/logo.svg" alt="BoostDev logo" width={200}/>
|
|
16
|
+
<div className="title">Design System Foundation {foundationPackageJson.version} &<br/> Components {componentsPackageJson.version}</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div className="main-description">
|
|
19
|
+
<p>
|
|
20
|
+
Accessible, token-driven React components. Zero extra runtime.
|
|
21
|
+
</p>
|
|
22
|
+
<ButtonGroup variant="content">
|
|
23
|
+
<Button variant="secondary" href="https://www.npmjs.com/package/@boostdev/foundation">DS Foundation</Button>
|
|
24
|
+
<Button variant="secondary" href="https://www.npmjs.com/package/@boostdev/components">DS Components</Button>
|
|
25
|
+
</ButtonGroup>
|
|
26
|
+
</div>
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Installation
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
pnpm add @boostdev/components @boostdev/design-system-foundation
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Import the CSS once at your app root:
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
import '@boostdev/design-system-foundation/css';
|
|
39
|
+
import '@boostdev/components/css';
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
For **Next.js / RSC**, use the `/client` subpath:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
import {Button, Card} from '@boostdev/components/client';
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Components
|
|
51
|
+
|
|
52
|
+
<div className="utl-main-grid grid">
|
|
53
|
+
|
|
54
|
+
<Card className="card">
|
|
55
|
+
<strong>UI</strong>
|
|
56
|
+
<div className="cardContent">
|
|
57
|
+
Badge · Typography · Alert · Avatar · Loading · Skeleton · Separator · Tooltip · Progress ·
|
|
58
|
+
ProgressCircle · Tabs · Breadcrumb · Accordion · Pagination · Link · Table · DescriptionList ·
|
|
59
|
+
NotificationBanner · SkipLink · Carousel · Calendar
|
|
60
|
+
</div>
|
|
61
|
+
</Card>
|
|
62
|
+
|
|
63
|
+
<Card className="card">
|
|
64
|
+
<strong>Interaction</strong>
|
|
65
|
+
<div className="cardContent">
|
|
66
|
+
Button · Dialog · Toast · Rating · Popover · DropdownMenu · Command · Drawer
|
|
67
|
+
</div>
|
|
68
|
+
</Card>
|
|
69
|
+
|
|
70
|
+
<Card className="card">
|
|
71
|
+
<strong>Form</strong>
|
|
72
|
+
<div className="cardContent">
|
|
73
|
+
FormInput · Checkbox · Radio · Switch · Select · Textarea · Slider · NumberInput · FileInput · Combobox
|
|
74
|
+
</div>
|
|
75
|
+
</Card>
|
|
76
|
+
|
|
77
|
+
<Card className="card">
|
|
78
|
+
<strong>Layout</strong>
|
|
79
|
+
<div className="cardContent">
|
|
80
|
+
ButtonGroup · Card · SectionHeader · IconWrapper
|
|
81
|
+
</div>
|
|
82
|
+
</Card>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## Design tokens
|
|
88
|
+
|
|
89
|
+
All components consume tokens from `@boostdev/design-system-foundation`. Override semantic tokens to retheme
|
|
90
|
+
everything at once:
|
|
91
|
+
|
|
92
|
+
```css
|
|
93
|
+
@layer tokens.override {
|
|
94
|
+
:root {
|
|
95
|
+
--color_cta: var(--BASE__color--orange);
|
|
96
|
+
--color_on-cta: var(--BASE__color--white);
|
|
97
|
+
--color_interactive: var(--BASE__color--orange);
|
|
98
|
+
--color_active: var(--BASE__color--orange);
|
|
99
|
+
--color_on-active: var(--BASE__color--white);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Dark mode is applied via `[data-theme="dark"]` or `prefers-color-scheme`. Use the **Theme** toolbar button at the
|
|
105
|
+
top of Storybook to toggle.
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## MCP server
|
|
110
|
+
|
|
111
|
+
The design system exposes a live MCP server at `https://ds.boostdev.nl/api/mcp`.
|
|
112
|
+
AI coding agents can connect to it to query component props and tokens without reading source files directly.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
<table>
|
|
116
|
+
<thead>
|
|
117
|
+
<tr><th>Tool</th><th>Description</th></tr>
|
|
118
|
+
</thead>
|
|
119
|
+
<tbody>
|
|
120
|
+
<tr><td>`ds_get_component`</td><td>Full props interface for a named component</td></tr>
|
|
121
|
+
<tr><td>`ds_list_components`</td><td>All components grouped by category</td></tr>
|
|
122
|
+
<tr><td>`ds_list_tokens`</td><td>Design tokens, filterable by group</td></tr>
|
|
123
|
+
<tr><td>`ds_search`</td><td>Keyword search across components and tokens</td></tr>
|
|
124
|
+
<tr><td>`ds_get_guide`</td><td>Returns the AGENTS.md usage guide</td></tr>
|
|
125
|
+
</tbody>
|
|
126
|
+
</table>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
</div>
|