@sofya-ds/react 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/README.md +40 -0
- package/dist/index.cjs +4866 -0
- package/dist/index.css +3 -0
- package/dist/index.d.cts +570 -0
- package/dist/index.d.ts +570 -0
- package/dist/index.js +4700 -0
- package/package.json +76 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @sofya-ds/react
|
|
2
|
+
|
|
3
|
+
React design system package for Sofya.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @sofya-ds/react
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Se voce tambem quiser consumir os tokens diretamente no app, instale o pacote complementar:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add @sofya-ds/tokens
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import "@sofya-ds/react/styles.css";
|
|
21
|
+
import { Button, Logo, SofyaProvider, Text } from "@sofya-ds/react";
|
|
22
|
+
|
|
23
|
+
export function App() {
|
|
24
|
+
return (
|
|
25
|
+
<SofyaProvider>
|
|
26
|
+
<Logo variant="mono" size={52} monoColor="#08194D" />
|
|
27
|
+
<Button>Entrar</Button>
|
|
28
|
+
<Text size="h2" variant="gradient">
|
|
29
|
+
Titulo com gradiente oficial da marca
|
|
30
|
+
</Text>
|
|
31
|
+
</SofyaProvider>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Includes
|
|
37
|
+
|
|
38
|
+
- Components like `Button`, `Badge`, `Card`, `Checkbox`, `Icon`, `Input`, `InputOTP`, `Link`, `Logo`, `Surface` and `Text`
|
|
39
|
+
- `SofyaProvider` for theme application
|
|
40
|
+
- Distributed stylesheet at `@sofya-ds/react/styles.css`
|