// Stroke icons share the same 24px grid and weight as IconButton. export const actionIcons = { play: '', pause: '', 'skip-forward': '', eye: '', 'eye-off': '', image: '', settings: '', archive: '', save: '', refresh: '', 'arrow-left': '', 'arrow-right': '', terminal: '', undo: '', redo: '', git: '', globe: '', puzzle: '', 'split-right': '', 'split-down': '', kanban: '', bookmark: '', 'file-plus': '', 'folder-plus': '', pin: '', book: '', folder: '', rename: '', 'zoom-in': '', 'zoom-out': '', close: '', swap: '', bullet: '', number: '', task: '', heading: '', quote: '', table: '', rule: '', footnote: '', cut: '', copy: '', paste: '', 'paste-text': '', format: '', bold: '', italic: '', strike: '', highlight: '', code: '', math: '', comment: '', clear: '', left: '', center: '', right: '', row: '', column: '', 'row-before': '', 'row-after': '', 'column-before': '', 'column-after': '', up: '', down: '', 'move-left': '', 'move-right': '', trash: '', 'sort-asc': '', 'sort-desc': '', link: '', external: '', search: '', filter: '', extract: '', select: '', paragraph: '', insert: '', chevron: '', plus: '', grip: '', } as const; export type ActionIcon = keyof typeof actionIcons; export function actionIcon(name: ActionIcon): SVGSVGElement { const svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); svg.setAttribute("viewBox", "0 0 24 24"); svg.setAttribute("aria-hidden", "true"); svg.classList.add("action-icon"); svg.innerHTML = actionIcons[name]; return svg; }