@lucide/astro 0.561.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 +144 -144
- package/src/aliases/prefixed.ts +674 -668
- package/src/aliases/suffixed.ts +1064 -1058
- 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 +95 -92
- 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/paint-bucket.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/toolbox.ts +18 -0
- 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/icons/lasso.ts
CHANGED
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name Lasso
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/lasso
|
|
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 Lasso = createLucideIcon('lasso', [["path",{"d":"M3.704 14.
|
|
16
|
+
const Lasso = createLucideIcon('lasso', [["path",{"d":"M3.704 14.467a10 8 0 1 1 3.115 2.375"}],["path",{"d":"M7 22a5 5 0 0 1-2-3.994"}],["circle",{"cx":"5","cy":"16","r":"2"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default Lasso;
|
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name MessageSquareDashed
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/message-square-dashed
|
|
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 MessageSquareDashed = createLucideIcon('message-square-dashed', [["path",{"d":"
|
|
16
|
+
const MessageSquareDashed = createLucideIcon('message-square-dashed', [["path",{"d":"M14 3h2"}],["path",{"d":"M16 19h-2"}],["path",{"d":"M2 12v-2"}],["path",{"d":"M2 16v5.286a.71.71 0 0 0 1.212.502l1.149-1.149"}],["path",{"d":"M20 19a2 2 0 0 0 2-2v-1"}],["path",{"d":"M22 10v2"}],["path",{"d":"M22 6V5a2 2 0 0 0-2-2"}],["path",{"d":"M4 3a2 2 0 0 0-2 2v1"}],["path",{"d":"M8 19h2"}],["path",{"d":"M8 3h2"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default MessageSquareDashed;
|
package/src/icons/monitor-off.ts
CHANGED
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name MonitorOff
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/monitor-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 MonitorOff = createLucideIcon('monitor-off', [["path",{"d":"
|
|
16
|
+
const MonitorOff = createLucideIcon('monitor-off', [["path",{"d":"M12 17v4"}],["path",{"d":"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826"}],["path",{"d":"m2 2 20 20"}],["path",{"d":"M8 21h8"}],["path",{"d":"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default MonitorOff;
|
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name PaintBucket
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/paint-bucket
|
|
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 PaintBucket = createLucideIcon('paint-bucket', [["path",{"d":"
|
|
16
|
+
const PaintBucket = createLucideIcon('paint-bucket', [["path",{"d":"M11 7 6 2"}],["path",{"d":"M18.992 12H2.041"}],["path",{"d":"M21.145 18.38A3.34 3.34 0 0 1 20 16.5a3.3 3.3 0 0 1-1.145 1.88c-.575.46-.855 1.02-.855 1.595A2 2 0 0 0 20 22a2 2 0 0 0 2-2.025c0-.58-.285-1.13-.855-1.595"}],["path",{"d":"m8.5 4.5 2.148-2.148a1.205 1.205 0 0 1 1.704 0l7.296 7.296a1.205 1.205 0 0 1 0 1.704l-7.592 7.592a3.615 3.615 0 0 1-5.112 0l-3.888-3.888a3.615 3.615 0 0 1 0-5.112L5.67 7.33"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default PaintBucket;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import createLucideIcon from '../createLucideIcon';
|
|
3
|
+
import type { AstroComponent } from '../types'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @component @name PrinterX
|
|
7
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
|
+
*
|
|
9
|
+
* @preview  - https://lucide.dev/icons/printer-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 PrinterX = createLucideIcon('printer-x', [["path",{"d":"M12.531 22H7a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1h6.377"}],["path",{"d":"m16.5 16.5 5 5"}],["path",{"d":"m16.5 21.5 5-5"}],["path",{"d":"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v1.5"}],["path",{"d":"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6"}]]) as AstroComponent;
|
|
17
|
+
|
|
18
|
+
export default PrinterX;
|
package/src/icons/star-off.ts
CHANGED
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name StarOff
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/star-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 StarOff = createLucideIcon('star-off', [["path",{"d":"
|
|
16
|
+
const StarOff = createLucideIcon('star-off', [["path",{"d":"m10.344 4.688 1.181-2.393a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.237 3.152"}],["path",{"d":"m17.945 17.945.43 2.505a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a8 8 0 0 0 .4-.099"}],["path",{"d":"m2 2 20 20"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default StarOff;
|
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name TicketsPlane
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/tickets-plane
|
|
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 TicketsPlane = createLucideIcon('tickets-plane', [["path",{"d":"M10.5 17h1.227a2 2 0 0 0 1.345-.52L18 12"}],["path",{"d":"m12 13.5 3.
|
|
16
|
+
const TicketsPlane = createLucideIcon('tickets-plane', [["path",{"d":"M10.5 17h1.227a2 2 0 0 0 1.345-.52L18 12"}],["path",{"d":"m12 13.5 3.794.506"}],["path",{"d":"m3.173 8.18 11-5a2 2 0 0 1 2.647.993L18.56 8"}],["path",{"d":"M6 10V8"}],["path",{"d":"M6 14v1"}],["path",{"d":"M6 19v2"}],["rect",{"x":"2","y":"8","width":"20","height":"13","rx":"2"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default TicketsPlane;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import createLucideIcon from '../createLucideIcon';
|
|
3
|
+
import type { AstroComponent } from '../types'
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @component @name Toolbox
|
|
7
|
+
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
|
+
*
|
|
9
|
+
* @preview  - https://lucide.dev/icons/toolbox
|
|
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 Toolbox = createLucideIcon('toolbox', [["path",{"d":"M16 12v4"}],["path",{"d":"M16 6a2 2 0 0 1 1.414.586l4 4A2 2 0 0 1 22 12v7a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7a2 2 0 0 1 .586-1.414l4-4A2 2 0 0 1 8 6z"}],["path",{"d":"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2"}],["path",{"d":"M2 14h20"}],["path",{"d":"M8 12v4"}]]) as AstroComponent;
|
|
17
|
+
|
|
18
|
+
export default Toolbox;
|
package/src/icons/waypoints.ts
CHANGED
|
@@ -6,13 +6,13 @@ import type { AstroComponent } from '../types'
|
|
|
6
6
|
* @component @name Waypoints
|
|
7
7
|
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
8
8
|
*
|
|
9
|
-
* @preview  - https://lucide.dev/icons/waypoints
|
|
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 Waypoints = createLucideIcon('waypoints', [["
|
|
16
|
+
const Waypoints = createLucideIcon('waypoints', [["path",{"d":"m10.586 5.414-5.172 5.172"}],["path",{"d":"m18.586 13.414-5.172 5.172"}],["path",{"d":"M6 12h12"}],["circle",{"cx":"12","cy":"20","r":"2"}],["circle",{"cx":"12","cy":"4","r":"2"}],["circle",{"cx":"20","cy":"12","r":"2"}],["circle",{"cx":"4","cy":"12","r":"2"}]]) as AstroComponent;
|
|
17
17
|
|
|
18
18
|
export default Waypoints;
|
package/src/types.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Check if a component has an accessibility prop
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @returns {boolean} Whether the component has an accessibility prop
|
|
6
|
+
*/
|
|
7
|
+
export const hasA11yProp = (props: Record<string, any>) => {
|
|
8
|
+
for (const prop in props) {
|
|
9
|
+
if (prop.startsWith('aria-') || prop === 'role' || prop === 'title') {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return false;
|
|
15
|
+
};
|
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts string to kebab case
|
|
3
|
-
*
|
|
4
|
-
* @param {string} string
|
|
5
|
-
* @returns {string} A kebabized string
|
|
6
|
-
*/
|
|
7
|
-
export const toKebabCase = (string: string): string =>
|
|
8
|
-
string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
|
9
|
-
|
|
10
1
|
/**
|
|
11
2
|
* Merges classes into a single string
|
|
12
3
|
*
|
|
13
4
|
* @param {array} classes
|
|
14
5
|
* @returns {string} A string of classes
|
|
15
6
|
*/
|
|
16
|
-
export const mergeClasses = <ClassType = string | undefined | null>(
|
|
17
|
-
...classes: ClassType[]
|
|
18
|
-
): string =>
|
|
7
|
+
export const mergeClasses = <ClassType = string | undefined | null>(...classes: ClassType[]) =>
|
|
19
8
|
classes
|
|
20
9
|
.filter((className, index, array) => {
|
|
21
10
|
return (
|