@selfdecode/sd-component-library 4.0.79 → 4.0.80

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 (433) hide show
  1. package/README.md +17 -15
  2. package/lib/components/accordions/base-accordion/base-accordian.stories.d.ts +7 -0
  3. package/lib/components/accordions/sublist-accordion/sublist-accordian.stories.d.ts +8 -0
  4. package/lib/components/badges/primary-badge/primary-badge.stories.d.ts +6 -0
  5. package/lib/components/badges/secondary-badge/secondary-badge.stories.d.ts +6 -0
  6. package/lib/components/boolean-feedback/thumbs-feedback/thumbs-feedback.stories.d.ts +7 -0
  7. package/lib/components/boxes/outside-click-box/outside-click-box.stories.d.ts +7 -0
  8. package/lib/components/breadcrumbs/primary-breadcrumb/primary-breadcrumb.stories.d.ts +6 -0
  9. package/lib/components/breadcrumbs/secondary-breadcrumb/secondary-breadcrumb.stories.d.ts +6 -0
  10. package/lib/components/buttons/cta/primary-blue-button/primary-blue-button.stories.d.ts +6 -0
  11. package/lib/components/buttons/cta/primary-orange-button/primary-orange-button.stories.d.ts +7 -0
  12. package/lib/components/buttons/cta/secondary-blue-button/secondary-blue-button.stories.d.ts +9 -0
  13. package/lib/components/buttons/cta/secondary-orange-button/secondary-orange-button.stories.d.ts +6 -0
  14. package/lib/components/buttons/cta/text-cta-button/text-cta-button.stories.d.ts +6 -0
  15. package/lib/components/buttons/logos/powered-by-grey-logo/powered-by-grey-logo.stories.d.ts +6 -0
  16. package/lib/components/buttons/logos/powered-by-white-logo/powered-by-grey-logo.stories.d.ts +6 -0
  17. package/lib/components/buttons/logos/sd-white-logo/sd-white-logo.stories.d.ts +6 -0
  18. package/lib/components/buttons/partials/circle-button/circle-button.stories.d.ts +6 -0
  19. package/lib/components/buttons/partials/icon-button/icon-button.stories.d.ts +9 -0
  20. package/lib/components/buttons/partials/square-button/square-button.stories.d.ts +6 -0
  21. package/lib/components/cards/round-card/round-card.stories.d.ts +6 -0
  22. package/lib/components/checkboxes/checkbox/checkbox.stories.d.ts +9 -0
  23. package/lib/components/checkboxes/checkbox-v2/checkbox.stories.d.ts +10 -0
  24. package/lib/components/checkboxes/checkbox-v2/partials/checkbox-v2-container/interfaces.d.ts +1 -0
  25. package/lib/components/checkboxes/partial-checkbox/partial-checkbox.stories.d.ts +9 -0
  26. package/lib/components/checkboxes/partial-checkbox-v2/partial-checkbox-v2.stories.d.ts +10 -0
  27. package/lib/components/containers/layout-independend-max-width-container/layout-independend-max-width-container.stories.d.ts +6 -0
  28. package/lib/components/containers/section-container/section-container.stories.d.ts +6 -0
  29. package/lib/components/custom-scrollbar-box/custom-scrollbar-box.stories.d.ts +7 -0
  30. package/lib/components/dividers/horizontal-divider/horizontal-divider.stories.d.ts +6 -0
  31. package/lib/components/dividers/vertical-divider/vertical-divider.stories.d.ts +6 -0
  32. package/lib/components/feature-explanation/feature-explanation.stories.d.ts +6 -0
  33. package/lib/components/feedback/multiple-options-feedback/multiple-options-feedback.stories.d.ts +7 -0
  34. package/lib/components/feedback/yes-no-feedback-block/yes-no-feedback-block.stories.d.ts +7 -0
  35. package/lib/components/icons/bordered-plain-warning-circle-icon/bordered-plain-warning-circle-icon.stories.d.ts +8 -0
  36. package/lib/components/icons/round-bordered-star/round-bordered-star.stories.d.ts +9 -0
  37. package/lib/components/icons/triangular-pointer-icon/triangular-pointer-icon.stories.d.ts +6 -0
  38. package/lib/components/inputs/autocomplete-input/autocomplete-input.stories.d.ts +7 -0
  39. package/lib/components/inputs/client-portal-input/client-portal-input.stories.d.ts +8 -0
  40. package/lib/components/inputs/date-inputs/outlined-date-input/outlined-date-input.stories.d.ts +7 -0
  41. package/lib/components/inputs/date-inputs/outlined-date-range-input/outlined-date-range-input.stories.d.ts +8 -0
  42. package/lib/components/inputs/date-inputs/primary-date-input/primary-date-input.stories.d.ts +9 -0
  43. package/lib/components/inputs/date-inputs/primary-date-range-input/primary-date-range-input.stories.d.ts +7 -0
  44. package/lib/components/inputs/decody-question-input/decody-question-input.stories.d.ts +6 -0
  45. package/lib/components/inputs/multi-row-secondary-text-input/multi-row-secondary-text-input.stories.d.ts +7 -0
  46. package/lib/components/inputs/primary-number-input/primary-number-input.stories.d.ts +6 -0
  47. package/lib/components/inputs/primary-text-input/primary-number-input.stories.d.ts +7 -0
  48. package/lib/components/inputs/search-autocomplete-input/search-autocomplete-input.stories.d.ts +7 -0
  49. package/lib/components/inputs/search-input/search-input.stories.d.ts +6 -0
  50. package/lib/components/inputs/search-input-v2/search-input-v2.stories.d.ts +6 -0
  51. package/lib/components/inputs/secondary-number-input/secondary-number-input.stories.d.ts +10 -0
  52. package/lib/components/inputs/secondary-text-input/secondary-text-input.stories.d.ts +8 -0
  53. package/lib/components/links/primary-link/primary-link.stories.d.ts +7 -0
  54. package/lib/components/lists/primary-list/primary-list.stories.d.ts +6 -0
  55. package/lib/components/menus/actions-menu/actions-menu.stories.d.ts +6 -0
  56. package/lib/components/meters/bars-meter/bars-meter.stories.d.ts +8 -0
  57. package/lib/components/meters/compact-donut-gauge/compact-donut-gauge.stories.d.ts +7 -0
  58. package/lib/components/meters/dashed-meter/dashed-meter.stories.d.ts +7 -0
  59. package/lib/components/meters/donut-diagram/donut-diagram.stories.d.ts +9 -0
  60. package/lib/components/meters/gradient-outline-meter/gradient-outline-meter.stories.d.ts +9 -0
  61. package/lib/components/meters/gradient-outline-meter/small-gradient-outline-meter.stories.d.ts +9 -0
  62. package/lib/components/meters/linear-discrete-gauge-meter/linear-discrete-gauge-meter.stories.d.ts +6 -0
  63. package/lib/components/meters/linear-numeric-gauge-meter/linear-numeric-gauge-meter.stories.d.ts +6 -0
  64. package/lib/components/meters/multi-option-discrete-outline-meter/multi-option-discrete-outline-meter.stories.d.ts +6 -0
  65. package/lib/components/meters/multi-option-discrete-outline-meter/small-multi-option-discrete-outline-meter.stories.d.ts +6 -0
  66. package/lib/components/meters/outline-meter/outline-meter.stories.d.ts +9 -0
  67. package/lib/components/meters/outline-meter/small-outline-meter.stories.d.ts +9 -0
  68. package/lib/components/meters/people-meter/people-meter.stories.d.ts +6 -0
  69. package/lib/components/meters/smiley-meter-v2/small-smiley-meter-v2.stories.d.ts +7 -0
  70. package/lib/components/meters/smiley-meter-v2/smiley-meter-v2.stories.d.ts +7 -0
  71. package/lib/components/modals/primary-modal/primary-modal.stories.d.ts +8 -0
  72. package/lib/components/page-selectors/page-selector/page-selector.stories.d.ts +6 -0
  73. package/lib/components/pagination-bars/pagination-bar/pagination-bar.stories.d.ts +6 -0
  74. package/lib/components/pagination-bars/pagination-bar-mobile/pagination-bar-mobile.stories.d.ts +7 -0
  75. package/lib/components/progress-bars/line-progress-bar/line-progress-bar.stories.d.ts +6 -0
  76. package/lib/components/progress-bars/rounded-progress-bar/rounded-progress-bar.stories.d.ts +6 -0
  77. package/lib/components/progress-bars/striped-line-progress-bar/striped-line-progress-bar.stories.d.ts +6 -0
  78. package/lib/components/progress-steps/progress-steps.stories.d.ts +7 -0
  79. package/lib/components/selectors/combined-secondary-custom-selector/combined-secondary-custom-selector.stories.d.ts +7 -0
  80. package/lib/components/selectors/combined-secondary-selector-v2/combined-secondary-selector-v2.stories.d.ts +7 -0
  81. package/lib/components/selectors/compact-primary-selector/compact-primary-selector.stories.d.ts +6 -0
  82. package/lib/components/selectors/custom-scrollable-selector/custom-scrollable-selector.stories.d.ts +7 -0
  83. package/lib/components/selectors/custom-selector/custom-selector.stories.d.ts +7 -0
  84. package/lib/components/selectors/primary-custom-scrollable-selector/primary-custom-scrollable-selector.stories.d.ts +8 -0
  85. package/lib/components/selectors/primary-selector/primary-selector.stories.d.ts +7 -0
  86. package/lib/components/selectors/primary-selector-v2/primary-selector-v2.stories.d.ts +7 -0
  87. package/lib/components/selectors/secondary-custom-selector/secondary-custom-selector.stories.d.ts +7 -0
  88. package/lib/components/selectors/secondary-selector/secondary-selector.stories.d.ts +9 -0
  89. package/lib/components/selectors/secondary-selector-v2/secondary-selector-v2.stories.d.ts +7 -0
  90. package/lib/components/selectors/selector/selector.stories.d.ts +6 -0
  91. package/lib/components/selectors/selector-v2/selector-v2.stories.d.ts +10 -0
  92. package/lib/components/selectors/tertiary-custom-selector/tertiary-custom-selector.stories.d.ts +7 -0
  93. package/lib/components/selectors/tertiary-selector/tertiary-selector.stories.d.ts +8 -0
  94. package/lib/components/selectors/tertiary-selector-v2/tertiary-selector-v2.stories.d.ts +7 -0
  95. package/lib/components/selectors/updated-secondary-selector-v2/updated-secondary-selector-v2.stories.d.ts +7 -0
  96. package/lib/components/switches/carousel-switch/carousel-switch.stories.d.ts +7 -0
  97. package/lib/components/switches/text-switch/text-switch.stories.d.ts +7 -0
  98. package/lib/components/switches/toggle-switch/toggle-switch.stories.d.ts +6 -0
  99. package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +0 -1
  100. package/lib/components/tabs/tab-bar/tab-bar.d.ts +0 -1
  101. package/lib/components/tabs/tab-bar/tab-bar.stories.d.ts +17 -0
  102. package/lib/components/tabs/tab-bar-v2/tab-bar-v2.stories.d.ts +9 -0
  103. package/lib/components/tabs/tabbed-view-v2/tab-bar-v2.stories.d.ts +7 -0
  104. package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +0 -1
  105. package/lib/components/tabs/tabs-menu/tabs-menu.stories.d.ts +29 -0
  106. package/lib/components/texts/base-text-v2/base-text-v2.stories.d.ts +6 -0
  107. package/lib/components/texts/eighteen-bold/eighteen-bold.stories.d.ts +6 -0
  108. package/lib/components/texts/eighteen-regular/eighteen-regular.stories.d.ts +6 -0
  109. package/lib/components/texts/fifty-five-sb/fifty-five-sb.stories.d.ts +6 -0
  110. package/lib/components/texts/fourteen-regular/fourteen-regular.stories.d.ts +6 -0
  111. package/lib/components/texts/fourteen-sb/fourteen-sb.stories.d.ts +6 -0
  112. package/lib/components/texts/fourty-bold/fourty-bold.stories.d.ts +6 -0
  113. package/lib/components/texts/no-translate/no-translate.stories.d.ts +6 -0
  114. package/lib/components/texts/responsive-text/responsive-text.stories.d.ts +6 -0
  115. package/lib/components/texts/responsive-text-v2/responsive-text-v2.stories.d.ts +6 -0
  116. package/lib/components/texts/sixteen-regular/sixteen-regular.stories.d.ts +6 -0
  117. package/lib/components/texts/sixteen-sb/sixteen-sb.stories.d.ts +6 -0
  118. package/lib/components/texts/ten-sb/ten-sb.stories.d.ts +6 -0
  119. package/lib/components/texts/thirteen-bold/thirteen-bold.stories.d.ts +6 -0
  120. package/lib/components/texts/thirteen-regular/thirteen-regular.stories.d.ts +6 -0
  121. package/lib/components/texts/thirteen-sb/thirteen-sb.stories.d.ts +6 -0
  122. package/lib/components/texts/thirty-two-bold/thirty-two-bold.stories.d.ts +6 -0
  123. package/lib/components/texts/thirty-two-regular/thirty-two-regular.stories.d.ts +6 -0
  124. package/lib/components/texts/twelve-regular/twelve-regular.stories.d.ts +6 -0
  125. package/lib/components/texts/twelve-sb/twelve-regular.stories.d.ts +6 -0
  126. package/lib/components/texts/twenty-four-bold/twenty-four-bold.stories.d.ts +6 -0
  127. package/lib/components/texts/twenty-four-regular/twenty-four-regular.stories.d.ts +6 -0
  128. package/lib/components/tooltips/actions-tooltip/actions-tooltip.stories.d.ts +6 -0
  129. package/lib/components/tooltips/primary-info-tooltip/primary-info-tooltip.stories.d.ts +6 -0
  130. package/lib/components/tooltips/react-element-tooltip/react-element-tooltip.stories.d.ts +6 -0
  131. package/lib/components/tooltips/tooltip-with-pointer/tooltip-with-pointer.stories.d.ts +8 -0
  132. package/lib/sd-component-library101.js +4 -4
  133. package/lib/sd-component-library106.js +1 -1
  134. package/lib/sd-component-library107.js +1 -1
  135. package/lib/sd-component-library112.js +1 -1
  136. package/lib/sd-component-library113.js +2 -2
  137. package/lib/sd-component-library115.js +1 -1
  138. package/lib/sd-component-library116.js +1 -1
  139. package/lib/sd-component-library121.js +2 -2
  140. package/lib/sd-component-library122.js +2 -2
  141. package/lib/sd-component-library124.js +1 -1
  142. package/lib/sd-component-library127.js +3 -3
  143. package/lib/sd-component-library128.js +1 -1
  144. package/lib/sd-component-library130.js +2 -2
  145. package/lib/sd-component-library15.js +1 -1
  146. package/lib/sd-component-library161.js +1 -1
  147. package/lib/sd-component-library162.js +1 -1
  148. package/lib/sd-component-library165.js +1 -1
  149. package/lib/sd-component-library166.js +4 -4
  150. package/lib/sd-component-library167.js +1 -1
  151. package/lib/sd-component-library190.js +3 -3
  152. package/lib/sd-component-library193.js +2 -60
  153. package/lib/sd-component-library193.js.map +1 -1
  154. package/lib/sd-component-library194.js +30 -2
  155. package/lib/sd-component-library194.js.map +1 -1
  156. package/lib/sd-component-library195.js +590 -21
  157. package/lib/sd-component-library195.js.map +1 -1
  158. package/lib/sd-component-library196.js +56 -595
  159. package/lib/sd-component-library196.js.map +1 -1
  160. package/lib/sd-component-library197.js +3 -57
  161. package/lib/sd-component-library197.js.map +1 -1
  162. package/lib/sd-component-library198.js +55 -23
  163. package/lib/sd-component-library198.js.map +1 -1
  164. package/lib/sd-component-library199.js +20 -14
  165. package/lib/sd-component-library199.js.map +1 -1
  166. package/lib/sd-component-library200.js +19 -5
  167. package/lib/sd-component-library200.js.map +1 -1
  168. package/lib/sd-component-library202.js +5 -3
  169. package/lib/sd-component-library202.js.map +1 -1
  170. package/lib/sd-component-library203.js +21 -20
  171. package/lib/sd-component-library203.js.map +1 -1
  172. package/lib/sd-component-library205.js +19 -62
  173. package/lib/sd-component-library205.js.map +1 -1
  174. package/lib/sd-component-library206.js +3 -23
  175. package/lib/sd-component-library206.js.map +1 -1
  176. package/lib/sd-component-library207.js +3 -3
  177. package/lib/sd-component-library207.js.map +1 -1
  178. package/lib/sd-component-library208.js +64 -3
  179. package/lib/sd-component-library208.js.map +1 -1
  180. package/lib/sd-component-library209.js +23 -31
  181. package/lib/sd-component-library209.js.map +1 -1
  182. package/lib/sd-component-library210.js +40 -19
  183. package/lib/sd-component-library210.js.map +1 -1
  184. package/lib/sd-component-library211.js +127 -18
  185. package/lib/sd-component-library211.js.map +1 -1
  186. package/lib/sd-component-library212.js +13 -28
  187. package/lib/sd-component-library212.js.map +1 -1
  188. package/lib/sd-component-library213.js +14 -33
  189. package/lib/sd-component-library213.js.map +1 -1
  190. package/lib/sd-component-library214.js +3 -129
  191. package/lib/sd-component-library214.js.map +1 -1
  192. package/lib/sd-component-library215.js +3 -43
  193. package/lib/sd-component-library215.js.map +1 -1
  194. package/lib/sd-component-library216.js +3 -47
  195. package/lib/sd-component-library216.js.map +1 -1
  196. package/lib/sd-component-library217.js +51 -7
  197. package/lib/sd-component-library217.js.map +1 -1
  198. package/lib/sd-component-library218.js +64 -20
  199. package/lib/sd-component-library218.js.map +1 -1
  200. package/lib/sd-component-library219.js +3 -109
  201. package/lib/sd-component-library219.js.map +1 -1
  202. package/lib/sd-component-library220.js +44 -45
  203. package/lib/sd-component-library220.js.map +1 -1
  204. package/lib/sd-component-library221.js +15 -23
  205. package/lib/sd-component-library221.js.map +1 -1
  206. package/lib/sd-component-library222.js +20 -47
  207. package/lib/sd-component-library222.js.map +1 -1
  208. package/lib/sd-component-library223.js +3 -64
  209. package/lib/sd-component-library223.js.map +1 -1
  210. package/lib/sd-component-library224.js +31 -43
  211. package/lib/sd-component-library224.js.map +1 -1
  212. package/lib/sd-component-library225.js +19 -13
  213. package/lib/sd-component-library225.js.map +1 -1
  214. package/lib/sd-component-library226.js +17 -45
  215. package/lib/sd-component-library226.js.map +1 -1
  216. package/lib/sd-component-library227.js +26 -39
  217. package/lib/sd-component-library227.js.map +1 -1
  218. package/lib/sd-component-library228.js +33 -27
  219. package/lib/sd-component-library228.js.map +1 -1
  220. package/lib/sd-component-library229.js +3 -75
  221. package/lib/sd-component-library229.js.map +1 -1
  222. package/lib/sd-component-library23.js +1 -1
  223. package/lib/sd-component-library230.js +128 -20
  224. package/lib/sd-component-library230.js.map +1 -1
  225. package/lib/sd-component-library231.js +43 -20
  226. package/lib/sd-component-library231.js.map +1 -1
  227. package/lib/sd-component-library232.js +47 -2
  228. package/lib/sd-component-library232.js.map +1 -1
  229. package/lib/sd-component-library233.js +7 -25
  230. package/lib/sd-component-library233.js.map +1 -1
  231. package/lib/sd-component-library234.js +62 -19
  232. package/lib/sd-component-library234.js.map +1 -1
  233. package/lib/sd-component-library235.js +43 -3
  234. package/lib/sd-component-library235.js.map +1 -1
  235. package/lib/sd-component-library236.js +13 -3
  236. package/lib/sd-component-library236.js.map +1 -1
  237. package/lib/sd-component-library237.js +2 -40
  238. package/lib/sd-component-library237.js.map +1 -1
  239. package/lib/sd-component-library238.js +2 -129
  240. package/lib/sd-component-library238.js.map +1 -1
  241. package/lib/sd-component-library239.js +21 -13
  242. package/lib/sd-component-library239.js.map +1 -1
  243. package/lib/sd-component-library24.js +2 -2
  244. package/lib/sd-component-library240.js +109 -14
  245. package/lib/sd-component-library240.js.map +1 -1
  246. package/lib/sd-component-library241.js +47 -3
  247. package/lib/sd-component-library241.js.map +1 -1
  248. package/lib/sd-component-library242.js +24 -3
  249. package/lib/sd-component-library242.js.map +1 -1
  250. package/lib/sd-component-library243.js +48 -60
  251. package/lib/sd-component-library243.js.map +1 -1
  252. package/lib/sd-component-library244.js +48 -3
  253. package/lib/sd-component-library244.js.map +1 -1
  254. package/lib/sd-component-library245.js +75 -3
  255. package/lib/sd-component-library245.js.map +1 -1
  256. package/lib/sd-component-library246.js +34 -39
  257. package/lib/sd-component-library246.js.map +1 -1
  258. package/lib/sd-component-library247.js +27 -52
  259. package/lib/sd-component-library247.js.map +1 -1
  260. package/lib/sd-component-library248.js +19 -323
  261. package/lib/sd-component-library248.js.map +1 -1
  262. package/lib/sd-component-library249.js +20 -5
  263. package/lib/sd-component-library249.js.map +1 -1
  264. package/lib/sd-component-library25.js +1 -1
  265. package/lib/sd-component-library250.js +2 -29
  266. package/lib/sd-component-library250.js.map +1 -1
  267. package/lib/sd-component-library251.js +325 -3
  268. package/lib/sd-component-library251.js.map +1 -1
  269. package/lib/sd-component-library252.js +5 -24
  270. package/lib/sd-component-library252.js.map +1 -1
  271. package/lib/sd-component-library253.js +29 -3
  272. package/lib/sd-component-library253.js.map +1 -1
  273. package/lib/sd-component-library254.js +3 -16
  274. package/lib/sd-component-library254.js.map +1 -1
  275. package/lib/sd-component-library255.js +17 -18
  276. package/lib/sd-component-library255.js.map +1 -1
  277. package/lib/sd-component-library256.js +3 -22
  278. package/lib/sd-component-library256.js.map +1 -1
  279. package/lib/sd-component-library257.js +25 -30
  280. package/lib/sd-component-library257.js.map +1 -1
  281. package/lib/sd-component-library258.js +21 -50
  282. package/lib/sd-component-library258.js.map +1 -1
  283. package/lib/sd-component-library259.js +30 -131
  284. package/lib/sd-component-library259.js.map +1 -1
  285. package/lib/sd-component-library260.js +39 -62
  286. package/lib/sd-component-library260.js.map +1 -1
  287. package/lib/sd-component-library261.js +117 -62
  288. package/lib/sd-component-library261.js.map +1 -1
  289. package/lib/sd-component-library262.js +74 -30
  290. package/lib/sd-component-library262.js.map +1 -1
  291. package/lib/sd-component-library263.js +70 -15
  292. package/lib/sd-component-library263.js.map +1 -1
  293. package/lib/sd-component-library264.js +25 -120
  294. package/lib/sd-component-library264.js.map +1 -1
  295. package/lib/sd-component-library265.js +16 -117
  296. package/lib/sd-component-library265.js.map +1 -1
  297. package/lib/sd-component-library266.js +125 -10
  298. package/lib/sd-component-library266.js.map +1 -1
  299. package/lib/sd-component-library267.js +111 -39
  300. package/lib/sd-component-library267.js.map +1 -1
  301. package/lib/sd-component-library268.js +10 -9
  302. package/lib/sd-component-library268.js.map +1 -1
  303. package/lib/sd-component-library269.js +48 -49
  304. package/lib/sd-component-library269.js.map +1 -1
  305. package/lib/sd-component-library270.js +8 -89
  306. package/lib/sd-component-library270.js.map +1 -1
  307. package/lib/sd-component-library271.js +48 -89
  308. package/lib/sd-component-library271.js.map +1 -1
  309. package/lib/sd-component-library272.js +89 -48
  310. package/lib/sd-component-library272.js.map +1 -1
  311. package/lib/sd-component-library273.js +92 -2
  312. package/lib/sd-component-library273.js.map +1 -1
  313. package/lib/sd-component-library274.js +49 -2
  314. package/lib/sd-component-library274.js.map +1 -1
  315. package/lib/sd-component-library275.js +2 -3
  316. package/lib/sd-component-library275.js.map +1 -1
  317. package/lib/sd-component-library276.js +2 -3
  318. package/lib/sd-component-library276.js.map +1 -1
  319. package/lib/sd-component-library277.js +70 -3
  320. package/lib/sd-component-library277.js.map +1 -1
  321. package/lib/sd-component-library278.js +102 -6
  322. package/lib/sd-component-library278.js.map +1 -1
  323. package/lib/sd-component-library279.js +106 -10
  324. package/lib/sd-component-library279.js.map +1 -1
  325. package/lib/sd-component-library280.js +10 -2
  326. package/lib/sd-component-library280.js.map +1 -1
  327. package/lib/sd-component-library281.js +6 -2
  328. package/lib/sd-component-library281.js.map +1 -1
  329. package/lib/sd-component-library282.js +2 -70
  330. package/lib/sd-component-library282.js.map +1 -1
  331. package/lib/sd-component-library283.js +35 -101
  332. package/lib/sd-component-library283.js.map +1 -1
  333. package/lib/sd-component-library284.js +14 -106
  334. package/lib/sd-component-library284.js.map +1 -1
  335. package/lib/sd-component-library285.js +3 -2
  336. package/lib/sd-component-library285.js.map +1 -1
  337. package/lib/sd-component-library286.js +3 -36
  338. package/lib/sd-component-library286.js.map +1 -1
  339. package/lib/sd-component-library287.js +3 -14
  340. package/lib/sd-component-library287.js.map +1 -1
  341. package/lib/sd-component-library289.js +3 -3
  342. package/lib/sd-component-library290.js +4 -4
  343. package/lib/sd-component-library291.js +1 -1
  344. package/lib/sd-component-library292.js +58 -2
  345. package/lib/sd-component-library292.js.map +1 -1
  346. package/lib/sd-component-library293.js +25 -76
  347. package/lib/sd-component-library293.js.map +1 -1
  348. package/lib/sd-component-library294.js +50 -92
  349. package/lib/sd-component-library294.js.map +1 -1
  350. package/lib/sd-component-library295.js +90 -50
  351. package/lib/sd-component-library295.js.map +1 -1
  352. package/lib/sd-component-library296.js +25 -9
  353. package/lib/sd-component-library296.js.map +1 -1
  354. package/lib/sd-component-library297.js +35 -5
  355. package/lib/sd-component-library297.js.map +1 -1
  356. package/lib/sd-component-library298.js +5 -53
  357. package/lib/sd-component-library298.js.map +1 -1
  358. package/lib/sd-component-library299.js +4 -9
  359. package/lib/sd-component-library299.js.map +1 -1
  360. package/lib/sd-component-library300.js +8 -4
  361. package/lib/sd-component-library300.js.map +1 -1
  362. package/lib/sd-component-library301.js +5 -4
  363. package/lib/sd-component-library301.js.map +1 -1
  364. package/lib/sd-component-library302.js +4 -19
  365. package/lib/sd-component-library302.js.map +1 -1
  366. package/lib/sd-component-library303.js +19 -3
  367. package/lib/sd-component-library303.js.map +1 -1
  368. package/lib/sd-component-library304.js +3 -2
  369. package/lib/sd-component-library304.js.map +1 -1
  370. package/lib/sd-component-library305.js +34 -2
  371. package/lib/sd-component-library305.js.map +1 -1
  372. package/lib/sd-component-library306.js +2 -6
  373. package/lib/sd-component-library306.js.map +1 -1
  374. package/lib/sd-component-library307.js +76 -34
  375. package/lib/sd-component-library307.js.map +1 -1
  376. package/lib/sd-component-library308.js +93 -25
  377. package/lib/sd-component-library308.js.map +1 -1
  378. package/lib/sd-component-library309.js +50 -90
  379. package/lib/sd-component-library309.js.map +1 -1
  380. package/lib/sd-component-library310.js +9 -51
  381. package/lib/sd-component-library310.js.map +1 -1
  382. package/lib/sd-component-library311.js +5 -5
  383. package/lib/sd-component-library311.js.map +1 -1
  384. package/lib/sd-component-library312.js +53 -4
  385. package/lib/sd-component-library312.js.map +1 -1
  386. package/lib/sd-component-library313.js +20 -49
  387. package/lib/sd-component-library313.js.map +1 -1
  388. package/lib/sd-component-library314.js +15 -20
  389. package/lib/sd-component-library314.js.map +1 -1
  390. package/lib/sd-component-library315.js +6 -34
  391. package/lib/sd-component-library315.js.map +1 -1
  392. package/lib/sd-component-library317.js +31 -28
  393. package/lib/sd-component-library317.js.map +1 -1
  394. package/lib/sd-component-library318.js +2 -21
  395. package/lib/sd-component-library318.js.map +1 -1
  396. package/lib/sd-component-library319.js +2 -32
  397. package/lib/sd-component-library319.js.map +1 -1
  398. package/lib/sd-component-library5.js +1 -1
  399. package/lib/sd-component-library52.js +3 -3
  400. package/lib/sd-component-library53.js +2 -2
  401. package/lib/sd-component-library54.js +2 -2
  402. package/lib/sd-component-library55.js +1 -1
  403. package/lib/sd-component-library56.js +2 -2
  404. package/lib/sd-component-library57.js +5 -5
  405. package/lib/sd-component-library58.js +1 -1
  406. package/lib/sd-component-library59.js +2 -2
  407. package/lib/sd-component-library6.js +1 -1
  408. package/lib/sd-component-library60.js +1 -1
  409. package/lib/sd-component-library65.js +2 -2
  410. package/lib/sd-component-library67.js +3 -3
  411. package/lib/sd-component-library69.js +2 -2
  412. package/lib/sd-component-library70.js +3 -3
  413. package/lib/sd-component-library71.js +1 -1
  414. package/lib/sd-component-library72.js +1 -1
  415. package/lib/sd-component-library74.js +1 -1
  416. package/lib/sd-component-library75.js +1 -1
  417. package/lib/sd-component-library80.js +1 -1
  418. package/lib/sd-component-library81.js +6 -6
  419. package/lib/sd-component-library82.js +2 -2
  420. package/lib/sd-component-library83.js +1 -1
  421. package/lib/sd-component-library84.js +5 -5
  422. package/lib/sd-component-library85.js +1 -1
  423. package/lib/sd-component-library87.js +6 -6
  424. package/lib/sd-component-library88.js +1 -1
  425. package/lib/sd-component-library89.js +7 -7
  426. package/lib/sd-component-library90.js +1 -1
  427. package/lib/sd-component-library93.js +2 -2
  428. package/lib/sd-component-library94.js +3 -3
  429. package/lib/sd-component-library95.js +2 -2
  430. package/lib/sd-component-library96.js +3 -3
  431. package/lib/sd-component-library97.js +2 -2
  432. package/lib/sd-component-library99.js +4 -4
  433. package/package.json +20 -6
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library222.js","sources":["../src/components/meters/outline-meter/partials/base-meter-label-box/base-meter-label-box.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts/responsive-text-v2\";\nimport { labelPaddingX, labelWidth } from \"../../contants\";\nimport { BaseMeterLabelBoxProps as Props } from \"./interfaces\";\n\nexport const BaseMeterLabelBox: React.FC<Props> = (props) => {\n const {\n position,\n diameter,\n label,\n distanceFromLabelToRanges,\n isInRange,\n color,\n } = props;\n const ref = useRef<HTMLElement>();\n const [textHeight, setTextHeight] = useState(0);\n\n useEffect(() => {\n if (ref.current) setTextHeight(ref.current.getBoundingClientRect().height);\n }, [ref]);\n\n const left =\n position === \"right\"\n ? `${diameter + distanceFromLabelToRanges}px`\n : position === \"top\"\n ? `${diameter / 2}px`\n : undefined;\n const right =\n position === \"left\"\n ? `${diameter + distanceFromLabelToRanges}px`\n : undefined;\n const top =\n position === \"left\" || position === \"right\"\n ? `${diameter / 2}px`\n : `${-distanceFromLabelToRanges}px`;\n\n return (\n <Box sx={{ position: \"absolute\", left, top, right }}>\n <Box\n sx={{\n position: \"relative\",\n top: `-${textHeight}px`,\n left: position === \"top\" ? \"-50%\" : undefined,\n py: \"7px\",\n px: isInRange ? `${labelPaddingX}px` : \"0\",\n borderColor: isInRange ? color : \"cl_lightGrey\",\n borderWidth: isInRange ? \"2px\" : \"1pt\",\n borderStyle: isInRange ? \"solid\" : \"none\",\n borderBottomStyle:\n !isInRange && position === \"top\" ? \"none\" : \"solid\",\n borderRadius: isInRange\n ? `${labelPaddingX}px ${labelPaddingX}px ${\n position !== \"left\" ? `${labelPaddingX}px` : \"0\"\n } ${position !== \"right\" ? `${labelPaddingX}px` : \"0\"}`\n : \"0\",\n bg: \"cl_white\",\n \"& > div\": {\n maxWidth: position === \"top\" ? undefined : `${labelWidth}px`,\n },\n }}\n ref={ref}\n >\n <ResponsiveTextV2\n width=\"max-content\"\n fontSizeWeight={[[12, \"semi-bold\"]]}\n color={isInRange && 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":["BaseMeterLabelBox","props","position","diameter","label","distanceFromLabelToRanges","isInRange","color","ref","useRef","textHeight","setTextHeight","useState","useEffect","left","right","top","jsx","Box","labelPaddingX","labelWidth","ResponsiveTextV2"],"mappings":";;;;;AAQa,MAAAA,IAAqC,CAACC,MAAU;AACrD,QAAA;AAAA,IACJ,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,2BAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,EACE,IAAAN,GACEO,IAAMC,KACN,CAACC,GAAYC,CAAa,IAAIC,EAAS,CAAC;AAE9C,EAAAC,EAAU,MAAM;AACd,IAAIL,EAAI,WAASG,EAAcH,EAAI,QAAQ,sBAAsB,EAAE,MAAM;AAAA,EAAA,GACxE,CAACA,CAAG,CAAC;AAER,QAAMM,IACJZ,MAAa,UACT,GAAGC,IAAWE,CAAyB,OACvCH,MAAa,QACb,GAAGC,IAAW,CAAC,OACf,QACAY,IACJb,MAAa,SACT,GAAGC,IAAWE,CAAyB,OACvC,QACAW,IACJd,MAAa,UAAUA,MAAa,UAChC,GAAGC,IAAW,CAAC,OACf,GAAG,CAACE,CAAyB;AAGjC,SAAAY,gBAAAA,MAACC,KAAI,IAAI,EAAE,UAAU,YAAY,MAAAJ,GAAM,KAAAE,GAAK,OAAAD,EAC1C,GAAA,UAAAE,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAI;AAAA,QACF,UAAU;AAAA,QACV,KAAK,IAAIR,CAAU;AAAA,QACnB,MAAMR,MAAa,QAAQ,SAAS;AAAA,QACpC,IAAI;AAAA,QACJ,IAAII,IAAY,GAAGa,CAAa,OAAO;AAAA,QACvC,aAAab,IAAYC,IAAQ;AAAA,QACjC,aAAaD,IAAY,QAAQ;AAAA,QACjC,aAAaA,IAAY,UAAU;AAAA,QACnC,mBACE,CAACA,KAAaJ,MAAa,QAAQ,SAAS;AAAA,QAC9C,cAAcI,IACV,GAAGa,CAAa,MAAMA,CAAa,MACjCjB,MAAa,SAAS,GAAGiB,CAAa,OAAO,GAC/C,IAAIjB,MAAa,UAAU,GAAGiB,CAAa,OAAO,GAAG,KACrD;AAAA,QACJ,IAAI;AAAA,QACJ,WAAW;AAAA,UACT,UAAUjB,MAAa,QAAQ,SAAY,GAAGkB,CAAU;AAAA,QAC1D;AAAA,MACF;AAAA,MACA,KAAAZ;AAAA,MAEA,UAAAS,gBAAAA,EAAA;AAAA,QAACI;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,gBAAgB,CAAC,CAAC,IAAI,WAAW,CAAC;AAAA,UAClC,OAAOf,KAAaC,MAAU,YAAYA,IAAQ;AAAA,UAClD,eAAc;AAAA,UACd,eAAc;AAAA,UAEb,UAAAH;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"sd-component-library222.js","sources":["../src/components/tooltips/actions-tooltip/partials/action-box/action-box.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box, Flex } from \"rebass\";\n\nimport { ResponsiveTextV2 } from \"../../../../texts/responsive-text-v2\";\nimport { ActionBoxProps as Props } from \"./interfaces\";\n\nexport const ActionBox: React.FC<Props> = (props) => {\n const { text, onClick, px = \"10px\", py = \"15px\" } = props;\n\n return (\n <ResponsiveTextV2\n fontSizeWeight={[[16, \"regular\"]]}\n sx={{\n display: \"flex\",\n justifyContent: \"end\",\n px,\n py,\n cursor: \"pointer\",\n textTransform: \"capitalize\",\n opacity: 0.7,\n \":hover\": {\n opacity: 1,\n },\n }}\n onClick={onClick}\n >\n {text}\n </ResponsiveTextV2>\n );\n};\n"],"names":["ActionBox","props","text","onClick","px","py","jsx","ResponsiveTextV2"],"mappings":";;AAOa,MAAAA,IAA6B,CAACC,MAAU;AACnD,QAAM,EAAE,MAAAC,GAAM,SAAAC,GAAS,IAAAC,IAAK,QAAQ,IAAAC,IAAK,OAAW,IAAAJ;AAGlD,SAAAK,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,gBAAgB,CAAC,CAAC,IAAI,SAAS,CAAC;AAAA,MAChC,IAAI;AAAA,QACF,SAAS;AAAA,QACT,gBAAgB;AAAA,QAChB,IAAAH;AAAA,QACA,IAAAC;AAAA,QACA,QAAQ;AAAA,QACR,eAAe;AAAA,QACf,SAAS;AAAA,QACT,UAAU;AAAA,UACR,SAAS;AAAA,QACX;AAAA,MACF;AAAA,MACA,SAAAF;AAAA,MAEC,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGP;"}
@@ -1,67 +1,6 @@
1
- import { j as a } from "./sd-component-library190.js";
2
- import { getCoordinateForArc as i } from "./sd-component-library86.js";
3
- import { defaultTextBottomMargin as X } from "./sd-component-library208.js";
4
- import { getRangeProperties as Y } from "./sd-component-library311.js";
5
- import { BaseOutlineArc as b } from "./sd-component-library308.js";
6
- import { DiscreteMeterLabelPointer as w } from "./sd-component-library312.js";
7
- function z(s) {
8
- const {
9
- color: n,
10
- idx: c,
11
- gaugeWidth: d,
12
- diameter: g,
13
- arc: m,
14
- distanceBetweenRanges: l,
15
- totalRanges: p,
16
- showLabel: h,
17
- label: o,
18
- isMatchedRange: x,
19
- pointerWidth: f,
20
- pointerLength: A,
21
- horizontal: u
22
- } = s, t = g / 2, { rangeArcStart: r, rangeArcEnd: e } = Y(
23
- m,
24
- p,
25
- l,
26
- c
27
- ), { x: R, y: j } = i(
28
- t,
29
- r
30
- ), { x: B, y: E } = i(
31
- t,
32
- e
33
- ), M = (r + e) / 2;
34
- return /* @__PURE__ */ a.jsxs("g", { children: [
35
- /* @__PURE__ */ a.jsx(
36
- b,
37
- {
38
- startX: R,
39
- startY: j,
40
- endX: B,
41
- endY: E,
42
- startAlpha: r,
43
- endAlpha: e,
44
- color: n,
45
- radius: t,
46
- width: d
47
- }
48
- ),
49
- h && o && !x && /* @__PURE__ */ a.jsx(
50
- w,
51
- {
52
- alpha: M,
53
- pointerLength: A,
54
- pointerWidth: f,
55
- radius: t,
56
- color: n,
57
- textBottomMargin: X,
58
- label: o,
59
- horizontal: u
60
- }
61
- )
62
- ] });
63
- }
1
+ const t = 1, o = 13;
64
2
  export {
65
- z as DiscreteRange
3
+ t as defaultPointerWidth,
4
+ o as defaultTextBottomMargin
66
5
  };
67
6
  //# sourceMappingURL=sd-component-library223.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library223.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-range/discrete-range.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { BaseOutlineArc } from \"../../../outline-meter/partials/base-outline-arc\";\nimport { getCoordinateForArc } from \"../../../outline-meter/utils\";\nimport { defaultTextBottomMargin } from \"../../constants\";\nimport { getRangeProperties } from \"../../utils\";\nimport { DiscreteMeterLabelPointer } from \"../discrete-meter-label-pointer\";\nimport { DiscreteRangeProps as Props } from \"./interfaces\";\n\nexport function DiscreteRange<T>(props: PropsWithChildren<Props<T>>) {\n const {\n color,\n idx,\n gaugeWidth,\n diameter,\n arc,\n distanceBetweenRanges,\n totalRanges,\n showLabel,\n label,\n isMatchedRange,\n pointerWidth,\n pointerLength,\n horizontal,\n } = props;\n\n const radius = diameter / 2;\n\n const { rangeArcStart, rangeArcEnd } = getRangeProperties(\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx\n );\n\n const { x: rangeStartX, y: rangeStartY } = getCoordinateForArc(\n radius,\n rangeArcStart\n );\n const { x: rangeEndX, y: rangeEndY } = getCoordinateForArc(\n radius,\n rangeArcEnd\n );\n\n const middleArcAlpha = (rangeArcStart + rangeArcEnd) / 2;\n\n return (\n <g>\n <BaseOutlineArc\n startX={rangeStartX}\n startY={rangeStartY}\n endX={rangeEndX}\n endY={rangeEndY}\n startAlpha={rangeArcStart}\n endAlpha={rangeArcEnd}\n color={color}\n radius={radius}\n width={gaugeWidth}\n />\n\n {showLabel && label && !isMatchedRange && (\n <DiscreteMeterLabelPointer\n alpha={middleArcAlpha}\n pointerLength={pointerLength}\n pointerWidth={pointerWidth}\n radius={radius}\n color={color}\n textBottomMargin={defaultTextBottomMargin}\n label={label}\n horizontal={horizontal}\n />\n )}\n </g>\n );\n}\n"],"names":["DiscreteRange","props","color","idx","gaugeWidth","diameter","arc","distanceBetweenRanges","totalRanges","showLabel","label","isMatchedRange","pointerWidth","pointerLength","horizontal","radius","rangeArcStart","rangeArcEnd","getRangeProperties","rangeStartX","rangeStartY","getCoordinateForArc","rangeEndX","rangeEndY","middleArcAlpha","jsx","BaseOutlineArc","DiscreteMeterLabelPointer","defaultTextBottomMargin"],"mappings":";;;;;;AASO,SAASA,EAAiBC,GAAoC;AAC7D,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,KAAAC;AAAA,IACA,YAAAC;AAAA,IACA,UAAAC;AAAA,IACA,KAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,OAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC;AAAA,EACE,IAAAb,GAEEc,IAASV,IAAW,GAEpB,EAAE,eAAAW,GAAe,aAAAC,EAAA,IAAgBC;AAAA,IACrCZ;AAAA,IACAE;AAAA,IACAD;AAAA,IACAJ;AAAA,EAAA,GAGI,EAAE,GAAGgB,GAAa,GAAGC,EAAgB,IAAAC;AAAA,IACzCN;AAAA,IACAC;AAAA,EAAA,GAEI,EAAE,GAAGM,GAAW,GAAGC,EAAc,IAAAF;AAAA,IACrCN;AAAA,IACAE;AAAA,EAAA,GAGIO,KAAkBR,IAAgBC,KAAe;AAEvD,gCACG,KACC,EAAA,UAAA;AAAA,IAAAQ,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,QAAQP;AAAA,QACR,QAAQC;AAAA,QACR,MAAME;AAAA,QACN,MAAMC;AAAA,QACN,YAAYP;AAAA,QACZ,UAAUC;AAAA,QACV,OAAAf;AAAA,QACA,QAAAa;AAAA,QACA,OAAOX;AAAA,MAAA;AAAA,IACT;AAAA,IAECK,KAAaC,KAAS,CAACC,KACtBc,gBAAAA,EAAA;AAAA,MAACE;AAAA,MAAA;AAAA,QACC,OAAOH;AAAA,QACP,eAAAX;AAAA,QACA,cAAAD;AAAA,QACA,QAAAG;AAAA,QACA,OAAAb;AAAA,QACA,kBAAkB0B;AAAA,QAClB,OAAAlB;AAAA,QACA,YAAAI;AAAA,MAAA;AAAA,IACF;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"sd-component-library223.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/constants.ts"],"sourcesContent":["export const defaultPointerWidth = 1;\nexport const defaultTextBottomMargin = 13;\n"],"names":["defaultPointerWidth","defaultTextBottomMargin"],"mappings":"AAAO,MAAMA,IAAsB,GACtBC,IAA0B;"}
@@ -1,46 +1,34 @@
1
- import { j as M } from "./sd-component-library190.js";
2
- import { getInnerX as T, getInnerY as W, degToRad as r, getCoordinateForArc as y } from "./sd-component-library86.js";
3
- import { BaseNeedle as B } from "./sd-component-library307.js";
4
- function E(p) {
5
- const {
6
- needleColor: u,
7
- options: n,
8
- value: h,
9
- needleWidth: e,
10
- innerCircleRadius: m,
11
- innerCircleStrokeWidth: x,
12
- diameter: R,
13
- arc: a,
14
- distanceBetweenRanges: c,
15
- distanceFromRange: s,
16
- gaugeWidth: i
17
- } = p, o = n.findIndex(
18
- (F) => h === F.value
19
- ), d = R / 2, f = (360 - a) / 2, l = a - (n.length - 1) * c, g = o / n.length, v = (o + 1) / n.length, A = l * (v - g), t = f + c * o + l * g + A / 2, { x: C, y: I } = y(d, t), S = T(
20
- C,
21
- r(t),
22
- s + i + e / 2
23
- ), X = W(
24
- I,
25
- r(t),
26
- s + i + e / 2
27
- ), Y = e / 2 * Math.cos(r(t)), j = e / 2 * Math.sin(r(t));
28
- return /* @__PURE__ */ M.jsx(
29
- B,
30
- {
31
- dx: Y,
32
- dy: j,
33
- color: u,
34
- radius: d,
35
- tipX: S,
36
- tipY: X,
37
- innerCircleStrokeWidth: x,
38
- innerCircleRadius: m,
39
- needleWidth: e
40
- }
41
- );
42
- }
1
+ const e = 250, t = 220, s = 270, n = 10, a = 6, l = 4.5, o = 1.5, d = 18, c = 4, i = 6.5, r = 8, u = 40, f = 6, h = 1.5, m = 32, M = 20, g = 100, R = 14, W = 100, D = 100, k = 87, I = 3, N = 1.5, P = 4, S = 6, b = 3, B = 10, C = 18, F = 7, T = 100;
43
2
  export {
44
- E as DiscreteMeterNeedle
3
+ s as defaultArc,
4
+ f as defaultDashHeight,
5
+ h as defaultDashWidth,
6
+ n as defaultDistanceBetweenRanges,
7
+ M as defaultDistanceFromLabelToRanges,
8
+ d as defaultDistanceFromRangesToNeedle,
9
+ m as defaultDistanceFromRangesToScale,
10
+ a as defaultGaugeWidth,
11
+ t as defaultHeight,
12
+ i as defaultInnerCircleRadius,
13
+ c as defaultInnerCircleStrokeWidth,
14
+ o as defaultInnerPointRadius,
15
+ W as defaultMaskBorderRadius,
16
+ r as defaultNeedleWidth,
17
+ u as defaultNumberOfDashes,
18
+ l as defaultPointStrokeWidth,
19
+ e as defaultWidth,
20
+ R as labelPaddingX,
21
+ g as labelWidth,
22
+ B as smallMeterDistanceBetweenRanges,
23
+ C as smallMeterDistanceFromRangesToNeedle,
24
+ P as smallMeterGaugeWidth,
25
+ k as smallMeterHeight,
26
+ S as smallMeterInnerCircleRadius,
27
+ b as smallMeterInnerCircleStrokeWidth,
28
+ T as smallMeterMaskBorderRadius,
29
+ F as smallMeterNeedleWidth,
30
+ N as smallMeterPointRadius,
31
+ I as smallMeterPointStrokeWidth,
32
+ D as smallMeterWidth
45
33
  };
46
34
  //# sourceMappingURL=sd-component-library224.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library224.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/discrete-meter-needle/discrete-meter-needle.tsx"],"sourcesContent":["import React, { PropsWithChildren } from \"react\";\n\nimport { BaseNeedle } from \"../../../outline-meter/partials/base-needle\";\nimport {\n degToRad,\n getCoordinateForArc,\n getInnerX,\n getInnerY,\n} from \"../../../outline-meter/utils\";\nimport { DiscreteMeterNeedleProps as Props } from \"./interfaces\";\n\nexport function DiscreteMeterNeedle<T>(props: PropsWithChildren<Props<T>>) {\n const {\n needleColor,\n options,\n value,\n needleWidth,\n innerCircleRadius,\n innerCircleStrokeWidth,\n diameter,\n arc,\n distanceBetweenRanges,\n distanceFromRange,\n gaugeWidth,\n } = props;\n\n const matchingRangeIndex = options.findIndex(\n (option) => value === option.value\n );\n\n const radius = diameter / 2;\n\n const arcStart = (360 - arc) / 2;\n const arcForRanges = arc - (options.length - 1) * distanceBetweenRanges;\n\n const start = matchingRangeIndex / options.length;\n const end = (matchingRangeIndex + 1) / options.length;\n\n const rangeArc = arcForRanges * (end - start);\n\n const rangeArcStart =\n arcStart +\n distanceBetweenRanges * matchingRangeIndex +\n arcForRanges * start;\n\n const valueAlpha = rangeArcStart + rangeArc / 2;\n const { x: valueX, y: valueY } = getCoordinateForArc(radius, valueAlpha);\n\n const needleTipX = getInnerX(\n valueX,\n degToRad(valueAlpha),\n distanceFromRange + gaugeWidth + needleWidth / 2\n );\n const needleTipY = getInnerY(\n valueY,\n degToRad(valueAlpha),\n distanceFromRange + gaugeWidth + needleWidth / 2\n );\n\n const dx = (needleWidth / 2) * Math.cos(degToRad(valueAlpha));\n const dy = (needleWidth / 2) * Math.sin(degToRad(valueAlpha));\n\n return (\n <BaseNeedle\n dx={dx}\n dy={dy}\n color={needleColor}\n radius={radius}\n tipX={needleTipX}\n tipY={needleTipY}\n innerCircleStrokeWidth={innerCircleStrokeWidth}\n innerCircleRadius={innerCircleRadius}\n needleWidth={needleWidth}\n />\n );\n}\n"],"names":["DiscreteMeterNeedle","props","needleColor","options","value","needleWidth","innerCircleRadius","innerCircleStrokeWidth","diameter","arc","distanceBetweenRanges","distanceFromRange","gaugeWidth","matchingRangeIndex","option","radius","arcStart","arcForRanges","start","end","rangeArc","valueAlpha","valueX","valueY","getCoordinateForArc","needleTipX","getInnerX","degToRad","needleTipY","getInnerY","dx","dy","jsx","BaseNeedle"],"mappings":";;;AAWO,SAASA,EAAuBC,GAAoC;AACnE,QAAA;AAAA,IACJ,aAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,KAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,YAAAC;AAAA,EACE,IAAAX,GAEEY,IAAqBV,EAAQ;AAAA,IACjC,CAACW,MAAWV,MAAUU,EAAO;AAAA,EAAA,GAGzBC,IAASP,IAAW,GAEpBQ,KAAY,MAAMP,KAAO,GACzBQ,IAAeR,KAAON,EAAQ,SAAS,KAAKO,GAE5CQ,IAAQL,IAAqBV,EAAQ,QACrCgB,KAAON,IAAqB,KAAKV,EAAQ,QAEzCiB,IAAWH,KAAgBE,IAAMD,IAOjCG,IAJJL,IACAN,IAAwBG,IACxBI,IAAeC,IAEkBE,IAAW,GACxC,EAAE,GAAGE,GAAQ,GAAGC,MAAWC,EAAoBT,GAAQM,CAAU,GAEjEI,IAAaC;AAAA,IACjBJ;AAAA,IACAK,EAASN,CAAU;AAAA,IACnBV,IAAoBC,IAAaP,IAAc;AAAA,EAAA,GAE3CuB,IAAaC;AAAA,IACjBN;AAAA,IACAI,EAASN,CAAU;AAAA,IACnBV,IAAoBC,IAAaP,IAAc;AAAA,EAAA,GAG3CyB,IAAMzB,IAAc,IAAK,KAAK,IAAIsB,EAASN,CAAU,CAAC,GACtDU,IAAM1B,IAAc,IAAK,KAAK,IAAIsB,EAASN,CAAU,CAAC;AAG1D,SAAAW,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAAH;AAAA,MACA,IAAAC;AAAA,MACA,OAAO7B;AAAA,MACP,QAAAa;AAAA,MACA,MAAMU;AAAA,MACN,MAAMG;AAAA,MACN,wBAAArB;AAAA,MACA,mBAAAD;AAAA,MACA,aAAAD;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"sd-component-library224.js","sources":["../src/components/meters/outline-meter/contants.ts"],"sourcesContent":["/**\n * Default values for outline meters\n */\nexport const defaultWidth = 250;\nexport const defaultHeight = 220;\nexport const defaultArc = 270;\nexport const defaultDistanceBetweenRanges = 10;\nexport const defaultGaugeWidth = 6;\nexport const defaultPointStrokeWidth = 4.5;\nexport const defaultInnerPointRadius = 1.5;\nexport const defaultDistanceFromRangesToNeedle = 18;\nexport const defaultInnerCircleStrokeWidth = 4;\nexport const defaultInnerCircleRadius = 6.5;\nexport const defaultNeedleWidth = 8;\nexport const defaultNumberOfDashes = 40;\nexport const defaultDashHeight = 6;\nexport const defaultDashWidth = 1.5;\nexport const defaultDistanceFromRangesToScale = 32;\nexport const defaultDistanceFromLabelToRanges = 20;\nexport const labelWidth = 100;\nexport const labelPaddingX = 14;\nexport const defaultMaskBorderRadius = 100;\n\n/**\n * Small Outline meter default values\n */\nexport const smallMeterWidth = 100;\nexport const smallMeterHeight = 87;\nexport const smallMeterPointStrokeWidth = 3;\nexport const smallMeterPointRadius = 1.5;\nexport const smallMeterGaugeWidth = 4;\nexport const smallMeterInnerCircleRadius = 6;\nexport const smallMeterInnerCircleStrokeWidth = 3;\nexport const smallMeterDistanceBetweenRanges = 10;\nexport const smallMeterDistanceFromRangesToNeedle = 18;\nexport const smallMeterNeedleWidth = 7;\nexport const smallMeterMaskBorderRadius = 100;\n"],"names":["defaultWidth","defaultHeight","defaultArc","defaultDistanceBetweenRanges","defaultGaugeWidth","defaultPointStrokeWidth","defaultInnerPointRadius","defaultDistanceFromRangesToNeedle","defaultInnerCircleStrokeWidth","defaultInnerCircleRadius","defaultNeedleWidth","defaultNumberOfDashes","defaultDashHeight","defaultDashWidth","defaultDistanceFromRangesToScale","defaultDistanceFromLabelToRanges","labelWidth","labelPaddingX","defaultMaskBorderRadius","smallMeterWidth","smallMeterHeight","smallMeterPointStrokeWidth","smallMeterPointRadius","smallMeterGaugeWidth","smallMeterInnerCircleRadius","smallMeterInnerCircleStrokeWidth","smallMeterDistanceBetweenRanges","smallMeterDistanceFromRangesToNeedle","smallMeterNeedleWidth","smallMeterMaskBorderRadius"],"mappings":"AAGO,MAAMA,IAAe,KACfC,IAAgB,KAChBC,IAAa,KACbC,IAA+B,IAC/BC,IAAoB,GACpBC,IAA0B,KAC1BC,IAA0B,KAC1BC,IAAoC,IACpCC,IAAgC,GAChCC,IAA2B,KAC3BC,IAAqB,GACrBC,IAAwB,IACxBC,IAAoB,GACpBC,IAAmB,KACnBC,IAAmC,IACnCC,IAAmC,IACnCC,IAAa,KACbC,IAAgB,IAChBC,IAA0B,KAK1BC,IAAkB,KAClBC,IAAmB,IACnBC,IAA6B,GAC7BC,IAAwB,KACxBC,IAAuB,GACvBC,IAA8B,GAC9BC,IAAmC,GACnCC,IAAkC,IAClCC,IAAuC,IACvCC,IAAwB,GACxBC,IAA6B;"}
@@ -1,16 +1,22 @@
1
- import { j as g } from "./sd-component-library190.js";
2
- import { getRangeProperties as d } from "./sd-component-library311.js";
3
- import { MatchedRangeLabelBox as x } from "./sd-component-library309.js";
4
- const h = (e) => {
5
- const { idx: t, totalRanges: a, distanceBetweenRanges: r, arc: n } = e, { rangeArcStart: o, rangeArcEnd: s } = d(
6
- n,
7
- a,
8
- r,
9
- t
10
- ), c = Math.round((o + s) / 2);
11
- return /* @__PURE__ */ g.jsx(x, { ...e, alpha: c, round: !0 });
12
- };
1
+ import { j as t } from "./sd-component-library190.js";
2
+ import { SmileyGaugeColor as e } from "./sd-component-library226.js";
3
+ import { ReactComponent as o } from "./sd-component-library285.js";
4
+ import { ReactComponent as m } from "./sd-component-library286.js";
5
+ import { ReactComponent as i } from "./sd-component-library287.js";
6
+ const S = 10, c = 80, p = 100, y = 87, R = 30, d = 3, f = 2, g = 4, u = /* @__PURE__ */ new Map([
7
+ [e.GREEN, /* @__PURE__ */ t.jsx(o, {})],
8
+ [e.ORANGE, /* @__PURE__ */ t.jsx(m, {})],
9
+ [e.RED, /* @__PURE__ */ t.jsx(i, {})]
10
+ ]);
13
11
  export {
14
- h as MatchedRangeLabelBox
12
+ u as COLOR_TO_ICON_MAP,
13
+ S as defaultDistanceBetweenRanges,
14
+ c as defaultSmileyWidth,
15
+ g as smallSmileyGaugeWidth,
16
+ f as smallSmileyInnerPointRadius,
17
+ d as smallSmileyInnerPointStrokeWidth,
18
+ y as smallSmileyMeterHeight,
19
+ p as smallSmileyMeterWidth,
20
+ R as smallSmileyWidth
15
21
  };
16
22
  //# sourceMappingURL=sd-component-library225.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library225.js","sources":["../src/components/meters/multi-option-discrete-outline-meter/partials/matched-range-label-box/matched-range-label-box.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { MatchedRangeLabelBox as LabelBox } from \"../../../common-outline-meter-partials\";\nimport { getRangeProperties } from \"../../utils\";\nimport { MatchedRangeLabelBoxProps as Props } from \"./interfaces\";\n\nexport const MatchedRangeLabelBox: React.FC<Props> = (props) => {\n const { idx, totalRanges, distanceBetweenRanges, arc } = props;\n\n const { rangeArcStart, rangeArcEnd } = getRangeProperties(\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx\n );\n\n const alpha = Math.round((rangeArcStart + rangeArcEnd) / 2);\n\n return <LabelBox {...props} alpha={alpha} round />;\n};\n"],"names":["MatchedRangeLabelBox","props","idx","totalRanges","distanceBetweenRanges","arc","rangeArcStart","rangeArcEnd","getRangeProperties","alpha","LabelBox"],"mappings":";;;AAMa,MAAAA,IAAwC,CAACC,MAAU;AAC9D,QAAM,EAAE,KAAAC,GAAK,aAAAC,GAAa,uBAAAC,GAAuB,KAAAC,MAAQJ,GAEnD,EAAE,eAAAK,GAAe,aAAAC,EAAA,IAAgBC;AAAA,IACrCH;AAAA,IACAF;AAAA,IACAC;AAAA,IACAF;AAAA,EAAA,GAGIO,IAAQ,KAAK,OAAOH,IAAgBC,KAAe,CAAC;AAE1D,+BAAQG,GAAU,EAAA,GAAGT,GAAO,OAAAQ,GAAc,OAAK,GAAC,CAAA;AAClD;"}
1
+ {"version":3,"file":"sd-component-library225.js","sources":["../src/components/meters/smiley-meter-v2/constants.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { HappySmileyIcon, NeutralSmileyIcon, SadSmileyIcon } from \"./assets\";\n\n/**\n * Large Smiley meter v2 default values.\n */\nimport { SmileyGaugeColor } from \"./utils\";\n\nexport const defaultDistanceBetweenRanges = 10;\nexport const defaultSmileyWidth = 80;\n\n/**\n * Small Smiley meter v2 default values.\n */\nexport const smallSmileyMeterWidth = 100;\nexport const smallSmileyMeterHeight = 87;\nexport const smallSmileyWidth = 30;\nexport const smallSmileyInnerPointStrokeWidth = 3;\nexport const smallSmileyInnerPointRadius = 2;\nexport const smallSmileyGaugeWidth = 4;\n\nexport const COLOR_TO_ICON_MAP = new Map<SmileyGaugeColor, React.ReactNode>([\n [SmileyGaugeColor.GREEN, <HappySmileyIcon />],\n [SmileyGaugeColor.ORANGE, <NeutralSmileyIcon />],\n [SmileyGaugeColor.RED, <SadSmileyIcon />],\n]);\n"],"names":["defaultDistanceBetweenRanges","defaultSmileyWidth","smallSmileyMeterWidth","smallSmileyMeterHeight","smallSmileyWidth","smallSmileyInnerPointStrokeWidth","smallSmileyInnerPointRadius","smallSmileyGaugeWidth","COLOR_TO_ICON_MAP","SmileyGaugeColor","jsx","HappySmileyIcon","NeutralSmileyIcon","SadSmileyIcon"],"mappings":";;;;;AASO,MAAMA,IAA+B,IAC/BC,IAAqB,IAKrBC,IAAwB,KACxBC,IAAyB,IACzBC,IAAmB,IACnBC,IAAmC,GACnCC,IAA8B,GAC9BC,IAAwB,GAExBC,wBAAwB,IAAuC;AAAA,EAC1E,CAACC,EAAiB,OAAOC,gBAAAA,EAAA,IAACC,IAAgB,CAAA,CAAE;AAAA,EAC5C,CAACF,EAAiB,QAAQC,gBAAAA,EAAA,IAACE,IAAkB,CAAA,CAAE;AAAA,EAC/C,CAACH,EAAiB,KAAKC,gBAAAA,EAAA,IAACG,IAAc,CAAA,CAAE;AAC1C,CAAC;"}
@@ -1,51 +1,23 @@
1
- import { getCoordinateForArc as s } from "./sd-component-library86.js";
2
- const v = (r) => {
3
- const a = `Received ${r.map(
4
- ({ start: e, end: t }) => `(${e},${t})`
5
- )}`, n = (e) => console.error(e, a);
6
- if (r.some(
7
- ({ start: e, end: t }) => [e, t].some((o) => o < 0 || o > 1)
8
- ))
9
- return n("Segment values should be between 0 and 1"), !1;
10
- if (r.reduce(
11
- (e, { start: t }) => e + (t === 0 ? 1 : 0),
12
- 0
13
- ) !== 1)
14
- return n("One segment should start from 0"), !1;
15
- if (r.reduce((e, { end: t }) => e + (t === 1 ? 1 : 0), 0) !== 1)
16
- return n("One segment should end by 1"), !1;
17
- if (r.some(({ start: e, end: t }) => e >= t))
18
- return n("Segment start should be smaller than end"), !1;
19
- for (let e = 1; e < r.length; e++) {
20
- const t = r[e];
21
- if (r[e - 1].end !== t.start)
22
- return n("Previous segment end should be equal to next segment start"), !1;
23
- }
24
- return !0;
25
- }, x = ({ start: r, end: a }, n, e) => {
26
- const t = n - e, o = Math.round(r * 360), c = Math.round(a * 360), d = c - o, { x: l, y: u } = s(n, o), { x: f, y: m } = s(
27
- t,
28
- o,
29
- n
30
- ), { x: h, y: i } = s(n, c), { x: g, y: S } = s(
31
- t,
32
- c,
33
- n
34
- );
1
+ import { isCorrectOutlineMeterConfig as l } from "./sd-component-library86.js";
2
+ var a = /* @__PURE__ */ ((r) => (r.GREEN = "#00B466", r.ORANGE = "#FF9900", r.RED = "#FF0000", r))(a || {});
3
+ const u = (r) => !r.some(
4
+ ({ color: t }) => !Object.values(a).includes(t)
5
+ ), f = (r, t) => l(r, t) && u(t), A = (r, t, n, i, o, d) => {
6
+ const c = r - (t - 1) * n, e = (360 - r) / 2 + n * i + c * o, s = e + c * (d - o), g = (e + s) / 2;
35
7
  return {
36
- startX: l,
37
- startY: u,
38
- endX: h,
39
- endY: i,
40
- startInnerX: f,
41
- startInnerY: m,
42
- endInnerX: g,
43
- endInnerY: S,
44
- arc: d
8
+ rangeArcStart: e,
9
+ rangeArcEnd: s,
10
+ rangeArcMiddle: g
45
11
  };
12
+ }, R = (r) => {
13
+ const { start: t, end: n } = r;
14
+ return t === 0 ? n < 0.6 : n === 1 ? t > 0.4 : !1;
46
15
  };
47
16
  export {
48
- v as areSegmentsValid,
49
- x as getSegmentCoordinates
17
+ a as SmileyGaugeColor,
18
+ u as areColorsValid,
19
+ R as getIsHorizontal,
20
+ A as getRangeProperties,
21
+ f as isCorrectSmileyMeterConfig
50
22
  };
51
23
  //# sourceMappingURL=sd-component-library226.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library226.js","sources":["../src/components/meters/donut-diagram/utils.ts"],"sourcesContent":["import { getCoordinateForArc } from \"../outline-meter/utils\";\nimport { DonutSegment } from \"./interfaces\";\n\nexport const areSegmentsValid = (\n segments: Pick<DonutSegment, \"start\" | \"end\">[]\n): boolean => {\n const receivedSegments = `Received ${segments.map(\n ({ start, end }) => `(${start},${end})`\n )}`;\n const showError = (text: string) => console.error(text, receivedSegments);\n\n if (\n segments.some(({ start, end }) =>\n [start, end].some((point) => point < 0 || point > 1)\n )\n ) {\n showError(\"Segment values should be between 0 and 1\");\n return false;\n }\n\n if (\n segments.reduce<number>(\n (acc, { start }) => acc + (start === 0 ? 1 : 0),\n 0\n ) !== 1\n ) {\n showError(\"One segment should start from 0\");\n return false;\n }\n\n if (\n segments.reduce<number>((acc, { end }) => acc + (end === 1 ? 1 : 0), 0) !==\n 1\n ) {\n showError(\"One segment should end by 1\");\n return false;\n }\n\n if (segments.some(({ start, end }) => start >= end)) {\n showError(\"Segment start should be smaller than end\");\n return false;\n }\n\n for (let i = 1; i < segments.length; i++) {\n const currentSegment = segments[i];\n const prevSegment = segments[i - 1];\n if (prevSegment.end !== currentSegment.start) {\n showError(\"Previous segment end should be equal to next segment start\");\n return false;\n }\n }\n\n return true;\n};\n\nexport const getSegmentCoordinates = (\n { start, end }: Pick<DonutSegment, \"start\" | \"end\">,\n radius: number,\n segmentWidth: number\n) => {\n const innerRadius = radius - segmentWidth;\n\n const startAlpha = Math.round(start * 360);\n const endAlpha = Math.round(end * 360);\n const arc = endAlpha - startAlpha;\n\n const { x: startX, y: startY } = getCoordinateForArc(radius, startAlpha);\n const { x: startInnerX, y: startInnerY } = getCoordinateForArc(\n innerRadius,\n startAlpha,\n radius\n );\n\n const { x: endX, y: endY } = getCoordinateForArc(radius, endAlpha);\n const { x: endInnerX, y: endInnerY } = getCoordinateForArc(\n innerRadius,\n endAlpha,\n radius\n );\n return {\n startX,\n startY,\n endX,\n endY,\n startInnerX,\n startInnerY,\n endInnerX,\n endInnerY,\n arc,\n };\n};\n"],"names":["areSegmentsValid","segments","receivedSegments","start","end","showError","text","point","acc","i","currentSegment","getSegmentCoordinates","radius","segmentWidth","innerRadius","startAlpha","endAlpha","arc","startX","startY","getCoordinateForArc","startInnerX","startInnerY","endX","endY","endInnerX","endInnerY"],"mappings":";AAGa,MAAAA,IAAmB,CAC9BC,MACY;AACN,QAAAC,IAAmB,YAAYD,EAAS;AAAA,IAC5C,CAAC,EAAE,OAAAE,GAAO,KAAAC,QAAU,IAAID,CAAK,IAAIC,CAAG;AAAA,EACrC,CAAA,IACKC,IAAY,CAACC,MAAiB,QAAQ,MAAMA,GAAMJ,CAAgB;AAExE,MACED,EAAS;AAAA,IAAK,CAAC,EAAE,OAAAE,GAAO,KAAAC,QACtB,CAACD,GAAOC,CAAG,EAAE,KAAK,CAACG,MAAUA,IAAQ,KAAKA,IAAQ,CAAC;AAAA,EAAA;AAGrD,WAAAF,EAAU,0CAA0C,GAC7C;AAGT,MACEJ,EAAS;AAAA,IACP,CAACO,GAAK,EAAE,OAAAL,QAAYK,KAAOL,MAAU,IAAI,IAAI;AAAA,IAC7C;AAAA,QACI;AAEN,WAAAE,EAAU,iCAAiC,GACpC;AAGT,MACEJ,EAAS,OAAe,CAACO,GAAK,EAAE,KAAAJ,EAAI,MAAMI,KAAOJ,MAAQ,IAAI,IAAI,IAAI,CAAC,MACtE;AAEA,WAAAC,EAAU,6BAA6B,GAChC;AAGL,MAAAJ,EAAS,KAAK,CAAC,EAAE,OAAAE,GAAO,KAAAC,QAAUD,KAASC,CAAG;AAChD,WAAAC,EAAU,0CAA0C,GAC7C;AAGT,WAASI,IAAI,GAAGA,IAAIR,EAAS,QAAQQ,KAAK;AAClC,UAAAC,IAAiBT,EAASQ,CAAC;AAE7B,QADgBR,EAASQ,IAAI,CAAC,EAClB,QAAQC,EAAe;AACrC,aAAAL,EAAU,4DAA4D,GAC/D;AAAA,EAEX;AAEO,SAAA;AACT,GAEaM,IAAwB,CACnC,EAAE,OAAAR,GAAO,KAAAC,EAAI,GACbQ,GACAC,MACG;AACH,QAAMC,IAAcF,IAASC,GAEvBE,IAAa,KAAK,MAAMZ,IAAQ,GAAG,GACnCa,IAAW,KAAK,MAAMZ,IAAM,GAAG,GAC/Ba,IAAMD,IAAWD,GAEjB,EAAE,GAAGG,GAAQ,GAAGC,MAAWC,EAAoBR,GAAQG,CAAU,GACjE,EAAE,GAAGM,GAAa,GAAGC,EAAgB,IAAAF;AAAA,IACzCN;AAAA,IACAC;AAAA,IACAH;AAAA,EAAA,GAGI,EAAE,GAAGW,GAAM,GAAGC,MAASJ,EAAoBR,GAAQI,CAAQ,GAC3D,EAAE,GAAGS,GAAW,GAAGC,EAAc,IAAAN;AAAA,IACrCN;AAAA,IACAE;AAAA,IACAJ;AAAA,EAAA;AAEK,SAAA;AAAA,IACL,QAAAM;AAAA,IACA,QAAAC;AAAA,IACA,MAAAI;AAAA,IACA,MAAAC;AAAA,IACA,aAAAH;AAAA,IACA,aAAAC;AAAA,IACA,WAAAG;AAAA,IACA,WAAAC;AAAA,IACA,KAAAT;AAAA,EAAA;AAEJ;"}
1
+ {"version":3,"file":"sd-component-library226.js","sources":["../src/components/meters/smiley-meter-v2/utils.ts"],"sourcesContent":["import { OutlineMeterRangeConfig } from \"../outline-meter\";\nimport { isCorrectOutlineMeterConfig } from \"../outline-meter/utils\";\nimport { SmileyMeterRange } from \"./interfaces\";\n\nexport enum SmileyGaugeColor {\n GREEN = \"#00B466\",\n ORANGE = \"#FF9900\",\n RED = \"#FF0000\",\n}\n\nexport const areColorsValid = (ranges: OutlineMeterRangeConfig[]) =>\n !ranges.some(\n ({ color }) => !Object.values(SmileyGaugeColor).includes(color as any)\n );\n\nexport const isCorrectSmileyMeterConfig = (\n value: number,\n ranges: OutlineMeterRangeConfig[]\n): ranges is SmileyMeterRange[] => {\n return isCorrectOutlineMeterConfig(value, ranges) && areColorsValid(ranges);\n};\n\nexport const getRangeProperties = (\n arc: number,\n totalRanges: number,\n distanceBetweenRanges: number,\n idx: number,\n start: number,\n end: number\n) => {\n const arcForRanges = arc - (totalRanges - 1) * distanceBetweenRanges;\n const arcStart = (360 - arc) / 2; // deg\n const rangeArcStart =\n arcStart + distanceBetweenRanges * idx + arcForRanges * start;\n const rangeArcEnd = rangeArcStart + arcForRanges * (end - start);\n\n const rangeArcMiddle = (rangeArcStart + rangeArcEnd) / 2;\n return {\n rangeArcStart,\n rangeArcEnd,\n rangeArcMiddle,\n };\n};\n\nexport const getIsHorizontal = (range: SmileyMeterRange) => {\n const { start, end } = range;\n return start === 0 ? end < 0.6 : end === 1 ? start > 0.4 : false;\n};\n"],"names":["SmileyGaugeColor","areColorsValid","ranges","color","isCorrectSmileyMeterConfig","value","isCorrectOutlineMeterConfig","getRangeProperties","arc","totalRanges","distanceBetweenRanges","idx","start","end","arcForRanges","rangeArcStart","rangeArcEnd","rangeArcMiddle","getIsHorizontal","range"],"mappings":";AAIY,IAAAA,sBAAAA,OACVA,EAAA,QAAQ,WACRA,EAAA,SAAS,WACTA,EAAA,MAAM,WAHIA,IAAAA,KAAA,CAAA,CAAA;AAML,MAAMC,IAAiB,CAACC,MAC7B,CAACA,EAAO;AAAA,EACN,CAAC,EAAE,OAAAC,EAAY,MAAA,CAAC,OAAO,OAAOH,CAAgB,EAAE,SAASG,CAAY;AACvE,GAEWC,IAA6B,CACxCC,GACAH,MAEOI,EAA4BD,GAAOH,CAAM,KAAKD,EAAeC,CAAM,GAG/DK,IAAqB,CAChCC,GACAC,GACAC,GACAC,GACAC,GACAC,MACG;AACG,QAAAC,IAAeN,KAAOC,IAAc,KAAKC,GAEzCK,KADY,MAAMP,KAAO,IAElBE,IAAwBC,IAAMG,IAAeF,GACpDI,IAAcD,IAAgBD,KAAgBD,IAAMD,IAEpDK,KAAkBF,IAAgBC,KAAe;AAChD,SAAA;AAAA,IACL,eAAAD;AAAA,IACA,aAAAC;AAAA,IACA,gBAAAC;AAAA,EAAA;AAEJ,GAEaC,IAAkB,CAACC,MAA4B;AACpD,QAAA,EAAE,OAAAP,GAAO,KAAAC,EAAQ,IAAAM;AACvB,SAAOP,MAAU,IAAIC,IAAM,MAAMA,MAAQ,IAAID,IAAQ,MAAM;AAC7D;"}
@@ -1,44 +1,31 @@
1
- import { j as n } from "./sd-component-library190.js";
2
- import g from "./sd-component-library189.js";
3
- import { getSegmentCoordinates as I } from "./sd-component-library226.js";
4
- const w = ({
5
- segment: e,
6
- size: o,
7
- segmentWidth: s,
8
- outlineWidth: c,
9
- isMatching: a
10
- }) => {
11
- const { color: d } = e, t = o / 2, $ = t - s, {
12
- startX: l,
13
- startY: m,
14
- arc: i,
15
- startInnerY: p,
16
- startInnerX: h,
17
- endInnerY: u,
18
- endInnerX: x,
19
- endX: f,
20
- endY: j
21
- } = I(e, t, s), r = o / 2;
22
- return /* @__PURE__ */ n.jsxs("g", { children: [
23
- /* @__PURE__ */ n.jsx(
24
- "path",
1
+ import { j as a } from "./sd-component-library190.js";
2
+ import R, { createElement as g } from "react";
3
+ import { isValueInRange as f } from "./sd-component-library86.js";
4
+ import { SmileyMeterRange as d } from "./sd-component-library294.js";
5
+ const j = R.forwardRef(
6
+ (r, m) => {
7
+ const { value: s, ranges: n, distanceFromRanges: c } = r, o = n.findIndex(
8
+ ({ start: e, end: t, bounds: l }) => f(s, e, t, l)
9
+ ), i = n.map((e, t) => ({
10
+ ...e,
11
+ color: t < o ? n[o].color : e.color
12
+ }));
13
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: i.map((e, t) => /* @__PURE__ */ g(
14
+ d,
25
15
  {
26
- d: `M${r},${r} L${l},${m} A${t},${t} 0 ${i > 180 ? "1" : "0"},1 ${f},${j}Z`,
27
- fill: a ? d : g.colors.cl_lightGrey,
28
- strokeWidth: c,
29
- stroke: "white"
16
+ ...e,
17
+ ...r,
18
+ idx: t,
19
+ totalRanges: n.length,
20
+ pointerLength: c,
21
+ key: `${e.start}-${e.end}-${t}`,
22
+ isMatchedRange: o === t,
23
+ ref: m
30
24
  }
31
- ),
32
- /* @__PURE__ */ n.jsx(
33
- "path",
34
- {
35
- d: `M${r},${r} L${h},${p} A${$},${$} 0 ${i > 180 ? "1" : "0"},1 ${x},${u}Z`,
36
- fill: "white"
37
- }
38
- )
39
- ] });
40
- };
25
+ )) });
26
+ }
27
+ );
41
28
  export {
42
- w as CompactDonutGaugeSegment
29
+ j as SmileyMeterRanges
43
30
  };
44
31
  //# sourceMappingURL=sd-component-library227.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library227.js","sources":["../src/components/meters/compact-donut-gauge/partials/compact-donut-gauge-segment/compact-donut-gauge-segment.tsx"],"sourcesContent":["import React from \"react\";\n\nimport theme from \"../../../../../core/theme\";\nimport { getSegmentCoordinates } from \"../../../donut-diagram/utils\";\nimport { CompactDonutGaugeSegmentProps as Props } from \"./interfaces\";\n\nexport const CompactDonutGaugeSegment: React.FC<Props> = ({\n segment,\n size: diameter,\n segmentWidth,\n outlineWidth,\n isMatching,\n}) => {\n const { color } = segment;\n\n const radius = diameter / 2;\n const innerRadius = radius - segmentWidth;\n\n const {\n startX,\n startY,\n arc,\n startInnerY,\n startInnerX,\n endInnerY,\n endInnerX,\n endX,\n endY,\n } = getSegmentCoordinates(segment, radius, segmentWidth);\n\n const center = diameter / 2;\n\n return (\n <g>\n {/* colored sector */}\n <path\n d={`M${center},${center} L${startX},${startY} A${radius},${radius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endX},${endY}Z`}\n fill={isMatching ? color : theme.colors[\"cl_lightGrey\"]}\n strokeWidth={outlineWidth}\n stroke=\"white\"\n />\n\n {/* white inner sector */}\n <path\n d={`M${center},${center} L${startInnerX},${startInnerY} A${innerRadius},${innerRadius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${endInnerX},${endInnerY}Z`}\n fill=\"white\"\n />\n </g>\n );\n};\n"],"names":["CompactDonutGaugeSegment","segment","diameter","segmentWidth","outlineWidth","isMatching","color","radius","innerRadius","startX","startY","arc","startInnerY","startInnerX","endInnerY","endInnerX","endX","endY","getSegmentCoordinates","center","jsx","theme"],"mappings":";;;AAMO,MAAMA,IAA4C,CAAC;AAAA,EACxD,SAAAC;AAAA,EACA,MAAMC;AAAA,EACN,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,YAAAC;AACF,MAAM;AACE,QAAA,EAAE,OAAAC,EAAU,IAAAL,GAEZM,IAASL,IAAW,GACpBM,IAAcD,IAASJ,GAEvB;AAAA,IACJ,QAAAM;AAAA,IACA,QAAAC;AAAA,IACA,KAAAC;AAAA,IACA,aAAAC;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,EACE,IAAAC,EAAsBjB,GAASM,GAAQJ,CAAY,GAEjDgB,IAASjB,IAAW;AAE1B,gCACG,KAEC,EAAA,UAAA;AAAA,IAAAkB,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAID,CAAM,IAAIA,CAAM,KAAKV,CAAM,IAAIC,CAAM,KAAKH,CAAM,IAAIA,CAAM,MAC/DI,IAAM,MAAM,MAAM,GACpB,MAAMK,CAAI,IAAIC,CAAI;AAAA,QAClB,MAAMZ,IAAaC,IAAQe,EAAM,OAAO;AAAA,QACxC,aAAajB;AAAA,QACb,QAAO;AAAA,MAAA;AAAA,IACT;AAAA,IAGAgB,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAID,CAAM,IAAIA,CAAM,KAAKN,CAAW,IAAID,CAAW,KAAKJ,CAAW,IAAIA,CAAW,MACnFG,IAAM,MAAM,MAAM,GACpB,MAAMI,CAAS,IAAID,CAAS;AAAA,QAC5B,MAAK;AAAA,MAAA;AAAA,IACP;AAAA,EACF,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"sd-component-library227.js","sources":["../src/components/meters/smiley-meter-v2/partials/smiley-meter-ranges/smiley-meter-ranges.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { isValueInRange } from \"../../../outline-meter/utils\";\nimport { SmileyMeterRange } from \"../smiley-meter-range\";\nimport { SmileyMeterRangesProps as Props } from \"./interfaces\";\n\nexport const SmileyMeterRanges = React.forwardRef<SVGCircleElement, Props>(\n (props, pointRef) => {\n const { value, ranges, distanceFromRanges } = props;\n\n const matchingRangeIndex = ranges.findIndex(({ start, end, bounds }) =>\n isValueInRange(value, start, end, bounds)\n );\n const newRanges = ranges.map((range, idx) => ({\n ...range,\n color:\n idx < matchingRangeIndex\n ? ranges[matchingRangeIndex].color\n : range.color,\n }));\n\n return (\n <>\n {newRanges.map((range, idx) => (\n <SmileyMeterRange\n {...range}\n {...props}\n idx={idx}\n totalRanges={ranges.length}\n pointerLength={distanceFromRanges}\n key={`${range.start}-${range.end}-${idx}`}\n isMatchedRange={matchingRangeIndex === idx}\n ref={pointRef}\n />\n ))}\n </>\n );\n }\n);\n"],"names":["SmileyMeterRanges","React","props","pointRef","value","ranges","distanceFromRanges","matchingRangeIndex","start","end","bounds","isValueInRange","newRanges","range","idx","jsx","Fragment","createElement","SmileyMeterRange"],"mappings":";;;;AAMO,MAAMA,IAAoBC,EAAM;AAAA,EACrC,CAACC,GAAOC,MAAa;AACnB,UAAM,EAAE,OAAAC,GAAO,QAAAC,GAAQ,oBAAAC,EAAA,IAAuBJ,GAExCK,IAAqBF,EAAO;AAAA,MAAU,CAAC,EAAE,OAAAG,GAAO,KAAAC,GAAK,QAAAC,QACzDC,EAAeP,GAAOI,GAAOC,GAAKC,CAAM;AAAA,IAAA,GAEpCE,IAAYP,EAAO,IAAI,CAACQ,GAAOC,OAAS;AAAA,MAC5C,GAAGD;AAAA,MACH,OACEC,IAAMP,IACFF,EAAOE,CAAkB,EAAE,QAC3BM,EAAM;AAAA,IACZ,EAAA;AAEF,WAEKE,gBAAAA,EAAA,IAAAC,EAAA,UAAA,EAAA,UAAAJ,EAAU,IAAI,CAACC,GAAOC,MACrB,gBAAAG;AAAA,MAACC;AAAA,MAAA;AAAA,QACE,GAAGL;AAAA,QACH,GAAGX;AAAA,QACJ,KAAAY;AAAA,QACA,aAAaT,EAAO;AAAA,QACpB,eAAeC;AAAA,QACf,KAAK,GAAGO,EAAM,KAAK,IAAIA,EAAM,GAAG,IAAIC,CAAG;AAAA,QACvC,gBAAgBP,MAAuBO;AAAA,QACvC,KAAKX;AAAA,MAAA;AAAA,IAER,CAAA,EACH,CAAA;AAAA,EAEJ;AACF;"}
@@ -1,30 +1,36 @@
1
- import { j as t } from "./sd-component-library190.js";
2
- import { FlexCenter as s } from "./sd-component-library35.js";
3
- import { ResponsiveTextV2 as i } from "./sd-component-library144.js";
4
- const l = ({
5
- segment: { start: n, end: r, color: e },
6
- size: o
7
- }) => /* @__PURE__ */ t.jsx("foreignObject", { x: 0, y: 0, width: o, height: o, children: /* @__PURE__ */ t.jsx(s, { height: "100%", children: /* @__PURE__ */ t.jsxs(
8
- i,
9
- {
10
- fontSizeWeight: [20, "bold"],
11
- color: e,
12
- sx: { position: "relative" },
13
- children: [
14
- Math.round((r - n) * 100),
15
- /* @__PURE__ */ t.jsx(
16
- i,
17
- {
18
- fontSizeWeight: [10, "bold"],
19
- color: e,
20
- sx: { position: "absolute", top: "4px", left: "100%" },
21
- children: "%"
22
- }
23
- )
24
- ]
25
- }
26
- ) }) });
1
+ import { j as h } from "./sd-component-library190.js";
2
+ import { getRangeProperties as p } from "./sd-component-library226.js";
3
+ import { MatchedRangeLabelBox as u } from "./sd-component-library295.js";
4
+ const b = (e) => {
5
+ const {
6
+ range: a,
7
+ arc: n,
8
+ totalRanges: o,
9
+ distanceBetweenRanges: r,
10
+ idx: s,
11
+ diameter: d,
12
+ segmented: c,
13
+ counterClockWise: i
14
+ } = e, { start: g, end: l } = a, m = d / 2, { rangeArcMiddle: x } = p(
15
+ n,
16
+ o,
17
+ r,
18
+ s,
19
+ g,
20
+ l
21
+ ), t = Math.round(x);
22
+ return /* @__PURE__ */ h.jsx(
23
+ u,
24
+ {
25
+ ...e,
26
+ ...a,
27
+ alpha: i ? 360 - t : t,
28
+ radius: m,
29
+ round: c
30
+ }
31
+ );
32
+ };
27
33
  export {
28
- l as CompactDonutGaugeValueIndicator
34
+ b as MatchedRangeLabelBox
29
35
  };
30
36
  //# sourceMappingURL=sd-component-library228.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library228.js","sources":["../src/components/meters/compact-donut-gauge/partials/compact-donut-gauge-value-indicator/compact-donut-gauge-value-indicator.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Flex } from \"rebass\";\n\nimport { FlexCenter } from \"../../../../containers\";\nimport { ResponsiveTextV2 } from \"../../../../texts\";\nimport { CompactDonutGaugeValueIndicatorProps as Props } from \"./interfaces\";\n\nexport const CompactDonutGaugeValueIndicator: React.FC<Props> = ({\n segment: { start, end, color },\n size,\n}) => {\n return (\n <foreignObject x={0} y={0} width={size} height={size}>\n <FlexCenter height=\"100%\">\n <ResponsiveTextV2\n fontSizeWeight={[20, \"bold\"]}\n color={color}\n sx={{ position: \"relative\" }}\n >\n {Math.round((end - start) * 100)}\n\n <ResponsiveTextV2\n fontSizeWeight={[10, \"bold\"]}\n color={color}\n sx={{ position: \"absolute\", top: \"4px\", left: \"100%\" }}\n >\n %\n </ResponsiveTextV2>\n </ResponsiveTextV2>\n </FlexCenter>\n </foreignObject>\n );\n};\n"],"names":["CompactDonutGaugeValueIndicator","start","end","color","size","jsx","FlexCenter","jsxs","ResponsiveTextV2"],"mappings":";;;AAQO,MAAMA,IAAmD,CAAC;AAAA,EAC/D,SAAS,EAAE,OAAAC,GAAO,KAAAC,GAAK,OAAAC,EAAM;AAAA,EAC7B,MAAAC;AACF,MAEKC,gBAAAA,EAAAA,IAAA,iBAAA,EAAc,GAAG,GAAG,GAAG,GAAG,OAAOD,GAAM,QAAQA,GAC9C,UAACC,gBAAAA,MAAAC,GAAA,EAAW,QAAO,QACjB,UAAAC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,gBAAgB,CAAC,IAAI,MAAM;AAAA,IAC3B,OAAAL;AAAA,IACA,IAAI,EAAE,UAAU,WAAW;AAAA,IAE1B,UAAA;AAAA,MAAK,KAAA,OAAOD,IAAMD,KAAS,GAAG;AAAA,MAE/BI,gBAAAA,EAAA;AAAA,QAACG;AAAA,QAAA;AAAA,UACC,gBAAgB,CAAC,IAAI,MAAM;AAAA,UAC3B,OAAAL;AAAA,UACA,IAAI,EAAE,UAAU,YAAY,KAAK,OAAO,MAAM,OAAO;AAAA,UACtD,UAAA;AAAA,QAAA;AAAA,MAED;AAAA,IAAA;AAAA,EAAA;AAAA,EAEJ,CAAA,EACF,CAAA;"}
1
+ {"version":3,"file":"sd-component-library228.js","sources":["../src/components/meters/smiley-meter-v2/partials/matched-range-label-box/matched-range-label-box.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { MatchedRangeLabelBox as LabelBox } from \"../../../common-outline-meter-partials\";\nimport { getRangeProperties } from \"../../utils\";\nimport { MatchedRangeBoxProps as Props } from \"./interfaces\";\n\nexport const MatchedRangeLabelBox: React.FC<Props> = (props) => {\n const {\n range,\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx,\n diameter,\n segmented,\n counterClockWise,\n } = props;\n const { start, end } = range;\n\n const radius = diameter / 2;\n const { rangeArcMiddle: alpha } = getRangeProperties(\n arc,\n totalRanges,\n distanceBetweenRanges,\n idx,\n start,\n end\n );\n\n const roundedAlpha = Math.round(alpha);\n\n return (\n <LabelBox\n {...props}\n {...range}\n alpha={counterClockWise ? 360 - roundedAlpha : roundedAlpha}\n radius={radius}\n round={segmented}\n />\n );\n};\n"],"names":["MatchedRangeLabelBox","props","range","arc","totalRanges","distanceBetweenRanges","idx","diameter","segmented","counterClockWise","start","end","radius","alpha","getRangeProperties","roundedAlpha","jsx","LabelBox"],"mappings":";;;AAMa,MAAAA,IAAwC,CAACC,MAAU;AACxD,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,KAAAC;AAAA,IACA,aAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,KAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,kBAAAC;AAAA,EACE,IAAAR,GACE,EAAE,OAAAS,GAAO,KAAAC,EAAQ,IAAAT,GAEjBU,IAASL,IAAW,GACpB,EAAE,gBAAgBM,EAAA,IAAUC;AAAA,IAChCX;AAAA,IACAC;AAAA,IACAC;AAAA,IACAC;AAAA,IACAI;AAAA,IACAC;AAAA,EAAA,GAGII,IAAe,KAAK,MAAMF,CAAK;AAGnC,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAAA,IAAA;AAAA,MACE,GAAGhB;AAAA,MACH,GAAGC;AAAA,MACJ,OAAOO,IAAmB,MAAMM,IAAeA;AAAA,MAC/C,QAAAH;AAAA,MACA,OAAOJ;AAAA,IAAA;AAAA,EAAA;AAGb;"}
@@ -1,78 +1,6 @@
1
- import { j as n } from "./sd-component-library190.js";
2
- import { useHover as Z } from "./sd-component-library3.js";
3
- import { getCoordinateForArc as l } from "./sd-component-library86.js";
4
- import { getSegmentCoordinates as O } from "./sd-component-library226.js";
5
- import { SegmentLabel as q } from "./sd-component-library316.js";
6
- const h = 300, G = ({
7
- segment: o,
8
- segmentWidth: $,
9
- outlineWidth: f,
10
- size: i,
11
- mobile: a,
12
- ...c
13
- }) => {
14
- const { start: p, end: x, color: u } = o, { labelOffset: j } = c, t = i / 2, d = t - $, {
15
- startInnerX: k,
16
- startInnerY: A,
17
- endInnerX: M,
18
- endInnerY: X,
19
- endX: Y,
20
- endY: v,
21
- startY: S,
22
- startX: g,
23
- arc: e
24
- } = O(o, t, $), r = i / 2, H = Math.round(p * 360), I = Math.round(x * 360), { isHover: L, hoverCallbacks: w } = Z(), m = L && !a, s = Math.sqrt(2) * (t + j), { x: y, y: C } = l(
25
- s,
26
- H,
27
- t
28
- ), { x: E, y: R } = l(
29
- s,
30
- I,
31
- t
32
- );
33
- return /* @__PURE__ */ n.jsxs("g", { ...a ? {} : w, children: [
34
- /* @__PURE__ */ n.jsx(
35
- "path",
36
- {
37
- d: `M${r},${r} L${y},${C} A${s},${s} 0 ${e > 180 ? "1" : "0"},1 ${E},${R}Z`,
38
- fill: "transparent"
39
- }
40
- ),
41
- /* @__PURE__ */ n.jsx(
42
- "path",
43
- {
44
- d: `M${r},${r} L${g},${S} A${t},${t} 0 ${e > 180 ? "1" : "0"},1 ${Y},${v}Z`,
45
- fill: u,
46
- strokeWidth: f,
47
- stroke: "white"
48
- }
49
- ),
50
- /* @__PURE__ */ n.jsx(
51
- "path",
52
- {
53
- d: `M${r},${r} L${k},${A} A${d},${d} 0 ${e > 180 ? "1" : "0"},1 ${M},${X}Z`,
54
- fill: "white",
55
- style: {
56
- transform: `scale(${m ? 0.8 : 1}`,
57
- transformOrigin: "center",
58
- transition: `all ${h}ms`
59
- }
60
- }
61
- ),
62
- /* @__PURE__ */ n.jsx(
63
- q,
64
- {
65
- segment: o,
66
- radius: t,
67
- animationDuration: h,
68
- isHover: m,
69
- mobile: a,
70
- ...c
71
- }
72
- )
73
- ] });
74
- };
1
+ import * as e from "react";
2
+ const t = (a) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16.04 33.79", ...a }, /* @__PURE__ */ e.createElement("g", null, /* @__PURE__ */ e.createElement("g", null, /* @__PURE__ */ e.createElement("path", { className: "first-half", d: "M8,0V6.37H8A3.19,3.19,0,0,1,8,0ZM1,8.24a4,4,0,0,0-1,2.7V19.5a1.64,1.64,0,0,0,.45,1.28v0a1.49,1.49,0,0,0,2.12,0A1.64,1.64,0,0,0,3,19.5V12.11h.7L3.67,31.64c0,.07,0,.14,0,.21a1.92,1.92,0,0,0,1.91,1.93h.12a2,2,0,0,0,1.88-2.12V21.75H8V7H3.72A3.57,3.57,0,0,0,1,8.24Z" }), /* @__PURE__ */ e.createElement("path", { className: "second-half", d: "M8,6.38H8V0H8A3.19,3.19,0,0,1,8,6.38Zm7.07,1.86A3.59,3.59,0,0,0,12.32,7H8V21.75h.41v9.93a1.36,1.36,0,0,0,0,.35,1.95,1.95,0,1,0,3.88-.39V12.1h.63v7.4a1.68,1.68,0,0,0,.46,1.29,1.58,1.58,0,0,0,2.18,0A1.69,1.69,0,0,0,16,19.5V10.94A4.09,4.09,0,0,0,15.07,8.24Z" }))));
75
3
  export {
76
- G as Segment
4
+ t as ReactComponent
77
5
  };
78
6
  //# sourceMappingURL=sd-component-library229.js.map