@telia-ace/knowledge-widget-components-contact-link 1.0.36-experimental.9 → 1.0.36
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.
|
@@ -1 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { Symbol } from '@telia-ace/knowledge-widget-core';
|
|
2
|
+
import { Container } from '@webprovisions/platform';
|
|
3
|
+
export type ContactLinkComponentProps = {
|
|
4
|
+
widget: string;
|
|
5
|
+
route: string;
|
|
6
|
+
mode: 'large' | 'compact';
|
|
7
|
+
iconSize: 'large' | 'small';
|
|
8
|
+
symbol?: Symbol;
|
|
9
|
+
label: string;
|
|
10
|
+
descriptionLabel: string;
|
|
11
|
+
textAlign: string;
|
|
12
|
+
};
|
|
13
|
+
declare const ContactLinkComponent: (container: Container) => Promise<void>;
|
|
14
|
+
export default ContactLinkComponent;
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
var A = Object.defineProperty, C = Object.defineProperties;
|
|
2
|
+
var B = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var m = Object.getOwnPropertySymbols;
|
|
4
|
+
var E = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var b = (e, t, n) => t in e ? A(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, g = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
E.call(t, n) && b(e, n, t[n]);
|
|
8
|
+
if (m)
|
|
9
|
+
for (var n of m(t))
|
|
10
|
+
w.call(t, n) && b(e, n, t[n]);
|
|
11
|
+
return e;
|
|
12
|
+
}, h = (e, t) => C(e, B(t));
|
|
13
|
+
var L = (e, t) => {
|
|
14
|
+
var n = {};
|
|
15
|
+
for (var o in e)
|
|
16
|
+
E.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
17
|
+
if (e != null && m)
|
|
18
|
+
for (var o of m(e))
|
|
19
|
+
t.indexOf(o) < 0 && w.call(e, o) && (n[o] = e[o]);
|
|
20
|
+
return n;
|
|
21
|
+
};
|
|
22
|
+
import { css as H } from "@emotion/react";
|
|
23
|
+
import a from "@emotion/styled";
|
|
24
|
+
import { useProperties as P, Text as p, Link as z, WidgetLink as M, SymbolBadge as T, linkTabStyle as W, contentBox as V, borderTabStyle as D } from "@telia-ace/knowledge-widget-ui";
|
|
25
|
+
import { appendClassNames as d } from "@telia-ace/widget-utilities";
|
|
26
|
+
import i from "react";
|
|
27
|
+
const Y = (n) => {
|
|
28
|
+
var o = n, { className: e } = o, t = L(o, ["className"]);
|
|
29
|
+
const {
|
|
30
|
+
widget: l,
|
|
31
|
+
route: r,
|
|
32
|
+
mode: u = "large",
|
|
33
|
+
iconSize: N = "large",
|
|
34
|
+
symbol: f,
|
|
35
|
+
descriptionLabel: c,
|
|
36
|
+
label: s,
|
|
37
|
+
textAlign: y
|
|
38
|
+
} = P(), $ = y || (u === "large" ? "center" : "right"), S = N === "large" ? "64" : "48", k = {
|
|
39
|
+
apiNotificationPriorityBy: "contacts"
|
|
40
|
+
};
|
|
41
|
+
if (u === "compact")
|
|
42
|
+
return /* @__PURE__ */ i.createElement(
|
|
43
|
+
F,
|
|
44
|
+
h(g({}, t), {
|
|
45
|
+
className: d(
|
|
46
|
+
e,
|
|
47
|
+
"humany-contact-link",
|
|
48
|
+
"humany-contact-link-compact"
|
|
49
|
+
),
|
|
50
|
+
textAlign: $
|
|
51
|
+
}),
|
|
52
|
+
c && /* @__PURE__ */ i.createElement(p, null, c),
|
|
53
|
+
r ? /* @__PURE__ */ i.createElement(z, { routeName: r }, s) : /* @__PURE__ */ i.createElement(
|
|
54
|
+
M,
|
|
55
|
+
{
|
|
56
|
+
"aria-haspopup": "dialog",
|
|
57
|
+
role: "button",
|
|
58
|
+
activationOptions: k,
|
|
59
|
+
widgetName: l
|
|
60
|
+
},
|
|
61
|
+
s
|
|
62
|
+
)
|
|
63
|
+
);
|
|
64
|
+
const x = /* @__PURE__ */ i.createElement(i.Fragment, null, f ? /* @__PURE__ */ i.createElement(T, { symbol: f }) : /* @__PURE__ */ i.createElement(
|
|
65
|
+
q,
|
|
66
|
+
{
|
|
67
|
+
width: S,
|
|
68
|
+
viewBox: "0 0 63 37",
|
|
69
|
+
fill: "none",
|
|
70
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
71
|
+
},
|
|
72
|
+
/* @__PURE__ */ i.createElement(
|
|
73
|
+
"path",
|
|
74
|
+
{
|
|
75
|
+
d: "M1 1H62M1 1L24.7579 15.6328M1 1V36M62 1V36M62 1L38.8842 15.5402M1 36H62M1 36L24.7579 15.6328M62 36L38.8842 15.5402M38.8842 15.5402L37.0898 16.6689C33.8642 18.6979 29.7658 18.7172 26.5212 16.7188L24.7579 15.6328",
|
|
76
|
+
stroke: "#990AE3"
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
), s && /* @__PURE__ */ i.createElement(j, null, s), c && /* @__PURE__ */ i.createElement(R, null, c));
|
|
80
|
+
return r ? /* @__PURE__ */ i.createElement(
|
|
81
|
+
O,
|
|
82
|
+
h(g({}, t), {
|
|
83
|
+
className: d(
|
|
84
|
+
e,
|
|
85
|
+
"humany-contact-link",
|
|
86
|
+
"humany-contact-link-large"
|
|
87
|
+
),
|
|
88
|
+
routeName: r
|
|
89
|
+
}),
|
|
90
|
+
x
|
|
91
|
+
) : /* @__PURE__ */ i.createElement(
|
|
92
|
+
I,
|
|
93
|
+
h(g({}, t), {
|
|
94
|
+
"aria-haspopup": "dialog",
|
|
95
|
+
role: "button",
|
|
96
|
+
className: d(
|
|
97
|
+
e,
|
|
98
|
+
"humany-contact-link",
|
|
99
|
+
"humany-contact-link-large"
|
|
100
|
+
),
|
|
101
|
+
textAlign: $,
|
|
102
|
+
widgetName: l,
|
|
103
|
+
activationOptions: k
|
|
104
|
+
}),
|
|
105
|
+
x
|
|
106
|
+
);
|
|
107
|
+
}, F = a.div`
|
|
108
|
+
text-align: ${(e) => e.textAlign};
|
|
109
|
+
font-weight: 300;
|
|
110
|
+
|
|
111
|
+
span,
|
|
112
|
+
a {
|
|
113
|
+
display: inline-block;
|
|
114
|
+
font-size: ${(e) => {
|
|
115
|
+
var t;
|
|
116
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
117
|
+
}};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
span {
|
|
121
|
+
margin: 0 ${(e) => {
|
|
122
|
+
var t;
|
|
123
|
+
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
124
|
+
}} 0 0;
|
|
125
|
+
}
|
|
126
|
+
a {
|
|
127
|
+
text-decoration: underline;
|
|
128
|
+
color: ${(e) => {
|
|
129
|
+
var t;
|
|
130
|
+
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
131
|
+
}};
|
|
132
|
+
&:focus-visible {
|
|
133
|
+
${W}
|
|
134
|
+
padding: ${(e) => {
|
|
135
|
+
var t, n;
|
|
136
|
+
return `calc(${(t = e.theme.sizes) == null ? void 0 : t.small} / 2) ${(n = e.theme.sizes) == null ? void 0 : n.small}`;
|
|
137
|
+
}};
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
`, v = (e) => {
|
|
141
|
+
var t, n, o, l;
|
|
142
|
+
return H`
|
|
143
|
+
${V(e)}
|
|
144
|
+
padding: ${(t = e.theme.sizes) == null ? void 0 : t.large};
|
|
145
|
+
text-align: center;
|
|
146
|
+
cursor: pointer;
|
|
147
|
+
text-decoration: none;
|
|
148
|
+
i {
|
|
149
|
+
font-size: ${(n = e.theme.fonts) == null ? void 0 : n.huge};
|
|
150
|
+
min-width: 1em;
|
|
151
|
+
min-height: 1em;
|
|
152
|
+
color: ${(o = e.theme.colors) == null ? void 0 : o.primary};
|
|
153
|
+
}
|
|
154
|
+
span {
|
|
155
|
+
color: ${(l = e.theme.colors) == null ? void 0 : l.text};
|
|
156
|
+
}
|
|
157
|
+
&:focus-visible {
|
|
158
|
+
${D(e)};
|
|
159
|
+
}
|
|
160
|
+
`;
|
|
161
|
+
}, I = a(M)`
|
|
162
|
+
${v}
|
|
163
|
+
text-align: ${(e) => e.textAlign};
|
|
164
|
+
`, O = a(z)`
|
|
165
|
+
${v}
|
|
166
|
+
`, R = a(p)`
|
|
167
|
+
line-height: 1.6em;
|
|
168
|
+
font-weight: 300;
|
|
169
|
+
font-size: ${(e) => {
|
|
170
|
+
var t;
|
|
171
|
+
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
172
|
+
}};
|
|
173
|
+
`, j = a(p)`
|
|
174
|
+
display: block;
|
|
175
|
+
font-size: ${(e) => {
|
|
176
|
+
var t;
|
|
177
|
+
return (t = e.theme.fonts) == null ? void 0 : t.medium;
|
|
178
|
+
}};
|
|
179
|
+
margin: ${(e) => {
|
|
180
|
+
var t;
|
|
181
|
+
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
182
|
+
}} 0;
|
|
183
|
+
`, q = a.svg`
|
|
184
|
+
align-self: center;
|
|
185
|
+
|
|
186
|
+
path {
|
|
187
|
+
vector-effect: non-scaling-stroke;
|
|
188
|
+
stroke: ${(e) => {
|
|
189
|
+
var t;
|
|
190
|
+
return (t = e.theme.colors) == null ? void 0 : t.primary;
|
|
191
|
+
}};
|
|
192
|
+
}
|
|
193
|
+
`;
|
|
194
|
+
export {
|
|
195
|
+
Y as default
|
|
196
|
+
};
|
|
197
|
+
//# sourceMappingURL=contact-link.a7a02c65.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contact-link.a7a02c65.js","sources":["../src/contact-link.tsx"],"sourcesContent":["import { css, Theme } from '@emotion/react';\nimport styled from '@emotion/styled';\nimport {\n borderTabStyle,\n contentBox,\n Link,\n linkTabStyle,\n SymbolBadge,\n Text,\n useProperties,\n WidgetLink,\n} from '@telia-ace/knowledge-widget-ui';\nimport { appendClassNames } from '@telia-ace/widget-utilities';\nimport React from 'react';\nimport { ContactLinkComponentProps } from './contact-link-component';\n\ntype Props = {\n className: string;\n};\n\nconst ContactLink: React.FC<Props> = ({ className, ...other }) => {\n const {\n widget,\n route,\n mode = 'large',\n iconSize = 'large',\n symbol,\n descriptionLabel,\n label,\n textAlign,\n } = useProperties<ContactLinkComponentProps>();\n\n const align = textAlign ? textAlign : mode === 'large' ? 'center' : 'right';\n const iconSizePx = iconSize === 'large' ? '64' : '48';\n const activationOptions = {\n apiNotificationPriorityBy: 'contacts',\n };\n\n if (mode === 'compact') {\n return (\n <CompactWrapper\n {...other}\n className={appendClassNames(\n className,\n 'humany-contact-link',\n 'humany-contact-link-compact'\n )}\n textAlign={align}\n >\n {descriptionLabel && <Text>{descriptionLabel}</Text>}\n {route ? (\n <Link routeName={route}>{label}</Link>\n ) : (\n <WidgetLink\n aria-haspopup=\"dialog\"\n role=\"button\"\n activationOptions={activationOptions}\n widgetName={widget}\n >\n {label}\n </WidgetLink>\n )}\n </CompactWrapper>\n );\n }\n\n const children = (\n <>\n {symbol ? (\n <SymbolBadge symbol={symbol} />\n ) : (\n <ContactIcon\n width={iconSizePx}\n viewBox=\"0 0 63 37\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M1 1H62M1 1L24.7579 15.6328M1 1V36M62 1V36M62 1L38.8842 15.5402M1 36H62M1 36L24.7579 15.6328M62 36L38.8842 15.5402M38.8842 15.5402L37.0898 16.6689C33.8642 18.6979 29.7658 18.7172 26.5212 16.7188L24.7579 15.6328\"\n stroke=\"#990AE3\"\n />\n </ContactIcon>\n )}\n {label && <Heading>{label}</Heading>}\n {descriptionLabel && <Description>{descriptionLabel}</Description>}\n </>\n );\n\n return route ? (\n <StyledLink\n {...other}\n className={appendClassNames(\n className,\n 'humany-contact-link',\n 'humany-contact-link-large'\n )}\n routeName={route}\n >\n {children}\n </StyledLink>\n ) : (\n <StyledWidgetLink\n {...other}\n aria-haspopup=\"dialog\"\n role=\"button\"\n className={appendClassNames(\n className,\n 'humany-contact-link',\n 'humany-contact-link-large'\n )}\n textAlign={align}\n widgetName={widget}\n activationOptions={activationOptions}\n >\n {children}\n </StyledWidgetLink>\n );\n};\n\nconst CompactWrapper = styled.div<{ textAlign: string } & any>`\n text-align: ${(p) => p.textAlign};\n font-weight: 300;\n\n span,\n a {\n display: inline-block;\n font-size: ${(p) => p.theme.fonts?.normal};\n }\n\n span {\n margin: 0 ${(p) => p.theme.sizes?.small} 0 0;\n }\n a {\n text-decoration: underline;\n color: ${(p) => p.theme.colors?.primary};\n &:focus-visible {\n ${linkTabStyle}\n padding: ${(p) => `calc(${p.theme.sizes?.small} / 2) ${p.theme.sizes?.small}`};\n }\n }\n`;\n\nconst styling = (p: { theme: Theme }) => css`\n ${contentBox(p)}\n padding: ${p.theme.sizes?.large};\n text-align: center;\n cursor: pointer;\n text-decoration: none;\n i {\n font-size: ${p.theme.fonts?.huge};\n min-width: 1em;\n min-height: 1em;\n color: ${p.theme.colors?.primary};\n }\n span {\n color: ${p.theme.colors?.text};\n }\n &:focus-visible {\n ${borderTabStyle(p)};\n }\n`;\n\nconst StyledWidgetLink = styled(WidgetLink)<any>`\n ${styling}\n text-align: ${(p) => p.textAlign};\n`;\n\nconst StyledLink = styled(Link)<any>`\n ${styling}\n`;\n\nconst Description = styled(Text)`\n line-height: 1.6em;\n font-weight: 300;\n font-size: ${(p) => p.theme.fonts?.normal};\n`;\n\nconst Heading = styled(Text)`\n display: block;\n font-size: ${(p) => p.theme.fonts?.medium};\n margin: ${(p) => p.theme.sizes?.normal} 0;\n`;\n\nconst ContactIcon = styled.svg`\n align-self: center;\n\n path {\n vector-effect: non-scaling-stroke;\n stroke: ${(p) => p.theme.colors?.primary};\n }\n`;\n\nexport default ContactLink;\n"],"names":["ContactLink","_a","_b","className","other","__objRest","widget","route","mode","iconSize","symbol","descriptionLabel","label","textAlign","useProperties","align","iconSizePx","activationOptions","React","CompactWrapper","__spreadProps","__spreadValues","appendClassNames","Text","Link","WidgetLink","children","SymbolBadge","ContactIcon","Heading","Description","StyledLink","StyledWidgetLink","styled","p","lin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act-link-component';
|
|
2
|
+
export default ContactLinkComponent;
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/contact-link-component.ts"],"sourcesContent":["import { Symbol } from '@telia-ace/knowledge-widget-core';\nimport { createReactComponent } from '@telia-ace/knowledge-widget-ui';\nimport { Container } from '@webprovisions/platform';\n\nexport type ContactLinkComponentProps = {\n widget: string;\n route: string;\n mode: 'large' | 'compact';\n iconSize: 'large' | 'small';\n symbol?: Symbol;\n label: string;\n descriptionLabel: string;\n textAlign: string;\n};\n\nconst ContactLinkComponent = (container: Container) => {\n return createReactComponent(container, 'contact-link', import('./contact-link'));\n};\n\nexport default ContactLinkComponent;\n"],"names":["ContactLinkComponent","container","createReactComponent","ContactLinkComponent$1"],"mappings":";AAeA,MAAMA,IAAuB,CAACC,MACnBC,EAAqBD,GAAW,gBAAgB,OAAO,6BAAiB,GAGnFE,IAAeH;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-components-contact-link",
|
|
3
|
-
"version": "1.0.36
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"description": "Contact link component for ACE Knowledge Widgets.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@telia-ace/knowledge-widget-core": "1.0.34
|
|
25
|
-
"@telia-ace/knowledge-widget-ui": "1.0.40
|
|
26
|
-
"@telia-ace/widget-utilities": "^1.0.
|
|
24
|
+
"@telia-ace/knowledge-widget-core": "^1.0.34",
|
|
25
|
+
"@telia-ace/knowledge-widget-ui": "^1.0.40",
|
|
26
|
+
"@telia-ace/widget-utilities": "^1.0.9",
|
|
27
27
|
"@webprovisions/platform": "^1.1.2"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|