@genarou/blazir-icons 1.3.3 → 1.3.5

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.
Files changed (74) hide show
  1. package/dist/Icon.svelte +21 -23
  2. package/dist/Icon.svelte.d.ts +5 -5
  3. package/dist/IconLazy.svelte +297 -0
  4. package/dist/IconLazy.svelte.d.ts +22 -0
  5. package/dist/icons/ArrowDown.svelte +18 -0
  6. package/dist/icons/ArrowDown.svelte.d.ts +4 -0
  7. package/dist/icons/ArrowLeft.svelte +18 -0
  8. package/dist/icons/ArrowLeft.svelte.d.ts +4 -0
  9. package/dist/icons/ChevronLeft.svelte +15 -0
  10. package/dist/icons/ChevronLeft.svelte.d.ts +4 -0
  11. package/dist/icons/ChevronRight.svelte +15 -0
  12. package/dist/icons/ChevronRight.svelte.d.ts +4 -0
  13. package/dist/icons/ChevronUp.svelte +15 -0
  14. package/dist/icons/ChevronUp.svelte.d.ts +4 -0
  15. package/dist/icons/CloudUpload.svelte +18 -0
  16. package/dist/icons/CloudUpload.svelte.d.ts +4 -0
  17. package/dist/icons/Code.svelte +18 -0
  18. package/dist/icons/Code.svelte.d.ts +4 -0
  19. package/dist/icons/ExternalLink.svelte +18 -0
  20. package/dist/icons/ExternalLink.svelte.d.ts +4 -0
  21. package/dist/icons/Filter.svelte +2 -2
  22. package/dist/icons/Filter.svelte.d.ts +2 -5
  23. package/dist/icons/Gift.svelte +21 -0
  24. package/dist/icons/Gift.svelte.d.ts +7 -0
  25. package/dist/icons/Grid.svelte +18 -0
  26. package/dist/icons/Grid.svelte.d.ts +4 -0
  27. package/dist/icons/GripVertical.svelte +18 -0
  28. package/dist/icons/GripVertical.svelte.d.ts +4 -0
  29. package/dist/icons/Layers.svelte +9 -0
  30. package/dist/icons/Layers.svelte.d.ts +4 -0
  31. package/dist/icons/Maximize.svelte +18 -0
  32. package/dist/icons/Maximize.svelte.d.ts +4 -0
  33. package/dist/icons/MicOff.svelte +9 -0
  34. package/dist/icons/MicOff.svelte.d.ts +4 -0
  35. package/dist/icons/Microphone.svelte +9 -0
  36. package/dist/icons/Microphone.svelte.d.ts +4 -0
  37. package/dist/icons/Minimize.svelte +9 -0
  38. package/dist/icons/Minimize.svelte.d.ts +4 -0
  39. package/dist/icons/Percentage.svelte +9 -0
  40. package/dist/icons/Percentage.svelte.d.ts +4 -0
  41. package/dist/icons/Qr.svelte +21 -0
  42. package/dist/icons/Qr.svelte.d.ts +7 -0
  43. package/dist/icons/Redo.svelte +9 -0
  44. package/dist/icons/Redo.svelte.d.ts +4 -0
  45. package/dist/icons/Sliders.svelte +9 -0
  46. package/dist/icons/Sliders.svelte.d.ts +4 -0
  47. package/dist/icons/Terminal.svelte +21 -0
  48. package/dist/icons/Terminal.svelte.d.ts +7 -0
  49. package/dist/icons/Undo.svelte +9 -0
  50. package/dist/icons/Undo.svelte.d.ts +4 -0
  51. package/dist/icons/UserMinus.svelte +18 -0
  52. package/dist/icons/UserMinus.svelte.d.ts +4 -0
  53. package/dist/icons/UserPlus.svelte +18 -0
  54. package/dist/icons/UserPlus.svelte.d.ts +4 -0
  55. package/dist/icons/UserShield.svelte +21 -0
  56. package/dist/icons/UserShield.svelte.d.ts +7 -0
  57. package/dist/icons/Video.svelte +9 -0
  58. package/dist/icons/Video.svelte.d.ts +4 -0
  59. package/dist/icons/Volume.svelte +9 -0
  60. package/dist/icons/Volume.svelte.d.ts +4 -0
  61. package/dist/icons/VolumeOff.svelte +9 -0
  62. package/dist/icons/VolumeOff.svelte.d.ts +4 -0
  63. package/dist/icons/components.d.ts +200 -0
  64. package/dist/icons/components.js +204 -0
  65. package/dist/icons/lazy-registry.js +46 -1
  66. package/dist/icons/registry.d.ts +37 -3
  67. package/dist/icons/registry.js +67 -2
  68. package/dist/icons-api.d.ts +28 -0
  69. package/dist/icons-api.js +36 -0
  70. package/dist/index.d.ts +2 -0
  71. package/dist/index.js +8 -1
  72. package/package.json +58 -53
  73. package/dist/icons/index.d.ts +0 -2
  74. package/dist/icons/index.js +0 -4
@@ -59,6 +59,7 @@ import EyeOff from "./EyeOff.svelte";
59
59
  import Favorites from "./Favorites.svelte";
60
60
  import File from "./File.svelte";
61
61
  import FileUpdateAnimated from "./FileUploadAnimated.svelte";
62
+ import Filter from "./Filter.svelte";
62
63
  import FilterOutline from "./FilterOutline.svelte";
63
64
  import Fingerprint from "./Fingerprint.svelte";
64
65
  import Folder from "./Folder.svelte";
@@ -135,7 +136,9 @@ import UpDownArrow from "./UpDownArrow.svelte";
135
136
  import Upload from "./Upload.svelte";
136
137
  import UploadAnimated from "./UploadAnimated.svelte";
137
138
  import UploadLoader from "./UploadLoader.svelte";
139
+ import Qr from "./Qr.svelte";
138
140
  import User from "./User.svelte";
141
+ import UserShield from "./UserShield.svelte";
139
142
  import UserTie from "./UserTie.svelte";
140
143
  import Wallet from "./Wallet.svelte";
141
144
  import Warehouse from "./Warehouse.svelte";
@@ -170,8 +173,34 @@ import HardDrive from "./HardDrive.svelte";
170
173
  import Connect from "./Connect.svelte";
171
174
  import Archive from "./Archive.svelte";
172
175
  import Work from "./Work.svelte";
176
+ import ArrowDown from "./ArrowDown.svelte";
177
+ import ArrowLeft from "./ArrowLeft.svelte";
178
+ import ChevronLeft from "./ChevronLeft.svelte";
179
+ import ChevronRight from "./ChevronRight.svelte";
180
+ import ChevronUp from "./ChevronUp.svelte";
181
+ import CloudUpload from "./CloudUpload.svelte";
182
+ import Code from "./Code.svelte";
183
+ import ExternalLink from "./ExternalLink.svelte";
184
+ import Gift from "./Gift.svelte";
185
+ import Grid from "./Grid.svelte";
186
+ import GripVertical from "./GripVertical.svelte";
187
+ import Layers from "./Layers.svelte";
188
+ import Maximize from "./Maximize.svelte";
189
+ import MicOff from "./MicOff.svelte";
190
+ import Microphone from "./Microphone.svelte";
191
+ import Minimize from "./Minimize.svelte";
192
+ import Percentage from "./Percentage.svelte";
193
+ import Redo from "./Redo.svelte";
194
+ import Sliders from "./Sliders.svelte";
195
+ import Terminal from "./Terminal.svelte";
196
+ import Undo from "./Undo.svelte";
197
+ import UserMinus from "./UserMinus.svelte";
198
+ import UserPlus from "./UserPlus.svelte";
199
+ import Video from "./Video.svelte";
200
+ import Volume from "./Volume.svelte";
201
+ import VolumeOff from "./VolumeOff.svelte";
173
202
  // 🔑 Catálogo central de íconos - usando directamente los componentes
174
- export const iconRegistry = {
203
+ export const iconRegistry = /* @__PURE__ */ {
175
204
  // — Navegación y layout —
176
205
  home: Home,
177
206
  dashboard: Dashboard,
@@ -187,6 +216,7 @@ export const iconRegistry = {
187
216
  more: More,
188
217
  // — Usuarios y autenticación —
189
218
  user: User,
219
+ userShield: UserShield,
190
220
  userTie: UserTie,
191
221
  team: Team,
192
222
  group: Group,
@@ -340,7 +370,7 @@ export const iconRegistry = {
340
370
  editOutline: EditOutline,
341
371
  trash: Trash,
342
372
  trashOutline: TrashOutline,
343
- filter: FilterOutline,
373
+ filter: Filter,
344
374
  filterOutline: FilterOutline,
345
375
  tags: Tags,
346
376
  tools: Tools,
@@ -360,5 +390,40 @@ export const iconRegistry = {
360
390
  earth: Earth,
361
391
  globe: Globe,
362
392
  lightHub: LightHub,
393
+ qr: Qr,
363
394
  sync: Sync,
395
+ // — Navegación arrows —
396
+ arrowLeft: ArrowLeft,
397
+ arrowDown: ArrowDown,
398
+ chevronLeft: ChevronLeft,
399
+ chevronRight: ChevronRight,
400
+ chevronUp: ChevronUp,
401
+ // — Acciones comunes —
402
+ externalLink: ExternalLink,
403
+ maximize: Maximize,
404
+ minimize: Minimize,
405
+ undo: Undo,
406
+ redo: Redo,
407
+ grip: GripVertical,
408
+ // — Usuarios —
409
+ userPlus: UserPlus,
410
+ userMinus: UserMinus,
411
+ // — Nube —
412
+ cloudUpload: CloudUpload,
413
+ // — Layout —
414
+ grid: Grid,
415
+ layers: Layers,
416
+ sliders: Sliders,
417
+ // — Dev —
418
+ code: Code,
419
+ terminal: Terminal,
420
+ // — Media —
421
+ video: Video,
422
+ microphone: Microphone,
423
+ micOff: MicOff,
424
+ volume: Volume,
425
+ volumeOff: VolumeOff,
426
+ // — Comercio —
427
+ percentage: Percentage,
428
+ gift: Gift,
364
429
  };
@@ -17,6 +17,7 @@ export declare const bzIcons: {
17
17
  readonly Sidebar: "sidebar";
18
18
  readonly More: "more";
19
19
  readonly User: "user";
20
+ readonly UserShield: "userShield";
20
21
  readonly UserTie: "userTie";
21
22
  readonly Team: "team";
22
23
  readonly Group: "group";
@@ -173,6 +174,33 @@ export declare const bzIcons: {
173
174
  readonly Earth: "earth";
174
175
  readonly Globe: "globe";
175
176
  readonly LightHub: "lightHub";
177
+ readonly Qr: "qr";
176
178
  readonly Sync: "sync";
179
+ readonly ArrowLeft: "arrowLeft";
180
+ readonly ArrowDown: "arrowDown";
181
+ readonly ChevronLeft: "chevronLeft";
182
+ readonly ChevronRight: "chevronRight";
183
+ readonly ChevronUp: "chevronUp";
184
+ readonly ExternalLink: "externalLink";
185
+ readonly Maximize: "maximize";
186
+ readonly Minimize: "minimize";
187
+ readonly Undo: "undo";
188
+ readonly Redo: "redo";
189
+ readonly Grip: "grip";
190
+ readonly UserPlus: "userPlus";
191
+ readonly UserMinus: "userMinus";
192
+ readonly CloudUpload: "cloudUpload";
193
+ readonly Grid: "grid";
194
+ readonly Layers: "layers";
195
+ readonly Sliders: "sliders";
196
+ readonly Code: "code";
197
+ readonly Terminal: "terminal";
198
+ readonly Video: "video";
199
+ readonly Microphone: "microphone";
200
+ readonly MicOff: "micOff";
201
+ readonly Volume: "volume";
202
+ readonly VolumeOff: "volumeOff";
203
+ readonly Percentage: "percentage";
204
+ readonly Gift: "gift";
177
205
  };
178
206
  export type BzIconKey = keyof typeof bzIcons;
package/dist/icons-api.js CHANGED
@@ -18,6 +18,7 @@ export const bzIcons = {
18
18
  More: "more",
19
19
  // — Usuarios y autenticación —
20
20
  User: "user",
21
+ UserShield: "userShield",
21
22
  UserTie: "userTie",
22
23
  Team: "team",
23
24
  Group: "group",
@@ -189,5 +190,40 @@ export const bzIcons = {
189
190
  Earth: "earth",
190
191
  Globe: "globe",
191
192
  LightHub: "lightHub",
193
+ Qr: "qr",
192
194
  Sync: "sync",
195
+ // — Navegación arrows —
196
+ ArrowLeft: "arrowLeft",
197
+ ArrowDown: "arrowDown",
198
+ ChevronLeft: "chevronLeft",
199
+ ChevronRight: "chevronRight",
200
+ ChevronUp: "chevronUp",
201
+ // — Acciones comunes —
202
+ ExternalLink: "externalLink",
203
+ Maximize: "maximize",
204
+ Minimize: "minimize",
205
+ Undo: "undo",
206
+ Redo: "redo",
207
+ Grip: "grip",
208
+ // — Usuarios —
209
+ UserPlus: "userPlus",
210
+ UserMinus: "userMinus",
211
+ // — Nube —
212
+ CloudUpload: "cloudUpload",
213
+ // — Layout —
214
+ Grid: "grid",
215
+ Layers: "layers",
216
+ Sliders: "sliders",
217
+ // — Dev —
218
+ Code: "code",
219
+ Terminal: "terminal",
220
+ // — Media —
221
+ Video: "video",
222
+ Microphone: "microphone",
223
+ MicOff: "micOff",
224
+ Volume: "volume",
225
+ VolumeOff: "volumeOff",
226
+ // — Comercio —
227
+ Percentage: "percentage",
228
+ Gift: "gift",
193
229
  };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import "./icon-animation.css";
2
2
  export type { DynamicIconProps, IconMode, IconProps } from "./types.js";
3
3
  export { default as Icon } from "./Icon.svelte";
4
+ export { default as IconLazy } from "./IconLazy.svelte";
4
5
  export { default as IconBase } from "./IconBase.svelte";
5
6
  export { default as CustomIcon } from "./CustomIcon.svelte";
6
7
  export { default as IconBadge } from "./IconBadge.svelte";
@@ -8,4 +9,5 @@ export { iconEffects, type IconEffectOptions } from "./effects.js";
8
9
  export { sanitizeSvg } from "./utils/sanitize.js";
9
10
  export { bzIcons, type BzIconKey, } from "./icons-api.js";
10
11
  export { iconRegistry, type IconComponent, type IconName, } from "./icons/registry.js";
12
+ export * from "./icons/components.js";
11
13
  export { getLoadedIcon, lazyIconNames, loadIcon, preloadIcons, } from "./icons/lazy-registry.js";
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import "./icon-animation.css";
4
4
  // 🧩 Componentes principales
5
5
  // ==============================
6
6
  export { default as Icon } from "./Icon.svelte";
7
+ export { default as IconLazy } from "./IconLazy.svelte";
7
8
  export { default as IconBase } from "./IconBase.svelte";
8
9
  export { default as CustomIcon } from "./CustomIcon.svelte";
9
10
  export { default as IconBadge } from "./IconBadge.svelte";
@@ -20,10 +21,16 @@ export { sanitizeSvg } from "./utils/sanitize.js";
20
21
  // ==============================
21
22
  export { bzIcons, } from "./icons-api.js";
22
23
  // ==============================
23
- // 🧱 Registry (avanzado)
24
+ // 🧱 Registry (componente dinámico <Icon name="x" />)
24
25
  // ==============================
25
26
  export { iconRegistry, } from "./icons/registry.js";
26
27
  // ==============================
28
+ // 🎯 Iconos directos — tree-shakeable
29
+ // Cada export es un re-export transparente: los bundlers eliminan
30
+ // los iconos no usados sin ejecutar código del barrel.
31
+ // ==============================
32
+ export * from "./icons/components.js";
33
+ // ==============================
27
34
  // ⚡ Lazy loading por ícono
28
35
  // ==============================
29
36
  export { getLoadedIcon, lazyIconNames, loadIcon, preloadIcons, } from "./icons/lazy-registry.js";
package/package.json CHANGED
@@ -1,36 +1,38 @@
1
1
  {
2
- "name": "@genarou/blazir-icons",
3
- "version": "1.3.3",
4
- "type": "module",
5
- "private": false,
6
- "publishConfig": {
7
- "access": "public"
2
+ "author": "Genaro Utrilla Garrido",
3
+ "bugs": {
4
+ "url": "https://github.com/GenaroUG/blazir-icons/issues"
8
5
  },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/GenaroUG/blazir-icons.git"
6
+ "devDependencies": {
7
+ "@sveltejs/kit": "^2.47.1",
8
+ "@sveltejs/package": "^2.5.0",
9
+ "@sveltejs/vite-plugin-svelte": "^3.1.2",
10
+ "@types/node": "^25.5.0",
11
+ "svelte": "^5.38.6",
12
+ "svelte-check": "^4.3.3",
13
+ "typescript": "^5.9.2",
14
+ "unplugin": "^3.0.0",
15
+ "vite": "^5.4.19"
12
16
  },
13
- "main": "./dist/index.js",
14
- "module": "./dist/index.js",
15
- "svelte": "./dist/index.js",
16
- "types": "./dist/index.d.ts",
17
- "sideEffects": [
18
- "**/*.css"
19
- ],
20
17
  "exports": {
21
18
  ".": {
22
- "types": "./dist/index.d.ts",
19
+ "default": "./dist/index.js",
23
20
  "svelte": "./dist/index.js",
24
- "default": "./dist/index.js"
21
+ "types": "./dist/index.d.ts"
22
+ },
23
+ "./components": {
24
+ "default": "./dist/icons/components.js",
25
+ "svelte": "./dist/icons/components.js",
26
+ "types": "./dist/icons/components.d.ts"
25
27
  },
26
28
  "./icons/*": {
27
- "types": "./dist/icons/*.svelte.d.ts",
29
+ "default": "./dist/icons/*.svelte",
28
30
  "svelte": "./dist/icons/*.svelte",
29
- "default": "./dist/icons/*.svelte"
31
+ "types": "./dist/icons/*.svelte.d.ts"
30
32
  },
31
33
  "./plugin": {
32
- "types": "./dist/plugin/index.d.ts",
33
- "default": "./dist/plugin/index.js"
34
+ "default": "./dist/plugin/index.js",
35
+ "types": "./dist/plugin/index.d.ts"
34
36
  }
35
37
  },
36
38
  "files": [
@@ -38,31 +40,7 @@
38
40
  "README.md",
39
41
  "LICENSE"
40
42
  ],
41
- "scripts": {
42
- "dev": "vite",
43
- "build": "svelte-package",
44
- "preview": "vite preview",
45
- "prepublishOnly": "npm run build",
46
- "clean": "rm -rf dist",
47
- "prebuild": "npm run clean",
48
- "try": "npm run build && vite --config play/vite.config.js",
49
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
50
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
51
- },
52
- "devDependencies": {
53
- "@sveltejs/kit": "^2.47.1",
54
- "@sveltejs/package": "^2.5.0",
55
- "@sveltejs/vite-plugin-svelte": "^3.1.2",
56
- "@types/node": "^25.5.0",
57
- "svelte": "^5.38.6",
58
- "svelte-check": "^4.3.3",
59
- "typescript": "^5.9.2",
60
- "unplugin": "^3.0.0",
61
- "vite": "^5.4.19"
62
- },
63
- "peerDependencies": {
64
- "svelte": "^5.0.0"
65
- },
43
+ "homepage": "https://github.com/GenaroUG/blazir-icons#readme",
66
44
  "keywords": [
67
45
  "svelte",
68
46
  "icons",
@@ -70,10 +48,37 @@
70
48
  "blazir",
71
49
  "ui"
72
50
  ],
73
- "author": "Genaro Utrilla Garrido",
74
51
  "license": "BUSL-1.1",
75
- "homepage": "https://github.com/GenaroUG/blazir-icons#readme",
76
- "bugs": {
77
- "url": "https://github.com/GenaroUG/blazir-icons/issues"
78
- }
79
- }
52
+ "main": "./dist/index.js",
53
+ "module": "./dist/index.js",
54
+ "name": "@genarou/blazir-icons",
55
+ "peerDependencies": {
56
+ "svelte": "^5.0.0"
57
+ },
58
+ "private": false,
59
+ "publishConfig": {
60
+ "access": "public"
61
+ },
62
+ "repository": {
63
+ "type": "git",
64
+ "url": "git+https://github.com/GenaroUG/blazir-icons.git"
65
+ },
66
+ "scripts": {
67
+ "build": "svelte-package",
68
+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
69
+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
70
+ "clean": "rm -rf dist",
71
+ "dev": "vite",
72
+ "prebuild": "npm run clean",
73
+ "prepublishOnly": "npm run build",
74
+ "preview": "vite preview",
75
+ "try": "npm run build && vite --config play/vite.config.js"
76
+ },
77
+ "sideEffects": [
78
+ "**/*.css"
79
+ ],
80
+ "svelte": "./dist/index.js",
81
+ "type": "module",
82
+ "types": "./dist/index.d.ts",
83
+ "version": "1.3.5"
84
+ }
@@ -1,2 +0,0 @@
1
- export { default as Icon } from "../Icon.svelte";
2
- export * from "./registry";
@@ -1,4 +0,0 @@
1
- // ✅ Componente dinámico
2
- export { default as Icon } from "../Icon.svelte";
3
- // ✅ Registry para uso interno del componente dinámico
4
- export * from "./registry";