@selfdecode/sd-component-library 4.0.96 → 4.0.98
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/checkboxes/checkbox-v2/checkbox-v2.d.ts +2 -1
- package/lib/components/checkboxes/checkbox-v2/index.d.ts +1 -1
- package/lib/components/checkboxes/checkbox-v2/interfaces.d.ts +19 -1
- package/lib/components/utils/anchor/interfaces.d.ts +4 -0
- package/lib/sd-component-library.js +343 -342
- package/lib/sd-component-library100.js +3 -3
- package/lib/sd-component-library101.js +2 -2
- package/lib/sd-component-library102.js +3 -3
- package/lib/sd-component-library103.js +2 -2
- package/lib/sd-component-library105.js +4 -4
- package/lib/sd-component-library107.js +4 -4
- package/lib/sd-component-library113.js +1 -1
- package/lib/sd-component-library118.js +1 -1
- package/lib/sd-component-library119.js +2 -2
- package/lib/sd-component-library121.js +1 -1
- package/lib/sd-component-library122.js +1 -1
- package/lib/sd-component-library127.js +2 -2
- package/lib/sd-component-library128.js +2 -2
- package/lib/sd-component-library130.js +1 -1
- package/lib/sd-component-library134.js +3 -3
- package/lib/sd-component-library135.js +1 -1
- package/lib/sd-component-library137.js +2 -2
- package/lib/sd-component-library15.js +1 -1
- package/lib/sd-component-library168.js +1 -1
- package/lib/sd-component-library169.js +1 -1
- package/lib/sd-component-library172.js +1 -1
- package/lib/sd-component-library173.js +4 -4
- package/lib/sd-component-library174.js +12 -11
- package/lib/sd-component-library174.js.map +1 -1
- package/lib/sd-component-library202.js +1 -1
- package/lib/sd-component-library203.js +1 -1
- package/lib/sd-component-library204.js +3 -25
- package/lib/sd-component-library204.js.map +1 -1
- package/lib/sd-component-library205.js +56 -18
- package/lib/sd-component-library205.js.map +1 -1
- package/lib/sd-component-library206.js +25 -5
- package/lib/sd-component-library206.js.map +1 -1
- package/lib/sd-component-library207.js +19 -5
- package/lib/sd-component-library207.js.map +1 -1
- package/lib/sd-component-library208.js +5 -3
- package/lib/sd-component-library208.js.map +1 -1
- package/lib/sd-component-library209.js +5 -57
- package/lib/sd-component-library209.js.map +1 -1
- package/lib/sd-component-library210.js +18 -65
- 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 +62 -127
- package/lib/sd-component-library214.js.map +1 -1
- package/lib/sd-component-library215.js +23 -13
- package/lib/sd-component-library215.js.map +1 -1
- package/lib/sd-component-library216.js +40 -14
- package/lib/sd-component-library216.js.map +1 -1
- package/lib/sd-component-library217.js +129 -3
- package/lib/sd-component-library217.js.map +1 -1
- package/lib/sd-component-library218.js +13 -3
- package/lib/sd-component-library218.js.map +1 -1
- package/lib/sd-component-library219.js +14 -3
- package/lib/sd-component-library219.js.map +1 -1
- package/lib/sd-component-library220.js +3 -52
- package/lib/sd-component-library220.js.map +1 -1
- package/lib/sd-component-library221.js +3 -65
- package/lib/sd-component-library221.js.map +1 -1
- package/lib/sd-component-library222.js +65 -3
- 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-library224.js +3 -17
- package/lib/sd-component-library224.js.map +1 -1
- package/lib/sd-component-library225.js +51 -17
- package/lib/sd-component-library225.js.map +1 -1
- package/lib/sd-component-library226.js +44 -19
- package/lib/sd-component-library226.js.map +1 -1
- package/lib/sd-component-library227.js +17 -3
- package/lib/sd-component-library227.js.map +1 -1
- package/lib/sd-component-library228.js +26 -3
- package/lib/sd-component-library228.js.map +1 -1
- package/lib/sd-component-library229.js +3 -26
- package/lib/sd-component-library229.js.map +1 -1
- package/lib/sd-component-library23.js +2 -2
- package/lib/sd-component-library232.js +3 -3
- package/lib/sd-component-library234.js +1 -1
- package/lib/sd-component-library235.js +1 -1
- package/lib/sd-component-library236.js +129 -3
- package/lib/sd-component-library236.js.map +1 -1
- package/lib/sd-component-library237.js +43 -129
- package/lib/sd-component-library237.js.map +1 -1
- package/lib/sd-component-library238.js +45 -41
- package/lib/sd-component-library238.js.map +1 -1
- package/lib/sd-component-library239.js +7 -46
- package/lib/sd-component-library239.js.map +1 -1
- package/lib/sd-component-library24.js +2 -2
- package/lib/sd-component-library240.js +64 -8
- package/lib/sd-component-library240.js.map +1 -1
- package/lib/sd-component-library241.js +41 -62
- package/lib/sd-component-library241.js.map +1 -1
- package/lib/sd-component-library242.js +13 -43
- package/lib/sd-component-library242.js.map +1 -1
- package/lib/sd-component-library243.js +21 -13
- package/lib/sd-component-library243.js.map +1 -1
- package/lib/sd-component-library244.js +109 -21
- package/lib/sd-component-library244.js.map +1 -1
- package/lib/sd-component-library245.js +44 -106
- package/lib/sd-component-library245.js.map +1 -1
- package/lib/sd-component-library246.js +23 -46
- package/lib/sd-component-library246.js.map +1 -1
- package/lib/sd-component-library247.js +52 -23
- package/lib/sd-component-library247.js.map +1 -1
- package/lib/sd-component-library248.js +47 -52
- package/lib/sd-component-library248.js.map +1 -1
- package/lib/sd-component-library249.js +73 -46
- package/lib/sd-component-library249.js.map +1 -1
- package/lib/sd-component-library25.js +1 -1
- package/lib/sd-component-library250.js +26 -60
- package/lib/sd-component-library250.js.map +1 -1
- package/lib/sd-component-library251.js +27 -41
- package/lib/sd-component-library251.js.map +1 -1
- package/lib/sd-component-library252.js +21 -27
- package/lib/sd-component-library252.js.map +1 -1
- package/lib/sd-component-library253.js +19 -20
- package/lib/sd-component-library253.js.map +1 -1
- package/lib/sd-component-library254.js +2 -20
- package/lib/sd-component-library254.js.map +1 -1
- package/lib/sd-component-library255.js +325 -2
- package/lib/sd-component-library255.js.map +1 -1
- package/lib/sd-component-library256.js +5 -325
- package/lib/sd-component-library256.js.map +1 -1
- package/lib/sd-component-library257.js +29 -5
- package/lib/sd-component-library257.js.map +1 -1
- package/lib/sd-component-library258.js +3 -29
- package/lib/sd-component-library258.js.map +1 -1
- package/lib/sd-component-library259.js +24 -3
- package/lib/sd-component-library259.js.map +1 -1
- package/lib/sd-component-library260.js +3 -24
- package/lib/sd-component-library260.js.map +1 -1
- package/lib/sd-component-library261.js +25 -3
- package/lib/sd-component-library261.js.map +1 -1
- package/lib/sd-component-library262.js +21 -24
- package/lib/sd-component-library262.js.map +1 -1
- package/lib/sd-component-library263.js +26 -18
- package/lib/sd-component-library263.js.map +1 -1
- package/lib/sd-component-library264.js +51 -30
- package/lib/sd-component-library264.js.map +1 -1
- package/lib/sd-component-library265.js +117 -37
- package/lib/sd-component-library265.js.map +1 -1
- package/lib/sd-component-library266.js +59 -116
- package/lib/sd-component-library266.js.map +1 -1
- package/lib/sd-component-library267.js +54 -52
- package/lib/sd-component-library267.js.map +1 -1
- package/lib/sd-component-library268.js +29 -75
- package/lib/sd-component-library268.js.map +1 -1
- package/lib/sd-component-library269.js +20 -29
- package/lib/sd-component-library269.js.map +1 -1
- package/lib/sd-component-library270.js +121 -17
- package/lib/sd-component-library270.js.map +1 -1
- package/lib/sd-component-library271.js +109 -112
- package/lib/sd-component-library271.js.map +1 -1
- package/lib/sd-component-library272.js +9 -121
- package/lib/sd-component-library272.js.map +1 -1
- package/lib/sd-component-library273.js +49 -9
- package/lib/sd-component-library273.js.map +1 -1
- package/lib/sd-component-library274.js +8 -49
- package/lib/sd-component-library274.js.map +1 -1
- package/lib/sd-component-library275.js +2 -9
- package/lib/sd-component-library275.js.map +1 -1
- package/lib/sd-component-library276.js +2 -2
- package/lib/sd-component-library277.js +51 -2
- package/lib/sd-component-library277.js.map +1 -1
- package/lib/sd-component-library278.js +87 -48
- package/lib/sd-component-library278.js.map +1 -1
- package/lib/sd-component-library279.js +54 -52
- package/lib/sd-component-library279.js.map +1 -1
- package/lib/sd-component-library280.js +48 -91
- package/lib/sd-component-library280.js.map +1 -1
- package/lib/sd-component-library281.js +5 -48
- package/lib/sd-component-library281.js.map +1 -1
- package/lib/sd-component-library285.js +2 -2
- package/lib/sd-component-library286.js +2 -2
- package/lib/sd-component-library287.js +2 -10
- package/lib/sd-component-library287.js.map +1 -1
- package/lib/sd-component-library288.js +36 -6
- package/lib/sd-component-library288.js.map +1 -1
- package/lib/sd-component-library289.js +14 -2
- package/lib/sd-component-library289.js.map +1 -1
- package/lib/sd-component-library290.js +10 -36
- package/lib/sd-component-library290.js.map +1 -1
- package/lib/sd-component-library291.js +2 -14
- package/lib/sd-component-library291.js.map +1 -1
- package/lib/sd-component-library292.js +8 -2
- package/lib/sd-component-library292.js.map +1 -1
- package/lib/sd-component-library293.js +327 -7
- package/lib/sd-component-library293.js.map +1 -1
- package/lib/sd-component-library294.js +48 -325
- package/lib/sd-component-library294.js.map +1 -1
- package/lib/sd-component-library295.js +3 -51
- package/lib/sd-component-library295.js.map +1 -1
- package/lib/sd-component-library296.js +3 -3
- package/lib/sd-component-library296.js.map +1 -1
- package/lib/sd-component-library297.js +3 -3
- package/lib/sd-component-library297.js.map +1 -1
- package/lib/sd-component-library298.js +2 -3
- package/lib/sd-component-library298.js.map +1 -1
- package/lib/sd-component-library299.js +77 -2
- package/lib/sd-component-library299.js.map +1 -1
- package/lib/sd-component-library300.js +82 -66
- package/lib/sd-component-library300.js.map +1 -1
- package/lib/sd-component-library301.js +50 -90
- package/lib/sd-component-library301.js.map +1 -1
- package/lib/sd-component-library302.js +8 -52
- package/lib/sd-component-library302.js.map +1 -1
- package/lib/sd-component-library303.js +4 -8
- package/lib/sd-component-library303.js.map +1 -1
- package/lib/sd-component-library304.js +52 -4
- package/lib/sd-component-library304.js.map +1 -1
- package/lib/sd-component-library305.js +2 -53
- package/lib/sd-component-library305.js.map +1 -1
- package/lib/sd-component-library306.js +2 -2
- package/lib/sd-component-library307.js +9 -2
- package/lib/sd-component-library307.js.map +1 -1
- package/lib/sd-component-library308.js +4 -8
- package/lib/sd-component-library308.js.map +1 -1
- package/lib/sd-component-library309.js +4 -5
- package/lib/sd-component-library309.js.map +1 -1
- package/lib/sd-component-library310.js +19 -4
- package/lib/sd-component-library310.js.map +1 -1
- package/lib/sd-component-library311.js +3 -19
- package/lib/sd-component-library311.js.map +1 -1
- package/lib/sd-component-library312.js +6 -3
- package/lib/sd-component-library312.js.map +1 -1
- package/lib/sd-component-library313.js +57 -5
- package/lib/sd-component-library313.js.map +1 -1
- package/lib/sd-component-library314.js +86 -51
- package/lib/sd-component-library314.js.map +1 -1
- package/lib/sd-component-library315.js +4 -25
- package/lib/sd-component-library315.js.map +1 -1
- package/lib/sd-component-library316.js +34 -50
- package/lib/sd-component-library316.js.map +1 -1
- package/lib/sd-component-library317.js +20 -87
- package/lib/sd-component-library317.js.map +1 -1
- package/lib/sd-component-library318.js +51 -25
- package/lib/sd-component-library318.js.map +1 -1
- package/lib/sd-component-library319.js +23 -33
- package/lib/sd-component-library319.js.map +1 -1
- package/lib/sd-component-library32.js +78 -14
- package/lib/sd-component-library32.js.map +1 -1
- package/lib/sd-component-library320.js +4 -5
- package/lib/sd-component-library320.js.map +1 -1
- package/lib/sd-component-library321.js +34 -4
- package/lib/sd-component-library321.js.map +1 -1
- package/lib/sd-component-library322.js +24 -29
- package/lib/sd-component-library322.js.map +1 -1
- package/lib/sd-component-library323.js +17 -25
- package/lib/sd-component-library323.js.map +1 -1
- package/lib/sd-component-library324.js +89 -20
- package/lib/sd-component-library324.js.map +1 -1
- package/lib/sd-component-library325.js +32 -90
- package/lib/sd-component-library325.js.map +1 -1
- package/lib/sd-component-library326.js +81 -31
- package/lib/sd-component-library326.js.map +1 -1
- package/lib/sd-component-library33.js +1 -1
- package/lib/sd-component-library33.js.map +1 -1
- package/lib/sd-component-library49.js +1 -1
- package/lib/sd-component-library5.js +1 -1
- package/lib/sd-component-library50.js +1 -1
- package/lib/sd-component-library52.js +3 -3
- package/lib/sd-component-library53.js +2 -2
- package/lib/sd-component-library54.js +2 -2
- package/lib/sd-component-library6.js +1 -1
- package/lib/sd-component-library61.js +1 -1
- package/lib/sd-component-library64.js +1 -1
- package/lib/sd-component-library65.js +2 -2
- package/lib/sd-component-library66.js +1 -1
- package/lib/sd-component-library71.js +2 -2
- package/lib/sd-component-library73.js +3 -3
- package/lib/sd-component-library75.js +2 -2
- package/lib/sd-component-library76.js +3 -3
- package/lib/sd-component-library77.js +1 -1
- package/lib/sd-component-library78.js +1 -1
- package/lib/sd-component-library80.js +1 -1
- package/lib/sd-component-library81.js +1 -1
- package/lib/sd-component-library86.js +1 -1
- package/lib/sd-component-library89.js +1 -1
- package/lib/sd-component-library90.js +4 -4
- package/lib/sd-component-library93.js +4 -4
- package/lib/sd-component-library95.js +6 -6
- package/lib/sd-component-library99.js +2 -2
- package/package.json +1 -1
- package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/checkbox-v2-container.d.ts +0 -3
- package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/index.d.ts +0 -2
- package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/interfaces.d.ts +0 -20
- package/lib/components/checkboxes/checkbox-v2/partials/index.d.ts +0 -1
- package/lib/sd-component-library327.js +0 -85
- package/lib/sd-component-library327.js.map +0 -1
|
@@ -1,8 +1,56 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { __require as E } from "./sd-component-library302.js";
|
|
2
|
+
import { __require as _ } from "./sd-component-library303.js";
|
|
3
|
+
var f, v;
|
|
4
|
+
function P() {
|
|
5
|
+
if (v)
|
|
6
|
+
return f;
|
|
7
|
+
v = 1;
|
|
8
|
+
var o = function() {
|
|
9
|
+
};
|
|
10
|
+
if (process.env.NODE_ENV !== "production") {
|
|
11
|
+
var y = E(), t = {}, d = _();
|
|
12
|
+
o = function(n) {
|
|
13
|
+
var a = "Warning: " + n;
|
|
14
|
+
typeof console < "u" && console.error(a);
|
|
15
|
+
try {
|
|
16
|
+
throw new Error(a);
|
|
17
|
+
} catch {
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function u(n, a, i, s, c) {
|
|
22
|
+
if (process.env.NODE_ENV !== "production") {
|
|
23
|
+
for (var e in n)
|
|
24
|
+
if (d(n, e)) {
|
|
25
|
+
var r;
|
|
26
|
+
try {
|
|
27
|
+
if (typeof n[e] != "function") {
|
|
28
|
+
var h = Error(
|
|
29
|
+
(s || "React class") + ": " + i + " type `" + e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
30
|
+
);
|
|
31
|
+
throw h.name = "Invariant Violation", h;
|
|
32
|
+
}
|
|
33
|
+
r = n[e](a, e, s, i, null, y);
|
|
34
|
+
} catch (l) {
|
|
35
|
+
r = l;
|
|
36
|
+
}
|
|
37
|
+
if (r && !(r instanceof Error) && o(
|
|
38
|
+
(s || "React class") + ": type specification of " + i + " `" + e + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof r + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
39
|
+
), r instanceof Error && !(r.message in t)) {
|
|
40
|
+
t[r.message] = !0;
|
|
41
|
+
var p = c ? c() : "";
|
|
42
|
+
o(
|
|
43
|
+
"Failed " + i + " type: " + r.message + (p ?? "")
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return u.resetWarningCache = function() {
|
|
50
|
+
process.env.NODE_ENV !== "production" && (t = {});
|
|
51
|
+
}, f = u, f;
|
|
4
52
|
}
|
|
5
53
|
export {
|
|
6
|
-
|
|
54
|
+
P as __require
|
|
7
55
|
};
|
|
8
56
|
//# sourceMappingURL=sd-component-library304.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library304.js","sources":["../node_modules/prop-types/
|
|
1
|
+
{"version":3,"file":"sd-component-library304.js","sources":["../node_modules/prop-types/checkPropTypes.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n"],"names":["printWarning","ReactPropTypesSecret","require$$0","loggedTypeFailures","has","require$$1","text","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1"],"mappings":";;;;;;;AASA,MAAIA,IAAe,WAAW;AAAA;AAE9B,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,QAAIC,IAAuBC,KACvBC,IAAqB,CAAA,GACrBC,IAAMC;AAEV,IAAAL,IAAe,SAASM,GAAM;AAC5B,UAAIC,IAAU,cAAcD;AAC5B,MAAI,OAAO,UAAY,OACrB,QAAQ,MAAMC,CAAO;AAEvB,UAAI;AAIF,cAAM,IAAI,MAAMA,CAAO;AAAA,MAC7B,QAAgB;AAAA,MAAQ;AAAA,IACxB;AAAA,EACC;AAaD,WAASC,EAAeC,GAAWC,GAAQC,GAAUC,GAAeC,GAAU;AAC5E,QAAI,QAAQ,IAAI,aAAa;AAC3B,eAASC,KAAgBL;AACvB,YAAIL,EAAIK,GAAWK,CAAY,GAAG;AAChC,cAAIC;AAIJ,cAAI;AAGF,gBAAI,OAAON,EAAUK,CAAY,KAAM,YAAY;AACjD,kBAAIE,IAAM;AAAA,iBACPJ,KAAiB,iBAAiB,OAAOD,IAAW,YAAYG,IAAe,+FACC,OAAOL,EAAUK,CAAY,IAAI;AAAA,cAEhI;AACY,oBAAAE,EAAI,OAAO,uBACLA;AAAA,YACP;AACD,YAAAD,IAAQN,EAAUK,CAAY,EAAEJ,GAAQI,GAAcF,GAAeD,GAAU,MAAMV,CAAoB;AAAA,UAC1G,SAAQgB,GAAI;AACX,YAAAF,IAAQE;AAAA,UACT;AAWD,cAVIF,KAAS,EAAEA,aAAiB,UAC9Bf;AAAA,aACGY,KAAiB,iBAAiB,6BACnCD,IAAW,OAAOG,IAAe,6FAC6B,OAAOC,IAAQ;AAAA,UAIzF,GAEYA,aAAiB,SAAS,EAAEA,EAAM,WAAWZ,IAAqB;AAGpE,YAAAA,EAAmBY,EAAM,OAAO,IAAI;AAEpC,gBAAIG,IAAQL,IAAWA,EAAQ,IAAK;AAEpC,YAAAb;AAAA,cACE,YAAYW,IAAW,YAAYI,EAAM,WAAWG,KAAwB;AAAA,YACxF;AAAA,UACS;AAAA,QACF;AAAA;AAAA,EAGN;AAOD,SAAAV,EAAe,oBAAoB,WAAW;AAC5C,IAAI,QAAQ,IAAI,aAAa,iBAC3BL,IAAqB,CAAA;AAAA,EAExB,GAEDgB,IAAiBX;;","x_google_ignoreList":[0]}
|
|
@@ -1,56 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { __require as _ } from "./sd-component-library304.js";
|
|
3
|
-
var f, v;
|
|
4
|
-
function P() {
|
|
5
|
-
if (v)
|
|
6
|
-
return f;
|
|
7
|
-
v = 1;
|
|
8
|
-
var o = function() {
|
|
9
|
-
};
|
|
10
|
-
if (process.env.NODE_ENV !== "production") {
|
|
11
|
-
var y = E(), t = {}, d = _();
|
|
12
|
-
o = function(n) {
|
|
13
|
-
var a = "Warning: " + n;
|
|
14
|
-
typeof console < "u" && console.error(a);
|
|
15
|
-
try {
|
|
16
|
-
throw new Error(a);
|
|
17
|
-
} catch {
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
function u(n, a, i, s, c) {
|
|
22
|
-
if (process.env.NODE_ENV !== "production") {
|
|
23
|
-
for (var e in n)
|
|
24
|
-
if (d(n, e)) {
|
|
25
|
-
var r;
|
|
26
|
-
try {
|
|
27
|
-
if (typeof n[e] != "function") {
|
|
28
|
-
var h = Error(
|
|
29
|
-
(s || "React class") + ": " + i + " type `" + e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
30
|
-
);
|
|
31
|
-
throw h.name = "Invariant Violation", h;
|
|
32
|
-
}
|
|
33
|
-
r = n[e](a, e, s, i, null, y);
|
|
34
|
-
} catch (l) {
|
|
35
|
-
r = l;
|
|
36
|
-
}
|
|
37
|
-
if (r && !(r instanceof Error) && o(
|
|
38
|
-
(s || "React class") + ": type specification of " + i + " `" + e + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof r + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
39
|
-
), r instanceof Error && !(r.message in t)) {
|
|
40
|
-
t[r.message] = !0;
|
|
41
|
-
var p = c ? c() : "";
|
|
42
|
-
o(
|
|
43
|
-
"Failed " + i + " type: " + r.message + (p ?? "")
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return u.resetWarningCache = function() {
|
|
50
|
-
process.env.NODE_ENV !== "production" && (t = {});
|
|
51
|
-
}, f = u, f;
|
|
52
|
-
}
|
|
1
|
+
var r = {};
|
|
53
2
|
export {
|
|
54
|
-
|
|
3
|
+
r as __exports
|
|
55
4
|
};
|
|
56
5
|
//# sourceMappingURL=sd-component-library305.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library305.js","sources":[
|
|
1
|
+
{"version":3,"file":"sd-component-library305.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
function a(r, o) {
|
|
2
|
+
if (r == null)
|
|
3
|
+
return {};
|
|
4
|
+
var n = {}, i = Object.keys(r), e, t;
|
|
5
|
+
for (t = 0; t < i.length; t++)
|
|
6
|
+
e = i[t], !(o.indexOf(e) >= 0) && (n[e] = r[e]);
|
|
7
|
+
return n;
|
|
8
|
+
}
|
|
2
9
|
export {
|
|
3
|
-
|
|
10
|
+
a as default
|
|
4
11
|
};
|
|
5
12
|
//# sourceMappingURL=sd-component-library307.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library307.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"sd-component-library307.js","sources":["../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}"],"names":["_objectWithoutPropertiesLoose","source","excluded","target","sourceKeys","key","i"],"mappings":"AAAe,SAASA,EAA8BC,GAAQC,GAAU;AACtE,MAAID,KAAU;AAAM,WAAO;AAC3B,MAAIE,IAAS,CAAA,GACTC,IAAa,OAAO,KAAKH,CAAM,GAC/BI,GAAKC;AACT,OAAKA,IAAI,GAAGA,IAAIF,EAAW,QAAQE;AAEjC,IADAD,IAAMD,EAAWE,CAAC,GACd,EAAAJ,EAAS,QAAQG,CAAG,KAAK,OAC7BF,EAAOE,CAAG,IAAIJ,EAAOI,CAAG;AAE1B,SAAOF;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var n = {}, i = Object.keys(r), e, t;
|
|
5
|
-
for (t = 0; t < i.length; t++)
|
|
6
|
-
e = i[t], !(o.indexOf(e) >= 0) && (n[e] = r[e]);
|
|
7
|
-
return n;
|
|
1
|
+
import e from "./sd-component-library312.js";
|
|
2
|
+
function p(t, o) {
|
|
3
|
+
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, e(t, o);
|
|
8
4
|
}
|
|
9
5
|
export {
|
|
10
|
-
|
|
6
|
+
p as default
|
|
11
7
|
};
|
|
12
8
|
//# sourceMappingURL=sd-component-library308.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library308.js","sources":["../node_modules/@babel/runtime/helpers/esm/
|
|
1
|
+
{"version":3,"file":"sd-component-library308.js","sources":["../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"],"sourcesContent":["import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}"],"names":["_inheritsLoose","subClass","superClass","setPrototypeOf"],"mappings":";AACe,SAASA,EAAeC,GAAUC,GAAY;AAC3D,EAAAD,EAAS,YAAY,OAAO,OAAOC,EAAW,SAAS,GACvDD,EAAS,UAAU,cAAcA,GACjCE,EAAeF,GAAUC,CAAU;AACrC;","x_google_ignoreList":[0]}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
1
|
+
const a = {
|
|
2
|
+
disabled: !1
|
|
3
|
+
};
|
|
5
4
|
export {
|
|
6
|
-
|
|
5
|
+
a as default
|
|
7
6
|
};
|
|
8
7
|
//# sourceMappingURL=sd-component-library309.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library309.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"sd-component-library309.js","sources":["../node_modules/react-transition-group/esm/config.js"],"sourcesContent":["export default {\n disabled: false\n};"],"names":["config"],"mappings":"AAAA,MAAeA,IAAA;AAAA,EACb,UAAU;AACZ;","x_google_ignoreList":[0]}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import e from "./sd-component-library289.js";
|
|
2
|
+
var n = process.env.NODE_ENV !== "production" ? e.oneOfType([e.number, e.shape({
|
|
3
|
+
enter: e.number,
|
|
4
|
+
exit: e.number,
|
|
5
|
+
appear: e.number
|
|
6
|
+
}).isRequired]) : null;
|
|
7
|
+
process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
|
|
8
|
+
enter: e.string,
|
|
9
|
+
exit: e.string,
|
|
10
|
+
active: e.string
|
|
11
|
+
}), e.shape({
|
|
12
|
+
enter: e.string,
|
|
13
|
+
enterDone: e.string,
|
|
14
|
+
enterActive: e.string,
|
|
15
|
+
exit: e.string,
|
|
16
|
+
exitDone: e.string,
|
|
17
|
+
exitActive: e.string
|
|
18
|
+
})]);
|
|
4
19
|
export {
|
|
5
|
-
|
|
20
|
+
n as timeoutsShape
|
|
6
21
|
};
|
|
7
22
|
//# sourceMappingURL=sd-component-library310.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library310.js","sources":["../node_modules/react-transition-group/esm/
|
|
1
|
+
{"version":3,"file":"sd-component-library310.js","sources":["../node_modules/react-transition-group/esm/utils/PropTypes.js"],"sourcesContent":["import PropTypes from 'prop-types';\nexport var timeoutsShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n enter: PropTypes.number,\n exit: PropTypes.number,\n appear: PropTypes.number\n}).isRequired]) : null;\nexport var classNamesShape = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.string, PropTypes.shape({\n enter: PropTypes.string,\n exit: PropTypes.string,\n active: PropTypes.string\n}), PropTypes.shape({\n enter: PropTypes.string,\n enterDone: PropTypes.string,\n enterActive: PropTypes.string,\n exit: PropTypes.string,\n exitDone: PropTypes.string,\n exitActive: PropTypes.string\n})]) : null;"],"names":["timeoutsShape","PropTypes"],"mappings":";AACU,IAACA,IAAgB,QAAQ,IAAI,aAAa,eAAeC,EAAU,UAAU,CAACA,EAAU,QAAQA,EAAU,MAAM;AAAA,EACxH,OAAOA,EAAU;AAAA,EACjB,MAAMA,EAAU;AAAA,EAChB,QAAQA,EAAU;AACpB,CAAC,EAAE,UAAU,CAAC,IAAI;AACW,QAAQ,IAAI,aAAa,gBAAeA,EAAU,UAAU,CAACA,EAAU,QAAQA,EAAU,MAAM;AAAA,EAC1H,OAAOA,EAAU;AAAA,EACjB,MAAMA,EAAU;AAAA,EAChB,QAAQA,EAAU;AACpB,CAAC,GAAGA,EAAU,MAAM;AAAA,EAClB,OAAOA,EAAU;AAAA,EACjB,WAAWA,EAAU;AAAA,EACrB,aAAaA,EAAU;AAAA,EACvB,MAAMA,EAAU;AAAA,EAChB,UAAUA,EAAU;AAAA,EACpB,YAAYA,EAAU;AACxB,CAAC,CAAC,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
enter: e.number,
|
|
4
|
-
exit: e.number,
|
|
5
|
-
appear: e.number
|
|
6
|
-
}).isRequired]) : null;
|
|
7
|
-
process.env.NODE_ENV !== "production" && e.oneOfType([e.string, e.shape({
|
|
8
|
-
enter: e.string,
|
|
9
|
-
exit: e.string,
|
|
10
|
-
active: e.string
|
|
11
|
-
}), e.shape({
|
|
12
|
-
enter: e.string,
|
|
13
|
-
enterDone: e.string,
|
|
14
|
-
enterActive: e.string,
|
|
15
|
-
exit: e.string,
|
|
16
|
-
exitDone: e.string,
|
|
17
|
-
exitActive: e.string
|
|
18
|
-
})]);
|
|
1
|
+
import t from "react";
|
|
2
|
+
const o = t.createContext(null);
|
|
19
3
|
export {
|
|
20
|
-
|
|
4
|
+
o as default
|
|
21
5
|
};
|
|
22
6
|
//# sourceMappingURL=sd-component-library311.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library311.js","sources":["../node_modules/react-transition-group/esm/
|
|
1
|
+
{"version":3,"file":"sd-component-library311.js","sources":["../node_modules/react-transition-group/esm/TransitionGroupContext.js"],"sourcesContent":["import React from 'react';\nexport default React.createContext(null);"],"names":["TransitionGroupContext","React"],"mappings":";AACA,MAAAA,IAAeC,EAAM,cAAc,IAAI;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
function e(o, r) {
|
|
2
|
+
return e = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, f) {
|
|
3
|
+
return t.__proto__ = f, t;
|
|
4
|
+
}, e(o, r);
|
|
5
|
+
}
|
|
3
6
|
export {
|
|
4
|
-
|
|
7
|
+
e as default
|
|
5
8
|
};
|
|
6
9
|
//# sourceMappingURL=sd-component-library312.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library312.js","sources":["../node_modules/
|
|
1
|
+
{"version":3,"file":"sd-component-library312.js","sources":["../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"],"sourcesContent":["export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}"],"names":["_setPrototypeOf","p","o"],"mappings":"AAAe,SAASA,EAAgB,GAAGC,GAAG;AAC5C,SAAAD,IAAkB,OAAO,iBAAiB,OAAO,eAAe,KAAI,IAAK,SAAyBE,GAAGD,GAAG;AACtG,WAAAC,EAAE,YAAYD,GACPC;AAAA,EACX,GACSF,EAAgB,GAAGC,CAAC;AAC7B;","x_google_ignoreList":[0]}
|
|
@@ -1,9 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { j as e } from "./sd-component-library197.js";
|
|
2
|
+
import { useMemo as h } from "react";
|
|
3
|
+
import { Flex as p, Box as j } from "rebass";
|
|
4
|
+
import { SixteenRegular as l } from "./sd-component-library152.js";
|
|
5
|
+
import { ThirteenRegular as i } from "./sd-component-library156.js";
|
|
6
|
+
function b(o) {
|
|
7
|
+
const { synonyms: t, value: r, onSelect: c } = o, n = h(() => t[0], [t]), x = h(() => t.slice(1), [t]), a = h(() => {
|
|
8
|
+
const s = n.toLowerCase().indexOf(r.toLowerCase());
|
|
9
|
+
return /* @__PURE__ */ e.jsxs(p, { children: [
|
|
10
|
+
/* @__PURE__ */ e.jsx(l, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: n.substring(0, s) }) }),
|
|
11
|
+
/* @__PURE__ */ e.jsx(l, { width: [""], color: "cl_purple", cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: n.substring(s, s + r.length) }) }),
|
|
12
|
+
/* @__PURE__ */ e.jsx(l, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: n.substring(s + r.length) }) })
|
|
13
|
+
] });
|
|
14
|
+
}, [n, r]);
|
|
15
|
+
return /* @__PURE__ */ e.jsxs(
|
|
16
|
+
j,
|
|
17
|
+
{
|
|
18
|
+
sx: {
|
|
19
|
+
p: "10px 16px",
|
|
20
|
+
cursor: "pointer"
|
|
21
|
+
},
|
|
22
|
+
onClick: (s) => c(n),
|
|
23
|
+
"data-test": "result-box",
|
|
24
|
+
children: [
|
|
25
|
+
a,
|
|
26
|
+
/* @__PURE__ */ e.jsx(p, { flexWrap: "wrap", children: x.map((s, d, u) => /* @__PURE__ */ e.jsx(
|
|
27
|
+
m,
|
|
28
|
+
{
|
|
29
|
+
value: r,
|
|
30
|
+
synonym: s,
|
|
31
|
+
appendSlash: d !== u.length - 1
|
|
32
|
+
},
|
|
33
|
+
s
|
|
34
|
+
)) })
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
);
|
|
5
38
|
}
|
|
39
|
+
const m = (o) => {
|
|
40
|
+
const { value: t, synonym: r, appendSlash: c } = o, n = r.toLowerCase().indexOf(t.toLowerCase());
|
|
41
|
+
return /* @__PURE__ */ e.jsxs(p, { children: [
|
|
42
|
+
n !== -1 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
43
|
+
/* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(0, n) }) }),
|
|
44
|
+
/* @__PURE__ */ e.jsx(i, { width: [""], color: "cl_purple", cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(n, n + t.length) }) }),
|
|
45
|
+
/* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(n + t.length) }) })
|
|
46
|
+
] }) : /* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r }) }),
|
|
47
|
+
c && /* @__PURE__ */ e.jsx(
|
|
48
|
+
i,
|
|
49
|
+
{
|
|
50
|
+
color: "cl_darkGrey",
|
|
51
|
+
width: ["12px"],
|
|
52
|
+
textAlign: "center",
|
|
53
|
+
children: "/"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
] }, r);
|
|
57
|
+
};
|
|
6
58
|
export {
|
|
7
|
-
|
|
59
|
+
b as AutocompleteOptionBox
|
|
8
60
|
};
|
|
9
61
|
//# sourceMappingURL=sd-component-library313.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library313.js","sources":["../
|
|
1
|
+
{"version":3,"file":"sd-component-library313.js","sources":["../src/components/inputs/autocomplete-input/partials/autocomplete-option-box/autocomplete-option-box.tsx"],"sourcesContent":["import React, { PropsWithChildren, useMemo } from \"react\";\n\nimport { Box, Flex } from \"rebass\";\n\nimport { SixteenRegular } from \"../../../../texts/sixteen-regular\";\nimport { ThirteenRegular } from \"../../../../texts/thirteen-regular\";\nimport { AutocompleteOptionBox as Props } from \"./interfaces\";\n\nexport function AutocompleteOptionBox<T>(props: PropsWithChildren<Props<T>>) {\n const { synonyms, value, onSelect } = props;\n\n /* Synonym that first matches the query */\n const matchingSynonym = useMemo(() => synonyms[0], [synonyms]);\n /* List of synonyms to be displayed below the matching synonym */\n const otherSynonyms = useMemo(() => synonyms.slice(1), [synonyms]);\n\n const renderMatchingSynonym = useMemo(() => {\n const startIndex = matchingSynonym\n .toLowerCase()\n .indexOf(value.toLowerCase());\n\n return (\n <Flex>\n <SixteenRegular width={[\"\"]} cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {matchingSynonym.substring(0, startIndex)}\n </span>\n </SixteenRegular>\n <SixteenRegular width={[\"\"]} color=\"cl_purple\" cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {matchingSynonym.substring(startIndex, startIndex + value.length)}\n </span>\n </SixteenRegular>\n <SixteenRegular width={[\"\"]} cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {matchingSynonym.substring(startIndex + value.length)}\n </span>\n </SixteenRegular>\n </Flex>\n );\n }, [matchingSynonym, value]);\n\n return (\n <Box\n sx={{\n p: \"10px 16px\",\n cursor: \"pointer\",\n }}\n onClick={(x) => onSelect(matchingSynonym)}\n data-test=\"result-box\"\n >\n {renderMatchingSynonym}\n <Flex flexWrap=\"wrap\">\n {otherSynonyms.map((synonym, idx, arr) => (\n <OtherSynonym\n key={synonym}\n value={value}\n synonym={synonym}\n appendSlash={idx !== arr.length - 1}\n />\n ))}\n </Flex>\n </Box>\n );\n}\n\nconst OtherSynonym: React.FC<{\n value: string;\n synonym: string;\n appendSlash: boolean;\n}> = (props) => {\n const { value, synonym, appendSlash } = props;\n const matchIdx = synonym.toLowerCase().indexOf(value.toLowerCase());\n\n return (\n <Flex key={synonym}>\n {matchIdx !== -1 ? (\n <>\n <ThirteenRegular width={[\"\"]} cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {synonym.substring(0, matchIdx)}\n </span>\n </ThirteenRegular>\n <ThirteenRegular width={[\"\"]} color=\"cl_purple\" cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {synonym.substring(matchIdx, matchIdx + value.length)}\n </span>\n </ThirteenRegular>\n <ThirteenRegular width={[\"\"]} cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>\n {synonym.substring(matchIdx + value.length)}\n </span>\n </ThirteenRegular>\n </>\n ) : (\n <ThirteenRegular width={[\"\"]} cursor={\"inherit\"}>\n <span style={{ whiteSpace: \"pre\" }}>{synonym}</span>\n </ThirteenRegular>\n )}\n\n {appendSlash && (\n <ThirteenRegular\n color=\"cl_darkGrey\"\n width={[\"12px\"]}\n textAlign=\"center\"\n >\n /\n </ThirteenRegular>\n )}\n </Flex>\n );\n};\n"],"names":["AutocompleteOptionBox","props","synonyms","value","onSelect","matchingSynonym","useMemo","otherSynonyms","renderMatchingSynonym","startIndex","Flex","jsx","SixteenRegular","jsxs","Box","x","synonym","idx","arr","OtherSynonym","appendSlash","matchIdx","Fragment","ThirteenRegular"],"mappings":";;;;;AAQO,SAASA,EAAyBC,GAAoC;AAC3E,QAAM,EAAE,UAAAC,GAAU,OAAAC,GAAO,UAAAC,EAAA,IAAaH,GAGhCI,IAAkBC,EAAQ,MAAMJ,EAAS,CAAC,GAAG,CAACA,CAAQ,CAAC,GAEvDK,IAAgBD,EAAQ,MAAMJ,EAAS,MAAM,CAAC,GAAG,CAACA,CAAQ,CAAC,GAE3DM,IAAwBF,EAAQ,MAAM;AAC1C,UAAMG,IAAaJ,EAChB,YAAA,EACA,QAAQF,EAAM,aAAa;AAE9B,kCACGO,GACC,EAAA,UAAA;A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;"}
|
|
@@ -1,61 +1,96 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { j as a } from "./sd-component-library197.js";
|
|
2
|
+
import { useState as S, useCallback as B } from "react";
|
|
3
|
+
import { Box as Y } from "rebass";
|
|
4
|
+
import { labelPaddingX as c, labelWidth as W } from "./sd-component-library231.js";
|
|
5
|
+
import { getCoordinateForArc as $ } from "./sd-component-library92.js";
|
|
6
|
+
import { ResponsiveTextV2 as z } from "./sd-component-library151.js";
|
|
7
|
+
const D = (j) => {
|
|
8
|
+
const {
|
|
9
|
+
label: d,
|
|
10
|
+
color: p,
|
|
11
|
+
alpha: e,
|
|
12
|
+
radius: r,
|
|
13
|
+
horizontal: v,
|
|
14
|
+
pointerLength: m,
|
|
15
|
+
round: y,
|
|
16
|
+
pointY: i
|
|
17
|
+
} = j, [h, C] = S(0), [f, R] = S(0), T = B((t) => {
|
|
18
|
+
if (t) {
|
|
19
|
+
const { height: o, y: l } = t.getBoundingClientRect();
|
|
20
|
+
C(o), R(l);
|
|
21
|
+
}
|
|
22
|
+
}, []);
|
|
23
|
+
let { x: b, y: g } = $(
|
|
24
|
+
r + m,
|
|
25
|
+
e,
|
|
26
|
+
r
|
|
27
|
+
);
|
|
28
|
+
const s = e === 180, n = e < 180, u = e > 180;
|
|
29
|
+
if (v) {
|
|
30
|
+
const { x: t, y: o } = $(
|
|
31
|
+
r,
|
|
32
|
+
e,
|
|
33
|
+
r
|
|
34
|
+
);
|
|
35
|
+
b = t + m * (n ? -1 : 1), g = o;
|
|
36
|
+
}
|
|
37
|
+
if (!d)
|
|
38
|
+
return null;
|
|
39
|
+
let x = y || s ? `${c}px` : void 0;
|
|
40
|
+
if (!x && i) {
|
|
41
|
+
const t = f - h, o = f;
|
|
42
|
+
x = [
|
|
43
|
+
n || i > t,
|
|
44
|
+
u || i > t,
|
|
45
|
+
u || i < o,
|
|
46
|
+
n || i < o
|
|
47
|
+
].map((l) => l ? `${c}px` : "0").join(" ");
|
|
48
|
+
}
|
|
49
|
+
return /* @__PURE__ */ a.jsx(
|
|
50
|
+
Y,
|
|
17
51
|
{
|
|
18
52
|
sx: {
|
|
19
|
-
|
|
20
|
-
|
|
53
|
+
position: "absolute",
|
|
54
|
+
left: `${b}px`,
|
|
55
|
+
top: `${g}px`
|
|
21
56
|
},
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
57
|
+
children: /* @__PURE__ */ a.jsx(
|
|
58
|
+
Y,
|
|
59
|
+
{
|
|
60
|
+
sx: {
|
|
61
|
+
boxSizing: "content-box",
|
|
62
|
+
position: "relative",
|
|
63
|
+
top: `calc(-${h}px)`,
|
|
64
|
+
left: s ? "-50%" : n ? "-100%" : void 0,
|
|
65
|
+
py: "7px",
|
|
66
|
+
px: `${c}px`,
|
|
67
|
+
borderColor: p,
|
|
68
|
+
borderWidth: "2px",
|
|
69
|
+
borderStyle: "solid",
|
|
70
|
+
borderRadius: x,
|
|
71
|
+
bg: "cl_white",
|
|
72
|
+
"& > div": {
|
|
73
|
+
maxWidth: s ? void 0 : `${W}px`
|
|
74
|
+
}
|
|
32
75
|
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
76
|
+
ref: T,
|
|
77
|
+
children: /* @__PURE__ */ a.jsx(
|
|
78
|
+
z,
|
|
79
|
+
{
|
|
80
|
+
fontSizeWeight: [[12, "semi-bold"]],
|
|
81
|
+
width: "max-content",
|
|
82
|
+
color: p !== "#CCD0DB" ? p : "cl_darkGrey",
|
|
83
|
+
textTransform: "uppercase",
|
|
84
|
+
letterSpacing: "1.8px",
|
|
85
|
+
children: d
|
|
86
|
+
}
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
)
|
|
36
90
|
}
|
|
37
91
|
);
|
|
38
|
-
}
|
|
39
|
-
const m = (o) => {
|
|
40
|
-
const { value: t, synonym: r, appendSlash: c } = o, n = r.toLowerCase().indexOf(t.toLowerCase());
|
|
41
|
-
return /* @__PURE__ */ e.jsxs(p, { children: [
|
|
42
|
-
n !== -1 ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
43
|
-
/* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(0, n) }) }),
|
|
44
|
-
/* @__PURE__ */ e.jsx(i, { width: [""], color: "cl_purple", cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(n, n + t.length) }) }),
|
|
45
|
-
/* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r.substring(n + t.length) }) })
|
|
46
|
-
] }) : /* @__PURE__ */ e.jsx(i, { width: [""], cursor: "inherit", children: /* @__PURE__ */ e.jsx("span", { style: { whiteSpace: "pre" }, children: r }) }),
|
|
47
|
-
c && /* @__PURE__ */ e.jsx(
|
|
48
|
-
i,
|
|
49
|
-
{
|
|
50
|
-
color: "cl_darkGrey",
|
|
51
|
-
width: ["12px"],
|
|
52
|
-
textAlign: "center",
|
|
53
|
-
children: "/"
|
|
54
|
-
}
|
|
55
|
-
)
|
|
56
|
-
] }, r);
|
|
57
92
|
};
|
|
58
93
|
export {
|
|
59
|
-
|
|
94
|
+
D as MatchedRangeLabelBox
|
|
60
95
|
};
|
|
61
96
|
//# sourceMappingURL=sd-component-library314.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sd-component-library314.js","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"sd-component-library314.js","sources":["../src/components/meters/common-outline-meter-partials/matched-range-label-box/matched-range-label-box.tsx"],"sourcesContent":["import React, { useCallback, useState } from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { ResponsiveTextV2 } from \"../../../texts/responsive-text-v2\";\nimport { labelPaddingX, labelWidth } from \"../../outline-meter/contants\";\nimport { getCoordinateForArc } from \"../../outline-meter/utils\";\nimport { MatchedRangeLabelBoxProps as Props } from \"./interfaces\";\n\nexport const MatchedRangeLabelBox: React.FC<Props> = (props) => {\n const {\n label,\n color,\n alpha,\n radius,\n horizontal,\n pointerLength,\n round,\n pointY,\n } = props;\n\n const [textHeight, setTextHeight] = useState(0);\n const [textY, setTextY] = useState(0);\n\n const ref = useCallback((node: HTMLElement) => {\n if (node) {\n const { height, y } = node.getBoundingClientRect();\n setTextHeight(height);\n setTextY(y);\n }\n }, []);\n\n let { x: pointerEndX, y: pointerEndY } = getCoordinateForArc(\n radius + pointerLength,\n alpha,\n radius\n );\n\n const isOnTop = alpha === 180;\n const isOnLeft = alpha < 180;\n const isOnRight = alpha > 180;\n\n if (horizontal) {\n const { x: pointerStartX, y: pointerStartY } = getCoordinateForArc(\n radius,\n alpha,\n radius\n );\n\n pointerEndX = pointerStartX + pointerLength * (isOnLeft ? -1 : 1);\n pointerEndY = pointerStartY;\n }\n\n if (!label) return null;\n\n let borderRadius = round || isOnTop ? `${labelPaddingX}px` : undefined;\n if (!borderRadius && pointY) {\n const textTopY = textY - textHeight;\n const textBottomY = textY;\n\n borderRadius = [\n isOnLeft || pointY > textTopY,\n isOnRight || pointY > textTopY,\n isOnRight || pointY < textBottomY,\n isOnLeft || pointY < textBottomY,\n ]\n .map((flag) => (flag ? `${labelPaddingX}px` : \"0\"))\n .join(\" \");\n }\n\n return (\n <Box\n sx={{\n position: \"absolute\",\n left: `${pointerEndX}px`,\n top: `${pointerEndY}px`,\n }}\n >\n <Box\n sx={{\n boxSizing: \"content-box\",\n position: \"relative\",\n top: `calc(-${textHeight}px)`,\n left: isOnTop ? \"-50%\" : isOnLeft ? \"-100%\" : undefined,\n py: \"7px\",\n px: `${labelPaddingX}px`,\n borderColor: color,\n borderWidth: \"2px\",\n borderStyle: \"solid\",\n borderRadius,\n bg: \"cl_white\",\n \"& > div\": {\n maxWidth: isOnTop ? undefined : `${labelWidth}px`,\n },\n }}\n ref={ref}\n >\n <ResponsiveTextV2\n fontSizeWeight={[[12, \"semi-bold\"]]}\n width=\"max-content\"\n color={color !== \"#CCD0DB\" ? color : \"cl_darkGrey\"}\n textTransform=\"uppercase\"\n letterSpacing=\"1.8px\"\n >\n {label}\n </ResponsiveTextV2>\n </Box>\n </Box>\n );\n};\n"],"names":["MatchedRangeLabelBox","props","label","color","alpha","radius","horizontal","pointerLength","round","pointY","textHeight","setTextHeight","useState","textY","setTextY","ref","useCallback","node","height","y","pointerEndX","pointerEndY","getCoordinateForArc","isOnTop","isOnLeft","isOnRight","pointerStartX","pointerStartY","borderRadius","labelPaddingX","textTopY","textBottomY","flag","jsx","Box","labelWidth","ResponsiveTextV2"],"mappings":";;;;;;AASa,MAAAA,IAAwC,CAACC,MAAU;AACxD,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,eAAAC;AAAA,IACA,OAAAC;AAAA,IACA,QAAAC;AAAA,EACE,IAAAR,GAEE,CAACS,GAAYC,CAAa,IAAIC,EAAS,CAAC,GACxC,CAACC,GAAOC,CAAQ,IAAIF,EAAS,CAAC,GAE9BG,IAAMC,EAAY,CAACC,MAAsB;AAC7C,QAAIA,GAAM;AACR,YAAM,EAAE,QAAAC,GAAQ,GAAAC,EAAE,IAAIF,EAAK,sBAAsB;AACjD,MAAAN,EAAcO,CAAM,GACpBJ,EAASK,CAAC;AAAA,IACZ;AAAA,EACF,GAAG,CAAE,CAAA;AAEL,MAAI,EAAE,GAAGC,GAAa,GAAGC,EAAgB,IAAAC;AAA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