@xosue-utils/actions 0.1.3 → 0.2.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 +28 -18
- package/fesm2022/xosue-utils-actions.mjs +507 -9
- package/fesm2022/xosue-utils-actions.mjs.map +1 -1
- package/lib/badge/badge.component.d.ts +12 -0
- package/lib/capsule/capsule.component.d.ts +30 -0
- package/lib/chip/chip.component.d.ts +14 -0
- package/lib/divider/divider.component.d.ts +7 -0
- package/lib/index.d.ts +8 -0
- package/lib/progress-bar/progress-bar.component.d.ts +9 -0
- package/lib/segmented-control/segmented-control.component.d.ts +22 -0
- package/lib/spinner/spinner.component.d.ts +9 -0
- package/lib/ui-interactive.model.d.ts +5 -1
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -1,35 +1,45 @@
|
|
|
1
1
|
# @xosue-utils/actions
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Componentes de acción Angular 19 standalone con estética **Cupertino** (pills suaves, scale 0.98, ripple suave). Altura de botones fija **32px**.
|
|
4
|
+
|
|
5
|
+
## Componentes
|
|
6
|
+
|
|
7
|
+
| Selector | Uso |
|
|
8
|
+
|----------|-----|
|
|
9
|
+
| `text-btn` | Botón con label/icono |
|
|
10
|
+
| `icon-btn` | Botón solo icono 32×32 |
|
|
11
|
+
| `capsule` | Badge/pill de estado |
|
|
12
|
+
| `chip` | Chip seleccionable / removable |
|
|
13
|
+
| `segmented-control` | Control segmentado iOS |
|
|
14
|
+
| `progress-bar` | Barra 0–100 o indeterminate |
|
|
15
|
+
| `badge` | Contador / dot overlay |
|
|
16
|
+
| `divider` | Separador hairline |
|
|
17
|
+
| `spinner` | Activity indicator CSS |
|
|
4
18
|
|
|
5
19
|
## Uso
|
|
6
20
|
|
|
7
21
|
```ts
|
|
8
|
-
import {
|
|
22
|
+
import {
|
|
23
|
+
TextBtnComponent,
|
|
24
|
+
CapsuleComponent,
|
|
25
|
+
ChipComponent,
|
|
26
|
+
SegmentedControlComponent,
|
|
27
|
+
} from '@xosue-utils/actions';
|
|
9
28
|
```
|
|
10
29
|
|
|
11
30
|
```html
|
|
12
31
|
<text-btn label="Guardar" icon="save" color="primary"></text-btn>
|
|
13
|
-
<
|
|
32
|
+
<capsule label="Pagado" tone="paid"></capsule>
|
|
33
|
+
<chip label="Tag" removable (removed)="..."></chip>
|
|
34
|
+
<segmented-control [options]="opts" [(value)]="tab"></segmented-control>
|
|
14
35
|
```
|
|
15
36
|
|
|
16
37
|
## Diseño
|
|
17
38
|
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
- Flat: sin `box-shadow`, sin `scale` en active; hover/active vía CSS vars.
|
|
23
|
-
|
|
24
|
-
## Colores (host)
|
|
25
|
-
|
|
26
|
-
El host debe definir variables como `--btn-primary-*`, `--success-*`, `--error-*`, etc. La librería **no** hardcodea colores.
|
|
27
|
-
|
|
28
|
-
## Desarrollo local
|
|
29
|
-
|
|
30
|
-
```json
|
|
31
|
-
"@xosue-utils/actions": "file:../xosue-utils/actions"
|
|
32
|
-
```
|
|
39
|
+
- Rounded por defecto botones: `medium` (`var(--radius-xl)`).
|
|
40
|
+
- Capsule: `full` + tonos soft.
|
|
41
|
+
- Soft press `scale(0.98)` + ripple suave.
|
|
42
|
+
- Colores **solo** CSS vars / `color-mix` (sin `#hex`).
|
|
33
43
|
|
|
34
44
|
## Build
|
|
35
45
|
|