Skip to content

Commit 1bfaa4c

Browse files
committed
feat: add peer dependency docs to all component pages
Add a Dependencies section to every component doc page (53 files) listing the required peer packages with install commands. Components with no external deps explicitly state they need only React and Tailwind CSS. Also includes: - Update installation.mdx with component peer dependency model and lucide-react guidance - Fix map.mdx to list correct react-leaflet deps (was @vis.gl) - Fix autocomplete.mdx to include missing cmdk dep - Fix calendar-date-picker.mdx to include missing date-fns dep - Add *.tgz to .gitignore to prevent tarball artifacts - Add try/catch error handling to fix-dts-imports.mjs execSync - Remove stale path comments from time-range-picker components - Add @tailwindcss/node and @tailwindcss/oxide as explicit devDeps - Use --config-loader native for tsdown build compatibility
1 parent bb6c858 commit 1bfaa4c

150 files changed

Lines changed: 1007 additions & 98 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/pre.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"mode": "pre",
3+
"tag": "alpha",
4+
"initialVersions": {
5+
"@repo/docs": "0.0.0",
6+
"@repo/storybook": "0.0.0",
7+
"@repo/config": "0.0.0",
8+
"@datum-cloud/datum-ui": "0.1.0",
9+
"@repo/shadcn": "0.0.0"
10+
},
11+
"changesets": [
12+
"rare-dancers-itch"
13+
]
14+
}

.changeset/rare-dancers-itch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@datum-cloud/datum-ui": minor
3+
---
4+
5+
Complete restructure of the datum-ui package from a flat component library into a scalable monorepo-based design system with a two-layer architecture (shadcn primitives + datum components), full test suite, Storybook explorer, and Fumadocs documentation site

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ coverage/
88
.env*
99
.source/
1010

11+
*.tgz
12+
1113
.claude/
1214
CLAUDE.MD
1315
/docs/

apps/docs/content/docs/components/base/alert.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import { Alert, AlertTitle, AlertDescription } from '@/components/ui'
99

1010
The Alert component displays short, important messages to the user. It supports seven semantic variants for different contexts (default, secondary, outline, destructive, success, info, warning) and an optional close button for dismissible alerts.
1111

12+
## Dependencies
13+
14+
No additional dependencies required — this component uses only React and Tailwind CSS.
15+
1216
## Usage
1317

1418
<ComponentPreview name="Basic Alert">

apps/docs/content/docs/components/base/badge.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import { Badge } from '@/components/ui'
99

1010
Badge is a lightweight inline element used to display short labels, status indicators, categories, or tags. It supports nine semantic types and three visual themes, making it adaptable for a wide range of use cases such as status flags, counters, and categorization labels.
1111

12+
## Dependencies
13+
14+
No additional dependencies required — this component uses only React and Tailwind CSS.
15+
1216
## Usage
1317

1418
<ComponentPreview name="Basic Badge">

apps/docs/content/docs/components/base/breadcrumb.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ description: A navigational trail showing the user's current location within a h
77

88
Breadcrumb renders a horizontal list of links representing the user's current path within the application hierarchy. It follows the WAI-ARIA breadcrumb pattern with `nav[aria-label="breadcrumb"]` and `aria-current="page"` on the current page. Built on Radix UI's Slot for polymorphic link rendering.
99

10+
## Dependencies
11+
12+
This component requires the following packages:
13+
14+
```bash
15+
npm install @radix-ui/react-slot
16+
```
17+
1018
## Usage
1119

1220
```tsx

apps/docs/content/docs/components/base/button-group.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description: Group related buttons together with consistent spacing and styling.
77

88
Re-exported from shadcn/ui. Groups related buttons together.
99

10+
## Dependencies
11+
12+
No additional dependencies required — this component uses only React and Tailwind CSS.
13+
1014
## Usage
1115

1216
```tsx

apps/docs/content/docs/components/base/button.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ import { Button } from '@/components/ui'
99

1010
The Button component supports multiple visual types (primary, secondary, tertiary, quaternary, danger, warning, success) combined with themes (solid, outline, light, borderless, link) for flexible styling. It includes loading states, icon support, and full-width layout.
1111

12+
## Dependencies
13+
14+
This component requires the following packages:
15+
16+
```bash
17+
npm install @radix-ui/react-slot
18+
```
19+
1220
## Usage
1321

1422
<ComponentPreview name="Basic Button">

apps/docs/content/docs/components/base/calendar.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ import { Calendar } from '@/components/ui'
99

1010
The `Calendar` component renders an interactive month calendar. It supports single-date selection, date ranges, outside-day display, and multiple months. Built on `react-day-picker` v4 with Datum design tokens applied to navigation, day cells, and range highlighting.
1111

12+
## Dependencies
13+
14+
This component requires the following packages:
15+
16+
```bash
17+
npm install react-day-picker
18+
```
19+
1220
## Usage
1321

1422
<ComponentPreview name="Basic Calendar">

apps/docs/content/docs/components/base/card.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ import { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter }
99

1010
The Card component provides a styled container for grouping related content. It extends the shadcn Card with Datum-specific styling and includes sub-components for structured layouts: `CardHeader`, `CardTitle`, `CardDescription`, `CardContent`, and `CardFooter`.
1111

12+
## Dependencies
13+
14+
No additional dependencies required — this component uses only React and Tailwind CSS.
15+
1216
## Usage
1317

1418
<ComponentPreview name="Basic Card">

0 commit comments

Comments
 (0)