lucide-extended-react 0.4.0 → 0.5.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 CHANGED
@@ -1,4 +1,4 @@
1
- ![lucide-extended-react: filled and duotone icons](.github/assets/cover.png)
1
+ ![lucide-extended-react: filled and duotone icons](https://raw.githubusercontent.com/applifted/lucide-extended/main/.github/assets/cover.png)
2
2
 
3
3
  # lucide-extended-react
4
4
 
@@ -8,6 +8,8 @@ Filled and duotone versions of [Lucide](https://lucide.dev) icons, for React.
8
8
 
9
9
  > Not affiliated with or endorsed by Lucide.
10
10
 
11
+ The same icons are in [`lucide-extended-js`](https://www.npmjs.com/package/lucide-extended-js) for plain JavaScript, and in [`lucide-extended-static`](https://www.npmjs.com/package/lucide-extended-static) as SVG files, a sprite and SVG strings.
12
+
11
13
  ## Install
12
14
 
13
15
  ```sh
@@ -119,7 +121,7 @@ The shapes are derived from [Lucide](https://github.com/lucide-icons/lucide) (IS
119
121
 
120
122
  ## Contributing
121
123
 
122
- Icons are added as SVGs. The steps are in [CONTRIBUTING.md](./CONTRIBUTING.md).
124
+ Icons are added as SVGs. The steps are in [CONTRIBUTING.md](https://github.com/applifted/lucide-extended/blob/main/CONTRIBUTING.md).
123
125
 
124
126
  ## Support
125
127
 
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_SECONDARY_OPACITY = 0.15;
@@ -0,0 +1,2 @@
1
+ // Generated from scripts/constants.ts — do not edit
2
+ export const DEFAULT_SECONDARY_OPACITY = 0.15;
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef, } from 'react';
2
- const DEFAULT_SECONDARY_OPACITY = 0.15; // keep in sync with scripts/constants.ts
2
+ import { DEFAULT_SECONDARY_OPACITY } from './constants.js';
3
3
  function createIcon(displayName, slug, nodes) {
4
4
  const Component = forwardRef(({ size = 24, color = 'currentColor', secondaryColor, secondaryOpacity = DEFAULT_SECONDARY_OPACITY, strokeWidth: _strokeWidth, absoluteStrokeWidth: _absoluteStrokeWidth, className, children, ...rest }, ref) => {
5
5
  const labelled = rest['aria-label'] != null || rest['aria-labelledby'] != null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucide-extended-react",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Filled and duotone React icons using Lucide's icon names, designed to sit alongside lucide-react. Not affiliated with or endorsed by Lucide.",
5
5
  "keywords": [
6
6
  "icons",
@@ -16,7 +16,8 @@
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",
19
- "url": "git+https://github.com/applifted/lucide-extended.git"
19
+ "url": "git+https://github.com/applifted/lucide-extended.git",
20
+ "directory": "packages/react"
20
21
  },
21
22
  "license": "ISC",
22
23
  "author": "Applifted",
@@ -40,35 +41,19 @@
40
41
  "./package.json": "./package.json"
41
42
  },
42
43
  "scripts": {
43
- "validate": "tsx scripts/validate.ts",
44
- "generate": "tsx scripts/generate.ts",
45
- "catalogue": "tsx scripts/catalogue.ts",
46
- "qa": "npm run generate && tsx scripts/qa.ts",
47
- "build": "npm run validate && npm run generate && tsc -p tsconfig.build.json",
44
+ "build": "tsc -p tsconfig.build.json",
48
45
  "test": "vitest run",
49
46
  "check:package": "publint && attw --pack . --profile esm-only",
50
- "prepublishOnly": "npm run build && npm test && npm run check:package"
47
+ "prepublishOnly": "npm --prefix ../.. run build && npm test && npm run check:package"
51
48
  },
52
49
  "peerDependencies": {
53
50
  "react": ">=18"
54
51
  },
55
52
  "devDependencies": {
56
- "@arethetypeswrong/cli": "^0.18.5",
57
- "@changesets/cli": "^3.0.3",
58
53
  "@testing-library/react": "^16.3.3",
59
54
  "@types/react": "^19.3.0",
60
- "fast-glob": "^3.3.3",
61
- "jsdom": "^30.1.1",
62
- "lucide-react": "1.61.0",
63
- "publint": "^0.3.24",
64
55
  "react": "^19.3.0",
65
- "react-dom": "^19.3.0",
66
- "svgo": "^4.1.0",
67
- "svgson": "^5.3.1",
68
- "tsx": "^4.23.15",
69
- "typescript": "^7.0.2",
70
- "vite": "^8.3.1",
71
- "vitest": "^5.0.1"
56
+ "react-dom": "^19.3.0"
72
57
  },
73
58
  "publishConfig": {
74
59
  "access": "public",