@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.
Files changed (210) hide show
  1. package/dist/cjs/a/AnimatedBlobs/AnimatedBlobs.js +1 -1
  2. package/dist/cjs/a/AnimatedGradient/AnimatedGradient.js +1 -1
  3. package/dist/cjs/a/AppContext/Context.js +1 -1
  4. package/dist/cjs/a/AppContext/ContextProvider.js +1 -1
  5. package/dist/cjs/a/BlurOverlay/BlurOverlay.js +1 -1
  6. package/dist/cjs/a/ContentTree/ContentTree.js +1 -1
  7. package/dist/cjs/a/ContentTree/common/Tree/Tree.js +1 -1
  8. package/dist/cjs/a/Conversation/Context.js +1 -1
  9. package/dist/cjs/a/Conversation/Conversation.js +1 -1
  10. package/dist/cjs/a/Conversation/common/Message/Message.js +1 -1
  11. package/dist/cjs/a/DatePicker/DatePicker.js +1 -1
  12. package/dist/cjs/a/DotInfo/DotInfo.js +1 -1
  13. package/dist/cjs/a/Figure/Figure.js +1 -1
  14. package/dist/cjs/a/HamburgerButton/HamburgerButton.js +1 -1
  15. package/dist/cjs/a/IconList/IconList.js +1 -1
  16. package/dist/cjs/a/IconList/common/Item/Item.js +1 -1
  17. package/dist/cjs/a/Label/Label.js +1 -1
  18. package/dist/cjs/a/LoadingCircle/LoadingCircle.js +1 -1
  19. package/dist/cjs/a/MetaCard/MetaCard.js +1 -1
  20. package/dist/cjs/a/People/People.js +1 -1
  21. package/dist/cjs/a/People/common/Person/Person.js +1 -1
  22. package/dist/cjs/a/People/styles.scss +1 -1
  23. package/dist/cjs/a/Popover/Popover.js +1 -1
  24. package/dist/cjs/a/ProgressBar/ProgressBar.js +1 -1
  25. package/dist/cjs/a/Quote/Quote.js +16 -6
  26. package/dist/cjs/a/Quote/styles.scss +16 -37
  27. package/dist/cjs/a/Removable/Removable.js +1 -1
  28. package/dist/cjs/a/SVG/SVG.js +1 -1
  29. package/dist/cjs/a/SVG/common/UseSVG/UseSVG.js +1 -1
  30. package/dist/cjs/a/SnapScroller/SnapScroller.js +1 -1
  31. package/dist/cjs/a/Spinner/Spinner.js +1 -1
  32. package/dist/cjs/a/TextSteps/TextSteps.js +1 -1
  33. package/dist/cjs/a/Timestamp/Timestamp.js +1 -1
  34. package/dist/cjs/a/Tip/Tip.js +1 -1
  35. package/dist/cjs/a/ToggleSwitch/ToggleSwitch.js +1 -1
  36. package/dist/cjs/a/Tooltip/Tooltip.js +71 -0
  37. package/dist/cjs/a/{LexicalPreview → Tooltip}/index.js +3 -3
  38. package/dist/cjs/a/Tooltip/styles.scss +56 -0
  39. package/dist/cjs/a/XMLEditor/XMLEditor.js +1 -1
  40. package/dist/cjs/a/index.js +8 -8
  41. package/dist/cjs/b/Button/Button.js +1 -1
  42. package/dist/cjs/b/Button/common/Group/Group.js +1 -1
  43. package/dist/cjs/b/Card/Card.js +1 -1
  44. package/dist/cjs/b/Card/common/Group/Group.js +1 -1
  45. package/dist/cjs/b/Card/common/Section/Section.js +1 -1
  46. package/dist/cjs/b/Logo/Logo.js +1 -1
  47. package/dist/cjs/b/Page/Context.js +1 -1
  48. package/dist/cjs/b/Page/Page.js +1 -1
  49. package/dist/cjs/b/Page/common/PageHelmet/PageHelmet.js +5 -2
  50. package/dist/cjs/b/Page/common/Section/Section.js +1 -1
  51. package/dist/cjs/b/SocialMediaButton/SocialMediaButton.js +1 -1
  52. package/dist/cjs/b/ThemeSelector/ThemeSelector.js +1 -1
  53. package/dist/cjs/b/Title/Title.js +1 -1
  54. package/dist/cjs/b/index.js +1 -8
  55. package/dist/cjs/c/Modal/Modal.js +1 -1
  56. package/dist/cjs/c/Modal/common/ModalHeader/ModalHeader.js +1 -1
  57. package/dist/cjs/c/Shortener/Shortener.js +1 -1
  58. package/dist/cjs/c/SocialMediaShareButton/SocialMediaShareButton.js +1 -1
  59. package/dist/cjs/f/FormInput/FormInput.js +1 -1
  60. package/dist/cjs/f/common/Debugger/Debugger.js +1 -1
  61. package/dist/cjs/f/common/Description/Description.js +1 -1
  62. package/dist/cjs/f/common/Label/Label.js +1 -1
  63. package/dist/cjs/f/fields/Checkbox/Checkbox.js +1 -1
  64. package/dist/cjs/f/fields/ChoicesInput/ChoicesInput.js +1 -1
  65. package/dist/cjs/f/fields/ChoicesInput/common/Choice/Choice.js +1 -1
  66. package/dist/cjs/f/fields/EditorInput/EditorInput.js +37 -12
  67. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +256 -0
  68. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/index.js +13 -0
  69. package/dist/cjs/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
  70. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +94 -0
  71. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/index.js +13 -0
  72. package/dist/cjs/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
  73. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +94 -0
  74. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/index.js +13 -0
  75. package/dist/cjs/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
  76. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +295 -0
  77. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/index.js +13 -0
  78. package/dist/cjs/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
  79. package/dist/cjs/f/fields/EditorInput/common/index.js +24 -3
  80. package/dist/cjs/f/fields/EditorInput/styles.scss +116 -25
  81. package/dist/cjs/f/fields/LinkInput/LinkInput.js +1 -1
  82. package/dist/cjs/f/fields/QueryChoices/QueryChoices.js +1 -1
  83. package/dist/cjs/f/fields/QueryCombobox/QueryCombobox.js +1 -1
  84. package/dist/cjs/f/fields/QueryCombobox/common/Combobox/Combobox.js +1 -1
  85. package/dist/cjs/f/fields/QueryCombobox/common/Menu/Menu.js +1 -1
  86. package/dist/cjs/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +1 -1
  87. package/dist/cjs/f/fields/QuerySelect/QuerySelect.js +1 -1
  88. package/dist/cjs/f/fields/RatingsInput/RatingsInput.js +1 -1
  89. package/dist/cjs/f/fields/RatingsInput/common/Rating/Rating.js +1 -1
  90. package/dist/cjs/f/fields/SelectInput/SelectInput.js +10 -3
  91. package/dist/cjs/f/fields/SelectInput/common/Menu/Menu.js +1 -1
  92. package/dist/cjs/f/fields/SelectInput/common/Multiple/Multiple.js +1 -1
  93. package/dist/cjs/f/fields/SelectInput/common/Single/Single.js +14 -3
  94. package/dist/cjs/f/fields/SelectInput/styles.scss +1 -1
  95. package/dist/cjs/f/fields/TextInput/TextInput.js +1 -1
  96. package/dist/cjs/f/fields/TextareaInput/TextareaInput.js +1 -1
  97. package/dist/cjs/{b → g}/ExpandableLexicalPreview/ExpandableLexicalPreview.js +28 -43
  98. package/dist/cjs/{b → g}/ExpandableLexicalPreview/common/ExpandButton/ExpandButton.js +7 -8
  99. package/dist/cjs/g/ExpandableLexicalPreview/styles.scss +34 -0
  100. package/dist/cjs/g/index.js +12 -0
  101. package/dist/cjs/index.js +11 -0
  102. package/dist/cjs/test/QueryLoader/QueryLoader.js +1 -1
  103. package/dist/cjs/test/QueryLoader/common/PreloadedTestData/PreloadedTestData.js +1 -1
  104. package/dist/cjs/utils/hooks/index.js +7 -0
  105. package/dist/cjs/utils/hooks/useOutsideClick.js +25 -0
  106. package/dist/cjs/utils/index.js +6 -0
  107. package/dist/es/a/People/styles.scss +1 -1
  108. package/dist/es/a/Quote/Quote.js +15 -5
  109. package/dist/es/a/Quote/styles.scss +16 -37
  110. package/dist/es/a/Tooltip/Tooltip.js +59 -0
  111. package/dist/es/a/Tooltip/index.js +2 -0
  112. package/dist/es/a/Tooltip/styles.scss +56 -0
  113. package/dist/es/a/index.js +2 -2
  114. package/dist/es/b/Page/common/PageHelmet/PageHelmet.js +4 -1
  115. package/dist/es/b/index.js +1 -2
  116. package/dist/es/f/fields/EditorInput/EditorInput.js +35 -11
  117. package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +246 -0
  118. package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/index.js +2 -0
  119. package/dist/es/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
  120. package/dist/es/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +83 -0
  121. package/dist/es/f/fields/EditorInput/common/ColorPicker/index.js +2 -0
  122. package/dist/es/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
  123. package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +81 -0
  124. package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/index.js +2 -0
  125. package/dist/es/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
  126. package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +283 -0
  127. package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/index.js +2 -0
  128. package/dist/es/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
  129. package/dist/es/f/fields/EditorInput/common/index.js +5 -2
  130. package/dist/es/f/fields/EditorInput/styles.scss +116 -25
  131. package/dist/es/f/fields/SelectInput/SelectInput.js +9 -2
  132. package/dist/es/f/fields/SelectInput/common/Single/Single.js +12 -1
  133. package/dist/es/f/fields/SelectInput/styles.scss +1 -1
  134. package/dist/es/{b → g}/ExpandableLexicalPreview/ExpandableLexicalPreview.js +29 -45
  135. package/dist/es/{b → g}/ExpandableLexicalPreview/common/ExpandButton/ExpandButton.js +18 -21
  136. package/dist/es/g/ExpandableLexicalPreview/styles.scss +34 -0
  137. package/dist/es/g/index.js +1 -0
  138. package/dist/es/index.js +1 -0
  139. package/dist/es/utils/hooks/index.js +2 -1
  140. package/dist/es/utils/hooks/useOutsideClick.js +19 -0
  141. package/dist/es/utils/index.js +1 -1
  142. package/package.json +14 -6
  143. package/src/stories/a/Quote.stories.jsx +30 -10
  144. package/src/stories/a/Tooltip.stories.jsx +80 -0
  145. package/src/stories/a/XMLEditor.stories.jsx +6 -1
  146. package/src/stories/f/SelectInput.stories.jsx +18 -2
  147. package/src/stories/{b → g}/ExpandableLexicalPreview.stories.jsx +2 -1
  148. package/src/ui/a/People/styles.scss +1 -1
  149. package/src/ui/a/Quote/Quote.jsx +16 -9
  150. package/src/ui/a/Quote/styles.scss +16 -37
  151. package/src/ui/a/Tooltip/Tooltip.jsx +83 -0
  152. package/src/ui/a/Tooltip/index.js +2 -0
  153. package/src/ui/a/Tooltip/styles.scss +56 -0
  154. package/src/ui/a/index.js +1 -1
  155. package/src/ui/b/Page/common/PageHelmet/PageHelmet.jsx +6 -0
  156. package/src/ui/b/index.js +0 -1
  157. package/src/ui/f/fields/EditorInput/EditorInput.jsx +35 -5
  158. package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.jsx +292 -0
  159. package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +2 -0
  160. package/src/ui/f/fields/EditorInput/common/BlockFormatDropDown/styles.scss +55 -0
  161. package/src/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.jsx +110 -0
  162. package/src/ui/f/fields/EditorInput/common/ColorPicker/index.js +2 -0
  163. package/src/ui/f/fields/EditorInput/common/ColorPicker/styles.scss +36 -0
  164. package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.jsx +134 -0
  165. package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +2 -0
  166. package/src/ui/f/fields/EditorInput/common/FontSizeDropDown/styles.scss +55 -0
  167. package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.jsx +431 -0
  168. package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +2 -0
  169. package/src/ui/f/fields/EditorInput/common/ToolbarPlugin/styles.scss +56 -0
  170. package/src/ui/f/fields/EditorInput/common/index.js +6 -0
  171. package/src/ui/f/fields/EditorInput/styles.scss +116 -25
  172. package/src/ui/f/fields/SelectInput/SelectInput.jsx +10 -2
  173. package/src/ui/f/fields/SelectInput/common/Single/Single.jsx +13 -1
  174. package/src/ui/f/fields/SelectInput/styles.scss +1 -1
  175. package/src/ui/{b → g}/ExpandableLexicalPreview/ExpandableLexicalPreview.jsx +43 -56
  176. package/src/ui/{b → g}/ExpandableLexicalPreview/common/ExpandButton/ExpandButton.jsx +32 -36
  177. package/src/ui/g/ExpandableLexicalPreview/styles.scss +34 -0
  178. package/src/ui/g/index.js +1 -0
  179. package/src/ui/index.js +1 -0
  180. package/src/ui/utils/hooks/index.js +1 -0
  181. package/src/ui/utils/hooks/useOutsideClick.js +23 -0
  182. package/src/ui/utils/index.js +1 -1
  183. package/tests/__snapshots__/Storyshots.test.js.snap +914 -433
  184. package/tests/mockResizeObserver.js +9 -0
  185. package/tests/test-setup.js +3 -0
  186. package/dist/cjs/a/LexicalPreview/LexicalPreview.js +0 -90
  187. package/dist/cjs/a/LexicalPreview/styles.scss +0 -46
  188. package/dist/cjs/b/ExpandableLexicalPreview/styles.scss +0 -84
  189. package/dist/cjs/f/fields/EditorInput/common/Toolbar.js +0 -257
  190. package/dist/es/a/LexicalPreview/LexicalPreview.js +0 -80
  191. package/dist/es/a/LexicalPreview/index.js +0 -2
  192. package/dist/es/a/LexicalPreview/styles.scss +0 -46
  193. package/dist/es/b/ExpandableLexicalPreview/styles.scss +0 -84
  194. package/dist/es/f/fields/EditorInput/common/Toolbar.js +0 -246
  195. package/src/stories/a/LexicalPreview.stories.jsx +0 -28
  196. package/src/ui/a/LexicalPreview/LexicalPreview.jsx +0 -109
  197. package/src/ui/a/LexicalPreview/index.js +0 -2
  198. package/src/ui/a/LexicalPreview/styles.scss +0 -46
  199. package/src/ui/b/ExpandableLexicalPreview/styles.scss +0 -84
  200. package/src/ui/f/fields/EditorInput/common/Toolbar.jsx +0 -356
  201. package/src/ui/f/fields/EditorInput/common/index.jsx +0 -3
  202. /package/dist/cjs/{b → g}/ExpandableLexicalPreview/common/ExpandButton/index.js +0 -0
  203. /package/dist/cjs/{b → g}/ExpandableLexicalPreview/common/index.js +0 -0
  204. /package/dist/cjs/{b → g}/ExpandableLexicalPreview/index.js +0 -0
  205. /package/dist/es/{b → g}/ExpandableLexicalPreview/common/ExpandButton/index.js +0 -0
  206. /package/dist/es/{b → g}/ExpandableLexicalPreview/common/index.js +0 -0
  207. /package/dist/es/{b → g}/ExpandableLexicalPreview/index.js +0 -0
  208. /package/src/ui/{b → g}/ExpandableLexicalPreview/common/ExpandButton/index.js +0 -0
  209. /package/src/ui/{b → g}/ExpandableLexicalPreview/common/index.js +0 -0
  210. /package/src/ui/{b → g}/ExpandableLexicalPreview/index.js +0 -0
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "FontSizeDropDown", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _FontSizeDropDown.default;
10
+ }
11
+ });
12
+ var _FontSizeDropDown = _interopRequireDefault(require("./FontSizeDropDown"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,55 @@
1
+ /* @pareto-engineering/generator-front 1.0.12 */
2
+
3
+ @use "@pareto-engineering/bem";
4
+
5
+ $default-width: 4.5rem;
6
+
7
+ .#{bem.$base}.font-size-drop-down {
8
+ align-items: center;
9
+ background-color: var(--x);
10
+ border: 0;
11
+ color: var(--on-background-inputs);
12
+ cursor: pointer;
13
+ display: flex;
14
+ gap: calc(var(--gap) / 2);
15
+ margin-inline: calc(var(--theme-default-padding) / 4);
16
+ padding: calc(var(--theme-default-padding) / 2);
17
+ position: relative;
18
+
19
+ &:hover {
20
+ background: var(--hard-x);
21
+ border-radius: calc(var(--theme-default-border-radius) / 2);
22
+ }
23
+
24
+ > .#{bem.$base}.popover {
25
+ background-color: var(--background-far);
26
+ border: 1px solid var(--hard-background-cards);
27
+ border-radius: calc(var(--theme-default-border-radius) / 2);
28
+ color: var(--heading);
29
+ display: flex;
30
+ flex-direction: column;
31
+ padding: calc(var(--theme-default-padding) / 2);
32
+ width: $default-width;
33
+
34
+ > .item {
35
+ align-items: center;
36
+ background-color: var(--x);
37
+ border: 0;
38
+ border-radius: calc(var(--theme-default-border-radius) / 2);
39
+ color: var(--paragraph);
40
+ cursor: pointer;
41
+ display: flex;
42
+ gap: calc(var(--gap) / 2);
43
+ padding: calc(var(--theme-default-padding) / 2);
44
+ transition: all .2s;
45
+
46
+ &:hover {
47
+ background-color: var(--hard-x);
48
+ }
49
+
50
+ &.active {
51
+ background-color: var(--hard-ui-main);
52
+ }
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,295 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.blockTypeToBlockName = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var React = _react;
9
+ var _propTypes = _interopRequireDefault(require("prop-types"));
10
+ var _utils = require("@lexical/utils");
11
+ var _richText = require("@lexical/rich-text");
12
+ var _lexical = require("lexical");
13
+ var _list = require("@lexical/list");
14
+ var _selection = require("@lexical/selection");
15
+ var _link = require("@lexical/link");
16
+ var _LexicalComposerContext = require("@lexical/react/LexicalComposerContext");
17
+ var _table = require("@lexical/table");
18
+ var _exports = _interopRequireDefault(require("@pareto-engineering/bem/exports"));
19
+ var _BlockFormatDropDown = require("../BlockFormatDropDown");
20
+ var _ColorPicker = require("../ColorPicker");
21
+ var _FontSizeDropDown = require("../FontSizeDropDown");
22
+ require("./styles.scss");
23
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
25
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
26
+ /* eslint-disable import/no-extraneous-dependencies -- required here */
27
+
28
+ // Local Definitions
29
+
30
+ const getSelectedNode = selection => {
31
+ const {
32
+ anchor,
33
+ focus
34
+ } = selection;
35
+ const anchorNode = selection.anchor.getNode();
36
+ const focusNode = selection.focus.getNode();
37
+ if (anchorNode === focusNode) {
38
+ return anchorNode;
39
+ }
40
+ const isBackward = selection.isBackward();
41
+ if (isBackward) {
42
+ return (0, _selection.$isAtNodeEnd)(focus) ? anchorNode : focusNode;
43
+ }
44
+ return (0, _selection.$isAtNodeEnd)(anchor) ? focusNode : anchorNode;
45
+ };
46
+ const blockTypeToBlockName = exports.blockTypeToBlockName = {
47
+ bullet: 'Bulleted List',
48
+ check: 'Check List',
49
+ code: 'Code Block',
50
+ h1: 'Heading 1',
51
+ h2: 'Heading 2',
52
+ h3: 'Heading 3',
53
+ number: 'Numbered List',
54
+ paragraph: 'Normal',
55
+ quote: 'Quote'
56
+ };
57
+ const baseClassName = _exports.default.base;
58
+ const componentClassName = 'toolbar-plugin';
59
+
60
+ /**
61
+ * This is the component description
62
+ */
63
+ const ToolbarPlugin = _ref => {
64
+ let {
65
+ id,
66
+ className: userClassName,
67
+ style: inlineStyles,
68
+ baseBgColor
69
+ // ...otherProps
70
+ } = _ref;
71
+ const [editor] = (0, _LexicalComposerContext.useLexicalComposerContext)();
72
+ const [activeEditor, setActiveEditor] = (0, _react.useState)(editor);
73
+ const [blockType, setBlockType] = (0, _react.useState)('paragraph');
74
+ const [rootType, setRootType] = (0, _react.useState)('root');
75
+ const [fontColor, setFontColor] = (0, _react.useState)('#000000');
76
+ const [bgColor, setBgColor] = (0, _react.useState)('#ffffff');
77
+ const [fontSize, setFontSize] = (0, _react.useState)('15px');
78
+ const [isEditable, setIsEditable] = (0, _react.useState)(() => editor.isEditable());
79
+ const [isBold, setIsBold] = (0, _react.useState)(false);
80
+ const [isItalic, setIsItalic] = (0, _react.useState)(false);
81
+ const [isStrikethrough, setIsStrikethrough] = (0, _react.useState)(false);
82
+ const [isLink, setIsLink] = (0, _react.useState)(false);
83
+ const [isUnderline, setIsUnderline] = (0, _react.useState)(false);
84
+ const [canRedo, setCanRedo] = (0, _react.useState)(false);
85
+ const [canUndo, setCanUndo] = (0, _react.useState)(false);
86
+ const formatLink = (0, _react.useCallback)(() => {
87
+ if (!isLink) {
88
+ // eslint-disable-next-line no-alert
89
+ const path = prompt('Enter the full URL. Ex: https://www.example.com');
90
+ editor.dispatchCommand(_link.TOGGLE_LINK_COMMAND, path);
91
+ } else {
92
+ editor.dispatchCommand(_link.TOGGLE_LINK_COMMAND, null);
93
+ }
94
+ }, [editor, isLink]);
95
+ const $updateToolbar = (0, _react.useCallback)(() => {
96
+ const selection = (0, _lexical.$getSelection)();
97
+ if ((0, _lexical.$isRangeSelection)(selection)) {
98
+ const anchorNode = selection.anchor.getNode();
99
+ let element = anchorNode.getKey() === 'root' ? anchorNode : (0, _utils.$findMatchingParent)(anchorNode, e => {
100
+ const parent = e.getParent();
101
+ return parent !== null && (0, _lexical.$isRootOrShadowRoot)(parent);
102
+ });
103
+ if (element === null) {
104
+ element = anchorNode.getTopLevelElementOrThrow();
105
+ }
106
+ const elementKey = element.getKey();
107
+ const elementDOM = activeEditor.getElementByKey(elementKey);
108
+
109
+ // Update text format
110
+ setIsBold(selection.hasFormat('bold'));
111
+ setIsItalic(selection.hasFormat('italic'));
112
+ setIsUnderline(selection.hasFormat('underline'));
113
+ setIsStrikethrough(selection.hasFormat('strikethrough'));
114
+
115
+ // Update links
116
+ const node = getSelectedNode(selection);
117
+ const parent = node.getParent();
118
+ if ((0, _link.$isLinkNode)(parent) || (0, _link.$isLinkNode)(node)) {
119
+ setIsLink(true);
120
+ } else {
121
+ setIsLink(false);
122
+ }
123
+ const tableNode = (0, _utils.$findMatchingParent)(node, _table.$isTableNode);
124
+ if ((0, _table.$isTableNode)(tableNode)) {
125
+ setRootType('table');
126
+ } else {
127
+ setRootType('root');
128
+ }
129
+ if (elementDOM !== null) {
130
+ if ((0, _list.$isListNode)(element)) {
131
+ const parentList = (0, _utils.$getNearestNodeOfType)(anchorNode, _list.ListNode);
132
+ const type = parentList ? parentList.getListType() : element.getListType();
133
+ setBlockType(type);
134
+ } else {
135
+ const type = (0, _richText.$isHeadingNode)(element) ? element.getTag() : element.getType();
136
+ if (type in blockTypeToBlockName) {
137
+ setBlockType(type);
138
+ }
139
+ }
140
+ }
141
+ setFontSize((0, _selection.$getSelectionStyleValueForProperty)(selection, 'font-size', '15px'));
142
+ setFontColor((0, _selection.$getSelectionStyleValueForProperty)(selection, 'color', '#000'));
143
+ setBgColor((0, _selection.$getSelectionStyleValueForProperty)(selection, 'background-color', '#fff'));
144
+ }
145
+ }, [activeEditor]);
146
+ (0, _react.useEffect)(() => editor.registerCommand(_lexical.SELECTION_CHANGE_COMMAND, (_payload, newEditor) => {
147
+ $updateToolbar();
148
+ setActiveEditor(newEditor);
149
+ return false;
150
+ }, _lexical.COMMAND_PRIORITY_CRITICAL), [editor, $updateToolbar]);
151
+ (0, _react.useEffect)(() => (0, _utils.mergeRegister)(editor.registerEditableListener(editable => {
152
+ setIsEditable(editable);
153
+ }), activeEditor.registerUpdateListener(_ref2 => {
154
+ let {
155
+ editorState
156
+ } = _ref2;
157
+ editorState.read(() => {
158
+ $updateToolbar();
159
+ });
160
+ }), activeEditor.registerCommand(_lexical.CAN_UNDO_COMMAND, payload => {
161
+ setCanUndo(payload);
162
+ return false;
163
+ }, _lexical.COMMAND_PRIORITY_CRITICAL), activeEditor.registerCommand(_lexical.CAN_REDO_COMMAND, payload => {
164
+ setCanRedo(payload);
165
+ return false;
166
+ }, _lexical.COMMAND_PRIORITY_CRITICAL)), [$updateToolbar, activeEditor, editor]);
167
+ const applyStyleText = (0, _react.useCallback)(styles => {
168
+ activeEditor.update(() => {
169
+ const selection = (0, _lexical.$getSelection)();
170
+ if ((0, _lexical.$isRangeSelection)(selection) || (0, _lexical.DEPRECATED_$isGridSelection)(selection)) {
171
+ (0, _selection.$patchStyleText)(selection, styles);
172
+ }
173
+ });
174
+ }, [activeEditor]);
175
+ const onFontColorSelect = (0, _react.useCallback)(value => {
176
+ applyStyleText({
177
+ color: value
178
+ });
179
+ }, [applyStyleText]);
180
+ const onBgColorSelect = (0, _react.useCallback)(value => {
181
+ applyStyleText({
182
+ 'background-color': value
183
+ });
184
+ }, [applyStyleText]);
185
+ return /*#__PURE__*/React.createElement("div", {
186
+ id: id,
187
+ className: [baseClassName, componentClassName, userClassName, `x-${baseBgColor}`].filter(e => e).join(' '),
188
+ style: inlineStyles
189
+ }, /*#__PURE__*/React.createElement("div", {
190
+ className: "group"
191
+ }, /*#__PURE__*/React.createElement("button", {
192
+ type: "button",
193
+ onClick: () => editor.dispatchCommand(_lexical.UNDO_COMMAND),
194
+ className: "ai-icon",
195
+ disabled: !canUndo || !isEditable
196
+ }, "A"), /*#__PURE__*/React.createElement("button", {
197
+ type: "button",
198
+ className: "ai-icon",
199
+ onClick: () => editor.dispatchCommand(_lexical.REDO_COMMAND),
200
+ disabled: !canRedo || !isEditable
201
+ }, "B")), /*#__PURE__*/React.createElement(_BlockFormatDropDown.BlockFormatDropDown, {
202
+ blockType: blockType,
203
+ editor: editor,
204
+ rootType: rootType
205
+ }), /*#__PURE__*/React.createElement("div", {
206
+ className: "group"
207
+ }, /*#__PURE__*/React.createElement("button", {
208
+ type: "button",
209
+ className: isBold ? 'active' : undefined,
210
+ onClick: () => editor.dispatchCommand(_lexical.FORMAT_TEXT_COMMAND, 'bold')
211
+ }, /*#__PURE__*/React.createElement("span", {
212
+ className: "icon"
213
+ }, "|")), /*#__PURE__*/React.createElement("button", {
214
+ type: "button",
215
+ className: isItalic ? 'active' : undefined,
216
+ onClick: () => editor.dispatchCommand(_lexical.FORMAT_TEXT_COMMAND, 'italic')
217
+ }, /*#__PURE__*/React.createElement("span", {
218
+ className: "icon"
219
+ }, "}")), /*#__PURE__*/React.createElement("button", {
220
+ type: "button",
221
+ className: isUnderline ? 'active' : undefined,
222
+ onClick: () => editor.dispatchCommand(_lexical.FORMAT_TEXT_COMMAND, 'underline')
223
+ }, /*#__PURE__*/React.createElement("span", {
224
+ className: "icon"
225
+ }, "~")), /*#__PURE__*/React.createElement("button", {
226
+ type: "button",
227
+ className: isStrikethrough ? 'active' : undefined,
228
+ onClick: () => editor.dispatchCommand(_lexical.FORMAT_TEXT_COMMAND, 'strikethrough')
229
+ }, /*#__PURE__*/React.createElement("span", {
230
+ className: "icon"
231
+ }, "?")), /*#__PURE__*/React.createElement("button", {
232
+ type: "button",
233
+ className: isLink ? 'active' : undefined,
234
+ onClick: formatLink
235
+ }, /*#__PURE__*/React.createElement("span", {
236
+ className: "icon"
237
+ }, "]"))), /*#__PURE__*/React.createElement(_FontSizeDropDown.FontSizeDropDown, {
238
+ editor: editor,
239
+ value: fontSize
240
+ }), /*#__PURE__*/React.createElement("div", {
241
+ className: "group"
242
+ }, /*#__PURE__*/React.createElement(_ColorPicker.ColorPicker, {
243
+ icon: "'",
244
+ color: fontColor,
245
+ onChange: onFontColorSelect
246
+ }), /*#__PURE__*/React.createElement(_ColorPicker.ColorPicker, {
247
+ icon: "#",
248
+ color: bgColor,
249
+ onChange: onBgColorSelect
250
+ })), /*#__PURE__*/React.createElement("div", {
251
+ className: "group"
252
+ }, /*#__PURE__*/React.createElement("button", {
253
+ type: "button",
254
+ onClick: () => editor.dispatchCommand(_lexical.FORMAT_ELEMENT_COMMAND, 'left')
255
+ }, /*#__PURE__*/React.createElement("span", {
256
+ className: "icon"
257
+ }, "^")), /*#__PURE__*/React.createElement("button", {
258
+ type: "button",
259
+ onClick: () => editor.dispatchCommand(_lexical.FORMAT_ELEMENT_COMMAND, 'center')
260
+ }, /*#__PURE__*/React.createElement("span", {
261
+ className: "icon"
262
+ }, "_")), /*#__PURE__*/React.createElement("button", {
263
+ type: "button",
264
+ onClick: () => editor.dispatchCommand(_lexical.FORMAT_ELEMENT_COMMAND, 'right')
265
+ }, /*#__PURE__*/React.createElement("span", {
266
+ className: "icon"
267
+ }, "`")), /*#__PURE__*/React.createElement("button", {
268
+ type: "button",
269
+ onClick: () => editor.dispatchCommand(_lexical.FORMAT_ELEMENT_COMMAND, 'justify')
270
+ }, /*#__PURE__*/React.createElement("span", {
271
+ className: "icon"
272
+ }, "{"))));
273
+ };
274
+ ToolbarPlugin.propTypes = {
275
+ /**
276
+ * The HTML id for this element
277
+ */
278
+ id: _propTypes.default.string,
279
+ /**
280
+ * The HTML class names for this element
281
+ */
282
+ className: _propTypes.default.string,
283
+ /**
284
+ * The React-written, css properties for this element.
285
+ */
286
+ style: _propTypes.default.objectOf(_propTypes.default.string),
287
+ /**
288
+ * Base background color
289
+ */
290
+ baseBgColor: _propTypes.default.string
291
+ };
292
+ ToolbarPlugin.defaultProps = {
293
+ baseBgColor: 'background-far'
294
+ };
295
+ var _default = exports.default = ToolbarPlugin;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "ToolbarPlugin", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _ToolbarPlugin.default;
10
+ }
11
+ });
12
+ var _ToolbarPlugin = _interopRequireDefault(require("./ToolbarPlugin"));
13
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -0,0 +1,56 @@
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
+
8
+ $default-gap: calc(var(--gap) / 2);
9
+ $default-padding: .55em .75em;
10
+ $default-input-border-radius: var(--theme-default-input-border-radius);
11
+ $default-border: var(--theme-default-input-border);
12
+ $default-icon-color: var(--soft-ui-icons);
13
+
14
+ .#{bem.$base}.toolbar-plugin {
15
+ align-items: center;
16
+ border-inline: $default-border;
17
+ border-top: $default-border;
18
+ border-top-left-radius: $default-input-border-radius;
19
+ border-top-right-radius: $default-input-border-radius;
20
+ display: flex;
21
+ flex-wrap: wrap;
22
+ padding-block: calc(var(--theme-default-padding) / 4);
23
+
24
+ > .ds + .group {
25
+ border-left: 1px solid var(--soft-background-inputs);
26
+ }
27
+
28
+ > .group {
29
+ display: flex;
30
+ gap: calc(var(--gap) / 2);
31
+
32
+ > button {
33
+ background: var(--x);
34
+ border: 0;
35
+ border-radius: calc(var(--theme-default-border-radius) / 2);
36
+ color: $default-icon-color;
37
+ cursor: pointer;
38
+ margin: 0;
39
+ padding: $default-padding;
40
+
41
+ &:hover,
42
+ &.active {
43
+ background: var(--hard-x);
44
+ }
45
+ }
46
+
47
+ &:not(.#{bem.$base}) {
48
+ padding-inline: calc(var(--theme-default-padding) / 4);
49
+ }
50
+
51
+
52
+ &:not(:last-child, .#{bem.$base}) {
53
+ border-right: 1px solid var(--soft-background-inputs);
54
+ }
55
+ }
56
+ }
@@ -3,16 +3,34 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "BlockFormatDropDown", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _BlockFormatDropDown.BlockFormatDropDown;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "ColorPicker", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _ColorPicker.ColorPicker;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "FontSizeDropDown", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _FontSizeDropDown.FontSizeDropDown;
22
+ }
23
+ });
6
24
  Object.defineProperty(exports, "StopPropagationPlugin", {
7
25
  enumerable: true,
8
26
  get: function () {
9
27
  return _StopPropagationPlugin.default;
10
28
  }
11
29
  });
12
- Object.defineProperty(exports, "Toolbar", {
30
+ Object.defineProperty(exports, "ToolbarPlugin", {
13
31
  enumerable: true,
14
32
  get: function () {
15
- return _Toolbar.default;
33
+ return _ToolbarPlugin.ToolbarPlugin;
16
34
  }
17
35
  });
18
36
  Object.defineProperty(exports, "TreeViewPlugin", {
@@ -21,7 +39,10 @@ Object.defineProperty(exports, "TreeViewPlugin", {
21
39
  return _TreeViewPlugin.default;
22
40
  }
23
41
  });
24
- var _Toolbar = _interopRequireDefault(require("./Toolbar"));
42
+ var _BlockFormatDropDown = require("./BlockFormatDropDown");
25
43
  var _TreeViewPlugin = _interopRequireDefault(require("./TreeViewPlugin"));
26
44
  var _StopPropagationPlugin = _interopRequireDefault(require("./StopPropagationPlugin"));
45
+ var _ToolbarPlugin = require("./ToolbarPlugin");
46
+ var _ColorPicker = require("./ColorPicker");
47
+ var _FontSizeDropDown = require("./FontSizeDropDown");
27
48
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -6,7 +6,6 @@
6
6
 
7
7
  $default-gap: calc(var(--gap) / 2);
8
8
  $default-padding: .55em .75em;
9
- $default-border: 1px solid var(--outline-inputs);
10
9
  $default-input-border-radius: var(--theme-default-input-border-radius);
11
10
  $default-border: var(--theme-default-input-border);
12
11
  $focus-border: var(--theme-focus-input-border);
@@ -15,6 +14,7 @@ $default-background: var(--background-inputs);
15
14
  $default-icon-color: var(--on-background-inputs);
16
15
  $disabled-background: var(--background-inputs-30);
17
16
  $default-color-menu-padding: .5em .25em;
17
+ $default-check-mark-dimensions: 1rem;
18
18
 
19
19
  .#{bem.$base}.editor-input {
20
20
  display: flex;
@@ -24,29 +24,6 @@ $default-color-menu-padding: .5em .25em;
24
24
  margin-bottom: var(--gap);
25
25
  }
26
26
 
27
- > .#{bem.$base}.toolbar {
28
- display: flex;
29
- gap: $default-gap;
30
- margin-bottom: .25em;
31
-
32
- > .group {
33
- > button {
34
- background: $default-background;
35
- border: $default-border;
36
- color: $default-icon-color;
37
- padding: $default-padding;
38
-
39
- &.active {
40
- background-color: $active-background;
41
- }
42
- }
43
- }
44
-
45
- .flip {
46
- transform: scaleX(-1);
47
- }
48
- }
49
-
50
27
  &:not(.disabled) {
51
28
  &:hover,
52
29
  &:focus,
@@ -55,6 +32,11 @@ $default-color-menu-padding: .5em .25em;
55
32
  border: $focus-border;
56
33
  }
57
34
  }
35
+
36
+ > .content-editable {
37
+ border-bottom-left-radius: $default-input-border-radius;
38
+ border-bottom-right-radius: $default-input-border-radius;
39
+ }
58
40
  }
59
41
 
60
42
  &.disabled {
@@ -63,6 +45,10 @@ $default-color-menu-padding: .5em .25em;
63
45
  color: var(--metadata);
64
46
  cursor: not-allowed;
65
47
  }
48
+
49
+ > .content-editable {
50
+ border-radius: $default-input-border-radius;
51
+ }
66
52
  }
67
53
 
68
54
  .color-menu-button {
@@ -93,7 +79,6 @@ $default-color-menu-padding: .5em .25em;
93
79
  > .content-editable {
94
80
  background: $default-background;
95
81
  border: $default-border;
96
- border-radius: $default-input-border-radius;
97
82
  color: var(--y);
98
83
  height: var(--rows);
99
84
  outline: none;
@@ -102,10 +87,116 @@ $default-color-menu-padding: .5em .25em;
102
87
  resize: var(--resize);
103
88
  width: 100%;
104
89
 
90
+ .lexical-list-item-checked,
91
+ .lexical-list-item-unchecked {
92
+ list-style-type: none;
93
+ margin-inline: calc(var(--gap) / 2);
94
+ outline: none;
95
+ padding-inline: calc(var(--theme-default-padding) * 1.5);
96
+ position: relative;
97
+ }
98
+
99
+ .lexical-list-item-checked {
100
+ text-decoration: line-through;
101
+ }
102
+
103
+ .lexical-list-item-unchecked::before,
104
+ .lexical-list-item-checked::before {
105
+ background-size: cover;
106
+ content: "";
107
+ cursor: pointer;
108
+ display: block;
109
+ height: $default-check-mark-dimensions;
110
+ left: 0;
111
+ position: absolute;
112
+ top: 2px;
113
+ width: $default-check-mark-dimensions;
114
+ }
115
+
116
+ .lexical-list-item-unchecked[dir="rtl"]::before,
117
+ .lexical-list-item-checked[dir="rtl"]::before {
118
+ left: auto;
119
+ right: 0;
120
+ }
121
+
122
+ .lexical-list-item-unchecked:focus::before,
123
+ .lexical-list-item-checked:focus::before {
124
+ border-radius: 2px;
125
+ box-shadow: 0 0 0 2px var(--light-blue);
126
+ }
127
+
128
+ .lexical-list-item-unchecked::before {
129
+ border: var(--theme-default-border-style) var(--ui-icons);
130
+ border-radius: 2px;
131
+ }
132
+
133
+ .lexical-list-item-checked::before {
134
+ background-color: var(--blue);
135
+ background-repeat: no-repeat;
136
+ border: var(--theme-default-border-style) var(--soft-blue);
137
+ border-radius: 2px;
138
+ }
139
+
140
+ .lexical-list-item-checked::after {
141
+ border-color: var(--background-far);
142
+ border-style: solid;
143
+ border-width: 0 2px 2px 0;
144
+ content: "";
145
+ cursor: pointer;
146
+ display: block;
147
+ height: 6px;
148
+ left: 7px;
149
+ position: absolute;
150
+ right: 7px;
151
+ top: 6px;
152
+ transform: rotate(45deg);
153
+ width: 3px;
154
+ }
155
+
156
+ .lexical-code {
157
+ background-color: var(--hard-background-cards);
158
+ display: block;
159
+ font-size: calc(var(--s-1) * 1rem);
160
+ margin: 0;
161
+ margin-bottom: calc(var(--gap) / 2);
162
+ margin-top: calc(var(--gap) / 2);
163
+ overflow-x: auto;
164
+ padding-block: calc(var(--theme-default-padding) / 2);
165
+ padding-bottom: calc(var(--theme-default-padding) / 2);
166
+ padding-left: calc(var(--theme-default-padding) * 2);
167
+ position: relative;
168
+ tab-size: 2;
169
+ }
170
+
171
+ .lexical-code::before {
172
+ background-color: var(--hard-background-cards);
173
+ border-right: var(--theme-default-border-style) var(--ui-icons);
174
+ color: var(--pagraph);
175
+ content: attr(data-gutter);
176
+ left: 0;
177
+ padding: calc(var(--theme-default-padding) / 2);
178
+ position: absolute;
179
+ text-align: right;
180
+ top: 0;
181
+ white-space: pre-wrap;
182
+ }
183
+
105
184
  li:has(ol, ul) {
106
185
  list-style-type: none;
107
186
  }
108
187
 
188
+ a {
189
+ cursor: pointer;
190
+ }
191
+
192
+ blockquote {
193
+ border-left: 4px solid var(--ui-icons);
194
+ font-size: calc(var(--s0) * 1rem);
195
+ margin: 0;
196
+ margin-left: var(--gap);
197
+ padding-left: calc(var(--theme-default-padding) / 2);
198
+ }
199
+
109
200
  p,
110
201
  span,
111
202
  strong,
@@ -13,7 +13,7 @@ var _common = require("../../common");
13
13
  require("./styles.scss");
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
17
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } /* @pareto-engineering/generator-front 1.0.12 */ // Local Definitions
18
18
  const baseClassName = _exports.default.base;
19
19
  const componentClassName = 'link-input';