The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
update icons
Steven Teyaa1ae7c98b41
diff --git a/apps/web/ui/analytics/analytics-card.tsx b/apps/web/ui/analytics/analytics-card.tsxindex 69b6274bea..d8c2a914b0 100644--- a/apps/web/ui/analytics/analytics-card.tsx+++ b/apps/web/ui/analytics/analytics-card.tsx@@ -1,11 +1,6 @@import useWorkspace from "@/lib/swr/use-workspace";-import {- Crosshairs,- CursorRays,- InvoiceDollar,- Modal,- TabSelect,-} from "@dub/ui";+import { Modal, TabSelect } from "@dub/ui";+import { Crosshairs, CursorRays, InvoiceDollar } from "@dub/ui/src/icons";import { cn } from "@dub/utils";import {ComponentType,diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsxindex 9a6443adf3..df6cb79479 100644--- a/apps/web/ui/analytics/toggle.tsx+++ b/apps/web/ui/analytics/toggle.tsx@@ -18,6 +18,18 @@ import {useRouterStuff,useScroll,} from "@dub/ui";+import {+ Cube,+ CursorRays,+ FlagWavy,+ Globe,+ Hyperlink,+ MobilePhone,+ OfficeBuilding,+ QRCode,+ Tag,+ Window,+} from "@dub/ui/src/icons";import {APP_DOMAIN,COUNTRIES,@@ -29,18 +41,6 @@ import {linkConstructor,nFormatter,} from "@dub/utils";-import {- AppWindow,- Box,- Building2,- Flag,- Globe,- Link,- MousePointerClick,- QrCode,- Smartphone,- Tag,-} from "lucide-react";import { useContext, useMemo } from "react";import { AnalyticsContext } from ".";import LinkLogo from "../links/link-logo";@@ -93,7 +93,7 @@ export default function Toggle() {},{key: "link",- icon: Link,+ icon: Hyperlink,label: "Link",options:links?.map(@@ -132,24 +132,24 @@ export default function Toggle() {},{key: "qr",- icon: MousePointerClick,+ icon: CursorRays,label: "Trigger",options: [{value: false,label: "Link click",- icon: Link,+ icon: CursorRays,},{value: true,label: "QR Scan",- icon: QrCode,+ icon: QRCode,},],},{key: "country",- icon: Flag,+ icon: FlagWavy,label: "Country",options:countries?.map(({ country, count }) => ({@@ -167,7 +167,7 @@ export default function Toggle() {},{key: "city",- icon: Building2,+ icon: OfficeBuilding,label: "City",options:cities?.map(({ city, country, count }) => ({@@ -185,7 +185,7 @@ export default function Toggle() {},{key: "device",- icon: Smartphone,+ icon: MobilePhone,label: "Device",options:devices?.map(({ device, count }) => ({@@ -199,7 +199,7 @@ export default function Toggle() {},{key: "browser",- icon: AppWindow,+ icon: Window,label: "Browser",options:browsers?.map(({ browser, count }) => ({@@ -217,7 +217,7 @@ export default function Toggle() {},{key: "os",- icon: Box,+ icon: Cube,label: "OS",options:os?.map(({ os, count }) => ({diff --git a/packages/ui/src/filter/types.ts b/packages/ui/src/filter/types.tsindex 2136758f8d..7578dfac9b 100644--- a/packages/ui/src/filter/types.ts+++ b/packages/ui/src/filter/types.ts@@ -1,16 +1,16 @@import { LucideIcon } from "lucide-react";-import { ReactNode } from "react";+import { ComponentType, ReactNode, SVGProps } from "react";export type Filter = {key: string;- icon: LucideIcon | ReactNode;+ icon: LucideIcon | ReactNode | ComponentType<SVGProps<SVGSVGElement>>;label: string;options: FilterOption[] | null;};export type FilterOption = {value: any;- icon: LucideIcon | ReactNode;+ icon: LucideIcon | ReactNode | ComponentType<SVGProps<SVGSVGElement>>;label: string;right?: ReactNode;};diff --git a/packages/ui/src/icons/nucleo/cube.tsx b/packages/ui/src/icons/nucleo/cube.tsxnew file mode 100644index 0000000000..a9fc063a39--- /dev/null+++ b/packages/ui/src/icons/nucleo/cube.tsx@@ -0,0 +1,43 @@+import { SVGProps } from "react";++export function Cube(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="#212121">+ <polyline+ fill="none"+ points="14.983 5.53 9 9 3.017 5.53"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <line+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="9"+ x2="9"+ y1="15.938"+ y2="9"+ />+ <path+ d="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"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/flag-wavy.tsx b/packages/ui/src/icons/nucleo/flag-wavy.tsxnew file mode 100644index 0000000000..e47c55f5ad--- /dev/null+++ b/packages/ui/src/icons/nucleo/flag-wavy.tsx@@ -0,0 +1,54 @@+import { SVGProps } from "react";++export function FlagWavy(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="#212121">+ <path+ d="M3.75,3.25h7.5c.552,0,1,.448,1,1v5H3.75"+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <path+ d="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"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <line+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="10.043"+ x2="12.25"+ y1="11.457"+ y2="9.25"+ />+ <line+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="3.75"+ x2="3.75"+ y1="1.75"+ y2="16.25"+ />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/globe.tsx b/packages/ui/src/icons/nucleo/globe.tsxnew file mode 100644index 0000000000..04d8b53afb--- /dev/null+++ b/packages/ui/src/icons/nucleo/globe.tsx@@ -0,0 +1,24 @@+import { SVGProps } from "react";++export function Globe(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="#212121">+ <path+ d="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"+ />+ <path+ d="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"+ />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/hyperlink.tsx b/packages/ui/src/icons/nucleo/hyperlink.tsxnew file mode 100644index 0000000000..18e69a2392--- /dev/null+++ b/packages/ui/src/icons/nucleo/hyperlink.tsx@@ -0,0 +1,24 @@+import { SVGProps } from "react";++export function Hyperlink(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="#212121">+ <path+ d="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"+ />+ <path+ d="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"+ />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/index.ts b/packages/ui/src/icons/nucleo/index.tsindex 3f0fda4497..e15e9561ad 100644--- a/packages/ui/src/icons/nucleo/index.ts+++ b/packages/ui/src/icons/nucleo/index.ts@@ -1,3 +1,12 @@export * from "./crosshairs";+export * from "./cube";export * from "./cursor-rays";+export * from "./flag-wavy";+export * from "./globe";+export * from "./hyperlink";export * from "./invoice-dollar";+export * from "./mobile-phone";+export * from "./office-building";+export * from "./qrcode";+export * from "./tag";+export * from "./window";diff --git a/packages/ui/src/icons/nucleo/mobile-phone.tsx b/packages/ui/src/icons/nucleo/mobile-phone.tsxnew file mode 100644index 0000000000..0e8542f576--- /dev/null+++ b/packages/ui/src/icons/nucleo/mobile-phone.tsx@@ -0,0 +1,38 @@+import { SVGProps } from "react";++export function MobilePhone(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="#212121">+ <rect+ height="14.5"+ width="10.5"+ fill="none"+ rx="2"+ ry="2"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x="3.75"+ y="1.75"+ />+ <polyline+ fill="none"+ points="7.75 1.75 7.75 2.75 10.25 2.75 10.25 1.75"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <circle cx="9" cy="13" fill="#212121" 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.tsxnew file mode 100644index 0000000000..2616c56947--- /dev/null+++ b/packages/ui/src/icons/nucleo/office-building.tsx@@ -0,0 +1,87 @@+import { SVGProps } from "react";++export function OfficeBuilding(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="#212121">+ <path+ d="M7.75,16.25V7.75c0-.552,.448-1,1-1h5.5c.552,0,1,.448,1,1v8.5"+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <path+ d="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"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <line+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="1.75"+ x2="16.25"+ y1="16.25"+ y2="16.25"+ />+ <line+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="10.25"+ x2="10.25"+ y1="10.25"+ y2="9.75"+ />+ <line+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="12.75"+ x2="12.75"+ y1="10.25"+ y2="9.75"+ />+ <line+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="10.25"+ x2="10.25"+ y1="13.25"+ y2="12.75"+ />+ <line+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="12.75"+ x2="12.75"+ y1="13.25"+ y2="12.75"+ />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/qrcode.tsx b/packages/ui/src/icons/nucleo/qrcode.tsxnew file mode 100644index 0000000000..71ec4cf5b6--- /dev/null+++ b/packages/ui/src/icons/nucleo/qrcode.tsx@@ -0,0 +1,127 @@+import { SVGProps } from "react";++export function QRCode(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="#212121">+ <rect+ height="5"+ width="5"+ fill="none"+ rx="1"+ ry="1"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x="2.75"+ y="2.75"+ />+ <rect+ height="5"+ width="5"+ fill="none"+ rx="1"+ ry="1"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x="10.25"+ y="2.75"+ />+ <rect+ height="5"+ width="5"+ fill="none"+ rx="1"+ ry="1"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x="2.75"+ y="10.25"+ />+ <rect+ height="1.5"+ width="1.5"+ fill="#212121"+ stroke="none"+ x="4.5"+ y="4.5"+ />+ <rect+ height="1.5"+ width="1.5"+ fill="#212121"+ stroke="none"+ x="12"+ y="4.5"+ />+ <rect+ height="1.5"+ width="1.5"+ fill="#212121"+ stroke="none"+ x="4.5"+ y="12"+ />+ <rect+ height="1.5"+ width="1.5"+ fill="#212121"+ stroke="none"+ x="14.5"+ y="14.5"+ />+ <rect+ height="1.5"+ width="1.5"+ fill="#212121"+ stroke="none"+ x="13"+ y="13"+ />+ <rect+ height="1.5"+ width="1.5"+ fill="#212121"+ stroke="none"+ x="14.5"+ y="11.5"+ />+ <rect+ height="1.5"+ width="2"+ fill="#212121"+ stroke="none"+ x="11"+ y="14.5"+ />+ <rect+ height="3"+ width="1.5"+ fill="#212121"+ stroke="none"+ x="9.5"+ y="11.5"+ />+ <rect+ height="1.5"+ width="3.5"+ fill="#212121"+ stroke="none"+ x="11"+ y="10"+ />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/tag.tsx b/packages/ui/src/icons/nucleo/tag.tsxnew file mode 100644index 0000000000..7347ff730d--- /dev/null+++ b/packages/ui/src/icons/nucleo/tag.tsx@@ -0,0 +1,25 @@+import { SVGProps } from "react";++export function Tag(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="#212121">+ <path+ d="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"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ />+ <circle cx="6.25" cy="6.25" fill="#212121" r="1.25" stroke="none" />+ </g>+ </svg>+ );+}diff --git a/packages/ui/src/icons/nucleo/window.tsx b/packages/ui/src/icons/nucleo/window.tsxnew file mode 100644index 0000000000..533b2a5770--- /dev/null+++ b/packages/ui/src/icons/nucleo/window.tsx@@ -0,0 +1,43 @@+import { SVGProps } from "react";++export function Window(props: SVGProps<SVGSVGElement>) {+ return (+ <svg+ height="18"+ width="18"+ viewBox="0 0 18 18"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ >+ <g fill="#212121">+ <rect+ height="12.5"+ width="14.5"+ fill="none"+ rx="2"+ ry="2"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ transform="translate(18 18) rotate(180)"+ 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" />+ <line+ fill="none"+ stroke="#212121"+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth="1.5"+ x1="1.75"+ x2="16.25"+ y1="7.75"+ y2="7.75"+ />+ </g>+ </svg>+ );+}