@ng-solid/mcp 22.3.0 → 22.3.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/data/design-system.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "22.4.
|
|
3
|
+
"version": "22.4.1",
|
|
4
4
|
"generatedAt": "snapshot",
|
|
5
5
|
"framework": {
|
|
6
6
|
"name": "angular",
|
|
7
7
|
"version": "^21.0.0"
|
|
8
8
|
},
|
|
9
9
|
"packages": {
|
|
10
|
-
"designSystem": "22.4.
|
|
10
|
+
"designSystem": "22.4.1",
|
|
11
11
|
"icons": "22.1.1",
|
|
12
12
|
"core": "22.0.8"
|
|
13
13
|
},
|
|
@@ -1809,6 +1809,23 @@
|
|
|
1809
1809
|
"[iconOnly]=\"expr\""
|
|
1810
1810
|
]
|
|
1811
1811
|
},
|
|
1812
|
+
{
|
|
1813
|
+
"name": "iconSize",
|
|
1814
|
+
"kind": "input",
|
|
1815
|
+
"required": false,
|
|
1816
|
+
"alias": null,
|
|
1817
|
+
"bindingName": "iconSize",
|
|
1818
|
+
"type": "number | undefined",
|
|
1819
|
+
"values": null,
|
|
1820
|
+
"default": "undefined",
|
|
1821
|
+
"defaultKind": "literal",
|
|
1822
|
+
"transform": "numberOrUndefined",
|
|
1823
|
+
"transformKind": "custom",
|
|
1824
|
+
"acceptsAttribute": false,
|
|
1825
|
+
"docs": "Explicit `ns-icon` size override. Defaults to 14 for `size=\"xs\"` and 16\nfor every other size when left unset.",
|
|
1826
|
+
"inheritedFrom": null,
|
|
1827
|
+
"binding": "[iconSize]=\"iconSize\""
|
|
1828
|
+
},
|
|
1812
1829
|
{
|
|
1813
1830
|
"name": "loading",
|
|
1814
1831
|
"kind": "input",
|
|
@@ -1852,11 +1869,12 @@
|
|
|
1852
1869
|
"required": false,
|
|
1853
1870
|
"alias": null,
|
|
1854
1871
|
"bindingName": "size",
|
|
1855
|
-
"type": "
|
|
1872
|
+
"type": "NsButtonSize",
|
|
1856
1873
|
"values": [
|
|
1857
1874
|
"sm",
|
|
1858
1875
|
"md",
|
|
1859
|
-
"lg"
|
|
1876
|
+
"lg",
|
|
1877
|
+
"xs"
|
|
1860
1878
|
],
|
|
1861
1879
|
"default": "'md'",
|
|
1862
1880
|
"defaultKind": "literal",
|
|
@@ -2013,6 +2031,12 @@
|
|
|
2013
2031
|
"kind": "expression",
|
|
2014
2032
|
"className": "ns-button--unselected",
|
|
2015
2033
|
"expression": "selected() === false"
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
"input": "size",
|
|
2037
|
+
"value": "xs",
|
|
2038
|
+
"kind": "enum",
|
|
2039
|
+
"className": "ns-button--xs"
|
|
2016
2040
|
}
|
|
2017
2041
|
],
|
|
2018
2042
|
"modifierMap": {
|
|
@@ -2026,6 +2050,7 @@
|
|
|
2026
2050
|
"true": "ns-button--loading"
|
|
2027
2051
|
},
|
|
2028
2052
|
"size": {
|
|
2053
|
+
"xs": "ns-button--xs",
|
|
2029
2054
|
"sm": "ns-button--sm",
|
|
2030
2055
|
"md": "ns-button--md",
|
|
2031
2056
|
"lg": "ns-button--lg"
|
|
@@ -2091,10 +2116,12 @@
|
|
|
2091
2116
|
"--ns-component-button-min-height",
|
|
2092
2117
|
"--ns-component-button-min-height-lg",
|
|
2093
2118
|
"--ns-component-button-min-height-sm",
|
|
2119
|
+
"--ns-component-button-min-height-xs",
|
|
2094
2120
|
"--ns-component-button-min-width",
|
|
2095
2121
|
"--ns-component-button-padding-block",
|
|
2096
2122
|
"--ns-component-button-padding-inline",
|
|
2097
2123
|
"--ns-component-button-radius",
|
|
2124
|
+
"--ns-component-button-radius-xs",
|
|
2098
2125
|
"--ns-component-button-secondary-background",
|
|
2099
2126
|
"--ns-component-button-secondary-background-active",
|
|
2100
2127
|
"--ns-component-button-secondary-background-hover",
|
|
@@ -2140,7 +2167,8 @@
|
|
|
2140
2167
|
"danger",
|
|
2141
2168
|
"dark",
|
|
2142
2169
|
"selected",
|
|
2143
|
-
"loading"
|
|
2170
|
+
"loading",
|
|
2171
|
+
"sizes"
|
|
2144
2172
|
],
|
|
2145
2173
|
"pitfalls": [
|
|
2146
2174
|
"No tiene inputs `color`, `label` ni `theme` -- fueron retirados. El texto del botón se proyecta como contenido (`<ns-button>Guardar</ns-button>`), no se pasa por input.",
|
|
@@ -6660,6 +6688,12 @@
|
|
|
6660
6688
|
"staticClasses": [],
|
|
6661
6689
|
"elements": [
|
|
6662
6690
|
"ns-dropdown__description",
|
|
6691
|
+
"ns-dropdown__dot",
|
|
6692
|
+
"ns-dropdown__dot--danger",
|
|
6693
|
+
"ns-dropdown__dot--neutral",
|
|
6694
|
+
"ns-dropdown__dot--primary",
|
|
6695
|
+
"ns-dropdown__dot--success",
|
|
6696
|
+
"ns-dropdown__dot--warning",
|
|
6663
6697
|
"ns-dropdown__empty",
|
|
6664
6698
|
"ns-dropdown__error",
|
|
6665
6699
|
"ns-dropdown__label",
|
|
@@ -6750,6 +6784,12 @@
|
|
|
6750
6784
|
},
|
|
6751
6785
|
"tokens": [
|
|
6752
6786
|
"--ns-component-dropdown-description-color",
|
|
6787
|
+
"--ns-component-dropdown-dot-danger",
|
|
6788
|
+
"--ns-component-dropdown-dot-neutral",
|
|
6789
|
+
"--ns-component-dropdown-dot-primary",
|
|
6790
|
+
"--ns-component-dropdown-dot-size",
|
|
6791
|
+
"--ns-component-dropdown-dot-success",
|
|
6792
|
+
"--ns-component-dropdown-dot-warning",
|
|
6753
6793
|
"--ns-component-dropdown-empty-color",
|
|
6754
6794
|
"--ns-component-dropdown-empty-padding",
|
|
6755
6795
|
"--ns-component-dropdown-empty-size",
|
|
@@ -6812,14 +6852,15 @@
|
|
|
6812
6852
|
"docs": "",
|
|
6813
6853
|
"category": "Formularios",
|
|
6814
6854
|
"summary": "Selecciona una o varias opciones desde un panel con búsqueda.",
|
|
6815
|
-
"snippet": "<ns-dropdown [(ngModel)]=\"cuenta\" [collection]=\"cuentas\" searchPlaceholder=\"Buscar\" />",
|
|
6855
|
+
"snippet": "<ns-dropdown [(ngModel)]=\"cuenta\" [collection]=\"cuentas\" searchPlaceholder=\"Buscar\" />\n<!-- Con punto de color: estados = [{ key: 'activo', label: 'Activo', dot: 'success' }] -->\n<ns-dropdown [(ngModel)]=\"estado\" [collection]=\"estados\" />",
|
|
6816
6856
|
"variants": [
|
|
6817
6857
|
"single",
|
|
6818
6858
|
"multiple",
|
|
6819
6859
|
"searchable",
|
|
6820
6860
|
"loading",
|
|
6821
6861
|
"empty",
|
|
6822
|
-
"disabled"
|
|
6862
|
+
"disabled",
|
|
6863
|
+
"dot"
|
|
6823
6864
|
]
|
|
6824
6865
|
},
|
|
6825
6866
|
{
|
|
@@ -6859,6 +6900,29 @@
|
|
|
6859
6900
|
"[disabled]=\"expr\""
|
|
6860
6901
|
]
|
|
6861
6902
|
},
|
|
6903
|
+
{
|
|
6904
|
+
"name": "dot",
|
|
6905
|
+
"kind": "input",
|
|
6906
|
+
"required": false,
|
|
6907
|
+
"alias": null,
|
|
6908
|
+
"bindingName": "dot",
|
|
6909
|
+
"type": "NsColor | undefined",
|
|
6910
|
+
"values": [
|
|
6911
|
+
"warning",
|
|
6912
|
+
"danger",
|
|
6913
|
+
"success",
|
|
6914
|
+
"primary",
|
|
6915
|
+
"neutral"
|
|
6916
|
+
],
|
|
6917
|
+
"default": "undefined",
|
|
6918
|
+
"defaultKind": "literal",
|
|
6919
|
+
"transform": null,
|
|
6920
|
+
"transformKind": null,
|
|
6921
|
+
"acceptsAttribute": false,
|
|
6922
|
+
"docs": "",
|
|
6923
|
+
"inheritedFrom": null,
|
|
6924
|
+
"binding": "[dot]=\"dot\""
|
|
6925
|
+
},
|
|
6862
6926
|
{
|
|
6863
6927
|
"name": "key",
|
|
6864
6928
|
"kind": "input",
|
|
@@ -18923,7 +18987,7 @@
|
|
|
18923
18987
|
{
|
|
18924
18988
|
"id": "paquetes-y-peer-dependencies",
|
|
18925
18989
|
"title": "Paquetes y peer dependencies",
|
|
18926
|
-
"content": "```bash\npnpm add @ng-solid/design-system @ng-solid/icons\n```\n\n`@ng-solid/design-system` declara estos peer dependencies (ver\n`packages/design-system/package.json`):\n\n- `@angular/core`, `@angular/common`, `@angular/forms`,\n `@angular/platform-browser`, `@angular/router` en `^21.0.0`.\n- `@ng-solid/icons` en `^22.0.5`.\n- `tailwindcss` en `^4.0.0`, marcado **opcional** (`peerDependenciesMeta`) —\n sólo hace falta si la app consume el puente de utilidades semánticas.\n\nVersiones publicadas actualmente:\n\n- `@ng-solid/design-system@22.4.
|
|
18990
|
+
"content": "```bash\npnpm add @ng-solid/design-system @ng-solid/icons\n```\n\n`@ng-solid/design-system` declara estos peer dependencies (ver\n`packages/design-system/package.json`):\n\n- `@angular/core`, `@angular/common`, `@angular/forms`,\n `@angular/platform-browser`, `@angular/router` en `^21.0.0`.\n- `@ng-solid/icons` en `^22.0.5`.\n- `tailwindcss` en `^4.0.0`, marcado **opcional** (`peerDependenciesMeta`) —\n sólo hace falta si la app consume el puente de utilidades semánticas.\n\nVersiones publicadas actualmente:\n\n- `@ng-solid/design-system@22.4.1` (peer `@angular/*@^21.0.0`)\n- `@ng-solid/icons@22.1.1`\n\nSi tu app usa Tailwind, añade también el plugin de PostCSS:\n\n```bash\npnpm add -D tailwindcss @tailwindcss/postcss\n```"
|
|
18927
18991
|
},
|
|
18928
18992
|
{
|
|
18929
18993
|
"id": "entrypoint-unico-nada-de-subpaths",
|
|
@@ -19006,7 +19070,7 @@
|
|
|
19006
19070
|
{
|
|
19007
19071
|
"id": "los-tres-niveles-de-tokens",
|
|
19008
19072
|
"title": "Los tres niveles de tokens",
|
|
19009
|
-
"content": "`packages/design-system/src/lib/theme/presets/arvisfy.preset.ts` define el\npreset en tres tiers, cada uno sólo puede referenciar al tier anterior:\n\n1. **`primitive`** — únicos valores crudos permitidos (hex, `rem`, pesos de\n fuente, escalas numéricas). Ejemplo real: `primitive.color.klein.500 =\n'#3665F3'`.\n2. **`semantic`** — referencia primitivos con la sintaxis `{primitive.…}`, y\n se divide en `common` (independiente de esquema) y\n `colorScheme.light` / `colorScheme.dark` (un valor distinto por esquema).\n3. **`components`** — referencia semánticos con `{semantic.…}`. Es el único\n tier que las hojas de estilo de componente pueden consumir, y sólo a\n través de la variable CSS resultante.\n\nConteo actual del preset Arvisfy:\n\
|
|
19073
|
+
"content": "`packages/design-system/src/lib/theme/presets/arvisfy.preset.ts` define el\npreset en tres tiers, cada uno sólo puede referenciar al tier anterior:\n\n1. **`primitive`** — únicos valores crudos permitidos (hex, `rem`, pesos de\n fuente, escalas numéricas). Ejemplo real: `primitive.color.klein.500 =\n'#3665F3'`.\n2. **`semantic`** — referencia primitivos con la sintaxis `{primitive.…}`, y\n se divide en `common` (independiente de esquema) y\n `colorScheme.light` / `colorScheme.dark` (un valor distinto por esquema).\n3. **`components`** — referencia semánticos con `{semantic.…}`. Es el único\n tier que las hojas de estilo de componente pueden consumir, y sólo a\n través de la variable CSS resultante.\n\nConteo actual del preset Arvisfy:\n\n282 primitivos, 441 semánticos, 1107 de componente en 53 grupos."
|
|
19010
19074
|
},
|
|
19011
19075
|
{
|
|
19012
19076
|
"id": "regla-de-oro-del-scss-de-componente",
|
|
@@ -19976,6 +20040,11 @@
|
|
|
19976
20040
|
"cssVariable": "--ns-primitive-size-control-sm",
|
|
19977
20041
|
"value": "2.375rem"
|
|
19978
20042
|
},
|
|
20043
|
+
{
|
|
20044
|
+
"path": "size.controlXs",
|
|
20045
|
+
"cssVariable": "--ns-primitive-size-control-xs",
|
|
20046
|
+
"value": "1.75rem"
|
|
20047
|
+
},
|
|
19979
20048
|
{
|
|
19980
20049
|
"path": "size.datePickerMenu",
|
|
19981
20050
|
"cssVariable": "--ns-primitive-size-date-picker-menu",
|
|
@@ -20965,6 +21034,12 @@
|
|
|
20965
21034
|
"reference": "{primitive.size.controlSm}",
|
|
20966
21035
|
"resolvedLiteral": "2.375rem"
|
|
20967
21036
|
},
|
|
21037
|
+
{
|
|
21038
|
+
"path": "size.controlXs",
|
|
21039
|
+
"cssVariable": "--ns-semantic-size-control-xs",
|
|
21040
|
+
"reference": "{primitive.size.controlXs}",
|
|
21041
|
+
"resolvedLiteral": "1.75rem"
|
|
21042
|
+
},
|
|
20968
21043
|
{
|
|
20969
21044
|
"path": "size.datePickerMenu",
|
|
20970
21045
|
"cssVariable": "--ns-semantic-size-date-picker-menu",
|
|
@@ -23942,6 +24017,15 @@
|
|
|
23942
24017
|
"dark": "2.375rem"
|
|
23943
24018
|
}
|
|
23944
24019
|
},
|
|
24020
|
+
{
|
|
24021
|
+
"path": "button.minHeightXs",
|
|
24022
|
+
"cssVariable": "--ns-component-button-min-height-xs",
|
|
24023
|
+
"reference": "{semantic.size.controlXs}",
|
|
24024
|
+
"resolved": {
|
|
24025
|
+
"light": "1.75rem",
|
|
24026
|
+
"dark": "1.75rem"
|
|
24027
|
+
}
|
|
24028
|
+
},
|
|
23945
24029
|
{
|
|
23946
24030
|
"path": "button.minWidth",
|
|
23947
24031
|
"cssVariable": "--ns-component-button-min-width",
|
|
@@ -23978,6 +24062,15 @@
|
|
|
23978
24062
|
"dark": "0.75rem"
|
|
23979
24063
|
}
|
|
23980
24064
|
},
|
|
24065
|
+
{
|
|
24066
|
+
"path": "button.radiusXs",
|
|
24067
|
+
"cssVariable": "--ns-component-button-radius-xs",
|
|
24068
|
+
"reference": "{semantic.radius.pill}",
|
|
24069
|
+
"resolved": {
|
|
24070
|
+
"light": "0.5rem",
|
|
24071
|
+
"dark": "0.5rem"
|
|
24072
|
+
}
|
|
24073
|
+
},
|
|
23981
24074
|
{
|
|
23982
24075
|
"path": "button.secondaryBackground",
|
|
23983
24076
|
"cssVariable": "--ns-component-button-secondary-background",
|
|
@@ -26381,6 +26474,60 @@
|
|
|
26381
26474
|
"dark": "#A7B0C0"
|
|
26382
26475
|
}
|
|
26383
26476
|
},
|
|
26477
|
+
{
|
|
26478
|
+
"path": "dropdown.dotDanger",
|
|
26479
|
+
"cssVariable": "--ns-component-dropdown-dot-danger",
|
|
26480
|
+
"reference": "{semantic.status.danger}",
|
|
26481
|
+
"resolved": {
|
|
26482
|
+
"light": "#E5514A",
|
|
26483
|
+
"dark": "#E5514A"
|
|
26484
|
+
}
|
|
26485
|
+
},
|
|
26486
|
+
{
|
|
26487
|
+
"path": "dropdown.dotNeutral",
|
|
26488
|
+
"cssVariable": "--ns-component-dropdown-dot-neutral",
|
|
26489
|
+
"reference": "{semantic.status.neutralText}",
|
|
26490
|
+
"resolved": {
|
|
26491
|
+
"light": "#4A4F58",
|
|
26492
|
+
"dark": "#C8D0DD"
|
|
26493
|
+
}
|
|
26494
|
+
},
|
|
26495
|
+
{
|
|
26496
|
+
"path": "dropdown.dotPrimary",
|
|
26497
|
+
"cssVariable": "--ns-component-dropdown-dot-primary",
|
|
26498
|
+
"reference": "{semantic.color.primary}",
|
|
26499
|
+
"resolved": {
|
|
26500
|
+
"light": "#3665F3",
|
|
26501
|
+
"dark": "#6F92FF"
|
|
26502
|
+
}
|
|
26503
|
+
},
|
|
26504
|
+
{
|
|
26505
|
+
"path": "dropdown.dotSize",
|
|
26506
|
+
"cssVariable": "--ns-component-dropdown-dot-size",
|
|
26507
|
+
"reference": "{semantic.size.timelineDot}",
|
|
26508
|
+
"resolved": {
|
|
26509
|
+
"light": "9px",
|
|
26510
|
+
"dark": "9px"
|
|
26511
|
+
}
|
|
26512
|
+
},
|
|
26513
|
+
{
|
|
26514
|
+
"path": "dropdown.dotSuccess",
|
|
26515
|
+
"cssVariable": "--ns-component-dropdown-dot-success",
|
|
26516
|
+
"reference": "{semantic.status.success}",
|
|
26517
|
+
"resolved": {
|
|
26518
|
+
"light": "#0CAC42",
|
|
26519
|
+
"dark": "#0CAC42"
|
|
26520
|
+
}
|
|
26521
|
+
},
|
|
26522
|
+
{
|
|
26523
|
+
"path": "dropdown.dotWarning",
|
|
26524
|
+
"cssVariable": "--ns-component-dropdown-dot-warning",
|
|
26525
|
+
"reference": "{semantic.status.warning}",
|
|
26526
|
+
"resolved": {
|
|
26527
|
+
"light": "#C08A1E",
|
|
26528
|
+
"dark": "#C08A1E"
|
|
26529
|
+
}
|
|
26530
|
+
},
|
|
26384
26531
|
{
|
|
26385
26532
|
"path": "dropdown.emptyColor",
|
|
26386
26533
|
"cssVariable": "--ns-component-dropdown-empty-color",
|
|
@@ -33154,8 +33301,8 @@
|
|
|
33154
33301
|
"providers": 3,
|
|
33155
33302
|
"guides": 6,
|
|
33156
33303
|
"icons": 1790,
|
|
33157
|
-
"tokensPrimitive":
|
|
33158
|
-
"tokensSemantic":
|
|
33159
|
-
"tokensComponent":
|
|
33304
|
+
"tokensPrimitive": 282,
|
|
33305
|
+
"tokensSemantic": 441,
|
|
33306
|
+
"tokensComponent": 1107
|
|
33160
33307
|
}
|
|
33161
33308
|
}
|
|
@@ -22,7 +22,7 @@ pnpm add @ng-solid/design-system @ng-solid/icons
|
|
|
22
22
|
|
|
23
23
|
Versiones publicadas actualmente:
|
|
24
24
|
|
|
25
|
-
- `@ng-solid/design-system@22.4.
|
|
25
|
+
- `@ng-solid/design-system@22.4.1` (peer `@angular/*@^21.0.0`)
|
|
26
26
|
- `@ng-solid/icons@22.1.1`
|
|
27
27
|
|
|
28
28
|
Si tu app usa Tailwind, añade también el plugin de PostCSS:
|
|
@@ -22,7 +22,7 @@ preset en tres tiers, cada uno sólo puede referenciar al tier anterior:
|
|
|
22
22
|
|
|
23
23
|
Conteo actual del preset Arvisfy:
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
282 primitivos, 441 semánticos, 1107 de componente en 53 grupos.
|
|
26
26
|
|
|
27
27
|
## Regla de oro del SCSS de componente
|
|
28
28
|
|
package/package.json
CHANGED