@telia-ace/knowledge-widget-adapters 1.1.1-rc.0 → 1.1.1-rc.2

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.
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),c=require("@emotion/react"),l=require("@emotion/styled"),e=require("./index-ef2f6a78.js");require("react");require("react-dom");require("react-transition-group");require("react-router-dom");const u=l(e.Html)`
2
+ ${e.genericHtml}
3
+
4
+ ${t=>{var n;return e.headingElement(t)("h1",c.css`
5
+ font-weight: normal;
6
+ font-size: ${(n=t.theme.fonts)==null?void 0:n.medium};
7
+ `)}}
8
+ `,d=t=>{const{className:n,renderDefault:m=()=>{},body:{form:o},confirmation:r,htmlParseInstruction:s,disabled:i}=t;return r?a.jsx(u,{className:e.appendClassNames(n,"humany-contact-method-confirmation","humany-contact-method-email"),html:r,htmlParseInstruction:s}):o&&!i?a.jsx(e.Form,{...t,className:e.appendClassNames(n,"humany-contact-method-email")}):m()};exports.default=d;
@@ -0,0 +1,53 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { css as l } from "@emotion/react";
3
+ import c from "@emotion/styled";
4
+ import { H as f, g as d, h, a as e, F as u } from "./index-36ce2709.mjs";
5
+ import "react";
6
+ import "react-dom";
7
+ import "react-transition-group";
8
+ import "react-router-dom";
9
+ const p = c(f)`
10
+ ${d}
11
+
12
+ ${(t) => {
13
+ var m;
14
+ return h(t)(
15
+ "h1",
16
+ l`
17
+ font-weight: normal;
18
+ font-size: ${(m = t.theme.fonts) == null ? void 0 : m.medium};
19
+ `
20
+ );
21
+ }}
22
+ `, C = (t) => {
23
+ const {
24
+ className: m,
25
+ renderDefault: n = () => {
26
+ },
27
+ body: { form: r },
28
+ confirmation: o,
29
+ htmlParseInstruction: s,
30
+ disabled: i
31
+ } = t;
32
+ return o ? /* @__PURE__ */ a(
33
+ p,
34
+ {
35
+ className: e(
36
+ m,
37
+ "humany-contact-method-confirmation",
38
+ "humany-contact-method-email"
39
+ ),
40
+ html: o,
41
+ htmlParseInstruction: s
42
+ }
43
+ ) : r && !i ? /* @__PURE__ */ a(
44
+ u,
45
+ {
46
+ ...t,
47
+ className: e(m, "humany-contact-method-email")
48
+ }
49
+ ) : n();
50
+ };
51
+ export {
52
+ C as default
53
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),u=require("@emotion/styled");require("@emotion/react");const e=require("./index-ef2f6a78.js");require("react");require("react-dom");require("react-transition-group");require("react-router-dom");const l=({className:s,description:t,body:{freetext:n},htmlParseInstruction:i})=>n?r.jsxs("div",{className:e.appendClassNames(s,"humany-contact-method-free-text"),children:[r.jsx(o,{html:n,htmlParseInstruction:i}),t&&r.jsx(e.Description,{html:t,htmlParseInstruction:i})]}):null,o=u(e.Html)`
2
+ ${e.genericHtml};
3
+ `;exports.default=l;
@@ -0,0 +1,22 @@
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
+ import a from "@emotion/styled";
3
+ import "@emotion/react";
4
+ import { a as l, D as p, H as i, g as n } from "./index-36ce2709.mjs";
5
+ import "react";
6
+ import "react-dom";
7
+ import "react-transition-group";
8
+ import "react-router-dom";
9
+ const j = ({
10
+ className: e,
11
+ description: t,
12
+ body: { freetext: m },
13
+ htmlParseInstruction: o
14
+ }) => m ? /* @__PURE__ */ s("div", { className: l(e, "humany-contact-method-free-text"), children: [
15
+ /* @__PURE__ */ r(d, { html: m, htmlParseInstruction: o }),
16
+ t && /* @__PURE__ */ r(p, { html: t, htmlParseInstruction: o })
17
+ ] }) : null, d = a(i)`
18
+ ${n};
19
+ `;
20
+ export {
21
+ j as default
22
+ };