@selfdecode/sd-component-library 4.0.78 → 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 (396) 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/autocomplete-input/interfaces.d.ts +1 -1
  40. package/lib/components/inputs/client-portal-input/client-portal-input.stories.d.ts +8 -0
  41. package/lib/components/inputs/date-inputs/outlined-date-input/outlined-date-input.stories.d.ts +7 -0
  42. package/lib/components/inputs/date-inputs/outlined-date-range-input/outlined-date-range-input.stories.d.ts +8 -0
  43. package/lib/components/inputs/date-inputs/primary-date-input/primary-date-input.stories.d.ts +9 -0
  44. package/lib/components/inputs/date-inputs/primary-date-range-input/primary-date-range-input.stories.d.ts +7 -0
  45. package/lib/components/inputs/decody-question-input/decody-question-input.stories.d.ts +6 -0
  46. package/lib/components/inputs/input/interfaces.d.ts +1 -14
  47. package/lib/components/inputs/multi-row-secondary-text-input/multi-row-secondary-text-input.stories.d.ts +7 -0
  48. package/lib/components/inputs/primary-number-input/primary-number-input.stories.d.ts +6 -0
  49. package/lib/components/inputs/primary-text-input/interfaces.d.ts +1 -1
  50. package/lib/components/inputs/primary-text-input/primary-number-input.stories.d.ts +7 -0
  51. package/lib/components/inputs/search-autocomplete-input/search-autocomplete-input.stories.d.ts +7 -0
  52. package/lib/components/inputs/search-input/search-input.stories.d.ts +6 -0
  53. package/lib/components/inputs/search-input-v2/search-input-v2.stories.d.ts +6 -0
  54. package/lib/components/inputs/secondary-number-input/secondary-number-input.stories.d.ts +10 -0
  55. package/lib/components/inputs/secondary-text-input/interfaces.d.ts +1 -1
  56. package/lib/components/inputs/secondary-text-input/secondary-text-input.stories.d.ts +8 -0
  57. package/lib/components/inputs/text-input/interfaces.d.ts +1 -6
  58. package/lib/components/links/primary-link/primary-link.stories.d.ts +7 -0
  59. package/lib/components/lists/primary-list/primary-list.stories.d.ts +6 -0
  60. package/lib/components/menus/actions-menu/actions-menu.stories.d.ts +6 -0
  61. package/lib/components/meters/bars-meter/bars-meter.stories.d.ts +8 -0
  62. package/lib/components/meters/compact-donut-gauge/compact-donut-gauge.stories.d.ts +7 -0
  63. package/lib/components/meters/dashed-meter/dashed-meter.stories.d.ts +7 -0
  64. package/lib/components/meters/donut-diagram/donut-diagram.stories.d.ts +9 -0
  65. package/lib/components/meters/gradient-outline-meter/gradient-outline-meter.stories.d.ts +9 -0
  66. package/lib/components/meters/gradient-outline-meter/small-gradient-outline-meter.stories.d.ts +9 -0
  67. package/lib/components/meters/linear-discrete-gauge-meter/linear-discrete-gauge-meter.stories.d.ts +6 -0
  68. package/lib/components/meters/linear-numeric-gauge-meter/linear-numeric-gauge-meter.stories.d.ts +6 -0
  69. package/lib/components/meters/multi-option-discrete-outline-meter/multi-option-discrete-outline-meter.stories.d.ts +6 -0
  70. package/lib/components/meters/multi-option-discrete-outline-meter/small-multi-option-discrete-outline-meter.stories.d.ts +6 -0
  71. package/lib/components/meters/outline-meter/outline-meter.stories.d.ts +9 -0
  72. package/lib/components/meters/outline-meter/small-outline-meter.stories.d.ts +9 -0
  73. package/lib/components/meters/people-meter/people-meter.stories.d.ts +6 -0
  74. package/lib/components/meters/smiley-meter-v2/small-smiley-meter-v2.stories.d.ts +7 -0
  75. package/lib/components/meters/smiley-meter-v2/smiley-meter-v2.stories.d.ts +7 -0
  76. package/lib/components/modals/primary-modal/primary-modal.stories.d.ts +8 -0
  77. package/lib/components/page-selectors/page-selector/page-selector.stories.d.ts +6 -0
  78. package/lib/components/pagination-bars/pagination-bar/pagination-bar.stories.d.ts +6 -0
  79. package/lib/components/pagination-bars/pagination-bar-mobile/pagination-bar-mobile.stories.d.ts +7 -0
  80. package/lib/components/progress-bars/line-progress-bar/line-progress-bar.stories.d.ts +6 -0
  81. package/lib/components/progress-bars/rounded-progress-bar/rounded-progress-bar.stories.d.ts +6 -0
  82. package/lib/components/progress-bars/striped-line-progress-bar/striped-line-progress-bar.stories.d.ts +6 -0
  83. package/lib/components/progress-steps/progress-steps.stories.d.ts +7 -0
  84. package/lib/components/selectors/combined-secondary-custom-selector/combined-secondary-custom-selector.stories.d.ts +7 -0
  85. package/lib/components/selectors/combined-secondary-selector-v2/combined-secondary-selector-v2.stories.d.ts +7 -0
  86. package/lib/components/selectors/compact-primary-selector/compact-primary-selector.stories.d.ts +6 -0
  87. package/lib/components/selectors/custom-scrollable-selector/custom-scrollable-selector.stories.d.ts +7 -0
  88. package/lib/components/selectors/custom-selector/custom-selector.stories.d.ts +7 -0
  89. package/lib/components/selectors/primary-custom-scrollable-selector/primary-custom-scrollable-selector.stories.d.ts +8 -0
  90. package/lib/components/selectors/primary-selector/primary-selector.stories.d.ts +7 -0
  91. package/lib/components/selectors/primary-selector-v2/primary-selector-v2.stories.d.ts +7 -0
  92. package/lib/components/selectors/secondary-custom-selector/secondary-custom-selector.stories.d.ts +7 -0
  93. package/lib/components/selectors/secondary-selector/interfaces.d.ts +1 -1
  94. package/lib/components/selectors/secondary-selector/secondary-selector.stories.d.ts +9 -0
  95. package/lib/components/selectors/secondary-selector-v2/secondary-selector-v2.stories.d.ts +7 -0
  96. package/lib/components/selectors/selector/interfaces.d.ts +2 -1
  97. package/lib/components/selectors/selector/selector.stories.d.ts +6 -0
  98. package/lib/components/selectors/selector-v2/selector-v2.stories.d.ts +10 -0
  99. package/lib/components/selectors/tertiary-custom-selector/tertiary-custom-selector.stories.d.ts +7 -0
  100. package/lib/components/selectors/tertiary-selector/interfaces.d.ts +1 -1
  101. package/lib/components/selectors/tertiary-selector/tertiary-selector.stories.d.ts +8 -0
  102. package/lib/components/selectors/tertiary-selector-v2/tertiary-selector-v2.stories.d.ts +7 -0
  103. package/lib/components/selectors/updated-secondary-selector-v2/updated-secondary-selector-v2.stories.d.ts +7 -0
  104. package/lib/components/switches/carousel-switch/carousel-switch.stories.d.ts +7 -0
  105. package/lib/components/switches/text-switch/text-switch.stories.d.ts +7 -0
  106. package/lib/components/switches/toggle-switch/toggle-switch.stories.d.ts +6 -0
  107. package/lib/components/tabs/tab-bar/partials/tab/tab.d.ts +0 -1
  108. package/lib/components/tabs/tab-bar/tab-bar.d.ts +0 -1
  109. package/lib/components/tabs/tab-bar/tab-bar.stories.d.ts +17 -0
  110. package/lib/components/tabs/tab-bar-v2/tab-bar-v2.stories.d.ts +9 -0
  111. package/lib/components/tabs/tabbed-view-v2/tab-bar-v2.stories.d.ts +7 -0
  112. package/lib/components/tabs/tabs-menu/tabs-menu.d.ts +0 -1
  113. package/lib/components/tabs/tabs-menu/tabs-menu.stories.d.ts +29 -0
  114. package/lib/components/texts/base-text-v2/base-text-v2.stories.d.ts +6 -0
  115. package/lib/components/texts/eighteen-bold/eighteen-bold.stories.d.ts +6 -0
  116. package/lib/components/texts/eighteen-regular/eighteen-regular.stories.d.ts +6 -0
  117. package/lib/components/texts/fifty-five-sb/fifty-five-sb.stories.d.ts +6 -0
  118. package/lib/components/texts/fourteen-regular/fourteen-regular.stories.d.ts +6 -0
  119. package/lib/components/texts/fourteen-sb/fourteen-sb.stories.d.ts +6 -0
  120. package/lib/components/texts/fourty-bold/fourty-bold.stories.d.ts +6 -0
  121. package/lib/components/texts/no-translate/no-translate.stories.d.ts +6 -0
  122. package/lib/components/texts/responsive-text/responsive-text.stories.d.ts +6 -0
  123. package/lib/components/texts/responsive-text-v2/responsive-text-v2.stories.d.ts +6 -0
  124. package/lib/components/texts/sixteen-regular/sixteen-regular.stories.d.ts +6 -0
  125. package/lib/components/texts/sixteen-sb/sixteen-sb.stories.d.ts +6 -0
  126. package/lib/components/texts/ten-sb/ten-sb.stories.d.ts +6 -0
  127. package/lib/components/texts/thirteen-bold/thirteen-bold.stories.d.ts +6 -0
  128. package/lib/components/texts/thirteen-regular/thirteen-regular.stories.d.ts +6 -0
  129. package/lib/components/texts/thirteen-sb/thirteen-sb.stories.d.ts +6 -0
  130. package/lib/components/texts/thirty-two-bold/thirty-two-bold.stories.d.ts +6 -0
  131. package/lib/components/texts/thirty-two-regular/thirty-two-regular.stories.d.ts +6 -0
  132. package/lib/components/texts/twelve-regular/twelve-regular.stories.d.ts +6 -0
  133. package/lib/components/texts/twelve-sb/twelve-regular.stories.d.ts +6 -0
  134. package/lib/components/texts/twenty-four-bold/twenty-four-bold.stories.d.ts +6 -0
  135. package/lib/components/texts/twenty-four-regular/twenty-four-regular.stories.d.ts +6 -0
  136. package/lib/components/tooltips/actions-tooltip/actions-tooltip.stories.d.ts +6 -0
  137. package/lib/components/tooltips/primary-info-tooltip/primary-info-tooltip.stories.d.ts +6 -0
  138. package/lib/components/tooltips/react-element-tooltip/react-element-tooltip.stories.d.ts +6 -0
  139. package/lib/components/tooltips/tooltip-with-pointer/tooltip-with-pointer.stories.d.ts +8 -0
  140. package/lib/sd-component-library101.js +4 -4
  141. package/lib/sd-component-library106.js +1 -1
  142. package/lib/sd-component-library107.js +37 -38
  143. package/lib/sd-component-library107.js.map +1 -1
  144. package/lib/sd-component-library108.js +7 -8
  145. package/lib/sd-component-library108.js.map +1 -1
  146. package/lib/sd-component-library112.js +1 -1
  147. package/lib/sd-component-library113.js +1 -1
  148. package/lib/sd-component-library115.js +1 -1
  149. package/lib/sd-component-library116.js +1 -1
  150. package/lib/sd-component-library121.js +1 -1
  151. package/lib/sd-component-library122.js +1 -1
  152. package/lib/sd-component-library124.js +1 -1
  153. package/lib/sd-component-library127.js +3 -3
  154. package/lib/sd-component-library128.js +1 -1
  155. package/lib/sd-component-library130.js +2 -2
  156. package/lib/sd-component-library161.js +1 -1
  157. package/lib/sd-component-library162.js +1 -1
  158. package/lib/sd-component-library165.js +1 -1
  159. package/lib/sd-component-library166.js +4 -4
  160. package/lib/sd-component-library167.js +1 -1
  161. package/lib/sd-component-library190.js +3 -3
  162. package/lib/sd-component-library193.js +2 -60
  163. package/lib/sd-component-library193.js.map +1 -1
  164. package/lib/sd-component-library194.js +30 -3
  165. package/lib/sd-component-library194.js.map +1 -1
  166. package/lib/sd-component-library195.js +599 -2
  167. package/lib/sd-component-library195.js.map +1 -1
  168. package/lib/sd-component-library196.js +60 -30
  169. package/lib/sd-component-library196.js.map +1 -1
  170. package/lib/sd-component-library197.js +3 -599
  171. package/lib/sd-component-library197.js.map +1 -1
  172. package/lib/sd-component-library203.js +65 -18
  173. package/lib/sd-component-library203.js.map +1 -1
  174. package/lib/sd-component-library204.js +18 -64
  175. package/lib/sd-component-library204.js.map +1 -1
  176. package/lib/sd-component-library210.js +1 -1
  177. package/lib/sd-component-library211.js +128 -13
  178. package/lib/sd-component-library211.js.map +1 -1
  179. package/lib/sd-component-library212.js +13 -3
  180. package/lib/sd-component-library212.js.map +1 -1
  181. package/lib/sd-component-library213.js +14 -3
  182. package/lib/sd-component-library213.js.map +1 -1
  183. package/lib/sd-component-library214.js +3 -129
  184. package/lib/sd-component-library214.js.map +1 -1
  185. package/lib/sd-component-library215.js +3 -13
  186. package/lib/sd-component-library215.js.map +1 -1
  187. package/lib/sd-component-library216.js +3 -65
  188. package/lib/sd-component-library216.js.map +1 -1
  189. package/lib/sd-component-library217.js +52 -3
  190. package/lib/sd-component-library217.js.map +1 -1
  191. package/lib/sd-component-library218.js +65 -3
  192. package/lib/sd-component-library218.js.map +1 -1
  193. package/lib/sd-component-library219.js +3 -52
  194. package/lib/sd-component-library219.js.map +1 -1
  195. package/lib/sd-component-library222.js +26 -3
  196. package/lib/sd-component-library222.js.map +1 -1
  197. package/lib/sd-component-library223.js +3 -31
  198. package/lib/sd-component-library223.js.map +1 -1
  199. package/lib/sd-component-library224.js +31 -19
  200. package/lib/sd-component-library224.js.map +1 -1
  201. package/lib/sd-component-library225.js +19 -20
  202. package/lib/sd-component-library225.js.map +1 -1
  203. package/lib/sd-component-library226.js +20 -28
  204. package/lib/sd-component-library226.js.map +1 -1
  205. package/lib/sd-component-library227.js +27 -32
  206. package/lib/sd-component-library227.js.map +1 -1
  207. package/lib/sd-component-library228.js +33 -3
  208. package/lib/sd-component-library228.js.map +1 -1
  209. package/lib/sd-component-library229.js +3 -129
  210. package/lib/sd-component-library229.js.map +1 -1
  211. package/lib/sd-component-library230.js +129 -43
  212. package/lib/sd-component-library230.js.map +1 -1
  213. package/lib/sd-component-library231.js +41 -45
  214. package/lib/sd-component-library231.js.map +1 -1
  215. package/lib/sd-component-library232.js +46 -7
  216. package/lib/sd-component-library232.js.map +1 -1
  217. package/lib/sd-component-library233.js +8 -64
  218. package/lib/sd-component-library233.js.map +1 -1
  219. package/lib/sd-component-library234.js +62 -41
  220. package/lib/sd-component-library234.js.map +1 -1
  221. package/lib/sd-component-library235.js +43 -13
  222. package/lib/sd-component-library235.js.map +1 -1
  223. package/lib/sd-component-library236.js +13 -21
  224. package/lib/sd-component-library236.js.map +1 -1
  225. package/lib/sd-component-library237.js +2 -109
  226. package/lib/sd-component-library237.js.map +1 -1
  227. package/lib/sd-component-library238.js +2 -47
  228. package/lib/sd-component-library238.js.map +1 -1
  229. package/lib/sd-component-library239.js +21 -24
  230. package/lib/sd-component-library239.js.map +1 -1
  231. package/lib/sd-component-library240.js +103 -47
  232. package/lib/sd-component-library240.js.map +1 -1
  233. package/lib/sd-component-library241.js +45 -46
  234. package/lib/sd-component-library241.js.map +1 -1
  235. package/lib/sd-component-library242.js +23 -74
  236. package/lib/sd-component-library242.js.map +1 -1
  237. package/lib/sd-component-library243.js +52 -40
  238. package/lib/sd-component-library243.js.map +1 -1
  239. package/lib/sd-component-library244.js +47 -26
  240. package/lib/sd-component-library244.js.map +1 -1
  241. package/lib/sd-component-library245.js +72 -18
  242. package/lib/sd-component-library245.js.map +1 -1
  243. package/lib/sd-component-library246.js +41 -20
  244. package/lib/sd-component-library246.js.map +1 -1
  245. package/lib/sd-component-library247.js +27 -2
  246. package/lib/sd-component-library247.js.map +1 -1
  247. package/lib/sd-component-library248.js +19 -323
  248. package/lib/sd-component-library248.js.map +1 -1
  249. package/lib/sd-component-library249.js +20 -5
  250. package/lib/sd-component-library249.js.map +1 -1
  251. package/lib/sd-component-library250.js +2 -26
  252. package/lib/sd-component-library250.js.map +1 -1
  253. package/lib/sd-component-library251.js +323 -27
  254. package/lib/sd-component-library251.js.map +1 -1
  255. package/lib/sd-component-library252.js +5 -3
  256. package/lib/sd-component-library252.js.map +1 -1
  257. package/lib/sd-component-library253.js +25 -20
  258. package/lib/sd-component-library253.js.map +1 -1
  259. package/lib/sd-component-library254.js +1 -1
  260. package/lib/sd-component-library254.js.map +1 -1
  261. package/lib/sd-component-library255.js +17 -18
  262. package/lib/sd-component-library255.js.map +1 -1
  263. package/lib/sd-component-library256.js +3 -22
  264. package/lib/sd-component-library256.js.map +1 -1
  265. package/lib/sd-component-library257.js +25 -30
  266. package/lib/sd-component-library257.js.map +1 -1
  267. package/lib/sd-component-library258.js +21 -50
  268. package/lib/sd-component-library258.js.map +1 -1
  269. package/lib/sd-component-library259.js +30 -131
  270. package/lib/sd-component-library259.js.map +1 -1
  271. package/lib/sd-component-library260.js +39 -62
  272. package/lib/sd-component-library260.js.map +1 -1
  273. package/lib/sd-component-library261.js +117 -62
  274. package/lib/sd-component-library261.js.map +1 -1
  275. package/lib/sd-component-library262.js +74 -30
  276. package/lib/sd-component-library262.js.map +1 -1
  277. package/lib/sd-component-library263.js +70 -15
  278. package/lib/sd-component-library263.js.map +1 -1
  279. package/lib/sd-component-library264.js +25 -120
  280. package/lib/sd-component-library264.js.map +1 -1
  281. package/lib/sd-component-library265.js +16 -117
  282. package/lib/sd-component-library265.js.map +1 -1
  283. package/lib/sd-component-library266.js +125 -10
  284. package/lib/sd-component-library266.js.map +1 -1
  285. package/lib/sd-component-library267.js +111 -39
  286. package/lib/sd-component-library267.js.map +1 -1
  287. package/lib/sd-component-library268.js +10 -9
  288. package/lib/sd-component-library268.js.map +1 -1
  289. package/lib/sd-component-library269.js +48 -49
  290. package/lib/sd-component-library269.js.map +1 -1
  291. package/lib/sd-component-library270.js +8 -89
  292. package/lib/sd-component-library270.js.map +1 -1
  293. package/lib/sd-component-library271.js +48 -89
  294. package/lib/sd-component-library271.js.map +1 -1
  295. package/lib/sd-component-library272.js +89 -48
  296. package/lib/sd-component-library272.js.map +1 -1
  297. package/lib/sd-component-library273.js +92 -2
  298. package/lib/sd-component-library273.js.map +1 -1
  299. package/lib/sd-component-library274.js +49 -2
  300. package/lib/sd-component-library274.js.map +1 -1
  301. package/lib/sd-component-library278.js +2 -2
  302. package/lib/sd-component-library279.js +2 -2
  303. package/lib/sd-component-library289.js +3 -3
  304. package/lib/sd-component-library290.js +4 -4
  305. package/lib/sd-component-library291.js +1 -1
  306. package/lib/sd-component-library292.js +58 -2
  307. package/lib/sd-component-library292.js.map +1 -1
  308. package/lib/sd-component-library293.js +25 -76
  309. package/lib/sd-component-library293.js.map +1 -1
  310. package/lib/sd-component-library294.js +50 -92
  311. package/lib/sd-component-library294.js.map +1 -1
  312. package/lib/sd-component-library295.js +90 -50
  313. package/lib/sd-component-library295.js.map +1 -1
  314. package/lib/sd-component-library296.js +25 -9
  315. package/lib/sd-component-library296.js.map +1 -1
  316. package/lib/sd-component-library297.js +35 -5
  317. package/lib/sd-component-library297.js.map +1 -1
  318. package/lib/sd-component-library298.js +5 -53
  319. package/lib/sd-component-library298.js.map +1 -1
  320. package/lib/sd-component-library299.js +4 -2
  321. package/lib/sd-component-library299.js.map +1 -1
  322. package/lib/sd-component-library300.js +9 -2
  323. package/lib/sd-component-library300.js.map +1 -1
  324. package/lib/sd-component-library301.js +4 -8
  325. package/lib/sd-component-library301.js.map +1 -1
  326. package/lib/sd-component-library302.js +4 -5
  327. package/lib/sd-component-library302.js.map +1 -1
  328. package/lib/sd-component-library303.js +19 -4
  329. package/lib/sd-component-library303.js.map +1 -1
  330. package/lib/sd-component-library304.js +3 -19
  331. package/lib/sd-component-library304.js.map +1 -1
  332. package/lib/sd-component-library305.js +34 -3
  333. package/lib/sd-component-library305.js.map +1 -1
  334. package/lib/sd-component-library306.js +2 -6
  335. package/lib/sd-component-library306.js.map +1 -1
  336. package/lib/sd-component-library307.js +75 -56
  337. package/lib/sd-component-library307.js.map +1 -1
  338. package/lib/sd-component-library308.js +91 -24
  339. package/lib/sd-component-library308.js.map +1 -1
  340. package/lib/sd-component-library309.js +52 -50
  341. package/lib/sd-component-library309.js.map +1 -1
  342. package/lib/sd-component-library310.js +9 -93
  343. package/lib/sd-component-library310.js.map +1 -1
  344. package/lib/sd-component-library311.js +5 -35
  345. package/lib/sd-component-library311.js.map +1 -1
  346. package/lib/sd-component-library312.js +52 -24
  347. package/lib/sd-component-library312.js.map +1 -1
  348. package/lib/sd-component-library313.js +28 -4
  349. package/lib/sd-component-library313.js.map +1 -1
  350. package/lib/sd-component-library314.js +21 -4
  351. package/lib/sd-component-library314.js.map +1 -1
  352. package/lib/sd-component-library315.js +6 -34
  353. package/lib/sd-component-library315.js.map +1 -1
  354. package/lib/sd-component-library316.js +89 -28
  355. package/lib/sd-component-library316.js.map +1 -1
  356. package/lib/sd-component-library317.js +32 -21
  357. package/lib/sd-component-library317.js.map +1 -1
  358. package/lib/sd-component-library318.js +2 -90
  359. package/lib/sd-component-library318.js.map +1 -1
  360. package/lib/sd-component-library319.js +2 -32
  361. package/lib/sd-component-library319.js.map +1 -1
  362. package/lib/sd-component-library32.js +1 -1
  363. package/lib/sd-component-library33.js +1 -1
  364. package/lib/sd-component-library49.js +1 -1
  365. package/lib/sd-component-library5.js +1 -1
  366. package/lib/sd-component-library50.js +1 -1
  367. package/lib/sd-component-library55.js +23 -23
  368. package/lib/sd-component-library55.js.map +1 -1
  369. package/lib/sd-component-library6.js +1 -1
  370. package/lib/sd-component-library65.js +28 -28
  371. package/lib/sd-component-library65.js.map +1 -1
  372. package/lib/sd-component-library67.js +3 -3
  373. package/lib/sd-component-library68.js +15 -19
  374. package/lib/sd-component-library68.js.map +1 -1
  375. package/lib/sd-component-library69.js +2 -2
  376. package/lib/sd-component-library70.js +3 -3
  377. package/lib/sd-component-library73.js +16 -15
  378. package/lib/sd-component-library73.js.map +1 -1
  379. package/lib/sd-component-library74.js +1 -1
  380. package/lib/sd-component-library80.js +1 -1
  381. package/lib/sd-component-library81.js +6 -6
  382. package/lib/sd-component-library82.js +2 -2
  383. package/lib/sd-component-library83.js +1 -1
  384. package/lib/sd-component-library84.js +5 -5
  385. package/lib/sd-component-library85.js +1 -1
  386. package/lib/sd-component-library87.js +6 -6
  387. package/lib/sd-component-library88.js +1 -1
  388. package/lib/sd-component-library89.js +7 -7
  389. package/lib/sd-component-library90.js +1 -1
  390. package/lib/sd-component-library93.js +2 -2
  391. package/lib/sd-component-library94.js +3 -3
  392. package/lib/sd-component-library95.js +2 -2
  393. package/lib/sd-component-library96.js +3 -3
  394. package/lib/sd-component-library97.js +2 -2
  395. package/lib/sd-component-library99.js +4 -4
  396. package/package.json +20 -6
@@ -1,24 +1,78 @@
1
- import { j as x } from "./sd-component-library190.js";
2
- import { Box as n } from "rebass";
3
- const $ = ({
4
- idx: o,
5
- color: t,
6
- total: i,
7
- segmentHeight: r
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-library244.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
8
13
  }) => {
9
- const s = `${o === 0 ? r / 2 : 0}px`, a = `${o === i - 1 ? r / 2 : 0}px`;
10
- return /* @__PURE__ */ x.jsx(
11
- n,
12
- {
13
- bg: t,
14
- height: r,
15
- sx: {
16
- borderRadius: `${s} ${[...Array(2)].fill(a).join(" ")} ${s}`
17
- }
18
- }
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
19
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
+ ] });
20
74
  };
21
75
  export {
22
- $ as LinearGaugeSegment
76
+ G as Segment
23
77
  };
24
78
  //# sourceMappingURL=sd-component-library245.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library245.js","sources":["../src/components/meters/linear-gauge-meter-partials/linear-gauge-segment/linear-gauge-segment.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { Box } from \"rebass\";\n\nimport { LinearGaugeSegmentProps as Props } from \"./interfaces\";\n\nexport const LinearGaugeSegment: React.FC<Props> = ({\n idx,\n color,\n total,\n segmentHeight,\n}) => {\n const leftRadius = `${idx === 0 ? segmentHeight / 2 : 0}px`;\n const rightRadius = `${idx === total - 1 ? segmentHeight / 2 : 0}px`;\n\n return (\n <Box\n bg={color}\n height={segmentHeight}\n sx={{\n borderRadius: `${leftRadius} ${[...Array(2)]\n .fill(rightRadius)\n .join(\" \")} ${leftRadius}`,\n }}\n />\n );\n};\n"],"names":["LinearGaugeSegment","idx","color","total","segmentHeight","leftRadius","rightRadius","jsx","Box"],"mappings":";;AAMO,MAAMA,IAAsC,CAAC;AAAA,EAClD,KAAAC;AAAA,EACA,OAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAAC;AACF,MAAM;AACJ,QAAMC,IAAa,GAAGJ,MAAQ,IAAIG,IAAgB,IAAI,CAAC,MACjDE,IAAc,GAAGL,MAAQE,IAAQ,IAAIC,IAAgB,IAAI,CAAC;AAG9D,SAAAG,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,IAAIN;AAAA,MACJ,QAAQE;AAAA,MACR,IAAI;AAAA,QACF,cAAc,GAAGC,CAAU,IAAI,CAAC,GAAG,MAAM,CAAC,CAAC,EACxC,KAAKC,CAAW,EAChB,KAAK,GAAG,CAAC,IAAID,CAAU;AAAA,MAC5B;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"sd-component-library245.js","sources":["../src/components/meters/donut-diagram/partials/segment/segment.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { useHover } from \"../../../../../core/custom-hooks\";\nimport { getCoordinateForArc } from \"../../../outline-meter/utils\";\nimport { getSegmentCoordinates } from \"../../utils\";\nimport { SegmentLabel } from \"../segment-label\";\nimport { SegmentProps as Props } from \"./interfaces\";\n\nconst animationDuration = 300;\n\nexport const Segment: React.FC<Props> = ({\n segment,\n segmentWidth,\n outlineWidth,\n size: diameter,\n mobile,\n ...labelProps\n}) => {\n const { start, end, color } = segment;\n const { labelOffset } = labelProps;\n\n const radius = diameter / 2;\n const innerRadius = radius - segmentWidth;\n\n const {\n startInnerX,\n startInnerY,\n endInnerX,\n endInnerY,\n endX,\n endY,\n startY,\n startX,\n arc,\n } = getSegmentCoordinates(segment, radius, segmentWidth);\n\n const center = diameter / 2;\n\n const startAlpha = Math.round(start * 360);\n const endAlpha = Math.round(end * 360);\n\n const { isHover, hoverCallbacks } = useHover();\n const showHover = isHover && !mobile;\n\n const maxRadius = Math.sqrt(2) * (radius + labelOffset);\n\n const { x: maskStartX, y: maskStartY } = getCoordinateForArc(\n maxRadius,\n startAlpha,\n radius\n );\n\n const { x: maskEndX, y: maskEndY } = getCoordinateForArc(\n maxRadius,\n endAlpha,\n radius\n );\n\n return (\n <g {...(mobile ? {} : hoverCallbacks)}>\n {/* mask */}\n <path\n d={`M${center},${center} L${maskStartX},${maskStartY} A${maxRadius},${maxRadius} 0 ${\n arc > 180 ? \"1\" : \"0\"\n },1 ${maskEndX},${maskEndY}Z`}\n fill=\"transparent\"\n />\n\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={color}\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 style={{\n transform: `scale(${showHover ? 0.8 : 1}`,\n transformOrigin: \"center\",\n transition: `all ${animationDuration}ms`,\n }}\n />\n\n <SegmentLabel\n segment={segment}\n radius={radius}\n animationDuration={animationDuration}\n isHover={showHover}\n mobile={mobile}\n {...labelProps}\n />\n </g>\n );\n};\n"],"names":["animationDuration","Segment","segment","segmentWidth","outlineWidth","diameter","mobile","labelProps","start","end","color","labelOffset","radius","innerRadius","startInnerX","startInnerY","endInnerX","endInnerY","endX","endY","startY","startX","arc","getSegmentCoordinates","center","startAlpha","endAlpha","isHover","hoverCallbacks","useHover","showHover","maxRadius","maskStartX","maskStartY","getCoordinateForArc","maskEndX","maskEndY","jsx","SegmentLabel"],"mappings":";;;;;AAQA,MAAMA,IAAoB,KAEbC,IAA2B,CAAC;AAAA,EACvC,SAAAC;AAAA,EACA,cAAAC;AAAA,EACA,cAAAC;AAAA,EACA,MAAMC;AAAA,EACN,QAAAC;AAAA,EACA,GAAGC;AACL,MAAM;AACJ,QAAM,EAAE,OAAAC,GAAO,KAAAC,GAAK,OAAAC,EAAA,IAAUR,GACxB,EAAE,aAAAS,EAAgB,IAAAJ,GAElBK,IAASP,IAAW,GACpBQ,IAAcD,IAAST,GAEvB;AAAA,IACJ,aAAAW;AAAA,IACA,aAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,MAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,IACA,QAAAC;AAAA,IACA,KAAAC;AAAA,EACE,IAAAC,EAAsBrB,GAASU,GAAQT,CAAY,GAEjDqB,IAASnB,IAAW,GAEpBoB,IAAa,KAAK,MAAMjB,IAAQ,GAAG,GACnCkB,IAAW,KAAK,MAAMjB,IAAM,GAAG,GAE/B,EAAE,SAAAkB,GAAS,gBAAAC,EAAe,IAAIC,EAAS,GACvCC,IAAYH,KAAW,CAACrB,GAExByB,IAAY,KAAK,KAAK,CAAC,KAAKnB,IAASD,IAErC,EAAE,GAAGqB,GAAY,GAAGC,EAAe,IAAAC;AAAA,IACvCH;AAAA,IACAN;AAAA,IACAb;AAAA,EAAA,GAGI,EAAE,GAAGuB,GAAU,GAAGC,EAAa,IAAAF;AAAA,IACnCH;AAAA,IACAL;AAAA,IACAd;AAAA,EAAA;AAGF,gCACG,KAAG,EAAA,GAAIN,IAAS,KAAKsB,GAEpB,UAAA;AAAA,IAAAS,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAIb,CAAM,IAAIA,CAAM,KAAKQ,CAAU,IAAIC,CAAU,KAAKF,CAAS,IAAIA,CAAS,MAC7ET,IAAM,MAAM,MAAM,GACpB,MAAMa,CAAQ,IAAIC,CAAQ;AAAA,QAC1B,MAAK;AAAA,MAAA;AAAA,IACP;AAAA,IAGAC,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAIb,CAAM,IAAIA,CAAM,KAAKH,CAAM,IAAID,CAAM,KAAKR,CAAM,IAAIA,CAAM,MAC/DU,IAAM,MAAM,MAAM,GACpB,MAAMJ,CAAI,IAAIC,CAAI;AAAA,QAClB,MAAMT;AAAA,QACN,aAAaN;AAAA,QACb,QAAO;AAAA,MAAA;AAAA,IACT;AAAA,IAGAiC,gBAAAA,EAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,GAAG,IAAIb,CAAM,IAAIA,CAAM,KAAKV,CAAW,IAAIC,CAAW,KAAKF,CAAW,IAAIA,CAAW,MACnFS,IAAM,MAAM,MAAM,GACpB,MAAMN,CAAS,IAAIC,CAAS;AAAA,QAC5B,MAAK;AAAA,QACL,OAAO;AAAA,UACL,WAAW,SAASa,IAAY,MAAM,CAAC;AAAA,UACvC,iBAAiB;AAAA,UACjB,YAAY,OAAO9B,CAAiB;AAAA,QACtC;AAAA,MAAA;AAAA,IACF;AAAA,IAEAqC,gBAAAA,EAAA;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAAApC;AAAA,QACA,QAAAU;AAAA,QACA,mBAAAZ;AAAA,QACA,SAAS8B;AAAA,QACT,QAAAxB;AAAA,QACC,GAAGC;AAAA,MAAA;AAAA,IACN;AAAA,EACF,EAAA,CAAA;AAEJ;"}
@@ -1,23 +1,44 @@
1
- import { j as o } from "./sd-component-library190.js";
2
- import { ResponsiveTextV2 as r } from "./sd-component-library144.js";
3
- const m = ({
4
- text: e,
5
- color: t,
6
- ...i
7
- }) => /* @__PURE__ */ o.jsx(
8
- r,
9
- {
10
- height: "12px",
11
- fontSizeWeight: [10, "semi-bold"],
12
- color: t,
13
- mx: "auto",
14
- maxWidth: "100%",
15
- textAlign: "center",
16
- ...i,
17
- children: e
18
- }
19
- );
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-library244.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",
25
+ {
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"
30
+ }
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
+ };
20
41
  export {
21
- m as LinearGaugeLabel
42
+ w as CompactDonutGaugeSegment
22
43
  };
23
44
  //# sourceMappingURL=sd-component-library246.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library246.js","sources":["../src/components/meters/linear-gauge-meter-partials/linear-gauge-label/linear-gauge-label.tsx"],"sourcesContent":["import React from \"react\";\n\nimport { ResponsiveTextV2 } from \"../../../texts\";\nimport { LinearGaugeLabelProps as Props } from \"./interfaces\";\n\nexport const LinearGaugeLabel: React.FC<Props> = ({\n text,\n color,\n ...restOfProps\n}) => {\n return (\n <ResponsiveTextV2\n height=\"12px\"\n fontSizeWeight={[10, \"semi-bold\"]}\n color={color}\n mx=\"auto\"\n maxWidth=\"100%\"\n textAlign=\"center\"\n {...restOfProps}\n >\n {text}\n </ResponsiveTextV2>\n );\n};\n"],"names":["LinearGaugeLabel","text","color","restOfProps","jsx","ResponsiveTextV2"],"mappings":";;AAKO,MAAMA,IAAoC,CAAC;AAAA,EAChD,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,GAAGC;AACL,MAEIC,gBAAAA,EAAA;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,QAAO;AAAA,IACP,gBAAgB,CAAC,IAAI,WAAW;AAAA,IAChC,OAAAH;AAAA,IACA,IAAG;AAAA,IACH,UAAS;AAAA,IACT,WAAU;AAAA,IACT,GAAGC;AAAA,IAEH,UAAAF;AAAA,EAAA;AAAA;"}
1
+ {"version":3,"file":"sd-component-library246.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,5 +1,30 @@
1
- const i = ({ start: g, end: t }, c) => c >= g && (t === 1 ? c <= t : c < t);
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
+ ) }) });
2
27
  export {
3
- i as isMatchingRange
28
+ l as CompactDonutGaugeValueIndicator
4
29
  };
5
30
  //# sourceMappingURL=sd-component-library247.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sd-component-library247.js","sources":["../src/components/meters/linear-numeric-gauge-meter/utils.ts"],"sourcesContent":["import { LinearNumericGaugeMeterSegment } from \"./interfaces\";\n\nexport const isMatchingRange = (\n { start, end }: Pick<LinearNumericGaugeMeterSegment, \"start\" | \"end\">,\n value: number\n) => value >= start && (end === 1 ? value <= end : value < end);\n"],"names":["isMatchingRange","start","end","value"],"mappings":"AAEO,MAAMA,IAAkB,CAC7B,EAAE,OAAAC,GAAO,KAAAC,EAAI,GACbC,MACGA,KAASF,MAAUC,MAAQ,IAAIC,KAASD,IAAMC,IAAQD;"}
1
+ {"version":3,"file":"sd-component-library247.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,328 +1,24 @@
1
- import O from "./sd-component-library301.js";
2
- import D from "./sd-component-library302.js";
3
- import o from "./sd-component-library284.js";
4
- import v from "react";
5
- import b from "react-dom";
6
- import N from "./sd-component-library303.js";
7
- import { timeoutsShape as R } from "./sd-component-library304.js";
8
- import g from "./sd-component-library305.js";
9
- var x = "unmounted", l = "exited", f = "entering", h = "entered", T = "exiting", p = /* @__PURE__ */ function(d) {
10
- D(u, d);
11
- function u(i, e) {
12
- var t;
13
- t = d.call(this, i, e) || this;
14
- var n = e, r = n && !n.isMounting ? i.enter : i.appear, s;
15
- return t.appearStatus = null, i.in ? r ? (s = l, t.appearStatus = f) : s = h : i.unmountOnExit || i.mountOnEnter ? s = x : s = l, t.state = {
16
- status: s
17
- }, t.nextCallback = null, t;
18
- }
19
- u.getDerivedStateFromProps = function(e, t) {
20
- var n = e.in;
21
- return n && t.status === x ? {
22
- status: l
23
- } : null;
24
- };
25
- var a = u.prototype;
26
- return a.componentDidMount = function() {
27
- this.updateStatus(!0, this.appearStatus);
28
- }, a.componentDidUpdate = function(e) {
29
- var t = null;
30
- if (e !== this.props) {
31
- var n = this.state.status;
32
- this.props.in ? n !== f && n !== h && (t = f) : (n === f || n === h) && (t = T);
1
+ import { j as x } from "./sd-component-library190.js";
2
+ import { Box as n } from "rebass";
3
+ const $ = ({
4
+ idx: o,
5
+ color: t,
6
+ total: i,
7
+ segmentHeight: r
8
+ }) => {
9
+ const s = `${o === 0 ? r / 2 : 0}px`, a = `${o === i - 1 ? r / 2 : 0}px`;
10
+ return /* @__PURE__ */ x.jsx(
11
+ n,
12
+ {
13
+ bg: t,
14
+ height: r,
15
+ sx: {
16
+ borderRadius: `${s} ${[...Array(2)].fill(a).join(" ")} ${s}`
17
+ }
33
18
  }
34
- this.updateStatus(!1, t);
35
- }, a.componentWillUnmount = function() {
36
- this.cancelNextCallback();
37
- }, a.getTimeouts = function() {
38
- var e = this.props.timeout, t, n, r;
39
- return t = n = r = e, e != null && typeof e != "number" && (t = e.exit, n = e.enter, r = e.appear !== void 0 ? e.appear : n), {
40
- exit: t,
41
- enter: n,
42
- appear: r
43
- };
44
- }, a.updateStatus = function(e, t) {
45
- e === void 0 && (e = !1), t !== null ? (this.cancelNextCallback(), t === f ? this.performEnter(e) : this.performExit()) : this.props.unmountOnExit && this.state.status === l && this.setState({
46
- status: x
47
- });
48
- }, a.performEnter = function(e) {
49
- var t = this, n = this.props.enter, r = this.context ? this.context.isMounting : e, s = this.props.nodeRef ? [r] : [b.findDOMNode(this), r], c = s[0], m = s[1], S = this.getTimeouts(), C = r ? S.appear : S.enter;
50
- if (!e && !n || N.disabled) {
51
- this.safeSetState({
52
- status: h
53
- }, function() {
54
- t.props.onEntered(c);
55
- });
56
- return;
57
- }
58
- this.props.onEnter(c, m), this.safeSetState({
59
- status: f
60
- }, function() {
61
- t.props.onEntering(c, m), t.onTransitionEnd(C, function() {
62
- t.safeSetState({
63
- status: h
64
- }, function() {
65
- t.props.onEntered(c, m);
66
- });
67
- });
68
- });
69
- }, a.performExit = function() {
70
- var e = this, t = this.props.exit, n = this.getTimeouts(), r = this.props.nodeRef ? void 0 : b.findDOMNode(this);
71
- if (!t || N.disabled) {
72
- this.safeSetState({
73
- status: l
74
- }, function() {
75
- e.props.onExited(r);
76
- });
77
- return;
78
- }
79
- this.props.onExit(r), this.safeSetState({
80
- status: T
81
- }, function() {
82
- e.props.onExiting(r), e.onTransitionEnd(n.exit, function() {
83
- e.safeSetState({
84
- status: l
85
- }, function() {
86
- e.props.onExited(r);
87
- });
88
- });
89
- });
90
- }, a.cancelNextCallback = function() {
91
- this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
92
- }, a.safeSetState = function(e, t) {
93
- t = this.setNextCallback(t), this.setState(e, t);
94
- }, a.setNextCallback = function(e) {
95
- var t = this, n = !0;
96
- return this.nextCallback = function(r) {
97
- n && (n = !1, t.nextCallback = null, e(r));
98
- }, this.nextCallback.cancel = function() {
99
- n = !1;
100
- }, this.nextCallback;
101
- }, a.onTransitionEnd = function(e, t) {
102
- this.setNextCallback(t);
103
- var n = this.props.nodeRef ? this.props.nodeRef.current : b.findDOMNode(this), r = e == null && !this.props.addEndListener;
104
- if (!n || r) {
105
- setTimeout(this.nextCallback, 0);
106
- return;
107
- }
108
- if (this.props.addEndListener) {
109
- var s = this.props.nodeRef ? [this.nextCallback] : [n, this.nextCallback], c = s[0], m = s[1];
110
- this.props.addEndListener(c, m);
111
- }
112
- e != null && setTimeout(this.nextCallback, e);
113
- }, a.render = function() {
114
- var e = this.state.status;
115
- if (e === x)
116
- return null;
117
- var t = this.props, n = t.children;
118
- t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
119
- var r = O(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
120
- return (
121
- // allows for nested Transitions
122
- /* @__PURE__ */ v.createElement(g.Provider, {
123
- value: null
124
- }, typeof n == "function" ? n(e, r) : v.cloneElement(v.Children.only(n), r))
125
- );
126
- }, u;
127
- }(v.Component);
128
- p.contextType = g;
129
- p.propTypes = process.env.NODE_ENV !== "production" ? {
130
- /**
131
- * A React reference to DOM element that need to transition:
132
- * https://stackoverflow.com/a/51127130/4671932
133
- *
134
- * - When `nodeRef` prop is used, `node` is not passed to callback functions
135
- * (e.g. `onEnter`) because user already has direct access to the node.
136
- * - When changing `key` prop of `Transition` in a `TransitionGroup` a new
137
- * `nodeRef` need to be provided to `Transition` with changed `key` prop
138
- * (see
139
- * [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
140
- */
141
- nodeRef: o.shape({
142
- current: typeof Element > "u" ? o.any : function(d, u, a, i, e, t) {
143
- var n = d[u];
144
- return o.instanceOf(n && "ownerDocument" in n ? n.ownerDocument.defaultView.Element : Element)(d, u, a, i, e, t);
145
- }
146
- }),
147
- /**
148
- * A `function` child can be used instead of a React element. This function is
149
- * called with the current transition status (`'entering'`, `'entered'`,
150
- * `'exiting'`, `'exited'`), which can be used to apply context
151
- * specific props to a component.
152
- *
153
- * ```jsx
154
- * <Transition in={this.state.in} timeout={150}>
155
- * {state => (
156
- * <MyComponent className={`fade fade-${state}`} />
157
- * )}
158
- * </Transition>
159
- * ```
160
- */
161
- children: o.oneOfType([o.func.isRequired, o.element.isRequired]).isRequired,
162
- /**
163
- * Show the component; triggers the enter or exit states
164
- */
165
- in: o.bool,
166
- /**
167
- * By default the child component is mounted immediately along with
168
- * the parent `Transition` component. If you want to "lazy mount" the component on the
169
- * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
170
- * mounted, even on "exited", unless you also specify `unmountOnExit`.
171
- */
172
- mountOnEnter: o.bool,
173
- /**
174
- * By default the child component stays mounted after it reaches the `'exited'` state.
175
- * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
176
- */
177
- unmountOnExit: o.bool,
178
- /**
179
- * By default the child component does not perform the enter transition when
180
- * it first mounts, regardless of the value of `in`. If you want this
181
- * behavior, set both `appear` and `in` to `true`.
182
- *
183
- * > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
184
- * > only adds an additional enter transition. However, in the
185
- * > `<CSSTransition>` component that first enter transition does result in
186
- * > additional `.appear-*` classes, that way you can choose to style it
187
- * > differently.
188
- */
189
- appear: o.bool,
190
- /**
191
- * Enable or disable enter transitions.
192
- */
193
- enter: o.bool,
194
- /**
195
- * Enable or disable exit transitions.
196
- */
197
- exit: o.bool,
198
- /**
199
- * The duration of the transition, in milliseconds.
200
- * Required unless `addEndListener` is provided.
201
- *
202
- * You may specify a single timeout for all transitions:
203
- *
204
- * ```jsx
205
- * timeout={500}
206
- * ```
207
- *
208
- * or individually:
209
- *
210
- * ```jsx
211
- * timeout={{
212
- * appear: 500,
213
- * enter: 300,
214
- * exit: 500,
215
- * }}
216
- * ```
217
- *
218
- * - `appear` defaults to the value of `enter`
219
- * - `enter` defaults to `0`
220
- * - `exit` defaults to `0`
221
- *
222
- * @type {number | { enter?: number, exit?: number, appear?: number }}
223
- */
224
- timeout: function(u) {
225
- var a = R;
226
- u.addEndListener || (a = a.isRequired);
227
- for (var i = arguments.length, e = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
228
- e[t - 1] = arguments[t];
229
- return a.apply(void 0, [u].concat(e));
230
- },
231
- /**
232
- * Add a custom transition end trigger. Called with the transitioning
233
- * DOM node and a `done` callback. Allows for more fine grained transition end
234
- * logic. Timeouts are still used as a fallback if provided.
235
- *
236
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
237
- *
238
- * ```jsx
239
- * addEndListener={(node, done) => {
240
- * // use the css transitionend event to mark the finish of a transition
241
- * node.addEventListener('transitionend', done, false);
242
- * }}
243
- * ```
244
- */
245
- addEndListener: o.func,
246
- /**
247
- * Callback fired before the "entering" status is applied. An extra parameter
248
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
249
- *
250
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
251
- *
252
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
253
- */
254
- onEnter: o.func,
255
- /**
256
- * Callback fired after the "entering" status is applied. An extra parameter
257
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
258
- *
259
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
260
- *
261
- * @type Function(node: HtmlElement, isAppearing: bool)
262
- */
263
- onEntering: o.func,
264
- /**
265
- * Callback fired after the "entered" status is applied. An extra parameter
266
- * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
267
- *
268
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
269
- *
270
- * @type Function(node: HtmlElement, isAppearing: bool) -> void
271
- */
272
- onEntered: o.func,
273
- /**
274
- * Callback fired before the "exiting" status is applied.
275
- *
276
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
277
- *
278
- * @type Function(node: HtmlElement) -> void
279
- */
280
- onExit: o.func,
281
- /**
282
- * Callback fired after the "exiting" status is applied.
283
- *
284
- * **Note**: when `nodeRef` prop is passed, `node` is not passed.
285
- *
286
- * @type Function(node: HtmlElement) -> void
287
- */
288
- onExiting: o.func,
289
- /**
290
- * Callback fired after the "exited" status is applied.
291
- *
292
- * **Note**: when `nodeRef` prop is passed, `node` is not passed
293
- *
294
- * @type Function(node: HtmlElement) -> void
295
- */
296
- onExited: o.func
297
- } : {};
298
- function E() {
299
- }
300
- p.defaultProps = {
301
- in: !1,
302
- mountOnEnter: !1,
303
- unmountOnExit: !1,
304
- appear: !1,
305
- enter: !0,
306
- exit: !0,
307
- onEnter: E,
308
- onEntering: E,
309
- onEntered: E,
310
- onExit: E,
311
- onExiting: E,
312
- onExited: E
19
+ );
313
20
  };
314
- p.UNMOUNTED = x;
315
- p.EXITED = l;
316
- p.ENTERING = f;
317
- p.ENTERED = h;
318
- p.EXITING = T;
319
- const _ = p;
320
21
  export {
321
- h as ENTERED,
322
- f as ENTERING,
323
- l as EXITED,
324
- T as EXITING,
325
- x as UNMOUNTED,
326
- _ as default
22
+ $ as LinearGaugeSegment
327
23
  };
328
24
  //# sourceMappingURL=sd-component-library248.js.map