@zeniai/web-components 4.4.70 → 4.4.71-betaAK1
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/Editor-D13LiK8V.cjs +269 -0
- package/dist/Editor-KtRfSJyD.js +919 -0
- package/dist/{SessionTimeoutPopup-D12fxo7a.cjs → SessionTimeoutPopup-JoJimbHb.cjs} +16408 -16947
- package/dist/{SessionTimeoutPopup-BKNhya21.js → SessionTimeoutPopup-aNJh0VqE.js} +73179 -74943
- package/dist/TaskDescriptionEditor-C_mttT9G.js +700 -0
- package/dist/TaskDescriptionEditor-DLuXATNl.cjs +197 -0
- package/dist/cockpit.cjs.js +254 -254
- package/dist/cockpit.esm.js +1449 -1449
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +112 -112
- package/dist/underline-C1X4r0Bi.js +223 -0
- package/dist/underline-CtPZKkkA.cjs +76 -0
- package/dist/vendor-@stripe-stripe-js-Bg6HyFI3.cjs +8 -0
- package/dist/vendor-@stripe-stripe-js-BmvP0myE.js +108 -0
- package/package.json +1 -1
- package/dist/assets/illustrative/ai-cfo.svg +0 -13
- package/dist/assets/illustrative/rewardsEmailTemplate/business-banking-icon.svg +0 -21
- package/dist/assets/illustrative/rewardsEmailTemplate/cards-icon.svg +0 -11
- package/dist/assets/interface/ai-icon-color-selected-filled-small.svg +0 -27
- package/dist/assets/interface/ai-icon-color-selected-small.svg +0 -20
- package/dist/assets/interface/ai-icon-selected-filled-plain.svg +0 -5
- package/dist/assets/interface/arrow-2-left.svg +0 -4
- package/dist/assets/interface/autofill-3.svg +0 -3
- package/dist/assets/interface/graph-trend.svg +0 -11
- package/dist/assets/interface/growth-round.svg +0 -5
- package/dist/assets/interface/saving-money-egg.svg +0 -15
- package/dist/assets/interface/treasury-thumbnail.png +0 -0
- package/dist/assets/logos/gmail-logo.svg +0 -20
- package/dist/assets/logos/microsoft365-logo.svg +0 -25
- package/dist/assets/oldicons/promoPages/usp-line.svg +0 -3
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./vendor-react-CzqSQR9J.cjs"),i=require("react"),f=require("@emotion/styled"),tt=require("@lexical/html"),R=require("@lexical/link"),M=require("@lexical/list"),rt=require("@lexical/react/LexicalComposer"),et=require("@lexical/react/LexicalComposerContext"),at=require("@lexical/react/LexicalContentEditable"),lt=require("@lexical/react/LexicalErrorBoundary"),ct=require("@lexical/react/LexicalHistoryPlugin"),dt=require("@lexical/react/LexicalLinkPlugin"),pt=require("@lexical/react/LexicalListPlugin"),ut=require("@lexical/react/LexicalRichTextPlugin"),I=require("@lexical/rich-text"),P=require("@lexical/selection"),H=require("@lexical/utils"),mt=require("@mui/material/styles"),l=require("lexical"),xt=require("react-dom"),s=require("./SessionTimeoutPopup-JoJimbHb.cjs"),c=require("./underline-CtPZKkkA.cjs"),gt=t=>t.replace(s.HTML_AMPERSAND_PATTERN,"&").replace(s.HTML_LESS_THAN_PATTERN,"<").replace(s.HTML_GREATER_THAN_PATTERN,">"),Et=new Set(["ADDRESS","ARTICLE","ASIDE","BLOCKQUOTE","DD","DIV","DL","DT","FIGURE","FOOTER","H1","H2","H3","H4","H5","H6","HEADER","LI","MAIN","NAV","OL","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"]),D=t=>t!=null&&t.nodeType===Node.ELEMENT_NODE&&Et.has(t.tagName),bt=t=>{const{previousSibling:o,nextSibling:n}=t,a=o==null||D(o),r=n==null||D(n);return a&&r&&(D(o)||D(n))},ht=t=>{const o=t.createTreeWalker(t.body,NodeFilter.SHOW_TEXT),n=[];let a=o.nextNode();for(;a!=null;)n.push(a),a=o.nextNode();n.forEach(r=>{if(r.parentNode==null||r.textContent==null)return;const d=r.textContent.replace(s.CRLF_OR_CR_PATTERN,`
|
|
2
|
+
`);if(!d.includes(`
|
|
3
|
+
`)||d.trim()===""&&bt(r))return;const u=t.createDocumentFragment();d.split(`
|
|
4
|
+
`).forEach((m,E)=>{E>0&&u.appendChild(t.createElement("br")),m!==""&&u.appendChild(t.createTextNode(m))}),r.parentNode.replaceChild(u,r)})},ft=200,jt=(t,o)=>{if(t.delete(o),t.add(o),t.size>ft){const n=t.values().next().value;n!=null&&t.delete(n)}},Rt=(t,o,n)=>t!==o&&!n.has(t),w=1,{taskManagement:{taskDetail:{descriptionEditorTooltip:T}},common:{texts:{bold:F,italic:U,underline:G,link:K,bulletList:W,indent:z,outdent:X,undo:V,redo:Q}}}=s.appLocale.getLocalizedStrings();function Y(t,o){o===null?(t.style.opacity="0",t.style.top="-1000px",t.style.left="-1000px"):(t.style.opacity="1",t.style.top=`${o.top+o.height+window.pageYOffset+10}px`,t.style.left=`${o.left+window.pageXOffset-t.offsetWidth/2+o.width/2}px`)}function ot(t){const o=t.anchor,n=t.focus,a=t.anchor.getNode(),r=t.focus.getNode();return a===r?a:t?.isBackward()?P.$isAtNodeEnd(n)?a:r:P.$isAtNodeEnd(o)?r:a}function Nt({editor:t}){const o=mt.useTheme(),n=i.useRef(null),a=i.useRef(null),r=i.useRef(!1),[d,u]=i.useState(""),[m,E]=i.useState(!1),[y,j]=i.useState(null),b=i.useCallback(()=>{const p=l.$getSelection();if(l.$isRangeSelection(p)){const k=ot(p),h=k.getParent();R.$isLinkNode(h)?u(h.getURL()):R.$isLinkNode(k)?u(k.getURL()):u("")}const A=n.current,C=window.getSelection(),O=document.activeElement;if(A===null)return;const S=t.getRootElement();if(p!==null&&C!=null&&!C.isCollapsed&&S!==null&&S.contains(C.anchorNode)){const k=C.getRangeAt(0);let h;if(C.anchorNode===S){let L=S;for(;L.firstElementChild!=null;)L=L.firstElementChild;h=L.getBoundingClientRect()}else h=k.getBoundingClientRect();r.current||Y(A,h),j(p)}else(!O||O.className!=="link-input")&&(Y(A,null),j(null),E(!1),u(""));return!0},[t]);return i.useEffect(()=>H.mergeRegister(t.registerUpdateListener(({editorState:p})=>{p.read(()=>{b()})}),t.registerCommand(l.SELECTION_CHANGE_COMMAND,()=>(b(),!0),w)),[t,b]),i.useEffect(()=>{t.getEditorState().read(()=>{b()})},[t,b]),i.useEffect(()=>{m&&a.current!=null&&a.current?.focus()},[m]),e.jsxRuntimeExports.jsx(At,{ref:n,children:m?e.jsxRuntimeExports.jsx("input",{ref:a,className:"link-input",value:d,onChange:p=>{u(p.target.value)},onKeyDown:p=>{p.key==="Enter"?(p.preventDefault(),y!==null&&(d!==""&&t.dispatchCommand(R.TOGGLE_LINK_COMMAND,d),E(!1))):p.key==="Escape"&&(p.preventDefault(),E(!1))}}):e.jsxRuntimeExports.jsxs(Ot,{className:"link-input",children:[e.jsxRuntimeExports.jsx($t,{href:d,target:"_blank",rel:"noopener noreferrer",children:d}),e.jsxRuntimeExports.jsx(_t,{className:"link-edit",type:"button",tabIndex:0,onMouseDown:p=>p.preventDefault(),onClick:()=>{E(!0)},children:e.jsxRuntimeExports.jsx(s.SvgEdit,{style:{width:s.Space.sp3,height:s.Space.sp3,color:o.colors.primary}})})]})})}function Tt({onChange:t}){const[o]=et.useLexicalComposerContext(),n=i.useRef(null),[a,r]=i.useState(!1),[d,u]=i.useState(!1),[m,E]=i.useState("paragraph"),[,y]=i.useState(!1),[j,b]=i.useState(!1),[p,A]=i.useState(!1),[C,O]=i.useState(!1),[S,k]=i.useState(!1),h=i.useCallback(()=>{const x=l.$getSelection();if(l.$isRangeSelection(x)){const v=x.anchor.getNode(),N=v.getKey()==="root"?v:v.getTopLevelElementOrThrow(),$=N.getKey();if(o.getElementByKey($)!==null)if(M.$isListNode(N)){const _=H.$getNearestNodeOfType(v,M.ListNode),nt=_?_.getTag():N.getTag();E(nt)}else{const _=I.$isHeadingNode(N)?N.getTag():N.getType();E(_)}k(x.hasFormat("bold")),A(x.hasFormat("italic")),O(x.hasFormat("underline")),y(P.$isParentElementRTL(x));const B=ot(x),it=B.getParent();R.$isLinkNode(it)||R.$isLinkNode(B)?b(!0):b(!1)}},[o]);i.useEffect(()=>H.mergeRegister(o.registerUpdateListener(({editorState:x})=>{x.read(()=>{h()})}),o.registerCommand(l.SELECTION_CHANGE_COMMAND,()=>(h(),!1),w),o.registerCommand(l.CAN_UNDO_COMMAND,x=>(r(x),!1),w),o.registerCommand(l.CAN_REDO_COMMAND,x=>(u(x),!1),w)),[o,h]),i.useEffect(()=>o.registerUpdateListener(({dirtyElements:x,dirtyLeaves:v,editorState:N,tags:$})=>{$.has("history-merge")||$.has("initial-content")||x.size===0&&v.size===0||N.read(()=>{const q=tt.$generateHtmlFromNodes(o,null);t(q)})}),[o,t]);const L=i.useCallback(()=>{j?o.dispatchCommand(R.TOGGLE_LINK_COMMAND,null):o.dispatchCommand(R.TOGGLE_LINK_COMMAND,"https://")},[o,j]),st=()=>{m!=="ul"?o.dispatchCommand(M.INSERT_UNORDERED_LIST_COMMAND,void 0):o.dispatchCommand(M.REMOVE_LIST_COMMAND,void 0)};return e.jsxRuntimeExports.jsxs(Mt,{className:"toolbar",ref:n,children:[e.jsxRuntimeExports.jsxs(J,{children:[e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:F,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:()=>o.dispatchCommand(l.FORMAT_TEXT_COMMAND,"bold"),className:"toolbar-item spaced "+(S?"active":""),"data-testid":"task-description-editor-toolbar-bold","aria-label":F,children:e.jsxRuntimeExports.jsx(c.SvgBold,{className:"format"})})}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:U,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:()=>o.dispatchCommand(l.FORMAT_TEXT_COMMAND,"italic"),className:"toolbar-item spaced "+(p?"active":""),"data-testid":"task-description-editor-toolbar-italic","aria-label":U,children:e.jsxRuntimeExports.jsx(c.SvgItalic,{className:"format"})})}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:G,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:()=>o.dispatchCommand(l.FORMAT_TEXT_COMMAND,"underline"),className:"toolbar-item spaced "+(C?"active":""),"data-testid":"task-description-editor-toolbar-underline","aria-label":G,children:e.jsxRuntimeExports.jsx(c.SvgUnderline,{className:"format"})})}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:K,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:L,className:"toolbar-item spaced "+(j?"active":""),"data-testid":"task-description-editor-toolbar-link","aria-label":K,children:e.jsxRuntimeExports.jsx(c.SvgLink,{className:"format"})})}),j&&xt.createPortal(e.jsxRuntimeExports.jsx(Nt,{editor:o}),document.body),e.jsxRuntimeExports.jsx(Z,{}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:W,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:st,className:"toolbar-item spaced "+(m==="ul"?"active":""),"data-testid":"task-description-editor-toolbar-bulletList","aria-label":W,children:e.jsxRuntimeExports.jsx(c.SvgList,{className:"format"})})}),e.jsxRuntimeExports.jsx(Z,{}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:T.leftAlign,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:()=>o.dispatchCommand(l.FORMAT_ELEMENT_COMMAND,"left"),className:"toolbar-item spaced","data-testid":"task-description-editor-toolbar-leftAlign","aria-label":T.leftAlign,children:e.jsxRuntimeExports.jsx(c.SvgLeft,{className:"format"})})}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:T.centerAlign,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:()=>o.dispatchCommand(l.FORMAT_ELEMENT_COMMAND,"center"),className:"toolbar-item spaced","data-testid":"task-description-editor-toolbar-centerAlign","aria-label":T.centerAlign,children:e.jsxRuntimeExports.jsx(c.SvgCentre,{className:"format"})})}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:T.rightAlign,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:()=>o.dispatchCommand(l.FORMAT_ELEMENT_COMMAND,"right"),className:"toolbar-item spaced","data-testid":"task-description-editor-toolbar-rightAlign","aria-label":T.rightAlign,children:e.jsxRuntimeExports.jsx(c.SvgRight,{className:"format"})})}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:T.justifyAlign,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:()=>o.dispatchCommand(l.FORMAT_ELEMENT_COMMAND,"justify"),className:"toolbar-item","data-testid":"task-description-editor-toolbar-justifyAlign","aria-label":T.justifyAlign,children:e.jsxRuntimeExports.jsx(c.SvgJustify,{className:"format"})})}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:z,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:()=>o.dispatchCommand(l.INDENT_CONTENT_COMMAND,void 0),className:"toolbar-item","data-testid":"task-description-editor-toolbar-indent","aria-label":z,children:e.jsxRuntimeExports.jsx(c.SvgIndent,{className:"format"})})}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:X,children:e.jsxRuntimeExports.jsx(g,{type:"button",onClick:()=>o.dispatchCommand(l.OUTDENT_CONTENT_COMMAND,void 0),className:"toolbar-item","data-testid":"task-description-editor-toolbar-outdent","aria-label":X,children:e.jsxRuntimeExports.jsx(c.SvgOutdent,{className:"format"})})})]}),e.jsxRuntimeExports.jsxs(J,{children:[e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:V,children:e.jsxRuntimeExports.jsx(g,{type:"button",disabled:!a,onClick:()=>o.dispatchCommand(l.UNDO_COMMAND,void 0),className:"toolbar-item spaced","data-testid":"task-description-editor-toolbar-undo","aria-label":V,children:e.jsxRuntimeExports.jsx(s.SvgUndo,{className:"format"})})}),e.jsxRuntimeExports.jsx(s.Tooltip,{placement:"bottom",title:Q,children:e.jsxRuntimeExports.jsx(g,{type:"button",disabled:!d,onClick:()=>o.dispatchCommand(l.REDO_COMMAND,void 0),className:"toolbar-item","data-testid":"task-description-editor-toolbar-redo","aria-label":Q,children:e.jsxRuntimeExports.jsx(c.SvgRedo,{className:"format"})})})]})]})}function Ct({emittedHtml:t,initialValue:o}){const[n]=et.useLexicalComposerContext(),a=i.useRef(void 0);return i.useEffect(()=>{const r=o??"";if(!Rt(r,a.current,t)){a.current=r;return}const d=a.current==null;if(a.current=r,r.trim()===""){d||n.update(()=>{const u=l.$getRoot();u.clear(),u.append(l.$createParagraphNode())},{tag:"initial-content"});return}n.update(()=>{const u=new DOMParser,m=r.trim(),E=m.startsWith("<p")||m.startsWith("<div")||m.startsWith("<ul")||m.startsWith("<ol")||m.startsWith("<h")?r:`<p>${gt(r)}</p>`,y=u.parseFromString(E,"text/html");ht(y);const j=tt.$generateNodesFromDOM(n,y),b=l.$getRoot();b.clear(),b.append(...j)},{tag:"initial-content"})},[n,o,t]),null}const kt={namespace:"TaskDescriptionEditor",onError(t){throw t},nodes:[I.HeadingNode,M.ListNode,M.ListItemNode,I.QuoteNode,R.AutoLinkNode,R.LinkNode],theme:c.theme};function yt({initialValue:t,placeholder:o,onChange:n}){const a=i.useRef(new Set).current,r=i.useCallback(d=>{jt(a,d),n(d)},[a,n]);return e.jsxRuntimeExports.jsxs(rt.LexicalComposer,{initialConfig:kt,children:[e.jsxRuntimeExports.jsx(c.EditorGlobalStyles,{}),e.jsxRuntimeExports.jsxs(St,{children:[e.jsxRuntimeExports.jsx(Tt,{onChange:r}),e.jsxRuntimeExports.jsxs(Lt,{children:[e.jsxRuntimeExports.jsx(ut.RichTextPlugin,{contentEditable:e.jsxRuntimeExports.jsx(at.ContentEditable,{className:"task-editor-input"}),placeholder:o!=null&&o!==""?e.jsxRuntimeExports.jsx(vt,{children:o}):null,ErrorBoundary:lt}),e.jsxRuntimeExports.jsx(Ct,{emittedHtml:a,initialValue:t}),e.jsxRuntimeExports.jsx(c.CustomPastePlugin,{}),e.jsxRuntimeExports.jsx(c.CustomTabPlugin,{}),e.jsxRuntimeExports.jsx(ct.HistoryPlugin,{}),e.jsxRuntimeExports.jsx(pt.ListPlugin,{}),e.jsxRuntimeExports.jsx(dt.LinkPlugin,{}),e.jsxRuntimeExports.jsx(c.PlaygroundAutoLinkPlugin,{}),e.jsxRuntimeExports.jsx(c.ListMaxIndentLevelPlugin,{maxDepth:7})]})]})]})}const St=f(s.StandardRegular)`
|
|
5
|
+
position: relative;
|
|
6
|
+
margin: ${s.Space.sp0};
|
|
7
|
+
border-radius: ${s.Space.sp2};
|
|
8
|
+
color: ${t=>t.theme.colors.primary};
|
|
9
|
+
text-align: left;
|
|
10
|
+
border: 1px solid ${t=>t.theme.colors.grey3};
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
margin-bottom: ${s.Space.sp3};
|
|
13
|
+
|
|
14
|
+
&:hover {
|
|
15
|
+
border: 1px solid ${t=>t.theme.colors.primary};
|
|
16
|
+
|
|
17
|
+
.toolbar {
|
|
18
|
+
border-bottom: 1px solid ${t=>t.theme.colors.primary};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:focus-within {
|
|
23
|
+
border: 1px solid ${t=>t.theme.colors.primary};
|
|
24
|
+
|
|
25
|
+
.toolbar {
|
|
26
|
+
border-bottom: 1px solid ${t=>t.theme.colors.primary};
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.task-editor-input {
|
|
31
|
+
min-height: 80px;
|
|
32
|
+
max-height: 240px;
|
|
33
|
+
overflow: auto;
|
|
34
|
+
resize: none;
|
|
35
|
+
${s.textStyles.largeRegular.css};
|
|
36
|
+
color: ${t=>t.theme.colors.primary};
|
|
37
|
+
position: relative;
|
|
38
|
+
tab-size: 1;
|
|
39
|
+
outline: 0;
|
|
40
|
+
padding: ${s.Space.sp3} 12px;
|
|
41
|
+
|
|
42
|
+
.editor__link {
|
|
43
|
+
color: ${t=>t.theme.colors.link};
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
}
|
|
46
|
+
.editor__link:hover {
|
|
47
|
+
text-decoration: underline;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.task-editor-input p {
|
|
53
|
+
margin: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.toolbar {
|
|
57
|
+
display: flex;
|
|
58
|
+
margin-bottom: 1px;
|
|
59
|
+
background: ${t=>t.theme.colors.grey5};
|
|
60
|
+
padding: ${s.Space.sp1};
|
|
61
|
+
border-top-left-radius: 10px;
|
|
62
|
+
border-top-right-radius: 10px;
|
|
63
|
+
vertical-align: middle;
|
|
64
|
+
border-bottom: 1px solid ${t=>t.theme.colors.grey3};
|
|
65
|
+
justify-content: space-between;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.toolbar button.toolbar-item {
|
|
69
|
+
border: 0;
|
|
70
|
+
display: flex;
|
|
71
|
+
background: none;
|
|
72
|
+
border-radius: ${s.Space.sp2};
|
|
73
|
+
padding: ${s.Space.sp1};
|
|
74
|
+
cursor: pointer;
|
|
75
|
+
vertical-align: middle;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.toolbar button.toolbar-item:disabled {
|
|
79
|
+
cursor: not-allowed;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.toolbar button.toolbar-item.spaced {
|
|
83
|
+
margin-right: 2px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.toolbar button.toolbar-item svg.format {
|
|
87
|
+
background-size: contain;
|
|
88
|
+
display: inline-block;
|
|
89
|
+
height: ${s.Space.sp3};
|
|
90
|
+
width: ${s.Space.sp3};
|
|
91
|
+
vertical-align: -0.25em;
|
|
92
|
+
display: flex;
|
|
93
|
+
color: ${t=>t.theme.colors.grey1};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.toolbar button.toolbar-item:disabled svg.format {
|
|
97
|
+
opacity: 0.2;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.toolbar button.toolbar-item.active {
|
|
101
|
+
svg.format {
|
|
102
|
+
color: ${t=>t.theme.colors.primary};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.toolbar .toolbar-item:hover:not([disabled]) {
|
|
107
|
+
svg.format {
|
|
108
|
+
color: ${t=>t.theme.colors.primary};
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.toolbar .divider {
|
|
113
|
+
width: 1px;
|
|
114
|
+
background-color: ${t=>t.theme.colors.background};
|
|
115
|
+
margin: ${s.Space.sp0} ${s.Space.sp1};
|
|
116
|
+
}
|
|
117
|
+
`,Lt=f.div`
|
|
118
|
+
background-color: transparent;
|
|
119
|
+
position: relative;
|
|
120
|
+
`,vt=f(s.LargeRegular)`
|
|
121
|
+
color: ${t=>t.theme.colors.grey2};
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
position: absolute;
|
|
124
|
+
text-overflow: ellipsis;
|
|
125
|
+
top: ${s.Space.sp3};
|
|
126
|
+
left: 12px;
|
|
127
|
+
user-select: none;
|
|
128
|
+
display: inline-block;
|
|
129
|
+
pointer-events: none;
|
|
130
|
+
`,Mt=f.div``,J=f.div`
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
gap: ${s.Space.sp1};
|
|
134
|
+
`,g=f.button``,Z=()=>e.jsxRuntimeExports.jsx("div",{className:"divider"}),At=f.div`
|
|
135
|
+
position: absolute;
|
|
136
|
+
z-index: 10000;
|
|
137
|
+
top: -10000px;
|
|
138
|
+
left: -10000px;
|
|
139
|
+
margin-top: -6px;
|
|
140
|
+
max-width: 300px;
|
|
141
|
+
width: 100%;
|
|
142
|
+
opacity: 0;
|
|
143
|
+
border: 1px solid ${t=>t.theme.colors.grey3};
|
|
144
|
+
background-color: ${t=>t.theme.colors.grey5};
|
|
145
|
+
box-shadow: ${s.Space.sp0} 5px 10px ${s.Colors.overlayLight};
|
|
146
|
+
border-radius: ${s.Space.sp2};
|
|
147
|
+
transition: opacity 0.5s;
|
|
148
|
+
|
|
149
|
+
.link-input {
|
|
150
|
+
display: block;
|
|
151
|
+
box-sizing: border-box;
|
|
152
|
+
padding: ${s.Space.sp3};
|
|
153
|
+
border-radius: ${s.Space.sp3};
|
|
154
|
+
background-color: ${t=>t.theme.colors.grey5};
|
|
155
|
+
${s.textStyles.standardRegular.css};
|
|
156
|
+
color: ${t=>t.theme.colors.primary};
|
|
157
|
+
border: 0;
|
|
158
|
+
outline: 0;
|
|
159
|
+
position: relative;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
button.link-edit {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
width: 35px;
|
|
166
|
+
position: absolute;
|
|
167
|
+
right: ${s.Space.sp0};
|
|
168
|
+
top: ${s.Space.sp0};
|
|
169
|
+
bottom: ${s.Space.sp0};
|
|
170
|
+
cursor: pointer;
|
|
171
|
+
background: none;
|
|
172
|
+
border: none;
|
|
173
|
+
padding: 0;
|
|
174
|
+
margin: 0;
|
|
175
|
+
|
|
176
|
+
&:focus {
|
|
177
|
+
outline: none;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
`,Ot=f.div`
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: center;
|
|
183
|
+
justify-content: space-between;
|
|
184
|
+
`,$t=f.a`
|
|
185
|
+
color: ${t=>t.theme.colors.link};
|
|
186
|
+
text-decoration: none;
|
|
187
|
+
display: block;
|
|
188
|
+
white-space: nowrap;
|
|
189
|
+
overflow: hidden;
|
|
190
|
+
text-overflow: ellipsis;
|
|
191
|
+
margin-right: 30px;
|
|
192
|
+
${s.textStyles.standardRegular.css};
|
|
193
|
+
|
|
194
|
+
&:hover {
|
|
195
|
+
text-decoration: underline;
|
|
196
|
+
}
|
|
197
|
+
`,_t=f.button``;exports.default=yt;
|