@ac-components/ac-icon-basic 0.1.0 → 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 +8 -1
- package/package.json +8 -8
- package/src/icon-basic.js +4 -0
package/README.md
CHANGED
|
@@ -30,7 +30,14 @@ Sin eventos. Sin `ambient` — el color del ícono es siempre `currentColor`, he
|
|
|
30
30
|
|
|
31
31
|
Whitelist fija de esta primera versión (`viewBox="0 0 24 24"`, `fill="none"`, `stroke="currentColor"`):
|
|
32
32
|
|
|
33
|
-
`check`, `close`, `info`, `success`, `warning`, `danger`, `chevron-down`, `chevron-up`, `chevron-left`, `chevron-right`, `search`, `menu`, `arrow-left`, `arrow-right`.
|
|
33
|
+
`check`, `close`, `info`, `success`, `warning`, `danger`, `chevron-down`, `chevron-up`, `chevron-left`, `chevron-right`, `search`, `menu`, `arrow-left`, `arrow-right`, `email`, `calendar`, `currency`, `hash`.
|
|
34
|
+
|
|
35
|
+
| Ícono | Descripción |
|
|
36
|
+
| ---------- | --------------------------------------- |
|
|
37
|
+
| `email` | Sobre de correo — campos de tipo email. |
|
|
38
|
+
| `calendar` | Calendario — campos de tipo fecha. |
|
|
39
|
+
| `currency` | Billete/moneda — campos de tipo monto. |
|
|
40
|
+
| `hash` | Numeral (#) — campos numéricos. |
|
|
34
41
|
|
|
35
42
|
> `info`/`success`/`warning`/`danger` son deliberadamente idénticos a los paths ya usados en `ICON_MAP` de `ac-notification-basic` — misma identidad visual, no una reinterpretación.
|
|
36
43
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ac-components/ac-icon-basic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/RenzoCordovaDev/ac-lit.git",
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ac-base/ac-
|
|
27
|
-
"@ac-base/ac-
|
|
26
|
+
"@ac-base/ac-intl-mixin": "^0.1.0",
|
|
27
|
+
"@ac-base/ac-component-mixin": "^0.1.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"lit": "^3.0.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@ac-base/ac-core": "^0.1.0",
|
|
34
|
-
"@ac-base/ac-demo-content": "^0.1.1",
|
|
35
|
-
"@ac-base/ac-e2e-testing": "^0.1.0",
|
|
36
|
-
"@ac-base/cli": "^0.2.1",
|
|
37
33
|
"@open-wc/testing": "^4.0.0",
|
|
38
34
|
"@web/test-runner": "^0.18.0",
|
|
39
35
|
"concurrently": "^9.1.0",
|
|
40
36
|
"lit": "^3.0.0",
|
|
41
37
|
"sass": "^1.79.4",
|
|
42
|
-
"vite": "^5.4.8"
|
|
38
|
+
"vite": "^5.4.8",
|
|
39
|
+
"@ac-base/ac-demo-content": "^0.4.0",
|
|
40
|
+
"@ac-base/ac-core": "^0.1.0",
|
|
41
|
+
"@ac-base/cli": "^0.5.2",
|
|
42
|
+
"@ac-base/ac-e2e-testing": "^0.1.0"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"component:lint": "eslint .",
|
package/src/icon-basic.js
CHANGED
|
@@ -42,6 +42,10 @@ const ICON_MAP = {
|
|
|
42
42
|
menu: svg`<path d="M4 6h16M4 12h16M4 18h16" />`,
|
|
43
43
|
'arrow-left': svg`<path d="M19 12H5M11 18l-6-6 6-6" />`,
|
|
44
44
|
'arrow-right': svg`<path d="M5 12h14M13 6l6 6-6 6" />`,
|
|
45
|
+
email: svg`<rect x="3" y="5" width="18" height="14" rx="2" /><path d="M3 7l9 6 9-6" />`,
|
|
46
|
+
calendar: svg`<rect x="3" y="5" width="18" height="16" rx="2" /><path d="M16 3v4M8 3v4M3 10h18" />`,
|
|
47
|
+
currency: svg`<rect x="2" y="7" width="20" height="10" rx="2" /><circle cx="12" cy="12" r="2.5" />`,
|
|
48
|
+
hash: svg`<path d="M5 9h14M5 15h14M9 4L7 20M17 4l-2 16" />`,
|
|
45
49
|
};
|
|
46
50
|
|
|
47
51
|
// Fallback para cualquier `name` fuera de la whitelist de arriba — un círculo
|