@selfdecode/sd-component-library 4.0.143 → 4.0.145
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/lib/components/links/link/interfaces.d.ts +1 -0
- package/lib/sd-component-library100.js +2 -2
- package/lib/sd-component-library101.js +3 -3
- package/lib/sd-component-library102.js +2 -2
- package/lib/sd-component-library104.js +4 -4
- package/lib/sd-component-library106.js +4 -4
- package/lib/sd-component-library111.js +1 -1
- package/lib/sd-component-library117.js +1 -1
- package/lib/sd-component-library118.js +1 -1
- package/lib/sd-component-library120.js +1 -1
- package/lib/sd-component-library121.js +1 -1
- package/lib/sd-component-library126.js +1 -1
- package/lib/sd-component-library127.js +1 -1
- package/lib/sd-component-library133.js +3 -3
- package/lib/sd-component-library134.js +1 -1
- package/lib/sd-component-library136.js +2 -2
- package/lib/sd-component-library168.js +1 -1
- package/lib/sd-component-library171.js +1 -1
- package/lib/sd-component-library172.js +4 -4
- package/lib/sd-component-library197.js +3 -3
- package/lib/sd-component-library200.js +2 -60
- package/lib/sd-component-library200.js.map +1 -1
- package/lib/sd-component-library201.js +30 -2
- package/lib/sd-component-library201.js.map +1 -1
- package/lib/sd-component-library202.js +590 -21
- package/lib/sd-component-library202.js.map +1 -1
- package/lib/sd-component-library203.js +56 -595
- package/lib/sd-component-library203.js.map +1 -1
- package/lib/sd-component-library207.js +18 -21
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +64 -3
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +23 -3
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library210.js +39 -17
- package/lib/sd-component-library210.js.map +1 -1
- package/lib/sd-component-library211.js +19 -62
- package/lib/sd-component-library211.js.map +1 -1
- package/lib/sd-component-library212.js +3 -23
- package/lib/sd-component-library212.js.map +1 -1
- package/lib/sd-component-library213.js +3 -40
- package/lib/sd-component-library213.js.map +1 -1
- package/lib/sd-component-library214.js +128 -13
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +13 -3
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +14 -3
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +3 -129
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +3 -13
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +3 -65
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +52 -3
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +46 -3
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +54 -41
- package/lib/sd-component-library222.js.map +1 -1
- package/lib/sd-component-library223.js +3 -46
- package/lib/sd-component-library223.js.map +1 -1
- package/lib/sd-component-library230.js +1 -1
- package/lib/sd-component-library231.js +1 -1
- package/lib/sd-component-library233.js +64 -129
- package/lib/sd-component-library233.js.map +1 -1
- package/lib/sd-component-library235.js +36 -40
- package/lib/sd-component-library235.js.map +1 -1
- package/lib/sd-component-library236.js +12 -7
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +21 -21
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +109 -20
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +45 -46
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library240.js +23 -74
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +53 -2
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +20 -63
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +20 -43
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +47 -12
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +41 -21
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +22 -104
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +2 -47
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +74 -23
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +25 -49
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library250.js +3 -325
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +24 -5
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +3 -41
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +324 -26
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +5 -29
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +2 -3
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +2 -24
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +129 -3
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +43 -21
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +8 -22
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library260.js +25 -30
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +21 -50
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +30 -134
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +119 -59
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +38 -63
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +74 -9
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +72 -47
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +25 -85
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +19 -90
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +120 -25
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +117 -16
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +10 -125
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +39 -111
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +9 -10
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +49 -48
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library275.js +90 -2
- package/lib/sd-component-library275.js.map +1 -1
- package/lib/sd-component-library276.js +92 -2
- package/lib/sd-component-library276.js.map +1 -1
- package/lib/sd-component-library279.js +70 -10
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +101 -69
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library281.js +95 -91
- package/lib/sd-component-library281.js.map +1 -1
- package/lib/sd-component-library282.js +10 -106
- package/lib/sd-component-library282.js.map +1 -1
- package/lib/sd-component-library296.js +88 -20
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +50 -34
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library298.js +4 -92
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library299.js +25 -51
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +4 -5
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +35 -4
- package/lib/sd-component-library301.js.map +1 -1
- package/lib/sd-component-library303.js +1 -1
- package/lib/sd-component-library315.js +1 -1
- package/lib/sd-component-library317.js +6 -90
- package/lib/sd-component-library317.js.map +1 -1
- package/lib/sd-component-library318.js +90 -6
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library48.js +1 -1
- package/lib/sd-component-library49.js +1 -1
- package/lib/sd-component-library51.js +3 -3
- package/lib/sd-component-library52.js +2 -2
- package/lib/sd-component-library53.js +2 -2
- package/lib/sd-component-library60.js +1 -1
- package/lib/sd-component-library62.js +3 -3
- package/lib/sd-component-library63.js +1 -1
- package/lib/sd-component-library64.js +1 -1
- package/lib/sd-component-library70.js +2 -2
- package/lib/sd-component-library72.js +3 -3
- package/lib/sd-component-library74.js +2 -2
- package/lib/sd-component-library75.js +3 -3
- package/lib/sd-component-library76.js +1 -1
- package/lib/sd-component-library77.js +1 -1
- package/lib/sd-component-library79.js +1 -1
- package/lib/sd-component-library81.js +9 -7
- package/lib/sd-component-library81.js.map +1 -1
- package/lib/sd-component-library89.js +3 -3
- package/lib/sd-component-library92.js +3 -3
- package/lib/sd-component-library94.js +5 -5
- package/lib/sd-component-library98.js +2 -2
- package/lib/sd-component-library99.js +3 -3
- package/package.json +1 -1
|
@@ -1,43 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { Box as a } from "rebass";
|
|
4
|
-
import { AutocompleteOptionBox as n } from "./sd-component-library290.js";
|
|
5
|
-
import { HorizontalDivider as d } from "./sd-component-library48.js";
|
|
6
|
-
function f(s) {
|
|
7
|
-
const { results: t, value: i, onSelect: l, translateContent: x = !0 } = s;
|
|
8
|
-
return /* @__PURE__ */ o.jsx(
|
|
9
|
-
a,
|
|
10
|
-
{
|
|
11
|
-
sx: {
|
|
12
|
-
position: "absolute",
|
|
13
|
-
top: "100%",
|
|
14
|
-
bg: "white",
|
|
15
|
-
width: "100%",
|
|
16
|
-
borderRadius: "0px 0px 3px 3px",
|
|
17
|
-
borderWidth: "1px",
|
|
18
|
-
borderStyle: "solid",
|
|
19
|
-
borderColor: "#C8CCE5",
|
|
20
|
-
boxShadow: "2px 3px 10px rgba(211,223,255,0.25)",
|
|
21
|
-
zIndex: 100
|
|
22
|
-
},
|
|
23
|
-
className: x ? void 0 : "no-translate",
|
|
24
|
-
"data-test": "results-box",
|
|
25
|
-
children: t.map(({ synonyms: r }, e) => /* @__PURE__ */ o.jsxs(p.Fragment, { children: [
|
|
26
|
-
/* @__PURE__ */ o.jsx(
|
|
27
|
-
n,
|
|
28
|
-
{
|
|
29
|
-
value: i,
|
|
30
|
-
synonyms: r,
|
|
31
|
-
onSelect: l
|
|
32
|
-
},
|
|
33
|
-
r.join()
|
|
34
|
-
),
|
|
35
|
-
e !== t.length - 1 && /* @__PURE__ */ o.jsx(d, { color: "cl_lightGrey" })
|
|
36
|
-
] }, e))
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
const e = (a) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32.531 33", ...a }, /* @__PURE__ */ t.createElement("path", { d: "M14.524,22.5v6a4.5,4.5,0,0,0,4.5,4.5l6-13.5V3H8.1a3,3,0,0,0-3,2.55l-2.07,13.5a3,3,0,0,0,3,3.45ZM25.024,3h4.5a3,3,0,0,1,3,3V16.5a3,3,0,0,1-3,3h-4.5", transform: "translate(-1.493 -1.5)" }));
|
|
40
3
|
export {
|
|
41
|
-
|
|
4
|
+
e as ReactComponent
|
|
42
5
|
};
|
|
43
6
|
//# sourceMappingURL=sd-component-library213.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library213.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library213.js","sources":["../src/components/boolean-feedback/thumbs-feedback/assets/thumbs-down.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMi41MzEgMzMiPgogICAgPHBhdGgKICAgICAgICBkPSJNMTQuNTI0LDIyLjV2NmE0LjUsNC41LDAsMCwwLDQuNSw0LjVsNi0xMy41VjNIOC4xYTMsMywwLDAsMC0zLDIuNTVsLTIuMDcsMTMuNWEzLDMsMCwwLDAsMywzLjQ1Wk0yNS4wMjQsM2g0LjVhMywzLDAsMCwxLDMsM1YxNi41YTMsMywwLDAsMS0zLDNoLTQuNSIKICAgICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMS40OTMgLTEuNSkiIC8+Cjwvc3ZnPgo=\""],"names":["SvgThumbsDown","props","React"],"mappings":";AACK,MAACA,IAAgB,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,iBAAiB,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,GAAG,sJAAsJ,WAAW,0BAA0B,CAAC;"}
|
|
@@ -1,17 +1,132 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { commonjsGlobal as a } from "./sd-component-library283.js";
|
|
2
|
+
import { __exports as h } from "./sd-component-library284.js";
|
|
3
|
+
import d from "react";
|
|
4
|
+
import { f as g } from "./sd-component-library285.js";
|
|
5
|
+
import { p as y } from "./sd-component-library286.js";
|
|
6
|
+
var v = a && a.__extends || function() {
|
|
7
|
+
var t = function(r, e) {
|
|
8
|
+
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
|
|
9
|
+
n.__proto__ = o;
|
|
10
|
+
} || function(n, o) {
|
|
11
|
+
for (var i in o)
|
|
12
|
+
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
13
|
+
}, t(r, e);
|
|
14
|
+
};
|
|
15
|
+
return function(r, e) {
|
|
16
|
+
if (typeof e != "function" && e !== null)
|
|
17
|
+
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
18
|
+
t(r, e);
|
|
19
|
+
function n() {
|
|
20
|
+
this.constructor = r;
|
|
21
|
+
}
|
|
22
|
+
r.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
|
|
23
|
+
};
|
|
24
|
+
}(), p = a && a.__assign || function() {
|
|
25
|
+
return p = Object.assign || function(t) {
|
|
26
|
+
for (var r, e = 1, n = arguments.length; e < n; e++) {
|
|
27
|
+
r = arguments[e];
|
|
28
|
+
for (var o in r)
|
|
29
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
}, p.apply(this, arguments);
|
|
33
|
+
}, b = a && a.__createBinding || (Object.create ? function(t, r, e, n) {
|
|
34
|
+
n === void 0 && (n = e), Object.defineProperty(t, n, { enumerable: !0, get: function() {
|
|
35
|
+
return r[e];
|
|
36
|
+
} });
|
|
37
|
+
} : function(t, r, e, n) {
|
|
38
|
+
n === void 0 && (n = e), t[n] = r[e];
|
|
39
|
+
}), O = a && a.__setModuleDefault || (Object.create ? function(t, r) {
|
|
40
|
+
Object.defineProperty(t, "default", { enumerable: !0, value: r });
|
|
41
|
+
} : function(t, r) {
|
|
42
|
+
t.default = r;
|
|
43
|
+
}), m = a && a.__importStar || function(t) {
|
|
44
|
+
if (t && t.__esModule)
|
|
45
|
+
return t;
|
|
46
|
+
var r = {};
|
|
47
|
+
if (t != null)
|
|
48
|
+
for (var e in t)
|
|
49
|
+
e !== "default" && Object.prototype.hasOwnProperty.call(t, e) && b(r, t, e);
|
|
50
|
+
return O(r, t), r;
|
|
51
|
+
}, j = a && a.__rest || function(t, r) {
|
|
52
|
+
var e = {};
|
|
53
|
+
for (var n in t)
|
|
54
|
+
Object.prototype.hasOwnProperty.call(t, n) && r.indexOf(n) < 0 && (e[n] = t[n]);
|
|
55
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
56
|
+
for (var o = 0, n = Object.getOwnPropertySymbols(t); o < n.length; o++)
|
|
57
|
+
r.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[o]) && (e[n[o]] = t[n[o]]);
|
|
58
|
+
return e;
|
|
59
|
+
}, R = a && a.__importDefault || function(t) {
|
|
60
|
+
return t && t.__esModule ? t : { default: t };
|
|
61
|
+
};
|
|
62
|
+
Object.defineProperty(h, "__esModule", { value: !0 });
|
|
63
|
+
var f = m(d), C = R(g), l = m(y);
|
|
64
|
+
function c(t) {
|
|
65
|
+
return t && t.replace(/ |\u202F|\u00A0/g, " ");
|
|
66
|
+
}
|
|
67
|
+
function E(t) {
|
|
68
|
+
var r = document.createTextNode("");
|
|
69
|
+
t.appendChild(r);
|
|
70
|
+
var e = document.activeElement === t;
|
|
71
|
+
if (r !== null && r.nodeValue !== null && e) {
|
|
72
|
+
var n = window.getSelection();
|
|
73
|
+
if (n !== null) {
|
|
74
|
+
var o = document.createRange();
|
|
75
|
+
o.setStart(r, r.nodeValue.length), o.collapse(!0), n.removeAllRanges(), n.addRange(o);
|
|
76
|
+
}
|
|
77
|
+
t instanceof HTMLElement && t.focus();
|
|
12
78
|
}
|
|
13
|
-
|
|
79
|
+
}
|
|
80
|
+
var w = (
|
|
81
|
+
/** @class */
|
|
82
|
+
function(t) {
|
|
83
|
+
v(r, t);
|
|
84
|
+
function r() {
|
|
85
|
+
var e = t !== null && t.apply(this, arguments) || this;
|
|
86
|
+
return e.lastHtml = e.props.html, e.el = typeof e.props.innerRef == "function" ? { current: null } : f.createRef(), e.getEl = function() {
|
|
87
|
+
return (e.props.innerRef && typeof e.props.innerRef != "function" ? e.props.innerRef : e.el).current;
|
|
88
|
+
}, e.emitChange = function(n) {
|
|
89
|
+
var o = e.getEl();
|
|
90
|
+
if (o) {
|
|
91
|
+
var i = o.innerHTML;
|
|
92
|
+
if (e.props.onChange && i !== e.lastHtml) {
|
|
93
|
+
var u = Object.assign({}, n, {
|
|
94
|
+
target: {
|
|
95
|
+
value: i
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
e.props.onChange(u);
|
|
99
|
+
}
|
|
100
|
+
e.lastHtml = i;
|
|
101
|
+
}
|
|
102
|
+
}, e;
|
|
103
|
+
}
|
|
104
|
+
return r.prototype.render = function() {
|
|
105
|
+
var e = this, n = this.props, o = n.tagName, i = n.html, u = n.innerRef, _ = j(n, ["tagName", "html", "innerRef"]);
|
|
106
|
+
return f.createElement(o || "div", p(p({}, _), { ref: typeof u == "function" ? function(s) {
|
|
107
|
+
u(s), e.el.current = s;
|
|
108
|
+
} : u || this.el, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onKeyUp: this.props.onKeyUp || this.emitChange, onKeyDown: this.props.onKeyDown || this.emitChange, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: { __html: i } }), this.props.children);
|
|
109
|
+
}, r.prototype.shouldComponentUpdate = function(e) {
|
|
110
|
+
var n = this.props, o = this.getEl();
|
|
111
|
+
return !o || c(e.html) !== c(o.innerHTML) ? !0 : n.disabled !== e.disabled || n.tagName !== e.tagName || n.className !== e.className || n.innerRef !== e.innerRef || n.placeholder !== e.placeholder || !C.default(n.style, e.style);
|
|
112
|
+
}, r.prototype.componentDidUpdate = function() {
|
|
113
|
+
var e = this.getEl();
|
|
114
|
+
e && (this.props.html !== e.innerHTML && (e.innerHTML = this.props.html), this.lastHtml = this.props.html, E(e));
|
|
115
|
+
}, r.propTypes = {
|
|
116
|
+
html: l.string.isRequired,
|
|
117
|
+
onChange: l.func,
|
|
118
|
+
disabled: l.bool,
|
|
119
|
+
tagName: l.string,
|
|
120
|
+
className: l.string,
|
|
121
|
+
style: l.object,
|
|
122
|
+
innerRef: l.oneOfType([
|
|
123
|
+
l.object,
|
|
124
|
+
l.func
|
|
125
|
+
])
|
|
126
|
+
}, r;
|
|
127
|
+
}(f.Component)
|
|
128
|
+
), D = h.default = w;
|
|
14
129
|
export {
|
|
15
|
-
|
|
130
|
+
D as default
|
|
16
131
|
};
|
|
17
132
|
//# sourceMappingURL=sd-component-library214.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library214.js","sources":["../src/components/buttons/partials/circle-button/circle-button.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { CircleButtonProps } from \".\";\nimport { Button } from \"../../button\";\n\n/**\n * The circle button.\n */\nexport const CircleButton: React.FC<CircleButtonProps> = (props) => (\n <Button\n {...props}\n variant=\"_circle\"\n width={[`${props.diameter}px`]}\n height={[`${props.diameter}px`]}\n data-testid=\"circle-button\"\n >\n {props.children}\n </Button>\n);\n"],"names":["CircleButton","props","jsx","Button"],"mappings":";;AAQa,MAAAA,IAA4C,CAACC,MACxDC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACE,GAAGF;AAAA,IACJ,SAAQ;AAAA,IACR,OAAO,CAAC,GAAGA,EAAM,QAAQ,IAAI;AAAA,IAC7B,QAAQ,CAAC,GAAGA,EAAM,QAAQ,IAAI;AAAA,IAC9B,eAAY;AAAA,IAEX,UAAMA,EAAA;AAAA,EAAA;AACT;"}
|
|
1
|
+
{"version":3,"file":"sd-component-library214.js","sources":["../node_modules/react-contenteditable/lib/react-contenteditable.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar fast_deep_equal_1 = __importDefault(require(\"fast-deep-equal\"));\nvar PropTypes = __importStar(require(\"prop-types\"));\nfunction normalizeHtml(str) {\n return str && str.replace(/ |\\u202F|\\u00A0/g, ' ');\n}\nfunction replaceCaret(el) {\n // Place the caret at the end of the element\n var target = document.createTextNode('');\n el.appendChild(target);\n // do not move caret if element was not focused\n var isTargetFocused = document.activeElement === el;\n if (target !== null && target.nodeValue !== null && isTargetFocused) {\n var sel = window.getSelection();\n if (sel !== null) {\n var range = document.createRange();\n range.setStart(target, target.nodeValue.length);\n range.collapse(true);\n sel.removeAllRanges();\n sel.addRange(range);\n }\n if (el instanceof HTMLElement)\n el.focus();\n }\n}\n/**\n * A simple component for an html element with editable contents.\n */\nvar ContentEditable = /** @class */ (function (_super) {\n __extends(ContentEditable, _super);\n function ContentEditable() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.lastHtml = _this.props.html;\n _this.el = typeof _this.props.innerRef === 'function' ? { current: null } : React.createRef();\n _this.getEl = function () { return (_this.props.innerRef && typeof _this.props.innerRef !== 'function' ? _this.props.innerRef : _this.el).current; };\n _this.emitChange = function (originalEvt) {\n var el = _this.getEl();\n if (!el)\n return;\n var html = el.innerHTML;\n if (_this.props.onChange && html !== _this.lastHtml) {\n // Clone event with Object.assign to avoid\n // \"Cannot assign to read only property 'target' of object\"\n var evt = Object.assign({}, originalEvt, {\n target: {\n value: html\n }\n });\n _this.props.onChange(evt);\n }\n _this.lastHtml = html;\n };\n return _this;\n }\n ContentEditable.prototype.render = function () {\n var _this = this;\n var _a = this.props, tagName = _a.tagName, html = _a.html, innerRef = _a.innerRef, props = __rest(_a, [\"tagName\", \"html\", \"innerRef\"]);\n return React.createElement(tagName || 'div', __assign(__assign({}, props), { ref: typeof innerRef === 'function' ? function (current) {\n innerRef(current);\n _this.el.current = current;\n } : innerRef || this.el, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onKeyUp: this.props.onKeyUp || this.emitChange, onKeyDown: this.props.onKeyDown || this.emitChange, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: { __html: html } }), this.props.children);\n };\n ContentEditable.prototype.shouldComponentUpdate = function (nextProps) {\n var props = this.props;\n var el = this.getEl();\n // We need not rerender if the change of props simply reflects the user's edits.\n // Rerendering in this case would make the cursor/caret jump\n // Rerender if there is no element yet... (somehow?)\n if (!el)\n return true;\n // ...or if html really changed... (programmatically, not by user edit)\n if (normalizeHtml(nextProps.html) !== normalizeHtml(el.innerHTML)) {\n return true;\n }\n // Handle additional properties\n return props.disabled !== nextProps.disabled ||\n props.tagName !== nextProps.tagName ||\n props.className !== nextProps.className ||\n props.innerRef !== nextProps.innerRef ||\n props.placeholder !== nextProps.placeholder ||\n !fast_deep_equal_1.default(props.style, nextProps.style);\n };\n ContentEditable.prototype.componentDidUpdate = function () {\n var el = this.getEl();\n if (!el)\n return;\n // Perhaps React (whose VDOM gets outdated because we often prevent\n // rerendering) did not update the DOM. So we update it manually now.\n if (this.props.html !== el.innerHTML) {\n el.innerHTML = this.props.html;\n }\n this.lastHtml = this.props.html;\n replaceCaret(el);\n };\n ContentEditable.propTypes = {\n html: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n disabled: PropTypes.bool,\n tagName: PropTypes.string,\n className: PropTypes.string,\n style: PropTypes.object,\n innerRef: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.func,\n ])\n };\n return ContentEditable;\n}(React.Component));\nexports.default = ContentEditable;\n"],"names":["__extends","this","extendStatics","d","b","p","__","__assign","s","i","__createBinding","o","m","k","k2","__setModuleDefault","v","__importStar","mod","result","__rest","e","t","__importDefault","reactContenteditable","React","require$$0","fast_deep_equal_1","require$$1","PropTypes","require$$2","normalizeHtml","str","replaceCaret","el","target","isTargetFocused","sel","range","ContentEditable","_super","_this","originalEvt","html","evt","_a","tagName","innerRef","props","current","nextProps","_default"],"mappings":";;;;;AACA,IAAIA,IAAaC,KAAQA,EAAK,aAAe,WAAY;AACrD,MAAIC,IAAgB,SAAUC,GAAGC,GAAG;AAChC,WAAAF,IAAgB,OAAO,kBAClB,EAAE,WAAW,CAAA,eAAgB,SAAS,SAAUC,GAAGC,GAAG;AAAE,MAAAD,EAAE,YAAYC;AAAA,IAAE,KACzE,SAAUD,GAAGC,GAAG;AAAE,eAASC,KAAKD;AAAG,QAAI,OAAO,UAAU,eAAe,KAAKA,GAAGC,CAAC,MAAGF,EAAEE,CAAC,IAAID,EAAEC,CAAC;AAAA,OAC1FH,EAAcC,GAAGC,CAAC;AAAA,EACjC;AACI,SAAO,SAAUD,GAAGC,GAAG;AACnB,QAAI,OAAOA,KAAM,cAAcA,MAAM;AACjC,YAAM,IAAI,UAAU,yBAAyB,OAAOA,CAAC,IAAI,+BAA+B;AAC5F,IAAAF,EAAcC,GAAGC,CAAC;AAClB,aAASE,IAAK;AAAE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A,EAAU;AAAA,MACjB,UAAUA,EAAU,UAAU;AAAA,QAC1BA,EAAU;AAAA,QACVA,EAAU;AAAA,MACtB,CAAS;AAAA,IACT,GACWU;AAAA,EACX,EAAEd,EAAM,SAAS;AAAA,GACjB0B,IAAA3B,EAAA,UAAkBe;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
1
|
+
import { escape as c, unescape as a } from "lodash-es";
|
|
2
|
+
const l = " ", n = (e) => `<div>${e}</div>`, r = (e, p) => p === 0 ? e : n(e), i = (e) => a(
|
|
3
|
+
e.replaceAll("<br>", "\r").split("<div>").map(
|
|
4
|
+
(p) => p.endsWith("</div>") ? p.slice(0, -6) : p
|
|
5
|
+
).join(`
|
|
6
|
+
`)
|
|
7
|
+
).replaceAll(l, " "), t = (e) => c(e).replaceAll(" ", l).replaceAll("\r", "<br>").split(`
|
|
8
|
+
`).map(r).join("");
|
|
3
9
|
export {
|
|
4
|
-
|
|
10
|
+
t as escapeWrapper,
|
|
11
|
+
l as htmlSpace,
|
|
12
|
+
r as lineToHtml,
|
|
13
|
+
i as unescapeWrapper,
|
|
14
|
+
n as wrapByDiv
|
|
5
15
|
};
|
|
6
16
|
//# sourceMappingURL=sd-component-library215.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library215.js","sources":["../src/components/inputs/
|
|
1
|
+
{"version":3,"file":"sd-component-library215.js","sources":["../src/components/inputs/multi-row-secondary-text-input/utils.ts"],"sourcesContent":["import { escape, unescape } from \"lodash-es\";\n\nexport const htmlSpace = \" \";\n\nexport const wrapByDiv = (s: string) => `<div>${s}</div>`;\n\nexport const lineToHtml = (line: string, idx: number) =>\n idx === 0 ? line : wrapByDiv(line);\n\nexport const unescapeWrapper = (s: string) =>\n unescape(\n s\n .replaceAll(\"<br>\", \"\\r\")\n .split(\"<div>\")\n .map((row) =>\n row.endsWith(\"</div>\") ? row.slice(0, -\"<div/>\".length) : row\n )\n .join(\"\\n\")\n ).replaceAll(htmlSpace, \" \");\n\nexport const escapeWrapper = (s: string) =>\n escape(s)\n .replaceAll(\" \", htmlSpace)\n .replaceAll(\"\\r\", \"<br>\")\n .split(\"\\n\")\n .map(lineToHtml)\n .join(\"\");\n"],"names":["htmlSpace","wrapByDiv","s","lineToHtml","line","idx","unescapeWrapper","unescape","row","escapeWrapper","escape"],"mappings":";AAEO,MAAMA,IAAY,UAEZC,IAAY,CAACC,MAAc,QAAQA,CAAC,UAEpCC,IAAa,CAACC,GAAcC,MACvCA,MAAQ,IAAID,IAAOH,EAAUG,CAAI,GAEtBE,IAAkB,CAACJ,MAC9BK;AAAA,EACEL,EACG,WAAW,QAAQ,IAAI,EACvB,MAAM,OAAO,EACb;AAAA,IAAI,CAACM,MACJA,EAAI,SAAS,QAAQ,IAAIA,EAAI,MAAM,GAAG,EAAgB,IAAIA;AAAA,EAAA,EAE3D,KAAK;AAAA,CAAI;AACd,EAAE,WAAWR,GAAW,GAAG,GAEhBS,IAAgB,CAACP,MAC5BQ,EAAOR,CAAC,EACL,WAAW,KAAKF,CAAS,EACzB,WAAW,MAAM,MAAM,EACvB,MAAM;AAAA,CAAI,EACV,IAAIG,CAAU,EACd,KAAK,EAAE;"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { j as i } from "./sd-component-library197.js";
|
|
2
|
+
import { Button as e } from "./sd-component-library24.js";
|
|
3
|
+
const n = (t) => /* @__PURE__ */ i.jsx(
|
|
4
|
+
e,
|
|
5
|
+
{
|
|
6
|
+
...t,
|
|
7
|
+
variant: "_circle",
|
|
8
|
+
width: [`${t.diameter}px`],
|
|
9
|
+
height: [`${t.diameter}px`],
|
|
10
|
+
"data-testid": "circle-button",
|
|
11
|
+
children: t.children
|
|
12
|
+
}
|
|
13
|
+
);
|
|
3
14
|
export {
|
|
4
|
-
|
|
15
|
+
n as CircleButton
|
|
5
16
|
};
|
|
6
17
|
//# sourceMappingURL=sd-component-library216.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library216.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library216.js","sources":["../src/components/buttons/partials/circle-button/circle-button.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { CircleButtonProps } from \".\";\nimport { Button } from \"../../button\";\n\n/**\n * The circle button.\n */\nexport const CircleButton: React.FC<CircleButtonProps> = (props) => (\n <Button\n {...props}\n variant=\"_circle\"\n width={[`${props.diameter}px`]}\n height={[`${props.diameter}px`]}\n data-testid=\"circle-button\"\n >\n {props.children}\n </Button>\n);\n"],"names":["CircleButton","props","jsx","Button"],"mappings":";;AAQa,MAAAA,IAA4C,CAACC,MACxDC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACE,GAAGF;AAAA,IACJ,SAAQ;AAAA,IACR,OAAO,CAAC,GAAGA,EAAM,QAAQ,IAAI;AAAA,IAC7B,QAAQ,CAAC,GAAGA,EAAM,QAAQ,IAAI;AAAA,IAC9B,eAAY;AAAA,IAEX,UAAMA,EAAA;AAAA,EAAA;AACT;"}
|
|
@@ -1,132 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import d from "react";
|
|
4
|
-
import { f as g } from "./sd-component-library285.js";
|
|
5
|
-
import { p as y } from "./sd-component-library286.js";
|
|
6
|
-
var v = a && a.__extends || function() {
|
|
7
|
-
var t = function(r, e) {
|
|
8
|
-
return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, o) {
|
|
9
|
-
n.__proto__ = o;
|
|
10
|
-
} || function(n, o) {
|
|
11
|
-
for (var i in o)
|
|
12
|
-
Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
|
|
13
|
-
}, t(r, e);
|
|
14
|
-
};
|
|
15
|
-
return function(r, e) {
|
|
16
|
-
if (typeof e != "function" && e !== null)
|
|
17
|
-
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
18
|
-
t(r, e);
|
|
19
|
-
function n() {
|
|
20
|
-
this.constructor = r;
|
|
21
|
-
}
|
|
22
|
-
r.prototype = e === null ? Object.create(e) : (n.prototype = e.prototype, new n());
|
|
23
|
-
};
|
|
24
|
-
}(), p = a && a.__assign || function() {
|
|
25
|
-
return p = Object.assign || function(t) {
|
|
26
|
-
for (var r, e = 1, n = arguments.length; e < n; e++) {
|
|
27
|
-
r = arguments[e];
|
|
28
|
-
for (var o in r)
|
|
29
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
30
|
-
}
|
|
31
|
-
return t;
|
|
32
|
-
}, p.apply(this, arguments);
|
|
33
|
-
}, b = a && a.__createBinding || (Object.create ? function(t, r, e, n) {
|
|
34
|
-
n === void 0 && (n = e), Object.defineProperty(t, n, { enumerable: !0, get: function() {
|
|
35
|
-
return r[e];
|
|
36
|
-
} });
|
|
37
|
-
} : function(t, r, e, n) {
|
|
38
|
-
n === void 0 && (n = e), t[n] = r[e];
|
|
39
|
-
}), O = a && a.__setModuleDefault || (Object.create ? function(t, r) {
|
|
40
|
-
Object.defineProperty(t, "default", { enumerable: !0, value: r });
|
|
41
|
-
} : function(t, r) {
|
|
42
|
-
t.default = r;
|
|
43
|
-
}), m = a && a.__importStar || function(t) {
|
|
44
|
-
if (t && t.__esModule)
|
|
45
|
-
return t;
|
|
46
|
-
var r = {};
|
|
47
|
-
if (t != null)
|
|
48
|
-
for (var e in t)
|
|
49
|
-
e !== "default" && Object.prototype.hasOwnProperty.call(t, e) && b(r, t, e);
|
|
50
|
-
return O(r, t), r;
|
|
51
|
-
}, j = a && a.__rest || function(t, r) {
|
|
52
|
-
var e = {};
|
|
53
|
-
for (var n in t)
|
|
54
|
-
Object.prototype.hasOwnProperty.call(t, n) && r.indexOf(n) < 0 && (e[n] = t[n]);
|
|
55
|
-
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
56
|
-
for (var o = 0, n = Object.getOwnPropertySymbols(t); o < n.length; o++)
|
|
57
|
-
r.indexOf(n[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, n[o]) && (e[n[o]] = t[n[o]]);
|
|
58
|
-
return e;
|
|
59
|
-
}, R = a && a.__importDefault || function(t) {
|
|
60
|
-
return t && t.__esModule ? t : { default: t };
|
|
61
|
-
};
|
|
62
|
-
Object.defineProperty(h, "__esModule", { value: !0 });
|
|
63
|
-
var f = m(d), C = R(g), l = m(y);
|
|
64
|
-
function c(t) {
|
|
65
|
-
return t && t.replace(/ |\u202F|\u00A0/g, " ");
|
|
66
|
-
}
|
|
67
|
-
function E(t) {
|
|
68
|
-
var r = document.createTextNode("");
|
|
69
|
-
t.appendChild(r);
|
|
70
|
-
var e = document.activeElement === t;
|
|
71
|
-
if (r !== null && r.nodeValue !== null && e) {
|
|
72
|
-
var n = window.getSelection();
|
|
73
|
-
if (n !== null) {
|
|
74
|
-
var o = document.createRange();
|
|
75
|
-
o.setStart(r, r.nodeValue.length), o.collapse(!0), n.removeAllRanges(), n.addRange(o);
|
|
76
|
-
}
|
|
77
|
-
t instanceof HTMLElement && t.focus();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
var w = (
|
|
81
|
-
/** @class */
|
|
82
|
-
function(t) {
|
|
83
|
-
v(r, t);
|
|
84
|
-
function r() {
|
|
85
|
-
var e = t !== null && t.apply(this, arguments) || this;
|
|
86
|
-
return e.lastHtml = e.props.html, e.el = typeof e.props.innerRef == "function" ? { current: null } : f.createRef(), e.getEl = function() {
|
|
87
|
-
return (e.props.innerRef && typeof e.props.innerRef != "function" ? e.props.innerRef : e.el).current;
|
|
88
|
-
}, e.emitChange = function(n) {
|
|
89
|
-
var o = e.getEl();
|
|
90
|
-
if (o) {
|
|
91
|
-
var i = o.innerHTML;
|
|
92
|
-
if (e.props.onChange && i !== e.lastHtml) {
|
|
93
|
-
var u = Object.assign({}, n, {
|
|
94
|
-
target: {
|
|
95
|
-
value: i
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
e.props.onChange(u);
|
|
99
|
-
}
|
|
100
|
-
e.lastHtml = i;
|
|
101
|
-
}
|
|
102
|
-
}, e;
|
|
103
|
-
}
|
|
104
|
-
return r.prototype.render = function() {
|
|
105
|
-
var e = this, n = this.props, o = n.tagName, i = n.html, u = n.innerRef, _ = j(n, ["tagName", "html", "innerRef"]);
|
|
106
|
-
return f.createElement(o || "div", p(p({}, _), { ref: typeof u == "function" ? function(s) {
|
|
107
|
-
u(s), e.el.current = s;
|
|
108
|
-
} : u || this.el, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onKeyUp: this.props.onKeyUp || this.emitChange, onKeyDown: this.props.onKeyDown || this.emitChange, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: { __html: i } }), this.props.children);
|
|
109
|
-
}, r.prototype.shouldComponentUpdate = function(e) {
|
|
110
|
-
var n = this.props, o = this.getEl();
|
|
111
|
-
return !o || c(e.html) !== c(o.innerHTML) ? !0 : n.disabled !== e.disabled || n.tagName !== e.tagName || n.className !== e.className || n.innerRef !== e.innerRef || n.placeholder !== e.placeholder || !C.default(n.style, e.style);
|
|
112
|
-
}, r.prototype.componentDidUpdate = function() {
|
|
113
|
-
var e = this.getEl();
|
|
114
|
-
e && (this.props.html !== e.innerHTML && (e.innerHTML = this.props.html), this.lastHtml = this.props.html, E(e));
|
|
115
|
-
}, r.propTypes = {
|
|
116
|
-
html: l.string.isRequired,
|
|
117
|
-
onChange: l.func,
|
|
118
|
-
disabled: l.bool,
|
|
119
|
-
tagName: l.string,
|
|
120
|
-
className: l.string,
|
|
121
|
-
style: l.object,
|
|
122
|
-
innerRef: l.oneOfType([
|
|
123
|
-
l.object,
|
|
124
|
-
l.func
|
|
125
|
-
])
|
|
126
|
-
}, r;
|
|
127
|
-
}(f.Component)
|
|
128
|
-
), D = h.default = w;
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
const o = (e) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ t.createElement("path", { fill: "#4B71F7", d: "M0 9h24v6h-24z" }));
|
|
129
3
|
export {
|
|
130
|
-
|
|
4
|
+
o as ReactComponent
|
|
131
5
|
};
|
|
132
6
|
//# sourceMappingURL=sd-component-library217.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library217.js","sources":["../node_modules/react-contenteditable/lib/react-contenteditable.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar React = __importStar(require(\"react\"));\nvar fast_deep_equal_1 = __importDefault(require(\"fast-deep-equal\"));\nvar PropTypes = __importStar(require(\"prop-types\"));\nfunction normalizeHtml(str) {\n return str && str.replace(/ |\\u202F|\\u00A0/g, ' ');\n}\nfunction replaceCaret(el) {\n // Place the caret at the end of the element\n var target = document.createTextNode('');\n el.appendChild(target);\n // do not move caret if element was not focused\n var isTargetFocused = document.activeElement === el;\n if (target !== null && target.nodeValue !== null && isTargetFocused) {\n var sel = window.getSelection();\n if (sel !== null) {\n var range = document.createRange();\n range.setStart(target, target.nodeValue.length);\n range.collapse(true);\n sel.removeAllRanges();\n sel.addRange(range);\n }\n if (el instanceof HTMLElement)\n el.focus();\n }\n}\n/**\n * A simple component for an html element with editable contents.\n */\nvar ContentEditable = /** @class */ (function (_super) {\n __extends(ContentEditable, _super);\n function ContentEditable() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.lastHtml = _this.props.html;\n _this.el = typeof _this.props.innerRef === 'function' ? { current: null } : React.createRef();\n _this.getEl = function () { return (_this.props.innerRef && typeof _this.props.innerRef !== 'function' ? _this.props.innerRef : _this.el).current; };\n _this.emitChange = function (originalEvt) {\n var el = _this.getEl();\n if (!el)\n return;\n var html = el.innerHTML;\n if (_this.props.onChange && html !== _this.lastHtml) {\n // Clone event with Object.assign to avoid\n // \"Cannot assign to read only property 'target' of object\"\n var evt = Object.assign({}, originalEvt, {\n target: {\n value: html\n }\n });\n _this.props.onChange(evt);\n }\n _this.lastHtml = html;\n };\n return _this;\n }\n ContentEditable.prototype.render = function () {\n var _this = this;\n var _a = this.props, tagName = _a.tagName, html = _a.html, innerRef = _a.innerRef, props = __rest(_a, [\"tagName\", \"html\", \"innerRef\"]);\n return React.createElement(tagName || 'div', __assign(__assign({}, props), { ref: typeof innerRef === 'function' ? function (current) {\n innerRef(current);\n _this.el.current = current;\n } : innerRef || this.el, onInput: this.emitChange, onBlur: this.props.onBlur || this.emitChange, onKeyUp: this.props.onKeyUp || this.emitChange, onKeyDown: this.props.onKeyDown || this.emitChange, contentEditable: !this.props.disabled, dangerouslySetInnerHTML: { __html: html } }), this.props.children);\n };\n ContentEditable.prototype.shouldComponentUpdate = function (nextProps) {\n var props = this.props;\n var el = this.getEl();\n // We need not rerender if the change of props simply reflects the user's edits.\n // Rerendering in this case would make the cursor/caret jump\n // Rerender if there is no element yet... (somehow?)\n if (!el)\n return true;\n // ...or if html really changed... (programmatically, not by user edit)\n if (normalizeHtml(nextProps.html) !== normalizeHtml(el.innerHTML)) {\n return true;\n }\n // Handle additional properties\n return props.disabled !== nextProps.disabled ||\n props.tagName !== nextProps.tagName ||\n props.className !== nextProps.className ||\n props.innerRef !== nextProps.innerRef ||\n props.placeholder !== nextProps.placeholder ||\n !fast_deep_equal_1.default(props.style, nextProps.style);\n };\n ContentEditable.prototype.componentDidUpdate = function () {\n var el = this.getEl();\n if (!el)\n return;\n // Perhaps React (whose VDOM gets outdated because we often prevent\n // rerendering) did not update the DOM. So we update it manually now.\n if (this.props.html !== el.innerHTML) {\n el.innerHTML = this.props.html;\n }\n this.lastHtml = this.props.html;\n replaceCaret(el);\n };\n ContentEditable.propTypes = {\n html: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n disabled: PropTypes.bool,\n tagName: PropTypes.string,\n className: PropTypes.string,\n style: PropTypes.object,\n innerRef: PropTypes.oneOfType([\n PropTypes.object,\n PropTypes.func,\n ])\n };\n return ContentEditable;\n}(React.Component));\nexports.default = ContentEditable;\n"],"names":["__extends","this","extendStatics","d","b","p","__","__assign","s","i","__createBinding","o","m","k","k2","__setModuleDefault","v","__importStar","mod","result","__rest","e","t","__importDefault","reactContenteditable","React","require$$0","fast_deep_equal_1","require$$1","PropTypes","require$$2","normalizeHtml","str","replaceCaret","el","target","isTargetFocused","sel","range","ContentEditable","_super","_this","originalEvt","html","evt","_a","tagName","innerRef","props","current","nextProps","_default"],"mappings":";;;;;AACA,IAAIA,IAAaC,KAAQA,EAAK,aAAe,WAAY;AACrD,MAAIC,IAAgB,SAAUC,GAAGC,GAAG;AAChC,WAAAF,IAAgB,OAAO,kBAClB,EAAE,WAAW,CAAA,eAAgB,SAAS,SAAUC,GAAGC,GAAG;AAAE,MAAAD,EAAE,YAAYC;AAAA,IAAE,KACzE,SAAUD,GAAGC,GAAG;AAAE,eAASC,KAAKD;AAAG,QAAI,OAAO,UAAU,eAAe,KAAKA,GAAGC,CAAC,MAAGF,EAAEE,CAAC,IAAID,EAAEC,CAAC;AAAA,OAC1FH,EAAcC,GAAGC,CAAC;AAAA,EACjC;AACI,SAAO,SAAUD,GAAGC,GAAG;AACnB,QAAI,OAAOA,KAAM,cAAcA,MAAM;AACjC,YAAM,IAAI,UAAU,yBAAyB,OAAOA,CAAC,IAAI,+BAA+B;AAC5F,IAAAF,EAAcC,GAAGC,CAAC;AAClB,aAASE,IAAK;AAAE,WAAK,cAAcH;AAAA,IAAI;AACvC,IAAAA,EAAE,YAAYC,MAAM,OAAO,OAAO,OAAOA,CAAC,KAAKE,EAAG,YAAYF,EAAE,WAAW,IAAIE,EAAI;AAAA,EAC3F;AACA,KACIC,IAAYN,KAAQA,EAAK,YAAa,WAAY;AAClD,SAAAM,I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
|
1
|
+
{"version":3,"file":"sd-component-library217.js","sources":["../src/components/inputs/primary-number-input/assets/minus-active.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSIjNEI3MUY3IiBkPSJNMCA5aDI0djZoLTI0eiIvPjwvc3ZnPg==\""],"names":["SvgMinusActive","props","React"],"mappings":";AACK,MAACA,IAAiB,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,MAAM,WAAW,GAAG,iBAAgB,CAAE,CAAC;"}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
e.replaceAll("<br>", "\r").split("<div>").map(
|
|
4
|
-
(p) => p.endsWith("</div>") ? p.slice(0, -6) : p
|
|
5
|
-
).join(`
|
|
6
|
-
`)
|
|
7
|
-
).replaceAll(l, " "), t = (e) => c(e).replaceAll(" ", l).replaceAll("\r", "<br>").split(`
|
|
8
|
-
`).map(r).join("");
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
const h = (e) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ t.createElement("path", { fill: "#4B71F7", d: "M24 9h-9v-9h-6v9h-9v6h9v9h6v-9h9z" }));
|
|
9
3
|
export {
|
|
10
|
-
|
|
11
|
-
l as htmlSpace,
|
|
12
|
-
r as lineToHtml,
|
|
13
|
-
i as unescapeWrapper,
|
|
14
|
-
n as wrapByDiv
|
|
4
|
+
h as ReactComponent
|
|
15
5
|
};
|
|
16
6
|
//# sourceMappingURL=sd-component-library218.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library218.js","sources":["../src/components/inputs/
|
|
1
|
+
{"version":3,"file":"sd-component-library218.js","sources":["../src/components/inputs/primary-number-input/assets/plus-active.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSIjNEI3MUY3IiBkPSJNMjQgOWgtOXYtOWgtNnY5aC05djZoOXY5aDZ2LTloOXoiLz48L3N2Zz4=\""],"names":["SvgPlusActive","props","React"],"mappings":";AACK,MAACA,IAAgB,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,OAAO,IAAI,QAAQ,IAAI,SAAS,aAAa,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,MAAM,WAAW,GAAG,oCAAmC,CAAE,CAAC;"}
|
|
@@ -1,68 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { Link as m } from "react-router-dom";
|
|
4
|
-
import { Box as n, Flex as f } from "rebass";
|
|
5
|
-
import { RegularText as h } from "./sd-component-library163.js";
|
|
6
|
-
import { PrimaryBadge as s } from "./sd-component-library9.js";
|
|
7
|
-
import { HorizontalDivider as c } from "./sd-component-library48.js";
|
|
8
|
-
const S = ({
|
|
9
|
-
searchResults: t,
|
|
10
|
-
useRouterLinks: i,
|
|
11
|
-
onResultClick: r
|
|
12
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
13
|
-
n,
|
|
14
|
-
{
|
|
15
|
-
sx: {
|
|
16
|
-
position: "absolute",
|
|
17
|
-
top: "100%",
|
|
18
|
-
bg: "white",
|
|
19
|
-
width: "100%",
|
|
20
|
-
borderRadius: ["0", "0px 0px 3px 3px"],
|
|
21
|
-
borderWidth: "1px",
|
|
22
|
-
borderStyle: "solid",
|
|
23
|
-
borderTopStyle: "none",
|
|
24
|
-
borderColor: "#C8CCE5",
|
|
25
|
-
boxShadow: "2px 3px 10px rgba(211,223,255,0.25)"
|
|
26
|
-
},
|
|
27
|
-
children: t.map((e, p) => /* @__PURE__ */ o.jsxs(d.Fragment, { children: [
|
|
28
|
-
i ? /* @__PURE__ */ o.jsx(m, { to: e.url, style: { textDecoration: "none" }, children: /* @__PURE__ */ o.jsx(x, { ...e, onResultClick: r }) }) : /* @__PURE__ */ o.jsx(
|
|
29
|
-
x,
|
|
30
|
-
{
|
|
31
|
-
...e,
|
|
32
|
-
onResultClick: r,
|
|
33
|
-
onClick: () => window.location.href = `https://www.selfdecode.com${e.url}`
|
|
34
|
-
}
|
|
35
|
-
),
|
|
36
|
-
p + 1 !== t.length && /* @__PURE__ */ o.jsx(c, { color: "cl_lightGrey" })
|
|
37
|
-
] }, `${p}-${e.url}`))
|
|
38
|
-
}
|
|
39
|
-
), x = ({
|
|
40
|
-
onResultClick: t,
|
|
41
|
-
onClick: i,
|
|
42
|
-
...r
|
|
43
|
-
}) => {
|
|
44
|
-
const e = () => {
|
|
45
|
-
t == null || t(r), i == null || i();
|
|
46
|
-
};
|
|
47
|
-
return /* @__PURE__ */ o.jsxs(
|
|
48
|
-
f,
|
|
49
|
-
{
|
|
50
|
-
flexDirection: ["column-reverse", "row"],
|
|
51
|
-
justifyContent: "space-between",
|
|
52
|
-
sx: {
|
|
53
|
-
p: "10px 16px",
|
|
54
|
-
cursor: "pointer",
|
|
55
|
-
":hover": { bg: "#eff4ff" }
|
|
56
|
-
},
|
|
57
|
-
onClick: e,
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ o.jsx(h, { fontSize: 16, children: r.text }),
|
|
60
|
-
!!r.type && /* @__PURE__ */ o.jsx(n, { width: "max-content", mb: ["8px", "0"], children: /* @__PURE__ */ o.jsx(s, { children: r.type }) })
|
|
61
|
-
]
|
|
62
|
-
}
|
|
63
|
-
);
|
|
64
|
-
};
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
const a = (e) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22 22.94", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M2494.01,1419.91l-5.42-5.67a9.187,9.187,0,1,0-7.04,3.3,9.042,9.042,0,0,0,5.27-1.67l5.46,5.71a1.2,1.2,0,0,0,.87.37A1.2,1.2,0,0,0,2494.01,1419.91Zm-12.46-18.46a6.84,6.84,0,1,1-6.8,6.84A6.829,6.829,0,0,1,2481.55,1401.45Z", transform: "translate(-2472.34 -1399.03)" }));
|
|
65
3
|
export {
|
|
66
|
-
|
|
4
|
+
a as ReactComponent
|
|
67
5
|
};
|
|
68
6
|
//# sourceMappingURL=sd-component-library219.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library219.js","sources":["../src/components/inputs/search-input/search
|
|
1
|
+
{"version":3,"file":"sd-component-library219.js","sources":["../src/components/inputs/search-input/assets/search.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMiAyMi45NCI+CiAgPHBhdGggZD0iTTI0OTQuMDEsMTQxOS45MWwtNS40Mi01LjY3YTkuMTg3LDkuMTg3LDAsMSwwLTcuMDQsMy4zLDkuMDQyLDkuMDQyLDAsMCwwLDUuMjctMS42N2w1LjQ2LDUuNzFhMS4yLDEuMiwwLDAsMCwuODcuMzdBMS4yLDEuMiwwLDAsMCwyNDk0LjAxLDE0MTkuOTFabS0xMi40Ni0xOC40NmE2Ljg0LDYuODQsMCwxLDEtNi44LDYuODRBNi44MjksNi44MjksMCwwLDEsMjQ4MS41NSwxNDAxLjQ1WiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI0NzIuMzQgLTEzOTkuMDMpIi8+Cjwvc3ZnPgo=\""],"names":["SvgSearch","props","React"],"mappings":";AACK,MAACA,IAAY,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,gBAAgB,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,QAAQ,EAAE,GAAG,6NAA6N,WAAW,gCAAgC,CAAC;"}
|