@lucide/astro 1.30.0 → 1.32.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/package.json +1 -1
- package/src/aliases/aliases.ts +90 -90
- package/src/aliases/prefixed.ts +643 -633
- package/src/aliases/suffixed.ts +918 -908
- package/src/createLucideIcon.ts +1 -1
- package/src/icons/angle.ts +18 -0
- package/src/icons/car-battery.ts +18 -0
- package/src/icons/eject.ts +18 -0
- package/src/icons/index.ts +195 -190
- package/src/icons/mail-badge.ts +18 -0
- package/src/icons/square-text.ts +18 -0
- package/src/types.ts +1 -1
- package/src/utils/hasA11yProp.ts +1 -1
package/src/createLucideIcon.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { toKebabCase } from './utils/toKebabCase';
|
|
|
7
7
|
|
|
8
8
|
export default (iconName: string, iconNode: IconNode): AstroComponentFactory => {
|
|
9
9
|
const Component = createComponent(
|
|
10
|
-
($$result, $$props: Record<string,
|
|
10
|
+
($$result, $$props: Record<string, unknown>, $$slots) => {
|
|
11
11
|
const { class: className, ...restProps } = $$props;
|
|
12
12
|
return render`${renderComponent(
|
|
13
13
|
$$result,
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import createLucideIcon from '../createLucideIcon';
|
|
3
|
+
import type { AstroComponent } from '../types'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @component @name Angle
|
|
7
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
|
+
*
|
|
9
|
+
* @preview  - https://lucide.dev/icons/angle
|
|
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 Angle = createLucideIcon('angle', [["path",{"d":"M3 3v16a2 2 0 0 0 2 2h16"}],["path",{"d":"M3 11a10 10 0 0 1 10 10"}]]) as AstroComponent;
|
|
17
|
+
|
|
18
|
+
export default Angle;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import createLucideIcon from '../createLucideIcon';
|
|
3
|
+
import type { AstroComponent } from '../types'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @component @name CarBattery
|
|
7
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
|
+
*
|
|
9
|
+
* @preview  - https://lucide.dev/icons/car-battery
|
|
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 CarBattery = createLucideIcon('car-battery', [["path",{"d":"M14 13h4"}],["path",{"d":"M16 15v-4"}],["path",{"d":"M18 5v2"}],["path",{"d":"M6 13h4"}],["path",{"d":"M6 5v2"}],["rect",{"x":"2","y":"7","width":"20","height":"12","rx":"2"}]]) as AstroComponent;
|
|
17
|
+
|
|
18
|
+
export default CarBattery;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import createLucideIcon from '../createLucideIcon';
|
|
3
|
+
import type { AstroComponent } from '../types'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @component @name Eject
|
|
7
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
|
+
*
|
|
9
|
+
* @preview  - https://lucide.dev/icons/eject
|
|
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 Eject = createLucideIcon('eject', [["path",{"d":"M4 13a1 1 0 0 1-.72-1.695l7.257-7.668a2 2 0 0 1 2.926 0l7.256 7.668A1 1 0 0 1 20 13z"}],["rect",{"x":"3","y":"17","width":"18","height":"4","rx":"1"}]]) as AstroComponent;
|
|
17
|
+
|
|
18
|
+
export default Eject;
|