Files
Rosea/packages/domi-ui/src/lib/icons.ts
T

29 lines
1.4 KiB
TypeScript

/**
* The Domi icon set: 24-unit stroke paths, drawn with stroke="currentColor", 1.8 wide, round caps and joins.
* Icons sit beside words; an icon alone always comes with an accessible name on its button.
*/
export const icons = {
send: 'M4.5 12h13M12.5 6.5 18 12l-5.5 5.5',
search: 'M10.5 17a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13ZM15.5 15.5 20 20',
next: 'M6 9.5 12 15l6-5.5',
save: 'M5 12.5 10 17.5 19 7',
check: 'M5 12.5 10 17.5 19 7',
close: 'M6.5 6.5 17.5 17.5M17.5 6.5 6.5 17.5',
plus: 'M12 5v14M5 12h14',
minus: 'M5 12h14',
trash: 'M5 7h14M10 7V5h4v2M7 7l1 12h8l1-12M10.5 10.5v5.5M13.5 10.5v5.5',
alert: 'M12 4 21 19.5H3L12 4ZM12 10v4.5M12 17.2v.1',
info: 'M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM12 11v5.5M12 7.8v.1',
eye: 'M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12ZM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z',
'eye-off': 'M4 4l16 16M9.9 5.8A8.8 8.8 0 0 1 12 5.5c6 0 9.5 6.5 9.5 6.5a16 16 0 0 1-3 3.8M6.5 7.3A15.6 15.6 0 0 0 2.5 12S6 18.5 12 18.5c1.7 0 3.2-.5 4.4-1.2M10 10a3 3 0 0 0 4 4',
'chevron-down': 'M6 9.5 12 15l6-5.5',
'chevron-right': 'M9.5 6 15 12l-5.5 6',
'arrow-left': 'M19.5 12h-13M11.5 6.5 6 12l5.5 5.5',
retry: 'M4.5 12a7.5 7.5 0 1 0 2.2-5.3M4.5 4.5v4h4',
edit: 'M4.5 19.5 5.5 15 15.5 5a2.1 2.1 0 0 1 3 3l-10 10-4 1.5ZM13.5 7l3 3',
copy: 'M9 9h10.5v10.5H9zM15 9V4.5H4.5V15H9',
lock: 'M6 11h12v9H6zM8.5 11V8a3.5 3.5 0 1 1 7 0v3',
} as const;
export type IconName = keyof typeof icons;