@ponti-studios/ui 0.4.2 → 0.4.4
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/README.md +12 -1
- package/package.json +12 -12
- package/src/components/layout/scroll-area.stories.tsx +1 -1
- package/src/styles/index.css +32 -1
package/README.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
The canonical Ponti Studios UI package. It is published from this repository to npm.
|
|
4
4
|
|
|
5
|
+
## Design
|
|
6
|
+
|
|
7
|
+
The design system is documented in `docs/`:
|
|
8
|
+
|
|
9
|
+
- [Foundations](./docs/foundations.md) — color, spacing, radius, typography, elevation, iconography, motion tokens
|
|
10
|
+
- [Primitives](./docs/primitives.md) — component contracts (variants, sizes, states)
|
|
11
|
+
- [Patterns](./docs/patterns.md) — screen composition rules
|
|
12
|
+
- [Review gates](./docs/review-gates.md) — pass/fail review criteria
|
|
13
|
+
|
|
5
14
|
## Release
|
|
6
15
|
|
|
7
16
|
Releases are owned by [release-please](https://github.com/googleapis/release-please), not by hand-edited version numbers or manually pushed tags. The workflow is defined once, in `.github/workflows/publish-ui.yml`, and has three jobs:
|
|
@@ -43,10 +52,12 @@ CI consumers should use a secret-backed npm token with read access.
|
|
|
43
52
|
This package has no build output — every `exports` entry resolves to a file under `src/`. Consumers are expected to transpile the package themselves (Vite, Metro, Next, etc. all do this for workspace/npm packages by default). Tailwind v4 class detection for consumers of `./styles.css` requires an `@source` directive pointing at the installed package's `src/`, e.g.
|
|
44
53
|
|
|
45
54
|
```css
|
|
55
|
+
@import "tailwindcss";
|
|
56
|
+
@import "@ponti-studios/ui/styles.css";
|
|
46
57
|
@source "../../../node_modules/@ponti-studios/ui/src";
|
|
47
58
|
```
|
|
48
59
|
|
|
49
|
-
|
|
60
|
+
**Important:** `./styles.css` uses `@reference "tailwindcss"` (it does not import Tailwind itself). Your project owns the `@import "tailwindcss"` — place it before the UI stylesheet. Omitting it will cause missing CSS variables (e.g. `--tw-shadow-color`) and unresolved utilities.
|
|
50
61
|
|
|
51
62
|
### `./native` subpath
|
|
52
63
|
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ponti-studios/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "Shared UI component library for
|
|
5
|
+
"description": "Shared UI component library for Ponti Studios",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/ponti-studios/
|
|
10
|
-
"directory": "packages/ui"
|
|
9
|
+
"url": "git+https://github.com/ponti-studios/ui.git"
|
|
11
10
|
},
|
|
12
11
|
"files": [
|
|
13
12
|
"src",
|
|
@@ -83,6 +82,7 @@
|
|
|
83
82
|
"dev": "vite",
|
|
84
83
|
"storybook": "style-dictionary build --config src/styles/tokens/style-dictionary.dark-storybook.json && storybook dev -p 6006",
|
|
85
84
|
"check:source": "node src/styles/tokens/scripts/check-source.mjs",
|
|
85
|
+
"test": "vitest --run --config vitest.config.ts",
|
|
86
86
|
"test:a11y": "vitest --run --config vitest.config.ts",
|
|
87
87
|
"tokens:build": "style-dictionary build --config src/styles/tokens/style-dictionary.foundations.json && style-dictionary build --config src/styles/tokens/style-dictionary.light.json && style-dictionary build --config src/styles/tokens/style-dictionary.dark.json && style-dictionary build --config src/styles/tokens/style-dictionary.dark-storybook.json",
|
|
88
88
|
"tokens:check": "pnpm run tokens:build && node src/styles/tokens/scripts/check-foundations.mjs && git diff --exit-code -- src/styles/tokens/generated",
|
|
@@ -110,25 +110,25 @@
|
|
|
110
110
|
"@storybook/addon-themes": "10.5.3",
|
|
111
111
|
"@storybook/addon-vitest": "10.5.3",
|
|
112
112
|
"@storybook/react-vite": "^10.5.3",
|
|
113
|
-
"@tailwindcss/vite": "
|
|
114
|
-
"@types/node": "
|
|
113
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
114
|
+
"@types/node": "^26.1.1",
|
|
115
115
|
"@types/react": "^19.2.17",
|
|
116
116
|
"@types/react-dom": "^19.2.3",
|
|
117
117
|
"@vitejs/plugin-react": "^6.0.3",
|
|
118
118
|
"@vitest/browser": "4.1.10",
|
|
119
119
|
"@vitest/browser-playwright": "4.1.10",
|
|
120
|
-
"oxfmt": "
|
|
121
|
-
"oxlint": "
|
|
122
|
-
"playwright": "
|
|
120
|
+
"oxfmt": "0.61.0",
|
|
121
|
+
"oxlint": "^1.74.0",
|
|
122
|
+
"playwright": "^1.61.1",
|
|
123
123
|
"react": "^19.2.7",
|
|
124
124
|
"react-dom": "^19.2.7",
|
|
125
125
|
"react-native": "0.86.0",
|
|
126
126
|
"storybook": "^10.5.3",
|
|
127
127
|
"style-dictionary": "5.5.0",
|
|
128
|
-
"tailwindcss": "
|
|
128
|
+
"tailwindcss": "^4.3.3",
|
|
129
129
|
"typescript": "6.0.3",
|
|
130
|
-
"vite": "
|
|
131
|
-
"vitest": "
|
|
130
|
+
"vite": "^8.1.5",
|
|
131
|
+
"vitest": "^4.1.10"
|
|
132
132
|
},
|
|
133
133
|
"peerDependencies": {
|
|
134
134
|
"react": "^18.2.0 || ^19.0.0",
|
|
@@ -74,7 +74,7 @@ export const ScreenshotsGallery: Story = {
|
|
|
74
74
|
className="flex aspect-video w-72 shrink-0 items-center justify-center overflow-hidden rounded-xl border"
|
|
75
75
|
style={{ backgroundColor: item.bg }}
|
|
76
76
|
>
|
|
77
|
-
<span className="text-foreground
|
|
77
|
+
<span className="text-foreground text-sm">{item.label}</span>
|
|
78
78
|
</div>
|
|
79
79
|
))}
|
|
80
80
|
</ScrollArea>
|
package/src/styles/index.css
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* DESIGN SYSTEM STYLESHEET — @ponti-studios/ui
|
|
3
|
+
*
|
|
4
|
+
* This file provides the design tokens and shared component styles consumed
|
|
5
|
+
* by your project. It does NOT import Tailwind CSS — your project owns that.
|
|
6
|
+
*
|
|
7
|
+
* Required in your project's entry CSS BEFORE this import:
|
|
8
|
+
*
|
|
9
|
+
* @import "tailwindcss";
|
|
10
|
+
* @import "@ponti-studios/ui/styles.css";
|
|
11
|
+
*
|
|
12
|
+
* If you omit the Tailwind import you may see missing CSS variables
|
|
13
|
+
* (e.g., --tw-shadow-color) or utilities that fail to resolve.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
@reference "tailwindcss";
|
|
2
17
|
@import "./tokens/generated/foundations.css";
|
|
3
18
|
@import "./tokens/generated/light.css";
|
|
4
19
|
@import "./tokens/generated/dark.css" (prefers-color-scheme: dark);
|
|
@@ -128,6 +143,22 @@
|
|
|
128
143
|
@apply flex min-h-9 flex-col justify-center gap-1;
|
|
129
144
|
}
|
|
130
145
|
|
|
146
|
+
.ui-flat-card {
|
|
147
|
+
@apply bg-card border-border rounded-md border p-3;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ui-data-label {
|
|
151
|
+
@apply text-muted-foreground text-xs font-medium uppercase tracking-wider;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ui-data-value {
|
|
155
|
+
@apply text-foreground text-base font-semibold tabular-nums;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.ui-eyebrow {
|
|
159
|
+
@apply text-muted-foreground text-xs font-medium uppercase tracking-widest;
|
|
160
|
+
}
|
|
161
|
+
|
|
131
162
|
@layer base {
|
|
132
163
|
:root {
|
|
133
164
|
color-scheme: light;
|