Skip to content

Commit ebab655

Browse files
committed
.
1 parent f897df9 commit ebab655

34 files changed

Lines changed: 983 additions & 654 deletions

.changeset/bright-icons-glow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@baseui.sh/react": minor
3+
---
4+
5+
Adopt Phosphor Icons as the canonical production icon dependency, migrate built-in component glyphs to Phosphor, add semantic and full-library icon entry points, and preserve circular spinner geometry.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Support and usage questions
4-
url: https://github.com/baseui-sh/baseui/discussions
4+
url: https://github.com/wundercorp/baseui/discussions
55
about: Ask implementation questions in Discussions.
66
- name: Security report
77
url: mailto:security@baseui.sh

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.19.0

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.19.0

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,17 @@ Tokens and icons are independently consumable:
6262

6363
```tsx
6464
import { baseUITokens } from "@baseui.sh/react/tokens";
65-
import { Icon } from "@baseui.sh/react/icons";
65+
import { Icon, PhosphorIcon } from "@baseui.sh/react/icons";
66+
import { RocketLaunchIcon } from "@baseui.sh/react/phosphor";
6667
import "@baseui.sh/react/tokens.css";
68+
69+
<Icon name="settings" />
70+
<PhosphorIcon icon={RocketLaunchIcon} label="Launch" />
6771
```
6872

6973
## Design invariants
7074

71-
- Every visible corner uses the shared 4 px radius token.
75+
- Every interface surface uses the shared 4 px radius token; intrinsically circular indicators use the dedicated circle token.
7276
- Semantic tokens are the public styling contract.
7377
- Red is reserved for primary action, focus, current navigation, and selected state.
7478
- Monospace is reserved for code, identifiers, commands, measurements, and machine-readable values.

THIRD_PARTY_NOTICES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Third-party notices
2+
3+
## Phosphor Icons
4+
5+
baseui.sh depends on `@phosphor-icons/react`, copyright Phosphor Icons contributors, distributed under the MIT License. The dependency retains its own license and attribution in the installed package.

apps/docs/src/components/BaseUIShowcase.tsx

Lines changed: 27 additions & 26 deletions
Large diffs are not rendered by default.

apps/docs/vite.config.ts

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
1-
import { defineConfig } from "vite";
1+
import { fileURLToPath, URL } from "node:url";
22
import react from "@vitejs/plugin-react";
3+
import { defineConfig } from "vite";
4+
5+
const source = (relativePath: string) =>
6+
fileURLToPath(new URL(`../../packages/react/src/${relativePath}`, import.meta.url));
37

48
export default defineConfig({
59
plugins: [react()],
10+
resolve: {
11+
alias: [
12+
{ find: /^@baseui\.sh\/react\/styles\.css$/, replacement: source("styles.css") },
13+
{ find: /^@baseui\.sh\/react\/tokens\.css$/, replacement: source("tokens.css") },
14+
{ find: /^@baseui\.sh\/react\/phosphor\/ssr$/, replacement: source("phosphor-ssr.ts") },
15+
{ find: /^@baseui\.sh\/react\/phosphor$/, replacement: source("phosphor.ts") },
16+
{ find: /^@baseui\.sh\/react\/tokens$/, replacement: source("tokens.ts") },
17+
{ find: /^@baseui\.sh\/react\/icons$/, replacement: source("icons.tsx") },
18+
{ find: /^@baseui\.sh\/react\/foundations$/, replacement: source("foundations/index.ts") },
19+
{ find: /^@baseui\.sh\/react\/actions$/, replacement: source("actions/index.ts") },
20+
{ find: /^@baseui\.sh\/react\/forms$/, replacement: source("forms/index.ts") },
21+
{ find: /^@baseui\.sh\/react\/data-display$/, replacement: source("data-display/index.ts") },
22+
{ find: /^@baseui\.sh\/react\/feedback$/, replacement: source("feedback/index.ts") },
23+
{ find: /^@baseui\.sh\/react\/navigation$/, replacement: source("navigation/index.ts") },
24+
{ find: /^@baseui\.sh\/react\/disclosure$/, replacement: source("disclosure/index.ts") },
25+
{ find: /^@baseui\.sh\/react\/overlays$/, replacement: source("overlays/index.ts") },
26+
{ find: /^@baseui\.sh\/react\/patterns$/, replacement: source("patterns/index.ts") },
27+
{ find: /^@baseui\.sh\/react\/hooks$/, replacement: source("hooks/index.ts") },
28+
{ find: /^@baseui\.sh\/react$/, replacement: source("index.ts") },
29+
],
30+
},
631
});

clean.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
repository_root="$(cd "$(dirname "$0")" && pwd)"
6+
cd "$repository_root"
7+
8+
rm -rf node_modules
9+
rm -rf apps/docs/node_modules
10+
rm -rf examples/vite-react/node_modules
11+
rm -rf packages/react/node_modules
12+
13+
npm cache verify
14+
15+
echo
16+
echo "Workspace installation directories were removed."
17+
echo "Run 'npm install' after dependency changes."
18+
echo "Run 'npm ci' only when package-lock.json is already synchronized."

docs/design-language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The red product accent identifies the primary action, keyboard focus, selected n
2020

2121
### Compact geometry
2222

23-
The global radius is exactly `4px`. It applies to controls, cards, overlays, status marks, avatars, progress tracks, code surfaces, and navigation states. Product code must not introduce alternate radii.
23+
The global surface radius is exactly `4px`. It applies to controls, cards, overlays, status marks, avatars, progress tracks, code surfaces, and navigation states. Intrinsically circular indicators such as spinners use the dedicated `--bui-radius-circle` token. Product code must not introduce alternate surface radii.
2424

2525
### Technical detail where it belongs
2626

0 commit comments

Comments
 (0)