@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.
Files changed (84) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -1
  3. package/dist/global.css +1 -1
  4. package/dist/index.cjs +81 -40
  5. package/dist/index.d.cts +1537 -843
  6. package/dist/index.d.ts +64 -2240
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +24 -15
  9. package/dist/ui/alert.d.ts +23 -33
  10. package/dist/ui/alert.d.ts.map +1 -1
  11. package/dist/ui/avatar.d.ts +4 -124
  12. package/dist/ui/avatar.d.ts.map +1 -1
  13. package/dist/ui/badge.d.ts +4 -148
  14. package/dist/ui/badge.d.ts.map +1 -1
  15. package/dist/ui/button.d.ts +166 -316
  16. package/dist/ui/button.d.ts.map +1 -1
  17. package/dist/ui/card.d.ts +2 -66
  18. package/dist/ui/card.d.ts.map +1 -1
  19. package/dist/ui/checkbox.d.ts +2 -0
  20. package/dist/ui/checkbox.d.ts.map +1 -1
  21. package/dist/ui/chips.d.ts +24 -280
  22. package/dist/ui/chips.d.ts.map +1 -1
  23. package/dist/ui/collapsible.d.ts +5 -0
  24. package/dist/ui/collapsible.d.ts.map +1 -1
  25. package/dist/ui/dropdown-menu.d.ts +131 -0
  26. package/dist/ui/dropdown-menu.d.ts.map +1 -0
  27. package/dist/ui/go-to-card.d.ts +203 -0
  28. package/dist/ui/go-to-card.d.ts.map +1 -0
  29. package/dist/ui/indicator.d.ts +15 -15
  30. package/dist/ui/indicator.d.ts.map +1 -1
  31. package/dist/ui/input-description.d.ts +2 -26
  32. package/dist/ui/input-description.d.ts.map +1 -1
  33. package/dist/ui/input.d.ts +129 -255
  34. package/dist/ui/input.d.ts.map +1 -1
  35. package/dist/ui/internal/dropdown-content.d.ts.map +1 -1
  36. package/dist/ui/label.d.ts +2 -18
  37. package/dist/ui/label.d.ts.map +1 -1
  38. package/dist/ui/loading.d.ts +9 -0
  39. package/dist/ui/loading.d.ts.map +1 -0
  40. package/dist/ui/message.d.ts +57 -0
  41. package/dist/ui/message.d.ts.map +1 -0
  42. package/dist/ui/popover.d.ts +7 -0
  43. package/dist/ui/popover.d.ts.map +1 -0
  44. package/dist/ui/progress-bar.d.ts +1 -1
  45. package/dist/ui/progress-bar.d.ts.map +1 -1
  46. package/dist/ui/progress.d.ts +9 -27
  47. package/dist/ui/progress.d.ts.map +1 -1
  48. package/dist/ui/radio.d.ts +98 -4
  49. package/dist/ui/radio.d.ts.map +1 -1
  50. package/dist/ui/scope.d.ts +4 -108
  51. package/dist/ui/scope.d.ts.map +1 -1
  52. package/dist/ui/search.d.ts +60 -124
  53. package/dist/ui/search.d.ts.map +1 -1
  54. package/dist/ui/select-card.d.ts +104 -0
  55. package/dist/ui/select-card.d.ts.map +1 -0
  56. package/dist/ui/sheets.d.ts +129 -9
  57. package/dist/ui/sheets.d.ts.map +1 -1
  58. package/dist/ui/skeleton.d.ts +42 -0
  59. package/dist/ui/skeleton.d.ts.map +1 -0
  60. package/dist/ui/status.d.ts +7 -38
  61. package/dist/ui/status.d.ts.map +1 -1
  62. package/dist/ui/switch.d.ts +15 -0
  63. package/dist/ui/switch.d.ts.map +1 -0
  64. package/dist/ui/tabs.d.ts +5 -6
  65. package/dist/ui/tabs.d.ts.map +1 -1
  66. package/dist/ui/text.d.ts +3 -63
  67. package/dist/ui/text.d.ts.map +1 -1
  68. package/dist/ui/textarea.d.ts.map +1 -1
  69. package/dist/ui/tip-card.d.ts +77 -0
  70. package/dist/ui/tip-card.d.ts.map +1 -0
  71. package/dist/ui/toggle-group.d.ts +11 -0
  72. package/dist/ui/toggle-group.d.ts.map +1 -0
  73. package/dist/ui/toggle.d.ts +48 -12
  74. package/dist/ui/toggle.d.ts.map +1 -1
  75. package/dist/ui/tooltip.d.ts +10 -0
  76. package/dist/ui/tooltip.d.ts.map +1 -0
  77. package/llms.md +646 -0
  78. package/package.json +104 -40
  79. package/tailwind-preset.ts +281 -0
  80. package/tailwind.config.ts +12 -262
  81. package/dist/ui/form-item.d.ts +0 -16
  82. package/dist/ui/form-item.d.ts.map +0 -1
  83. package/dist/ui/form.d.ts +0 -1
  84. 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.