@frantsiles/icons 0.0.0-stage → 0.1.0-beta.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Francisco Torres Siles
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/LICENSE-lucide ADDED
@@ -0,0 +1,43 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 Lucide Icons and Contributors
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
+
17
+ ---
18
+
19
+ The following Lucide icons are derived from the Feather project:
20
+
21
+ airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
22
+
23
+ The MIT License (MIT) (for the icons listed above)
24
+
25
+ Copyright (c) 2013-present Cole Bemis
26
+
27
+ Permission is hereby granted, free of charge, to any person obtaining a copy
28
+ of this software and associated documentation files (the "Software"), to deal
29
+ in the Software without restriction, including without limitation the rights
30
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
31
+ copies of the Software, and to permit persons to whom the Software is
32
+ furnished to do so, subject to the following conditions:
33
+
34
+ The above copyright notice and this permission notice shall be included in all
35
+ copies or substantial portions of the Software.
36
+
37
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
38
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
39
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
40
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
41
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
42
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
43
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,20 @@
1
- # Temporary Holding Version
1
+ # @frantsiles/icons
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
+ Íconos SVG como componentes de React para el UI kit [`@frantsiles/components`](https://www.npmjs.com/package/@frantsiles/components). Se generan desde [Lucide](https://lucide.dev) (licencia ISC, ver `LICENSE-lucide`).
4
+
5
+ **Galería:** [Storybook](https://frantsiles.github.io/react-ui-kit/)
6
+
7
+ ## Uso
8
+
9
+ ```tsx
10
+ import { IconCheck } from '@frantsiles/icons';
11
+
12
+ <IconCheck className="size-4" />
13
+ ```
14
+
15
+ - **Decorativos por defecto** (`aria-hidden`). Si el ícono transmite información por sí solo, pásale `label`.
16
+ - Los íconos direccionales (flechas, chevrons) se espejan solos en RTL.
17
+
18
+ ## Licencia
19
+
20
+ MIT. Los trazos de los íconos son de Lucide (ISC).
@@ -0,0 +1,116 @@
1
+ import { Ref } from 'react';
2
+ import { SVGProps } from 'react';
3
+
4
+ export declare function createIcon(name: string, node: IconNode, { mirrorInRtl }?: CreateIconOptions): IconComponent;
5
+
6
+ export declare interface CreateIconOptions {
7
+ /** Espejar horizontalmente cuando el texto va de derecha a izquierda. */
8
+ mirrorInRtl?: boolean | undefined;
9
+ }
10
+
11
+ export declare const IconArrowDown: IconComponent;
12
+
13
+ export declare const IconArrowLeft: IconComponent;
14
+
15
+ export declare const IconArrowRight: IconComponent;
16
+
17
+ export declare const IconArrowUp: IconComponent;
18
+
19
+ export declare const IconArrowUpDown: IconComponent;
20
+
21
+ export declare const IconCalendar: IconComponent;
22
+
23
+ export declare const IconCheck: IconComponent;
24
+
25
+ export declare const IconChevronDown: IconComponent;
26
+
27
+ export declare const IconChevronLeft: IconComponent;
28
+
29
+ export declare const IconChevronRight: IconComponent;
30
+
31
+ export declare const IconChevronUp: IconComponent;
32
+
33
+ export declare const IconCircleAlert: IconComponent;
34
+
35
+ export declare const IconCircleCheck: IconComponent;
36
+
37
+ export declare type IconComponent = ((props: IconProps) => React.JSX.Element) & {
38
+ displayName: string;
39
+ };
40
+
41
+ export declare const IconCopy: IconComponent;
42
+
43
+ export declare const IconDownload: IconComponent;
44
+
45
+ export declare const IconEllipsis: IconComponent;
46
+
47
+ export declare const IconExternalLink: IconComponent;
48
+
49
+ export declare const IconEye: IconComponent;
50
+
51
+ export declare const IconEyeOff: IconComponent;
52
+
53
+ export declare const IconFile: IconComponent;
54
+
55
+ export declare const IconFolder: IconComponent;
56
+
57
+ export declare const IconInfo: IconComponent;
58
+
59
+ export declare const IconLoaderCircle: IconComponent;
60
+
61
+ export declare const IconLock: IconComponent;
62
+
63
+ export declare const IconMail: IconComponent;
64
+
65
+ export declare const IconMenu: IconComponent;
66
+
67
+ export declare const IconMinus: IconComponent;
68
+
69
+ /** Nodo de ícono: [etiqueta SVG, atributos]. */
70
+ export declare type IconNode = ReadonlyArray<readonly [tag: string, attrs: Readonly<Record<string, string>>]>;
71
+
72
+ export declare const IconPencil: IconComponent;
73
+
74
+ export declare const IconPlus: IconComponent;
75
+
76
+ export declare interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'children' | 'ref'> {
77
+ /**
78
+ * Tamaño del ícono. Por defecto `1em`: escala con el tamaño de letra del
79
+ * texto que lo rodea (y con el zoom del navegador).
80
+ */
81
+ size?: IconSize | number | undefined;
82
+ /**
83
+ * Nombre accesible. Úsalo SOLO si el ícono transmite información que no está
84
+ * en el texto de al lado (p. ej. un ícono de estado sin texto).
85
+ * Sin `label`, el ícono es decorativo y queda oculto a lectores de pantalla.
86
+ */
87
+ label?: string | undefined;
88
+ /** Grosor del trazo. */
89
+ strokeWidth?: number | undefined;
90
+ ref?: Ref<SVGSVGElement> | undefined;
91
+ }
92
+
93
+ export declare const IconSearch: IconComponent;
94
+
95
+ export declare type IconSize = keyof typeof iconSizes;
96
+
97
+ /** Tamaños en px alineados con la escala tipográfica del kit. */
98
+ export declare const iconSizes: {
99
+ readonly xs: 12;
100
+ readonly sm: 16;
101
+ readonly md: 20;
102
+ readonly lg: 24;
103
+ readonly xl: 32;
104
+ };
105
+
106
+ export declare const IconTrash: IconComponent;
107
+
108
+ export declare const IconTriangleAlert: IconComponent;
109
+
110
+ export declare const IconUpload: IconComponent;
111
+
112
+ export declare const IconUser: IconComponent;
113
+
114
+ export declare const IconX: IconComponent;
115
+
116
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,85 @@
1
+ import { jsx as x } from "react/jsx-runtime";
2
+ import { createElement as y } from "react";
3
+ const w = {
4
+ xs: 12,
5
+ sm: 16,
6
+ md: 20,
7
+ lg: 24,
8
+ xl: 32
9
+ };
10
+ function t(c, e, { mirrorInRtl: d = !1 } = {}) {
11
+ const a = ({
12
+ size: o,
13
+ label: n,
14
+ strokeWidth: p = 2,
15
+ className: l,
16
+ ref: i,
17
+ ...r
18
+ }) => {
19
+ const h = o === void 0 ? "1em" : typeof o == "number" ? o : w[o], s = !!(n || r["aria-labelledby"]), M = ["shrink-0", d && "rtl:-scale-x-100", l].filter(Boolean).join(" ");
20
+ return /* @__PURE__ */ x(
21
+ "svg",
22
+ {
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ viewBox: "0 0 24 24",
25
+ width: h,
26
+ height: h,
27
+ fill: "none",
28
+ stroke: "currentColor",
29
+ strokeWidth: p,
30
+ strokeLinecap: "round",
31
+ strokeLinejoin: "round",
32
+ focusable: "false",
33
+ "data-icon": c,
34
+ className: M,
35
+ ref: i,
36
+ ...s ? { role: "img", "aria-label": n } : { "aria-hidden": !0 },
37
+ ...r,
38
+ children: e.map(
39
+ ([I, m], v) => y(I, { key: v, ...m })
40
+ )
41
+ }
42
+ );
43
+ };
44
+ return a.displayName = `Icon${c}`, a;
45
+ }
46
+ const f = /* @__PURE__ */ t("ArrowDown", [["path", { d: "M12 5v14" }], ["path", { d: "m19 12-7 7-7-7" }]]), g = /* @__PURE__ */ t("ArrowLeft", [["path", { d: "m12 19-7-7 7-7" }], ["path", { d: "M19 12H5" }]], { mirrorInRtl: !0 }), A = /* @__PURE__ */ t("ArrowRight", [["path", { d: "M5 12h14" }], ["path", { d: "m12 5 7 7-7 7" }]], { mirrorInRtl: !0 }), L = /* @__PURE__ */ t("ArrowUp", [["path", { d: "m5 12 7-7 7 7" }], ["path", { d: "M12 19V5" }]]), k = /* @__PURE__ */ t("ArrowUpDown", [["path", { d: "m21 16-4 4-4-4" }], ["path", { d: "M17 20V4" }], ["path", { d: "m3 8 4-4 4 4" }], ["path", { d: "M7 4v16" }]]), U = /* @__PURE__ */ t("Calendar", [["path", { d: "M8 2v3" }], ["path", { d: "M16 2v3" }], ["rect", { x: "3", y: "3", width: "18", height: "18", rx: "2" }], ["path", { d: "M3 9h18" }]]), V = /* @__PURE__ */ t("Check", [["path", { d: "M20 6 9 17l-5-5" }]]), E = /* @__PURE__ */ t("ChevronDown", [["path", { d: "m6 9 6 6 6-6" }]]), R = /* @__PURE__ */ t("ChevronLeft", [["path", { d: "m15 18-6-6 6-6" }]], { mirrorInRtl: !0 }), D = /* @__PURE__ */ t("ChevronRight", [["path", { d: "m9 18 6-6-6-6" }]], { mirrorInRtl: !0 }), H = /* @__PURE__ */ t("ChevronUp", [["path", { d: "m18 15-6-6-6 6" }]]), b = /* @__PURE__ */ t("CircleAlert", [["circle", { cx: "12", cy: "12", r: "10" }], ["line", { x1: "12", x2: "12", y1: "8", y2: "12" }], ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16" }]]), F = /* @__PURE__ */ t("CircleCheck", [["circle", { cx: "12", cy: "12", r: "10" }], ["path", { d: "m16 9-5.5 5.5L8 12" }]]), P = /* @__PURE__ */ t("Copy", [["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }], ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]]), T = /* @__PURE__ */ t("Download", [["path", { d: "M12 15V3" }], ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }], ["path", { d: "m7 10 5 5 5-5" }]]), j = /* @__PURE__ */ t("Ellipsis", [["circle", { cx: "12", cy: "12", r: "1" }], ["circle", { cx: "19", cy: "12", r: "1" }], ["circle", { cx: "5", cy: "12", r: "1" }]]), B = /* @__PURE__ */ t("ExternalLink", [["path", { d: "M15 3h6v6" }], ["path", { d: "M10 14 21 3" }], ["path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" }]], { mirrorInRtl: !0 }), S = /* @__PURE__ */ t("Eye", [["path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }], ["circle", { cx: "12", cy: "12", r: "3" }]]), N = /* @__PURE__ */ t("EyeOff", [["path", { d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49" }], ["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }], ["path", { d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143" }], ["path", { d: "m2 2 20 20" }]]), O = /* @__PURE__ */ t("File", [["path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }], ["path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }]]), X = /* @__PURE__ */ t("Folder", [["path", { d: "M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z" }]]), Z = /* @__PURE__ */ t("Info", [["circle", { cx: "12", cy: "12", r: "10" }], ["path", { d: "M12 16v-4" }], ["path", { d: "M12 8h.01" }]]), $ = /* @__PURE__ */ t("LoaderCircle", [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56" }]]), q = /* @__PURE__ */ t("Lock", [["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2" }], ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4" }]]), z = /* @__PURE__ */ t("Mail", [["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" }], ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2" }]]), G = /* @__PURE__ */ t("Menu", [["path", { d: "M4 5h16" }], ["path", { d: "M4 12h16" }], ["path", { d: "M4 19h16" }]]), J = /* @__PURE__ */ t("Minus", [["path", { d: "M5 12h14" }]]), K = /* @__PURE__ */ t("Pencil", [["path", { d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }], ["path", { d: "m15 5 4 4" }]]), Q = /* @__PURE__ */ t("Plus", [["path", { d: "M5 12h14" }], ["path", { d: "M12 5v14" }]]), W = /* @__PURE__ */ t("Search", [["path", { d: "m21 21-4.34-4.34" }], ["circle", { cx: "11", cy: "11", r: "8" }]]), Y = /* @__PURE__ */ t("Trash", [["path", { d: "M10 11v6" }], ["path", { d: "M14 11v6" }], ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }], ["path", { d: "M3 6h18" }], ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]]), _ = /* @__PURE__ */ t("TriangleAlert", [["path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" }], ["path", { d: "M12 9v4" }], ["path", { d: "M12 17h.01" }]]), t1 = /* @__PURE__ */ t("Upload", [["path", { d: "M12 3v12" }], ["path", { d: "m17 8-5-5-5 5" }], ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }]]), o1 = /* @__PURE__ */ t("User", [["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }], ["circle", { cx: "12", cy: "7", r: "4" }]]), c1 = /* @__PURE__ */ t("X", [["path", { d: "M18 6 6 18" }], ["path", { d: "m6 6 12 12" }]]);
47
+ export {
48
+ f as IconArrowDown,
49
+ g as IconArrowLeft,
50
+ A as IconArrowRight,
51
+ L as IconArrowUp,
52
+ k as IconArrowUpDown,
53
+ U as IconCalendar,
54
+ V as IconCheck,
55
+ E as IconChevronDown,
56
+ R as IconChevronLeft,
57
+ D as IconChevronRight,
58
+ H as IconChevronUp,
59
+ b as IconCircleAlert,
60
+ F as IconCircleCheck,
61
+ P as IconCopy,
62
+ T as IconDownload,
63
+ j as IconEllipsis,
64
+ B as IconExternalLink,
65
+ S as IconEye,
66
+ N as IconEyeOff,
67
+ O as IconFile,
68
+ X as IconFolder,
69
+ Z as IconInfo,
70
+ $ as IconLoaderCircle,
71
+ q as IconLock,
72
+ z as IconMail,
73
+ G as IconMenu,
74
+ J as IconMinus,
75
+ K as IconPencil,
76
+ Q as IconPlus,
77
+ W as IconSearch,
78
+ Y as IconTrash,
79
+ _ as IconTriangleAlert,
80
+ t1 as IconUpload,
81
+ o1 as IconUser,
82
+ c1 as IconX,
83
+ t as createIcon,
84
+ w as iconSizes
85
+ };
package/package.json CHANGED
@@ -1,6 +1,54 @@
1
1
  {
2
2
  "name": "@frantsiles/icons",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0-beta.1",
4
+ "description": "Íconos SVG (Lucide) como componentes de React para el UI kit @frantsiles.",
5
+ "keywords": [
6
+ "icons",
7
+ "react",
8
+ "lucide",
9
+ "svg"
10
+ ],
11
+ "license": "MIT",
12
+ "homepage": "https://frantsiles.github.io/react-ui-kit/",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/frantsiles/react-ui-kit.git",
16
+ "directory": "packages/icons"
17
+ },
18
+ "bugs": {
19
+ "url": "https://github.com/frantsiles/react-ui-kit/issues"
20
+ },
21
+ "type": "module",
22
+ "main": "./dist/index.js",
23
+ "module": "./dist/index.js",
24
+ "types": "./dist/index.d.ts",
25
+ "exports": {
26
+ "./package.json": "./package.json",
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "import": "./dist/index.js",
30
+ "default": "./dist/index.js"
31
+ }
32
+ },
33
+ "files": [
34
+ "dist",
35
+ "LICENSE-lucide",
36
+ "!**/*.tsbuildinfo"
37
+ ],
38
+ "sideEffects": false,
39
+ "peerDependencies": {
40
+ "react": "^19.2.1"
41
+ },
42
+ "nx": {
43
+ "tags": [
44
+ "layer:icons"
45
+ ]
46
+ },
47
+ "publishConfig": {
48
+ "access": "public",
49
+ "provenance": true
50
+ },
51
+ "scripts": {
52
+ "generate": "node scripts/generate-icons.mjs"
53
+ }
6
54
  }