@reservi/theme 2.0.0-beta.1 → 2.0.0-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reservi/theme",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.3",
4
4
  "description": "Tema de Reservi Calendar: design tokens (TailwindCSS 4 @theme) y estilos base.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -379,6 +379,20 @@
379
379
  font-variant-numeric: tabular-nums;
380
380
  padding: 0.1rem 0.25rem;
381
381
  }
382
+ /* Colocacion del numero dentro de la celda (`dayNumberAlign`). La celda es una columna flex, asi
383
+ que el eje transversal es el horizontal y `align-self` es lo que mueve el numero de lado.
384
+ La regla de arriba se queda con `flex-end` como base: asi lo que no cuelga de un `daygrid`
385
+ —las vistas de recursos, por ejemplo— conserva la colocacion de siempre. */
386
+ [data-rsv="daygrid"][data-daynumber-align="start"] [data-rsv="day-number"] {
387
+ align-self: flex-start;
388
+ }
389
+ [data-rsv="daygrid"][data-daynumber-align="center"] [data-rsv="day-number"] {
390
+ align-self: center;
391
+ }
392
+ [data-rsv="daygrid"][data-daynumber-align="end"] [data-rsv="day-number"] {
393
+ align-self: flex-end;
394
+ }
395
+
382
396
  [data-rsv="day"][data-today="true"] [data-rsv="day-number"] {
383
397
  background: var(--color-rsv-primary, #4f46e5);
384
398
  color: var(--color-rsv-primary-fg, #fff);
@@ -674,6 +688,12 @@
674
688
  opacity: 0.6;
675
689
  pointer-events: none;
676
690
  }
691
+ /* La banda no intercepta el puntero —el click tiene que llegar a la columna para
692
+ la parte abierta del día—, así que el cursor se pone en la columna cuando el
693
+ día no abre en absoluto. */
694
+ [data-rsv="tg-col"][data-business="false"] {
695
+ cursor: not-allowed;
696
+ }
677
697
  [data-rsv="resize-handle"] {
678
698
  position: absolute;
679
699
  left: 0;
@@ -36,7 +36,9 @@
36
36
  /* Estados */
37
37
  --color-rsv-now: #d85353;
38
38
  --color-rsv-selection: #f6f0fa;
39
- --color-rsv-nonbusiness: rgba(250, 250, 255, 0.5);
39
+ /* Gris con cuerpo, no un blanco roto: estas franjas tienen que leerse como
40
+ "aqui no se puede", no como un matiz del fondo. */
41
+ --color-rsv-nonbusiness: #f1f2f4;
40
42
 
41
43
  /* Geometría */
42
44
  --radius-rsv: 8px;