-
Notifications
You must be signed in to change notification settings - Fork 0
feat: datum-ui v0.2 — monorepo scaffold, component library, tests, storybook, docs #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
dae5ade
feat: datum-ui v0.2 monorepo with component reorganization
yahyafakhroji 270228f
feat: add Typography, Map docs, peer dep docs, per-component exports
yahyafakhroji 99e72fd
refactor: ship uncompiled CSS, fix #16 — version bump to 0.2.0-alpha.8
yahyafakhroji ba3f3c0
chore: release v0.2.0
yahyafakhroji File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,11 @@ | ||
| { | ||
| "$schema": "https://unpkg.com/@changesets/config@2.0.0/schema.json", | ||
| "$schema": "https://unpkg.com/@changesets/config@3/schema.json", | ||
| "changelog": "@changesets/cli/changelog", | ||
| "commit": false, | ||
| "fixed": [], | ||
| "linked": [], | ||
| "access": "public", | ||
| "baseBranch": "main", | ||
| "updateInternalDependencies": "patch", | ||
| "ignore": [ | ||
| "@repo/docs" | ||
| ] | ||
| } | ||
| "ignore": ["@repo/storybook", "@repo/docs"] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@datum-cloud/datum-ui": minor | ||
| --- | ||
|
|
||
| Overhaul CSS architecture: consumers now own their Tailwind setup. Remove DatumProvider in favor of direct ThemeProvider usage. Theme tokens moved from .theme-alpha scoping to :root/.dark. Remove tw-animate-css and tailwind-scrollbar-hide from package deps. Add ./styles export with "style" condition for PostCSS compatibility. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@datum-cloud/datum-ui": patch | ||
| --- | ||
|
|
||
| Fix npm publish lifecycle: restore workspace deps in postpublish instead of postpack so the stripped package.json is used during upload |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@datum-cloud/datum-ui": patch | ||
| --- | ||
|
|
||
| Fix: republish with workspace dependencies correctly stripped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@datum-cloud/datum-ui": patch | ||
| --- | ||
|
|
||
| Add peer dependency documentation to all component doc pages, fix incorrect dependency listings, and add lucide-react guidance to installation docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@datum-cloud/datum-ui": minor | ||
| --- | ||
|
|
||
| Add per-component subpath exports so consumers only install peer deps for components they use (e.g. `@datum-cloud/datum-ui/button`). Includes 50 component entries, grouped exports for date-picker/map/dropzone/chart/form, and updated docs/storybook imports. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "mode": "pre", | ||
| "tag": "alpha", | ||
| "initialVersions": { | ||
| "@repo/docs": "0.0.0", | ||
| "@repo/storybook": "0.0.0", | ||
| "@repo/config": "0.0.0", | ||
| "@datum-cloud/datum-ui": "0.1.0", | ||
| "@repo/shadcn": "0.0.0" | ||
| }, | ||
| "changesets": [ | ||
| "css-architecture-refactor", | ||
| "fix-publish-lifecycle", | ||
| "fix-published-deps", | ||
| "peer-deps-docs", | ||
| "per-component-subpath-exports", | ||
| "rare-dancers-itch", | ||
| "readme-package-managers", | ||
| "typography-map-docs", | ||
| "uncompiled-css-architecture" | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@datum-cloud/datum-ui": minor | ||
| --- | ||
|
|
||
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@datum-cloud/datum-ui": patch | ||
| --- | ||
|
|
||
| Add package README with full component catalog and AI-friendly documentation, update all docs to show multi-package-manager install tabs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@datum-cloud/datum-ui": minor | ||
| --- | ||
|
|
||
| Add Typography component (Title, Text, Paragraph, Link, List, Blockquote, Code), Map docs and Storybook stories |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- | ||
| "@datum-cloud/datum-ui": minor | ||
| --- | ||
|
|
||
| Ship uncompiled CSS instead of compiled Tailwind output (fixes #16) | ||
|
|
||
| - **Breaking:** Grid and NProgress CSS are now separate optional imports (`@datum-cloud/datum-ui/grid`, `@datum-cloud/datum-ui/nprogress`) | ||
| - **Breaking:** Requires Tailwind CSS v4.0.7+ (v4.2.1+ recommended) | ||
| - Removed CSS compilation from build pipeline — raw CSS files are copied to dist | ||
| - Embedded `@source` directive in shipped CSS for zero-config consumer class scanning | ||
| - Pre-expanded grid system `@apply` directives into self-contained CSS | ||
| - Eliminated duplicate Tailwind stylesheets that caused responsive utility conflicts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main] | ||
| push: | ||
| branches: [main] | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| lint: | ||
| name: Lint | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| cache: pnpm | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - run: pnpm lint | ||
|
|
||
| typecheck: | ||
| name: Typecheck | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| cache: pnpm | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - run: pnpm turbo typecheck | ||
|
|
||
| test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| cache: pnpm | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - run: pnpm test | ||
|
|
||
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| needs: [lint, typecheck, test] | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: pnpm/action-setup@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 24 | ||
| cache: pnpm | ||
|
|
||
| - run: pnpm install --frozen-lockfile | ||
|
|
||
| - run: pnpm build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,15 @@ | ||
| .DS_Store | ||
| node_modules | ||
| .turbo | ||
| *.log | ||
| .next | ||
| dist | ||
| dist-ssr | ||
| *.local | ||
| .env | ||
| .cache | ||
| server/dist | ||
| public/dist | ||
| node_modules/ | ||
| dist/ | ||
| storybook-static/ | ||
| .next/ | ||
| .turbo/ | ||
| coverage/ | ||
| *.tsbuildinfo | ||
| .env* | ||
| .source/ | ||
|
|
||
| *.tgz | ||
|
|
||
| .claude/ | ||
| CLAUDE.MD | ||
| /docs/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| auto-install-peers = true | ||
| public-hoist-pattern[]=*storybook* | ||
| engine-strict = true | ||
| auto-install-peers=true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| v24 | ||
| v24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,60 @@ | ||
| { | ||
| // TypeScript — use workspace version (not VS Code's bundled one) | ||
| "typescript.tsdk": "node_modules/typescript/lib", | ||
| "typescript.enablePromptUseWorkspaceTsdk": true, | ||
|
|
||
| // ESLint — flat config support | ||
| "eslint.useFlatConfig": true, | ||
| "eslint.workingDirectories": [ | ||
| { | ||
| "mode": "auto" | ||
| } | ||
| { "pattern": "apps/*" }, | ||
| { "pattern": "packages/*" } | ||
| ], | ||
| "typescript.tsdk": "node_modules/typescript/lib", | ||
| "css.lint.unknownAtRules": "ignore", | ||
| "scss.lint.unknownAtRules": "ignore", | ||
| "less.lint.unknownAtRules": "ignore" | ||
|
|
||
| // Formatting — let ESLint handle it, disable built-in formatters | ||
| "editor.formatOnSave": true, | ||
| "editor.defaultFormatter": "dbaeumer.vscode-eslint", | ||
| "editor.codeActionsOnSave": { | ||
| "source.fixAll.eslint": "explicit" | ||
| }, | ||
|
|
||
| // Tailwind CSS v4 | ||
| "tailwindCSS.experimental.classRegex": [ | ||
| ["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"], | ||
| ["cx\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"] | ||
| ], | ||
| "tailwindCSS.includeLanguages": { | ||
| "typescript": "javascript", | ||
| "typescriptreact": "javascript" | ||
| }, | ||
|
|
||
| // File associations | ||
| "files.associations": { | ||
| "*.css": "tailwindcss" | ||
| }, | ||
|
|
||
| // Search and file exclusions | ||
| "search.exclude": { | ||
| "**/node_modules": true, | ||
| "**/dist": true, | ||
| "**/.next": true, | ||
| "**/.turbo": true, | ||
| "**/storybook-static": true, | ||
| "**/coverage": true, | ||
| "**/.source": true | ||
| }, | ||
| "files.exclude": { | ||
| "**/.turbo": true | ||
| }, | ||
|
|
||
| // Editor defaults for the project | ||
| "editor.tabSize": 2, | ||
| "editor.insertSpaces": true, | ||
|
|
||
| // File nesting for cleaner explorer | ||
| "explorer.fileNesting.enabled": true, | ||
| "explorer.fileNesting.patterns": { | ||
| "package.json": "pnpm-lock.yaml, pnpm-workspace.yaml, .nvmrc, turbo.json, .gitignore, .npmrc", | ||
| "tsconfig.json": "tsconfig.*.json", | ||
| "eslint.config.*": ".eslintignore" | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.