@selfdecode/sd-component-library 4.0.115 → 4.0.117

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.
Files changed (201) hide show
  1. package/lib/components/forms-v2/form-v2-input/form-v2-input.d.ts +1 -0
  2. package/lib/sd-component-library100.js +2 -2
  3. package/lib/sd-component-library101.js +3 -3
  4. package/lib/sd-component-library102.js +2 -2
  5. package/lib/sd-component-library103.js +3 -3
  6. package/lib/sd-component-library119.js +1 -1
  7. package/lib/sd-component-library120.js +1 -1
  8. package/lib/sd-component-library122.js +1 -1
  9. package/lib/sd-component-library123.js +1 -1
  10. package/lib/sd-component-library128.js +1 -1
  11. package/lib/sd-component-library129.js +1 -1
  12. package/lib/sd-component-library131.js +1 -1
  13. package/lib/sd-component-library135.js +3 -3
  14. package/lib/sd-component-library136.js +1 -1
  15. package/lib/sd-component-library138.js +2 -2
  16. package/lib/sd-component-library170.js +1 -1
  17. package/lib/sd-component-library173.js +1 -1
  18. package/lib/sd-component-library174.js +3 -3
  19. package/lib/sd-component-library175.js +1 -1
  20. package/lib/sd-component-library198.js +3 -3
  21. package/lib/sd-component-library202.js +2 -3
  22. package/lib/sd-component-library202.js.map +1 -1
  23. package/lib/sd-component-library203.js +30 -2
  24. package/lib/sd-component-library203.js.map +1 -1
  25. package/lib/sd-component-library204.js +590 -21
  26. package/lib/sd-component-library204.js.map +1 -1
  27. package/lib/sd-component-library205.js +3 -599
  28. package/lib/sd-component-library205.js.map +1 -1
  29. package/lib/sd-component-library215.js +55 -31
  30. package/lib/sd-component-library215.js.map +1 -1
  31. package/lib/sd-component-library216.js +21 -127
  32. package/lib/sd-component-library216.js.map +1 -1
  33. package/lib/sd-component-library217.js +40 -13
  34. package/lib/sd-component-library217.js.map +1 -1
  35. package/lib/sd-component-library218.js +128 -13
  36. package/lib/sd-component-library218.js.map +1 -1
  37. package/lib/sd-component-library219.js +13 -3
  38. package/lib/sd-component-library219.js.map +1 -1
  39. package/lib/sd-component-library220.js +14 -3
  40. package/lib/sd-component-library220.js.map +1 -1
  41. package/lib/sd-component-library221.js +2 -2
  42. package/lib/sd-component-library221.js.map +1 -1
  43. package/lib/sd-component-library222.js +3 -52
  44. package/lib/sd-component-library222.js.map +1 -1
  45. package/lib/sd-component-library224.js +3 -65
  46. package/lib/sd-component-library224.js.map +1 -1
  47. package/lib/sd-component-library225.js +52 -3
  48. package/lib/sd-component-library225.js.map +1 -1
  49. package/lib/sd-component-library227.js +55 -54
  50. package/lib/sd-component-library227.js.map +1 -1
  51. package/lib/sd-component-library228.js +3 -23
  52. package/lib/sd-component-library228.js.map +1 -1
  53. package/lib/sd-component-library232.js +3 -3
  54. package/lib/sd-component-library235.js +1 -1
  55. package/lib/sd-component-library236.js +3 -129
  56. package/lib/sd-component-library236.js.map +1 -1
  57. package/lib/sd-component-library237.js +129 -43
  58. package/lib/sd-component-library237.js.map +1 -1
  59. package/lib/sd-component-library238.js +41 -45
  60. package/lib/sd-component-library238.js.map +1 -1
  61. package/lib/sd-component-library239.js +46 -7
  62. package/lib/sd-component-library239.js.map +1 -1
  63. package/lib/sd-component-library240.js +8 -64
  64. package/lib/sd-component-library240.js.map +1 -1
  65. package/lib/sd-component-library241.js +62 -41
  66. package/lib/sd-component-library241.js.map +1 -1
  67. package/lib/sd-component-library242.js +43 -13
  68. package/lib/sd-component-library242.js.map +1 -1
  69. package/lib/sd-component-library243.js +13 -3
  70. package/lib/sd-component-library243.js.map +1 -1
  71. package/lib/sd-component-library244.js +20 -47
  72. package/lib/sd-component-library244.js.map +1 -1
  73. package/lib/sd-component-library245.js +101 -67
  74. package/lib/sd-component-library245.js.map +1 -1
  75. package/lib/sd-component-library246.js +47 -21
  76. package/lib/sd-component-library246.js.map +1 -1
  77. package/lib/sd-component-library247.js +23 -108
  78. package/lib/sd-component-library247.js.map +1 -1
  79. package/lib/sd-component-library248.js +49 -43
  80. package/lib/sd-component-library248.js.map +1 -1
  81. package/lib/sd-component-library249.js +46 -22
  82. package/lib/sd-component-library249.js.map +1 -1
  83. package/lib/sd-component-library250.js +73 -51
  84. package/lib/sd-component-library250.js.map +1 -1
  85. package/lib/sd-component-library251.js +41 -2
  86. package/lib/sd-component-library251.js.map +1 -1
  87. package/lib/sd-component-library252.js +27 -21
  88. package/lib/sd-component-library252.js.map +1 -1
  89. package/lib/sd-component-library253.js +20 -19
  90. package/lib/sd-component-library253.js.map +1 -1
  91. package/lib/sd-component-library254.js +20 -41
  92. package/lib/sd-component-library254.js.map +1 -1
  93. package/lib/sd-component-library255.js +2 -27
  94. package/lib/sd-component-library255.js.map +1 -1
  95. package/lib/sd-component-library264.js +122 -30
  96. package/lib/sd-component-library264.js.map +1 -1
  97. package/lib/sd-component-library265.js +29 -50
  98. package/lib/sd-component-library265.js.map +1 -1
  99. package/lib/sd-component-library266.js +16 -126
  100. package/lib/sd-component-library266.js.map +1 -1
  101. package/lib/sd-component-library267.js +114 -63
  102. package/lib/sd-component-library267.js.map +1 -1
  103. package/lib/sd-component-library268.js +9 -75
  104. package/lib/sd-component-library268.js.map +1 -1
  105. package/lib/sd-component-library269.js +39 -111
  106. package/lib/sd-component-library269.js.map +1 -1
  107. package/lib/sd-component-library270.js +30 -10
  108. package/lib/sd-component-library270.js.map +1 -1
  109. package/lib/sd-component-library271.js +46 -45
  110. package/lib/sd-component-library271.js.map +1 -1
  111. package/lib/sd-component-library272.js +131 -30
  112. package/lib/sd-component-library272.js.map +1 -1
  113. package/lib/sd-component-library273.js +68 -15
  114. package/lib/sd-component-library273.js.map +1 -1
  115. package/lib/sd-component-library274.js +66 -115
  116. package/lib/sd-component-library274.js.map +1 -1
  117. package/lib/sd-component-library275.js +49 -9
  118. package/lib/sd-component-library275.js.map +1 -1
  119. package/lib/sd-component-library276.js +9 -51
  120. package/lib/sd-component-library276.js.map +1 -1
  121. package/lib/sd-component-library277.js +48 -87
  122. package/lib/sd-component-library277.js.map +1 -1
  123. package/lib/sd-component-library278.js +52 -54
  124. package/lib/sd-component-library278.js.map +1 -1
  125. package/lib/sd-component-library279.js +91 -48
  126. package/lib/sd-component-library279.js.map +1 -1
  127. package/lib/sd-component-library282.js +2 -10
  128. package/lib/sd-component-library282.js.map +1 -1
  129. package/lib/sd-component-library283.js +2 -2
  130. package/lib/sd-component-library284.js +70 -2
  131. package/lib/sd-component-library284.js.map +1 -1
  132. package/lib/sd-component-library285.js +101 -69
  133. package/lib/sd-component-library285.js.map +1 -1
  134. package/lib/sd-component-library286.js +95 -91
  135. package/lib/sd-component-library286.js.map +1 -1
  136. package/lib/sd-component-library287.js +10 -106
  137. package/lib/sd-component-library287.js.map +1 -1
  138. package/lib/sd-component-library293.js +3 -3
  139. package/lib/sd-component-library294.js +4 -4
  140. package/lib/sd-component-library295.js +1 -1
  141. package/lib/sd-component-library296.js +2 -3
  142. package/lib/sd-component-library296.js.map +1 -1
  143. package/lib/sd-component-library297.js +77 -3
  144. package/lib/sd-component-library297.js.map +1 -1
  145. package/lib/sd-component-library298.js +93 -3
  146. package/lib/sd-component-library298.js.map +1 -1
  147. package/lib/sd-component-library299.js +53 -2
  148. package/lib/sd-component-library299.js.map +1 -1
  149. package/lib/sd-component-library300.js +8 -76
  150. package/lib/sd-component-library300.js.map +1 -1
  151. package/lib/sd-component-library301.js +4 -92
  152. package/lib/sd-component-library301.js.map +1 -1
  153. package/lib/sd-component-library302.js +48 -48
  154. package/lib/sd-component-library302.js.map +1 -1
  155. package/lib/sd-component-library303.js +3 -9
  156. package/lib/sd-component-library303.js.map +1 -1
  157. package/lib/sd-component-library304.js +3 -5
  158. package/lib/sd-component-library304.js.map +1 -1
  159. package/lib/sd-component-library305.js +3 -53
  160. package/lib/sd-component-library305.js.map +1 -1
  161. package/lib/sd-component-library316.js +88 -20
  162. package/lib/sd-component-library316.js.map +1 -1
  163. package/lib/sd-component-library317.js +1 -1
  164. package/lib/sd-component-library318.js +33 -91
  165. package/lib/sd-component-library318.js.map +1 -1
  166. package/lib/sd-component-library319.js +23 -33
  167. package/lib/sd-component-library319.js.map +1 -1
  168. package/lib/sd-component-library320.js +4 -33
  169. package/lib/sd-component-library320.js.map +1 -1
  170. package/lib/sd-component-library321.js +4 -5
  171. package/lib/sd-component-library321.js.map +1 -1
  172. package/lib/sd-component-library322.js +34 -4
  173. package/lib/sd-component-library322.js.map +1 -1
  174. package/lib/sd-component-library323.js +1 -1
  175. package/lib/sd-component-library325.js +90 -32
  176. package/lib/sd-component-library325.js.map +1 -1
  177. package/lib/sd-component-library326.js +32 -90
  178. package/lib/sd-component-library326.js.map +1 -1
  179. package/lib/sd-component-library54.js +2 -2
  180. package/lib/sd-component-library55.js +2 -2
  181. package/lib/sd-component-library57.js +21 -20
  182. package/lib/sd-component-library57.js.map +1 -1
  183. package/lib/sd-component-library6.js +1 -1
  184. package/lib/sd-component-library62.js +1 -1
  185. package/lib/sd-component-library63.js +1 -1
  186. package/lib/sd-component-library64.js +4 -4
  187. package/lib/sd-component-library65.js +1 -1
  188. package/lib/sd-component-library66.js +1 -1
  189. package/lib/sd-component-library7.js +1 -1
  190. package/lib/sd-component-library72.js +2 -2
  191. package/lib/sd-component-library74.js +3 -3
  192. package/lib/sd-component-library76.js +2 -2
  193. package/lib/sd-component-library77.js +3 -3
  194. package/lib/sd-component-library81.js +1 -1
  195. package/lib/sd-component-library83.js +23 -22
  196. package/lib/sd-component-library83.js.map +1 -1
  197. package/lib/sd-component-library90.js +1 -1
  198. package/lib/sd-component-library91.js +4 -4
  199. package/lib/sd-component-library94.js +4 -4
  200. package/lib/sd-component-library96.js +6 -6
  201. package/package.json +1 -1
@@ -1,8 +1,6 @@
1
- var r, e;
2
- function a() {
3
- return e || (e = 1, r = Function.call.bind(Object.prototype.hasOwnProperty)), r;
4
- }
1
+ import * as e from "react";
2
+ const r = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 27 27", ...t }, /* @__PURE__ */ e.createElement("g", null, /* @__PURE__ */ e.createElement("path", { d: "M391,292.419H368a2.089,2.089,0,1,0,0,4.178h23a2.089,2.089,0,0,0,0-4.178Z", transform: "translate(-365.884 -271.09)" }), /* @__PURE__ */ e.createElement("circle", { cx: 3.758, cy: 3.758, r: 3.758, transform: "translate(19.728 0.06)" }), /* @__PURE__ */ e.createElement("circle", { cx: 3.758, cy: 3.758, r: 3.758 })));
5
3
  export {
6
- a as __require
4
+ r as ReactComponent
7
5
  };
8
6
  //# sourceMappingURL=sd-component-library304.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library304.js","sources":["../node_modules/prop-types/lib/has.js"],"sourcesContent":["module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n"],"names":["has"],"mappings":";;sBAAAA,IAAiB,SAAS,KAAK,KAAK,OAAO,UAAU,cAAc;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"sd-component-library304.js","sources":["../src/components/meters/smiley-meter-v2/assets/neutral-smiley.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZwogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB2aWV3Qm94PSIwIDAgMjcgMjciCj4KICA8ZyA+CiAgICA8cGF0aAogICAgICBkPSJNMzkxLDI5Mi40MTlIMzY4YTIuMDg5LDIuMDg5LDAsMSwwLDAsNC4xNzhoMjNhMi4wODksMi4wODksMCwwLDAsMC00LjE3OFoiCiAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0zNjUuODg0IC0yNzEuMDkpIgogICAgLz4KICAgIDxjaXJjbGUgY3g9IjMuNzU4IiBjeT0iMy43NTgiIHI9IjMuNzU4IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS43MjggMC4wNikiIC8+CiAgICA8Y2lyY2xlIGN4PSIzLjc1OCIgY3k9IjMuNzU4IiByPSIzLjc1OCIgLz4KICA8L2c+Cjwvc3ZnPgo=\""],"names":["SvgNeutralSmiley","props","React"],"mappings":";AACK,MAACA,IAAmB,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,aAAa,GAAGD,KAAyB,gBAAAC,EAAM,cAAc,KAAK,MAAsB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,GAAG,4EAA4E,WAAW,8BAA6B,CAAE,GAAmB,gBAAAA,EAAM,cAAc,UAAU,EAAE,IAAI,OAAO,IAAI,OAAO,GAAG,OAAO,WAAW,0BAA0B,GAAmB,gBAAAA,EAAM,cAAc,UAAU,EAAE,IAAI,OAAO,IAAI,OAAO,GAAG,MAAO,CAAA,CAAC,CAAC;"}
@@ -1,56 +1,6 @@
1
- import { __require as E } from "./sd-component-library303.js";
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
+ import * as t from "react";
2
+ const a = (e) => /* @__PURE__ */ t.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 29 29", ...e }, /* @__PURE__ */ t.createElement("g", null, /* @__PURE__ */ t.createElement("path", { d: "M587.787,289.994a14.846,14.846,0,0,0-13.963,8.888h.031a1.817,1.817,0,0,0,3.358,1.391,11.709,11.709,0,0,1,21.125,0,1.816,1.816,0,1,0,3.336-1.437A14.981,14.981,0,0,0,587.787,289.994Z", transform: "translate(-573.349 -273.133)" }), /* @__PURE__ */ t.createElement("path", { d: "M592.474,280.84a1.514,1.514,0,0,0-1.512,1.514,2.269,2.269,0,1,1-4.478,0,1.512,1.512,0,1,0-3.025,0,5.295,5.295,0,1,0,10.53,0A1.514,1.514,0,0,0,592.474,280.84Z", transform: "translate(-565.173 -280.84)" }), /* @__PURE__ */ t.createElement("path", { d: "M578.248,288.183a5.294,5.294,0,0,0,5.83-5.828,1.513,1.513,0,1,0-3.027,0,2.269,2.269,0,1,1-4.478,0,1.512,1.512,0,1,0-3.025,0A5.293,5.293,0,0,0,578.248,288.183Z", transform: "translate(-573.518 -280.84)" })));
53
3
  export {
54
- P as __require
4
+ a as ReactComponent
55
5
  };
56
6
  //# sourceMappingURL=sd-component-library305.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library305.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
+ {"version":3,"file":"sd-component-library305.js","sources":["../src/components/meters/smiley-meter-v2/assets/sad-smiley.svg"],"sourcesContent":["export default \"data:image/svg+xml;base64,PHN2ZwogIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICB2aWV3Qm94PSIwIDAgMjkgMjkiCj4KICA8Zz4KICAgIDxwYXRoCiAgICAgIGQ9Ik01ODcuNzg3LDI4OS45OTRhMTQuODQ2LDE0Ljg0NiwwLDAsMC0xMy45NjMsOC44ODhoLjAzMWExLjgxNywxLjgxNywwLDAsMCwzLjM1OCwxLjM5MSwxMS43MDksMTEuNzA5LDAsMCwxLDIxLjEyNSwwLDEuODE2LDEuODE2LDAsMSwwLDMuMzM2LTEuNDM3QTE0Ljk4MSwxNC45ODEsMCwwLDAsNTg3Ljc4NywyODkuOTk0WiIKICAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTU3My4zNDkgLTI3My4xMzMpIgogICAgLz4KICAgIDxwYXRoCiAgICAgIGQ9Ik01OTIuNDc0LDI4MC44NGExLjUxNCwxLjUxNCwwLDAsMC0xLjUxMiwxLjUxNCwyLjI2OSwyLjI2OSwwLDEsMS00LjQ3OCwwLDEuNTEyLDEuNTEyLDAsMSwwLTMuMDI1LDAsNS4yOTUsNS4yOTUsMCwxLDAsMTAuNTMsMEExLjUxNCwxLjUxNCwwLDAsMCw1OTIuNDc0LDI4MC44NFoiCiAgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKC01NjUuMTczIC0yODAuODQpIgogICAgLz4KICAgIDxwYXRoCiAgICAgIGQ9Ik01NzguMjQ4LDI4OC4xODNhNS4yOTQsNS4yOTQsMCwwLDAsNS44My01LjgyOCwxLjUxMywxLjUxMywwLDEsMC0zLjAyNywwLDIuMjY5LDIuMjY5LDAsMSwxLTQuNDc4LDAsMS41MTIsMS41MTIsMCwxLDAtMy4wMjUsMEE1LjI5Myw1LjI5MywwLDAsMCw1NzguMjQ4LDI4OC4xODNaIgogICAgICB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtNTczLjUxOCAtMjgwLjg0KSIKICAgIC8+CiAgPC9nPgo8L3N2Zz4K\""],"names":["SvgSadSmiley","props","React"],"mappings":";AACK,MAACA,IAAe,CAACC,MAA0B,gBAAAC,EAAM,cAAc,OAAO,EAAE,OAAO,8BAA8B,SAAS,aAAa,GAAGD,EAAO,GAAkB,gBAAAC,EAAM,cAAc,KAAK,MAAsB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,GAAG,wLAAwL,WAAW,+BAAgC,CAAA,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,GAAG,iKAAiK,WAAW,8BAA6B,CAAE,GAAmB,gBAAAA,EAAM,cAAc,QAAQ,EAAE,GAAG,kKAAkK,WAAW,8BAA6B,CAAE,CAAC,CAAC;"}
@@ -1,28 +1,96 @@
1
- import { j as x } from "./sd-component-library198.js";
2
- import { getInnerX as u, degToRad as r, getInnerY as i } from "./sd-component-library93.js";
3
- const j = (p) => {
1
+ import { j as a } from "./sd-component-library198.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-library93.js";
6
+ import { ResponsiveTextV2 as z } from "./sd-component-library152.js";
7
+ const D = (j) => {
4
8
  const {
5
- startX: $,
6
- startY: e,
7
- endX: a,
8
- endY: d,
9
- radius: n,
10
- color: A,
11
- width: t,
12
- roundStart: l = !0,
13
- roundEnd: I = !0,
14
- startAlpha: o,
15
- endAlpha: s
16
- } = p, c = s - o, m = u($, r(o), t), X = i(e, r(o), t), Y = u(a, r(s), t), h = i(d, r(s), t);
17
- return /* @__PURE__ */ x.jsx(
18
- "path",
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,
19
51
  {
20
- d: `M${$},${e} A${n},${n} 0 ${c > 180 ? "1" : "0"},1 ${a},${d} ${I ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${Y},${h} A${n - t},${n - t} 0 ${c > 180 ? "1" : "0"},0 ${m},${X} ${l ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${$},${e}`,
21
- fill: A
52
+ sx: {
53
+ position: "absolute",
54
+ left: `${b}px`,
55
+ top: `${g}px`
56
+ },
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
+ }
75
+ },
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
+ )
22
90
  }
23
91
  );
24
92
  };
25
93
  export {
26
- j as BaseOutlineArc
94
+ D as MatchedRangeLabelBox
27
95
  };
28
96
  //# sourceMappingURL=sd-component-library316.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library316.js","sources":["../src/components/meters/outline-meter/partials/base-outline-arc/base-outline-arc.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { degToRad, getInnerX, getInnerY } from \"../../utils\";\nimport { BaseOutlineArcProps as Props } from \"./interfaces\";\n\nexport const BaseOutlineArc: React.FC<Props> = (props) => {\n const {\n startX,\n startY,\n endX,\n endY,\n radius,\n color,\n width,\n roundStart = true,\n roundEnd = true,\n startAlpha,\n endAlpha,\n } = props;\n\n const arc = endAlpha - startAlpha;\n\n const startInnerX = getInnerX(startX, degToRad(startAlpha), width);\n const startInnerY = getInnerY(startY, degToRad(startAlpha), width);\n\n const endInnerX = getInnerX(endX, degToRad(endAlpha), width);\n const endInnerY = getInnerY(endY, degToRad(endAlpha), width);\n\n return (\n <path\n d={`M${startX},${startY} A${radius},${radius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endX},${endY} ${\n roundEnd ? `A${width / 2},${width / 2} 0 0,1 ` : \"L\"\n }${endInnerX},${endInnerY} A${radius - width},${radius - width} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },0 ${startInnerX},${startInnerY} ${\n roundStart ? `A${width / 2},${width / 2} 0 0,1 ` : \"L\"\n }${startX},${startY}`}\n fill={color}\n />\n );\n};\n"],"names":["BaseOutlineArc","props","startX","startY","endX","endY","radius","color","width","roundStart","roundEnd","startAlpha","endAlpha","arc","startInnerX","getInnerX","degToRad","startInnerY","getInnerY","endInnerX","endInnerY","jsx"],"mappings":";;AAKa,MAAAA,IAAkC,CAACC,MAAU;AAClD,QAAA;AAAA,IACJ,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,UAAAC,IAAW;AAAA,IACX,YAAAC;AAAA,IACA,UAAAC;AAAA,EACE,IAAAX,GAEEY,IAAMD,IAAWD,GAEjBG,IAAcC,EAAUb,GAAQc,EAASL,CAAU,GAAGH,CAAK,GAC3DS,IAAcC,EAAUf,GAAQa,EAASL,CAAU,GAAGH,CAAK,GAE3DW,IAAYJ,EAAUX,GAAMY,EAASJ,CAAQ,GAAGJ,CAAK,GACrDY,IAAYF,EAAUb,GAAMW,EAASJ,CAAQ,GAAGJ,CAAK;AAGzD,SAAAa,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAG,IAAInB,CAAM,IAAIC,CAAM,KAAKG,CAAM,IAAIA,CAAM,MAC1CO,IAAM,MAAM,MAAM,GACpB,MAAMT,CAAI,IAAIC,CAAI,IAChBK,IAAW,IAAIF,IAAQ,CAAC,IAAIA,IAAQ,CAAC,YAAY,GACnD,GAAGW,CAAS,IAAIC,CAAS,KAAKd,IAASE,CAAK,IAAIF,IAASE,CAAK,MAC5DK,IAAM,MAAM,MAAM,GACpB,MAAMC,CAAW,IAAIG,CAAW,IAC9BR,IAAa,IAAID,IAAQ,CAAC,IAAIA,IAAQ,CAAC,YAAY,GACrD,GAAGN,CAAM,IAAIC,CAAM;AAAA,MACnB,MAAMI;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
1
+ {"version":3,"file":"sd-component-library316.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;AAAA,IACvCjB,IAASE;AAAA,IACTH;AAAA,IACAC;AAAA,EAAA;AAGF,QAAMkB,IAAUnB,MAAU,KACpBoB,IAAWpB,IAAQ,KACnBqB,IAAYrB,IAAQ;AAE1B,MAAIE,GAAY;AACd,UAAM,EAAE,GAAGoB,GAAe,GAAGC,EAAkB,IAAAL;AAAA,MAC7CjB;AAAA,MACAD;AAAA,MACAC;AAAA,IAAA;AAGY,IAAAe,IAAAM,IAAgBnB,KAAiBiB,IAAW,KAAK,IACjDH,IAAAM;AAAA,EAChB;AAEA,MAAI,CAACzB;AAAc,WAAA;AAEnB,MAAI0B,IAAepB,KAASe,IAAU,GAAGM,CAAa,OAAO;AACzD,MAAA,CAACD,KAAgBnB,GAAQ;AAC3B,UAAMqB,IAAWjB,IAAQH,GACnBqB,IAAclB;AAEL,IAAAe,IAAA;AAAA,MACbJ,KAAYf,IAASqB;AAAA,MACrBL,KAAahB,IAASqB;AAAA,MACtBL,KAAahB,IAASsB;AAAA,MACtBP,KAAYf,IAASsB;AAAA,IACvB,EACG,IAAI,CAACC,MAAUA,IAAO,GAAGH,CAAa,OAAO,GAAI,EACjD,KAAK,GAAG;AAAA,EACb;AAGE,SAAAI,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,MAAM,GAAGd,CAAW;AAAA,QACpB,KAAK,GAAGC,CAAW;AAAA,MACrB;AAAA,MAEA,UAAAY,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,IAAI;AAAA,YACF,WAAW;AAAA,YACX,UAAU;AAAA,YACV,KAAK,SAASxB,CAAU;AAAA,YACxB,MAAMa,IAAU,SAASC,IAAW,UAAU;AAAA,YAC9C,IAAI;AAAA,YACJ,IAAI,GAAGK,CAAa;AAAA,YACpB,aAAa1B;AAAA,YACb,aAAa;AAAA,YACb,aAAa;AAAA,YACb,cAAAyB;AAAA,YACA,IAAI;AAAA,YACJ,WAAW;AAAA,cACT,UAAUL,IAAU,SAAY,GAAGY,CAAU;AAAA,YAC/C;AAAA,UACF;AAAA,UACA,KAAApB;AAAA,UAEA,UAAAkB,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB,CAAC,CAAC,IAAI,WAAW,CAAC;AAAA,cAClC,OAAM;AAAA,cACN,OAAOjC,MAAU,YAAYA,IAAQ;AAAA,cACrC,eAAc;AAAA,cACd,eAAc;AAAA,cAEb,UAAAD;AAAA,YAAA;AAAA,UACH;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -2,7 +2,7 @@ import { j as t } from "./sd-component-library198.js";
2
2
  import x from "react";
3
3
  import u from "./sd-component-library197.js";
4
4
  import { getIsHorizontal as j, getRangeProperties as p } from "./sd-component-library233.js";
5
- import { OutlineMeterRange as M } from "./sd-component-library236.js";
5
+ import { OutlineMeterRange as M } from "./sd-component-library237.js";
6
6
  import { LabelPointer as b } from "./sd-component-library327.js";
7
7
  const A = x.forwardRef(
8
8
  (e, r) => {
@@ -1,96 +1,38 @@
1
- import { j as a } from "./sd-component-library198.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-library93.js";
6
- import { ResponsiveTextV2 as z } from "./sd-component-library152.js";
7
- const D = (j) => {
1
+ import { j as t } from "./sd-component-library198.js";
2
+ const h = (n) => {
8
3
  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,
51
- {
52
- sx: {
53
- position: "absolute",
54
- left: `${b}px`,
55
- top: `${g}px`
56
- },
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
- }
75
- },
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
- )
90
- }
91
- );
4
+ color: s,
5
+ innerCircleRadius: $,
6
+ innerCircleStrokeWidth: d,
7
+ dx: i,
8
+ dy: r,
9
+ radius: e,
10
+ tipX: l,
11
+ tipY: o,
12
+ needleWidth: c
13
+ } = n;
14
+ return /* @__PURE__ */ t.jsxs("g", { children: [
15
+ /* @__PURE__ */ t.jsx(
16
+ "path",
17
+ {
18
+ d: `M${l - i},${o - r} A${c / 2},${c / 2} 0 0,0 ${l + i},${o + r} L${e + i},${e + r} L${e - i},${e - r} Z`,
19
+ fill: s
20
+ }
21
+ ),
22
+ /* @__PURE__ */ t.jsx(
23
+ "circle",
24
+ {
25
+ cx: e,
26
+ cy: e,
27
+ r: $ + d,
28
+ strokeWidth: d,
29
+ stroke: s,
30
+ fill: "white"
31
+ }
32
+ )
33
+ ] });
92
34
  };
93
35
  export {
94
- D as MatchedRangeLabelBox
36
+ h as BaseNeedle
95
37
  };
96
38
  //# sourceMappingURL=sd-component-library318.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library318.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;AAAA,IACvCjB,IAASE;AAAA,IACTH;AAAA,IACAC;AAAA,EAAA;AAGF,QAAMkB,IAAUnB,MAAU,KACpBoB,IAAWpB,IAAQ,KACnBqB,IAAYrB,IAAQ;AAE1B,MAAIE,GAAY;AACd,UAAM,EAAE,GAAGoB,GAAe,GAAGC,EAAkB,IAAAL;AAAA,MAC7CjB;AAAA,MACAD;AAAA,MACAC;AAAA,IAAA;AAGY,IAAAe,IAAAM,IAAgBnB,KAAiBiB,IAAW,KAAK,IACjDH,IAAAM;AAAA,EAChB;AAEA,MAAI,CAACzB;AAAc,WAAA;AAEnB,MAAI0B,IAAepB,KAASe,IAAU,GAAGM,CAAa,OAAO;AACzD,MAAA,CAACD,KAAgBnB,GAAQ;AAC3B,UAAMqB,IAAWjB,IAAQH,GACnBqB,IAAclB;AAEL,IAAAe,IAAA;AAAA,MACbJ,KAAYf,IAASqB;AAAA,MACrBL,KAAahB,IAASqB;AAAA,MACtBL,KAAahB,IAASsB;AAAA,MACtBP,KAAYf,IAASsB;AAAA,IACvB,EACG,IAAI,CAACC,MAAUA,IAAO,GAAGH,CAAa,OAAO,GAAI,EACjD,KAAK,GAAG;AAAA,EACb;AAGE,SAAAI,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,MAAM,GAAGd,CAAW;AAAA,QACpB,KAAK,GAAGC,CAAW;AAAA,MACrB;AAAA,MAEA,UAAAY,gBAAAA,EAAA;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,IAAI;AAAA,YACF,WAAW;AAAA,YACX,UAAU;AAAA,YACV,KAAK,SAASxB,CAAU;AAAA,YACxB,MAAMa,IAAU,SAASC,IAAW,UAAU;AAAA,YAC9C,IAAI;AAAA,YACJ,IAAI,GAAGK,CAAa;AAAA,YACpB,aAAa1B;AAAA,YACb,aAAa;AAAA,YACb,aAAa;AAAA,YACb,cAAAyB;AAAA,YACA,IAAI;AAAA,YACJ,WAAW;AAAA,cACT,UAAUL,IAAU,SAAY,GAAGY,CAAU;AAAA,YAC/C;AAAA,UACF;AAAA,UACA,KAAApB;AAAA,UAEA,UAAAkB,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB,CAAC,CAAC,IAAI,WAAW,CAAC;AAAA,cAClC,OAAM;AAAA,cACN,OAAOjC,MAAU,YAAYA,IAAQ;AAAA,cACrC,eAAc;AAAA,cACd,eAAc;AAAA,cAEb,UAAAD;AAAA,YAAA;AAAA,UACH;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"sd-component-library318.js","sources":["../src/components/meters/outline-meter/partials/base-needle/base-needle.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { BaseNeedleProps as Props } from \"./interfaces\";\n\nexport const BaseNeedle: React.FC<Props> = (props) => {\n const {\n color,\n innerCircleRadius,\n innerCircleStrokeWidth,\n dx,\n dy,\n radius,\n tipX,\n tipY,\n needleWidth,\n } = props;\n\n return (\n <g>\n <path\n d={`M${tipX - dx},${tipY - dy} A${needleWidth / 2},${\n needleWidth / 2\n } 0 0,0 ${tipX + dx},${tipY + dy} L${radius + dx},${radius + dy} L${\n radius - dx\n },${radius - dy} Z`}\n fill={color}\n />\n <circle\n cx={radius}\n cy={radius}\n r={innerCircleRadius + innerCircleStrokeWidth}\n strokeWidth={innerCircleStrokeWidth}\n stroke={color}\n fill=\"white\"\n />\n </g>\n );\n};\n"],"names":["BaseNeedle","props","color","innerCircleRadius","innerCircleStrokeWidth","dx","dy","radius","tipX","tipY","needleWidth","jsx"],"mappings":";AAIa,MAAAA,IAA8B,CAACC,MAAU;AAC9C,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,IAAAC;AAAA,IACA,IAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,aAAAC;AAAA,EACE,IAAAT;AAEJ,gCACG,KACC,EAAA,UAAA;AAAA,IAAAU,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAIH,IAAOH,CAAE,IAAII,IAAOH,CAAE,KAAKI,IAAc,CAAC,IAC/CA,IAAc,CAChB,UAAUF,IAAOH,CAAE,IAAII,IAAOH,CAAE,KAAKC,IAASF,CAAE,IAAIE,IAASD,CAAE,KAC7DC,IAASF,CACX,IAAIE,IAASD,CAAE;AAAA,QACf,MAAMJ;AAAA,MAAA;AAAA,IACR;AAAA,IACAS,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,IAAIJ;AAAA,QACJ,IAAIA;AAAA,QACJ,GAAGJ,IAAoBC;AAAA,QACvB,aAAaA;AAAA,QACb,QAAQF;AAAA,QACR,MAAK;AAAA,MAAA;AAAA,IACP;AAAA,EACF,EAAA,CAAA;AAEJ;"}
@@ -1,38 +1,28 @@
1
- import { j as t } from "./sd-component-library198.js";
2
- const h = (n) => {
1
+ import { j as x } from "./sd-component-library198.js";
2
+ import { getInnerX as u, degToRad as r, getInnerY as i } from "./sd-component-library93.js";
3
+ const j = (p) => {
3
4
  const {
4
- color: s,
5
- innerCircleRadius: $,
6
- innerCircleStrokeWidth: d,
7
- dx: i,
8
- dy: r,
9
- radius: e,
10
- tipX: l,
11
- tipY: o,
12
- needleWidth: c
13
- } = n;
14
- return /* @__PURE__ */ t.jsxs("g", { children: [
15
- /* @__PURE__ */ t.jsx(
16
- "path",
17
- {
18
- d: `M${l - i},${o - r} A${c / 2},${c / 2} 0 0,0 ${l + i},${o + r} L${e + i},${e + r} L${e - i},${e - r} Z`,
19
- fill: s
20
- }
21
- ),
22
- /* @__PURE__ */ t.jsx(
23
- "circle",
24
- {
25
- cx: e,
26
- cy: e,
27
- r: $ + d,
28
- strokeWidth: d,
29
- stroke: s,
30
- fill: "white"
31
- }
32
- )
33
- ] });
5
+ startX: $,
6
+ startY: e,
7
+ endX: a,
8
+ endY: d,
9
+ radius: n,
10
+ color: A,
11
+ width: t,
12
+ roundStart: l = !0,
13
+ roundEnd: I = !0,
14
+ startAlpha: o,
15
+ endAlpha: s
16
+ } = p, c = s - o, m = u($, r(o), t), X = i(e, r(o), t), Y = u(a, r(s), t), h = i(d, r(s), t);
17
+ return /* @__PURE__ */ x.jsx(
18
+ "path",
19
+ {
20
+ d: `M${$},${e} A${n},${n} 0 ${c > 180 ? "1" : "0"},1 ${a},${d} ${I ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${Y},${h} A${n - t},${n - t} 0 ${c > 180 ? "1" : "0"},0 ${m},${X} ${l ? `A${t / 2},${t / 2} 0 0,1 ` : "L"}${$},${e}`,
21
+ fill: A
22
+ }
23
+ );
34
24
  };
35
25
  export {
36
- h as BaseNeedle
26
+ j as BaseOutlineArc
37
27
  };
38
28
  //# sourceMappingURL=sd-component-library319.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library319.js","sources":["../src/components/meters/outline-meter/partials/base-needle/base-needle.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { BaseNeedleProps as Props } from \"./interfaces\";\n\nexport const BaseNeedle: React.FC<Props> = (props) => {\n const {\n color,\n innerCircleRadius,\n innerCircleStrokeWidth,\n dx,\n dy,\n radius,\n tipX,\n tipY,\n needleWidth,\n } = props;\n\n return (\n <g>\n <path\n d={`M${tipX - dx},${tipY - dy} A${needleWidth / 2},${\n needleWidth / 2\n } 0 0,0 ${tipX + dx},${tipY + dy} L${radius + dx},${radius + dy} L${\n radius - dx\n },${radius - dy} Z`}\n fill={color}\n />\n <circle\n cx={radius}\n cy={radius}\n r={innerCircleRadius + innerCircleStrokeWidth}\n strokeWidth={innerCircleStrokeWidth}\n stroke={color}\n fill=\"white\"\n />\n </g>\n );\n};\n"],"names":["BaseNeedle","props","color","innerCircleRadius","innerCircleStrokeWidth","dx","dy","radius","tipX","tipY","needleWidth","jsx"],"mappings":";AAIa,MAAAA,IAA8B,CAACC,MAAU;AAC9C,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,IAAAC;AAAA,IACA,IAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,aAAAC;AAAA,EACE,IAAAT;AAEJ,gCACG,KACC,EAAA,UAAA;AAAA,IAAAU,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAIH,IAAOH,CAAE,IAAII,IAAOH,CAAE,KAAKI,IAAc,CAAC,IAC/CA,IAAc,CAChB,UAAUF,IAAOH,CAAE,IAAII,IAAOH,CAAE,KAAKC,IAASF,CAAE,IAAIE,IAASD,CAAE,KAC7DC,IAASF,CACX,IAAIE,IAASD,CAAE;AAAA,QACf,MAAMJ;AAAA,MAAA;AAAA,IACR;AAAA,IACAS,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,IAAIJ;AAAA,QACJ,IAAIA;AAAA,QACJ,GAAGJ,IAAoBC;AAAA,QACvB,aAAaA;AAAA,QACb,QAAQF;AAAA,QACR,MAAK;AAAA,MAAA;AAAA,IACP;AAAA,EACF,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"sd-component-library319.js","sources":["../src/components/meters/outline-meter/partials/base-outline-arc/base-outline-arc.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { degToRad, getInnerX, getInnerY } from \"../../utils\";\nimport { BaseOutlineArcProps as Props } from \"./interfaces\";\n\nexport const BaseOutlineArc: React.FC<Props> = (props) => {\n const {\n startX,\n startY,\n endX,\n endY,\n radius,\n color,\n width,\n roundStart = true,\n roundEnd = true,\n startAlpha,\n endAlpha,\n } = props;\n\n const arc = endAlpha - startAlpha;\n\n const startInnerX = getInnerX(startX, degToRad(startAlpha), width);\n const startInnerY = getInnerY(startY, degToRad(startAlpha), width);\n\n const endInnerX = getInnerX(endX, degToRad(endAlpha), width);\n const endInnerY = getInnerY(endY, degToRad(endAlpha), width);\n\n return (\n <path\n d={`M${startX},${startY} A${radius},${radius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endX},${endY} ${\n roundEnd ? `A${width / 2},${width / 2} 0 0,1 ` : \"L\"\n }${endInnerX},${endInnerY} A${radius - width},${radius - width} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },0 ${startInnerX},${startInnerY} ${\n roundStart ? `A${width / 2},${width / 2} 0 0,1 ` : \"L\"\n }${startX},${startY}`}\n fill={color}\n />\n );\n};\n"],"names":["BaseOutlineArc","props","startX","startY","endX","endY","radius","color","width","roundStart","roundEnd","startAlpha","endAlpha","arc","startInnerX","getInnerX","degToRad","startInnerY","getInnerY","endInnerX","endInnerY","jsx"],"mappings":";;AAKa,MAAAA,IAAkC,CAACC,MAAU;AAClD,QAAA;AAAA,IACJ,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,UAAAC,IAAW;AAAA,IACX,YAAAC;AAAA,IACA,UAAAC;AAAA,EACE,IAAAX,GAEEY,IAAMD,IAAWD,GAEjBG,IAAcC,EAAUb,GAAQc,EAASL,CAAU,GAAGH,CAAK,GAC3DS,IAAcC,EAAUf,GAAQa,EAASL,CAAU,GAAGH,CAAK,GAE3DW,IAAYJ,EAAUX,GAAMY,EAASJ,CAAQ,GAAGJ,CAAK,GACrDY,IAAYF,EAAUb,GAAMW,EAASJ,CAAQ,GAAGJ,CAAK;AAGzD,SAAAa,gBAAAA,EAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAG,IAAInB,CAAM,IAAIC,CAAM,KAAKG,CAAM,IAAIA,CAAM,MAC1CO,IAAM,MAAM,MAAM,GACpB,MAAMT,CAAI,IAAIC,CAAI,IAChBK,IAAW,IAAIF,IAAQ,CAAC,IAAIA,IAAQ,CAAC,YAAY,GACnD,GAAGW,CAAS,IAAIC,CAAS,KAAKd,IAASE,CAAK,IAAIF,IAASE,CAAK,MAC5DK,IAAM,MAAM,MAAM,GACpB,MAAMC,CAAW,IAAIG,CAAW,IAC9BR,IAAa,IAAID,IAAQ,CAAC,IAAIA,IAAQ,CAAC,YAAY,GACrD,GAAGN,CAAM,IAAIC,CAAM;AAAA,MACnB,MAAMI;AAAA,IAAA;AAAA,EAAA;AAGZ;"}
@@ -1,37 +1,8 @@
1
- import { j as i } from "./sd-component-library198.js";
2
- import { ResponsiveTextV2 as n } from "./sd-component-library152.js";
3
- const s = (o) => {
4
- const { currentSelection: e, title: r, onClick: t } = o;
5
- return /* @__PURE__ */ i.jsx(
6
- n,
7
- {
8
- fontSizeWeight: [[14, e ? "bold" : "regular"]],
9
- onClick: t,
10
- sx: {
11
- height: "46px",
12
- display: "flex",
13
- alignItems: "center",
14
- justifyContent: "flex-end",
15
- pr: "25px",
16
- pl: "10px",
17
- ...e ? {
18
- cursor: "default"
19
- } : {
20
- borderTopStyle: "solid",
21
- borderWidth: "1px",
22
- borderColor: "cl_headerLine",
23
- cursor: "pointer",
24
- opacity: 0.8,
25
- ":hover": {
26
- opacity: 1
27
- }
28
- }
29
- },
30
- children: r
31
- }
32
- );
1
+ const p = (c, r, n, t) => {
2
+ const o = c - (r - 1) * n, s = t / r, e = (t + 1) / r, a = (360 - c) / 2 + n * t + o * s, S = a + o * (e - s);
3
+ return { rangeArcStart: a, rangeArcEnd: S };
33
4
  };
34
5
  export {
35
- s as OptionRow
6
+ p as getRangeProperties
36
7
  };
37
8
  //# sourceMappingURL=sd-component-library320.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library320.js","sources":["../src/components/selectors/primary-custom-scrollable-selector/partials/option-row/option-row.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts/responsive-text-v2\";\nimport { OptionRowProps as Props } from \"./interfaces\";\n\nexport const OptionRow = <T extends string = string>(props: Props<T>) => {\n const { currentSelection, title, onClick } = props;\n\n return (\n <ResponsiveTextV2\n fontSizeWeight={[[14, currentSelection ? \"bold\" : \"regular\"]]}\n onClick={onClick}\n sx={{\n height: \"46px\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-end\",\n pr: \"25px\",\n pl: \"10px\",\n ...(currentSelection\n ? {\n cursor: \"default\",\n }\n : {\n borderTopStyle: \"solid\",\n borderWidth: \"1px\",\n borderColor: \"cl_headerLine\",\n cursor: \"pointer\",\n opacity: 0.8,\n \":hover\": {\n opacity: 1,\n },\n }),\n }}\n >\n {title}\n </ResponsiveTextV2>\n );\n};\n"],"names":["OptionRow","props","currentSelection","title","onClick","jsx","ResponsiveTextV2"],"mappings":";;AAKa,MAAAA,IAAY,CAA4BC,MAAoB;AACvE,QAAM,EAAE,kBAAAC,GAAkB,OAAAC,GAAO,SAAAC,EAAA,IAAYH;AAG3C,SAAAI,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgB,CAAC,CAAC,IAAIJ,IAAmB,SAAS,SAAS,CAAC;AAAA,MAC5D,SAAAE;AAAA,MACA,IAAI;AAAA,QACF,QAAQ;AAAA,QACR,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,GAAIF,IACA;AAAA,UACE,QAAQ;AAAA,QAAA,IAEV;AAAA,UACE,gBAAgB;AAAA,UAChB,aAAa;AAAA,UACb,aAAa;AAAA,UACb,QAAQ;AAAA,UACR,SAAS;AAAA,UACT,UAAU;AAAA,YACR,SAAS;AAAA,UACX;AAAA,QACF;AAAA,MACN;AAAA,MAEC,UAAAC;AAAA,IAAA;AAAA,EAAA;AAGP;"}
1
+ {"version":3,"file":"sd-component-library320.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/utils.ts"],"sourcesContent":["export const getRangeProperties = (\n arc: number,\n totalRanges: number,\n distanceBetweenRanges: number,\n idx: number\n) => {\n const arcForRanges = arc - (totalRanges - 1) * distanceBetweenRanges;\n\n const start = idx / totalRanges;\n const end = (idx + 1) / totalRanges;\n\n const arcStart = (360 - arc) / 2; // deg\n\n const rangeArcStart =\n arcStart + distanceBetweenRanges * idx + arcForRanges * start;\n\n const rangeArcEnd = rangeArcStart + arcForRanges * (end - start);\n\n return { rangeArcStart, rangeArcEnd };\n};\n"],"names":["getRangeProperties","arc","totalRanges","distanceBetweenRanges","idx","arcForRanges","start","end","rangeArcStart","rangeArcEnd"],"mappings":"AAAO,MAAMA,IAAqB,CAChCC,GACAC,GACAC,GACAC,MACG;AACG,QAAAC,IAAeJ,KAAOC,IAAc,KAAKC,GAEzCG,IAAQF,IAAMF,GACdK,KAAOH,IAAM,KAAKF,GAIlBM,KAFY,MAAMP,KAAO,IAGlBE,IAAwBC,IAAMC,IAAeC,GAEpDG,IAAcD,IAAgBH,KAAgBE,IAAMD;AAEnD,SAAA,EAAE,eAAAE,GAAe,aAAAC;AAC1B;"}
@@ -1,8 +1,7 @@
1
- const p = (c, r, n, t) => {
2
- const o = c - (r - 1) * n, s = t / r, e = (t + 1) / r, a = (360 - c) / 2 + n * t + o * s, S = a + o * (e - s);
3
- return { rangeArcStart: a, rangeArcEnd: S };
4
- };
1
+ import { j as e } from "./sd-component-library198.js";
2
+ import { LabelPointer as t } from "./sd-component-library327.js";
3
+ const s = (r) => /* @__PURE__ */ e.jsx(t, { ...r });
5
4
  export {
6
- p as getRangeProperties
5
+ s as DiscreteMeterLabelPointer
7
6
  };
8
7
  //# sourceMappingURL=sd-component-library321.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library321.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/utils.ts"],"sourcesContent":["export const getRangeProperties = (\n arc: number,\n totalRanges: number,\n distanceBetweenRanges: number,\n idx: number\n) => {\n const arcForRanges = arc - (totalRanges - 1) * distanceBetweenRanges;\n\n const start = idx / totalRanges;\n const end = (idx + 1) / totalRanges;\n\n const arcStart = (360 - arc) / 2; // deg\n\n const rangeArcStart =\n arcStart + distanceBetweenRanges * idx + arcForRanges * start;\n\n const rangeArcEnd = rangeArcStart + arcForRanges * (end - start);\n\n return { rangeArcStart, rangeArcEnd };\n};\n"],"names":["getRangeProperties","arc","totalRanges","distanceBetweenRanges","idx","arcForRanges","start","end","rangeArcStart","rangeArcEnd"],"mappings":"AAAO,MAAMA,IAAqB,CAChCC,GACAC,GACAC,GACAC,MACG;AACG,QAAAC,IAAeJ,KAAOC,IAAc,KAAKC,GAEzCG,IAAQF,IAAMF,GACdK,KAAOH,IAAM,KAAKF,GAIlBM,KAFY,MAAMP,KAAO,IAGlBE,IAAwBC,IAAMC,IAAeC,GAEpDG,IAAcD,IAAgBH,KAAgBE,IAAMD;AAEnD,SAAA,EAAE,eAAAE,GAAe,aAAAC;AAC1B;"}
1
+ {"version":3,"file":"sd-component-library321.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-label-pointer/discrete-meter-label-pointer.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { LabelPointer } from \"../../../common-outline-meter-partials\";\nimport { DiscreteMeterLabelPointerProps as Props } from \"./interfaces\";\n\nexport const DiscreteMeterLabelPointer: React.FC<Props> = (props) => {\n return <LabelPointer {...props} />;\n};\n"],"names":["DiscreteMeterLabelPointer","props","jsx","LabelPointer"],"mappings":";;AAKa,MAAAA,IAA6C,CAACC,MAClDC,gBAAAA,EAAA,IAACC,GAAc,EAAA,GAAGF,EAAO,CAAA;"}