@adamosuiteservices/ui 2.13.0 → 2.13.2
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/dist/components/ui/file-upload/file-upload.d.ts +11 -3
- package/dist/components/ui/typography/typography.d.ts +1 -1
- package/dist/file-upload.cjs +6 -18
- package/dist/file-upload.js +264 -134
- package/dist/styles.css +1 -1
- package/dist/typography-Bj8oEDuE.cjs +1 -0
- package/dist/typography-MnY0LQoZ.js +50 -0
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +1 -1
- package/docs/components/ui/file-upload.md +882 -0
- package/docs/components/ui/typography.md +48 -8
- package/package.json +1 -1
- package/dist/typography-9EoV0kcN.js +0 -44
- package/dist/typography-DqQZZpkD.cjs +0 -1
|
@@ -21,7 +21,7 @@ import { Typography } from "@adamosuiteservices/ui/typography";
|
|
|
21
21
|
| Prop | Tipo | Default | Descripción |
|
|
22
22
|
| ----------- | ------------------------------------------- | ----------- | --------------------------------------- |
|
|
23
23
|
| `variant` | `"lg" \| "md" \| "sm" \| "xs" \| "caption"` | `"sm"` | Tamaño del texto |
|
|
24
|
-
| `color` | `"default" \| "muted"`
|
|
24
|
+
| `color` | `"default" \| "muted" \| "primary" \| "success" \| "warning" \| "destructive" \| "waiting" \| "secondary"` | `"default"` | Color del texto |
|
|
25
25
|
| `asChild` | `boolean` | `false` | Renderiza como child element (usa Slot) |
|
|
26
26
|
| `className` | `string` | - | Clases CSS adicionales |
|
|
27
27
|
|
|
@@ -41,10 +41,16 @@ import { Typography } from "@adamosuiteservices/ui/typography";
|
|
|
41
41
|
|
|
42
42
|
### Colores
|
|
43
43
|
|
|
44
|
-
| Color
|
|
45
|
-
|
|
|
46
|
-
| `default`
|
|
47
|
-
| `muted`
|
|
44
|
+
| Color | Clase CSS | Uso |
|
|
45
|
+
| ------------- | ------------------------- | -------------------------------------- |
|
|
46
|
+
| `default` | `text-foreground` | Texto principal (default) |
|
|
47
|
+
| `muted` | `text-muted-foreground` | Texto secundario |
|
|
48
|
+
| `primary` | `text-primary` | Texto con color de marca |
|
|
49
|
+
| `success` | `text-success` | Mensajes de éxito, confirmaciones |
|
|
50
|
+
| `warning` | `text-warning` | Advertencias, precauciones |
|
|
51
|
+
| `destructive` | `text-destructive` | Errores, acciones destructivas |
|
|
52
|
+
| `waiting` | `text-waiting` | Estados pendientes, en progreso |
|
|
53
|
+
| `secondary` | `text-secondary-foreground` | Texto secundario alternativo |
|
|
48
54
|
|
|
49
55
|
## Patrones de Uso
|
|
50
56
|
|
|
@@ -169,9 +175,34 @@ import { Typography } from "@adamosuiteservices/ui/typography";
|
|
|
169
175
|
This is secondary text with muted color (muted-foreground).
|
|
170
176
|
</Typography>
|
|
171
177
|
|
|
178
|
+
{/* Primary brand color */}
|
|
179
|
+
<Typography variant="md" color="primary">
|
|
180
|
+
Important information with brand color.
|
|
181
|
+
</Typography>
|
|
182
|
+
|
|
183
|
+
{/* Success messages */}
|
|
184
|
+
<Typography variant="md" color="success">
|
|
185
|
+
✓ Operation completed successfully!
|
|
186
|
+
</Typography>
|
|
187
|
+
|
|
188
|
+
{/* Warning messages */}
|
|
189
|
+
<Typography variant="md" color="warning">
|
|
190
|
+
⚠ Please review this information carefully.
|
|
191
|
+
</Typography>
|
|
192
|
+
|
|
193
|
+
{/* Error messages */}
|
|
194
|
+
<Typography variant="md" color="destructive">
|
|
195
|
+
✕ Error: File could not be uploaded.
|
|
196
|
+
</Typography>
|
|
197
|
+
|
|
198
|
+
{/* Pending states */}
|
|
199
|
+
<Typography variant="md" color="waiting">
|
|
200
|
+
⏳ Processing your request...
|
|
201
|
+
</Typography>
|
|
202
|
+
|
|
172
203
|
{/* Combining with sizes */}
|
|
173
|
-
<Typography variant="lg" color="
|
|
174
|
-
Large heading
|
|
204
|
+
<Typography variant="lg" color="primary">
|
|
205
|
+
Large heading with brand color
|
|
175
206
|
</Typography>
|
|
176
207
|
|
|
177
208
|
<Typography variant="sm" color="muted">
|
|
@@ -249,6 +280,12 @@ import { Typography } from "@adamosuiteservices/ui/typography";
|
|
|
249
280
|
|
|
250
281
|
- **default**: text-foreground - **default**
|
|
251
282
|
- **muted**: text-muted-foreground
|
|
283
|
+
- **primary**: text-primary
|
|
284
|
+
- **success**: text-success
|
|
285
|
+
- **warning**: text-warning
|
|
286
|
+
- **destructive**: text-destructive
|
|
287
|
+
- **waiting**: text-waiting
|
|
288
|
+
- **secondary**: text-secondary-foreground
|
|
252
289
|
|
|
253
290
|
## Accesibilidad
|
|
254
291
|
|
|
@@ -264,7 +301,10 @@ import { Typography } from "@adamosuiteservices/ui/typography";
|
|
|
264
301
|
- **Default element**: `<p>` cuando `asChild=false`
|
|
265
302
|
- **Default variants**: `variant="sm"` y `color="default"`
|
|
266
303
|
- **Data attribute**: `data-slot="typography"` para identificación
|
|
267
|
-
- **Color variants**:
|
|
304
|
+
- **Color variants**: 8 variantes de color para diferentes contextos semánticos:
|
|
305
|
+
- Neutral: default, muted, secondary
|
|
306
|
+
- Brand: primary
|
|
307
|
+
- States: success, warning, destructive, waiting
|
|
268
308
|
- **Extensibilidad**: Combina con utility classes para estilos adicionales (weight, spacing, etc.)
|
|
269
309
|
|
|
270
310
|
## Troubleshooting
|
package/package.json
CHANGED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
-
import { S as d } from "./index-BvLQnI56.js";
|
|
4
|
-
import { c as n } from "./index-CRiPKpXj.js";
|
|
5
|
-
import { c as p } from "./index-BqtVL8d-.js";
|
|
6
|
-
const x = p("", {
|
|
7
|
-
variants: {
|
|
8
|
-
variant: {
|
|
9
|
-
sm: "adm:text-sm",
|
|
10
|
-
md: "adm:text-base",
|
|
11
|
-
lg: "adm:text-lg",
|
|
12
|
-
xs: "adm:text-xs",
|
|
13
|
-
caption: "adm:text-[11px]"
|
|
14
|
-
},
|
|
15
|
-
color: {
|
|
16
|
-
default: "adm:text-foreground",
|
|
17
|
-
muted: "adm:text-muted-foreground"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
defaultVariants: {
|
|
21
|
-
variant: "sm",
|
|
22
|
-
color: "default"
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
function u({
|
|
26
|
-
className: t,
|
|
27
|
-
variant: a,
|
|
28
|
-
color: o,
|
|
29
|
-
asChild: r = !1,
|
|
30
|
-
...m
|
|
31
|
-
}) {
|
|
32
|
-
const s = r ? d : "p";
|
|
33
|
-
return /* @__PURE__ */ e.jsx(
|
|
34
|
-
s,
|
|
35
|
-
{
|
|
36
|
-
"data-slot": "typography",
|
|
37
|
-
className: n(x({ variant: a, color: o, className: t })),
|
|
38
|
-
...m
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
export {
|
|
43
|
-
u as T
|
|
44
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";const n=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-CjyiloO7.cjs"),i=require("./index-DoxiiusW.cjs"),m=require("./index-BTzZJcis.cjs"),u=m.cva("",{variants:{variant:{sm:"adm:text-sm",md:"adm:text-base",lg:"adm:text-lg",xs:"adm:text-xs",caption:"adm:text-[11px]"},color:{default:"adm:text-foreground",muted:"adm:text-muted-foreground"}},defaultVariants:{variant:"sm",color:"default"}});function x({className:t,variant:e,color:a,asChild:r=!1,...s}){const o=r?d.Slot:"p";return n.jsxRuntimeExports.jsx(o,{"data-slot":"typography",className:i.cn(u({variant:e,color:a,className:t})),...s})}exports.Typography=x;
|