@selfcommunity/react-ui 0.7.0-alpha.337 → 0.7.0-alpha.338

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -271,9 +271,7 @@ function ToolbarPlugin(inProps) {
271
271
  activeEditor.dispatchCommand(lexical_1.FORMAT_ELEMENT_COMMAND, ALIGNMENTS[(ALIGNMENTS.findIndex((a) => alignment === a) + 1) % ALIGNMENTS.length]);
272
272
  } },
273
273
  React.createElement(material_1.Tooltip, { title: React.createElement(react_intl_1.FormattedMessage, { id: `ui.editor.toolbarPlugin.${alignment}`, defaultMessage: `ui.editor.toolbarPlugin.${alignment}` }) },
274
- React.createElement(material_1.Icon, null,
275
- "format_align_",
276
- alignment))),
274
+ React.createElement(material_1.Icon, null, `format_align_${alignment}`))),
277
275
  React.createElement(material_1.ToggleButtonGroup, { value: formats }, FORMATS.map((format) => (React.createElement(material_1.ToggleButton, { key: format, value: format, disabled: !isEditable, onClick: () => {
278
276
  activeEditor.dispatchCommand(lexical_1.FORMAT_TEXT_COMMAND, format);
279
277
  } },
@@ -268,9 +268,7 @@ export default function ToolbarPlugin(inProps) {
268
268
  activeEditor.dispatchCommand(FORMAT_ELEMENT_COMMAND, ALIGNMENTS[(ALIGNMENTS.findIndex((a) => alignment === a) + 1) % ALIGNMENTS.length]);
269
269
  } },
270
270
  React.createElement(Tooltip, { title: React.createElement(FormattedMessage, { id: `ui.editor.toolbarPlugin.${alignment}`, defaultMessage: `ui.editor.toolbarPlugin.${alignment}` }) },
271
- React.createElement(Icon, null,
272
- "format_align_",
273
- alignment))),
271
+ React.createElement(Icon, null, `format_align_${alignment}`))),
274
272
  React.createElement(ToggleButtonGroup, { value: formats }, FORMATS.map((format) => (React.createElement(ToggleButton, { key: format, value: format, disabled: !isEditable, onClick: () => {
275
273
  activeEditor.dispatchCommand(FORMAT_TEXT_COMMAND, format);
276
274
  } },