@pareto-engineering/design-system 4.0.0-alpha.77 → 4.0.0-alpha.79
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/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +1 -1
- package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +1 -1
- package/dist/cjs/a/AppContext/Context.js +1 -1
- package/dist/cjs/a/AppContext/ContextProvider.js +1 -1
- package/dist/cjs/a/BlurOverlay/BlurOverlay.js +1 -1
- package/dist/cjs/a/ContentTree/ContentTree.js +1 -1
- package/dist/cjs/a/ContentTree/common/Tree/Tree.js +1 -1
- package/dist/cjs/a/Conversation/Context.js +1 -1
- package/dist/cjs/a/Conversation/Conversation.js +1 -1
- package/dist/cjs/a/Conversation/common/Message/Message.js +1 -1
- package/dist/cjs/a/DatePicker/DatePicker.js +1 -1
- package/dist/cjs/a/DotInfo/DotInfo.js +1 -1
- package/dist/cjs/a/Figure/Figure.js +1 -1
- package/dist/cjs/a/HamburgerButton/HamburgerButton.js +1 -1
- package/dist/cjs/a/IconList/IconList.js +1 -1
- package/dist/cjs/a/IconList/common/Item/Item.js +1 -1
- package/dist/cjs/a/Label/Label.js +1 -1
- package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
- package/dist/cjs/a/MetaCard/MetaCard.js +1 -1
- package/dist/cjs/a/People/People.js +1 -1
- package/dist/cjs/a/People/common/Person/Person.js +1 -1
- package/dist/cjs/a/People/styles.scss +1 -1
- package/dist/cjs/a/Popover/Popover.js +1 -1
- package/dist/cjs/a/ProgressBar/ProgressBar.js +1 -1
- package/dist/cjs/a/Quote/Quote.js +16 -6
- package/dist/cjs/a/Quote/styles.scss +16 -37
- package/dist/cjs/a/Removable/Removable.js +1 -1
- package/dist/cjs/a/SVG/SVG.js +1 -1
- package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +1 -1
- package/dist/cjs/a/SnapScroller/SnapScroller.js +1 -1
- package/dist/cjs/a/Spinner/Spinner.js +1 -1
- package/dist/cjs/a/TextSteps/TextSteps.js +1 -1
- package/dist/cjs/a/Timestamp/Timestamp.js +1 -1
- package/dist/cjs/a/Tip/Tip.js +1 -1
- package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +1 -1
- package/dist/cjs/a/Tooltip/Tooltip.js +71 -0
- package/dist/cjs/a/{LexicalPreview → Tooltip}/index.js +3 -3
- package/dist/cjs/a/Tooltip/styles.scss +56 -0
- package/dist/cjs/a/XMLEditor/XMLEditor.js +1 -1
- package/dist/cjs/a/index.js +8 -8
- package/dist/cjs/b/Button/Button.js +1 -1
- package/dist/cjs/b/Button/common/Group/Group.js +1 -1
- package/dist/cjs/b/Card/Card.js +1 -1
- package/dist/cjs/b/Card/common/Group/Group.js +1 -1
- package/dist/cjs/b/Card/common/Section/Section.js +1 -1
- package/dist/cjs/b/Logo/Logo.js +1 -1
- package/dist/cjs/b/Page/Context.js +1 -1
- package/dist/cjs/b/Page/Page.js +1 -1
- package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +5 -2
- package/dist/cjs/b/Page/common/Section/Section.js +1 -1
- package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +1 -1
- package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
- package/dist/cjs/b/Title/Title.js +1 -1
- package/dist/cjs/b/index.js +1 -8
- package/dist/cjs/c/Modal/Modal.js +1 -1
- package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
- package/dist/cjs/c/Shortener/Shortener.js +1 -1
- package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -1
- package/dist/cjs/f/FormInput/FormInput.js +1 -1
- package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
- package/dist/cjs/f/common/Description/Description.js +1 -1
- package/dist/cjs/f/common/Label/Label.js +1 -1
- package/dist/cjs/f/fields/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
- package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +1 -1
- package/dist/cjs/f/fields/EditorInput/EditorInput.js +37 -12
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +256 -0
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +94 -0
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +94 -0
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +295 -0
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/index.js +13 -0
- package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
- package/dist/cjs/f/fields/EditorInput/common/index.js +24 -3
- package/dist/cjs/f/fields/EditorInput/styles.scss +116 -25
- package/dist/cjs/f/fields/LinkInput/LinkInput.js +1 -1
- package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +1 -1
- package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +1 -1
- package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +1 -1
- package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +1 -1
- package/dist/cjs/f/fields/SelectInput/SelectInput.js +10 -3
- package/dist/cjs/f/fields/SelectInput/common/Menu/Menu.js +1 -1
- package/dist/cjs/f/fields/SelectInput/common/Multiple/Multiple.js +1 -1
- package/dist/cjs/f/fields/SelectInput/common/Single/Single.js +14 -3
- package/dist/cjs/f/fields/SelectInput/styles.scss +1 -1
- package/dist/cjs/f/fields/TextInput/TextInput.js +1 -1
- package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
- package/dist/cjs/{b → g}/ExpandableLexicalPreview/ExpandableLexicalPreview.js +28 -43
- package/dist/cjs/{b → g}/ExpandableLexicalPreview/common/ExpandButton/ExpandButton.js +7 -8
- package/dist/cjs/g/ExpandableLexicalPreview/styles.scss +34 -0
- package/dist/cjs/g/index.js +12 -0
- package/dist/cjs/index.js +11 -0
- package/dist/cjs/test/QueryLoader/QueryLoader.js +1 -1
- package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +1 -1
- package/dist/cjs/utils/hooks/index.js +7 -0
- package/dist/cjs/utils/hooks/useOutsideClick.js +25 -0
- package/dist/cjs/utils/index.js +6 -0
- package/dist/es/a/People/styles.scss +1 -1
- package/dist/es/a/Quote/Quote.js +15 -5
- package/dist/es/a/Quote/styles.scss +16 -37
- package/dist/es/a/Tooltip/Tooltip.js +59 -0
- package/dist/es/a/Tooltip/index.js +2 -0
- package/dist/es/a/Tooltip/styles.scss +56 -0
- package/dist/es/a/index.js +2 -2
- package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +4 -1
- package/dist/es/b/index.js +1 -2
- package/dist/es/f/fields/EditorInput/EditorInput.js +35 -11
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +246 -0
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/index.js +2 -0
- package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
- package/dist/es/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +83 -0
- package/dist/es/f/fields/EditorInput/common/ColorPicker/index.js +2 -0
- package/dist/es/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +81 -0
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/index.js +2 -0
- package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +283 -0
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/index.js +2 -0
- package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
- package/dist/es/f/fields/EditorInput/common/index.js +5 -2
- package/dist/es/f/fields/EditorInput/styles.scss +116 -25
- package/dist/es/f/fields/SelectInput/SelectInput.js +9 -2
- package/dist/es/f/fields/SelectInput/common/Single/Single.js +12 -1
- package/dist/es/f/fields/SelectInput/styles.scss +1 -1
- package/dist/es/{b → g}/ExpandableLexicalPreview/ExpandableLexicalPreview.js +29 -45
- package/dist/es/{b → g}/ExpandableLexicalPreview/common/ExpandButton/ExpandButton.js +18 -21
- package/dist/es/g/ExpandableLexicalPreview/styles.scss +34 -0
- package/dist/es/g/index.js +1 -0
- package/dist/es/index.js +1 -0
- package/dist/es/utils/hooks/index.js +2 -1
- package/dist/es/utils/hooks/useOutsideClick.js +19 -0
- package/dist/es/utils/index.js +1 -1
- package/package.json +14 -6
- package/src/stories/a/Quote.stories.jsx +30 -10
- package/src/stories/a/Tooltip.stories.jsx +80 -0
- package/src/stories/a/XMLEditor.stories.jsx +6 -1
- package/src/stories/f/SelectInput.stories.jsx +18 -2
- package/src/stories/{b → g}/ExpandableLexicalPreview.stories.jsx +2 -1
- package/src/ui/a/People/styles.scss +1 -1
- package/src/ui/a/Quote/Quote.jsx +16 -9
- package/src/ui/a/Quote/styles.scss +16 -37
- package/src/ui/a/Tooltip/Tooltip.jsx +83 -0
- package/src/ui/a/Tooltip/index.js +2 -0
- package/src/ui/a/Tooltip/styles.scss +56 -0
- package/src/ui/a/index.js +1 -1
- package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +6 -0
- package/src/ui/b/index.js +0 -1
- package/src/ui/f/fields/EditorInput/EditorInput.jsx +35 -5
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.jsx +292 -0
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +2 -0
- package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
- package/src/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.jsx +110 -0
- package/src/ui/f/fields/EditorInput/common/ColorPicker/index.js +2 -0
- package/src/ui/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.jsx +134 -0
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +2 -0
- package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.jsx +431 -0
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +2 -0
- package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
- package/src/ui/f/fields/EditorInput/common/index.js +6 -0
- package/src/ui/f/fields/EditorInput/styles.scss +116 -25
- package/src/ui/f/fields/SelectInput/SelectInput.jsx +10 -2
- package/src/ui/f/fields/SelectInput/common/Single/Single.jsx +13 -1
- package/src/ui/f/fields/SelectInput/styles.scss +1 -1
- package/src/ui/{b → g}/ExpandableLexicalPreview/ExpandableLexicalPreview.jsx +43 -56
- package/src/ui/{b → g}/ExpandableLexicalPreview/common/ExpandButton/ExpandButton.jsx +32 -36
- package/src/ui/g/ExpandableLexicalPreview/styles.scss +34 -0
- package/src/ui/g/index.js +1 -0
- package/src/ui/index.js +1 -0
- package/src/ui/utils/hooks/index.js +1 -0
- package/src/ui/utils/hooks/useOutsideClick.js +23 -0
- package/src/ui/utils/index.js +1 -1
- package/tests/__snapshots__/Storyshots.test.js.snap +914 -433
- package/tests/mockResizeObserver.js +9 -0
- package/tests/test-setup.js +3 -0
- package/dist/cjs/a/LexicalPreview/LexicalPreview.js +0 -90
- package/dist/cjs/a/LexicalPreview/styles.scss +0 -46
- package/dist/cjs/b/ExpandableLexicalPreview/styles.scss +0 -84
- package/dist/cjs/f/fields/EditorInput/common/Toolbar.js +0 -257
- package/dist/es/a/LexicalPreview/LexicalPreview.js +0 -80
- package/dist/es/a/LexicalPreview/index.js +0 -2
- package/dist/es/a/LexicalPreview/styles.scss +0 -46
- package/dist/es/b/ExpandableLexicalPreview/styles.scss +0 -84
- package/dist/es/f/fields/EditorInput/common/Toolbar.js +0 -246
- package/src/stories/a/LexicalPreview.stories.jsx +0 -28
- package/src/ui/a/LexicalPreview/LexicalPreview.jsx +0 -109
- package/src/ui/a/LexicalPreview/index.js +0 -2
- package/src/ui/a/LexicalPreview/styles.scss +0 -46
- package/src/ui/b/ExpandableLexicalPreview/styles.scss +0 -84
- package/src/ui/f/fields/EditorInput/common/Toolbar.jsx +0 -356
- package/src/ui/f/fields/EditorInput/common/index.jsx +0 -3
- /package/dist/cjs/{b → g}/ExpandableLexicalPreview/common/ExpandButton/index.js +0 -0
- /package/dist/cjs/{b → g}/ExpandableLexicalPreview/common/index.js +0 -0
- /package/dist/cjs/{b → g}/ExpandableLexicalPreview/index.js +0 -0
- /package/dist/es/{b → g}/ExpandableLexicalPreview/common/ExpandButton/index.js +0 -0
- /package/dist/es/{b → g}/ExpandableLexicalPreview/common/index.js +0 -0
- /package/dist/es/{b → g}/ExpandableLexicalPreview/index.js +0 -0
- /package/src/ui/{b → g}/ExpandableLexicalPreview/common/ExpandButton/index.js +0 -0
- /package/src/ui/{b → g}/ExpandableLexicalPreview/common/index.js +0 -0
- /package/src/ui/{b → g}/ExpandableLexicalPreview/index.js +0 -0
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
/* stylelint-disable max-nesting-depth -- required */
|
|
3
|
-
|
|
4
|
-
@use "@pareto-engineering/bem";
|
|
5
|
-
@use "@pareto-engineering/styles/src/mixins";
|
|
6
|
-
@use "@pareto-engineering/styles/src/globals" as *;
|
|
7
|
-
|
|
8
|
-
.#{bem.$base}.expandable-lexical-preview {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
flex-wrap: wrap;
|
|
12
|
-
gap: var(--gap);
|
|
13
|
-
width: 100%;
|
|
14
|
-
|
|
15
|
-
&.collapsed {
|
|
16
|
-
flex-direction: row;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
> .title {
|
|
20
|
-
margin: 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
> .#{bem.$base}.button {
|
|
25
|
-
align-items: center;
|
|
26
|
-
border: 1px solid var(--outline-inputs);
|
|
27
|
-
display: flex;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
> .lexical-content {
|
|
31
|
-
position: relative;
|
|
32
|
-
|
|
33
|
-
> .content-editable {
|
|
34
|
-
background: var(--background-inputs);
|
|
35
|
-
border: 1px solid var(--outline-inputs);
|
|
36
|
-
border-radius: var(--theme-default-border-radius);
|
|
37
|
-
color: var(--y);
|
|
38
|
-
overflow: auto;
|
|
39
|
-
padding: var(--gap);
|
|
40
|
-
resize: var(--resize);
|
|
41
|
-
|
|
42
|
-
li:has(ol, ul) {
|
|
43
|
-
list-style-type: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
p,
|
|
47
|
-
span,
|
|
48
|
-
strong,
|
|
49
|
-
em,
|
|
50
|
-
li {
|
|
51
|
-
&.underlined {
|
|
52
|
-
text-decoration: underline;
|
|
53
|
-
|
|
54
|
-
&.strikethrough {
|
|
55
|
-
text-decoration: underline line-through;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&.strikethrough {
|
|
60
|
-
text-decoration: line-through;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.italic {
|
|
64
|
-
font-style: italic;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:first-child {
|
|
69
|
-
margin-top: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&::placeholder {
|
|
73
|
-
color: var(--metadata);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
> .#{bem.$base}.expand-button {
|
|
78
|
-
border: 1px solid var(--outline-inputs);
|
|
79
|
-
position: absolute;
|
|
80
|
-
right: 1em;
|
|
81
|
-
top: 1em;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
/* eslint-disable import/no-extraneous-dependencies -- required here */
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { useEffect, useState, useCallback, useRef } from 'react';
|
|
4
|
-
import { $getSelection, $isRangeSelection, FORMAT_TEXT_COMMAND, FORMAT_ELEMENT_COMMAND, UNDO_COMMAND, REDO_COMMAND, COMMAND_PRIORITY_NORMAL, createCommand } from 'lexical';
|
|
5
|
-
import { INSERT_ORDERED_LIST_COMMAND, INSERT_UNORDERED_LIST_COMMAND, REMOVE_LIST_COMMAND, $isListNode, ListNode } from '@lexical/list';
|
|
6
|
-
import { $isAtNodeEnd } from '@lexical/selection';
|
|
7
|
-
import { $isLinkNode, TOGGLE_LINK_COMMAND } from '@lexical/link';
|
|
8
|
-
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
9
|
-
import { mergeRegister, $getNearestNodeOfType } from '@lexical/utils';
|
|
10
|
-
import { Popover } from "../../../..";
|
|
11
|
-
import styleNames from '@pareto-engineering/bem/exports';
|
|
12
|
-
const baseClassName = styleNames.base;
|
|
13
|
-
const componentClassName = 'toolbar';
|
|
14
|
-
const getSelectedNode = selection => {
|
|
15
|
-
const {
|
|
16
|
-
anchor,
|
|
17
|
-
focus
|
|
18
|
-
} = selection;
|
|
19
|
-
const anchorNode = selection.anchor.getNode();
|
|
20
|
-
const focusNode = selection.focus.getNode();
|
|
21
|
-
if (anchorNode === focusNode) {
|
|
22
|
-
return anchorNode;
|
|
23
|
-
}
|
|
24
|
-
const isBackward = selection.isBackward();
|
|
25
|
-
if (isBackward) {
|
|
26
|
-
return $isAtNodeEnd(focus) ? anchorNode : focusNode;
|
|
27
|
-
}
|
|
28
|
-
return $isAtNodeEnd(anchor) ? focusNode : anchorNode;
|
|
29
|
-
};
|
|
30
|
-
const defaultColor = 'var(--paragraph)';
|
|
31
|
-
const colorOptions = ['red', 'blue', 'green', 'yellow', 'orange', 'purple', 'pink', 'brown'];
|
|
32
|
-
const Toolbar = () => {
|
|
33
|
-
const [editor] = useLexicalComposerContext();
|
|
34
|
-
const [isBold, setIsBold] = useState(false);
|
|
35
|
-
const [isItalic, setIsItalic] = useState(false);
|
|
36
|
-
const [isStrikethrough, setIsStrikethrough] = useState(false);
|
|
37
|
-
const [blockType, setBlockType] = useState('paragraph');
|
|
38
|
-
const [isLink, setIsLink] = useState(false);
|
|
39
|
-
const [isUnderline, setIsUnderline] = useState(false);
|
|
40
|
-
const [color, setColor] = useState(defaultColor);
|
|
41
|
-
const colorMenuRef = useRef(false);
|
|
42
|
-
const formatBulletList = () => {
|
|
43
|
-
if (blockType !== 'ul') {
|
|
44
|
-
editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND);
|
|
45
|
-
} else {
|
|
46
|
-
editor.dispatchCommand(REMOVE_LIST_COMMAND);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
const formatNumberedList = () => {
|
|
50
|
-
if (blockType !== 'ol') {
|
|
51
|
-
editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND);
|
|
52
|
-
} else {
|
|
53
|
-
editor.dispatchCommand(REMOVE_LIST_COMMAND);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
const formatLink = useCallback(() => {
|
|
57
|
-
if (!isLink) {
|
|
58
|
-
// eslint-disable-next-line no-alert
|
|
59
|
-
const path = prompt('Enter the full URL. Ex: https://www.example.com');
|
|
60
|
-
editor.dispatchCommand(TOGGLE_LINK_COMMAND, path);
|
|
61
|
-
} else {
|
|
62
|
-
editor.dispatchCommand(TOGGLE_LINK_COMMAND, null);
|
|
63
|
-
}
|
|
64
|
-
}, [editor, isLink]);
|
|
65
|
-
const updateToolbar = useCallback(() => {
|
|
66
|
-
const selection = $getSelection();
|
|
67
|
-
|
|
68
|
-
// Check list selection
|
|
69
|
-
if ($isRangeSelection(selection)) {
|
|
70
|
-
const anchorNode = selection.anchor.getNode();
|
|
71
|
-
const element = anchorNode.getKey() === 'root' ? anchorNode : anchorNode.getTopLevelElementOrThrow();
|
|
72
|
-
if ($isListNode(element)) {
|
|
73
|
-
const parentList = $getNearestNodeOfType(anchorNode, ListNode);
|
|
74
|
-
const type = parentList ? parentList.getTag() : element.getTag();
|
|
75
|
-
setBlockType(type);
|
|
76
|
-
} else {
|
|
77
|
-
setBlockType(element);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Check nodes for color
|
|
81
|
-
const nodes = selection.getNodes().filter(node => node.getType() === 'text');
|
|
82
|
-
nodes.forEach(node => {
|
|
83
|
-
const style = node.getStyle();
|
|
84
|
-
const colorProperty = style.match(/color: ([^;]+)/);
|
|
85
|
-
if (colorProperty) {
|
|
86
|
-
setColor(colorProperty[1]);
|
|
87
|
-
return;
|
|
88
|
-
}
|
|
89
|
-
setColor(false);
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
// Check selection text styles
|
|
93
|
-
setIsBold(selection.hasFormat('bold'));
|
|
94
|
-
setIsItalic(selection.hasFormat('italic'));
|
|
95
|
-
setIsStrikethrough(selection.hasFormat('strikethrough'));
|
|
96
|
-
setIsUnderline(selection.hasFormat('underline'));
|
|
97
|
-
setIsLink(selection.hasFormat('link'));
|
|
98
|
-
|
|
99
|
-
// Check links
|
|
100
|
-
const node = getSelectedNode(selection);
|
|
101
|
-
const parent = node.getParent();
|
|
102
|
-
if ($isLinkNode(parent) || $isLinkNode(node)) {
|
|
103
|
-
setIsLink(true);
|
|
104
|
-
} else {
|
|
105
|
-
setIsLink(false);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}, [editor]);
|
|
109
|
-
const UPDATE_COLOR_COMMAND = createCommand();
|
|
110
|
-
editor.registerCommand(UPDATE_COLOR_COMMAND, payload => {
|
|
111
|
-
const selection = $getSelection();
|
|
112
|
-
const nodes = selection?.extract().filter(node => node.getType() === 'text');
|
|
113
|
-
nodes?.forEach(node => {
|
|
114
|
-
const style = node.getStyle();
|
|
115
|
-
const colorProperty = style?.match(/color: ([^;]+)/);
|
|
116
|
-
if (colorProperty && color !== payload) {
|
|
117
|
-
node.setStyle(style.replace(colorProperty[0], `color: ${payload}`));
|
|
118
|
-
} else if (colorProperty) {
|
|
119
|
-
node.setStyle(`color: ${defaultColor}`);
|
|
120
|
-
} else {
|
|
121
|
-
node.setStyle(`color: ${payload}`);
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
}, COMMAND_PRIORITY_NORMAL);
|
|
125
|
-
useEffect(() => mergeRegister(editor.registerUpdateListener(({
|
|
126
|
-
editorState
|
|
127
|
-
}) => {
|
|
128
|
-
editorState.read(() => {
|
|
129
|
-
updateToolbar();
|
|
130
|
-
});
|
|
131
|
-
})), [updateToolbar, editor]);
|
|
132
|
-
const dispatchUpdateColor = useCallback((e, payload) => {
|
|
133
|
-
e.stopPropagation();
|
|
134
|
-
editor.dispatchCommand(UPDATE_COLOR_COMMAND, payload);
|
|
135
|
-
}, [editor]);
|
|
136
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
137
|
-
className: `${baseClassName} ${componentClassName}`
|
|
138
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
139
|
-
className: "group"
|
|
140
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
141
|
-
type: "button",
|
|
142
|
-
className: isBold ? 'active' : undefined,
|
|
143
|
-
onClick: () => editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'bold')
|
|
144
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
145
|
-
className: "icon"
|
|
146
|
-
}, "|")), /*#__PURE__*/React.createElement("button", {
|
|
147
|
-
type: "button",
|
|
148
|
-
className: isItalic ? 'active' : undefined,
|
|
149
|
-
onClick: () => editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'italic')
|
|
150
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
151
|
-
className: "icon"
|
|
152
|
-
}, "}")), /*#__PURE__*/React.createElement("button", {
|
|
153
|
-
type: "button",
|
|
154
|
-
className: isUnderline ? 'active' : undefined,
|
|
155
|
-
onClick: () => editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'underline')
|
|
156
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
157
|
-
className: "icon"
|
|
158
|
-
}, "~")), /*#__PURE__*/React.createElement("button", {
|
|
159
|
-
type: "button",
|
|
160
|
-
className: isStrikethrough ? 'active' : undefined,
|
|
161
|
-
onClick: () => editor.dispatchCommand(FORMAT_TEXT_COMMAND, 'strikethrough')
|
|
162
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
163
|
-
className: "icon"
|
|
164
|
-
}, "?")), /*#__PURE__*/React.createElement("button", {
|
|
165
|
-
type: "button",
|
|
166
|
-
className: color && color !== defaultColor ? 'active color-menu-button' : 'color-menu-button',
|
|
167
|
-
onClick: () => editor.dispatchCommand(UPDATE_COLOR_COMMAND, color !== defaultColor ? defaultColor : color),
|
|
168
|
-
ref: colorMenuRef,
|
|
169
|
-
style: {
|
|
170
|
-
position: 'relative'
|
|
171
|
-
}
|
|
172
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
173
|
-
className: "icon",
|
|
174
|
-
style: {
|
|
175
|
-
color
|
|
176
|
-
}
|
|
177
|
-
}, "Q"), /*#__PURE__*/React.createElement(Popover, {
|
|
178
|
-
parentRef: colorMenuRef
|
|
179
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
180
|
-
className: "color-menu"
|
|
181
|
-
}, colorOptions.map(option => /*#__PURE__*/React.createElement("span", {
|
|
182
|
-
role: "button",
|
|
183
|
-
className: "icon color-option",
|
|
184
|
-
style: {
|
|
185
|
-
color: option
|
|
186
|
-
},
|
|
187
|
-
onClick: e => dispatchUpdateColor(e, option),
|
|
188
|
-
onKeyDown: e => dispatchUpdateColor(e, option),
|
|
189
|
-
tabIndex: 0,
|
|
190
|
-
key: option
|
|
191
|
-
}, "o"))))), /*#__PURE__*/React.createElement("button", {
|
|
192
|
-
type: "button",
|
|
193
|
-
className: isLink ? 'active' : undefined,
|
|
194
|
-
onClick: () => formatLink()
|
|
195
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
196
|
-
className: "icon"
|
|
197
|
-
}, "]")), /*#__PURE__*/React.createElement("button", {
|
|
198
|
-
type: "button",
|
|
199
|
-
className: blockType === 'ul' ? 'active' : undefined,
|
|
200
|
-
onClick: () => formatBulletList()
|
|
201
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
202
|
-
className: "icon"
|
|
203
|
-
}, ".")), /*#__PURE__*/React.createElement("button", {
|
|
204
|
-
type: "button",
|
|
205
|
-
className: blockType === 'ol' ? 'active' : undefined,
|
|
206
|
-
onClick: () => formatNumberedList()
|
|
207
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
208
|
-
className: "icon"
|
|
209
|
-
}, "-"))), /*#__PURE__*/React.createElement("div", {
|
|
210
|
-
className: "group"
|
|
211
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
212
|
-
type: "button",
|
|
213
|
-
onClick: () => editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, 'left')
|
|
214
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
215
|
-
className: "icon"
|
|
216
|
-
}, "^")), /*#__PURE__*/React.createElement("button", {
|
|
217
|
-
type: "button",
|
|
218
|
-
onClick: () => editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, 'center')
|
|
219
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
220
|
-
className: "icon"
|
|
221
|
-
}, "_")), /*#__PURE__*/React.createElement("button", {
|
|
222
|
-
type: "button",
|
|
223
|
-
onClick: () => editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, 'right')
|
|
224
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
225
|
-
className: "icon"
|
|
226
|
-
}, "`")), /*#__PURE__*/React.createElement("button", {
|
|
227
|
-
type: "button",
|
|
228
|
-
onClick: () => editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, 'justify')
|
|
229
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
230
|
-
className: "icon"
|
|
231
|
-
}, "{"))), /*#__PURE__*/React.createElement("div", {
|
|
232
|
-
className: "group"
|
|
233
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
234
|
-
type: "button",
|
|
235
|
-
onClick: () => editor.dispatchCommand(UNDO_COMMAND)
|
|
236
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
237
|
-
className: "icon"
|
|
238
|
-
}, "\\")), /*#__PURE__*/React.createElement("button", {
|
|
239
|
-
type: "button",
|
|
240
|
-
className: "flip",
|
|
241
|
-
onClick: () => editor.dispatchCommand(REDO_COMMAND)
|
|
242
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
243
|
-
className: "icon"
|
|
244
|
-
}, "\\"))));
|
|
245
|
-
};
|
|
246
|
-
export default Toolbar;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
import * as React from 'react'
|
|
3
|
-
|
|
4
|
-
import { LexicalPreview } from 'ui'
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title :'a/LexicalPreview',
|
|
8
|
-
component :LexicalPreview,
|
|
9
|
-
subcomponents:{
|
|
10
|
-
// Item:TextareaInput.Item
|
|
11
|
-
},
|
|
12
|
-
decorators:[],
|
|
13
|
-
argTypes :{
|
|
14
|
-
color:{ control: 'text' },
|
|
15
|
-
},
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// eslint-disable-next-line no-useless-escape
|
|
19
|
-
const nodes = '{\"root\":{\"children\":[{\"children\":[{\"children\":[{\"detail\":0,\"format\":1,\"mode\":\"normal\",\"style\":\"\",\"text\":\"This is bold.\",\"type\":\"text\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"listitem\",\"version\":1,\"value\":1},{\"children\":[{\"detail\":0,\"format\":2,\"mode\":\"normal\",\"style\":\"\",\"text\":\"This is italic.\",\"type\":\"text\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"listitem\",\"version\":1,\"value\":2},{\"children\":[{\"detail\":0,\"format\":8,\"mode\":\"normal\",\"style\":\"\",\"text\":\"This is underlined.\",\"type\":\"text\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"listitem\",\"version\":1,\"value\":3},{\"children\":[{\"children\":[{\"children\":[{\"detail\":0,\"format\":4,\"mode\":\"normal\",\"style\":\"\",\"text\":\"This is struck.\",\"type\":\"text\",\"version\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":1,\"type\":\"listitem\",\"version\":1,\"value\":1}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"list\",\"version\":1,\"listType\":\"bullet\",\"start\":1,\"tag\":\"ul\"}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"listitem\",\"version\":1,\"value\":4}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"list\",\"version\":1,\"listType\":\"bullet\",\"start\":1,\"tag\":\"ul\"}],\"direction\":\"ltr\",\"format\":\"\",\"indent\":0,\"type\":\"root\",\"version\":1}}'
|
|
20
|
-
|
|
21
|
-
const Template = (args) => (
|
|
22
|
-
<LexicalPreview {...args} />
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
export const Base = Template.bind({})
|
|
26
|
-
Base.args = {
|
|
27
|
-
nodes,
|
|
28
|
-
}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
/* eslint-disable import/no-extraneous-dependencies -- required here */
|
|
3
|
-
import * as React from 'react'
|
|
4
|
-
import { LexicalComposer } from '@lexical/react/LexicalComposer'
|
|
5
|
-
import { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin'
|
|
6
|
-
import { ContentEditable } from '@lexical/react/LexicalContentEditable'
|
|
7
|
-
import { AutoLinkNode, LinkNode } from '@lexical/link'
|
|
8
|
-
import { ListItemNode, ListNode } from '@lexical/list'
|
|
9
|
-
|
|
10
|
-
import PropTypes from 'prop-types'
|
|
11
|
-
import styleNames from '@pareto-engineering/bem/exports'
|
|
12
|
-
import './styles.scss'
|
|
13
|
-
|
|
14
|
-
// Local Definitions
|
|
15
|
-
|
|
16
|
-
const baseClassName = styleNames.base
|
|
17
|
-
const componentClassName = 'lexical-preview'
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* This is the component description.
|
|
21
|
-
*/
|
|
22
|
-
const LexicalPreview = ({
|
|
23
|
-
id,
|
|
24
|
-
className:userClassName,
|
|
25
|
-
style,
|
|
26
|
-
nodes,
|
|
27
|
-
color,
|
|
28
|
-
// ...otherProps
|
|
29
|
-
}) => {
|
|
30
|
-
const initialConfig = {
|
|
31
|
-
nameSpace :id,
|
|
32
|
-
editable :false,
|
|
33
|
-
editorState:nodes,
|
|
34
|
-
theme :{
|
|
35
|
-
text:{
|
|
36
|
-
italic :'italic',
|
|
37
|
-
strikethrough:'strikethrough',
|
|
38
|
-
underline :'underlined',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
nodes:[
|
|
42
|
-
AutoLinkNode,
|
|
43
|
-
LinkNode,
|
|
44
|
-
ListNode,
|
|
45
|
-
ListItemNode,
|
|
46
|
-
],
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return (
|
|
50
|
-
<LexicalComposer
|
|
51
|
-
initialConfig={initialConfig}
|
|
52
|
-
>
|
|
53
|
-
<div
|
|
54
|
-
id={id}
|
|
55
|
-
className={[
|
|
56
|
-
baseClassName,
|
|
57
|
-
componentClassName,
|
|
58
|
-
userClassName,
|
|
59
|
-
`y-${color}`,
|
|
60
|
-
]
|
|
61
|
-
.filter((e) => e)
|
|
62
|
-
.join(' ')}
|
|
63
|
-
style={style}
|
|
64
|
-
>
|
|
65
|
-
<RichTextPlugin
|
|
66
|
-
contentEditable={(
|
|
67
|
-
<ContentEditable
|
|
68
|
-
id={id}
|
|
69
|
-
className="content-editable"
|
|
70
|
-
/>
|
|
71
|
-
)}
|
|
72
|
-
/>
|
|
73
|
-
</div>
|
|
74
|
-
</LexicalComposer>
|
|
75
|
-
)
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
LexicalPreview.propTypes = {
|
|
79
|
-
/**
|
|
80
|
-
* The HTML id for this element
|
|
81
|
-
*/
|
|
82
|
-
id:PropTypes.string,
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* The HTML class names for this element
|
|
86
|
-
*/
|
|
87
|
-
className:PropTypes.string,
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* The React-written, css properties for this element.
|
|
91
|
-
*/
|
|
92
|
-
style:PropTypes.objectOf(PropTypes.string),
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* Color of the text
|
|
96
|
-
*/
|
|
97
|
-
color:PropTypes.string,
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The nodes to render in the form of a json string
|
|
101
|
-
*/
|
|
102
|
-
nodes:PropTypes.string,
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
LexicalPreview.defaultProps = {
|
|
106
|
-
color:'paragraph',
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export default LexicalPreview
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
|
|
3
|
-
@use "@pareto-engineering/bem";
|
|
4
|
-
@use "@pareto-engineering/styles/src/mixins";
|
|
5
|
-
@use "@pareto-engineering/styles/src/globals" as *;
|
|
6
|
-
|
|
7
|
-
.#{bem.$base}.lexical-preview {
|
|
8
|
-
> .content-editable {
|
|
9
|
-
color: var(--y);
|
|
10
|
-
overflow: auto;
|
|
11
|
-
|
|
12
|
-
li:has(ol, ul) {
|
|
13
|
-
list-style-type: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
p,
|
|
17
|
-
span,
|
|
18
|
-
strong,
|
|
19
|
-
em,
|
|
20
|
-
li {
|
|
21
|
-
&.underlined {
|
|
22
|
-
text-decoration: underline;
|
|
23
|
-
|
|
24
|
-
&.strikethrough {
|
|
25
|
-
text-decoration: underline line-through;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.strikethrough {
|
|
30
|
-
text-decoration: line-through;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.italic {
|
|
34
|
-
font-style: italic;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
:first-child {
|
|
39
|
-
margin-top: 0;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&::placeholder {
|
|
43
|
-
color: var(--metadata);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/* @pareto-engineering/generator-front 1.0.12 */
|
|
2
|
-
/* stylelint-disable max-nesting-depth -- required */
|
|
3
|
-
|
|
4
|
-
@use "@pareto-engineering/bem";
|
|
5
|
-
@use "@pareto-engineering/styles/src/mixins";
|
|
6
|
-
@use "@pareto-engineering/styles/src/globals" as *;
|
|
7
|
-
|
|
8
|
-
.#{bem.$base}.expandable-lexical-preview {
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-direction: column;
|
|
11
|
-
flex-wrap: wrap;
|
|
12
|
-
gap: var(--gap);
|
|
13
|
-
width: 100%;
|
|
14
|
-
|
|
15
|
-
&.collapsed {
|
|
16
|
-
flex-direction: row;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
> .title {
|
|
20
|
-
margin: 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
> .#{bem.$base}.button {
|
|
25
|
-
align-items: center;
|
|
26
|
-
border: 1px solid var(--outline-inputs);
|
|
27
|
-
display: flex;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
> .lexical-content {
|
|
31
|
-
position: relative;
|
|
32
|
-
|
|
33
|
-
> .content-editable {
|
|
34
|
-
background: var(--background-inputs);
|
|
35
|
-
border: 1px solid var(--outline-inputs);
|
|
36
|
-
border-radius: var(--theme-default-border-radius);
|
|
37
|
-
color: var(--y);
|
|
38
|
-
overflow: auto;
|
|
39
|
-
padding: var(--gap);
|
|
40
|
-
resize: var(--resize);
|
|
41
|
-
|
|
42
|
-
li:has(ol, ul) {
|
|
43
|
-
list-style-type: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
p,
|
|
47
|
-
span,
|
|
48
|
-
strong,
|
|
49
|
-
em,
|
|
50
|
-
li {
|
|
51
|
-
&.underlined {
|
|
52
|
-
text-decoration: underline;
|
|
53
|
-
|
|
54
|
-
&.strikethrough {
|
|
55
|
-
text-decoration: underline line-through;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&.strikethrough {
|
|
60
|
-
text-decoration: line-through;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&.italic {
|
|
64
|
-
font-style: italic;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
:first-child {
|
|
69
|
-
margin-top: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&::placeholder {
|
|
73
|
-
color: var(--metadata);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
> .#{bem.$base}.expand-button {
|
|
78
|
-
border: 1px solid var(--outline-inputs);
|
|
79
|
-
position: absolute;
|
|
80
|
-
right: 1em;
|
|
81
|
-
top: 1em;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|