@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.
Files changed (148) hide show
  1. package/LICENSE +4 -3
  2. package/README.md +72 -48
  3. package/THIRD_PARTY_NOTICES.md +5 -6
  4. package/dist/base.css +2 -2
  5. package/dist/lucide/Activity.d.ts +2 -2
  6. package/dist/lucide/AlertCircle.d.ts +2 -2
  7. package/dist/lucide/AlertTriangle.d.ts +2 -2
  8. package/dist/lucide/Armchair.d.ts +2 -2
  9. package/dist/lucide/ArrowDown.d.ts +2 -2
  10. package/dist/lucide/ArrowLeft.d.ts +2 -2
  11. package/dist/lucide/ArrowLeftRight.d.ts +2 -2
  12. package/dist/lucide/ArrowRight.d.ts +2 -2
  13. package/dist/lucide/ArrowUp.d.ts +2 -2
  14. package/dist/lucide/ArrowUpRight.d.ts +2 -2
  15. package/dist/lucide/Baby.d.ts +2 -2
  16. package/dist/lucide/BadgeAlert.d.ts +2 -2
  17. package/dist/lucide/BadgeCheck.d.ts +2 -2
  18. package/dist/lucide/BadgeIndianRupee.d.ts +2 -2
  19. package/dist/lucide/Banknote.d.ts +2 -2
  20. package/dist/lucide/BarChart3.d.ts +2 -2
  21. package/dist/lucide/Bell.d.ts +2 -2
  22. package/dist/lucide/Bike.d.ts +2 -2
  23. package/dist/lucide/BookOpen.d.ts +2 -2
  24. package/dist/lucide/BookOpenText.d.ts +2 -2
  25. package/dist/lucide/BriefcaseBusiness.d.ts +2 -2
  26. package/dist/lucide/Building2.d.ts +2 -2
  27. package/dist/lucide/Bus.d.ts +2 -2
  28. package/dist/lucide/BusFront.d.ts +2 -2
  29. package/dist/lucide/CalendarCheck.d.ts +2 -2
  30. package/dist/lucide/CalendarDays.d.ts +2 -2
  31. package/dist/lucide/Camera.d.ts +2 -2
  32. package/dist/lucide/Car.d.ts +2 -2
  33. package/dist/lucide/CarFront.d.ts +2 -2
  34. package/dist/lucide/CarTaxiFront.d.ts +2 -2
  35. package/dist/lucide/ChartNoAxesColumn.d.ts +2 -2
  36. package/dist/lucide/ChartNoAxesColumnIncreasing.d.ts +2 -2
  37. package/dist/lucide/ChartNoAxesCombined.d.ts +2 -2
  38. package/dist/lucide/Check.d.ts +2 -2
  39. package/dist/lucide/CheckCircle.d.ts +2 -2
  40. package/dist/lucide/CheckCircle2.d.ts +2 -2
  41. package/dist/lucide/ChevronDown.d.ts +2 -2
  42. package/dist/lucide/ChevronLeft.d.ts +2 -2
  43. package/dist/lucide/ChevronRight.d.ts +2 -2
  44. package/dist/lucide/Circle.d.ts +2 -2
  45. package/dist/lucide/CircleAlert.d.ts +2 -2
  46. package/dist/lucide/CircleCheck.d.ts +2 -2
  47. package/dist/lucide/CircleDollarSign.d.ts +2 -2
  48. package/dist/lucide/CircleDot.d.ts +2 -2
  49. package/dist/lucide/CircleHelp.d.ts +2 -2
  50. package/dist/lucide/ClipboardCheck.d.ts +2 -2
  51. package/dist/lucide/ClipboardList.d.ts +2 -2
  52. package/dist/lucide/Clock3.d.ts +2 -2
  53. package/dist/lucide/Cog.d.ts +2 -2
  54. package/dist/lucide/Construction.d.ts +2 -2
  55. package/dist/lucide/ContactRound.d.ts +2 -2
  56. package/dist/lucide/Copy.d.ts +2 -2
  57. package/dist/lucide/CreditCard.d.ts +2 -2
  58. package/dist/lucide/Download.d.ts +2 -2
  59. package/dist/lucide/ExternalLink.d.ts +2 -2
  60. package/dist/lucide/Fan.d.ts +2 -2
  61. package/dist/lucide/FileCheck.d.ts +2 -2
  62. package/dist/lucide/FileCheck2.d.ts +2 -2
  63. package/dist/lucide/FileText.d.ts +2 -2
  64. package/dist/lucide/Files.d.ts +2 -2
  65. package/dist/lucide/Fingerprint.d.ts +2 -2
  66. package/dist/lucide/FlaskConical.d.ts +2 -2
  67. package/dist/lucide/Folder.d.ts +2 -2
  68. package/dist/lucide/FolderOpen.d.ts +2 -2
  69. package/dist/lucide/Forklift.d.ts +2 -2
  70. package/dist/lucide/Fuel.d.ts +2 -2
  71. package/dist/lucide/Gauge.d.ts +2 -2
  72. package/dist/lucide/Gavel.d.ts +2 -2
  73. package/dist/lucide/GitBranchPlus.d.ts +2 -2
  74. package/dist/lucide/GitPullRequest.d.ts +2 -2
  75. package/dist/lucide/Globe2.d.ts +2 -2
  76. package/dist/lucide/GraduationCap.d.ts +2 -2
  77. package/dist/lucide/Grid2X2Plus.d.ts +2 -2
  78. package/dist/lucide/Hand.d.ts +2 -2
  79. package/dist/lucide/HandCoins.d.ts +2 -2
  80. package/dist/lucide/History.d.ts +2 -2
  81. package/dist/lucide/Hourglass.d.ts +2 -2
  82. package/dist/lucide/IdCard.d.ts +2 -2
  83. package/dist/lucide/Info.d.ts +2 -2
  84. package/dist/lucide/Landmark.d.ts +2 -2
  85. package/dist/lucide/LayoutGrid.d.ts +2 -2
  86. package/dist/lucide/Leaf.d.ts +2 -2
  87. package/dist/lucide/Lightbulb.d.ts +2 -2
  88. package/dist/lucide/Link2.d.ts +2 -2
  89. package/dist/lucide/Loader2.d.ts +2 -2
  90. package/dist/lucide/LockKeyhole.d.ts +2 -2
  91. package/dist/lucide/Luggage.d.ts +2 -2
  92. package/dist/lucide/Mail.d.ts +2 -2
  93. package/dist/lucide/Map.d.ts +2 -2
  94. package/dist/lucide/MapPin.d.ts +2 -2
  95. package/dist/lucide/Megaphone.d.ts +2 -2
  96. package/dist/lucide/Minus.d.ts +2 -2
  97. package/dist/lucide/Mountain.d.ts +2 -2
  98. package/dist/lucide/Navigation.d.ts +2 -2
  99. package/dist/lucide/Percent.d.ts +2 -2
  100. package/dist/lucide/PersonStanding.d.ts +2 -2
  101. package/dist/lucide/Phone.d.ts +2 -2
  102. package/dist/lucide/Plane.d.ts +2 -2
  103. package/dist/lucide/Plus.d.ts +2 -2
  104. package/dist/lucide/Power.d.ts +2 -2
  105. package/dist/lucide/QrCode.d.ts +2 -2
  106. package/dist/lucide/RefreshCw.d.ts +2 -2
  107. package/dist/lucide/RotateCw.d.ts +2 -2
  108. package/dist/lucide/Search.d.ts +2 -2
  109. package/dist/lucide/SearchCheck.d.ts +2 -2
  110. package/dist/lucide/Settings.d.ts +2 -2
  111. package/dist/lucide/Settings2.d.ts +2 -2
  112. package/dist/lucide/Shapes.d.ts +2 -2
  113. package/dist/lucide/Shield.d.ts +2 -2
  114. package/dist/lucide/ShieldAlert.d.ts +2 -2
  115. package/dist/lucide/ShieldCheck.d.ts +2 -2
  116. package/dist/lucide/ShieldPlus.d.ts +2 -2
  117. package/dist/lucide/ShoppingBag.d.ts +2 -2
  118. package/dist/lucide/SlidersHorizontal.d.ts +2 -2
  119. package/dist/lucide/SlidersVertical.d.ts +2 -2
  120. package/dist/lucide/Sparkles.d.ts +2 -2
  121. package/dist/lucide/Star.d.ts +2 -2
  122. package/dist/lucide/Stethoscope.d.ts +2 -2
  123. package/dist/lucide/Sun.d.ts +2 -2
  124. package/dist/lucide/ThumbsUp.d.ts +2 -2
  125. package/dist/lucide/Timer.d.ts +2 -2
  126. package/dist/lucide/Tractor.d.ts +2 -2
  127. package/dist/lucide/TrendingUp.d.ts +2 -2
  128. package/dist/lucide/TriangleAlert.d.ts +2 -2
  129. package/dist/lucide/Truck.d.ts +2 -2
  130. package/dist/lucide/Tv.d.ts +2 -2
  131. package/dist/lucide/UserRound.d.ts +2 -2
  132. package/dist/lucide/UserRoundCheck.d.ts +2 -2
  133. package/dist/lucide/UserRoundPlus.d.ts +2 -2
  134. package/dist/lucide/UsersRound.d.ts +2 -2
  135. package/dist/lucide/Van.d.ts +2 -2
  136. package/dist/lucide/Wallet.d.ts +2 -2
  137. package/dist/lucide/WalletCards.d.ts +2 -2
  138. package/dist/lucide/WandSparkles.d.ts +2 -2
  139. package/dist/lucide/Weight.d.ts +2 -2
  140. package/dist/lucide/Wind.d.ts +2 -2
  141. package/dist/lucide/Wrench.d.ts +2 -2
  142. package/dist/lucide/X.d.ts +2 -2
  143. package/dist/lucide/Zap.d.ts +2 -2
  144. package/dist/lucide/ZoomIn.d.ts +2 -2
  145. package/dist/lucide/ZoomOut.d.ts +2 -2
  146. package/dist/runtime.d.ts +10 -14
  147. package/dist/runtime.js +5 -6
  148. package/package.json +5 -21
@@ -1,3 +1,3 @@
1
- import type { LucideLikeIcon } from "../runtime.js";
2
- export declare const Wrench: LucideLikeIcon;
1
+ import type { StrokeIcon } from "../runtime.js";
2
+ export declare const Wrench: StrokeIcon;
3
3
  export default Wrench;
@@ -1,3 +1,3 @@
1
- import type { LucideLikeIcon } from "../runtime.js";
2
- export declare const X: LucideLikeIcon;
1
+ import type { StrokeIcon } from "../runtime.js";
2
+ export declare const X: StrokeIcon;
3
3
  export default X;
@@ -1,3 +1,3 @@
1
- import type { LucideLikeIcon } from "../runtime.js";
2
- export declare const Zap: LucideLikeIcon;
1
+ import type { StrokeIcon } from "../runtime.js";
2
+ export declare const Zap: StrokeIcon;
3
3
  export default Zap;
@@ -1,3 +1,3 @@
1
- import type { LucideLikeIcon } from "../runtime.js";
2
- export declare const ZoomIn: LucideLikeIcon;
1
+ import type { StrokeIcon } from "../runtime.js";
2
+ export declare const ZoomIn: StrokeIcon;
3
3
  export default ZoomIn;
@@ -1,3 +1,3 @@
1
- import type { LucideLikeIcon } from "../runtime.js";
2
- export declare const ZoomOut: LucideLikeIcon;
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 a react-icons–style icon (same shape as react-icons' IconBaseProps). */
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
- /** Same shape as react-icons' IconType, so the icons drop in wherever IconType is expected. */
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 a lucide-style icon (same shape as lucide-react's LucideProps). */
14
- export interface LucideLikeProps extends React.SVGProps<SVGSVGElement> {
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
- /** Same shape as lucide-react's LucideIcon. */
19
- export type LucideLikeIcon = React.ForwardRefExoticComponent<
20
- Omit<LucideLikeProps, "ref"> & React.RefAttributes<SVGSVGElement>
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 GadiyaHub custom icons. Typed like the <svg> components they
29
- * replace (so they fit anywhere an SVG icon component was expected); SVG-only
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, like react-icons), the `size` prop,
12
- * or width/height classes (w-5 h-5) — base styles sit in the CSS `base`
13
- * layer, so Tailwind utilities always win.
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 that callers passed to the old <svg> icons; meaningless
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}" — add it with the package's sync script.`);
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.1",
4
- "description": "GadiyaHub icons as CSS-mask icons: a <span> per icon, no <svg> in the DOM. Same props as react-icons / lucide-react.",
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
- "react-icons",
52
- "lucide",
53
- "gadiyahub"
37
+ "tailwind"
54
38
  ]
55
39
  }