@lucide/astro 0.562.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 +2 -2
- package/README.md +11 -2
- package/package.json +6 -4
- package/src/Icon.astro +3 -0
- package/src/aliases/aliases.ts +88 -88
- package/src/aliases/prefixed.ts +482 -478
- package/src/aliases/suffixed.ts +901 -897
- package/src/createLucideIcon.ts +2 -1
- package/src/icons/bookmark-check.ts +2 -2
- package/src/icons/bookmark-minus.ts +2 -2
- package/src/icons/bookmark-plus.ts +2 -2
- package/src/icons/bookmark-x.ts +2 -2
- package/src/icons/bookmark.ts +2 -2
- package/src/icons/cloud-off.ts +2 -2
- package/src/icons/cloudy.ts +2 -2
- package/src/icons/globe-x.ts +18 -0
- package/src/icons/index.ts +128 -126
- package/src/icons/lasso.ts +2 -2
- package/src/icons/message-square-dashed.ts +2 -2
- package/src/icons/monitor-off.ts +2 -2
- package/src/icons/printer-x.ts +18 -0
- package/src/icons/star-off.ts +2 -2
- package/src/icons/tickets-plane.ts +2 -2
- package/src/icons/waypoints.ts +2 -2
- package/src/types.ts +1 -0
- package/src/utils/hasA11yProp.ts +15 -0
- package/src/{utils.ts → utils/mergeClasses.ts} +1 -12
- package/src/utils/toKebabCase.ts +8 -0
package/src/createLucideIcon.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { mergeClasses, toKebabCase } from './utils';
|
|
2
1
|
import type { AstroComponentFactory } from 'astro/runtime/server/render/astro/factory.js';
|
|
3
2
|
import type { IconNode } from './types';
|
|
4
3
|
import { render, renderSlot, createComponent, renderComponent } from 'astro/compiler-runtime';
|
|
5
4
|
import Icon from './Icon.astro';
|
|
5
|
+
import { mergeClasses } from './utils/mergeClasses';
|
|
6
|
+
import { toKebabCase } from './utils/toKebabCase';
|
|
6
7
|
|
|
7
8
|
export default (iconName: string, iconNode: IconNode): AstroComponentFactory => {
|
|
8
9
|
const Component = createComponent(
|
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name BookmarkCheck
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/bookmark-check
|
|
10
10
|
* @see https://lucide.dev/guide/packages/lucide-astro - Documentation
|
|
11
11
|
*
|
|
12
12
|
* @param {import('../types').IconProps} props - Lucide icons props and any valid SVG attribute
|
|
13
13
|
* @returns {any} Astro Component
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const BookmarkCheck = createLucideIcon('bookmark-check', [["path",{"d":"
|
|
16
|
+
const BookmarkCheck = createLucideIcon('bookmark-check', [["path",{"d":"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"}],["path",{"d":"m9 10 2 2 4-4"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default BookmarkCheck;
|
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name BookmarkMinus
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/bookmark-minus
|
|
10
10
|
* @see https://lucide.dev/guide/packages/lucide-astro - Documentation
|
|
11
11
|
*
|
|
12
12
|
* @param {import('../types').IconProps} props - Lucide icons props and any valid SVG attribute
|
|
13
13
|
* @returns {any} Astro Component
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const BookmarkMinus = createLucideIcon('bookmark-minus', [["path",{"d":"
|
|
16
|
+
const BookmarkMinus = createLucideIcon('bookmark-minus', [["path",{"d":"M15 10H9"}],["path",{"d":"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default BookmarkMinus;
|
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name BookmarkPlus
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/bookmark-plus
|
|
10
10
|
* @see https://lucide.dev/guide/packages/lucide-astro - Documentation
|
|
11
11
|
*
|
|
12
12
|
* @param {import('../types').IconProps} props - Lucide icons props and any valid SVG attribute
|
|
13
13
|
* @returns {any} Astro Component
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const BookmarkPlus = createLucideIcon('bookmark-plus', [["path",{"d":"
|
|
16
|
+
const BookmarkPlus = createLucideIcon('bookmark-plus', [["path",{"d":"M12 7v6"}],["path",{"d":"M15 10H9"}],["path",{"d":"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default BookmarkPlus;
|
package/src/icons/bookmark-x.ts
CHANGED
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name BookmarkX
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/bookmark-x
|
|
10
10
|
* @see https://lucide.dev/guide/packages/lucide-astro - Documentation
|
|
11
11
|
*
|
|
12
12
|
* @param {import('../types').IconProps} props - Lucide icons props and any valid SVG attribute
|
|
13
13
|
* @returns {any} Astro Component
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const BookmarkX = createLucideIcon('bookmark-x', [["path",{"d":"
|
|
16
|
+
const BookmarkX = createLucideIcon('bookmark-x', [["path",{"d":"m14.5 7.5-5 5"}],["path",{"d":"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"}],["path",{"d":"m9.5 7.5 5 5"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default BookmarkX;
|
package/src/icons/bookmark.ts
CHANGED
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name Bookmark
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/bookmark
|
|
10
10
|
* @see https://lucide.dev/guide/packages/lucide-astro - Documentation
|
|
11
11
|
*
|
|
12
12
|
* @param {import('../types').IconProps} props - Lucide icons props and any valid SVG attribute
|
|
13
13
|
* @returns {any} Astro Component
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const Bookmark = createLucideIcon('bookmark', [["path",{"d":"
|
|
16
|
+
const Bookmark = createLucideIcon('bookmark', [["path",{"d":"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default Bookmark;
|
package/src/icons/cloud-off.ts
CHANGED
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name CloudOff
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/cloud-off
|
|
10
10
|
* @see https://lucide.dev/guide/packages/lucide-astro - Documentation
|
|
11
11
|
*
|
|
12
12
|
* @param {import('../types').IconProps} props - Lucide icons props and any valid SVG attribute
|
|
13
13
|
* @returns {any} Astro Component
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const CloudOff = createLucideIcon('cloud-off', [["path",{"d":"
|
|
16
|
+
const CloudOff = createLucideIcon('cloud-off', [["path",{"d":"M10.94 5.274A7 7 0 0 1 15.71 10h1.79a4.5 4.5 0 0 1 4.222 6.057"}],["path",{"d":"M18.796 18.81A4.5 4.5 0 0 1 17.5 19H9A7 7 0 0 1 5.79 5.78"}],["path",{"d":"m2 2 20 20"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default CloudOff;
|
package/src/icons/cloudy.ts
CHANGED
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name Cloudy
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/cloudy
|
|
10
10
|
* @see https://lucide.dev/guide/packages/lucide-astro - Documentation
|
|
11
11
|
*
|
|
12
12
|
* @param {import('../types').IconProps} props - Lucide icons props and any valid SVG attribute
|
|
13
13
|
* @returns {any} Astro Component
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
const Cloudy = createLucideIcon('cloudy', [["path",{"d":"M17.5
|
|
16
|
+
const Cloudy = createLucideIcon('cloudy', [["path",{"d":"M17.5 12a1 1 0 1 1 0 9H9.006a7 7 0 1 1 6.702-9z"}],["path",{"d":"M21.832 9A3 3 0 0 0 19 7h-2.207a5.5 5.5 0 0 0-10.72.61"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default Cloudy;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import createLucideIcon from '../createLucideIcon';
|
|
3
|
+
import type { AstroComponent } from '../types'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @component @name GlobeX
|
|
7
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
|
+
*
|
|
9
|
+
* @preview  - https://lucide.dev/icons/globe-x
|
|
10
|
+
* @see https://lucide.dev/guide/packages/lucide-astro - Documentation
|
|
11
|
+
*
|
|
12
|
+
* @param {import('../types').IconProps} props - Lucide icons props and any valid SVG attribute
|
|
13
|
+
* @returns {any} Astro Component
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
const GlobeX = createLucideIcon('globe-x', [["path",{"d":"m16 3 5 5"}],["path",{"d":"M2 12h20A10 10 0 1 1 12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 4-10"}],["path",{"d":"m21 3-5 5"}]]) as AstroComponent;
|
|
17
|
+
|
|
18
|
+
export default GlobeX;
|