@telia-ace/knowledge-widget-components-guide 0.0.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/answer-version-picker.d.ts +11 -0
- package/categories.d.ts +9 -0
- package/feedback.d.ts +8 -0
- package/functions.d.ts +30 -0
- package/guide-9d79906b.js +196 -0
- package/guide-bea67580.mjs +923 -0
- package/guide-component.d.ts +70 -0
- package/guide.d.ts +8 -0
- package/index.d.ts +3 -0
- package/index.js +2 -0
- package/index.mjs +141 -0
- package/package.json +30 -0
- package/toolbar.d.ts +9 -0
- package/use-feedback.d.ts +5 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AvailablePerspectives, GuideProps } from './guide-component';
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
className?: string;
|
|
6
|
+
defaultAnswerVersionLabel: string;
|
|
7
|
+
availablePerspectives?: AvailablePerspectives[];
|
|
8
|
+
guide: GuideProps;
|
|
9
|
+
};
|
|
10
|
+
declare const AnswerVersionPicker: React.FC<Props>;
|
|
11
|
+
export default AnswerVersionPicker;
|
package/categories.d.ts
ADDED
package/feedback.d.ts
ADDED
package/functions.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PickerTypes } from '../../../knowledge/core/src/index.ts';
|
|
2
|
+
import { DispatchAction } from '../../../knowledge/ui/src/index.ts';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
import { GuideProps } from './guide-component';
|
|
5
|
+
|
|
6
|
+
export type FunctionListItem = {
|
|
7
|
+
type: string;
|
|
8
|
+
child: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
type Props = {
|
|
11
|
+
header?: string;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
printActionLabel?: string;
|
|
14
|
+
copyActionLabel?: string;
|
|
15
|
+
addFavoriteTooltip?: string;
|
|
16
|
+
removeFavoriteCancelLabel?: string;
|
|
17
|
+
removeFavoriteConfirmLabel?: string;
|
|
18
|
+
removeFavoriteHeader?: string;
|
|
19
|
+
removeFavoriteLabel?: string;
|
|
20
|
+
removeFavoriteTooltip?: string;
|
|
21
|
+
toolbarFunctionsCloseButtonAriaLabel?: string;
|
|
22
|
+
guide: GuideProps;
|
|
23
|
+
allowCopy?: boolean;
|
|
24
|
+
allowPrint?: boolean;
|
|
25
|
+
showFavoriteToggle?: boolean;
|
|
26
|
+
picker?: PickerTypes;
|
|
27
|
+
dispatch: DispatchAction;
|
|
28
|
+
};
|
|
29
|
+
declare const Functions: React.FC<Props>;
|
|
30
|
+
export default Functions;
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),E=require("@emotion/react"),r=require("@emotion/styled"),W=require("@telia-ace/knowledge-widget-adapters"),a=require("@telia-ace/knowledge-widget-ui"),V=require("@telia-ace/widget-types-grid"),D=require("@telia-ace/widget-utilities"),j=require("react"),$=require("@telia-ace/knowledge-widget-core"),Q=({className:e,defaultAnswerVersionLabel:t,guide:{perspective:n,perspectives:i},availablePerspectives:m=[]})=>{const{name:l,params:c}=a.useRouteData(),h=j.useMemo(()=>!i||!m.length?[]:m.filter(({name:d})=>!!i[d]).map(({name:d,title:g})=>({label:g,connection:i[d]})),[i,m]);return s.jsx(X,{className:D.appendClassNames(e,"humany-guide-answer-version-picker"),items:h,renderItem:d=>{const g=d.label==="Default"?t:d.label,y=n===d.connection,u=y&&(!c.connection||n===c.connection);return s.jsx("li",{"data-version":d.connection,children:s.jsx(Y,{as:u?"span":void 0,text:g,routeName:l,selected:y,"aria-label":g,title:g,params:{...c,connection:d.connection}},d.connection)},d.connection)}})},X=r(a.List)`
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
|
|
6
|
+
list-style: none;
|
|
7
|
+
padding: 0;
|
|
8
|
+
margin: 0;
|
|
9
|
+
|
|
10
|
+
li:not(:last-child) {
|
|
11
|
+
margin: 0 calc(${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} * 2) 0 0;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
li > span {
|
|
15
|
+
cursor: default;
|
|
16
|
+
}
|
|
17
|
+
`,Y=r(a.TextLink)`
|
|
18
|
+
font-weight: 300;
|
|
19
|
+
color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
|
|
20
|
+
text-decoration: none;
|
|
21
|
+
|
|
22
|
+
${e=>e.selected&&E.css`
|
|
23
|
+
font-weight: bold;
|
|
24
|
+
text-decoration: underline;
|
|
25
|
+
`}
|
|
26
|
+
|
|
27
|
+
&:focus-visible {
|
|
28
|
+
${a.paddedBorderTabStyle};
|
|
29
|
+
}
|
|
30
|
+
`,Z=r(W.ContactList)`
|
|
31
|
+
border-top: ${e=>e.theme.border};
|
|
32
|
+
${e=>e.backButtonShown==="true"&&`border-bottom: ${e.theme.border};`}
|
|
33
|
+
`,_=r(a.Feedback)`
|
|
34
|
+
${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.large} ${(n=e.theme.sizes)==null?void 0:n.large};`}}
|
|
35
|
+
`,ee=r(a.StyledHeaderText)`
|
|
36
|
+
${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.large} ${(n=e.theme.sizes)==null?void 0:n.large};`}}
|
|
37
|
+
|
|
38
|
+
display: block;
|
|
39
|
+
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
|
|
40
|
+
font-weight: bold;
|
|
41
|
+
`,te=({backButtonShown:e=!1,accordion:t=!1})=>{const n=a.useDispatch(),{loading:i=!1,dialog:m=[],guide:l,handoverContactMethods:c=[],contactHeader:h,showFeedback:d,feedbackDirection:g="horizontal",feedbackRecognitionLabel:y,feedbackGiven:u,feedbackHeader:p,positiveFeedbackLabel:b,negativeFeedbackLabel:B,contactFeedbackLabel:f}=a.useProperties(),[x,o]=j.useState(!1);return j.useEffect(()=>{u||o(!1)},[u]),!d||!l||!l.allowFeedback||i&&!u||m.length?null:u&&y&&!c.length&&!i?s.jsx(ee,{accordion:t?"true":"false",tabindex:-1,ref:k=>{!x&&k&&(o(!0),k.focus())},children:y}):l.hasHandover&&c.length?s.jsx(Z,{backButtonShown:e?"true":"false",accordion:t?"true":"false",header:h,contactMethods:c,dispatch:n}):s.jsx(_,{accordion:t?"true":"false",positive:b,negative:l.hasHandover?f:B,header:p,selected:u,onFeedback:k=>n("feedback",k),direction:g})},se=({guide:{categories:e=[]},toolbar:{picker:t=$.PickerTypes.NONE}})=>{const[n,i]=j.useState([]),m=a.useContainer();return j.useEffect(()=>{D.buildCategoryTrail("index",e.map(l=>l.toString()),m).then(l=>{i(l)})},[e]),n.length?s.jsx(a.Tooltip,{className:"humany-guide-category-tooltip",sticky:t===$.PickerTypes.DRAWER,content:s.jsx(s.Fragment,{children:n.map(l=>s.jsx(ne,{className:"humany-guide-category-trail",children:l.map((c,h)=>s.jsxs(a.Text,{className:"humany-guide-category-trail-segment",children:[c.symbol&&h===0&&s.jsx(a.SymbolBadge,{size:14,symbol:c.symbol}),c.title,h!==l.length-1&&s.jsx(ae,{className:"humany-category-separator",children:"/"})]},c.id))},l.map(c=>c.id).join(".")))}),children:t===$.PickerTypes.DRAWER?s.jsx(a.StyledListButton,{className:"humany-guide-category-tooltip-button","data-has-label":"false","data-has-symbol":"true",children:s.jsx(A,{size:19,symbol:{type:"Svg",content:"information"}})}):s.jsx(A,{size:19,symbol:{type:"Svg",content:"information"}})}):null},ne=r.div`
|
|
42
|
+
i,
|
|
43
|
+
svg {
|
|
44
|
+
margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:not(:last-child) {
|
|
48
|
+
margin: 0 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
|
|
49
|
+
}
|
|
50
|
+
`,ae=r(a.Text)`
|
|
51
|
+
margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
|
|
52
|
+
`,A=r(a.SymbolBadge)`
|
|
53
|
+
display: block;
|
|
54
|
+
`,oe=({header:e,tooltip:t,printActionLabel:n,copyActionLabel:i,addFavoriteTooltip:m,removeFavoriteCancelLabel:l,removeFavoriteConfirmLabel:c,removeFavoriteHeader:h,removeFavoriteLabel:d,removeFavoriteTooltip:g,toolbarFunctionsCloseButtonAriaLabel:y,allowCopy:u=!1,allowPrint:p=!1,showFavoriteToggle:b=!1,picker:B=$.PickerTypes.NONE,guide:f,dispatch:x})=>{const[o,k]=a.useFavorites(),v=j.useCallback(z=>{f&&x("copy",f)},[f,x]),C=j.useCallback(()=>{f&&x("print")},[f,x]),w=j.useMemo(()=>{const{id:z,title:P}=f,N=[];if(u&&N.push({type:"copy",child:s.jsxs(a.StyledListButton,{"data-has-label":i?"true":"false","data-has-symbol":"true",title:i,"aria-label":n,onClick:v,children:[s.jsx(I,{size:16,symbol:{type:"Svg",content:"copy"}}),i&&s.jsx(a.StyledText,{children:i})]})}),p&&N.push({type:"print",child:s.jsxs(a.StyledListButton,{"data-has-label":n?"true":"false","data-has-symbol":"true",title:n,"aria-label":n,onClick:C,children:[s.jsx(I,{size:16,symbol:{type:"Svg",content:"print"}}),n&&s.jsx(a.StyledText,{children:n})]})}),b){const R=o.indexOf(z)>-1;N.push({type:"favorite",child:s.jsx(a.FavoriteButton,{id:z,guideTitle:P,isFavorite:R,buttonLabel:R?g:m,addFavoriteTooltip:m,removeFavoriteCancelLabel:l,removeFavoriteConfirmLabel:c,removeFavoriteHeader:h,removeFavoriteLabel:d,removeFavoriteTooltip:g,actions:k})})}return N},[o,f,u,p,b,n,i,m,l,c,h,d,g]);if(!w.length)return null;const T=s.jsx(le,{tabIndex:0,title:t,"data-has-symbol":"true","data-has-label":"false",children:s.jsx(I,{symbol:{type:"Svg",content:"options"},size:18})}),S=({type:z,child:P})=>s.jsx("li",{"data-function-type":z,children:P},z);return B===$.PickerTypes.DROPDOWN?s.jsx(ie,{className:"humany-guide-functions-dropdown-list",header:e,items:w,trigger:T,renderItem:S,closeButtonAriaLabel:y}):B===$.PickerTypes.DRAWER?s.jsx(a.DrawerList,{className:"humany-guide-functions-drawer-list",animation:{type:a.DrawerAnimationType.SlideInBottom},header:e,items:w,trigger:T,renderItem:S,closeButtonAriaLabel:y}):null},I=r(a.SymbolBadge)`
|
|
55
|
+
circle {
|
|
56
|
+
fill: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
line,
|
|
60
|
+
path,
|
|
61
|
+
rect {
|
|
62
|
+
stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
|
|
63
|
+
}
|
|
64
|
+
`,ie=r(a.DropdownList)`
|
|
65
|
+
display: block;
|
|
66
|
+
min-height: auto;
|
|
67
|
+
`,le=r(a.StyledListButton)`
|
|
68
|
+
padding: calc(${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} * 2) 0;
|
|
69
|
+
`,re=(e,t)=>{var n;return((n=t.find(i=>i.id===e.id))==null?void 0:n.label)||""},ce=({header:e,tooltip:t,picker:n=$.PickerTypes.NONE,guide:i,...m})=>{const{name:l,params:c}=a.useRouteData(),h=j.useMemo(()=>Object.keys(i.translations||{}).reduce((u,p)=>{const b={};return b.key=p,b.id=(i.translations||{})[p],b.label=m[`${p}LanguageLabel`],(b.id||b.label)&&u.push(b),u},[]),[i,m]);if(!h.length)return null;const d=re(i,h),g=s.jsxs(de,{tabIndex:0,title:t,"data-has-symbol":"true","data-has-label":n===$.PickerTypes.DROPDOWN&&d?"true":"false",children:[n===$.PickerTypes.DROPDOWN&&s.jsxs(s.Fragment,{children:[d&&s.jsx(ue,{children:d}),s.jsx(he,{symbol:{type:"Svg",content:"caret-down"},size:11})]}),n===$.PickerTypes.DRAWER&&s.jsx(me,{symbol:{type:"Svg",content:"language"},size:20})]}),y=({label:u,key:p,id:b})=>s.jsx("li",{"data-language":p,children:s.jsx(be,{tabIndex:0,text:u,routeName:l,selected:i.id===b,params:D.createParams({...c,connection:void 0,guide:b})})},p);return n===$.PickerTypes.DROPDOWN?s.jsx(ge,{className:"humany-guide-languages-dropdown-list",header:e,items:h,trigger:g,renderItem:y}):n===$.PickerTypes.DRAWER?s.jsx(a.DrawerList,{className:"humany-guide-languages-drawer-list",animation:{type:a.DrawerAnimationType.SlideInBottom},header:e,items:h,trigger:g,renderItem:y}):null},de=r(a.StyledListButton)`
|
|
70
|
+
&&& {
|
|
71
|
+
margin: 0 ${e=>{var t;return`calc(${(t=e.theme.sizes)==null?void 0:t.small} * 2)`}} 0 0;
|
|
72
|
+
}
|
|
73
|
+
`,me=r(a.SymbolBadge)`
|
|
74
|
+
circle {
|
|
75
|
+
fill: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
line,
|
|
79
|
+
path,
|
|
80
|
+
rect {
|
|
81
|
+
stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
|
|
82
|
+
}
|
|
83
|
+
`,ue=r(a.Text)`
|
|
84
|
+
margin: 0 ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} 0 0;
|
|
85
|
+
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
|
|
86
|
+
`,he=r(a.SymbolBadge)`
|
|
87
|
+
align-self: flex-end;
|
|
88
|
+
stroke-width: 2px;
|
|
89
|
+
stroke-linecap: round;
|
|
90
|
+
|
|
91
|
+
&& {
|
|
92
|
+
width: 0.6em;
|
|
93
|
+
height: 1em;
|
|
94
|
+
}
|
|
95
|
+
line {
|
|
96
|
+
stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
|
|
97
|
+
}
|
|
98
|
+
`,ge=r(a.DropdownList)`
|
|
99
|
+
display: block;
|
|
100
|
+
min-height: auto;
|
|
101
|
+
`,be=r(a.TextLink)`
|
|
102
|
+
color: ${e=>{var t,n;return e.selected?(t=e.theme.colors)==null?void 0:t.primary:(n=e.theme.colors)==null?void 0:n.text}};
|
|
103
|
+
${e=>e.selected&&"font-weight: bold;"}
|
|
104
|
+
|
|
105
|
+
outline: none;
|
|
106
|
+
&:focus-visible {
|
|
107
|
+
${a.paddedBorderTabStyle}
|
|
108
|
+
text-decoration: underline;
|
|
109
|
+
}
|
|
110
|
+
`,fe=e=>{const{allowCopy:t=!1,allowPrint:n=!1,guideCategories:i=!1,language:m=!1,showFavoriteToggle:l=!1,picker:c=$.PickerTypes.NONE}=e;return!t&&!n&&!m&&!l&&!i||c===$.PickerTypes.NONE},ye=({className:e="",dispatch:t})=>{const{toolbarLanguageHeader:n,toolbarFunctionsHeader:i,toolbarLanguageTooltip:m,toolbarFunctionsTooltip:l,toolbarFunctionsCloseButtonAriaLabel:c,printActionLabel:h,copyActionLabel:d,addFavoriteTooltip:g,removeFavoriteCancelLabel:y,removeFavoriteConfirmLabel:u,removeFavoriteHeader:p,removeFavoriteLabel:b,removeFavoriteTooltip:B,guide:f,toolbar:x,...o}=a.useProperties();if(!f||!x||fe(x))return null;const{language:k,guideCategories:v,allowCopy:C,allowPrint:w,showFavoriteToggle:T,picker:S}=x;return s.jsxs(pe,{className:D.appendClassNames("humany-guide-toolbar",e),children:[k&&Object.keys(f.translations||{}).length>1&&s.jsx(ce,{guide:f,header:n,tooltip:m,picker:S,...o}),v&&s.jsx(se,{guide:f,toolbar:x}),(C||w||T)&&s.jsx(oe,{guide:f,header:i,tooltip:l,printActionLabel:h,copyActionLabel:d,addFavoriteTooltip:g,removeFavoriteCancelLabel:y,removeFavoriteConfirmLabel:u,removeFavoriteHeader:p,removeFavoriteLabel:b,removeFavoriteTooltip:B,toolbarFunctionsCloseButtonAriaLabel:c,allowCopy:C,allowPrint:w,showFavoriteToggle:T,picker:S,dispatch:t})]})},pe=r.div`
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
justify-content: space-between;
|
|
114
|
+
margin: 0 0 0 auto;
|
|
115
|
+
|
|
116
|
+
> :not(:last-child) {
|
|
117
|
+
margin: 0 calc(${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}} * 2) 0 0;
|
|
118
|
+
}
|
|
119
|
+
`,xe=j.forwardRef(({className:e,accordion:t=!1,...n},i)=>{const{loading:m=!1,dialog:l=[],contactMethods:c=[],showHeader:h=!0,showAnswerVersions:d=!1,defaultAnswerVersionLabel:g="Default",backButtonLabel:y,metadataByLabel:u,metadataModifiedLabel:p,metadataPublishedLabel:b,availablePerspectives:B,metadata:f,toolbar:x,guide:o,error:k}=a.useProperties(),{params:{connection:v,guide:C}}=a.useRouteData(),w=a.useContainer(),T=a.useChildren(),S=a.useDispatch(),z=j.useMemo(()=>({transform:{img:L=>s.jsx(a.Lightbox,{attrs:L,htmlBody:(o==null?void 0:o.body)||""}),a:L=>{const{children:U,...J}=L,q=J["data-target"];if(q&&l.length){const H=l.find(({connection:K})=>K===q);if(H)return s.jsx(a.DialogLink,{...H,children:U})}return a.embeddedLinkMapper(w)(L)}}}),[o,w,l]),P=j.useCallback(()=>{S("back")},[S]);if(!o&&!k&&!m)return a.createEmptyComponent(w,{...n,className:D.appendClassNames(e,"humany-guide")});const{id:N="",title:R="",body:O="",translations:M={}}=o||{};if(k&&k.status===404)return s.jsx(V.NotFound,{showSearch:!1});const F=!!t&&!!v,G=Object.keys(M).find(L=>M[L]===`${N}`);return s.jsxs($e,{ref:i,...n,"data-loading":m,className:D.appendClassNames(e,"humany-guide"),children:[s.jsxs(Le,{"data-loading":m,accordion:t?"true":"false",className:"humany-guide-content",children:[(d&&o||!!x)&&s.jsxs(Se,{className:"humany-guide-top",children:[d&&o&&s.jsx(Q,{defaultAnswerVersionLabel:g,availablePerspectives:B,guide:o}),!!x&&s.jsx(ye,{dispatch:S})]}),!!(R||O)&&s.jsx(ke,{className:"humany-guide-body",accordion:t?"true":"false",header:h&&R||void 0,html:O,htmlParseInstruction:z,lang:G}),l&&O.indexOf("h-option-link")===-1&&s.jsx(we,{dialog:l}),s.jsx(je,{backButtonShown:F?"true":"false",contactMethods:c,dispatch:S,guideId:o&&o.id}),!c.length&&C===(o==null?void 0:o.id)&&s.jsx(te,{backButtonShown:F,accordion:t}),F&&s.jsxs(Te,{"aria-label":y,onClick:P,children:[s.jsxs(Ce,{width:"7",height:"13",viewBox:"0 0 7 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[s.jsx("line",{x1:"6.64645",y1:"12.5513",x2:"0.648357",y2:"6.55319"}),s.jsx("line",{x1:"0.646447",y1:"6.64455",x2:"6.64454",y2:"0.646465"})]}),y&&s.jsx("span",{children:y})]}),f&&s.jsx(Be,{...f,modified:o==null?void 0:o.modified,published:o==null?void 0:o.published,modifiedBy:o==null?void 0:o.modifiedBy,publishedBy:o==null?void 0:o.publishedBy,byLabel:u,modifiedLabel:p,publishedLabel:b}),T.map(L=>s.jsx(ze,{id:L.id,branch:"default",embedded:!0},L.id))]}),s.jsx(a.Loader,{loading:m})]})}),$e=r.div`
|
|
120
|
+
${a.loadingOpacity}
|
|
121
|
+
min-width: 0;
|
|
122
|
+
`,ke=r(a.Paragraph)`
|
|
123
|
+
${a.genericHtml}
|
|
124
|
+
${e=>{var t;return`padding: ${(t=e.theme.sizes)==null?void 0:t.large};`}}
|
|
125
|
+
display: block;
|
|
126
|
+
line-height: 1.6em;
|
|
127
|
+
|
|
128
|
+
${e=>{var t,n;return a.headingElement(e)("h1",E.css`
|
|
129
|
+
font-size: ${(t=e.theme.fonts)==null?void 0:t.large};
|
|
130
|
+
font-weight: normal;
|
|
131
|
+
line-height: 1.6em;
|
|
132
|
+
line-height: 1.6em;
|
|
133
|
+
margin: 0 0 ${(n=e.theme.sizes)==null?void 0:n.small};
|
|
134
|
+
`)}}
|
|
135
|
+
|
|
136
|
+
p {
|
|
137
|
+
font-weight: 300;
|
|
138
|
+
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
|
|
139
|
+
color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
|
|
140
|
+
a {
|
|
141
|
+
display: inline;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`,je=r(W.ContactList)`
|
|
145
|
+
border-top: ${e=>e.theme.border};
|
|
146
|
+
${e=>e.backButtonShown==="true"&&`border-bottom: ${e.theme.border};`}
|
|
147
|
+
`,we=r(a.DialogList)`
|
|
148
|
+
${e=>{var t,n;return`padding: 0 ${(t=e.theme.sizes)==null?void 0:t.large} ${(n=e.theme.sizes)==null?void 0:n.large};`}}
|
|
149
|
+
display: block;
|
|
150
|
+
`,Se=r.div`
|
|
151
|
+
${e=>{var t,n;return`padding: calc(${(t=e.theme.sizes)==null?void 0:t.normal}*2) ${(n=e.theme.sizes)==null?void 0:n.large};`}}
|
|
152
|
+
display: flex;
|
|
153
|
+
justify-content: space-between;
|
|
154
|
+
align-items: center;
|
|
155
|
+
border-bottom: ${e=>e.theme.border};
|
|
156
|
+
border-radius: ${e=>`${e.theme.borderRadius} ${e.theme.borderRadius}`} 0 0;
|
|
157
|
+
background-color: #ffffff;
|
|
158
|
+
`,Le=r.div`
|
|
159
|
+
${a.contentBox}
|
|
160
|
+
display: block;
|
|
161
|
+
> a {
|
|
162
|
+
${W.contactLink}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
${e=>e.accordion==="true"&&E.css`
|
|
166
|
+
white-space: normal;
|
|
167
|
+
box-shadow: none;
|
|
168
|
+
background-color: #fafafa;
|
|
169
|
+
`}
|
|
170
|
+
`,Be=r(a.Metadata)`
|
|
171
|
+
display: block;
|
|
172
|
+
${e=>{var t,n;return`padding: calc(${(t=e.theme.sizes)==null?void 0:t.normal}*2) ${(n=e.theme.sizes)==null?void 0:n.large};`}}
|
|
173
|
+
font-weight: 300;
|
|
174
|
+
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
|
|
175
|
+
color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.text}};
|
|
176
|
+
border-top: ${e=>e.theme.border};
|
|
177
|
+
`,ze=r(V.Component)`
|
|
178
|
+
border-top: ${e=>e.theme.border};
|
|
179
|
+
`,Te=r(a.Button)`
|
|
180
|
+
${e=>{var t,n;return`padding: ${(t=e.theme.sizes)==null?void 0:t.normal} calc(${(n=e.theme.sizes)==null?void 0:n.normal} * 2);`}}
|
|
181
|
+
color: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
|
|
182
|
+
text-decoration: underline;
|
|
183
|
+
font-size: ${e=>{var t;return(t=e.theme.fonts)==null?void 0:t.normal}};
|
|
184
|
+
span {
|
|
185
|
+
font-weight: 300;
|
|
186
|
+
}
|
|
187
|
+
&:focus-visible {
|
|
188
|
+
${a.linkTabStyle}
|
|
189
|
+
padding: ${e=>{var t,n;return`calc(${(t=e.theme.sizes)==null?void 0:t.small} / 2) ${(n=e.theme.sizes)==null?void 0:n.small}`}};
|
|
190
|
+
}
|
|
191
|
+
`,Ce=r.svg`
|
|
192
|
+
margin-right: ${e=>{var t;return(t=e.theme.sizes)==null?void 0:t.small}};
|
|
193
|
+
line {
|
|
194
|
+
stroke: ${e=>{var t;return(t=e.theme.colors)==null?void 0:t.primary}};
|
|
195
|
+
}
|
|
196
|
+
`;exports.default=xe;
|