The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update nucleo icons to use currentColor, add icons to amount
Steven Teyc537413cf5d3
diff --git a/apps/web/ui/analytics/analytics-card.tsx b/apps/web/ui/analytics/analytics-card.tsxindex f5ce076f4d..aa071681e5 100644--- a/apps/web/ui/analytics/analytics-card.tsx+++ b/apps/web/ui/analytics/analytics-card.tsx@@ -1,6 +1,7 @@import { EventType } from "@/lib/analytics/types";import { Modal, TabSelect } from "@dub/ui";-import { capitalize, cn } from "@dub/utils";+import { Crosshairs, CursorRays, InvoiceDollar } from "@dub/ui/src/icons";+import { cn } from "@dub/utils";import {Dispatch,ReactNode,@@ -63,8 +64,17 @@ export function AnalyticsCard<T extends string>({onSelect={onSelectTab}/>- <div className="flex items-center gap-2 pr-2 text-xs uppercase text-gray-500">- {capitalize(event === "composite" ? "clicks" : event)}+ <div className="flex items-center gap-1 pr-2 text-gray-500">+ {event === "sales" ? (+ <InvoiceDollar className="h-4 w-4" />+ ) : event === "leads" ? (+ <Crosshairs className="h-4 w-4" />+ ) : (+ <CursorRays className="h-4 w-4" />+ )}+ <p className="text-xs uppercase">+ {event === "composite" ? "clicks" : event}+ </p></div></div><div className="py-4">diff --git a/packages/ui/src/icons/nucleo/crosshairs.tsx b/packages/ui/src/icons/nucleo/crosshairs.tsxindex 74e76e17c8..b253ce4662 100644--- a/packages/ui/src/icons/nucleo/crosshairs.tsx+++ b/packages/ui/src/icons/nucleo/crosshairs.tsx@@ -9,13 +9,13 @@ export function Crosshairs(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><circlecx="9"cy="9"fill="none"r="6.5"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -25,14 +25,14 @@ export function Crosshairs(props: SVGProps<SVGSVGElement>) {cy="9"fill="none"r="2.25"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -43,7 +43,7 @@ export function Crosshairs(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -54,7 +54,7 @@ export function Crosshairs(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -65,7 +65,7 @@ export function Crosshairs(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"diff --git a/packages/ui/src/icons/nucleo/cube.tsx b/packages/ui/src/icons/nucleo/cube.tsxindex a9fc063a39..3cfe1ae494 100644--- a/packages/ui/src/icons/nucleo/cube.tsx+++ b/packages/ui/src/icons/nucleo/cube.tsx@@ -9,18 +9,18 @@ export function Cube(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><polylinefill="none"points="14.983 5.53 9 9 3.017 5.53"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -32,7 +32,7 @@ export function Cube(props: SVGProps<SVGSVGElement>) {<pathd="M7.997,2.332L3.747,4.797c-.617,.358-.997,1.017-.997,1.73v4.946c0,.713,.38,1.372,.997,1.73l4.25,2.465c.621,.36,1.386,.36,2.007,0l4.25-2.465c.617-.358,.997-1.017,.997-1.73V6.527c0-.713-.38-1.372-.997-1.73l-4.25-2.465c-.621-.36-1.386-.36-2.007,0Z"fill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"diff --git a/packages/ui/src/icons/nucleo/cursor-rays.tsx b/packages/ui/src/icons/nucleo/cursor-rays.tsxindex 9f64e61194..becfa6d585 100644--- a/packages/ui/src/icons/nucleo/cursor-rays.tsx+++ b/packages/ui/src/icons/nucleo/cursor-rays.tsx@@ -9,18 +9,18 @@ export function CursorRays(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><pathd="M8.095,7.778l7.314,2.51c.222,.076,.226,.388,.007,.47l-3.279,1.233c-.067,.025-.121,.079-.146,.146l-1.233,3.279c-.083,.219-.394,.215-.47-.007l-2.51-7.314c-.068-.197,.121-.385,.318-.318Z"fill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -31,7 +31,7 @@ export function CursorRays(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -42,7 +42,7 @@ export function CursorRays(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -53,7 +53,7 @@ export function CursorRays(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -64,7 +64,7 @@ export function CursorRays(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -75,7 +75,7 @@ export function CursorRays(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"diff --git a/packages/ui/src/icons/nucleo/flag-wavy.tsx b/packages/ui/src/icons/nucleo/flag-wavy.tsxindex e47c55f5ad..4439d987ca 100644--- a/packages/ui/src/icons/nucleo/flag-wavy.tsx+++ b/packages/ui/src/icons/nucleo/flag-wavy.tsx@@ -9,11 +9,11 @@ export function FlagWavy(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><pathd="M3.75,3.25h7.5c.552,0,1,.448,1,1v5H3.75"fill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -21,14 +21,14 @@ export function FlagWavy(props: SVGProps<SVGSVGElement>) {<pathd="M12.25,5.75h2c.552,0,1,.448,1,1v4c0,.552-.448,1-1,1h-3.5c-.552,0-1-.448-1-1v-1.5"fill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -39,7 +39,7 @@ export function FlagWavy(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"diff --git a/packages/ui/src/icons/nucleo/globe.tsx b/packages/ui/src/icons/nucleo/globe.tsxindex 04d8b53afb..c8f4cb0218 100644--- a/packages/ui/src/icons/nucleo/globe.tsx+++ b/packages/ui/src/icons/nucleo/globe.tsx@@ -9,14 +9,14 @@ export function Globe(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><pathd="M16.25,8.25h-3.517c-.157-3.641-1.454-7.25-3.733-7.25s-3.576,3.609-3.733,7.25H1.75v1.5h3.517c.157,3.641,1.454,7.25,3.733,7.25s3.576-3.609,3.733-7.25h3.517v-1.5ZM9,2.5c.858,0,2.079,2.216,2.233,5.75H6.767c.154-3.534,1.375-5.75,2.233-5.75Zm0,13c-.858,0-2.079-2.216-2.233-5.75h4.467c-.154,3.534-1.375,5.75-2.233,5.75Z"- fill="#212121"+ fill="currentColor"/><pathd="M9,17c-4.411,0-8-3.589-8-8S4.589,1,9,1s8,3.589,8,8-3.589,8-8,8Zm0-14.5c-3.584,0-6.5,2.916-6.5,6.5s2.916,6.5,6.5,6.5,6.5-2.916,6.5-6.5-2.916-6.5-6.5-6.5Z"- fill="#212121"+ fill="currentColor"/></g></svg>diff --git a/packages/ui/src/icons/nucleo/hyperlink.tsx b/packages/ui/src/icons/nucleo/hyperlink.tsxindex 18e69a2392..a970172d0f 100644--- a/packages/ui/src/icons/nucleo/hyperlink.tsx+++ b/packages/ui/src/icons/nucleo/hyperlink.tsx@@ -9,14 +9,14 @@ export function Hyperlink(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><pathd="M12.188,16.484c-1.097,0-2.192-.417-3.026-1.252l-2.175-2.175c-1.671-1.671-1.671-4.39,0-6.061,.356-.356,.753-.637,1.19-.846,.371-.18,.82-.021,1,.354,.179,.374,.021,.821-.354,1-.283,.135-.541,.318-.766,.543-1.096,1.096-1.096,2.863-.01,3.95l2.175,2.175c1.086,1.085,2.853,1.086,3.939,0,1.096-1.096,1.096-2.863,.01-3.949l-.931-.931c-.293-.293-.293-.768,0-1.061s.768-.293,1.061,0l.931,.931c1.671,1.671,1.671,4.389,0,6.06-.842,.842-1.944,1.262-3.044,1.262Z"- fill="#212121"+ fill="currentColor"/><pathd="M9.501,11.923c-.28,0-.548-.157-.677-.427-.179-.374-.021-.821,.354-1,.283-.135,.541-.318,.766-.543,1.096-1.096,1.096-2.863,.01-3.95l-2.175-2.175c-1.085-1.085-2.853-1.086-3.939,0-1.096,1.096-1.096,2.863-.01,3.949l.931,.931c.293,.293,.293,.768,0,1.061s-.768,.293-1.061,0l-.931-.931c-1.671-1.671-1.671-4.389,0-6.06,1.682-1.681,4.4-1.682,6.07-.01l2.175,2.175c1.671,1.671,1.671,4.39,0,6.061-.356,.356-.753,.637-1.19,.846-.104,.05-.214,.073-.323,.073Z"- fill="#212121"+ fill="currentColor"/></g></svg>diff --git a/packages/ui/src/icons/nucleo/invoice-dollar.tsx b/packages/ui/src/icons/nucleo/invoice-dollar.tsxindex 8d9b06b18f..526f30f4ed 100644--- a/packages/ui/src/icons/nucleo/invoice-dollar.tsx+++ b/packages/ui/src/icons/nucleo/invoice-dollar.tsx@@ -9,11 +9,11 @@ export function InvoiceDollar(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><pathd="M14.75,3.75v12.5l-2.75-1.5-3,1.5-3-1.5-2.75,1.5V3.75c0-1.105,.895-2,2-2h7.5c1.105,0,2,.895,2,2Z"fill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -21,14 +21,14 @@ export function InvoiceDollar(props: SVGProps<SVGSVGElement>) {<pathd="M10.724,6.556c-.374-.885-1.122-1.086-1.688-1.086-.526,0-1.907,.28-1.779,1.606,.09,.931,.967,1.277,1.734,1.414s1.88,.429,1.907,1.551c.023,.949-.83,1.597-1.861,1.597-.985,0-1.67-.383-1.934-1.25"fill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -39,7 +39,7 @@ export function InvoiceDollar(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"diff --git a/packages/ui/src/icons/nucleo/mobile-phone.tsx b/packages/ui/src/icons/nucleo/mobile-phone.tsxindex 0e8542f576..9eddf1e76e 100644--- a/packages/ui/src/icons/nucleo/mobile-phone.tsx+++ b/packages/ui/src/icons/nucleo/mobile-phone.tsx@@ -9,14 +9,14 @@ export function MobilePhone(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><rectheight="14.5"width="10.5"fill="none"rx="2"ry="2"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -26,12 +26,12 @@ export function MobilePhone(props: SVGProps<SVGSVGElement>) {<polylinefill="none"points="7.75 1.75 7.75 2.75 10.25 2.75 10.25 1.75"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"/>- <circle cx="9" cy="13" fill="#212121" r="1" stroke="none" />+ <circle cx="9" cy="13" fill="currentColor" r="1" stroke="none" /></g></svg>);diff --git a/packages/ui/src/icons/nucleo/office-building.tsx b/packages/ui/src/icons/nucleo/office-building.tsxindex 2616c56947..758f3d3509 100644--- a/packages/ui/src/icons/nucleo/office-building.tsx+++ b/packages/ui/src/icons/nucleo/office-building.tsx@@ -9,11 +9,11 @@ export function OfficeBuilding(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><pathd="M7.75,16.25V7.75c0-.552,.448-1,1-1h5.5c.552,0,1,.448,1,1v8.5"fill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -21,14 +21,14 @@ export function OfficeBuilding(props: SVGProps<SVGSVGElement>) {<pathd="M2.75,16.25V4.412c0-.402,.24-.765,.61-.921L7.86,1.588c.659-.279,1.39,.205,1.39,.921v1.741"fill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -39,7 +39,7 @@ export function OfficeBuilding(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -50,7 +50,7 @@ export function OfficeBuilding(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -61,7 +61,7 @@ export function OfficeBuilding(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -72,7 +72,7 @@ export function OfficeBuilding(props: SVGProps<SVGSVGElement>) {/><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"diff --git a/packages/ui/src/icons/nucleo/qrcode.tsx b/packages/ui/src/icons/nucleo/qrcode.tsxindex 71ec4cf5b6..0e80919385 100644--- a/packages/ui/src/icons/nucleo/qrcode.tsx+++ b/packages/ui/src/icons/nucleo/qrcode.tsx@@ -9,14 +9,14 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><rectheight="5"width="5"fill="none"rx="1"ry="1"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -29,7 +29,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {fill="none"rx="1"ry="1"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -42,7 +42,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {fill="none"rx="1"ry="1"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -52,7 +52,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {<rectheight="1.5"width="1.5"- fill="#212121"+ fill="currentColor"stroke="none"x="4.5"y="4.5"@@ -60,7 +60,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {<rectheight="1.5"width="1.5"- fill="#212121"+ fill="currentColor"stroke="none"x="12"y="4.5"@@ -68,7 +68,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {<rectheight="1.5"width="1.5"- fill="#212121"+ fill="currentColor"stroke="none"x="4.5"y="12"@@ -76,7 +76,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {<rectheight="1.5"width="1.5"- fill="#212121"+ fill="currentColor"stroke="none"x="14.5"y="14.5"@@ -84,7 +84,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {<rectheight="1.5"width="1.5"- fill="#212121"+ fill="currentColor"stroke="none"x="13"y="13"@@ -92,7 +92,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {<rectheight="1.5"width="1.5"- fill="#212121"+ fill="currentColor"stroke="none"x="14.5"y="11.5"@@ -100,7 +100,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {<rectheight="1.5"width="2"- fill="#212121"+ fill="currentColor"stroke="none"x="11"y="14.5"@@ -108,7 +108,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {<rectheight="3"width="1.5"- fill="#212121"+ fill="currentColor"stroke="none"x="9.5"y="11.5"@@ -116,7 +116,7 @@ export function QRCode(props: SVGProps<SVGSVGElement>) {<rectheight="1.5"width="3.5"- fill="#212121"+ fill="currentColor"stroke="none"x="11"y="10"diff --git a/packages/ui/src/icons/nucleo/tag.tsx b/packages/ui/src/icons/nucleo/tag.tsxindex 7347ff730d..d53e0ea7a7 100644--- a/packages/ui/src/icons/nucleo/tag.tsx+++ b/packages/ui/src/icons/nucleo/tag.tsx@@ -9,16 +9,22 @@ export function Tag(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><pathd="M3.25,2.25h4.922c.53,0,1.039,.211,1.414,.586l5.75,5.75c.781,.781,.781,2.047,0,2.828l-3.922,3.922c-.781,.781-2.047,.781-2.828,0L2.836,9.586c-.375-.375-.586-.884-.586-1.414V3.25c0-.552,.448-1,1-1Z"fill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"/>- <circle cx="6.25" cy="6.25" fill="#212121" r="1.25" stroke="none" />+ <circle+ cx="6.25"+ cy="6.25"+ fill="currentColor"+ r="1.25"+ stroke="none"+ /></g></svg>);diff --git a/packages/ui/src/icons/nucleo/window.tsx b/packages/ui/src/icons/nucleo/window.tsxindex 533b2a5770..898b6db79d 100644--- a/packages/ui/src/icons/nucleo/window.tsx+++ b/packages/ui/src/icons/nucleo/window.tsx@@ -9,14 +9,14 @@ export function Window(props: SVGProps<SVGSVGElement>) {xmlns="http://www.w3.org/2000/svg"{...props}>- <g fill="#212121">+ <g fill="currentColor"><rectheight="12.5"width="14.5"fill="none"rx="2"ry="2"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"@@ -24,11 +24,11 @@ export function Window(props: SVGProps<SVGSVGElement>) {x="1.75"y="2.75"/>- <circle cx="4.25" cy="5.25" fill="#212121" r=".75" stroke="none" />- <circle cx="6.75" cy="5.25" fill="#212121" r=".75" stroke="none" />+ <circle cx="4.25" cy="5.25" fill="currentColor" r=".75" stroke="none" />+ <circle cx="6.75" cy="5.25" fill="currentColor" r=".75" stroke="none" /><linefill="none"- stroke="#212121"+ stroke="currentColor"strokeLinecap="round"strokeLinejoin="round"strokeWidth="1.5"