@lucide/astro 0.561.0 → 0.563.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  ISC License
2
2
 
3
- Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2023 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2025.
3
+ Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2026 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2026.
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
6
6
  purpose with or without fee is hereby granted, provided that the above
@@ -18,7 +18,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
18
 
19
19
  The MIT License (MIT) (for portions derived from Feather)
20
20
 
21
- Copyright (c) 2013-2023 Cole Bemis
21
+ Copyright (c) 2013-2026 Cole Bemis
22
22
 
23
23
  Permission is hereby granted, free of charge, to any person obtaining a copy
24
24
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -68,7 +68,16 @@ Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/licen
68
68
 
69
69
  <a href="https://www.digitalocean.com/?refcode=b0877a2caebd&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge"><img src="https://lucide.dev/digitalocean.svg" width="200" alt="DigitalOcean Referral Badge" /></a>
70
70
 
71
+ [//]: <> (Open Collective backers)
71
72
  ### Awesome backers 🍺
72
73
 
73
- <a href="https://www.scipress.io?utm_source=lucide"><img src="https://lucide.dev/sponsors/scipress.svg" width="180" alt="Scipress sponsor badge" /></a>
74
- <a href="https://github.com/pdfme/pdfme"><img src="https://lucide.dev/sponsors/pdfme.svg" width="180" alt="pdfme sponsor badge" /></a>
74
+ <a href="https://github.com/pdfme/pdfme"><img src="https://lucide.dev/sponsors/pdfme.svg" width="180" alt="pdfme Open-source PDF generation library built with TypeScript and React." /></a>
75
+ <a href="https://www.paxhistoria.co/"><img src="https://lucide.dev/sponsors/paxhistoria.svg?" width="180" alt="Pax Historia – An alternate history sandbox game" /></a>
76
+
77
+ ### Backers ☕
78
+
79
+ <a href="https://www.fina.money/"><img src="https://lucide.dev/sponsors/fina-money.png" width="180" alt="Fina Money – Modular Finance Tracker" /></a>
80
+
81
+ ### Other contributors 💸
82
+
83
+ You can find all our past and non-recurring financial contributors at [our Open Collective page](https://opencollective.com/lucide-icons).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucide/astro",
3
- "version": "0.561.0",
3
+ "version": "0.563.0",
4
4
  "author": "Moustapha Kebe",
5
5
  "description": "A Lucide icon library package for Astro applications.",
6
6
  "license": "ISC",
@@ -41,7 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@astrojs/ts-plugin": "^1.10.4",
43
43
  "@testing-library/dom": "^10.4.0",
44
- "@testing-library/jest-dom": "^6.6.3",
44
+ "@testing-library/jest-dom": "^6.8.0",
45
45
  "jest-serializer-html": "^7.1.0",
46
46
  "linkedom": "^0.18.5",
47
47
  "prettier": "^3.4.2",
@@ -55,11 +55,13 @@
55
55
  "astro": "^4 || ^5"
56
56
  },
57
57
  "scripts": {
58
- "build": "pnpm clean && pnpm copy:license && pnpm build:icons",
58
+ "build": "pnpm clean && pnpm copy:license && pnpm copy:utils && pnpm build:icons",
59
59
  "build:icons": "build-icons --output=./src --templateSrc=./scripts/exportTemplate.mts --renderUniqueKey --withAliases --aliasesFileExtension=.ts --iconFileExtension=.ts --exportFileName=index.ts --pretty=false",
60
60
  "clean": "rm -rf dist && rm -rf stats && rm -rf ./src/icons/*.ts",
61
61
  "copy:license": "cp ../../LICENSE ./LICENSE",
62
- "test": "pnpm build:icons && vitest run",
62
+ "copy:utils": "mkdir -p ./src/utils && for f in hasA11yProp toKebabCase mergeClasses; do cp -f ../../packages/shared/src/utils/$f.ts ./src/utils/; done",
63
+ "test": "pnpm copy:utils && pnpm build:icons && vitest run",
64
+ "test:watch": "pnpm build:icons && vitest run --watch",
63
65
  "version": "pnpm version --git-tag-version=false"
64
66
  }
65
67
  }
package/src/Icon.astro CHANGED
@@ -1,6 +1,8 @@
1
1
  ---
2
2
  import defaultAttributes from './defaultAttributes';
3
3
  import type { IconProps as Props } from './types';
4
+ import { hasA11yProp } from './utils/hasA11yProp';
5
+
4
6
 
5
7
  const {
6
8
  color = 'currentColor',
@@ -20,6 +22,7 @@ const {
20
22
  height: size,
21
23
  stroke: color,
22
24
  'stroke-width': absoluteStrokeWidth ? (Number(strokeWidth) * 24) / Number(size) : strokeWidth,
25
+ ...(!hasA11yProp(rest) && { 'aria-hidden': 'true' }),
23
26
  ...rest,
24
27
  }}
25
28
  class:list={['lucide', className]}