@xosue-utils/actions 0.1.4 → 0.2.1

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 CHANGED
@@ -1,35 +1,45 @@
1
1
  # @xosue-utils/actions
2
2
 
3
- Botones Angular 19 standalone (`text-btn`, `icon-btn`) con estética **flat** y altura fija **32px**.
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 { TextBtnComponent, IconBtnComponent } from '@xosue-utils/actions';
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
- <icon-btn icon="trash-2" color="danger" variant="ghost"></icon-btn>
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
- - Altura siempre `32px` (igual que Entry).
19
- - `IconBtn`: también `width: 32px`, padding `4px`.
20
- - `TextBtn`: padding `4px 8px` (md); sm `2px 4px`; lg `4px 12px`.
21
- - Rounded por defecto: `normal` (`var(--radius-lg)`).
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