@lucide/astro 1.31.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 +594 -590
- package/src/aliases/suffixed.ts +958 -954
- package/src/createLucideIcon.ts +1 -1
- package/src/icons/car-battery.ts +18 -0
- package/src/icons/index.ts +181 -179
- 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 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;
|