@ponti-studios/ui 0.4.2 → 0.4.3
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 +9 -0
- package/package.json +12 -12
- package/src/components/layout/scroll-area.stories.tsx +1 -1
- package/src/styles/index.css +16 -0
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:
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ponti-studios/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
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
|
@@ -128,6 +128,22 @@
|
|
|
128
128
|
@apply flex min-h-9 flex-col justify-center gap-1;
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
+
.ui-flat-card {
|
|
132
|
+
@apply bg-card border-border rounded-md border p-3;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.ui-data-label {
|
|
136
|
+
@apply text-muted-foreground text-xs font-medium uppercase tracking-wider;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ui-data-value {
|
|
140
|
+
@apply text-foreground text-base font-semibold tabular-nums;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ui-eyebrow {
|
|
144
|
+
@apply text-muted-foreground text-xs font-medium uppercase tracking-widest;
|
|
145
|
+
}
|
|
146
|
+
|
|
131
147
|
@layer base {
|
|
132
148
|
:root {
|
|
133
149
|
color-scheme: light;
|