@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.
@@ -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 ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cGF0aCBkPSJNMjIgNy43VjZhMiAyIDAgMCAwLTItMkg0YTIgMiAwIDAgMC0yIDJ2MTJhMiAyIDAgMCAwIDIgMmg4LjI1IiAvPgogIDxwYXRoIGQ9Ik0xMiAxMi45OTZhMS45NCAxLjk0IDAgMCAxLTEuMDMtLjI5NkwyIDciIC8+CiAgPHBhdGggZD0ibTIwLjY5IDE2LjQ3OSAxLjI5IDQuODhhLjUuNSAwIDAgMS0uNjk4LjU5MWwtMS44NDMtLjg0OWExIDEgMCAwIDAtLjg3OS4wMDFsLTEuODQ2Ljg1YS41LjUgMCAwIDEtLjY5Mi0uNTkzbDEuMjktNC44OCIgLz4KICA8Y2lyY2xlIGN4PSIxOSIgY3k9IjE0IiByPSIzIiAvPgo8L3N2Zz4K) - 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 ![img](data:image/svg+xml;base64,PHN2ZyAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogIHdpZHRoPSIyNCIKICBoZWlnaHQ9IjI0IgogIHZpZXdCb3g9IjAgMCAyNCAyNCIKICBmaWxsPSJub25lIgogIHN0cm9rZT0iIzAwMCIgc3R5bGU9ImJhY2tncm91bmQtY29sb3I6ICNmZmY7IGJvcmRlci1yYWRpdXM6IDJweCIKICBzdHJva2Utd2lkdGg9IjIiCiAgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIgogIHN0cm9rZS1saW5lam9pbj0icm91bmQiCj4KICA8cmVjdCB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHg9IjMiIHk9IjMiIHJ4PSIyIiAvPgogIDxwYXRoIGQ9Ik03IDhoOCIgLz4KICA8cGF0aCBkPSJNNyAxMmgxMCIgLz4KICA8cGF0aCBkPSJNNyAxNmg2IiAvPgo8L3N2Zz4K) - 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) => any;
4
+ export type AstroComponent = (_props: IconProps) => unknown;
5
5
 
6
6
  export interface IconProps extends SVGAttributes {
7
7
  color?: string;
@@ -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: Record<string, any>) => {
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;