UNPKG

@uiw/react-md-editor

Version:

A markdown editor with preview, implemented with React.js and TypeScript.

30 lines (29 loc) 1.73 kB
import * as React from 'react'; import { jsx as _jsx } from "react/jsx-runtime"; export var fullscreen = { name: 'fullscreen', keyCommand: 'fullscreen', shortcuts: 'escape', buttonProps: { 'aria-label': 'fullscreen', title: 'fullscreen' }, icon: /*#__PURE__*/_jsx("svg", { width: "12", height: "12", viewBox: "0 0 520 520", children: /*#__PURE__*/_jsx("path", { fill: "currentColor", d: "M118 171.133334L118 342.200271C118 353.766938 126.675 365.333605 141.133333 365.333605L382.634614 365.333605C394.201281 365.333605 405.767948 356.658605 405.767948 342.200271L405.767948 171.133334C405.767948 159.566667 397.092948 148 382.634614 148L141.133333 148C126.674999 148 117.999999 156.675 118 171.133334zM465.353591 413.444444L370 413.444444 370 471.222222 474.0221 471.222222C500.027624 471.222222 520.254143 451 520.254143 425L520.254143 321 462.464089 321 462.464089 413.444444 465.353591 413.444444zM471.0221 43L367 43 367 100.777778 462.353591 100.777778 462.353591 196.111111 520.143647 196.111111 520.143647 89.2222219C517.254144 63.2222219 497.027624 43 471.0221 43zM57.7900547 100.777778L153.143646 100.777778 153.143646 43 46.2320439 43C20.2265191 43 0 63.2222219 0 89.2222219L0 193.222222 57.7900547 193.222222 57.7900547 100.777778zM57.7900547 321L0 321 0 425C0 451 20.2265191 471.222222 46.2320439 471.222223L150.254143 471.222223 150.254143 413.444445 57.7900547 413.444445 57.7900547 321z" }) }), execute: (state, api, dispatch, executeCommandState) => { api.textArea.focus(); if (dispatch && executeCommandState && executeCommandState.fullscreen) { dispatch({ fullscreen: false }); } } }; //# sourceMappingURL=fullscreen.js.map