// The action icons of RuneStone. Menus, commands, and plugin controls use the same artwork.
// Stroke icons share the same 24px grid and weight as the host icon buttons.
// The host styles the `action-icon` class: size, stroke, and color. Outside RuneStone, add your own style.
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: '',
duplicate: '',
template: '',
tab: '',
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;
/** Makes a new SVG element for an action icon. The element has `aria-hidden`, so give its control an accessible name. */
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;
}