@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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import createLucideIcon from '../createLucideIcon';
|
|
3
|
+
import type { AstroComponent } from '../types'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @component @name MailBadge
|
|
7
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
|
+
*
|
|
9
|
+
* @preview  - https://lucide.dev/icons/mail-badge
|
|
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 MailBadge = createLucideIcon('mail-badge', [["path",{"d":"M22 7.7V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8.25"}],["path",{"d":"M12 12.996a1.94 1.94 0 0 1-1.03-.296L2 7"}],["path",{"d":"m20.69 16.479 1.29 4.88a.5.5 0 0 1-.698.591l-1.843-.849a1 1 0 0 0-.879.001l-1.846.85a.5.5 0 0 1-.692-.593l1.29-4.88"}],["circle",{"cx":"19","cy":"14","r":"3"}]]) as AstroComponent;
|
|
17
|
+
|
|
18
|
+
export default MailBadge;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import createLucideIcon from '../createLucideIcon';
|
|
3
|
+
import type { AstroComponent } from '../types'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @component @name SquareText
|
|
7
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
|
+
*
|
|
9
|
+
* @preview  - https://lucide.dev/icons/square-text
|
|
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 SquareText = createLucideIcon('square-text', [["rect",{"width":"18","height":"18","x":"3","y":"3","rx":"2"}],["path",{"d":"M7 8h8"}],["path",{"d":"M7 12h10"}],["path",{"d":"M7 16h6"}]]) as AstroComponent;
|
|
17
|
+
|
|
18
|
+
export default SquareText;
|
package/src/types.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HTMLAttributes } from 'astro/types';
|
|
2
2
|
|
|
3
3
|
// Type that the Astro language server needs to infer component props in Astro files
|
|
4
|
-
export type AstroComponent = (_props: IconProps) =>
|
|
4
|
+
export type AstroComponent = (_props: IconProps) => unknown;
|
|
5
5
|
|
|
6
6
|
export interface IconProps extends SVGAttributes {
|
|
7
7
|
color?: string;
|
package/src/utils/hasA11yProp.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @param {object} props
|
|
5
5
|
* @returns {boolean} Whether the component has an accessibility prop
|
|
6
6
|
*/
|
|
7
|
-
export const hasA11yProp = (props:
|
|
7
|
+
export const hasA11yProp = (props: object) => {
|
|
8
8
|
for (const prop in props) {
|
|
9
9
|
if (prop.startsWith('aria-') || prop === 'role' || prop === 'title') {
|
|
10
10
|
return true;
|