@sigx/lynx-icons-lucide 0.4.1 → 0.4.2
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/dist/components.d.ts +22 -0
- package/dist/components.js +15 -0
- package/package.json +12 -5
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pinned `LucideIcon` — ergonomic shortcut around `<Icon set="lucide" name=>`.
|
|
3
|
+
* The `set` id is hard-coded to the conventional value (`'lucide'`)
|
|
4
|
+
* documented in the README; consumers using a non-default set id should
|
|
5
|
+
* fall back to the generic `<Icon>` or write their own one-line pin.
|
|
6
|
+
*
|
|
7
|
+
* Rendering still goes through `@sigx/lynx-icons`' `<Icon>`, so SVG
|
|
8
|
+
* branching, color sanitization, and theming behavior is shared with the
|
|
9
|
+
* rest of the icons pipeline. This wrapper only forwards props.
|
|
10
|
+
*/
|
|
11
|
+
import { type Define } from '@sigx/lynx';
|
|
12
|
+
import { type IconPropsExtensions } from '@sigx/lynx-icons';
|
|
13
|
+
type LucideIconProps = Define.Prop<'name', string, true> & Define.Prop<'size', number, false> & Define.Prop<'color', string, false> & Define.Prop<'class', string, false>
|
|
14
|
+
/**
|
|
15
|
+
* Inherit any theme-augmented props (e.g. daisy's `variant?: DaisyColor`).
|
|
16
|
+
* Sourced from core `IconPropsExtensions` so the pinned component's
|
|
17
|
+
* surface stays in sync without explicit forwarding.
|
|
18
|
+
*/
|
|
19
|
+
& IconPropsExtensions;
|
|
20
|
+
/** Lucide icon — pins `set="lucide"` so callers only specify the name. */
|
|
21
|
+
export declare const LucideIcon: import("@sigx/runtime-core").ComponentFactory<LucideIconProps, void, {}>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@sigx/lynx/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* Pinned `LucideIcon` — ergonomic shortcut around `<Icon set="lucide" name=>`.
|
|
4
|
+
* The `set` id is hard-coded to the conventional value (`'lucide'`)
|
|
5
|
+
* documented in the README; consumers using a non-default set id should
|
|
6
|
+
* fall back to the generic `<Icon>` or write their own one-line pin.
|
|
7
|
+
*
|
|
8
|
+
* Rendering still goes through `@sigx/lynx-icons`' `<Icon>`, so SVG
|
|
9
|
+
* branching, color sanitization, and theming behavior is shared with the
|
|
10
|
+
* rest of the icons pipeline. This wrapper only forwards props.
|
|
11
|
+
*/
|
|
12
|
+
import { component } from '@sigx/lynx';
|
|
13
|
+
import { Icon } from '@sigx/lynx-icons';
|
|
14
|
+
/** Lucide icon — pins `set="lucide"` so callers only specify the name. */
|
|
15
|
+
export const LucideIcon = component(({ props }) => () => (_jsx(Icon, { ...props, set: "lucide" })));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sigx/lynx-icons-lucide",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2",
|
|
4
4
|
"description": "Lucide adapter for @sigx/lynx-icons. SVG-mode only — lucide is not distributed as a font.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -11,6 +11,11 @@
|
|
|
11
11
|
"import": "./dist/index.js",
|
|
12
12
|
"default": "./dist/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./components": {
|
|
15
|
+
"types": "./dist/components.d.ts",
|
|
16
|
+
"import": "./dist/components.js",
|
|
17
|
+
"default": "./dist/components.js"
|
|
18
|
+
},
|
|
14
19
|
"./package.json": "./package.json"
|
|
15
20
|
},
|
|
16
21
|
"files": [
|
|
@@ -20,14 +25,16 @@
|
|
|
20
25
|
],
|
|
21
26
|
"peerDependencies": {
|
|
22
27
|
"lucide": "^1.0.0",
|
|
23
|
-
"@sigx/lynx
|
|
28
|
+
"@sigx/lynx": "^0.4.2",
|
|
29
|
+
"@sigx/lynx-icons": "^0.4.2"
|
|
24
30
|
},
|
|
25
31
|
"devDependencies": {
|
|
26
|
-
"@types/node": "^25.
|
|
27
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
32
|
+
"@types/node": "^25.9.1",
|
|
33
|
+
"@typescript/native-preview": "7.0.0-dev.20260521.1",
|
|
28
34
|
"lucide": "^1.16.0",
|
|
29
35
|
"typescript": "^6.0.3",
|
|
30
|
-
"@sigx/lynx
|
|
36
|
+
"@sigx/lynx": "^0.4.2",
|
|
37
|
+
"@sigx/lynx-icons": "^0.4.2"
|
|
31
38
|
},
|
|
32
39
|
"author": "Andreas Ekdahl",
|
|
33
40
|
"license": "MIT",
|