@gadiyahub/icons 0.1.1 → 0.1.2
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 +4 -3
- package/README.md +72 -48
- package/THIRD_PARTY_NOTICES.md +5 -6
- package/dist/base.css +2 -2
- package/dist/lucide/Activity.d.ts +2 -2
- package/dist/lucide/AlertCircle.d.ts +2 -2
- package/dist/lucide/AlertTriangle.d.ts +2 -2
- package/dist/lucide/Armchair.d.ts +2 -2
- package/dist/lucide/ArrowDown.d.ts +2 -2
- package/dist/lucide/ArrowLeft.d.ts +2 -2
- package/dist/lucide/ArrowLeftRight.d.ts +2 -2
- package/dist/lucide/ArrowRight.d.ts +2 -2
- package/dist/lucide/ArrowUp.d.ts +2 -2
- package/dist/lucide/ArrowUpRight.d.ts +2 -2
- package/dist/lucide/Baby.d.ts +2 -2
- package/dist/lucide/BadgeAlert.d.ts +2 -2
- package/dist/lucide/BadgeCheck.d.ts +2 -2
- package/dist/lucide/BadgeIndianRupee.d.ts +2 -2
- package/dist/lucide/Banknote.d.ts +2 -2
- package/dist/lucide/BarChart3.d.ts +2 -2
- package/dist/lucide/Bell.d.ts +2 -2
- package/dist/lucide/Bike.d.ts +2 -2
- package/dist/lucide/BookOpen.d.ts +2 -2
- package/dist/lucide/BookOpenText.d.ts +2 -2
- package/dist/lucide/BriefcaseBusiness.d.ts +2 -2
- package/dist/lucide/Building2.d.ts +2 -2
- package/dist/lucide/Bus.d.ts +2 -2
- package/dist/lucide/BusFront.d.ts +2 -2
- package/dist/lucide/CalendarCheck.d.ts +2 -2
- package/dist/lucide/CalendarDays.d.ts +2 -2
- package/dist/lucide/Camera.d.ts +2 -2
- package/dist/lucide/Car.d.ts +2 -2
- package/dist/lucide/CarFront.d.ts +2 -2
- package/dist/lucide/CarTaxiFront.d.ts +2 -2
- package/dist/lucide/ChartNoAxesColumn.d.ts +2 -2
- package/dist/lucide/ChartNoAxesColumnIncreasing.d.ts +2 -2
- package/dist/lucide/ChartNoAxesCombined.d.ts +2 -2
- package/dist/lucide/Check.d.ts +2 -2
- package/dist/lucide/CheckCircle.d.ts +2 -2
- package/dist/lucide/CheckCircle2.d.ts +2 -2
- package/dist/lucide/ChevronDown.d.ts +2 -2
- package/dist/lucide/ChevronLeft.d.ts +2 -2
- package/dist/lucide/ChevronRight.d.ts +2 -2
- package/dist/lucide/Circle.d.ts +2 -2
- package/dist/lucide/CircleAlert.d.ts +2 -2
- package/dist/lucide/CircleCheck.d.ts +2 -2
- package/dist/lucide/CircleDollarSign.d.ts +2 -2
- package/dist/lucide/CircleDot.d.ts +2 -2
- package/dist/lucide/CircleHelp.d.ts +2 -2
- package/dist/lucide/ClipboardCheck.d.ts +2 -2
- package/dist/lucide/ClipboardList.d.ts +2 -2
- package/dist/lucide/Clock3.d.ts +2 -2
- package/dist/lucide/Cog.d.ts +2 -2
- package/dist/lucide/Construction.d.ts +2 -2
- package/dist/lucide/ContactRound.d.ts +2 -2
- package/dist/lucide/Copy.d.ts +2 -2
- package/dist/lucide/CreditCard.d.ts +2 -2
- package/dist/lucide/Download.d.ts +2 -2
- package/dist/lucide/ExternalLink.d.ts +2 -2
- package/dist/lucide/Fan.d.ts +2 -2
- package/dist/lucide/FileCheck.d.ts +2 -2
- package/dist/lucide/FileCheck2.d.ts +2 -2
- package/dist/lucide/FileText.d.ts +2 -2
- package/dist/lucide/Files.d.ts +2 -2
- package/dist/lucide/Fingerprint.d.ts +2 -2
- package/dist/lucide/FlaskConical.d.ts +2 -2
- package/dist/lucide/Folder.d.ts +2 -2
- package/dist/lucide/FolderOpen.d.ts +2 -2
- package/dist/lucide/Forklift.d.ts +2 -2
- package/dist/lucide/Fuel.d.ts +2 -2
- package/dist/lucide/Gauge.d.ts +2 -2
- package/dist/lucide/Gavel.d.ts +2 -2
- package/dist/lucide/GitBranchPlus.d.ts +2 -2
- package/dist/lucide/GitPullRequest.d.ts +2 -2
- package/dist/lucide/Globe2.d.ts +2 -2
- package/dist/lucide/GraduationCap.d.ts +2 -2
- package/dist/lucide/Grid2X2Plus.d.ts +2 -2
- package/dist/lucide/Hand.d.ts +2 -2
- package/dist/lucide/HandCoins.d.ts +2 -2
- package/dist/lucide/History.d.ts +2 -2
- package/dist/lucide/Hourglass.d.ts +2 -2
- package/dist/lucide/IdCard.d.ts +2 -2
- package/dist/lucide/Info.d.ts +2 -2
- package/dist/lucide/Landmark.d.ts +2 -2
- package/dist/lucide/LayoutGrid.d.ts +2 -2
- package/dist/lucide/Leaf.d.ts +2 -2
- package/dist/lucide/Lightbulb.d.ts +2 -2
- package/dist/lucide/Link2.d.ts +2 -2
- package/dist/lucide/Loader2.d.ts +2 -2
- package/dist/lucide/LockKeyhole.d.ts +2 -2
- package/dist/lucide/Luggage.d.ts +2 -2
- package/dist/lucide/Mail.d.ts +2 -2
- package/dist/lucide/Map.d.ts +2 -2
- package/dist/lucide/MapPin.d.ts +2 -2
- package/dist/lucide/Megaphone.d.ts +2 -2
- package/dist/lucide/Minus.d.ts +2 -2
- package/dist/lucide/Mountain.d.ts +2 -2
- package/dist/lucide/Navigation.d.ts +2 -2
- package/dist/lucide/Percent.d.ts +2 -2
- package/dist/lucide/PersonStanding.d.ts +2 -2
- package/dist/lucide/Phone.d.ts +2 -2
- package/dist/lucide/Plane.d.ts +2 -2
- package/dist/lucide/Plus.d.ts +2 -2
- package/dist/lucide/Power.d.ts +2 -2
- package/dist/lucide/QrCode.d.ts +2 -2
- package/dist/lucide/RefreshCw.d.ts +2 -2
- package/dist/lucide/RotateCw.d.ts +2 -2
- package/dist/lucide/Search.d.ts +2 -2
- package/dist/lucide/SearchCheck.d.ts +2 -2
- package/dist/lucide/Settings.d.ts +2 -2
- package/dist/lucide/Settings2.d.ts +2 -2
- package/dist/lucide/Shapes.d.ts +2 -2
- package/dist/lucide/Shield.d.ts +2 -2
- package/dist/lucide/ShieldAlert.d.ts +2 -2
- package/dist/lucide/ShieldCheck.d.ts +2 -2
- package/dist/lucide/ShieldPlus.d.ts +2 -2
- package/dist/lucide/ShoppingBag.d.ts +2 -2
- package/dist/lucide/SlidersHorizontal.d.ts +2 -2
- package/dist/lucide/SlidersVertical.d.ts +2 -2
- package/dist/lucide/Sparkles.d.ts +2 -2
- package/dist/lucide/Star.d.ts +2 -2
- package/dist/lucide/Stethoscope.d.ts +2 -2
- package/dist/lucide/Sun.d.ts +2 -2
- package/dist/lucide/ThumbsUp.d.ts +2 -2
- package/dist/lucide/Timer.d.ts +2 -2
- package/dist/lucide/Tractor.d.ts +2 -2
- package/dist/lucide/TrendingUp.d.ts +2 -2
- package/dist/lucide/TriangleAlert.d.ts +2 -2
- package/dist/lucide/Truck.d.ts +2 -2
- package/dist/lucide/Tv.d.ts +2 -2
- package/dist/lucide/UserRound.d.ts +2 -2
- package/dist/lucide/UserRoundCheck.d.ts +2 -2
- package/dist/lucide/UserRoundPlus.d.ts +2 -2
- package/dist/lucide/UsersRound.d.ts +2 -2
- package/dist/lucide/Van.d.ts +2 -2
- package/dist/lucide/Wallet.d.ts +2 -2
- package/dist/lucide/WalletCards.d.ts +2 -2
- package/dist/lucide/WandSparkles.d.ts +2 -2
- package/dist/lucide/Weight.d.ts +2 -2
- package/dist/lucide/Wind.d.ts +2 -2
- package/dist/lucide/Wrench.d.ts +2 -2
- package/dist/lucide/X.d.ts +2 -2
- package/dist/lucide/Zap.d.ts +2 -2
- package/dist/lucide/ZoomIn.d.ts +2 -2
- package/dist/lucide/ZoomOut.d.ts +2 -2
- package/dist/runtime.d.ts +10 -14
- package/dist/runtime.js +5 -6
- package/package.json +5 -21
package/dist/lucide/Wrench.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const Wrench:
|
|
1
|
+
import type { StrokeIcon } from "../runtime.js";
|
|
2
|
+
export declare const Wrench: StrokeIcon;
|
|
3
3
|
export default Wrench;
|
package/dist/lucide/X.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const X:
|
|
1
|
+
import type { StrokeIcon } from "../runtime.js";
|
|
2
|
+
export declare const X: StrokeIcon;
|
|
3
3
|
export default X;
|
package/dist/lucide/Zap.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const Zap:
|
|
1
|
+
import type { StrokeIcon } from "../runtime.js";
|
|
2
|
+
export declare const Zap: StrokeIcon;
|
|
3
3
|
export default Zap;
|
package/dist/lucide/ZoomIn.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const ZoomIn:
|
|
1
|
+
import type { StrokeIcon } from "../runtime.js";
|
|
2
|
+
export declare const ZoomIn: StrokeIcon;
|
|
3
3
|
export default ZoomIn;
|
package/dist/lucide/ZoomOut.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const ZoomOut:
|
|
1
|
+
import type { StrokeIcon } from "../runtime.js";
|
|
2
|
+
export declare const ZoomOut: StrokeIcon;
|
|
3
3
|
export default ZoomOut;
|
package/dist/runtime.d.ts
CHANGED
|
@@ -1,33 +1,28 @@
|
|
|
1
1
|
import type * as React from "react";
|
|
2
2
|
|
|
3
|
-
/** Props of
|
|
3
|
+
/** Props of the icons in the two-letter folders (fa/, io5/, md/…). */
|
|
4
4
|
export interface IconBaseProps extends React.SVGAttributes<SVGElement> {
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
size?: string | number;
|
|
7
7
|
color?: string;
|
|
8
8
|
title?: string;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
10
|
+
/** Type of the icons in the two-letter folders (fa/, io5/, md/…). */
|
|
11
11
|
export type IconType = (props: IconBaseProps) => React.ReactNode;
|
|
12
12
|
|
|
13
|
-
/** Props of
|
|
14
|
-
export interface
|
|
13
|
+
/** Props of the icons in lucide/. */
|
|
14
|
+
export interface StrokeIconProps extends React.SVGProps<SVGSVGElement> {
|
|
15
15
|
size?: string | number;
|
|
16
16
|
absoluteStrokeWidth?: boolean;
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
export type
|
|
20
|
-
Omit<
|
|
18
|
+
/** Type of the icons in lucide/. */
|
|
19
|
+
export type StrokeIcon = React.ForwardRefExoticComponent<
|
|
20
|
+
Omit<StrokeIconProps, "ref"> & React.RefAttributes<SVGSVGElement>
|
|
21
21
|
>;
|
|
22
22
|
|
|
23
|
-
/** Drop-in names for lucide-react's types, so projects don't need lucide-react. */
|
|
24
|
-
export type LucideIcon = LucideLikeIcon;
|
|
25
|
-
export type LucideProps = LucideLikeProps;
|
|
26
|
-
|
|
27
23
|
/**
|
|
28
|
-
* Props of the
|
|
29
|
-
*
|
|
30
|
-
* attributes are accepted and ignored.
|
|
24
|
+
* Props of the icons in custom/. SVG attributes are accepted (so they fit
|
|
25
|
+
* wherever an SVG icon component is expected) and ignored.
|
|
31
26
|
*/
|
|
32
27
|
export interface CustomIconProps extends Omit<React.SVGProps<SVGSVGElement>, "ref"> {
|
|
33
28
|
/** Width and height (number = px). Default: the icon's own size. */
|
|
@@ -36,6 +31,7 @@ export interface CustomIconProps extends Omit<React.SVGProps<SVGSVGElement>, "re
|
|
|
36
31
|
color?: string;
|
|
37
32
|
title?: string;
|
|
38
33
|
}
|
|
34
|
+
/** Type of the icons in custom/. */
|
|
39
35
|
export type CustomIcon = (props: CustomIconProps) => React.ReactElement;
|
|
40
36
|
|
|
41
37
|
export declare function variantKey(props: Record<string, unknown>): string;
|
package/dist/runtime.js
CHANGED
|
@@ -8,14 +8,13 @@ import "./base.css";
|
|
|
8
8
|
*
|
|
9
9
|
* Colour: inherits `color` from where it is used (text-* classes, a parent's
|
|
10
10
|
* colour) or the `color` prop.
|
|
11
|
-
* Size: 1em by default (follows font-size
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Size: 1em by default (follows font-size), the `size` prop, or width/height
|
|
12
|
+
* classes (w-5 h-5) — base styles sit in the CSS `base` layer, so Tailwind
|
|
13
|
+
* utilities always win.
|
|
14
14
|
*/
|
|
15
15
|
const VARIANT_PROPS = ["strokeWidth", "stroke", "fill"];
|
|
16
16
|
|
|
17
|
-
// SVG-only attributes
|
|
18
|
-
// (and invalid) on a <span>, so they are dropped.
|
|
17
|
+
// SVG-only attributes: meaningless (and invalid) on a <span>, so dropped.
|
|
19
18
|
const SVG_ONLY = new Set([
|
|
20
19
|
"absoluteStrokeWidth", "viewBox", "xmlns", "fontSize", "strokeLinecap",
|
|
21
20
|
"strokeLinejoin", "fillRule", "clipRule", "preserveAspectRatio",
|
|
@@ -40,7 +39,7 @@ export function createCssIcon(name, classes, defaults = {}) {
|
|
|
40
39
|
const key = variantKey({ strokeWidth, stroke, fill });
|
|
41
40
|
const variant = classes[key] ?? classes[""];
|
|
42
41
|
if (process.env.NODE_ENV !== "production" && !(key in classes)) {
|
|
43
|
-
console.warn(`[@gadiyahub/icons] ${name}: no variant for "${key}" —
|
|
42
|
+
console.warn(`[@gadiyahub/icons] ${name}: no variant for "${key}" — this variant is not built into the package.`);
|
|
44
43
|
}
|
|
45
44
|
|
|
46
45
|
const boxStyle = {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gadiyahub/icons",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "React icons as CSS-mask icons: one <span> per icon, no <svg> in the DOM. Colour and size from className, color and size props.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -25,31 +25,15 @@
|
|
|
25
25
|
},
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build": "node scripts/build.mjs",
|
|
30
|
-
"sync": "node scripts/sync.mjs",
|
|
31
|
-
"showcase": "node scripts/serve-showcase.mjs",
|
|
32
|
-
"prepack": "node scripts/build.mjs"
|
|
33
|
-
},
|
|
34
28
|
"peerDependencies": {
|
|
35
29
|
"react": ">=18"
|
|
36
30
|
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@types/react": "19.1.9",
|
|
39
|
-
"lucide-react": "1.7.0",
|
|
40
|
-
"react": "19.1.1",
|
|
41
|
-
"react-dom": "19.1.1",
|
|
42
|
-
"react-icons": "5.5.0",
|
|
43
|
-
"typescript": "5.9.2"
|
|
44
|
-
},
|
|
45
|
-
"author": "GadiyaHub",
|
|
46
31
|
"keywords": [
|
|
47
32
|
"icons",
|
|
48
|
-
"css-mask",
|
|
49
33
|
"react",
|
|
34
|
+
"css-mask",
|
|
35
|
+
"svg-free",
|
|
50
36
|
"nextjs",
|
|
51
|
-
"
|
|
52
|
-
"lucide",
|
|
53
|
-
"gadiyahub"
|
|
37
|
+
"tailwind"
|
|
54
38
|
]
|
|
55
39
|
}
|