intergalactic 15.128.0-prerelease.5 → 15.129.0-prerelease.0

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 (304) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/accordion/lib/cjs/Accordion.js +9 -9
  3. package/accordion/lib/es6/Accordion.js +9 -9
  4. package/accordion/lib/esm/Accordion.mjs +60 -60
  5. package/accordion/package.json +1 -1
  6. package/add-filter/package.json +1 -1
  7. package/animation/package.json +1 -1
  8. package/badge/package.json +1 -1
  9. package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
  10. package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
  11. package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
  12. package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
  13. package/base-trigger/lib/es6/BaseTrigger.js +18 -18
  14. package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
  15. package/base-trigger/lib/es6/FilterTrigger.js +7 -7
  16. package/base-trigger/lib/es6/LinkTrigger.js +12 -12
  17. package/base-trigger/lib/esm/BaseTrigger.mjs +50 -50
  18. package/base-trigger/lib/esm/ButtonTrigger.mjs +20 -20
  19. package/base-trigger/lib/esm/FilterTrigger.mjs +79 -79
  20. package/base-trigger/lib/esm/LinkTrigger.mjs +44 -44
  21. package/base-trigger/package.json +1 -1
  22. package/breadcrumbs/lib/cjs/Breadcrumbs.js +8 -8
  23. package/breadcrumbs/lib/es6/Breadcrumbs.js +8 -8
  24. package/breadcrumbs/lib/esm/Breadcrumbs.mjs +41 -41
  25. package/breadcrumbs/package.json +1 -1
  26. package/breakpoints/package.json +1 -1
  27. package/bulk-textarea/lib/cjs/components/InputField/InputField.js +12 -12
  28. package/bulk-textarea/lib/es6/components/InputField/InputField.js +12 -12
  29. package/bulk-textarea/lib/esm/components/InputField/InputField.mjs +171 -171
  30. package/bulk-textarea/package.json +1 -1
  31. package/button/package.json +1 -1
  32. package/card/lib/cjs/Card.js +6 -6
  33. package/card/lib/es6/Card.js +6 -6
  34. package/card/lib/esm/Card.mjs +14 -14
  35. package/card/package.json +1 -1
  36. package/carousel/lib/cjs/Carousel.js +21 -21
  37. package/carousel/lib/es6/Carousel.js +21 -21
  38. package/carousel/lib/esm/Carousel.mjs +72 -72
  39. package/carousel/package.json +1 -1
  40. package/checkbox/package.json +1 -1
  41. package/color-picker/lib/cjs/ColorPicker.js +24 -24
  42. package/color-picker/lib/cjs/PaletteManager.js +24 -24
  43. package/color-picker/lib/cjs/components/InputColor.js +24 -24
  44. package/color-picker/lib/es6/ColorPicker.js +24 -24
  45. package/color-picker/lib/es6/PaletteManager.js +24 -24
  46. package/color-picker/lib/es6/components/InputColor.js +24 -24
  47. package/color-picker/lib/esm/ColorPicker.mjs +70 -70
  48. package/color-picker/lib/esm/PaletteManager.mjs +53 -53
  49. package/color-picker/lib/esm/components/InputColor.mjs +64 -64
  50. package/color-picker/package.json +1 -1
  51. package/components.json +29 -29
  52. package/core/package.json +1 -1
  53. package/counter/package.json +1 -1
  54. package/d3-chart/lib/cjs/Area.js +11 -11
  55. package/d3-chart/lib/cjs/Axis.js +14 -14
  56. package/d3-chart/lib/cjs/Bar.js +16 -16
  57. package/d3-chart/lib/cjs/Bubble.js +12 -12
  58. package/d3-chart/lib/cjs/CompactHorizontalBar.js +16 -16
  59. package/d3-chart/lib/cjs/Donut.js +9 -9
  60. package/d3-chart/lib/cjs/Dots.js +8 -8
  61. package/d3-chart/lib/cjs/HorizontalBar.js +16 -16
  62. package/d3-chart/lib/cjs/Hover.js +3 -3
  63. package/d3-chart/lib/cjs/Line.js +9 -9
  64. package/d3-chart/lib/cjs/Plot.js +3 -3
  65. package/d3-chart/lib/cjs/Radar.js +19 -19
  66. package/d3-chart/lib/cjs/RadialTree.js +12 -12
  67. package/d3-chart/lib/cjs/Reference.js +12 -12
  68. package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
  69. package/d3-chart/lib/cjs/Tooltip.js +9 -9
  70. package/d3-chart/lib/cjs/Venn.js +9 -9
  71. package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
  72. package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
  73. package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  74. package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  75. package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  76. package/d3-chart/lib/es6/Area.js +11 -11
  77. package/d3-chart/lib/es6/Axis.js +14 -14
  78. package/d3-chart/lib/es6/Bar.js +16 -16
  79. package/d3-chart/lib/es6/Bubble.js +12 -12
  80. package/d3-chart/lib/es6/CompactHorizontalBar.js +16 -16
  81. package/d3-chart/lib/es6/Donut.js +9 -9
  82. package/d3-chart/lib/es6/Dots.js +8 -8
  83. package/d3-chart/lib/es6/HorizontalBar.js +16 -16
  84. package/d3-chart/lib/es6/Hover.js +3 -3
  85. package/d3-chart/lib/es6/Line.js +9 -9
  86. package/d3-chart/lib/es6/Plot.js +3 -3
  87. package/d3-chart/lib/es6/Radar.js +19 -19
  88. package/d3-chart/lib/es6/RadialTree.js +12 -12
  89. package/d3-chart/lib/es6/Reference.js +12 -12
  90. package/d3-chart/lib/es6/ScatterPlot.js +9 -9
  91. package/d3-chart/lib/es6/Tooltip.js +9 -9
  92. package/d3-chart/lib/es6/Venn.js +9 -9
  93. package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
  94. package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
  95. package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
  96. package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
  97. package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
  98. package/d3-chart/lib/esm/semcore/d3-chart/src/Area.mjs +68 -68
  99. package/d3-chart/lib/esm/semcore/d3-chart/src/Axis.mjs +154 -154
  100. package/d3-chart/lib/esm/semcore/d3-chart/src/Bar.mjs +62 -62
  101. package/d3-chart/lib/esm/semcore/d3-chart/src/Bubble.mjs +78 -78
  102. package/d3-chart/lib/esm/semcore/d3-chart/src/CompactHorizontalBar.mjs +99 -99
  103. package/d3-chart/lib/esm/semcore/d3-chart/src/Donut.mjs +129 -129
  104. package/d3-chart/lib/esm/semcore/d3-chart/src/Dots.mjs +35 -35
  105. package/d3-chart/lib/esm/semcore/d3-chart/src/HorizontalBar.mjs +54 -54
  106. package/d3-chart/lib/esm/semcore/d3-chart/src/Hover.mjs +17 -17
  107. package/d3-chart/lib/esm/semcore/d3-chart/src/Line.mjs +85 -85
  108. package/d3-chart/lib/esm/semcore/d3-chart/src/Plot.mjs +25 -25
  109. package/d3-chart/lib/esm/semcore/d3-chart/src/Radar.mjs +138 -138
  110. package/d3-chart/lib/esm/semcore/d3-chart/src/RadialTree.mjs +95 -95
  111. package/d3-chart/lib/esm/semcore/d3-chart/src/Reference.mjs +65 -65
  112. package/d3-chart/lib/esm/semcore/d3-chart/src/ScatterPlot.mjs +63 -63
  113. package/d3-chart/lib/esm/semcore/d3-chart/src/Tooltip.mjs +66 -66
  114. package/d3-chart/lib/esm/semcore/d3-chart/src/Venn.mjs +62 -62
  115. package/d3-chart/lib/esm/semcore/d3-chart/src/a11y/PlotA11yModule.mjs +31 -31
  116. package/d3-chart/lib/esm/semcore/d3-chart/src/a11y/PlotA11yView.mjs +33 -33
  117. package/d3-chart/lib/esm/semcore/d3-chart/src/component/ChartLegend/LegendFlex/LegendFlex.mjs +20 -20
  118. package/d3-chart/lib/esm/semcore/d3-chart/src/component/ChartLegend/LegendItem/LegendItem.mjs +101 -101
  119. package/d3-chart/lib/esm/semcore/d3-chart/src/component/ChartLegend/LegendTable/LegendTable.mjs +34 -34
  120. package/d3-chart/package.json +1 -1
  121. package/data-table/lib/cjs/Body.js +3 -3
  122. package/data-table/lib/cjs/DataTable.js +36 -36
  123. package/data-table/lib/es6/Body.js +3 -3
  124. package/data-table/lib/es6/DataTable.js +36 -36
  125. package/data-table/lib/esm/Body.mjs +69 -69
  126. package/data-table/lib/esm/DataTable.mjs +253 -253
  127. package/data-table/package.json +1 -1
  128. package/date-picker/lib/cjs/components/Calendar.js +21 -21
  129. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
  130. package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
  131. package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
  132. package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
  133. package/date-picker/lib/es6/components/Calendar.js +21 -21
  134. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
  135. package/date-picker/lib/es6/components/InputTrigger.js +29 -29
  136. package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
  137. package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
  138. package/date-picker/lib/esm/components/Calendar.mjs +151 -151
  139. package/date-picker/lib/esm/components/DateRangeComparatorAbstract.mjs +158 -158
  140. package/date-picker/lib/esm/components/InputTrigger.mjs +232 -232
  141. package/date-picker/lib/esm/components/PickerAbstract.mjs +89 -89
  142. package/date-picker/lib/esm/components/RangePickerAbstract.mjs +124 -124
  143. package/date-picker/package.json +1 -1
  144. package/divider/package.json +1 -1
  145. package/dot/package.json +1 -1
  146. package/drag-and-drop/lib/cjs/DragAndDrop.js +17 -17
  147. package/drag-and-drop/lib/es6/DragAndDrop.js +17 -17
  148. package/drag-and-drop/lib/esm/DragAndDrop.mjs +225 -225
  149. package/drag-and-drop/package.json +1 -1
  150. package/dropdown/package.json +1 -1
  151. package/dropdown-menu/lib/cjs/DropdownMenu.js +18 -18
  152. package/dropdown-menu/lib/es6/DropdownMenu.js +18 -18
  153. package/dropdown-menu/lib/esm/DropdownMenu.mjs +143 -143
  154. package/dropdown-menu/package.json +1 -1
  155. package/ellipsis/package.json +1 -1
  156. package/errors/package.json +1 -1
  157. package/feature-popover/lib/cjs/FeaturePopover.js +11 -11
  158. package/feature-popover/lib/es6/FeaturePopover.js +11 -11
  159. package/feature-popover/lib/esm/FeaturePopover.mjs +47 -47
  160. package/feature-popover/package.json +1 -1
  161. package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
  162. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
  163. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +2 -2
  164. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +7 -7
  165. package/feedback-form/lib/es6/FeedbackForm.js +7 -7
  166. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
  167. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +2 -2
  168. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +7 -7
  169. package/feedback-form/lib/esm/FeedbackForm.mjs +51 -51
  170. package/feedback-form/lib/esm/component/checkbox-button/CheckboxButton.mjs +21 -21
  171. package/feedback-form/lib/esm/component/feedback-rating/FeedbackRating.mjs +41 -41
  172. package/feedback-form/lib/esm/component/slider-rating/SliderRating.mjs +75 -75
  173. package/feedback-form/package.json +1 -1
  174. package/flags/package.json +1 -1
  175. package/flex-box/package.json +1 -1
  176. package/format-text/package.json +1 -1
  177. package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
  178. package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
  179. package/fullscreen-modal/lib/esm/FullscreenModal.mjs +44 -44
  180. package/fullscreen-modal/package.json +1 -1
  181. package/grid/package.json +1 -1
  182. package/i18n-unplugin/package.json +1 -1
  183. package/icon/color/Confluence/l/index.js +4 -4
  184. package/icon/color/Confluence/l/index.mjs +4 -4
  185. package/icon/color/Confluence/m/index.js +4 -4
  186. package/icon/color/Confluence/m/index.mjs +4 -4
  187. package/icon/color/MetaColored/l/index.js +4 -4
  188. package/icon/color/MetaColored/l/index.mjs +4 -4
  189. package/icon/color/MetaColored/m/index.js +4 -4
  190. package/icon/color/MetaColored/m/index.mjs +4 -4
  191. package/icon/color/MicrosoftOffice/l/index.js +10 -10
  192. package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
  193. package/icon/color/MicrosoftOffice/m/index.js +10 -10
  194. package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
  195. package/icon/lib/cjs/Icon.js +5 -5
  196. package/icon/lib/es6/Icon.js +5 -5
  197. package/icon/lib/esm/Icon.mjs +33 -33
  198. package/icon/package.json +1 -1
  199. package/icon/pay/Discover/l/index.js +1 -1
  200. package/icon/pay/Discover/l/index.mjs +1 -1
  201. package/icon/pay/Discover/m/index.js +1 -1
  202. package/icon/pay/Discover/m/index.mjs +1 -1
  203. package/icon/pay/JCB/l/index.js +10 -10
  204. package/icon/pay/JCB/l/index.mjs +10 -10
  205. package/icon/pay/JCB/m/index.js +10 -10
  206. package/icon/pay/JCB/m/index.mjs +10 -10
  207. package/icon/pay/Visa/l/index.js +2 -2
  208. package/icon/pay/Visa/l/index.mjs +2 -2
  209. package/icon/pay/Visa/m/index.js +2 -2
  210. package/icon/pay/Visa/m/index.mjs +2 -2
  211. package/icon/platform/AIToolkit/index.d.ts +6 -0
  212. package/icon/platform/AIToolkit/index.js +36 -0
  213. package/icon/platform/AIToolkit/index.mjs +25 -0
  214. package/icon/platform/SEOToolkit/index.js +2 -2
  215. package/icon/platform/SEOToolkit/index.mjs +2 -2
  216. package/illustration/package.json +1 -1
  217. package/inline-edit/package.json +1 -1
  218. package/inline-input/lib/cjs/InlineInput.js +14 -14
  219. package/inline-input/lib/es6/InlineInput.js +14 -14
  220. package/inline-input/lib/esm/InlineInput.mjs +127 -127
  221. package/inline-input/package.json +1 -1
  222. package/input/package.json +1 -1
  223. package/input-mask/package.json +1 -1
  224. package/input-number/package.json +1 -1
  225. package/input-tags/package.json +1 -1
  226. package/link/package.json +1 -1
  227. package/mini-chart/package.json +1 -1
  228. package/modal/lib/cjs/Modal.js +8 -8
  229. package/modal/lib/es6/Modal.js +8 -8
  230. package/modal/lib/esm/Modal.mjs +96 -96
  231. package/modal/package.json +1 -1
  232. package/neighbor-location/package.json +1 -1
  233. package/notice/lib/cjs/Notice.js +16 -16
  234. package/notice/lib/es6/Notice.js +16 -16
  235. package/notice/lib/esm/Notice.mjs +73 -73
  236. package/notice/package.json +1 -1
  237. package/notice-bubble/lib/cjs/NoticeBubble.js +15 -15
  238. package/notice-bubble/lib/es6/NoticeBubble.js +15 -15
  239. package/notice-bubble/lib/esm/NoticeBubble.mjs +123 -123
  240. package/notice-bubble/package.json +1 -1
  241. package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
  242. package/notice-global/lib/es6/NoticeGlobal.js +11 -11
  243. package/notice-global/lib/esm/NoticeGlobal.mjs +49 -49
  244. package/notice-global/package.json +1 -1
  245. package/outside-click/package.json +1 -1
  246. package/package.json +1 -1
  247. package/pagination/lib/cjs/Pagination.js +12 -12
  248. package/pagination/lib/es6/Pagination.js +12 -12
  249. package/pagination/lib/esm/Pagination.mjs +13 -13
  250. package/pagination/package.json +1 -1
  251. package/pills/package.json +1 -1
  252. package/popper/package.json +1 -1
  253. package/portal/package.json +1 -1
  254. package/product-head/package.json +1 -1
  255. package/progress-bar/package.json +1 -1
  256. package/radio/package.json +1 -1
  257. package/scroll-area/package.json +1 -1
  258. package/select/lib/cjs/InputSearch.js +6 -6
  259. package/select/lib/cjs/Select.js +8 -8
  260. package/select/lib/es6/InputSearch.js +6 -6
  261. package/select/lib/es6/Select.js +8 -8
  262. package/select/lib/esm/InputSearch.mjs +35 -35
  263. package/select/lib/esm/Select.mjs +60 -60
  264. package/select/package.json +1 -1
  265. package/side-panel/lib/cjs/SidePanel.js +16 -16
  266. package/side-panel/lib/es6/SidePanel.js +16 -16
  267. package/side-panel/lib/esm/SidePanel.mjs +56 -56
  268. package/side-panel/package.json +1 -1
  269. package/skeleton/package.json +1 -1
  270. package/slider/package.json +1 -1
  271. package/spin/package.json +1 -1
  272. package/spin-container/package.json +1 -1
  273. package/sticky/package.json +1 -1
  274. package/switch/package.json +1 -1
  275. package/tab-line/package.json +1 -1
  276. package/tab-panel/package.json +1 -1
  277. package/tag/lib/cjs/Tag.js +23 -23
  278. package/tag/lib/es6/Tag.js +23 -23
  279. package/tag/lib/esm/Tag.mjs +184 -184
  280. package/tag/package.json +1 -1
  281. package/textarea/package.json +1 -1
  282. package/time-picker/lib/cjs/TimePicker.js +12 -12
  283. package/time-picker/lib/es6/TimePicker.js +12 -12
  284. package/time-picker/lib/esm/TimePicker.mjs +93 -93
  285. package/time-picker/package.json +1 -1
  286. package/tooltip/package.json +1 -1
  287. package/typography/lib/cjs/Blockquote.js +4 -4
  288. package/typography/lib/cjs/Hint.js +7 -7
  289. package/typography/lib/cjs/List.js +5 -5
  290. package/typography/lib/cjs/Text.js +34 -34
  291. package/typography/lib/es6/Blockquote.js +4 -4
  292. package/typography/lib/es6/Hint.js +7 -7
  293. package/typography/lib/es6/List.js +5 -5
  294. package/typography/lib/es6/Text.js +34 -34
  295. package/typography/lib/esm/Blockquote.mjs +20 -20
  296. package/typography/lib/esm/Hint.mjs +19 -19
  297. package/typography/lib/esm/List.mjs +36 -36
  298. package/typography/lib/esm/Text.mjs +53 -53
  299. package/typography/package.json +1 -1
  300. package/widget-empty/package.json +1 -1
  301. package/wizard/lib/cjs/Wizard.js +12 -12
  302. package/wizard/lib/es6/Wizard.js +12 -12
  303. package/wizard/lib/esm/Wizard.mjs +94 -94
  304. package/wizard/package.json +1 -1
@@ -1,105 +1,105 @@
1
- import w from "@babel/runtime/helpers/esm/objectSpread2";
2
- import F from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- import N from "@babel/runtime/helpers/esm/classCallCheck";
4
- import j from "@babel/runtime/helpers/esm/createClass";
5
- import E from "@babel/runtime/helpers/esm/assertThisInitialized";
6
- import B from "@babel/runtime/helpers/esm/inherits";
7
- import V from "@babel/runtime/helpers/esm/createSuper";
1
+ import U from "@babel/runtime/helpers/esm/objectSpread2";
2
+ import w from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ import F from "@babel/runtime/helpers/esm/classCallCheck";
4
+ import N from "@babel/runtime/helpers/esm/createClass";
5
+ import S from "@babel/runtime/helpers/esm/assertThisInitialized";
6
+ import j from "@babel/runtime/helpers/esm/inherits";
7
+ import B from "@babel/runtime/helpers/esm/createSuper";
8
8
  import h from "@babel/runtime/helpers/esm/defineProperty";
9
9
  import P from "@babel/runtime/helpers/esm/slicedToArray";
10
- import { sstyled as X } from 'intergalactic/utils/lib/core/index';
11
- import { Component as G, sstyled as z, assignProps as Y } from 'intergalactic/core';
12
- import p from "react";
13
- import { arc as C, pie as q } from "d3-shape";
14
- import { interpolate as O } from "d3-interpolate";
15
- import { transition as M } from "d3-transition";
10
+ import { sstyled as V } from 'intergalactic/utils/lib/core/index';
11
+ import { Component as X, sstyled as q, assignProps as G } from 'intergalactic/core';
12
+ import g from "react";
13
+ import { arc as z, pie as Y } from "d3-shape";
14
+ import { interpolate as C } from "d3-interpolate";
15
+ import { transition as x } from "d3-transition";
16
16
  import W from 'intergalactic/utils/lib/canUseDOM';
17
17
  import J from 'intergalactic/utils/lib/getOriginChildren';
18
18
  import Q from 'intergalactic/utils/lib/uniqueID';
19
19
  import Z from "./createElement.mjs";
20
- import { getChartDefaultColorName as $ } from "./utils.mjs";
21
- import I from "./Tooltip.mjs";
20
+ import { getChartDefaultColorName as H } from "./utils.mjs";
21
+ import M from "./Tooltip.mjs";
22
22
  import { PatternFill as tt } from "./Pattern.mjs";
23
23
  var et = ["Element", "styles", "d3Arc", "data", "color", "$animationActivePie", "active", "d3ArcOut", "name", "dataKey", "dataHintsHandler", "transparent", "innerRadius", "outerRadius", "resolveColor", "halfsize", "uid", "patterns"], at = (
24
24
  /*__reshadow_css_start__*/
25
- (X.insert(
25
+ (V.insert(
26
26
  /*__inner_css_start__*/
27
- ".___SPie_bg6u9_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPie_bg6u9_gg_.__color_bg6u9_gg_{fill:var(--color_bg6u9)}.___SPie_bg6u9_gg_.__pattern_bg6u9_gg_.__color_bg6u9_gg_{fill:var(--pattern_bg6u9);stroke:var(--color_bg6u9);stroke-width:1px}.___SPie_bg6u9_gg_.__transparent_bg6u9_gg_{opacity:.3}.___SEmptyData_bg6u9_gg_{fill:var(--intergalactic-chart-palette-order-null, #e0e1e9)}.___SEmptyData_bg6u9_gg_.__color_bg6u9_gg_{fill:var(--color_bg6u9)}.___SLabel_bg6u9_gg_{text-anchor:middle;vertical-anchor:middle;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}",
28
- "bg6u9_gg_"
27
+ ".___SPie_1q4t3_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPie_1q4t3_gg_.__color_1q4t3_gg_{fill:var(--color_1q4t3)}.___SPie_1q4t3_gg_.__pattern_1q4t3_gg_.__color_1q4t3_gg_{fill:var(--pattern_1q4t3);stroke:var(--color_1q4t3);stroke-width:1px}.___SPie_1q4t3_gg_.__transparent_1q4t3_gg_{opacity:.3}.___SEmptyData_1q4t3_gg_{fill:var(--intergalactic-chart-palette-order-null, #e0e1e9)}.___SEmptyData_1q4t3_gg_.__color_1q4t3_gg_{fill:var(--color_1q4t3)}.___SLabel_1q4t3_gg_{text-anchor:middle;vertical-anchor:middle;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}",
28
+ "1q4t3_gg_"
29
29
  ), {
30
- __SPie: "___SPie_bg6u9_gg_",
31
- _color: "__color_bg6u9_gg_",
32
- "--color": "--color_bg6u9",
33
- _pattern: "__pattern_bg6u9_gg_",
34
- "--pattern": "--pattern_bg6u9",
35
- _transparent: "__transparent_bg6u9_gg_",
36
- __SEmptyData: "___SEmptyData_bg6u9_gg_",
37
- __SLabel: "___SLabel_bg6u9_gg_"
30
+ __SPie: "___SPie_1q4t3_gg_",
31
+ _color: "__color_1q4t3_gg_",
32
+ "--color": "--color_1q4t3",
33
+ _pattern: "__pattern_1q4t3_gg_",
34
+ "--pattern": "--pattern_1q4t3",
35
+ _transparent: "__transparent_1q4t3_gg_",
36
+ __SEmptyData: "___SEmptyData_1q4t3_gg_",
37
+ __SLabel: "___SLabel_1q4t3_gg_"
38
38
  })
39
- ), k = Symbol("DEFAULT_INSTANCE");
39
+ ), I = Symbol("DEFAULT_INSTANCE");
40
40
  function rt(t) {
41
- var c = t.selector, g = t.duration, a = t.halfsize, e = t.d3Arc, n = t.d3ArcOut, s = t.arcs, i = t.activeIndexPie;
42
- return M().selection().selectAll(c).interrupt().transition().duration(g).attrTween("d", function(o, d) {
41
+ var c = t.selector, m = t.duration, a = t.halfsize, e = t.d3Arc, n = t.d3ArcOut, s = t.arcs, i = t.activeIndexPie;
42
+ return x().selection().selectAll(c).interrupt().transition().duration(m).attrTween("d", function(o, d) {
43
43
  if (!s[d]) return function() {
44
44
  return "";
45
45
  };
46
- var l = Object.assign({}, s[d]), r = this, u = a ? -Math.PI / 2 : 0, v = u, m = u;
47
- r.arc && (v = r.arc.startAngle, m = r.arc.endAngle);
48
- var A = O(v, l.startAngle), f = O(m, l.endAngle);
46
+ var u = Object.assign({}, s[d]), r = this, l = a ? -Math.PI / 2 : 0, v = l, p = l;
47
+ r.arc && (v = r.arc.startAngle, p = r.arc.endAngle);
48
+ var A = C(v, u.startAngle), f = C(p, u.endAngle);
49
49
  return function(_) {
50
- return l.startAngle = A(_), l.endAngle = f(_), r.arc = l, d === i ? n(r.arc) : e(r.arc);
50
+ return u.startAngle = A(_), u.endAngle = f(_), r.arc = u, d === i ? n(r.arc) : e(r.arc);
51
51
  };
52
52
  });
53
53
  }
54
54
  function nt(t) {
55
- var c = t.data, g = t.selector, a = t.element, e = t.duration, n = t.innerRadius, s = t.outerRadiusStartEnd, i = t.paddingAngle;
56
- return M().selection().select(g).interrupt().transition().duration(e).attrTween("d", function() {
57
- var o = P(s, 2), d = o[0], l = o[1], r = O(d, l);
58
- return function(u) {
59
- var v = r(u);
55
+ var c = t.data, m = t.selector, a = t.element, e = t.duration, n = t.innerRadius, s = t.outerRadiusStartEnd, i = t.paddingAngle;
56
+ return x().selection().select(m).interrupt().transition().duration(e).attrTween("d", function() {
57
+ var o = P(s, 2), d = o[0], u = o[1], r = C(d, u);
58
+ return function(l) {
59
+ var v = r(l);
60
60
  a.dataset.currentRadius = v;
61
- var m = C().innerRadius(n).outerRadius(v).padAngle(i);
62
- return m(c);
61
+ var p = z().innerRadius(n).outerRadius(v).padAngle(i);
62
+ return p(c);
63
63
  };
64
64
  });
65
65
  }
66
66
  var T = 8;
67
- function x(t) {
68
- var c = t.size, g = t.halfsize, a = P(c, 2), e = a[0], n = a[1], s = g ? Math.max : Math.min;
67
+ function $(t) {
68
+ var c = t.size, m = t.halfsize, a = P(c, 2), e = a[0], n = a[1], s = m ? Math.max : Math.min;
69
69
  return s(e - T * 2, n - T * 2) / 2;
70
70
  }
71
- var D = /* @__PURE__ */ function(t) {
72
- B(g, t);
73
- var c = V(g);
74
- function g() {
71
+ var b = /* @__PURE__ */ function(t) {
72
+ j(m, t);
73
+ var c = B(m);
74
+ function m() {
75
75
  var a;
76
- N(this, g);
76
+ F(this, m);
77
77
  for (var e = arguments.length, n = new Array(e), s = 0; s < e; s++)
78
78
  n[s] = arguments[s];
79
- return a = c.call.apply(c, [this].concat(n)), h(E(a), "virtualElement", W() ? document.createElement("div") : {}), h(E(a), "activeIndexPie", void 0), h(E(a), "canAnimatedHover", !1), h(E(a), "bindHandlerTooltip", function(i, o, d) {
80
- return function(l) {
81
- var r = l.clientX, u = l.clientY, v = a.asProps.eventEmitter;
82
- v.emit("setTooltipPosition", r, u), v.emit("setTooltipRenderingProps", o, d), v.emit("setTooltipVisible", i);
79
+ return a = c.call.apply(c, [this].concat(n)), h(S(a), "virtualElement", W() ? document.createElement("div") : {}), h(S(a), "activeIndexPie", void 0), h(S(a), "canAnimatedHover", !1), h(S(a), "bindHandlerTooltip", function(i, o, d) {
80
+ return function(u) {
81
+ var r = u.clientX, l = u.clientY, v = a.asProps.eventEmitter;
82
+ v.emit("setTooltipPosition", r, l), v.emit("setTooltipRenderingProps", o, d), v.emit("setTooltipVisible", i);
83
83
  };
84
- }), h(E(a), "animationActivePie", function(i) {
85
- var o = i.data, d = i.active, l = i.selector, r = i.element, u = a.asProps, v = u.duration, m = u.innerRadius, A = u.d3Arc, f = u.paddingAngle, _ = A.outerRadius()(), b = d ? [+r.dataset.currentRadius || _, _ + T] : [+r.dataset.currentRadius || _, _];
84
+ }), h(S(a), "animationActivePie", function(i) {
85
+ var o = i.data, d = i.active, u = i.selector, r = i.element, l = a.asProps, v = l.duration, p = l.innerRadius, A = l.d3Arc, f = l.paddingAngle, _ = A.outerRadius()(), R = d ? [+r.dataset.currentRadius || _, _ + T] : [+r.dataset.currentRadius || _, _];
86
86
  a.canAnimatedHover && v > 0 && nt({
87
87
  data: o,
88
- selector: "#".concat(a.id, " ").concat(l),
88
+ selector: "#".concat(a.id, " ").concat(u),
89
89
  element: r,
90
90
  duration: v === 0 ? 0 : 300,
91
- innerRadius: m,
92
- outerRadiusStartEnd: b,
91
+ innerRadius: p,
92
+ outerRadiusStartEnd: R,
93
93
  paddingAngle: f
94
94
  });
95
- }), h(E(a), "animationTimeout", null), h(E(a), "animationUpdatePie", function() {
95
+ }), h(S(a), "animationTimeout", null), h(S(a), "animationUpdatePie", function() {
96
96
  clearTimeout(a.animationTimeout), a.animationTimeout = setTimeout(function() {
97
- var i = a.asProps, o = i.duration, d = i.d3Arc, l = i.halfsize, r = i.d3ArcOut;
97
+ var i = a.asProps, o = i.duration, d = i.d3Arc, u = i.halfsize, r = i.d3ArcOut;
98
98
  a.canAnimatedHover = !1, o > 0 ? rt({
99
99
  selector: "#".concat(a.id, ' [data-ui-name="Donut.Pie"]'),
100
100
  duration: o,
101
101
  arcs: a.arcs,
102
- halfsize: l,
102
+ halfsize: u,
103
103
  d3Arc: d,
104
104
  d3ArcOut: r,
105
105
  activeIndexPie: a.activeIndexPie
@@ -109,7 +109,7 @@ var D = /* @__PURE__ */ function(t) {
109
109
  }, 0);
110
110
  }), a;
111
111
  }
112
- return j(g, [{
112
+ return N(m, [{
113
113
  key: "id",
114
114
  get: function() {
115
115
  var e = this.asProps, n = e.uid, s = e.id;
@@ -134,37 +134,37 @@ var D = /* @__PURE__ */ function(t) {
134
134
  key: "getArcs",
135
135
  value: function() {
136
136
  var e = this.asProps, n = e.Children, s = e.data, i = e.d3Pie, o = Object.entries(s);
137
- if (i[k]) {
138
- var d = p.Children.toArray(J(n)).reduce(function(r, u) {
139
- return /* @__PURE__ */ p.isValidElement(u) && u.type === lt.Pie && r.push(u.props.dataKey), r;
137
+ if (i[I]) {
138
+ var d = g.Children.toArray(J(n)).reduce(function(r, l) {
139
+ return /* @__PURE__ */ g.isValidElement(l) && l.type === ut.Pie && r.push(l.props.dataKey), r;
140
140
  }, []);
141
141
  o = Object.entries(s).filter(function(r) {
142
- var u = P(r, 2), v = u[0], m = u[1];
143
- return d.includes(v) && m > 0;
144
- }).sort(function(r, u) {
145
- var v = P(r, 1), m = v[0], A = P(u, 1), f = A[0];
146
- return d.indexOf(m) > d.indexOf(f) ? 1 : -1;
142
+ var l = P(r, 2), v = l[0], p = l[1];
143
+ return d.includes(v) && p > 0;
144
+ }).sort(function(r, l) {
145
+ var v = P(r, 1), p = v[0], A = P(l, 1), f = A[0];
146
+ return d.indexOf(p) > d.indexOf(f) ? 1 : -1;
147
147
  });
148
148
  }
149
- var l = o.reduce(function(r, u) {
150
- return u[1] && (r += u[1]), r;
149
+ var u = o.reduce(function(r, l) {
150
+ return l[1] && (r += l[1]), r;
151
151
  }, 0) / 100;
152
152
  return o = o.map(function(r) {
153
- return r[1] && r[1] < l && (r[1] = l), r;
153
+ return r[1] && r[1] < u && (r[1] = u), r;
154
154
  }), i(o);
155
155
  }
156
156
  }, {
157
157
  key: "getPieProps",
158
158
  value: function(e, n) {
159
- var s = this, i = this.asProps, o = i.d3Arc, d = i.d3ArcOut, l = i.innerRadius, r = i.outerRadius, u = i.halfsize, v = i.resolveColor, m = i.uid, A = i.patterns, f = e.active, _ = this.arcs.find(function(R) {
160
- return R.data[0] === e.dataKey;
159
+ var s = this, i = this.asProps, o = i.d3Arc, d = i.d3ArcOut, u = i.innerRadius, r = i.outerRadius, l = i.halfsize, v = i.resolveColor, p = i.uid, A = i.patterns, f = e.active, _ = this.arcs.find(function(y) {
160
+ return y.data[0] === e.dataKey;
161
161
  });
162
162
  f && (this.activeIndexPie = n);
163
- var b = {
163
+ var R = {
164
164
  dataKey: e.dataKey,
165
165
  name: e.name,
166
166
  resolveColor: v,
167
- color: e.color || $(n),
167
+ color: e.color || H(n),
168
168
  active: e.active,
169
169
  transparent: e.transparent,
170
170
  patterns: A
@@ -173,30 +173,30 @@ var D = /* @__PURE__ */ function(t) {
173
173
  data: _,
174
174
  d3Arc: o,
175
175
  d3ArcOut: d,
176
- innerRadius: l,
176
+ innerRadius: u,
177
177
  outerRadius: r,
178
- uid: "".concat(m, "-").concat(n),
178
+ uid: "".concat(p, "-").concat(n),
179
179
  patterns: A,
180
- halfsize: u,
181
- color: e.color || $(n),
180
+ halfsize: l,
181
+ color: e.color || H(n),
182
182
  resolveColor: v,
183
183
  $animationActivePie: this.animationActivePie,
184
- onMouseMove: this.bindHandlerTooltip(!0, e, b),
185
- onMouseLeave: this.bindHandlerTooltip(!1, e, b),
186
- onMouseOver: function(y) {
184
+ onMouseMove: this.bindHandlerTooltip(!0, e, R),
185
+ onMouseLeave: this.bindHandlerTooltip(!1, e, R),
186
+ onMouseOver: function(E) {
187
187
  f || s.animationActivePie({
188
188
  active: !0,
189
189
  data: _,
190
- selector: '[d="'.concat(y.target.getAttribute("d"), '"]'),
191
- element: y.target
190
+ selector: '[d="'.concat(E.target.getAttribute("d"), '"]'),
191
+ element: E.target
192
192
  });
193
193
  },
194
- onMouseOut: function(y) {
194
+ onMouseOut: function(E) {
195
195
  f || s.animationActivePie({
196
196
  active: !1,
197
197
  data: _,
198
- selector: '[d="'.concat(y.target.getAttribute("d"), '"]'),
199
- element: y.target
198
+ selector: '[d="'.concat(E.target.getAttribute("d"), '"]'),
199
+ element: E.target
200
200
  });
201
201
  }
202
202
  };
@@ -225,8 +225,8 @@ var D = /* @__PURE__ */ function(t) {
225
225
  value: function() {
226
226
  var e = this.asProps, n = e.halfsize, s = e.size;
227
227
  this.asProps.dataHintsHandler.establishDataType("values-set");
228
- var i = P(s, 2), o = i[0], d = i[1], l = this.Element, r = n ? 1 : 2;
229
- return this.arcs = this.getArcs(), /* @__PURE__ */ p.createElement(l, {
228
+ var i = P(s, 2), o = i[0], d = i[1], u = this.Element, r = n ? 1 : 2;
229
+ return this.arcs = this.getArcs(), /* @__PURE__ */ g.createElement(u, {
230
230
  "aria-hidden": !0,
231
231
  id: this.id,
232
232
  render: "g",
@@ -234,65 +234,65 @@ var D = /* @__PURE__ */ function(t) {
234
234
  transform: "translate(".concat(o / 2, ",").concat(d / r, ")")
235
235
  });
236
236
  }
237
- }]), g;
238
- }(G);
239
- h(D, "displayName", "Donut");
240
- h(D, "style", at);
241
- h(D, "enhance", [Q()]);
242
- h(D, "defaultProps", function(t) {
243
- var c = t.innerRadius, g = c === void 0 ? 0 : c, a = t.paddingAngle, e = a === void 0 ? 0 : a, n = t.outerRadius, s = t.halfsize, i = s === void 0 ? !1 : s, o = t.$rootProps.size, d = C().outerRadius(n || x({
237
+ }]), m;
238
+ }(X);
239
+ h(b, "displayName", "Donut");
240
+ h(b, "style", at);
241
+ h(b, "enhance", [Q()]);
242
+ h(b, "defaultProps", function(t) {
243
+ var c = t.innerRadius, m = c === void 0 ? 0 : c, a = t.paddingAngle, e = a === void 0 ? 0 : a, n = t.outerRadius, s = t.halfsize, i = s === void 0 ? !1 : s, o = t.$rootProps.size, d = z().outerRadius(n || $({
244
244
  size: o,
245
245
  halfsize: i,
246
246
  outerRadius: n
247
- })).innerRadius(g).padAngle(e), l = C().outerRadius((n || x({
247
+ })).innerRadius(m).padAngle(e), u = z().outerRadius((n || $({
248
248
  size: o,
249
249
  halfsize: i
250
- })) + T).innerRadius(g).padAngle(e), r = q().sort(null).value(function(u) {
251
- var v = P(u, 2), m = v[1];
252
- return m;
250
+ })) + T).innerRadius(m).padAngle(e), r = Y().sort(null).value(function(l) {
251
+ var v = P(l, 2), p = v[1];
252
+ return p;
253
253
  });
254
- return r[k] = !0, i && (r = r.startAngle(-Math.PI / 2).endAngle(Math.PI / 2)), {
254
+ return r[I] = !0, i && (r = r.startAngle(-Math.PI / 2).endAngle(Math.PI / 2)), {
255
255
  d3Pie: r,
256
256
  d3Arc: d,
257
- d3ArcOut: l,
257
+ d3ArcOut: u,
258
258
  duration: 500,
259
259
  paddingAngle: e
260
260
  };
261
261
  });
262
262
  function it(t) {
263
- var c, g = t.Element, a = t.styles, e = t.d3Arc, n = t.data, s = t.color, i = t.$animationActivePie, o = t.active, d = t.d3ArcOut, l = t.name, r = t.dataKey, u = t.dataHintsHandler, v = t.transparent, m = t.innerRadius, A = t.outerRadius, f = t.resolveColor, _ = t.halfsize, b = t.uid, R = t.patterns, y = F(t, et), L = p.useState(!1), H = P(L, 2), K = H[0], U = H[1], S = p.useRef(null);
264
- return p.useEffect(function() {
265
- if (S.current) {
266
- if (S.current.dataset.currentRadius = (o ? d : e).outerRadius()(), !K) {
267
- U(!0);
263
+ var c, m = t.Element, a = t.styles, e = t.d3Arc, n = t.data, s = t.color, i = t.$animationActivePie, o = t.active, d = t.d3ArcOut, u = t.name, r = t.dataKey, l = t.dataHintsHandler, v = t.transparent, p = t.innerRadius, A = t.outerRadius, f = t.resolveColor, _ = t.halfsize, R = t.uid, y = t.patterns, E = w(t, et), k = g.useState(!1), O = P(k, 2), L = O[0], K = O[1], D = g.useRef(null);
264
+ return g.useEffect(function() {
265
+ if (D.current) {
266
+ if (D.current.dataset.currentRadius = (o ? d : e).outerRadius()(), !L) {
267
+ K(!0);
268
268
  return;
269
269
  }
270
270
  o != null && i({
271
271
  active: o,
272
272
  data: n,
273
- selector: '[name="'.concat(y.name, '"]'),
274
- element: S.current
273
+ selector: '[name="'.concat(E.name, '"]'),
274
+ element: D.current
275
275
  });
276
276
  }
277
- }, [o, !!n]), p.useEffect(function() {
278
- S.current && (S.current.dataset.currentRadius = (o ? d : e).outerRadius()());
279
- }, [o, m, A, _, !!n]), n ? (u.establishDataType("values-set"), u.describeValueEntity(r, l), /* @__PURE__ */ p.createElement(p.Fragment, null, (c = z(a), /* @__PURE__ */ p.createElement(g, c.cn("SPie", {
277
+ }, [o, !!n]), g.useEffect(function() {
278
+ D.current && (D.current.dataset.currentRadius = (o ? d : e).outerRadius()());
279
+ }, [o, p, A, _, !!n]), n ? (l.establishDataType("values-set"), l.describeValueEntity(r, u), /* @__PURE__ */ g.createElement(g.Fragment, null, (c = q(a), /* @__PURE__ */ g.createElement(m, c.cn("SPie", {
280
280
  render: "path",
281
- ref: S,
281
+ ref: D,
282
282
  color: f(s),
283
- pattern: R ? "url(#".concat(b, "-pattern)") : void 0,
283
+ pattern: y ? "url(#".concat(R, "-pattern)") : void 0,
284
284
  d: o ? d(n) : e(n),
285
285
  transparent: v
286
- }))), R && /* @__PURE__ */ p.createElement(tt, c.cn("PatternFill", {
287
- id: "".concat(b, "-pattern"),
286
+ }))), y && /* @__PURE__ */ g.createElement(tt, c.cn("PatternFill", {
287
+ id: "".concat(R, "-pattern"),
288
288
  patternKey: s,
289
289
  color: f(s),
290
- patterns: R
290
+ patterns: y
291
291
  })))) : null;
292
292
  }
293
293
  function ot(t) {
294
- var c, g = t.Element, a = t.styles, e = t.d3Arc, n = t.color, s = t.resolveColor;
295
- return c = z(a), /* @__PURE__ */ p.createElement(g, c.cn("SEmptyData", {
294
+ var c, m = t.Element, a = t.styles, e = t.d3Arc, n = t.color, s = t.resolveColor;
295
+ return c = q(a), /* @__PURE__ */ g.createElement(m, c.cn("SEmptyData", {
296
296
  render: "path",
297
297
  color: s(n),
298
298
  d: e({
@@ -302,25 +302,25 @@ function ot(t) {
302
302
  }));
303
303
  }
304
304
  function st(t) {
305
- var c, g = t.Element, a = t.styles, e = t.Children, n = t.children, s = t.label, i = t.dataHintsHandler, o = t.x, d = o === void 0 ? 0 : o, l = t.y, r = l === void 0 ? 0 : l;
306
- return i.setTitle("vertical", s || n), c = z(a), /* @__PURE__ */ p.createElement(g, c.cn("SLabel", {
305
+ var c, m = t.Element, a = t.styles, e = t.Children, n = t.children, s = t.label, i = t.dataHintsHandler, o = t.x, d = o === void 0 ? 0 : o, u = t.y, r = u === void 0 ? 0 : u;
306
+ return i.setTitle("vertical", s || n), c = q(a), /* @__PURE__ */ g.createElement(m, c.cn("SLabel", {
307
307
  render: "text",
308
308
  x: d,
309
309
  y: r,
310
310
  "aria-hidden": !0
311
- }), /* @__PURE__ */ p.createElement(e, c.cn("Children", {})));
311
+ }), /* @__PURE__ */ g.createElement(e, c.cn("Children", {})));
312
312
  }
313
- var ut = function(c) {
314
- var g = arguments[0], a, e = I;
315
- return a = z(c.styles), /* @__PURE__ */ p.createElement(e, a.cn("SDonutTooltip", w({}, Y({
313
+ var lt = function(c) {
314
+ var m = arguments[0], a, e = M;
315
+ return a = q(c.styles), /* @__PURE__ */ g.createElement(e, a.cn("SDonutTooltip", U({}, G({
316
316
  excludeAnchorProps: !0
317
- }, g))));
318
- }, lt = Z(D, {
317
+ }, m))));
318
+ }, ut = Z(b, {
319
319
  Pie: it,
320
320
  Label: st,
321
321
  EmptyData: ot,
322
- Tooltip: [ut, I._______childrenComponents]
322
+ Tooltip: [lt, M._______childrenComponents]
323
323
  });
324
324
  export {
325
- lt as default
325
+ ut as default
326
326
  };
@@ -1,8 +1,8 @@
1
- import v from "@babel/runtime/helpers/esm/slicedToArray";
1
+ import u from "@babel/runtime/helpers/esm/slicedToArray";
2
2
  import { sstyled as U } from 'intergalactic/utils/lib/core/index';
3
3
  import { bisector as W } from "d3-array";
4
4
  import o from "react";
5
- import { sstyled as S } from 'intergalactic/core';
5
+ import { sstyled as w } from 'intergalactic/core';
6
6
  import A from 'intergalactic/utils/lib/rafTrottle';
7
7
  import Y from "./createElement.mjs";
8
8
  import { interpolateValue as Z, eventToPoint as tt, invert as et, getChartDefaultColorName as rt } from "./utils.mjs";
@@ -11,75 +11,75 @@ var nt = (
11
11
  /*__reshadow_css_start__*/
12
12
  (U.insert(
13
13
  /*__inner_css_start__*/
14
- ".___SDots_1lpbz_gg_ .___SDot_1lpbz_gg_{transition-duration:var(--duration_1lpbz)}.___SDot_1lpbz_gg_{stroke-width:1px;stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy,x,y;transition-timing-function:ease-in-out}.___SDot_1lpbz_gg_.__hide_1lpbz_gg_{display:none}.___SDot_1lpbz_gg_.__color_1lpbz_gg_{fill:var(--color_1lpbz)}.___SDot_1lpbz_gg_.__transparent_1lpbz_gg_{opacity:.3}",
15
- "1lpbz_gg_"
14
+ ".___SDots_wl49d_gg_ .___SDot_wl49d_gg_{transition-duration:var(--duration_wl49d)}.___SDot_wl49d_gg_{stroke-width:1px;stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy,x,y;transition-timing-function:ease-in-out}.___SDot_wl49d_gg_.__hide_wl49d_gg_{display:none}.___SDot_wl49d_gg_.__color_wl49d_gg_{fill:var(--color_wl49d)}.___SDot_wl49d_gg_.__transparent_wl49d_gg_{opacity:.3}",
15
+ "wl49d_gg_"
16
16
  ), {
17
- __SDot: "___SDot_1lpbz_gg_",
18
- _hide: "__hide_1lpbz_gg_",
19
- _color: "__color_1lpbz_gg_",
20
- "--color": "--color_1lpbz",
21
- _transparent: "__transparent_1lpbz_gg_",
22
- __SDots: "___SDots_1lpbz_gg_",
23
- "--duration": "--duration_1lpbz"
17
+ __SDot: "___SDot_wl49d_gg_",
18
+ _hide: "__hide_wl49d_gg_",
19
+ _color: "__color_wl49d_gg_",
20
+ "--color": "--color_wl49d",
21
+ _transparent: "__transparent_wl49d_gg_",
22
+ __SDots: "___SDots_wl49d_gg_",
23
+ "--duration": "--duration_wl49d"
24
24
  })
25
25
  );
26
26
  function I(t) {
27
- var z, h = t.Element, d = t.styles, f = t.color, n = t.d3, D = t.x, x = t.y, b = t.eventEmitter, g = t.display, M = t.hide, N = t.rootRef, m = t.scale, R = t.duration, X = R === void 0 ? 500 : R, C = t.transparent, E = t.radius, B = E === void 0 ? 4 : E, P = t.resolveColor, s = t.patterns, V = W(function(e) {
28
- return e[D];
29
- }).center, j = o.useState(null), k = v(j, 2), y = k[0], $ = k[1], _ = o.useMemo(function() {
27
+ var h, D = t.Element, v = t.styles, f = t.color, n = t.d3, x = t.x, M = t.y, g = t.eventEmitter, m = t.display, R = t.hide, N = t.rootRef, y = t.scale, p = t.duration, X = p === void 0 ? 500 : p, C = t.transparent, E = t.radius, B = E === void 0 ? 4 : E, P = t.resolveColor, s = t.patterns, V = W(function(e) {
28
+ return e[x];
29
+ }).center, j = o.useState(null), k = u(j, 2), S = k[0], $ = k[1], _ = o.useMemo(function() {
30
30
  return t.data.filter(function(e) {
31
- return e[x] !== Z;
31
+ return e[M] !== Z;
32
32
  });
33
33
  }, [t.data]), q = o.useCallback(A(function(e) {
34
- var a = v(m, 1), r = a[0], c = tt(e, N.current), u = v(c, 1), i = u[0], l = et(r, i);
34
+ var a = u(y, 1), r = a[0], d = tt(e, N.current), c = u(d, 1), i = c[0], l = et(r, i);
35
35
  $(V(_, l));
36
- }), [m, _]), F = o.useCallback(A(function() {
36
+ }), [y, _]), F = o.useCallback(A(function() {
37
37
  $(null);
38
38
  }), []);
39
39
  o.useEffect(function() {
40
- var e = b.subscribe("onMouseMoveChart", function(r) {
40
+ var e = g.subscribe("onMouseMoveChart", function(r) {
41
41
  r.persist(), q(r);
42
- }), a = b.subscribe("onMouseLeaveChart", F);
42
+ }), a = g.subscribe("onMouseLeaveChart", F);
43
43
  return function() {
44
44
  e(), a();
45
45
  };
46
- }, [b, m, _, D, x]);
46
+ }, [g, y, _, x, M]);
47
47
  var G = _.reduce(function(e, a, r) {
48
- var c = n.defined()(_[r - 1] || {}), u = n.defined()(_[r + 1] || {}), i = r === y, l = typeof g == "function" ? g(r, r === y, !c && !u) : g || r === y || !c && !u, T = B * (i ? 5 / 4 : 1);
48
+ var d = n.defined()(_[r - 1] || {}), c = n.defined()(_[r + 1] || {}), i = r === S, l = typeof m == "function" ? m(r, r === S, !d && !c) : m || r === S || !d && !c, T = B * (i ? 5 / 4 : 1);
49
49
  if (!n.defined()(a) || !l) return e;
50
- var p = f || rt(0), J = at({
51
- patternKey: p,
50
+ var b = f || rt(0), J = at({
51
+ patternKey: b,
52
52
  patterns: s
53
- }), K = v(J, 2), O = K[0], Q = K[1];
53
+ }), z = u(J, 2), O = z[0], Q = z[1];
54
54
  if (s) {
55
- var w;
56
- e.push((w = S(d), /* @__PURE__ */ o.createElement(h, w.cn("SDot", {
55
+ var L;
56
+ e.push((L = w(v), /* @__PURE__ */ o.createElement(D, L.cn("SDot", {
57
57
  render: ot,
58
58
  color: P(f),
59
- patternKey: p,
59
+ patternKey: b,
60
60
  patterns: s,
61
61
  key: "".concat(r),
62
62
  value: a,
63
63
  visible: l,
64
64
  active: i,
65
- hide: M,
65
+ hide: R,
66
66
  transparent: C,
67
67
  x: n.x()(a) - O / 2,
68
68
  y: n.y()(a) - Q / 2,
69
69
  radius: T
70
70
  }))));
71
71
  } else {
72
- var L;
73
- e.push((L = S(d), /* @__PURE__ */ o.createElement(h, L.cn("SDot", {
72
+ var K;
73
+ e.push((K = w(v), /* @__PURE__ */ o.createElement(D, K.cn("SDot", {
74
74
  render: "circle",
75
75
  color: P(f),
76
- patternKey: p,
76
+ patternKey: b,
77
77
  patterns: s,
78
78
  key: "".concat(r),
79
79
  value: a,
80
80
  visible: l,
81
81
  active: i,
82
- hide: M,
82
+ hide: R,
83
83
  transparent: C,
84
84
  cx: n.x()(a),
85
85
  cy: n.y()(a),
@@ -88,12 +88,12 @@ function I(t) {
88
88
  }
89
89
  return e;
90
90
  }, []), H = "g";
91
- return z = S(d), /* @__PURE__ */ o.createElement(H, z.cn("SDots", {
91
+ return h = w(v), /* @__PURE__ */ o.createElement(H, h.cn("SDots", {
92
92
  duration: "".concat(X, "ms")
93
93
  }), G);
94
94
  }
95
95
  I.style = nt;
96
- const bt = Y(I);
96
+ const gt = Y(I);
97
97
  export {
98
- bt as default
98
+ gt as default
99
99
  };