@effectweb/lucide 0.6.0 → 0.8.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 +1 -1
- package/dist/attributes.js +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ Import shared types with `import type { LucideIcon, LucideProps } from '@effectw
|
|
|
25
25
|
- `size`: number or CSS length, default `24`; `width` and `height` override it individually.
|
|
26
26
|
- `color`: default `currentColor`; `strokeWidth`: default `2`. Native `stroke` and `stroke-width` attributes take precedence.
|
|
27
27
|
- `absoluteStrokeWidth`: adds `vector-effect="non-scaling-stroke"` to geometry, including with CSS dimensions.
|
|
28
|
-
- `class`, `
|
|
28
|
+
- `class`, `classList`, `style`, native SVG attributes, `data-*`, and `aria-*`.
|
|
29
29
|
- Native events, capture handlers, EffectWeb event effects, `use` lifetimes, and compiled JSX children follow the normal EffectWeb contracts.
|
|
30
30
|
- `title`: an SVG `<title>` that updates with the model.
|
|
31
31
|
|
package/dist/attributes.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Keep icon-only options off the DOM; ordinary SVG attributes remain overridable. */
|
|
2
2
|
export function iconAttributes(props, names, width, height) {
|
|
3
|
-
const { size = 24, color = 'currentColor', strokeWidth = 2, absoluteStrokeWidth: _absolute, title, children: _children, class: className,
|
|
3
|
+
const { size = 24, color = 'currentColor', strokeWidth = 2, absoluteStrokeWidth: _absolute, title, children: _children, class: className, ...attributes } = props;
|
|
4
4
|
const labelled = Boolean(title || attributes['aria-label'] || attributes['aria-labelledby']);
|
|
5
5
|
return {
|
|
6
6
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -15,6 +15,6 @@ export function iconAttributes(props, names, width, height) {
|
|
|
15
15
|
'aria-hidden': labelled ? undefined : true,
|
|
16
16
|
role: labelled ? 'img' : undefined,
|
|
17
17
|
...attributes,
|
|
18
|
-
class: ['lucide', names, className
|
|
18
|
+
class: ['lucide', names, className].filter(Boolean).join(' '),
|
|
19
19
|
};
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effectweb/lucide",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Lucide icons compiled to direct DOM views for EffectWeb",
|
|
5
5
|
"homepage": "https://github.com/DerpyCrabs/EffectWeb/tree/main/packages/lucide",
|
|
6
6
|
"license": "ISC",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"effect": "4.0.0-rc.112",
|
|
48
|
-
"effectweb": "^0.
|
|
48
|
+
"effectweb": "^0.8.0"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": ">=22.14"
|