@viora-studio/ui-react 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +43 -3
- package/dist/index.d.ts +772 -0
- package/dist/index.js +7872 -0
- package/dist/styles.css +6927 -0
- package/package.json +57 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Viora Studio
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,43 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# @viora-studio/ui-react
|
|
2
|
+
|
|
3
|
+
Shared React UI components and design system for Viora Studio. This package is framework-agnostic and can be consumed by Next.js, Vite or any React application.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @viora-studio/ui-react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Import the stylesheet once in the application entry point or root layout:
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import "@viora-studio/ui-react/styles.css"
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Then import components from the package:
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import { Button, Card, CardContent, CardHeader, CardTitle } from "@viora-studio/ui-react"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Theme
|
|
24
|
+
|
|
25
|
+
The package exports `ThemeProvider` and `useTheme`. Wrap the application with the provider if the application wants to use the shared theme state. The provider toggles the `light` and `dark` classes on the document root and supports `system` preference.
|
|
26
|
+
|
|
27
|
+
## Styling
|
|
28
|
+
|
|
29
|
+
The package ships a compiled Tailwind CSS v4 stylesheet. It includes the shared design tokens, component utilities, Inter Variable font and the component styles generated from `src/components`. Import `styles.css` once. Do not import the source `globals.css` directly from a consuming application.
|
|
30
|
+
|
|
31
|
+
The stylesheet includes Tailwind's base styles. If the consuming application also imports its own Tailwind preflight, ensure the styles are ordered deliberately to avoid duplicate resets.
|
|
32
|
+
|
|
33
|
+
## Development
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pnpm install
|
|
37
|
+
pnpm typecheck
|
|
38
|
+
pnpm build
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Framework integrations
|
|
42
|
+
|
|
43
|
+
This repository contains no application examples, routing, page layouts, Vite setup or Next.js setup. Keep those integrations in the respective template repositories.
|