@telia-ace/knowledge-widget-ui 1.3.41-rc.0 → 1.3.41-rc.1
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/components/guide-list.d.ts +1 -0
- package/index.js +37 -37
- package/index.mjs +284 -282
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("@telia-ace/widget-ui"),$=require("@telia-ace/widget-utilities"),d=require("@emotion/styled"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("@telia-ace/widget-ui"),$=require("@telia-ace/widget-utilities"),d=require("@emotion/styled"),f=require("react"),y=require("@emotion/react"),T=({title:e="",className:t,id:a,parent:i,connection:o,type:r,target:l,href:h,children:c,connectionKey:m})=>{const g={},{name:p,params:u}=s.useRouteData();switch(r){case"default":case"guide":const{id:v,title:b}=i;let j=m||o;v!==a&&!m&&(j=void 0),g.routeName=p,g.params=$.createParams({...u,guide:a,connection:j,uriName:a===v?$.formatUrl(b):$.formatUrl(e)});break;case"link":g.href=h,g.target=l;break}return n.jsx(s.Link,{className:$.appendClassNames(t,"humany-dialog-link"),...g,children:c||n.jsxs(n.Fragment,{children:[r==="link"&&n.jsx(s.Icon,{faIcon:"link"}),n.jsx("span",{children:e})]})})},ge=f.forwardRef(({className:e,dialog:t,...a},i)=>t.length?n.jsx(pe,{className:$.appendClassNames(e,"humany-dialog"),items:t,renderItem:o=>n.jsx("li",{"data-dialog":o.connection,children:n.jsx(T,{...o})},o.connection),...a,ref:i}):null),pe=d(s.List)`
|
|
2
2
|
${s.list}
|
|
3
3
|
a {
|
|
4
4
|
min-width: 150px;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
i {
|
|
12
12
|
margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,xe=({trigger:e,header:t,className:a,animation:i,fullScreen:o,onToggle:r,children:l,ref:h,closeButtonAriaLabel:c,...m})=>n.jsx(s.Drawer,{className:$.appendClassNames(a,"humany-drawer-list"),trigger:e,header:t,animation:i,fullScreen:o,onToggle:r,closeButtonAriaLabel:c,children:n.jsx(ye,{...m,children:l})}),ye=d(s.ItemList)`
|
|
15
15
|
${s.itemList}
|
|
16
16
|
font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
|
|
17
17
|
padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.medium}};
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
font-weight: 300;
|
|
21
21
|
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
`,$e=({items:e,renderItem:t,trigger:a,header:i,children:o})=>n.jsx(s.Dropdown,{className:"humany-dropdown-actions",trigger:a,children:n.jsxs(ve,{children:[!!i&&n.jsx(be,{children:i}),e&&t&&n.jsx(we,{items:e,renderItem:t}),o]})}),ve=d.div`
|
|
24
24
|
background: #fff;
|
|
25
25
|
border: #ccc 1px solid;
|
|
26
26
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
27
27
|
font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
|
|
28
28
|
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
|
|
29
|
-
`,
|
|
29
|
+
`,be=d.div`
|
|
30
30
|
padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
|
|
31
31
|
padding-bottom: 0;
|
|
32
32
|
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
i {
|
|
51
51
|
margin-right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
53
|
+
`,we=d(s.List)`
|
|
54
54
|
list-style: none;
|
|
55
55
|
padding: 0;
|
|
56
56
|
margin: 0;
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
`,
|
|
76
|
+
`,je=({trigger:e,className:t,children:a,closeButtonAriaLabel:i,...o})=>n.jsx(s.Dropdown,{className:$.appendClassNames(t,"humany-dropdown-list"),closeButtonAriaLabel:i,trigger:e,children:n.jsx(ke,{...o,children:a})}),ke=d(s.ItemList)`
|
|
77
77
|
${s.itemList}
|
|
78
78
|
font-family: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.type}};
|
|
79
79
|
> div {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
`,
|
|
100
|
+
`,E=e=>y.css`
|
|
101
101
|
${e["data-loading"]&&"position: relative;"};
|
|
102
102
|
${e["data-loading"]&&"min-height: 150px;"}
|
|
103
103
|
> * {
|
|
@@ -107,17 +107,17 @@
|
|
|
107
107
|
.humany-loader {
|
|
108
108
|
opacity: ${e["data-loading"]?"1":"0"};
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`,Se=d(s.Icon)`
|
|
111
111
|
&& {
|
|
112
112
|
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
|
|
113
113
|
}
|
|
114
114
|
width: 1.2em;
|
|
115
|
-
`,
|
|
115
|
+
`,ze=d(s.Text)`
|
|
116
116
|
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.medium}};
|
|
117
117
|
font-weight: normal;
|
|
118
118
|
line-height: 1.2em;
|
|
119
119
|
color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
|
|
120
|
-
`,
|
|
120
|
+
`,H=d(s.Button)`
|
|
121
121
|
display: flex;
|
|
122
122
|
align-items: center;
|
|
123
123
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
flex: 1;
|
|
143
143
|
font-weight: 300;
|
|
144
144
|
}
|
|
145
|
-
`,
|
|
145
|
+
`,O=({addFavoriteTooltip:e,removeFavoriteCancelLabel:t,removeFavoriteConfirmLabel:a,removeFavoriteHeader:i,removeFavoriteLabel:o,removeFavoriteTooltip:r,id:l,isFavorite:h,guideTitle:c,buttonLabel:m="",actions:{addFavorite:g,removeFavorite:p}})=>{const u=f.useCallback(()=>{p(l)},[l,p]),v=f.useCallback(()=>{g(l)},[l,g]),b=`${h?r:e}${c?`: "${c}"`:""}`;return h?n.jsx(s.Confirm,{trigger:n.jsxs(P,{className:"humany-favorite-button",title:b,"aria-label":b,"data-favorite":"true","data-has-label":m?"true":"false","data-has-symbol":"true",children:[n.jsx(s.SymbolBadge,{size:16,symbol:{type:"Svg",content:"star-empty"}}),m&&n.jsx(s.StyledText,{children:m})]}),onConfirm:u,cancelLabel:t,confirmLabel:a,header:i,text:o}):n.jsxs(P,{className:"humany-favorite-button",title:b,"aria-label":b,onClick:v,"data-favorite":"false","data-has-label":m?"true":"false","data-has-symbol":"true",children:[n.jsx(s.SymbolBadge,{size:16,symbol:{type:"Svg",content:"star-empty"}}),m&&n.jsx(s.StyledText,{children:m})]})},P=d(H)`
|
|
146
146
|
grid-area: favorite;
|
|
147
147
|
|
|
148
148
|
&:focus-visible {
|
|
@@ -198,12 +198,12 @@
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
`}}
|
|
201
|
-
`,
|
|
201
|
+
`,Le=f.forwardRef(({onFeedback:e=()=>{},direction:t="horizontal",className:a,header:i,positive:o,negative:r,selected:l,...h},c)=>n.jsxs(Ce,{className:$.appendClassNames(a,"humany-feedback"),"data-direction":t,...s.convertToStringAttributes(h),ref:c,children:[!!i&&n.jsx(Ne,{children:i}),n.jsxs(A,{className:"humany-feedback-button",disabled:!!l,"data-selected":l==="positive","data-direction":t,onClick:()=>e("positive"),children:[n.jsx(s.Icon,{faIcon:"smile-o"}),n.jsx("span",{children:o})]}),n.jsxs(A,{className:"humany-feedback-button",disabled:!!l,"data-selected":l==="negative","data-direction":t,onClick:()=>e("negative"),children:[n.jsx(s.Icon,{faIcon:"frown-o"}),n.jsx("span",{children:r})]})]})),Ne=d(s.StyledText)`
|
|
202
202
|
font-weight: normal;
|
|
203
203
|
margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.normal}};
|
|
204
204
|
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
|
|
205
205
|
display: block;
|
|
206
|
-
`,
|
|
206
|
+
`,A=d(s.Button)`
|
|
207
207
|
display: inline-block;
|
|
208
208
|
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
|
|
209
209
|
font-weight: 300;
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
i {
|
|
226
226
|
margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
|
|
227
227
|
}
|
|
228
|
-
`,
|
|
228
|
+
`,Ce=d.div`
|
|
229
229
|
${e=>{var t;return e["data-direction"]==="vertical"&&y.css`
|
|
230
230
|
> button {
|
|
231
231
|
width: 100%;
|
|
@@ -234,16 +234,16 @@
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
`}}
|
|
237
|
-
`,
|
|
237
|
+
`,Te=()=>{const[e,t]=f.useState(null),a=s.useKeyPress("ArrowLeft"),i=s.useKeyPress("ArrowRight"),o=s.useKeyPress("ArrowUp"),r=s.useKeyPress("ArrowDown"),l=()=>{t(a?"left":i?"right":o?"up":r?"down":null)};return f.useEffect(l,[a,i,o,r]),e},Ie=(e,t)=>{const[a,i]=f.useState(e),o=f.useCallback(()=>setTimeout(()=>{i(e)},t),[t,i,e]);return f.useEffect(()=>{const r=o();return()=>{clearTimeout(r)}},[o]),a},W=()=>{const e=s.useContainer(),[t,a]=f.useState([]),i=e.get("favorites");f.useEffect(()=>{if(i){a(i.get());const{events:c}=e.get("$widget");return c.subscribe("widget:favorites-updated",(g,{updated:p})=>{a([...p])})}},[]);const o=c=>i?i.add(c):Promise.resolve([]),r=c=>i?i.remove(c):Promise.resolve([]),l=()=>i?i.clear():Promise.resolve([]),h=f.useCallback(c=>t.indexOf(c)>-1?r(c):o(c),[t]);return[t,f.useMemo(()=>({addFavorite:o,removeFavorite:r,clearFavorites:l,toggleFavorite:h}),[t])]},De=()=>{const[e,t]=f.useState(!1),a=f.useRef(),i=f.useCallback(()=>t(!0),[t]),o=f.useCallback(()=>t(!1),[t]);return s.useEventListener("mouseenter",i,a.current),s.useEventListener("mouseleave",o,a.current),[e,a]},Y=({format:e=s.DateFormats.YYYY_MM_DD_HH_MM,className:t="",byLabel:a="",modifiedLabel:i="",publishedLabel:o="",modifiedBy:r="",publishedBy:l="",showModified:h=!1,showPublished:c=!1,modified:m,published:g})=>{const p=c&&g?n.jsx(R,{format:e,timestamp:g}):null,u=h&&m?n.jsx(R,{format:e,timestamp:m}):null;return!p&&!u?null:n.jsxs(C,{className:$.appendClassNames(t,"humany-metadata"),children:[p&&n.jsxs(C,{className:"humany-published",children:[o,p,a&&l&&` ${a.replace("{{editor}}",l)}`]}),u&&n.jsxs(C,{className:"humany-modified",children:[p&&", ",i,u,a&&r&&` ${a.replace("{{editor}}",r)}`]})]})},R=d(s.Timestamp)`
|
|
238
238
|
&:not(:first-child) {
|
|
239
239
|
margin-left: 4px;
|
|
240
240
|
}
|
|
241
241
|
&:not(:last-child) {
|
|
242
242
|
margin-right: 4px;
|
|
243
243
|
}
|
|
244
|
-
`,
|
|
244
|
+
`,C=d(s.Text)`
|
|
245
245
|
font-style: italic;
|
|
246
|
-
`,
|
|
246
|
+
`,Be=({tags:e})=>e.filter(t=>t.symbol).length?n.jsx(Me,{className:"humany-guide-list-tags",items:e,renderItem:({id:t,symbol:a,title:i})=>a&&n.jsx("li",{"data-tag":t,children:n.jsx(Ee,{size:18,symbol:a,title:i})},t)}):null,Fe=f.forwardRef(({title:e,id:t,route:a,symbolSize:i,collapseUri:o,children:r},l)=>{const{params:h}=s.useRouteData();return n.jsxs(Pe,{ref:l,"data-guide":t,children:[n.jsx(s.TextLink,{"aria-expanded":!0,title:e,"aria-label":e,routeName:a,params:$.createParams({...h,uriName:o||void 0,id:void 0,guide:void 0,accordion:void 0}),text:e,children:n.jsx(s.SymbolBadge,{size:i,symbol:{type:"Svg",content:"caret-up"}})}),r]})}),Pe=d.li`
|
|
247
247
|
> a {
|
|
248
248
|
grid-column: 1/-1;
|
|
249
249
|
font-weight: bold;
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
> div {
|
|
254
254
|
grid-column: 1/-1;
|
|
255
255
|
}
|
|
256
|
-
`,
|
|
256
|
+
`,Ae=f.forwardRef(({expandable:e=!1,routing:t={},paramMappers:a={},symbolSize:i=11,pageRole:o="link",pageCaret:r="down",showTags:l=!1,showFavoriteToggle:h=!1,showTitleTooltip:c=!1,localPaging:m=!1,onItemClick:g=()=>{},dispatch:p=()=>{},metadata:u={},pageLabel:v,className:b,children:j,items:k,renderItem:z,addFavoriteTooltip:K,removeFavoriteCancelLabel:U,removeFavoriteConfirmLabel:G,removeFavoriteHeader:V,removeFavoriteLabel:J,removeFavoriteTooltip:Q,searchResultsEmptyLabel:X,...I},Z)=>{const ee=s.useIsTabbing(),L=f.useRef(),{guide:te="guide",page:se="index"}=t,{guide:ae=({id:x})=>$.createParams({guide:x}),page:D=()=>$.createParams()}=a,[ne,ie]=W(),oe=s.useContainer(),{events:re}=oe.get("$widget");f.useImperativeHandle(Z,()=>L.current);const N=x=>{const{id:w,title:S,tags:me,published:B,modified:F,publishedBy:he,modifiedBy:ue}=x;return n.jsxs("li",{"data-guide":w,"has-metadata":(!!(u!=null&&u.showPublished)&&!!B||!!(u!=null&&u.showModified)&&!!F).toString(),children:[n.jsx(s.TextLink,{className:"humany-guide-link",routeName:te,onClick:fe=>{g(fe,x),re.dispatch("tracking:guide-list-item-clicked",{guide:x})},params:ae(x),text:S,title:c?S:void 0,children:n.jsx(s.SymbolBadge,{size:i,symbol:{type:"Svg",content:e?"caret-down":"caret-right"}})}),h&&n.jsx(O,{guideTitle:S,addFavoriteTooltip:K,removeFavoriteCancelLabel:U,removeFavoriteConfirmLabel:G,removeFavoriteHeader:V,removeFavoriteLabel:J,removeFavoriteTooltip:Q,isFavorite:ne.indexOf(w)>-1,actions:ie,id:w}),l&&n.jsx(Be,{tags:me}),n.jsx(He,{...u,indent:e?void 0:i,modified:F,published:B,publishedBy:he,modifiedBy:ue})]},w)},le=f.useCallback((x,w,S)=>z?z(x,w,S,N):N(x),[z,N]),ce=f.useCallback(x=>{m&&(x.preventDefault(),p("page",D()))},[p,m]);f.useEffect(()=>{var w;const x=(w=L.current)==null?void 0:w.querySelector(".humany-guide-list > ul > li .humany-guide-link");x&&s.getHumanyIsTabbing()&&(x.focus(),s.setHumanyIsTabbing(!1))},[k]);const de=!!Object.keys(u).filter(x=>typeof u[x]<"u").length;return n.jsxs(Re,{className:$.appendClassNames(b,"humany-guide-list"),"data-item-count":k.length,items:k,renderItem:le,isTabbing:ee,expandable:e?"true":"false","grid-items":l||h||de?"true":"false",...s.convertToStringAttributes(I),ref:L,children:[v?n.jsx(s.TextLink,{text:v,title:v,"aria-label":v,routeName:se,role:o,params:D(),onClick:ce,children:n.jsx(s.SymbolBadge,{size:i,symbol:{type:"Svg",content:`caret-${r}`}})}):null,j,!I["data-loading"]&&k.length===0&&n.jsx("p",{children:X})]})}),Re=d(s.ItemList)`
|
|
257
257
|
${s.itemList}
|
|
258
258
|
padding: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.large}};
|
|
259
259
|
overflow: auto;
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
text-decoration: underline;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
`,
|
|
374
|
+
`,Me=d(s.List)`
|
|
375
375
|
${s.list}
|
|
376
376
|
display: flex;
|
|
377
377
|
margin: 0 0 0 auto;
|
|
@@ -384,7 +384,7 @@
|
|
|
384
384
|
align-items: center;
|
|
385
385
|
justify-content: space-between;
|
|
386
386
|
}
|
|
387
|
-
`,
|
|
387
|
+
`,Ee=d(s.SymbolBadge)`
|
|
388
388
|
display: block;
|
|
389
389
|
color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
|
|
390
390
|
${e=>{if(e.symbol.type==="Uri")return`
|
|
@@ -393,17 +393,17 @@
|
|
|
393
393
|
`;if(e.symbol.type==="FontAwesome")return`
|
|
394
394
|
font-size: ${e.size}px;
|
|
395
395
|
`}}
|
|
396
|
-
`,
|
|
396
|
+
`,He=d(Y)`
|
|
397
397
|
grid-area: metadata;
|
|
398
398
|
text-overflow: ellipsis;
|
|
399
399
|
overflow: hidden;
|
|
400
400
|
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
|
|
401
401
|
${e=>{var t;return typeof e.indent=="number"&&`text-indent: calc(${(t=e.theme.sizes)==null?void 0:t.small} * 2 + ${e.indent}px);`}}
|
|
402
|
-
`,
|
|
402
|
+
`,Oe=y.keyframes`
|
|
403
403
|
100% {
|
|
404
404
|
transform: rotate(360deg);
|
|
405
405
|
}
|
|
406
|
-
`,
|
|
406
|
+
`,We=y.keyframes`
|
|
407
407
|
0% {
|
|
408
408
|
stroke-dasharray: 1, 200;
|
|
409
409
|
stroke-dashoffset: 0;
|
|
@@ -416,8 +416,8 @@
|
|
|
416
416
|
stroke-dasharray: 89, 200;
|
|
417
417
|
stroke-dashoffset: -124px;
|
|
418
418
|
}
|
|
419
|
-
`,
|
|
420
|
-
animation: ${
|
|
419
|
+
`,Ye=d.svg`
|
|
420
|
+
animation: ${Oe} 2s linear infinite;
|
|
421
421
|
height: 100%;
|
|
422
422
|
transform-origin: center center;
|
|
423
423
|
width: 100%;
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
right: 0;
|
|
429
429
|
margin: auto;
|
|
430
430
|
transition: 200ms ease-out opacity;
|
|
431
|
-
`,
|
|
431
|
+
`,q=d.div`
|
|
432
432
|
position: absolute;
|
|
433
433
|
top: 0;
|
|
434
434
|
bottom: 0;
|
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
.humany-spinner-svg {
|
|
448
448
|
opacity: ${e=>e["data-loading"]?"1":"0"};
|
|
449
449
|
}
|
|
450
|
-
`,
|
|
450
|
+
`,qe=d.div`
|
|
451
451
|
position: relative;
|
|
452
452
|
margin: 0 auto;
|
|
453
453
|
width: 100px;
|
|
@@ -456,14 +456,14 @@
|
|
|
456
456
|
display: block;
|
|
457
457
|
padding-top: 100%;
|
|
458
458
|
}
|
|
459
|
-
`,
|
|
459
|
+
`,_e=d.circle`
|
|
460
460
|
stroke-dasharray: 1, 200;
|
|
461
461
|
stroke-dashoffset: 0;
|
|
462
|
-
animation: ${
|
|
462
|
+
animation: ${We} 1.5s ease-in-out infinite;
|
|
463
463
|
stroke-linecap: round;
|
|
464
464
|
stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
|
|
465
465
|
stroke-width: 2px;
|
|
466
|
-
`,
|
|
466
|
+
`,_=({loading:e=!1})=>n.jsx(q,{className:"humany-loader","data-loading":e,children:n.jsx(qe,{className:"humany-spinner",children:n.jsx(Ye,{className:"humany-spinner-svg",viewBox:"25 25 50 50",children:n.jsx(_e,{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"2","stroke-miterlimit":"10"})})})}),Ke=({className:e,showHeader:t,notificationList:a,loading:i,...o})=>{const[r,l]=f.useState(null),{id:h,title:c,symbol:m,notifications:g=[],defaultHeaderOptions:p={visible:!0}}=a||{};return!g.length&&!i?null:n.jsx(Ge,{...o,"data-loading":i,"data-show-header":typeof t=="boolean"?t:p.visible,className:$.appendClassNames(e,"humany-notification-list"),"data-notification-category":h,header:c,symbol:m,items:g,renderItem:({id:u,title:v,body:b,modified:j,expandable:k})=>n.jsx(Ve,{"data-notification":u,"data-expanded":k?r===u:!0,children:k?n.jsxs(n.Fragment,{children:[n.jsxs(Ue,{title:v,"aria-label":v,"aria-expanded":r===u,onClick:()=>l(r===u?null:u),children:[n.jsx("span",{children:v}),n.jsx(Je,{size:11,symbol:{type:"Svg",content:`caret-${r===u?"up":"down"}`}})]}),n.jsx(M,{html:b}),j&&n.jsx(Qe,{format:s.DateFormats.YYYY_MM_DD,timestamp:j})]}):n.jsx(M,{html:b})},u),children:n.jsx(_,{loading:i})})},Ue=d(s.Button)`
|
|
467
467
|
display: flex;
|
|
468
468
|
justify-content: space-between;
|
|
469
469
|
align-items: center;
|
|
@@ -488,8 +488,8 @@
|
|
|
488
488
|
text-decoration: underline;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
`,
|
|
492
|
-
${
|
|
491
|
+
`,Ge=d(s.ItemList)`
|
|
492
|
+
${E}
|
|
493
493
|
${s.itemList}
|
|
494
494
|
overflow: hidden;
|
|
495
495
|
justify-content: flex-start;
|
|
@@ -507,14 +507,14 @@
|
|
|
507
507
|
text-decoration: underline;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
`,
|
|
510
|
+
`,M=d(s.Paragraph)`
|
|
511
511
|
${s.genericHtml}
|
|
512
512
|
font-weight: 300;
|
|
513
513
|
|
|
514
514
|
p {
|
|
515
515
|
white-space: normal;
|
|
516
516
|
}
|
|
517
|
-
`,
|
|
517
|
+
`,Ve=d.li`
|
|
518
518
|
.humany-paragraph {
|
|
519
519
|
display: none;
|
|
520
520
|
&:not(:only-child) {
|
|
@@ -535,12 +535,12 @@
|
|
|
535
535
|
font-weight: 300;
|
|
536
536
|
color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.accent}};
|
|
537
537
|
}
|
|
538
|
-
`,
|
|
538
|
+
`,Je=d(s.SymbolBadge)`
|
|
539
539
|
margin: 0 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
|
|
540
540
|
line {
|
|
541
541
|
stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
|
|
542
542
|
}
|
|
543
|
-
`,
|
|
543
|
+
`,Qe=d(s.Timestamp)`
|
|
544
544
|
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.small}};
|
|
545
545
|
font-weight: 300;
|
|
546
|
-
`,
|
|
546
|
+
`,Xe=e=>new RegExp("^#","i").test(e),Ze=e=>({children:t,...a})=>{const{implementation:i,name:o}=e.get("$widget"),{href:r=""}=a;if(Xe(r))return n.jsx(s.AnchorLink,{smooth:!0,to:r,children:t});const l=i.bindings.map(m=>m.replace(/\./g,"\\.")).join("|"),c=new RegExp(`^((http[s]?:)?//)?(${l})/([^\\s]+)`).exec(r);if(c&&c.length>=4){const m=c[4];if(i.widgets.get(m)&&!m.startsWith("blob?")&&!m.startsWith(o))return n.jsx(s.WidgetLink,{widgetName:m,children:t})}return n.jsx("a",{...a,children:t})},et=(e,t=[])=>({transform:{a:a=>{const{children:i,...o}=a,r=o["data-target"];if(r&&t.length){const h=t.find(({connection:c})=>c===r);if(h)return n.jsx(T,{...h,children:i})}return Ze(e)(a)}}});exports.AccordionListItem=Fe;exports.DialogLink=T;exports.DialogList=ge;exports.DrawerList=xe;exports.DropdownActions=$e;exports.DropdownList=je;exports.FavoriteButton=O;exports.Feedback=Le;exports.GuideList=Ae;exports.Loader=_;exports.LoaderWrapper=q;exports.Metadata=Y;exports.NotificationList=Ke;exports.SmallCaret=Se;exports.StyledHeaderText=ze;exports.StyledListButton=H;exports.guideRenderInstructions=et;exports.loadingOpacity=E;exports.useArrowKeys=Te;exports.useDebounce=Ie;exports.useFavorites=W;exports.useHover=De;Object.keys(s).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>s[e]})});
|