Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

11.5 KB
Raw Blame
// Icon paths from the reference UI (prototypes/inbox-html). 24px grid, 1.75 stroke.
// gear, shield and contact follow Lucide (ISC license).
type Part = [tag: 'path' | 'circle' | 'rect' | 'ellipse', attrs: Record<string, string | number>]
export const icons = {
  sun: [
    ['circle', { cx: 12, cy: 12, r: 4 }],
    [
      'path',
      { d: 'M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4' },
    ],
  ],
  moon: [['path', { d: 'M20 14.5A8 8 0 1 1 9.5 4a6.5 6.5 0 0 0 10.5 10.5z' }]],
  mail: [
    ['rect', { x: 3, y: 5.5, width: 18, height: 13, rx: 2 }],
    ['path', { d: 'M3.5 7l8.5 6 8.5-6' }],
  ],
  message: [
    ['path', { d: 'M4.5 5h15a1 1 0 0 1 1 1v9.5a1 1 0 0 1-1 1H9.5l-5 3.5V6a1 1 0 0 1 1-1z' }],
    ['path', { d: 'M8.5 9.5h7M8.5 12.5h4.5' }],
  ],
  whatsapp: [
    ['path', { d: 'M12 3.5a8.5 8.5 0 0 0-7.3 12.8L3.5 20.5l4.3-1.1A8.5 8.5 0 1 0 12 3.5z' }],
    [
      'path',
      {
        d: 'M9.2 8.6c.3-.4.7-.4.9 0l.7 1.5c.1.3 0 .6-.2.8l-.5.5a6 6 0 0 0 2.5 2.5l.5-.5c.2-.2.5-.3.8-.2l1.5.7c.4.2.4.6 0 .9-.6.6-1.5.9-2.4.6a8 8 0 0 1-4.4-4.4c-.3-.9 0-1.8.6-2.4z',
      },
    ],
  ],
  globe: [
    ['circle', { cx: 12, cy: 12, r: 8.5 }],
    [
      'path',
      { d: 'M3.5 12h17M12 3.5c2.4 2.6 3.5 5.5 3.5 8.5s-1.1 5.9-3.5 8.5c-2.4-2.6-3.5-5.5-3.5-8.5s1.1-5.9 3.5-8.5z' },
    ],
  ],
  plug: [['path', { d: 'M9 3.5v4M15 3.5v4M6.5 7.5h11V10a5.5 5.5 0 0 1-11 0z M12 15.5v5' }]],
  users: [
    ['circle', { cx: 9, cy: 8, r: 3.5 }],
    ['path', { d: 'M2.5 20a6.5 6.5 0 0 1 13 0' }],
    ['path', { d: 'M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6.5 6.5 0 0 1 3.5 6' }],
  ],
  tasks: [
    ['rect', { x: 3.5, y: 3.5, width: 17, height: 17, rx: 3 }],
    ['path', { d: 'M8 12.5l2.8 2.8L16.5 9' }],
  ],
  gear: [
    [
      'path',
      {
        d: 'M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z',
      },
    ],
    ['circle', { cx: 12, cy: 12, r: 3 }],
  ],
  shield: [
    [
      'path',
      {
        d: 'M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z',
      },
    ],
    ['path', { d: 'M9 12l2 2 4-4' }],
  ],
  contact: [
    ['rect', { x: 3, y: 4, width: 18, height: 18, rx: 2 }],
    ['path', { d: 'M16 2v2M8 2v2M7 21v-1a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1' }],
    ['circle', { cx: 12, cy: 11, r: 3 }],
  ],
  left: [['path', { d: 'M15 5l-7 7 7 7' }]],
  right: [['path', { d: 'M9 5l7 7-7 7' }]],
  'arrow-up-right': [['path', { d: 'M7 17L17 7M8 7h9v9' }]],
  chart: [
    ['path', { d: 'M4 20h16' }],
    ['path', { d: 'M7 16v-5M12 16V6M17 16v-8' }],
  ],
  waveform: [['path', { d: 'M4 10v4M8 7v10M12 4v16M16 8v8M20 10.5v3' }]],
  up: [['path', { d: 'M6 15l6-6 6 6' }]],
  down: [['path', { d: 'M6 9l6 6 6-6' }]],
  restart: [
    ['path', { d: 'M4 12a8 8 0 1 0 2.3-5.7' }],
    ['path', { d: 'M4 4v4h4' }],
  ],
  clock: [
    ['circle', { cx: 12, cy: 12, r: 8.5 }],
    ['path', { d: 'M12 7.5V12l3 2' }],
  ],
  keyboard: [
    ['rect', { x: 2.5, y: 6, width: 19, height: 12, rx: 2 }],
    ['path', { d: 'M6.5 10h.01M10 10h.01M14 10h.01M17.5 10h.01M7.5 14h9' }],
  ],
  menu: [['path', { d: 'M4 7h16M4 12h16M4 17h16' }]],
  trash: [['path', { d: 'M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3' }]],
  send: [
    ['path', { d: 'M12 19V5' }],
    ['path', { d: 'M5.5 11.5L12 5l6.5 6.5' }],
  ],
  attach: [
    [
      'path',
      {
        d: 'M20.5 11.2l-8.4 8.4a5 5 0 0 1-7.1-7.1l8.4-8.4a3.3 3.3 0 0 1 4.7 4.7l-8.4 8.4a1.7 1.7 0 0 1-2.4-2.4l7.7-7.7',
      },
    ],
  ],
  search: [
    ['circle', { cx: 11, cy: 11, r: 6.5 }],
    ['path', { d: 'M20 20l-4.2-4.2' }],
  ],
  check: [['path', { d: 'M5 12.5l4.2 4.2L19 7' }]],
  checks: [
    ['path', { d: 'M2.5 12.5l4.2 4.2L16.5 7' }],
    ['path', { d: 'M11.6 16.4l.3.3L21.7 7' }],
  ],
  plus: [['path', { d: 'M12 5v14M5 12h14' }]],
  reply: [
    ['path', { d: 'M9 14L4 9l5-5' }],
    ['path', { d: 'M4 9h10.5a5.5 5.5 0 0 1 0 11H12' }],
  ],
  archive: [
    ['rect', { x: 3, y: 4, width: 18, height: 5, rx: 1 }],
    ['path', { d: 'M5 9v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9M10 13h4' }],
  ],
  building: [
    ['path', { d: 'M5 21V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16M15 9h3a1 1 0 0 1 1 1v11M3 21h18' }],
    ['path', { d: 'M8.5 8h3M8.5 11.5h3M8.5 15h3' }],
  ],
  user: [
    ['circle', { cx: 12, cy: 8, r: 4 }],
    ['path', { d: 'M4 20a8 8 0 0 1 16 0' }],
  ],
  calendar: [
    ['rect', { x: 3.5, y: 5, width: 17, height: 15, rx: 2 }],
    ['path', { d: 'M8 3v4M16 3v4M3.5 10h17' }],
  ],
  spark: [['path', { d: 'M12 3c.6 4.6 3.4 7.4 9 9-5.6 1.6-8.4 4.4-9 9-.6-4.6-3.4-7.4-9-9 5.6-1.6 8.4-4.4 9-9z' }]],
  more: [
    ['circle', { cx: 5, cy: 12, r: 1 }],
    ['circle', { cx: 12, cy: 12, r: 1 }],
    ['circle', { cx: 19, cy: 12, r: 1 }],
  ],
  phone: [
    ['path', { d: 'M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z' }],
  ],
  'phone-in': [
    ['path', { d: 'M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z' }],
    ['path', { d: 'M21 3l-6 6M15 4v5h5' }],
  ],
  'phone-out': [
    ['path', { d: 'M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z' }],
    ['path', { d: 'M15 9l6-6M16 3h5v5' }],
  ],
  'phone-missed': [
    ['path', { d: 'M5 4h3l2 5-2.5 1.5a11 11 0 0 0 6 6L15 14l5 2v3a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z' }],
    ['path', { d: 'M15 3l6 6M21 3l-6 6' }],
  ],
  bell: [
    ['path', { d: 'M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9' }],
    ['path', { d: 'M10.3 21a1.94 1.94 0 0 0 3.4 0' }],
  ],
  'phone-off': [['path', { d: 'M2.5 14.5a13.5 13.5 0 0 1 19 0l-2 2.5-3.5-1.2V13a11 11 0 0 0-8 0v2.8L4.5 17z' }]],
  headset: [
    ['path', { d: 'M4 15v-3a8 8 0 0 1 16 0v3' }],
    ['rect', { x: 3, y: 14, width: 4, height: 6, rx: 1.5 }],
    ['rect', { x: 17, y: 14, width: 4, height: 6, rx: 1.5 }],
  ],
  mic: [
    ['rect', { x: 9, y: 3, width: 6, height: 11, rx: 3 }],
    ['path', { d: 'M5 11a7 7 0 0 0 14 0M12 18v3' }],
  ],
  play: [['path', { d: 'M8 5.5v13l10.5-6.5z' }]],
  pause: [
    ['rect', { x: 6.5, y: 5, width: 4, height: 14, rx: 1 }],
    ['rect', { x: 13.5, y: 5, width: 4, height: 14, rx: 1 }],
  ],
  flag: [['path', { d: 'M5.5 21V4M5.5 4.5h11l-2.2 4 2.2 4h-11' }]],
  ban: [
    ['circle', { cx: 12, cy: 12, r: 8.5 }],
    ['path', { d: 'M6 6l12 12' }],
  ],
  database: [
    ['ellipse', { cx: 12, cy: 6, rx: 7, ry: 3 }],
    ['path', { d: 'M5 6v12c0 1.7 3.1 3 7 3s7-1.3 7-3V6M5 12c0 1.7 3.1 3 7 3s7-1.3 7-3' }],
  ],
  // micOff, close, eye, eyeOff, help, disk and alert follow Lucide (mic-off, x, eye, eye-off, circle-help, hard-drive, circle-alert; ISC license).
  micOff: [
    [
      'path',
      {
        d: 'M2 2l20 20M18.9 13.4A7 7 0 0 0 19 12v-1M15 9.3V5a3 3 0 0 0-5.7-1.3M9 9v3a3 3 0 0 0 5.1 2.1M16.9 16.9A7 7 0 0 1 5 12v-1M12 19v3',
      },
    ],
  ],
  server: [
    ['rect', { x: 3.5, y: 3.5, width: 17, height: 7, rx: 2 }],
    ['rect', { x: 3.5, y: 13.5, width: 17, height: 7, rx: 2 }],
    ['path', { d: 'M7.5 7h.01M7.5 17h.01' }],
  ],
  // pencil and copy follow Lucide (pencil, copy; ISC license).
  pencil: [
    [
      'path',
      {
        d: 'M21.2 6.8a2.8 2.8 0 0 0-4-4L3.8 16.2a2 2 0 0 0-.5.8l-1.3 4.4a.5.5 0 0 0 .6.6l4.4-1.3a2 2 0 0 0 .8-.5zM15 5l4 4',
      },
    ],
  ],
  copy: [
    ['rect', { x: 8, y: 8, width: 14, height: 14, rx: 2 }],
    ['path', { d: 'M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2' }],
  ],
  close: [['path', { d: 'M18 6 6 18M6 6l12 12' }]],
  // star follows Lucide (star; ISC license).
  star: [
    [
      'path',
      {
        d: 'M11.5 2.3a.5.5 0 0 1 1 0l2.3 4.7a2 2 0 0 0 1.5 1.1l5.2.8a.5.5 0 0 1 .3.9l-3.8 3.7a2 2 0 0 0-.6 1.8l.9 5.2a.5.5 0 0 1-.8.6l-4.6-2.5a2 2 0 0 0-1.9 0l-4.6 2.5a.5.5 0 0 1-.8-.6l.9-5.2a2 2 0 0 0-.6-1.8L2.2 9.8a.5.5 0 0 1 .3-.9l5.2-.8a2 2 0 0 0 1.5-1.1z',
      },
    ],
  ],
  eye: [
    ['path', { d: 'M2.1 12.3a1 1 0 0 1 0-.6 10.8 10.8 0 0 1 19.8 0 1 1 0 0 1 0 .6 10.8 10.8 0 0 1-19.8 0' }],
    ['circle', { cx: 12, cy: 12, r: 3 }],
  ],
  eyeOff: [
    [
      'path',
      {
        d: 'M10.7 5.1a10.8 10.8 0 0 1 11.2 6.6 1 1 0 0 1 0 .7 10.7 10.7 0 0 1-1.4 2.5M14.1 14.2a3 3 0 0 1-4.2-4.2M17.5 17.5a10.8 10.8 0 0 1-15.4-5.1 1 1 0 0 1 0-.7 10.8 10.8 0 0 1 4.4-5.2M2 2l20 20',
      },
    ],
  ],
  help: [
    ['circle', { cx: 12, cy: 12, r: 9 }],
    ['path', { d: 'M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3M12 17h.01' }],
  ],
  disk: [
    [
      'path',
      {
        d: 'M22 12H2M5.5 5.1 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.4-6.9A2 2 0 0 0 16.8 4H7.2a2 2 0 0 0-1.8 1.1zM6 16h.01M10 16h.01',
      },
    ],
  ],
  // Billing (LIN-837): a banknote, after Lucide's banknote (ISC license).
  money: [
    ['rect', { x: 2, y: 6, width: 20, height: 12, rx: 2 }],
    ['circle', { cx: 12, cy: 12, r: 2 }],
    ['path', { d: 'M6 12h.01M18 12h.01' }],
  ],
  // The exclamation mark of a status mark (StatusMark's MarkGlyph): its ink runs from the top of the bar to the bottom
  // of the dot, 5 - w/2 to 19 + w/2 for any stroke width w, so it is centred on 12 like check and close.
  exclamation: [['path', { d: 'M12 5v7.5M12 19h.01' }]],
  alert: [
    ['circle', { cx: 12, cy: 12, r: 9 }],
    ['path', { d: 'M12 8v4.5M12 16h.01' }],
  ],
  // warning and info follow Lucide (triangle-alert, info; ISC license).
  warning: [
    ['path', { d: 'M21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3z' }],
    ['path', { d: 'M12 9v4M12 17h.01' }],
  ],
  info: [
    ['circle', { cx: 12, cy: 12, r: 9 }],
    ['path', { d: 'M12 16v-4M12 8h.01' }],
  ],
  // heart follows Lucide (ISC license): Server admin › Branding, Support Linedesk.
  heart: [
    [
      'path',
      {
        d: 'M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z',
      },
    ],
  ],
  // move follows Lucide (ISC license): the crop step's "Drag to move" hint.
  move: [
    ['path', { d: 'M12 2v20M2 12h20' }],
    ['path', { d: 'M9 5l3-3 3 3M15 19l-3 3-3-3M5 9l-3 3 3 3M19 9l3 3-3 3' }],
  ],
  // bug, bulb and book follow Lucide (ISC license): Help › Report a bug, Request a feature, Documentation.
  bug: [
    ['path', { d: 'M8 2l1.9 1.9M14.1 3.9 16 2M9 7.1v-1a3 3 0 1 1 6 0v1' }],
    ['path', { d: 'M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6zM12 20v-9' }],
    [
      'path',
      {
        d: 'M6.5 9C4.6 8.8 3 7.1 3 5M6 13H2M3 21c0-2.1 1.7-3.9 3.8-4M21 5c0 2.1-1.6 3.8-3.5 4M22 13h-4M17.2 17c2.1.1 3.8 1.9 3.8 4',
      },
    ],
  ],
  bulb: [
    [
      'path',
      { d: 'M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5' },
    ],
    ['path', { d: 'M9 18h6M10 22h4' }],
  ],
  book: [
    ['path', { d: 'M12 7v14' }],
    [
      'path',
      {
        d: 'M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z',
      },
    ],
  ],
} satisfies Record<string, Part[]>
export type IconName = keyof typeof icons
export const filledIcons: ReadonlySet<IconName> = new Set(['spark', 'play', 'pause'])