@payloadcms/richtext-lexical 3.0.0-beta.47 → 3.0.0-beta.49
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.
- package/README.md +1 -1
- package/dist/cell/index.d.ts +1 -1
- package/dist/cell/index.d.ts.map +1 -1
- package/dist/cell/index.js +1 -2
- package/dist/cell/index.js.map +1 -1
- package/dist/exports/client/Component-6AVANNNR.js +2 -0
- package/dist/exports/client/Component-6AVANNNR.js.map +7 -0
- package/dist/exports/client/Component-SZVAYRJX.js +2 -0
- package/dist/exports/client/Component-SZVAYRJX.js.map +7 -0
- package/dist/exports/client/Field-U5PHZTST.js +2 -0
- package/dist/exports/client/Field-U5PHZTST.js.map +7 -0
- package/dist/exports/client/RelationshipComponent-FGUPLCD2.js +2 -0
- package/dist/exports/client/RelationshipComponent-FGUPLCD2.js.map +7 -0
- package/dist/exports/client/bundled.css +1 -0
- package/dist/exports/client/chunk-33ZTAHVL.js +2 -0
- package/dist/exports/client/chunk-33ZTAHVL.js.map +7 -0
- package/dist/exports/client/chunk-35NZOHAF.js +2 -0
- package/dist/exports/client/chunk-35NZOHAF.js.map +7 -0
- package/dist/exports/client/chunk-3PZ2ZFQG.js +3 -0
- package/dist/exports/client/chunk-3PZ2ZFQG.js.map +7 -0
- package/dist/exports/client/chunk-FSTRW2TI.js +2 -0
- package/dist/exports/client/chunk-FSTRW2TI.js.map +7 -0
- package/dist/exports/client/chunk-Y5455JF3.js +2 -0
- package/dist/exports/client/chunk-Y5455JF3.js.map +7 -0
- package/dist/exports/client/component-FFLILIUZ.js +2 -0
- package/dist/exports/client/component-FFLILIUZ.js.map +7 -0
- package/dist/exports/client/component-GR6KYTLO.js +2 -0
- package/dist/exports/client/component-GR6KYTLO.js.map +7 -0
- package/dist/exports/client/component-RAVN56DE.js +2 -0
- package/dist/exports/client/component-RAVN56DE.js.map +7 -0
- package/dist/exports/client/index.d.ts +52 -0
- package/dist/exports/client/index.d.ts.map +1 -0
- package/dist/exports/client/index.js +36 -0
- package/dist/exports/client/index.js.map +7 -0
- package/dist/field/Field.d.ts +1 -0
- package/dist/field/Field.d.ts.map +1 -1
- package/dist/field/Field.js +3 -8
- package/dist/field/Field.js.map +1 -1
- package/dist/field/bundled.css +0 -0
- package/dist/field/features/align/feature.server.d.ts.map +1 -1
- package/dist/field/features/align/feature.server.js +2 -1
- package/dist/field/features/align/feature.server.js.map +1 -1
- package/dist/field/features/blockquote/feature.server.d.ts.map +1 -1
- package/dist/field/features/blockquote/feature.server.js +2 -1
- package/dist/field/features/blockquote/feature.server.js.map +1 -1
- package/dist/field/features/blocks/component/BlockContent.js +1 -9
- package/dist/field/features/blocks/component/BlockContent.js.map +1 -1
- package/dist/field/features/blocks/component/FormSavePlugin.d.ts +1 -2
- package/dist/field/features/blocks/component/FormSavePlugin.d.ts.map +1 -1
- package/dist/field/features/blocks/component/FormSavePlugin.js +2 -2
- package/dist/field/features/blocks/component/FormSavePlugin.js.map +1 -1
- package/dist/field/features/blocks/component/index.d.ts.map +1 -1
- package/dist/field/features/blocks/component/index.js +2 -12
- package/dist/field/features/blocks/component/index.js.map +1 -1
- package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts +1 -1
- package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts.map +1 -1
- package/dist/field/features/blocks/component/removeEmptyArrayValues.js.map +1 -1
- package/dist/field/features/blocks/drawer/index.d.ts.map +1 -1
- package/dist/field/features/blocks/drawer/index.js +1 -4
- package/dist/field/features/blocks/drawer/index.js.map +1 -1
- package/dist/field/features/blocks/feature.server.d.ts +1 -1
- package/dist/field/features/blocks/feature.server.d.ts.map +1 -1
- package/dist/field/features/blocks/feature.server.js +3 -3
- package/dist/field/features/blocks/feature.server.js.map +1 -1
- package/dist/field/features/converters/html/field/index.d.ts +7 -1
- package/dist/field/features/converters/html/field/index.d.ts.map +1 -1
- package/dist/field/features/converters/html/field/index.js +62 -53
- package/dist/field/features/converters/html/field/index.js.map +1 -1
- package/dist/field/features/createFeaturePropComponent.d.ts.map +1 -1
- package/dist/field/features/createFeaturePropComponent.js +1 -3
- package/dist/field/features/createFeaturePropComponent.js.map +1 -1
- package/dist/field/features/debug/testRecorder/feature.server.d.ts.map +1 -1
- package/dist/field/features/debug/testRecorder/feature.server.js +2 -1
- package/dist/field/features/debug/testRecorder/feature.server.js.map +1 -1
- package/dist/field/features/debug/testRecorder/plugin/index.js +0 -1
- package/dist/field/features/debug/testRecorder/plugin/index.js.map +1 -1
- package/dist/field/features/debug/treeView/feature.server.d.ts.map +1 -1
- package/dist/field/features/debug/treeView/feature.server.js +2 -1
- package/dist/field/features/debug/treeView/feature.server.js.map +1 -1
- package/dist/field/features/debug/treeView/plugin/index.js +0 -1
- package/dist/field/features/debug/treeView/plugin/index.js.map +1 -1
- package/dist/field/features/format/bold/feature.server.d.ts.map +1 -1
- package/dist/field/features/format/bold/feature.server.js +2 -1
- package/dist/field/features/format/bold/feature.server.js.map +1 -1
- package/dist/field/features/format/inlineCode/feature.server.d.ts.map +1 -1
- package/dist/field/features/format/inlineCode/feature.server.js +2 -1
- package/dist/field/features/format/inlineCode/feature.server.js.map +1 -1
- package/dist/field/features/format/italic/feature.server.d.ts.map +1 -1
- package/dist/field/features/format/italic/feature.server.js +2 -1
- package/dist/field/features/format/italic/feature.server.js.map +1 -1
- package/dist/field/features/format/strikethrough/feature.server.d.ts.map +1 -1
- package/dist/field/features/format/strikethrough/feature.server.js +2 -1
- package/dist/field/features/format/strikethrough/feature.server.js.map +1 -1
- package/dist/field/features/format/subscript/feature.server.d.ts.map +1 -1
- package/dist/field/features/format/subscript/feature.server.js +2 -1
- package/dist/field/features/format/subscript/feature.server.js.map +1 -1
- package/dist/field/features/format/superscript/feature.server.d.ts.map +1 -1
- package/dist/field/features/format/superscript/feature.server.js +2 -1
- package/dist/field/features/format/superscript/feature.server.js.map +1 -1
- package/dist/field/features/format/underline/feature.server.d.ts.map +1 -1
- package/dist/field/features/format/underline/feature.server.js +2 -1
- package/dist/field/features/format/underline/feature.server.js.map +1 -1
- package/dist/field/features/heading/feature.client.d.ts.map +1 -1
- package/dist/field/features/heading/feature.client.js +1 -2
- package/dist/field/features/heading/feature.client.js.map +1 -1
- package/dist/field/features/heading/feature.server.d.ts.map +1 -1
- package/dist/field/features/heading/feature.server.js +2 -1
- package/dist/field/features/heading/feature.server.js.map +1 -1
- package/dist/field/features/horizontalRule/feature.server.d.ts.map +1 -1
- package/dist/field/features/horizontalRule/feature.server.js +2 -1
- package/dist/field/features/horizontalRule/feature.server.js.map +1 -1
- package/dist/field/features/horizontalRule/plugin/index.js +0 -1
- package/dist/field/features/horizontalRule/plugin/index.js.map +1 -1
- package/dist/field/features/indent/feature.server.d.ts.map +1 -1
- package/dist/field/features/indent/feature.server.js +2 -1
- package/dist/field/features/indent/feature.server.js.map +1 -1
- package/dist/field/features/link/drawer/baseFields.d.ts +1 -2
- package/dist/field/features/link/drawer/baseFields.d.ts.map +1 -1
- package/dist/field/features/link/drawer/baseFields.js.map +1 -1
- package/dist/field/features/link/drawer/index.d.ts.map +1 -1
- package/dist/field/features/link/drawer/index.js +2 -10
- package/dist/field/features/link/drawer/index.js.map +1 -1
- package/dist/field/features/link/drawer/types.d.ts +1 -1
- package/dist/field/features/link/drawer/types.d.ts.map +1 -1
- package/dist/field/features/link/drawer/types.js.map +1 -1
- package/dist/field/features/link/feature.server.d.ts +1 -2
- package/dist/field/features/link/feature.server.d.ts.map +1 -1
- package/dist/field/features/link/feature.server.js +5 -4
- package/dist/field/features/link/feature.server.js.map +1 -1
- package/dist/field/features/link/nodes/LinkNode.d.ts.map +1 -1
- package/dist/field/features/link/nodes/LinkNode.js.map +1 -1
- package/dist/field/features/link/plugins/autoLink/index.js.map +1 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +3 -8
- package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/index.js +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/index.js.map +1 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +1 -2
- package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +1 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js.map +1 -1
- package/dist/field/features/link/validate.d.ts +1 -1
- package/dist/field/features/link/validate.d.ts.map +1 -1
- package/dist/field/features/link/validate.js.map +1 -1
- package/dist/field/features/lists/checklist/feature.server.d.ts.map +1 -1
- package/dist/field/features/lists/checklist/feature.server.js +2 -1
- package/dist/field/features/lists/checklist/feature.server.js.map +1 -1
- package/dist/field/features/lists/orderedList/feature.server.d.ts.map +1 -1
- package/dist/field/features/lists/orderedList/feature.server.js +2 -1
- package/dist/field/features/lists/orderedList/feature.server.js.map +1 -1
- package/dist/field/features/lists/unorderedList/feature.server.d.ts.map +1 -1
- package/dist/field/features/lists/unorderedList/feature.server.js +2 -1
- package/dist/field/features/lists/unorderedList/feature.server.js.map +1 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js +2 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +1 -2
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
- package/dist/field/features/migrations/slateToLexical/feature.server.d.ts.map +1 -1
- package/dist/field/features/migrations/slateToLexical/feature.server.js +2 -1
- package/dist/field/features/migrations/slateToLexical/feature.server.js.map +1 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +1 -2
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
- package/dist/field/features/paragraph/feature.server.d.ts.map +1 -1
- package/dist/field/features/paragraph/feature.server.js +2 -1
- package/dist/field/features/paragraph/feature.server.js.map +1 -1
- package/dist/field/features/relationship/drawer/index.js +1 -1
- package/dist/field/features/relationship/drawer/index.js.map +1 -1
- package/dist/field/features/relationship/feature.server.d.ts.map +1 -1
- package/dist/field/features/relationship/feature.server.js +2 -1
- package/dist/field/features/relationship/feature.server.js.map +1 -1
- package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -1
- package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +2 -8
- package/dist/field/features/relationship/nodes/components/RelationshipComponent.js.map +1 -1
- package/dist/field/features/relationship/plugins/index.d.ts.map +1 -1
- package/dist/field/features/relationship/plugins/index.js +2 -3
- package/dist/field/features/relationship/plugins/index.js.map +1 -1
- package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +1 -1
- package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js +1 -3
- package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js.map +1 -1
- package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts.map +1 -1
- package/dist/field/features/toolbars/fixed/Toolbar/index.js +1 -3
- package/dist/field/features/toolbars/fixed/Toolbar/index.js.map +1 -1
- package/dist/field/features/toolbars/fixed/feature.server.d.ts.map +1 -1
- package/dist/field/features/toolbars/fixed/feature.server.js +2 -1
- package/dist/field/features/toolbars/fixed/feature.server.js.map +1 -1
- package/dist/field/features/toolbars/inline/Toolbar/index.js +0 -1
- package/dist/field/features/toolbars/inline/Toolbar/index.js.map +1 -1
- package/dist/field/features/toolbars/inline/feature.server.d.ts.map +1 -1
- package/dist/field/features/toolbars/inline/feature.server.js +2 -1
- package/dist/field/features/toolbars/inline/feature.server.js.map +1 -1
- package/dist/field/features/toolbars/shared/ToolbarButton/index.js +0 -1
- package/dist/field/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
- package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts +1 -2
- package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -1
- package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.js +1 -2
- package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
- package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js +1 -2
- package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
- package/dist/field/features/types.d.ts +1 -3
- package/dist/field/features/types.d.ts.map +1 -1
- package/dist/field/features/types.js.map +1 -1
- package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts +1 -1
- package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +1 -1
- package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +3 -10
- package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js.map +1 -1
- package/dist/field/features/upload/component/index.d.ts.map +1 -1
- package/dist/field/features/upload/component/index.js +1 -9
- package/dist/field/features/upload/component/index.js.map +1 -1
- package/dist/field/features/upload/drawer/index.js +1 -1
- package/dist/field/features/upload/drawer/index.js.map +1 -1
- package/dist/field/features/upload/feature.server.d.ts +1 -1
- package/dist/field/features/upload/feature.server.d.ts.map +1 -1
- package/dist/field/features/upload/feature.server.js +3 -2
- package/dist/field/features/upload/feature.server.js.map +1 -1
- package/dist/field/features/upload/nodes/UploadNode.d.ts +1 -2
- package/dist/field/features/upload/nodes/UploadNode.d.ts.map +1 -1
- package/dist/field/features/upload/nodes/UploadNode.js.map +1 -1
- package/dist/field/features/upload/plugin/index.js +1 -1
- package/dist/field/features/upload/plugin/index.js.map +1 -1
- package/dist/field/features/upload/validate.js +1 -1
- package/dist/field/features/upload/validate.js.map +1 -1
- package/dist/field/index.d.ts.map +1 -1
- package/dist/field/index.js +35 -99
- package/dist/field/index.js.map +1 -1
- package/dist/field/lexical/LexicalEditor.js +1 -2
- package/dist/field/lexical/LexicalEditor.js.map +1 -1
- package/dist/field/lexical/LexicalProvider.d.ts +1 -2
- package/dist/field/lexical/LexicalProvider.d.ts.map +1 -1
- package/dist/field/lexical/LexicalProvider.js +1 -1
- package/dist/field/lexical/LexicalProvider.js.map +1 -1
- package/dist/field/lexical/config/server/loader.d.ts +1 -1
- package/dist/field/lexical/config/server/loader.d.ts.map +1 -1
- package/dist/field/lexical/config/server/loader.js.map +1 -1
- package/dist/field/lexical/config/server/sanitize.d.ts +1 -1
- package/dist/field/lexical/config/server/sanitize.d.ts.map +1 -1
- package/dist/field/lexical/config/server/sanitize.js.map +1 -1
- package/dist/field/lexical/nodes/index.d.ts.map +1 -1
- package/dist/field/lexical/nodes/index.js.map +1 -1
- package/dist/field/lexical/plugins/SlashMenu/index.js +2 -3
- package/dist/field/lexical/plugins/SlashMenu/index.js.map +1 -1
- package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +0 -1
- package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
- package/dist/field/lexical/theme/EditorTheme.js +0 -1
- package/dist/field/lexical/theme/EditorTheme.js.map +1 -1
- package/dist/field/lexical/ui/ContentEditable.js +0 -1
- package/dist/field/lexical/ui/ContentEditable.js.map +1 -1
- package/dist/generateComponentMap.d.ts +1 -1
- package/dist/generateComponentMap.d.ts.map +1 -1
- package/dist/generateComponentMap.js.map +1 -1
- package/dist/generateSchemaMap.d.ts +1 -1
- package/dist/generateSchemaMap.d.ts.map +1 -1
- package/dist/generateSchemaMap.js.map +1 -1
- package/dist/index.d.ts +0 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -22
- package/dist/index.js.map +1 -1
- package/dist/populateGraphQL/populate.d.ts +1 -1
- package/dist/populateGraphQL/populate.d.ts.map +1 -1
- package/dist/populateGraphQL/populate.js +1 -1
- package/dist/populateGraphQL/populate.js.map +1 -1
- package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
- package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -1
- package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +1 -2
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -1
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js +1 -1
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -1
- package/dist/types.d.ts +1 -3
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/useLexicalFeature.d.ts.map +1 -1
- package/dist/useLexicalFeature.js +1 -3
- package/dist/useLexicalFeature.js.map +1 -1
- package/dist/validate/index.d.ts +1 -1
- package/dist/validate/index.d.ts.map +1 -1
- package/dist/validate/index.js.map +1 -1
- package/dist/validate/validateNodes.d.ts +1 -1
- package/dist/validate/validateNodes.d.ts.map +1 -1
- package/dist/validate/validateNodes.js.map +1 -1
- package/package.json +22 -22
- package/components.d.ts +0 -6
- package/components.js +0 -7
- package/dist/exports/components.d.ts +0 -11
- package/dist/exports/components.d.ts.map +0 -1
- package/dist/exports/components.js +0 -12
- package/dist/exports/components.js.map +0 -1
- package/dist/field/features/blocks/component/index.scss +0 -149
- package/dist/field/features/debug/testRecorder/plugin/index.scss +0 -49
- package/dist/field/features/debug/treeView/plugin/index.scss +0 -78
- package/dist/field/features/horizontalRule/plugin/index.scss +0 -20
- package/dist/field/features/link/drawer/index.scss +0 -50
- package/dist/field/features/link/plugins/floatingLinkEditor/index.scss +0 -86
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +0 -14
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss +0 -14
- package/dist/field/features/relationship/nodes/components/index.scss +0 -97
- package/dist/field/features/toolbars/fixed/Toolbar/index.scss +0 -119
- package/dist/field/features/toolbars/inline/Toolbar/index.scss +0 -53
- package/dist/field/features/toolbars/shared/ToolbarButton/index.scss +0 -39
- package/dist/field/features/toolbars/shared/ToolbarDropdown/index.scss +0 -112
- package/dist/field/features/upload/component/index.scss +0 -152
- package/dist/field/index.scss +0 -25
- package/dist/field/lexical/LexicalEditor.scss +0 -49
- package/dist/field/lexical/plugins/SlashMenu/index.scss +0 -61
- package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +0 -31
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +0 -72
- package/dist/field/lexical/theme/EditorTheme.scss +0 -509
- package/dist/field/lexical/ui/ContentEditable.scss +0 -76
- package/dist/scss/app.scss +0 -208
- package/dist/scss/colors.scss +0 -269
- package/dist/scss/queries.scss +0 -27
- package/dist/scss/resets.scss +0 -17
- package/dist/scss/styles.scss +0 -11
- package/dist/scss/svg.scss +0 -10
- package/dist/scss/toasts.scss +0 -111
- package/dist/scss/type.scss +0 -117
- package/dist/scss/vars.scss +0 -213
- package/dist/scss/z-index.scss +0 -9
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
@import '../../../../../scss/styles.scss';
|
|
2
|
-
|
|
3
|
-
.lexical-relationship {
|
|
4
|
-
@extend %body;
|
|
5
|
-
@include shadow-sm;
|
|
6
|
-
padding: calc(var(--base) * 0.75);
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
background: var(--theme-input-bg);
|
|
10
|
-
border: 1px solid var(--theme-elevation-100);
|
|
11
|
-
max-width: calc(var(--base) * 15);
|
|
12
|
-
font-family: var(--font-body);
|
|
13
|
-
margin: 0 0 1.5em;
|
|
14
|
-
|
|
15
|
-
&:hover {
|
|
16
|
-
border: 1px solid var(--theme-elevation-150);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&[data-slate-node='element'] {
|
|
20
|
-
margin: calc(var(--base) * 0.625) 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&__label {
|
|
24
|
-
margin-bottom: calc(var(--base) * 0.25);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&__title {
|
|
28
|
-
margin: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&__label,
|
|
32
|
-
&__title {
|
|
33
|
-
white-space: nowrap;
|
|
34
|
-
text-overflow: ellipsis;
|
|
35
|
-
overflow: hidden;
|
|
36
|
-
line-height: 1 !important;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&__title {
|
|
40
|
-
font-weight: bold;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&__wrap {
|
|
44
|
-
flex-grow: 1;
|
|
45
|
-
overflow: hidden;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&--selected {
|
|
49
|
-
box-shadow: $focus-box-shadow;
|
|
50
|
-
outline: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&__doc-drawer-toggler {
|
|
54
|
-
text-decoration: underline;
|
|
55
|
-
pointer-events: all;
|
|
56
|
-
line-height: inherit;
|
|
57
|
-
& > * {
|
|
58
|
-
margin: 0;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&__swapButton.btn {
|
|
63
|
-
margin: 0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&__doc-drawer-toggler,
|
|
67
|
-
&__swapButton {
|
|
68
|
-
&:disabled {
|
|
69
|
-
color: var(--theme-elevation-300);
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&__actions {
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
flex-shrink: 0;
|
|
78
|
-
margin-left: calc(var(--base) * 0.5);
|
|
79
|
-
|
|
80
|
-
& > *:not(:last-child) {
|
|
81
|
-
margin-right: calc(var(--base) * 0.25);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&__removeButton.btn {
|
|
86
|
-
margin: 0;
|
|
87
|
-
|
|
88
|
-
line {
|
|
89
|
-
stroke-width: $style-stroke-width-m;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&:disabled {
|
|
93
|
-
color: var(--theme-elevation-300);
|
|
94
|
-
pointer-events: none;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
@import '../../../../../scss/styles';
|
|
2
|
-
|
|
3
|
-
html[data-theme='dark'] {
|
|
4
|
-
.fixed-toolbar {
|
|
5
|
-
&__dropdown-items {
|
|
6
|
-
background: var(--theme-elevation-0);
|
|
7
|
-
|
|
8
|
-
.toolbar-popup__dropdown-item {
|
|
9
|
-
color: var(--theme-elevation-900);
|
|
10
|
-
|
|
11
|
-
&:hover:not([disabled]),
|
|
12
|
-
&.active {
|
|
13
|
-
background-color: var(--theme-elevation-100);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.icon {
|
|
17
|
-
color: var(--theme-elevation-600);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.toolbar-popup {
|
|
23
|
-
&__button {
|
|
24
|
-
&.active,
|
|
25
|
-
&:hover:not([disabled]) {
|
|
26
|
-
background-color: var(--theme-elevation-100);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&__dropdown {
|
|
31
|
-
&:hover:not([disabled]) {
|
|
32
|
-
background-color: var(--theme-elevation-100);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-caret:after {
|
|
36
|
-
filter: invert(1);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&-label {
|
|
40
|
-
color: var(--theme-elevation-750);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.fixed-toolbar.fixed-toolbar--hide {
|
|
48
|
-
visibility: hidden; // Still needs to take up space so content does not jump, thus we cannot use display: none
|
|
49
|
-
// make sure you cant interact with it
|
|
50
|
-
pointer-events: none;
|
|
51
|
-
user-select: none;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.fixed-toolbar {
|
|
55
|
-
@include blur-bg(var(--theme-elevation-0));
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-wrap: wrap;
|
|
58
|
-
align-items: center;
|
|
59
|
-
padding: calc(var(--base) / 4);
|
|
60
|
-
vertical-align: middle;
|
|
61
|
-
position: sticky;
|
|
62
|
-
z-index: 2;
|
|
63
|
-
top: var(--doc-controls-height);
|
|
64
|
-
border: $style-stroke-width-s solid var(--theme-elevation-150);
|
|
65
|
-
transform: translateY(1px); // aligns with top bar pixel line when stuck
|
|
66
|
-
|
|
67
|
-
&__group {
|
|
68
|
-
display: flex;
|
|
69
|
-
align-items: center;
|
|
70
|
-
gap: 2px;
|
|
71
|
-
z-index: 1;
|
|
72
|
-
|
|
73
|
-
.icon {
|
|
74
|
-
min-width: 20px;
|
|
75
|
-
height: 20px;
|
|
76
|
-
color: var(--theme-elevation-600);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.divider {
|
|
80
|
-
width: 1px;
|
|
81
|
-
height: 15px;
|
|
82
|
-
background-color: var(--theme-elevation-100);
|
|
83
|
-
margin: 0 6.25px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.toolbar-popup {
|
|
88
|
-
&__dropdown,
|
|
89
|
-
&__button {
|
|
90
|
-
border-radius: 0;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
+ .editor-container {
|
|
95
|
-
> .editor-scroller > .editor {
|
|
96
|
-
> .ContentEditable__root {
|
|
97
|
-
padding-top: calc(var(--base) * 1.25);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
> .editor-placeholder {
|
|
102
|
-
top: calc(var(--base) * 1.25);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
.rich-text-lexical--show-gutter {
|
|
109
|
-
.fixed-toolbar {
|
|
110
|
-
+ .editor-container {
|
|
111
|
-
> .editor-scroller > .editor {
|
|
112
|
-
> .ContentEditable__root::before {
|
|
113
|
-
top: calc(var(--base) * 1.25)!important;
|
|
114
|
-
height: calc(100% - calc(var(--base) * 1.25) - 8px)!important;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
@import '../../../../../scss/styles';
|
|
2
|
-
|
|
3
|
-
html[data-theme='light'] {
|
|
4
|
-
.inline-toolbar-popup {
|
|
5
|
-
@include shadow-m;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.inline-toolbar-popup {
|
|
10
|
-
display: flex;
|
|
11
|
-
align-items: center;
|
|
12
|
-
background: var(--color-base-0);
|
|
13
|
-
padding: 0 3.72px 0 6.25px;
|
|
14
|
-
vertical-align: middle;
|
|
15
|
-
position: absolute;
|
|
16
|
-
top: 0;
|
|
17
|
-
left: 0;
|
|
18
|
-
z-index: 2;
|
|
19
|
-
opacity: 0;
|
|
20
|
-
border-radius: 6.25px;
|
|
21
|
-
transition: opacity 0.2s;
|
|
22
|
-
height: 37.5px;
|
|
23
|
-
will-change: transform;
|
|
24
|
-
|
|
25
|
-
.caret {
|
|
26
|
-
z-index: 93;
|
|
27
|
-
position: absolute;
|
|
28
|
-
top: calc(100% - 16px);
|
|
29
|
-
border: 12px solid transparent;
|
|
30
|
-
pointer-events: none;
|
|
31
|
-
border-top-color: var(--color-base-0);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&__group {
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
gap: 2px;
|
|
38
|
-
|
|
39
|
-
.icon {
|
|
40
|
-
min-width: 20px;
|
|
41
|
-
height: 20px;
|
|
42
|
-
color: var(--color-base-600);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.divider {
|
|
46
|
-
width: 1px;
|
|
47
|
-
height: 15px;
|
|
48
|
-
background-color: var(--color-base-100);
|
|
49
|
-
margin: 0 6.25px;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
@import '../../../../../scss/styles';
|
|
2
|
-
|
|
3
|
-
.toolbar-popup__button {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
vertical-align: middle;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: 30px;
|
|
9
|
-
width: 30px;
|
|
10
|
-
border: 0;
|
|
11
|
-
background: none;
|
|
12
|
-
border-radius: 4px;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
padding: 0;
|
|
15
|
-
|
|
16
|
-
&.spaced {
|
|
17
|
-
margin-right: 2px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.active {
|
|
21
|
-
background-color: var(--color-base-100);
|
|
22
|
-
|
|
23
|
-
.icon {
|
|
24
|
-
opacity: 1;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.disabled {
|
|
29
|
-
cursor: not-allowed;
|
|
30
|
-
|
|
31
|
-
.icon {
|
|
32
|
-
opacity: 0.2;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&:hover:not([disabled]) {
|
|
37
|
-
background-color: var(--color-base-100);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
@import '../../../../../scss/styles';
|
|
2
|
-
|
|
3
|
-
.toolbar-popup__dropdown {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
vertical-align: middle;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: 30px;
|
|
9
|
-
border: 0;
|
|
10
|
-
background: none;
|
|
11
|
-
border-radius: 4px;
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
position: relative;
|
|
14
|
-
padding: 0 10px;
|
|
15
|
-
|
|
16
|
-
&-label {
|
|
17
|
-
color: var(--color-base-600);
|
|
18
|
-
padding: 0 10px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&:disabled {
|
|
22
|
-
cursor: not-allowed;
|
|
23
|
-
|
|
24
|
-
.icon {
|
|
25
|
-
opacity: 0.2;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&:hover:not([disabled]) {
|
|
30
|
-
background-color: var(--color-base-100);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.active {
|
|
34
|
-
background-color: var(--color-base-100);
|
|
35
|
-
|
|
36
|
-
.toolbar-popup__dropdown-caret {
|
|
37
|
-
&:after {
|
|
38
|
-
transform: rotate(0deg);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
&-caret {
|
|
44
|
-
&:after {
|
|
45
|
-
transform: rotate(180deg);
|
|
46
|
-
|
|
47
|
-
content: ' ';
|
|
48
|
-
position: absolute;
|
|
49
|
-
top: 13px;
|
|
50
|
-
|
|
51
|
-
/* Vector 3 */
|
|
52
|
-
|
|
53
|
-
width: 7px;
|
|
54
|
-
height: 4px;
|
|
55
|
-
|
|
56
|
-
opacity: 0.3;
|
|
57
|
-
background-image: url(../../../../lexical/ui/icons/Caret/index.svg);
|
|
58
|
-
background-position-y: 0;
|
|
59
|
-
background-position-x: 0;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&-items {
|
|
64
|
-
position: absolute;
|
|
65
|
-
background: var(--color-base-0);
|
|
66
|
-
border-radius: 4px;
|
|
67
|
-
min-width: 132.5px;
|
|
68
|
-
max-width: 200px;
|
|
69
|
-
z-index: 100;
|
|
70
|
-
|
|
71
|
-
.toolbar-popup__dropdown-item {
|
|
72
|
-
all: unset; // reset all default button styles
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
color: var(--color-base-900);
|
|
75
|
-
|
|
76
|
-
.text {
|
|
77
|
-
overflow: hidden;
|
|
78
|
-
white-space: nowrap;
|
|
79
|
-
text-overflow: ellipsis;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&:hover:not([disabled]), &.active {
|
|
83
|
-
background-color: var(--color-base-100);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
padding-left: 6.25px;
|
|
87
|
-
padding-right: 6.25px;
|
|
88
|
-
width: 100%;
|
|
89
|
-
height: 30px;
|
|
90
|
-
border-radius: 4px;
|
|
91
|
-
box-sizing: border-box;
|
|
92
|
-
display: flex;
|
|
93
|
-
align-items: center;
|
|
94
|
-
gap: 6.25px;
|
|
95
|
-
|
|
96
|
-
.icon {
|
|
97
|
-
min-width: 20px;
|
|
98
|
-
height: 20px;
|
|
99
|
-
color: var(--color-base-600);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
html[data-theme='light'] {
|
|
106
|
-
.toolbar-popup__dropdown {
|
|
107
|
-
&-items {
|
|
108
|
-
position: absolute;
|
|
109
|
-
@include shadow-m;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
@import '../../../../scss/styles.scss';
|
|
2
|
-
|
|
3
|
-
.lexical-upload {
|
|
4
|
-
@extend %body;
|
|
5
|
-
@include shadow-sm;
|
|
6
|
-
max-width: calc(var(--base) * 15);
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
background: var(--theme-input-bg);
|
|
10
|
-
border: 1px solid var(--theme-elevation-100);
|
|
11
|
-
position: relative;
|
|
12
|
-
font-family: var(--font-body);
|
|
13
|
-
margin: 0 0 1.5em;
|
|
14
|
-
|
|
15
|
-
.btn {
|
|
16
|
-
margin: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:hover {
|
|
20
|
-
border: 1px solid var(--theme-elevation-150);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&[data-slate-node='element'] {
|
|
24
|
-
margin: calc(var(--base) * 0.625) 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&__card {
|
|
28
|
-
@include soft-shadow-bottom;
|
|
29
|
-
display: flex;
|
|
30
|
-
flex-direction: column;
|
|
31
|
-
width: 100%;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&__topRow {
|
|
35
|
-
display: flex;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&__thumbnail {
|
|
39
|
-
width: calc(var(--base) * 3.25);
|
|
40
|
-
height: auto;
|
|
41
|
-
position: relative;
|
|
42
|
-
overflow: hidden;
|
|
43
|
-
flex-shrink: 0;
|
|
44
|
-
|
|
45
|
-
img,
|
|
46
|
-
svg {
|
|
47
|
-
position: absolute;
|
|
48
|
-
object-fit: cover;
|
|
49
|
-
width: 100%;
|
|
50
|
-
height: 100%;
|
|
51
|
-
background-color: var(--theme-elevation-800);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&__topRowRightPanel {
|
|
56
|
-
flex-grow: 1;
|
|
57
|
-
display: flex;
|
|
58
|
-
align-items: center;
|
|
59
|
-
padding: calc(var(--base) * 0.75);
|
|
60
|
-
justify-content: space-between;
|
|
61
|
-
max-width: calc(100% - #{calc(var(--base) * 3.25)});
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&__actions {
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
flex-shrink: 0;
|
|
68
|
-
margin-left: calc(var(--base) * 0.5);
|
|
69
|
-
|
|
70
|
-
.lexical-upload__doc-drawer-toggler {
|
|
71
|
-
pointer-events: all;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
& > *:not(:last-child) {
|
|
75
|
-
margin-right: calc(var(--base) * 0.25);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&__removeButton {
|
|
80
|
-
margin: 0;
|
|
81
|
-
|
|
82
|
-
line {
|
|
83
|
-
stroke-width: $style-stroke-width-m;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&:disabled {
|
|
87
|
-
color: var(--theme-elevation-300);
|
|
88
|
-
pointer-events: none;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
&__upload-drawer-toggler {
|
|
93
|
-
background-color: transparent;
|
|
94
|
-
border: none;
|
|
95
|
-
padding: 0;
|
|
96
|
-
margin: 0;
|
|
97
|
-
outline: none;
|
|
98
|
-
line-height: inherit;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&__doc-drawer-toggler {
|
|
102
|
-
text-decoration: underline;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&__doc-drawer-toggler,
|
|
106
|
-
&__list-drawer-toggler,
|
|
107
|
-
&__upload-drawer-toggler {
|
|
108
|
-
& > * {
|
|
109
|
-
margin: 0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
&:disabled {
|
|
113
|
-
color: var(--theme-elevation-300);
|
|
114
|
-
pointer-events: none;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
&__collectionLabel {
|
|
119
|
-
overflow: hidden;
|
|
120
|
-
text-overflow: ellipsis;
|
|
121
|
-
white-space: nowrap;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
&__bottomRow {
|
|
125
|
-
padding: calc(var(--base) * 0.5);
|
|
126
|
-
border-top: 1px solid var(--theme-elevation-100);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
h5 {
|
|
130
|
-
white-space: nowrap;
|
|
131
|
-
text-overflow: ellipsis;
|
|
132
|
-
overflow: hidden;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
&__wrap {
|
|
136
|
-
padding: calc(var(--base) * 0.5) calc(var(--base) * 0.5) calc(var(--base) * 0.5) var(--base);
|
|
137
|
-
text-align: left;
|
|
138
|
-
overflow: hidden;
|
|
139
|
-
text-overflow: ellipsis;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&--selected {
|
|
143
|
-
box-shadow: $focus-box-shadow;
|
|
144
|
-
outline: none;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
@include small-break {
|
|
148
|
-
&__topRowRightPanel {
|
|
149
|
-
padding: calc(var(--base) * 0.75) calc(var(--base) * 0.5);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
}
|
package/dist/field/index.scss
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
@import '../scss/styles.scss';
|
|
2
|
-
|
|
3
|
-
.rich-text-lexical {
|
|
4
|
-
.errorBoundary {
|
|
5
|
-
pre {
|
|
6
|
-
text-wrap: unset;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&__wrap {
|
|
11
|
-
width: 100%;
|
|
12
|
-
position: relative;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&--read-only {
|
|
16
|
-
.editor-container {
|
|
17
|
-
.editor {
|
|
18
|
-
background: var(--theme-elevation-200);
|
|
19
|
-
color: var(--theme-elevation-450);
|
|
20
|
-
padding: calc(var(--base) * 0.5);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
@import '../../scss/styles';
|
|
2
|
-
|
|
3
|
-
.rich-text-lexical {
|
|
4
|
-
.editor {
|
|
5
|
-
position: relative;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.editor-container {
|
|
9
|
-
position: relative;
|
|
10
|
-
|
|
11
|
-
font-family: var(--font-serif);
|
|
12
|
-
font-size: calc(var(--base) * 0.625);
|
|
13
|
-
|
|
14
|
-
h1,
|
|
15
|
-
h2,
|
|
16
|
-
h3,
|
|
17
|
-
h4,
|
|
18
|
-
h5,
|
|
19
|
-
h6 {
|
|
20
|
-
font-family: var(--font-body);
|
|
21
|
-
line-height: 1.125;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&--show-gutter {
|
|
26
|
-
> .rich-text-lexical__wrap > .editor-container > .editor-placeholder {
|
|
27
|
-
left: 3rem;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&:not(&--show-gutter) > .rich-text-lexical__wrap > .editor-container > .editor-placeholder {
|
|
32
|
-
left: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.editor-placeholder {
|
|
36
|
-
position: absolute;
|
|
37
|
-
top: 8px;
|
|
38
|
-
font-size: 15px;
|
|
39
|
-
color: var(--theme-elevation-500);
|
|
40
|
-
/* Prevent text selection */
|
|
41
|
-
user-select: none;
|
|
42
|
-
-webkit-user-select: none;
|
|
43
|
-
-moz-user-select: none;
|
|
44
|
-
-ms-user-select: none;
|
|
45
|
-
|
|
46
|
-
/* Make it behave more like a background element (no interaction) */
|
|
47
|
-
pointer-events: none;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
@import '../../../../scss/styles.scss';
|
|
2
|
-
|
|
3
|
-
html[data-theme='light'] {
|
|
4
|
-
.slash-menu-popup {
|
|
5
|
-
@include shadow-m;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.slash-menu-popup {
|
|
10
|
-
background: var(--color-base-0);
|
|
11
|
-
width: 200px;
|
|
12
|
-
color: var(--color-base-800);
|
|
13
|
-
border-radius: 4px;
|
|
14
|
-
list-style: none;
|
|
15
|
-
font-family: var(--font-body);
|
|
16
|
-
max-height: 300px;
|
|
17
|
-
overflow-y: auto;
|
|
18
|
-
z-index: 10;
|
|
19
|
-
position: absolute;
|
|
20
|
-
|
|
21
|
-
&__group {
|
|
22
|
-
padding-bottom: 8px;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&__group-title {
|
|
26
|
-
padding-left: 10px;
|
|
27
|
-
color: var(--color-base-600);
|
|
28
|
-
font-size: 10px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&__item {
|
|
32
|
-
all: unset;
|
|
33
|
-
padding-left: 12px;
|
|
34
|
-
font-size: 13px;
|
|
35
|
-
box-sizing: border-box;
|
|
36
|
-
background: none;
|
|
37
|
-
border: none;
|
|
38
|
-
color: var(--color-base-900);
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
height: 30px;
|
|
42
|
-
width: 100%;
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
|
|
45
|
-
&--selected {
|
|
46
|
-
background: var(--color-base-100);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&-text {
|
|
50
|
-
margin-left: 6px;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
white-space: nowrap;
|
|
53
|
-
text-overflow: ellipsis;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.icon {
|
|
57
|
-
color: var(--color-base-500);
|
|
58
|
-
min-width: fit-content;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|