Files
ianitor/packages/ui/src/icons.ts
T

32 lines
1.5 KiB
TypeScript

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
/** The stroke icons of the design (handoff §2.1), as SVG path data on a 24-unit grid. */
export const ICONS = {
plus: "M12 5v14M5 12h14",
undo: "M9 14 4 9l5-5M4 9h11a5 5 0 0 1 0 10h-3",
check: "M5 12.5l4.5 4.5L19 7.5",
clock: "M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM12 7v5l3 2",
link: "M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1",
pencil: "M4 20h4L19 9l-4-4L4 16v4ZM14 6l4 4",
history: "M3 12a9 9 0 1 0 3-6.7L3 8M3 3v5h5M12 7v5l3 2",
trash: "M4 7h16M9 7V4h6v3M6 7l1 13h10l1-13",
key: "M15 9a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM12 12v9M12 17h3M12 20h2",
gear: "M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1 7 17M17 7l2.1-2.1",
building: "M4 21V5l8-3 8 3v16M9 21v-5h6v5M8 8h2M14 8h2M8 12h2M14 12h2",
swap: "M7 7h13l-4-4M17 17H4l4 4",
copy: "M9 9h11v11H9zM5 15H4V4h11v1",
download: "M12 4v11M7 10l5 5 5-5M5 20h14",
chevron: "M6 9l6 6 6-6",
dots: "M5 12h.01M12 12h.01M19 12h.01",
close: "M6 6l12 12M18 6 6 18",
ring: "M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM5.6 18.4 18.4 5.6",
phone: "M8 3h8v18H8zM11 18h2",
laptop: "M5 5h14v10H5zM3 19h18",
app: "M5 5h6v6H5zM13 5h6v6h-6zM5 13h6v6H5zM13 13h6v6h-6z",
shield: "M12 3 5 6v6c0 4 3 7.5 7 9 4-1.5 7-5 7-9V6l-7-3Z",
} as const;
export type IconName = keyof typeof ICONS;