@dito-uai/components 5.1.0-alpha.7 → 5.1.0-alpha.70
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 +42 -1
- package/dist/global.css +1 -1
- package/dist/index.cjs +81 -40
- package/dist/index.d.cts +1537 -843
- package/dist/index.d.ts +64 -2240
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +24 -15
- package/dist/ui/alert.d.ts +23 -33
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/avatar.d.ts +4 -124
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/badge.d.ts +4 -148
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/button.d.ts +166 -316
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/card.d.ts +2 -66
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/chips.d.ts +24 -280
- package/dist/ui/chips.d.ts.map +1 -1
- package/dist/ui/collapsible.d.ts +5 -0
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +131 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/go-to-card.d.ts +203 -0
- package/dist/ui/go-to-card.d.ts.map +1 -0
- package/dist/ui/indicator.d.ts +15 -15
- package/dist/ui/indicator.d.ts.map +1 -1
- package/dist/ui/input-description.d.ts +2 -26
- package/dist/ui/input-description.d.ts.map +1 -1
- package/dist/ui/input.d.ts +129 -255
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/internal/dropdown-content.d.ts.map +1 -1
- package/dist/ui/label.d.ts +2 -18
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/loading.d.ts +9 -0
- package/dist/ui/loading.d.ts.map +1 -0
- package/dist/ui/message.d.ts +57 -0
- package/dist/ui/message.d.ts.map +1 -0
- package/dist/ui/popover.d.ts +7 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/progress-bar.d.ts +1 -1
- package/dist/ui/progress-bar.d.ts.map +1 -1
- package/dist/ui/progress.d.ts +9 -27
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/radio.d.ts +98 -4
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/scope.d.ts +4 -108
- package/dist/ui/scope.d.ts.map +1 -1
- package/dist/ui/search.d.ts +60 -124
- package/dist/ui/search.d.ts.map +1 -1
- package/dist/ui/select-card.d.ts +104 -0
- package/dist/ui/select-card.d.ts.map +1 -0
- package/dist/ui/sheets.d.ts +129 -9
- package/dist/ui/sheets.d.ts.map +1 -1
- package/dist/ui/skeleton.d.ts +42 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/status.d.ts +7 -38
- package/dist/ui/status.d.ts.map +1 -1
- package/dist/ui/switch.d.ts +15 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/tabs.d.ts +5 -6
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/text.d.ts +3 -63
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/tip-card.d.ts +77 -0
- package/dist/ui/tip-card.d.ts.map +1 -0
- package/dist/ui/toggle-group.d.ts +11 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle.d.ts +48 -12
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/tooltip.d.ts +10 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/llms.md +646 -0
- package/package.json +104 -40
- package/tailwind-preset.ts +281 -0
- package/tailwind.config.ts +12 -262
- package/dist/ui/form-item.d.ts +0 -16
- package/dist/ui/form-item.d.ts.map +0 -1
- package/dist/ui/form.d.ts +0 -1
- package/dist/ui/form.d.ts.map +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Dito Internet Ltda.
|
|
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 +1,42 @@
|
|
|
1
|
-
# uai
|
|
1
|
+
# Dito UAI — `@dito-uai/components`
|
|
2
|
+
|
|
3
|
+
Biblioteca de componentes React do design system Dito (TypeScript, Tailwind, Radix UI).
|
|
4
|
+
|
|
5
|
+
## Desenvolvimento local
|
|
6
|
+
|
|
7
|
+
1. Na raiz do repositório, execute `yarn` para instalar dependências.
|
|
8
|
+
2. Execute `yarn dev` para abrir o **Storybook** (porta padrão 6006).
|
|
9
|
+
|
|
10
|
+
## Commits
|
|
11
|
+
|
|
12
|
+
Use `yarn cz` e siga o fluxo interativo do Commitizen.
|
|
13
|
+
|
|
14
|
+
## Instalação em aplicações
|
|
15
|
+
|
|
16
|
+
### GitHub Packages (pacote privado)
|
|
17
|
+
|
|
18
|
+
Crie um token com `read:packages` (e `write:packages` se publicar) e adicione em `~/.npmrc`:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
//npm.pkg.github.com/:_authToken=SEU_TOKEN
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Pacote
|
|
25
|
+
|
|
26
|
+
Confira a versão nas [releases](https://github.com/ditointernet/dito-uai/releases) e nas [packages](https://github.com/ditointernet/dito-uai/packages).
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
yarn add @dito-uai/components
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Importe o CSS global quando necessário:
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
import '@dito-uai/components/global.css';
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Contexto para assistentes (Cursor / LLM)
|
|
39
|
+
|
|
40
|
+
O arquivo [`llms.md`](./llms.md) resume a API pública, tokens e padrões. Em projetos consumidores, referencie `@llms.md` ou copie o arquivo; após instalar o pacote, ele pode ser incluído em `node_modules/@dito-uai/components/llms.md` quando publicado com o tarball.
|
|
41
|
+
|
|
42
|
+
Pacotes legados `@ditointernet/uai-*` foram substituídos por `@dito-uai/components`, `@dito-uai/icons`, etc.
|