liv-components 0.0.0-stage → 0.1.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 CHANGED
@@ -1,3 +1,26 @@
1
- # Temporary Holding Version
1
+ # liv-components
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Librería de componentes Angular y *tokens* de diseño del sistema LIV (liquidación del impuesto vehicular).
4
+
5
+ ## Instalación
6
+
7
+ ```bash
8
+ npm install liv-components
9
+ ```
10
+
11
+ Requiere Angular 21 y Tailwind CSS 4 en la aplicación.
12
+
13
+ ## Tokens de diseño
14
+
15
+ Importa el tema después de Tailwind en la hoja global de la aplicación:
16
+
17
+ ```css
18
+ @import 'tailwindcss';
19
+ @import 'liv-components/styles/theme.css';
20
+ ```
21
+
22
+ El tema define colores (`--color-text-primary`, `--color-status-success`…), tipografía (`--text-body-md`, `--text-heading-h1`…) y sombras (`--shadow-elevation-md`, `--shadow-focus-ring`…), con los mismos nombres que los estilos de Figma. Anula la paleta, los tamaños de texto y las sombras por defecto de Tailwind, así que solo existen los tokens del sistema.
23
+
24
+ ## Componentes
25
+
26
+ Todavía no hay componentes publicados. Cada uno tendrá el mismo nombre, variantes y propiedades que en el archivo de diseño de Figma.
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ //# sourceMappingURL=liv-components.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"liv-components.mjs","sources":["../../../projects/liv-components/src/liv-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;AAEG"}
package/package.json CHANGED
@@ -1,6 +1,42 @@
1
1
  {
2
2
  "name": "liv-components",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Librería de componentes y tokens de diseño del sistema LIV (impuesto vehicular).",
5
+ "license": "UNLICENSED",
6
+ "keywords": [
7
+ "angular",
8
+ "components",
9
+ "design-tokens",
10
+ "tailwindcss"
11
+ ],
12
+ "peerDependencies": {
13
+ "@angular/common": "^21.2.0",
14
+ "@angular/core": "^21.2.0",
15
+ "tailwindcss": "^4.3.0"
16
+ },
17
+ "dependencies": {
18
+ "tslib": "^2.3.0"
19
+ },
20
+ "exports": {
21
+ "./styles/theme.css": {
22
+ "style": "./styles/theme.css",
23
+ "default": "./styles/theme.css"
24
+ },
25
+ "./package.json": {
26
+ "default": "./package.json"
27
+ },
28
+ ".": {
29
+ "types": "./types/liv-components.d.ts",
30
+ "default": "./fesm2022/liv-components.mjs"
31
+ }
32
+ },
33
+ "publishConfig": {
34
+ "access": "public"
35
+ },
36
+ "sideEffects": [
37
+ "*.css"
38
+ ],
39
+ "module": "fesm2022/liv-components.mjs",
40
+ "typings": "types/liv-components.d.ts",
41
+ "type": "module"
6
42
  }
@@ -0,0 +1,98 @@
1
+ /*
2
+ * @liv/ui — tokens de diseño.
3
+ *
4
+ * Transcritos de los estilos locales del archivo de Figma LIV-Diseño (página 01 Fundamentos) el
5
+ * 2026-11-01, con los mismos nombres: el estilo `text/primary` es el token `--color-text-primary` y la
6
+ * utilidad `text-text-primary`. No se editan a mano: un cambio se hace primero en Figma y luego se
7
+ * regenera este archivo.
8
+ *
9
+ * Los valores por defecto de Tailwind para color, tamaño de texto y sombra se anulan, así que solo
10
+ * existen los tokens del proyecto (docs/arquitectura/01 §11).
11
+ */
12
+ @theme {
13
+ --color-*: initial;
14
+ --text-*: initial;
15
+ --shadow-*: initial;
16
+
17
+ /* Color · texto */
18
+ --color-text-primary: #0f172a;
19
+ --color-text-secondary: #475569;
20
+ --color-text-muted: #64748b;
21
+ --color-text-disabled: #94a3b8;
22
+ --color-text-inverse: #ffffff;
23
+ --color-text-link: #1d4ed8;
24
+
25
+ /* Color · fondos */
26
+ --color-bg-canvas: #f8fafc;
27
+ --color-bg-surface: #ffffff;
28
+ --color-bg-subtle: #f1f5f9;
29
+ --color-bg-inverse: #0f172a;
30
+ --color-bg-overlay: rgb(15 23 42 / 0.5);
31
+
32
+ /* Color · bordes */
33
+ --color-border-default: #e2e8f0;
34
+ --color-border-strong: #cbd5e1;
35
+ --color-border-focus: #2563eb;
36
+
37
+ /* Color · acción */
38
+ --color-action-primary: #1d4ed8;
39
+ --color-action-primary-hover: #1e40af;
40
+ --color-action-primary-pressed: #1e3a8a;
41
+ --color-action-primary-subtle: #eff6ff;
42
+
43
+ /* Color · estados */
44
+ --color-status-success: #15803d;
45
+ --color-status-success-subtle: #f0fdf4;
46
+ --color-status-warning: #b45309;
47
+ --color-status-warning-subtle: #fffbeb;
48
+ --color-status-danger: #b91c1c;
49
+ --color-status-danger-subtle: #fef2f2;
50
+ --color-status-info: #0369a1;
51
+ --color-status-info-subtle: #f0f9ff;
52
+
53
+ /* Tipografía */
54
+ --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
55
+ --font-mono: 'JetBrains Mono', ui-monospace, monospace;
56
+
57
+ --text-heading-h1: 24px;
58
+ --text-heading-h1--line-height: 32px;
59
+ --text-heading-h1--font-weight: 600;
60
+ --text-heading-h2: 20px;
61
+ --text-heading-h2--line-height: 28px;
62
+ --text-heading-h2--font-weight: 600;
63
+ --text-heading-h3: 16px;
64
+ --text-heading-h3--line-height: 24px;
65
+ --text-heading-h3--font-weight: 600;
66
+ --text-body-lg: 16px;
67
+ --text-body-lg--line-height: 24px;
68
+ --text-body-lg--font-weight: 400;
69
+ --text-body-md: 14px;
70
+ --text-body-md--line-height: 20px;
71
+ --text-body-md--font-weight: 400;
72
+ --text-body-md-strong: 14px;
73
+ --text-body-md-strong--line-height: 20px;
74
+ --text-body-md-strong--font-weight: 600;
75
+ --text-body-sm: 12px;
76
+ --text-body-sm--line-height: 16px;
77
+ --text-body-sm--font-weight: 400;
78
+ --text-label-md: 14px;
79
+ --text-label-md--line-height: 20px;
80
+ --text-label-md--font-weight: 500;
81
+ --text-label-sm: 12px;
82
+ --text-label-sm--line-height: 16px;
83
+ --text-label-sm--font-weight: 500;
84
+ --text-button-md: 14px;
85
+ --text-button-md--line-height: 20px;
86
+ --text-button-md--font-weight: 600;
87
+ /* code/sm usa además font-mono */
88
+ --text-code-sm: 12px;
89
+ --text-code-sm--line-height: 16px;
90
+ --text-code-sm--font-weight: 400;
91
+
92
+ /* Efectos */
93
+ --shadow-elevation-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
94
+ --shadow-elevation-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
95
+ --shadow-elevation-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
96
+ --shadow-elevation-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
97
+ --shadow-focus-ring: 0 0 0 3px rgb(37 99 235 / 0.4);
98
+ }
@@ -0,0 +1,2 @@
1
+
2
+ export { };