@spaziodati/atoka-design-system 2.0.72-beta

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 (294) hide show
  1. package/AddableItems/AddableItems.d.ts +72 -0
  2. package/AddableItems/ClickableExcludableItem.d.ts +23 -0
  3. package/AddableItems/ClickableItemList.d.ts +32 -0
  4. package/AddableItems/index.d.ts +1 -0
  5. package/AddableItems/index.js +1046 -0
  6. package/AddableItems/index.js.map +1 -0
  7. package/Alert/Alert.d.ts +37 -0
  8. package/Alert/index.d.ts +1 -0
  9. package/Alert/index.js +319 -0
  10. package/Alert/index.js.map +1 -0
  11. package/Badge/Badge.d.ts +38 -0
  12. package/Badge/index.d.ts +1 -0
  13. package/Badge/index.js +285 -0
  14. package/Badge/index.js.map +1 -0
  15. package/Bs4V3Wrapper/Bs4V3Wrapper.d.ts +7 -0
  16. package/Bs4V3Wrapper/StoryWrapper.d.ts +8 -0
  17. package/Bs4V3Wrapper/index.d.ts +1 -0
  18. package/Bs4V3Wrapper/index.js +251 -0
  19. package/Bs4V3Wrapper/index.js.map +1 -0
  20. package/BubbleChart/BubbleChart.d.ts +33 -0
  21. package/BubbleChart/BubbleChartUI.d.ts +31 -0
  22. package/BubbleChart/index.d.ts +1 -0
  23. package/BubbleChart/index.js +3793 -0
  24. package/BubbleChart/index.js.map +1 -0
  25. package/Button/Button.d.ts +29 -0
  26. package/Button/Button.storiesConfig.d.ts +68 -0
  27. package/Button/index.d.ts +1 -0
  28. package/Button/index.js +323 -0
  29. package/Button/index.js.map +1 -0
  30. package/ButtonDropdown/ButtonDropdown.d.ts +23 -0
  31. package/ButtonDropdown/index.d.ts +2 -0
  32. package/ButtonDropdown/index.js +603 -0
  33. package/ButtonDropdown/index.js.map +1 -0
  34. package/CardsPage/CardsPage.d.ts +12 -0
  35. package/CardsPage/CardsPageActions.d.ts +2 -0
  36. package/CardsPage/CardsPageCards.d.ts +5 -0
  37. package/CardsPage/CardsPageCardsCounter.d.ts +7 -0
  38. package/CardsPage/CardsPageFilters.d.ts +3 -0
  39. package/CardsPage/CardsPageHeader.d.ts +11 -0
  40. package/CardsPage/CardsPageLayoutMode.d.ts +13 -0
  41. package/CardsPage/CardsPageSelectionActions.d.ts +17 -0
  42. package/CardsPage/CardsPageSelectionToggler.d.ts +8 -0
  43. package/CardsPage/CardsPageSorting.d.ts +15 -0
  44. package/CardsPage/CardsPageSubtitle.d.ts +2 -0
  45. package/CardsPage/CardsPageTabContent.d.ts +19 -0
  46. package/CardsPage/CardsPageTabSwitcher.d.ts +3 -0
  47. package/CardsPage/CardsPageTitle.d.ts +2 -0
  48. package/CardsPage/index.d.ts +2 -0
  49. package/CardsPage/index.js +2511 -0
  50. package/CardsPage/index.js.map +1 -0
  51. package/CursorPagination/CursorPagination.d.ts +21 -0
  52. package/CursorPagination/index.d.ts +1 -0
  53. package/CursorPagination/index.js +952 -0
  54. package/CursorPagination/index.js.map +1 -0
  55. package/DatePicker/DatePicker.d.ts +27 -0
  56. package/DatePicker/index.d.ts +1 -0
  57. package/DatePicker/index.js +452 -0
  58. package/DatePicker/index.js.map +1 -0
  59. package/DetailPage/DetailPage.d.ts +18 -0
  60. package/DetailPage/DetailPageBodyContainer.d.ts +2 -0
  61. package/DetailPage/DetailPageBodySection.d.ts +3 -0
  62. package/DetailPage/DetailPageHeaderContainer.d.ts +7 -0
  63. package/DetailPage/DetailPageHeaderUI.d.ts +12 -0
  64. package/DetailPage/DetailPageMenuContainer.d.ts +2 -0
  65. package/DetailPage/DetailPageMenuUI.d.ts +4 -0
  66. package/DetailPage/index.d.ts +1 -0
  67. package/DetailPage/index.js +2066 -0
  68. package/DetailPage/index.js.map +1 -0
  69. package/Dropdown/AtokaDropdownToggles.d.ts +11 -0
  70. package/Dropdown/Dropdown.d.ts +12 -0
  71. package/Dropdown/DropdownMenu.d.ts +7 -0
  72. package/Dropdown/index.d.ts +3 -0
  73. package/Dropdown/index.js +723 -0
  74. package/Dropdown/index.js.map +1 -0
  75. package/EditableString/EditableString.d.ts +42 -0
  76. package/EditableString/index.d.ts +1 -0
  77. package/EditableString/index.js +3321 -0
  78. package/EditableString/index.js.map +1 -0
  79. package/EllipsableContent/EllipsableContent.d.ts +18 -0
  80. package/EllipsableContent/index.d.ts +1 -0
  81. package/EllipsableContent/index.js +784 -0
  82. package/EllipsableContent/index.js.map +1 -0
  83. package/EmptyState/EmptyState.d.ts +12 -0
  84. package/EmptyState/index.d.ts +1 -0
  85. package/EmptyState/index.js +278 -0
  86. package/EmptyState/index.js.map +1 -0
  87. package/Facet/Facet.d.ts +21 -0
  88. package/Facet/FacetHelp.d.ts +28 -0
  89. package/Facet/FacetItemCount.d.ts +7 -0
  90. package/Facet/FacetSubtitle.d.ts +2 -0
  91. package/Facet/index.d.ts +1 -0
  92. package/Facet/index.js +914 -0
  93. package/Facet/index.js.map +1 -0
  94. package/FacetSection/FacetSection.d.ts +21 -0
  95. package/FacetSection/index.d.ts +1 -0
  96. package/FacetSection/index.js +443 -0
  97. package/FacetSection/index.js.map +1 -0
  98. package/FadeAnimation/FadeAnimation.d.ts +14 -0
  99. package/FadeAnimation/index.d.ts +1 -0
  100. package/FadeAnimation/index.js +1228 -0
  101. package/FadeAnimation/index.js.map +1 -0
  102. package/FeedbackButton/FeedbackButton.d.ts +19 -0
  103. package/FeedbackButton/index.d.ts +1 -0
  104. package/FeedbackButton/index.js +398 -0
  105. package/FeedbackButton/index.js.map +1 -0
  106. package/Form/Form.d.ts +23 -0
  107. package/Form/FormCheckbox.d.ts +10 -0
  108. package/Form/FormControl.d.ts +23 -0
  109. package/Form/FormControlFeedBack.d.ts +6 -0
  110. package/Form/FormHelp.d.ts +7 -0
  111. package/Form/FormLabel.d.ts +4 -0
  112. package/Form/FormRadio.d.ts +10 -0
  113. package/Form/index.d.ts +1 -0
  114. package/Form/index.js +450 -0
  115. package/Form/index.js.map +1 -0
  116. package/Funnel/Funnel.d.ts +54 -0
  117. package/Funnel/SVGDataLabel.d.ts +11 -0
  118. package/Funnel/index.d.ts +1 -0
  119. package/Funnel/index.js +3997 -0
  120. package/Funnel/index.js.map +1 -0
  121. package/GridCard/Fixtures.d.ts +3 -0
  122. package/GridCard/GridCard.d.ts +20 -0
  123. package/GridCard/GridCardContent.d.ts +2 -0
  124. package/GridCard/GridCardFooter.d.ts +2 -0
  125. package/GridCard/GridCardHeader.d.ts +14 -0
  126. package/GridCard/GridCardMenu.d.ts +2 -0
  127. package/GridCard/GridCardTags.d.ts +2 -0
  128. package/GridCard/GridCardTitle.d.ts +6 -0
  129. package/GridCard/index.d.ts +1 -0
  130. package/GridCard/index.js +1618 -0
  131. package/GridCard/index.js.map +1 -0
  132. package/HighlightableText/HighlightableText.d.ts +21 -0
  133. package/HighlightableText/index.d.ts +1 -0
  134. package/HighlightableText/index.js +624 -0
  135. package/HighlightableText/index.js.map +1 -0
  136. package/Histogram/Histogram.d.ts +126 -0
  137. package/Histogram/Types.d.ts +19 -0
  138. package/Histogram/index.d.ts +1 -0
  139. package/Histogram/index.js +2359 -0
  140. package/Histogram/index.js.map +1 -0
  141. package/InlineStringEditor/InlineStringEditor.d.ts +49 -0
  142. package/InlineStringEditor/index.d.ts +1 -0
  143. package/InlineStringEditor/index.js +1882 -0
  144. package/InlineStringEditor/index.js.map +1 -0
  145. package/InputGroup/InputGroup.d.ts +16 -0
  146. package/InputGroup/InputGroupText.d.ts +2 -0
  147. package/InputGroup/index.d.ts +1 -0
  148. package/InputGroup/index.js +279 -0
  149. package/InputGroup/index.js.map +1 -0
  150. package/Jumbotron/Jumbotron.d.ts +16 -0
  151. package/Jumbotron/index.d.ts +1 -0
  152. package/Jumbotron/index.js +270 -0
  153. package/Jumbotron/index.js.map +1 -0
  154. package/Map/Map.d.ts +27 -0
  155. package/Map/MapChoropleth.d.ts +31 -0
  156. package/Map/MapControl.d.ts +13 -0
  157. package/Map/MapLegendContent.d.ts +27 -0
  158. package/Map/MapPopup.d.ts +5 -0
  159. package/Map/MapUtils.d.ts +2 -0
  160. package/Map/Types.d.ts +38 -0
  161. package/Map/index.d.ts +2 -0
  162. package/Map/index.js +4810 -0
  163. package/Map/index.js.map +1 -0
  164. package/Modal/Modal.d.ts +32 -0
  165. package/Modal/index.d.ts +1 -0
  166. package/Modal/index.js +743 -0
  167. package/Modal/index.js.map +1 -0
  168. package/Navbar/Navbar.d.ts +42 -0
  169. package/Navbar/NavbarMobileMenuCollapse.d.ts +3 -0
  170. package/Navbar/NavbarMobileMenuToggle.d.ts +3 -0
  171. package/Navbar/NavbarNavigationMenu.d.ts +9 -0
  172. package/Navbar/NavbarNavigationMenuItem.d.ts +9 -0
  173. package/Navbar/NavbarNinjaMenu.d.ts +6 -0
  174. package/Navbar/NavbarNinjaMenuItem.d.ts +6 -0
  175. package/Navbar/NavbarNotificationMenu.d.ts +12 -0
  176. package/Navbar/NavbarNotificationMenuItem.d.ts +8 -0
  177. package/Navbar/NavbarOverlaySearch.d.ts +28 -0
  178. package/Navbar/NavbarOverlaySearchCard.d.ts +9 -0
  179. package/Navbar/NavbarOverlaySearchResults.d.ts +12 -0
  180. package/Navbar/NavbarUserMenu.d.ts +9 -0
  181. package/Navbar/NavbarUserMenuItem.d.ts +6 -0
  182. package/Navbar/index.d.ts +1 -0
  183. package/Navbar/index.js +3521 -0
  184. package/Navbar/index.js.map +1 -0
  185. package/Pagination/Pagination.d.ts +27 -0
  186. package/Pagination/PaginationNext.d.ts +7 -0
  187. package/Pagination/PaginationPrev.d.ts +7 -0
  188. package/Pagination/index.d.ts +1 -0
  189. package/Pagination/index.js +994 -0
  190. package/Pagination/index.js.map +1 -0
  191. package/PieChart/PieChart.d.ts +71 -0
  192. package/PieChart/index.d.ts +1 -0
  193. package/PieChart/index.js +1986 -0
  194. package/PieChart/index.js.map +1 -0
  195. package/PublicFooter/PublicFooter.d.ts +6 -0
  196. package/PublicFooter/index.d.ts +1 -0
  197. package/PublicFooter/index.js +454 -0
  198. package/PublicFooter/index.js.map +1 -0
  199. package/PublicNavbar/PublicNavbar.d.ts +6 -0
  200. package/PublicNavbar/index.d.ts +1 -0
  201. package/PublicNavbar/index.js +255 -0
  202. package/PublicNavbar/index.js.map +1 -0
  203. package/RecordBit/RecordBit.d.ts +14 -0
  204. package/RecordBit/index.d.ts +1 -0
  205. package/RecordBit/index.js +482 -0
  206. package/RecordBit/index.js.map +1 -0
  207. package/ResultItemCard/ResultItemCard.d.ts +19 -0
  208. package/ResultItemCard/ResultItemCardActions.d.ts +3 -0
  209. package/ResultItemCard/ResultItemCardFooter.d.ts +6 -0
  210. package/ResultItemCard/ResultItemCardImage.d.ts +6 -0
  211. package/ResultItemCard/ResultItemCardSubtitle.d.ts +6 -0
  212. package/ResultItemCard/ResultItemCardText.d.ts +7 -0
  213. package/ResultItemCard/ResultItemCardTitle.d.ts +7 -0
  214. package/ResultItemCard/index.d.ts +1 -0
  215. package/ResultItemCard/index.js +1067 -0
  216. package/ResultItemCard/index.js.map +1 -0
  217. package/SelectDropdown/SelectDropdown.d.ts +29 -0
  218. package/SelectDropdown/index.d.ts +1 -0
  219. package/SelectDropdown/index.js +1520 -0
  220. package/SelectDropdown/index.js.map +1 -0
  221. package/Spinner/Spinner.d.ts +32 -0
  222. package/Spinner/index.d.ts +1 -0
  223. package/Spinner/index.js +325 -0
  224. package/Spinner/index.js.map +1 -0
  225. package/StatisticsItemCard/StatisticsItemCard.d.ts +35 -0
  226. package/StatisticsItemCard/index.d.ts +1 -0
  227. package/StatisticsItemCard/index.js +1786 -0
  228. package/StatisticsItemCard/index.js.map +1 -0
  229. package/StatisticsItemNumeric/StatisticsItemNumeric.d.ts +18 -0
  230. package/StatisticsItemNumeric/index.d.ts +1 -0
  231. package/StatisticsItemNumeric/index.js +283 -0
  232. package/StatisticsItemNumeric/index.js.map +1 -0
  233. package/StatisticsLegend/StatisticsLegend.d.ts +35 -0
  234. package/StatisticsLegend/StatisticsLegendItem.d.ts +50 -0
  235. package/StatisticsLegend/StatisticsSVGLegend.d.ts +26 -0
  236. package/StatisticsLegend/helpers.d.ts +19 -0
  237. package/StatisticsLegend/index.d.ts +3 -0
  238. package/StatisticsLegend/index.js +1571 -0
  239. package/StatisticsLegend/index.js.map +1 -0
  240. package/StatisticsTooltip/StatisticsTooltip.d.ts +20 -0
  241. package/StatisticsTooltip/helpers.d.ts +19 -0
  242. package/StatisticsTooltip/index.d.ts +2 -0
  243. package/StatisticsTooltip/index.js +796 -0
  244. package/StatisticsTooltip/index.js.map +1 -0
  245. package/Suggester/CustomOption.d.ts +29 -0
  246. package/Suggester/InputValueContainer.d.ts +11 -0
  247. package/Suggester/Suggester.d.ts +80 -0
  248. package/Suggester/getRenderCustomMultiValueWithIcon.d.ts +6 -0
  249. package/Suggester/index.d.ts +3 -0
  250. package/Suggester/index.js +1126 -0
  251. package/Suggester/index.js.map +1 -0
  252. package/SunBurst/SunBurst.d.ts +61 -0
  253. package/SunBurst/index.d.ts +2 -0
  254. package/SunBurst/index.js +1170 -0
  255. package/SunBurst/index.js.map +1 -0
  256. package/TabSwitcher/TabSwitcher.d.ts +35 -0
  257. package/TabSwitcher/TabSwitcherChoice.d.ts +21 -0
  258. package/TabSwitcher/index.d.ts +1 -0
  259. package/TabSwitcher/index.js +1135 -0
  260. package/TabSwitcher/index.js.map +1 -0
  261. package/Title/Title.d.ts +16 -0
  262. package/Title/index.d.ts +1 -0
  263. package/Title/index.js +302 -0
  264. package/Title/index.js.map +1 -0
  265. package/ToggleButtonGroup/ToggleButton.d.ts +15 -0
  266. package/ToggleButtonGroup/ToggleButtonGroup.d.ts +24 -0
  267. package/ToggleButtonGroup/index.d.ts +1 -0
  268. package/ToggleButtonGroup/index.js +609 -0
  269. package/ToggleButtonGroup/index.js.map +1 -0
  270. package/Tooltip/Tooltip.d.ts +20 -0
  271. package/Tooltip/index.d.ts +1 -0
  272. package/Tooltip/index.js +291 -0
  273. package/Tooltip/index.js.map +1 -0
  274. package/Utils/CommonTypes.d.ts +29 -0
  275. package/Utils/Statistics.d.ts +3 -0
  276. package/Utils/Style.d.ts +5 -0
  277. package/Utils/Text.d.ts +12 -0
  278. package/Utils/Utils.d.ts +12 -0
  279. package/Utils/index.d.ts +5 -0
  280. package/Utils/index.js +3379 -0
  281. package/Utils/index.js.map +1 -0
  282. package/atoka-design-system-2.0.72-beta.min.css +1 -0
  283. package/commonFixtures.d.ts +1 -0
  284. package/index.d.ts +51 -0
  285. package/index.js +15343 -0
  286. package/index.js.map +1 -0
  287. package/package.json +157 -0
  288. package/styles/animations-mixin.less +28 -0
  289. package/styles/atoka-bootstrap-fixed-mixins.less +81 -0
  290. package/styles/atoka-bootstrap-variables.less +70 -0
  291. package/styles/atoka-bs.less +99 -0
  292. package/styles/atoka-namespaced-bs.less +28 -0
  293. package/styles/variables.less +106 -0
  294. package/styles/variant-mixins.less +96 -0
@@ -0,0 +1,270 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("classnames"), require("react"), require("react-bootstrap/Jumbotron"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define("atoka-design-system", ["classnames", "react", "react-bootstrap/Jumbotron"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["atoka-design-system"] = factory(require("classnames"), require("react"), require("react-bootstrap/Jumbotron"));
8
+ else
9
+ root["atoka-design-system"] = factory(root["classnames"], root["react"], root["react-bootstrap/Jumbotron"]);
10
+ })(self, function(__WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__3161__) {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 5997:
16
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
17
+
18
+ // ESM COMPAT FLAG
19
+ __webpack_require__.r(__webpack_exports__);
20
+
21
+ // EXPORTS
22
+ __webpack_require__.d(__webpack_exports__, {
23
+ "Jumbotron": () => (/* reexport */ Jumbotron)
24
+ });
25
+
26
+ // EXTERNAL MODULE: external "classnames"
27
+ var external_classnames_ = __webpack_require__(8310);
28
+ var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
29
+ // EXTERNAL MODULE: external "react"
30
+ var external_react_ = __webpack_require__(8156);
31
+ var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
32
+ // EXTERNAL MODULE: external "react-bootstrap/Jumbotron"
33
+ var Jumbotron_ = __webpack_require__(3161);
34
+ var Jumbotron_default = /*#__PURE__*/__webpack_require__.n(Jumbotron_);
35
+ ;// CONCATENATED MODULE: ./src/components/Jumbotron/Jumbotron.tsx
36
+ var __extends = (undefined && undefined.__extends) || (function () {
37
+ var extendStatics = function (d, b) {
38
+ extendStatics = Object.setPrototypeOf ||
39
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
40
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
41
+ return extendStatics(d, b);
42
+ };
43
+ return function (d, b) {
44
+ extendStatics(d, b);
45
+ function __() { this.constructor = d; }
46
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
47
+ };
48
+ })();
49
+
50
+
51
+
52
+
53
+ /**
54
+ * ### Overview
55
+ *
56
+ * This component is a section used in our Pages website to display prominent information together with its call of action.
57
+ */
58
+ var Jumbotron = /** @class */ (function (_super) {
59
+ __extends(Jumbotron, _super);
60
+ function Jumbotron() {
61
+ return _super !== null && _super.apply(this, arguments) || this;
62
+ }
63
+ Jumbotron.prototype.render = function () {
64
+ var className = external_classnames_default()("jumbotron-" + this.props.variant, this.props.className);
65
+ return external_react_default().createElement((Jumbotron_default()), { className: className }, this.props.children);
66
+ };
67
+ Jumbotron.displayName = 'Jumbotron';
68
+ Jumbotron.defaultProps = {
69
+ variant: 'primary',
70
+ };
71
+ return Jumbotron;
72
+ }((external_react_default()).PureComponent));
73
+
74
+
75
+ ;// CONCATENATED MODULE: ./src/components/Jumbotron/index.ts
76
+
77
+
78
+
79
+ /***/ }),
80
+
81
+ /***/ 8310:
82
+ /***/ ((module) => {
83
+
84
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;
85
+
86
+ /***/ }),
87
+
88
+ /***/ 8156:
89
+ /***/ ((module) => {
90
+
91
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;
92
+
93
+ /***/ }),
94
+
95
+ /***/ 3161:
96
+ /***/ ((module) => {
97
+
98
+ module.exports = __WEBPACK_EXTERNAL_MODULE__3161__;
99
+
100
+ /***/ })
101
+
102
+ /******/ });
103
+ /************************************************************************/
104
+ /******/ // The module cache
105
+ /******/ var __webpack_module_cache__ = {};
106
+ /******/
107
+ /******/ // The require function
108
+ /******/ function __webpack_require__(moduleId) {
109
+ /******/ // Check if module is in cache
110
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
111
+ /******/ if (cachedModule !== undefined) {
112
+ /******/ return cachedModule.exports;
113
+ /******/ }
114
+ /******/ // Create a new module (and put it into the cache)
115
+ /******/ var module = __webpack_module_cache__[moduleId] = {
116
+ /******/ // no module.id needed
117
+ /******/ // no module.loaded needed
118
+ /******/ exports: {}
119
+ /******/ };
120
+ /******/
121
+ /******/ // Execute the module function
122
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
123
+ /******/
124
+ /******/ // Return the exports of the module
125
+ /******/ return module.exports;
126
+ /******/ }
127
+ /******/
128
+ /******/ // expose the modules object (__webpack_modules__)
129
+ /******/ __webpack_require__.m = __webpack_modules__;
130
+ /******/
131
+ /************************************************************************/
132
+ /******/ /* webpack/runtime/chunk loaded */
133
+ /******/ (() => {
134
+ /******/ var deferred = [];
135
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
136
+ /******/ if(chunkIds) {
137
+ /******/ priority = priority || 0;
138
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
139
+ /******/ deferred[i] = [chunkIds, fn, priority];
140
+ /******/ return;
141
+ /******/ }
142
+ /******/ var notFulfilled = Infinity;
143
+ /******/ for (var i = 0; i < deferred.length; i++) {
144
+ /******/ var [chunkIds, fn, priority] = deferred[i];
145
+ /******/ var fulfilled = true;
146
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
147
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
148
+ /******/ chunkIds.splice(j--, 1);
149
+ /******/ } else {
150
+ /******/ fulfilled = false;
151
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
152
+ /******/ }
153
+ /******/ }
154
+ /******/ if(fulfilled) {
155
+ /******/ deferred.splice(i--, 1)
156
+ /******/ var r = fn();
157
+ /******/ if (r !== undefined) result = r;
158
+ /******/ }
159
+ /******/ }
160
+ /******/ return result;
161
+ /******/ };
162
+ /******/ })();
163
+ /******/
164
+ /******/ /* webpack/runtime/compat get default export */
165
+ /******/ (() => {
166
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
167
+ /******/ __webpack_require__.n = (module) => {
168
+ /******/ var getter = module && module.__esModule ?
169
+ /******/ () => (module['default']) :
170
+ /******/ () => (module);
171
+ /******/ __webpack_require__.d(getter, { a: getter });
172
+ /******/ return getter;
173
+ /******/ };
174
+ /******/ })();
175
+ /******/
176
+ /******/ /* webpack/runtime/define property getters */
177
+ /******/ (() => {
178
+ /******/ // define getter functions for harmony exports
179
+ /******/ __webpack_require__.d = (exports, definition) => {
180
+ /******/ for(var key in definition) {
181
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
182
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
183
+ /******/ }
184
+ /******/ }
185
+ /******/ };
186
+ /******/ })();
187
+ /******/
188
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
189
+ /******/ (() => {
190
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
191
+ /******/ })();
192
+ /******/
193
+ /******/ /* webpack/runtime/make namespace object */
194
+ /******/ (() => {
195
+ /******/ // define __esModule on exports
196
+ /******/ __webpack_require__.r = (exports) => {
197
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
198
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
199
+ /******/ }
200
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
201
+ /******/ };
202
+ /******/ })();
203
+ /******/
204
+ /******/ /* webpack/runtime/jsonp chunk loading */
205
+ /******/ (() => {
206
+ /******/ // no baseURI
207
+ /******/
208
+ /******/ // object to store loaded and loading chunks
209
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
210
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
211
+ /******/ var installedChunks = {
212
+ /******/ 4783: 0,
213
+ /******/ 1981: 0
214
+ /******/ };
215
+ /******/
216
+ /******/ // no chunk on demand loading
217
+ /******/
218
+ /******/ // no prefetching
219
+ /******/
220
+ /******/ // no preloaded
221
+ /******/
222
+ /******/ // no HMR
223
+ /******/
224
+ /******/ // no HMR manifest
225
+ /******/
226
+ /******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
227
+ /******/
228
+ /******/ // install a JSONP callback for chunk loading
229
+ /******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
230
+ /******/ var [chunkIds, moreModules, runtime] = data;
231
+ /******/ // add "moreModules" to the modules object,
232
+ /******/ // then flag all "chunkIds" as loaded and fire callback
233
+ /******/ var moduleId, chunkId, i = 0;
234
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
235
+ /******/ for(moduleId in moreModules) {
236
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
237
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
238
+ /******/ }
239
+ /******/ }
240
+ /******/ if(runtime) var result = runtime(__webpack_require__);
241
+ /******/ }
242
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
243
+ /******/ for(;i < chunkIds.length; i++) {
244
+ /******/ chunkId = chunkIds[i];
245
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
246
+ /******/ installedChunks[chunkId][0]();
247
+ /******/ }
248
+ /******/ installedChunks[chunkIds[i]] = 0;
249
+ /******/ }
250
+ /******/ return __webpack_require__.O(result);
251
+ /******/ }
252
+ /******/
253
+ /******/ var chunkLoadingGlobal = self["webpackChunkatoka_design_system"] = self["webpackChunkatoka_design_system"] || [];
254
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
255
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
256
+ /******/ })();
257
+ /******/
258
+ /************************************************************************/
259
+ /******/
260
+ /******/ // startup
261
+ /******/ // Load entry module and return exports
262
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
263
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(5997)))
264
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
265
+ /******/
266
+ /******/ return __webpack_exports__;
267
+ /******/ })()
268
+ ;
269
+ });
270
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Jumbotron/index.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACVoC;AAEV;AAC0B;AAE1B;AAK1B;;;;GAIG;AACH;IAA+B,6BAAmC;IAAlE;;IAWA,CAAC;IALU,0BAAM,GAAb;QACI,IAAM,SAAS,GAAW,6BAAU,CAAC,eAAa,IAAI,CAAC,KAAK,CAAC,OAAS,EAAE,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAE9F,OAAO,uCAAC,qBAAW,IAAC,SAAS,EAAE,SAAS,IAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAe,CAAC;IAClF,CAAC;IATM,qBAAW,GAAW,WAAW,CAAC;IAClC,sBAAY,GAAmB;QAClC,OAAO,EAAE,SAAS;KACrB,CAAC;IAON,gBAAC;CAAA,CAX8B,wCAAmB,GAWjD;AAXqB;;;ACfgB;;;;;;;;ACAtC;;;;;;;ACAA;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;;;;WCzBA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://atoka-design-system/webpack/universalModuleDefinition","webpack://atoka-design-system/./src/components/Jumbotron/Jumbotron.tsx","webpack://atoka-design-system/./src/components/Jumbotron/index.ts","webpack://atoka-design-system/external umd \"classnames\"","webpack://atoka-design-system/external umd \"react\"","webpack://atoka-design-system/external umd \"react-bootstrap/Jumbotron\"","webpack://atoka-design-system/webpack/bootstrap","webpack://atoka-design-system/webpack/runtime/chunk loaded","webpack://atoka-design-system/webpack/runtime/compat get default export","webpack://atoka-design-system/webpack/runtime/define property getters","webpack://atoka-design-system/webpack/runtime/hasOwnProperty shorthand","webpack://atoka-design-system/webpack/runtime/make namespace object","webpack://atoka-design-system/webpack/runtime/jsonp chunk loading","webpack://atoka-design-system/webpack/before-startup","webpack://atoka-design-system/webpack/startup","webpack://atoka-design-system/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Jumbotron\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"atoka-design-system\", [\"classnames\", \"react\", \"react-bootstrap/Jumbotron\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"atoka-design-system\"] = factory(require(\"classnames\"), require(\"react\"), require(\"react-bootstrap/Jumbotron\"));\n\telse\n\t\troot[\"atoka-design-system\"] = factory(root[\"classnames\"], root[\"react\"], root[\"react-bootstrap/Jumbotron\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__8310__, __WEBPACK_EXTERNAL_MODULE__8156__, __WEBPACK_EXTERNAL_MODULE__3161__) {\nreturn ","import classNames from 'classnames';\nimport {PropsWithClassName} from 'components/Utils/CommonTypes';\nimport React from 'react';\nimport BsJumbotron from 'react-bootstrap/Jumbotron';\n\nimport './Jumbotron.less';\n\nexport interface JumbotronProps extends PropsWithClassName {\n variant: 'primary' | 'secondary' | 'danger';\n}\n/**\n * ### Overview\n *\n * This component is a section used in our Pages website to display prominent information together with its call of action.\n */\nexport class Jumbotron extends React.PureComponent<JumbotronProps> {\n static displayName: string = 'Jumbotron';\n static defaultProps: JumbotronProps = {\n variant: 'primary',\n };\n\n public render(): React.ReactNode {\n const className: string = classNames(`jumbotron-${this.props.variant}`, this.props.className);\n\n return <BsJumbotron className={className}>{this.props.children}</BsJumbotron>;\n }\n}\n","export {Jumbotron} from './Jumbotron';\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8310__;","module.exports = __WEBPACK_EXTERNAL_MODULE__8156__;","module.exports = __WEBPACK_EXTERNAL_MODULE__3161__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t4783: 0,\n\t1981: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkatoka_design_system\"] = self[\"webpackChunkatoka_design_system\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [1981], () => (__webpack_require__(5997)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":[],"sourceRoot":""}
package/Map/Map.d.ts ADDED
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import L, { TileLayer as LeafletTileLayer } from 'leaflet';
3
+ import { TileLayerProps } from 'react-leaflet-v3/types/TileLayer';
4
+ import { PropsWithClassName } from '../Utils';
5
+ import './Map.less';
6
+ import { MapControlProps } from './MapControl';
7
+ import { MapChoropleth } from './MapChoropleth';
8
+ import { MapProps } from './Types';
9
+ /** Container component to display the map component.<br />
10
+ * You should use its special children Choropleth to define its content<br />
11
+ * and a Spinner as well as EmptyState to define its empty states */
12
+ export declare class Map extends React.Component<MapProps> {
13
+ static displayName: string;
14
+ static defaultProps: Partial<MapProps>;
15
+ static Choropleth: typeof MapChoropleth;
16
+ static TileLayer: React.ForwardRefExoticComponent<TileLayerProps & React.RefAttributes<LeafletTileLayer>>;
17
+ static ControlsContainer: React.FC<React.PropsWithChildren<PropsWithClassName>>;
18
+ static Control: React.FC<MapControlProps>;
19
+ protected map: L.Map | null;
20
+ private italyBounds;
21
+ private renderOtherChildren;
22
+ private renderChoropleth;
23
+ private renderIsLoading;
24
+ private renderIsEmpty;
25
+ private handleMapCreated;
26
+ render(): React.ReactNode;
27
+ }
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { DataPoint } from '../Utils/CommonTypes';
3
+ import { CurrentMapData, ItemValueToColorType, MapChoroplethProps, MapDataKind, NameToDataPointType, MapBaseChoroplethFeatureProperties } from './Types';
4
+ export interface MapChoroplethState {
5
+ hoveredItem: DataPoint | null;
6
+ mapDataShowKind: MapDataKind | null;
7
+ currentMapData: CurrentMapData;
8
+ nameToDataPoint: NameToDataPointType;
9
+ valueMax: number;
10
+ valueMin: number;
11
+ itemValueToColor: ItemValueToColorType;
12
+ }
13
+ export declare type MapBaseChoroplethFeature = GeoJSON.Feature<GeoJSON.GeometryObject, MapBaseChoroplethFeatureProperties>;
14
+ export declare class MapChoropleth extends React.Component<MapChoroplethProps, MapChoroplethState> {
15
+ static displayName: string;
16
+ static defaultProps: Partial<MapChoroplethProps>;
17
+ state: MapChoroplethState;
18
+ static getDerivedStateFromProps(props: MapChoroplethProps, state: MapChoroplethState): MapChoroplethState;
19
+ static getSetupData(props: MapChoroplethProps, currentType: MapDataKind | null): [CurrentMapData, NameToDataPointType, number, number, ItemValueToColorType];
20
+ private getFeatureStyle;
21
+ private handleFeatureOver;
22
+ private handleFeatureOut;
23
+ private handleChangeMapDataType;
24
+ private renderSingleControl;
25
+ private renderMapDataToggleButtons;
26
+ private renderBottomPopup;
27
+ private renderHoveredItem;
28
+ private onHoverEachFeature;
29
+ private onEachFeature;
30
+ render(): React.ReactNode;
31
+ }
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { IconDefinition } from '@fortawesome/pro-light-svg-icons';
3
+ import './MapControl.less';
4
+ import { PropsWithClassName } from '../Utils';
5
+ export interface MapControlProps extends PropsWithClassName {
6
+ tooltipId?: string;
7
+ size?: 'sm' | 'lg';
8
+ isSelected?: boolean;
9
+ icon?: IconDefinition;
10
+ onClick: () => void;
11
+ }
12
+ declare const MapControl: React.FC<MapControlProps>;
13
+ export { MapControl };
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { DataPoint } from '../Utils/CommonTypes';
3
+ interface MapLegendContentProps {
4
+ hoveredItem: DataPoint | null;
5
+ valueMax: number;
6
+ valueMin: number;
7
+ numberToStringFormatter?: (value: number) => string;
8
+ minColor: string;
9
+ maxColor: string;
10
+ forceUpdateOnMount: boolean;
11
+ }
12
+ export declare class MapLegendContent extends React.PureComponent<MapLegendContentProps> {
13
+ static ESTIMATED_LETTER_PIXELS: number;
14
+ static ESTIMATED_ADDABLE_SPACE: number;
15
+ static displayName: string;
16
+ private popupRef;
17
+ static defaultProps: Partial<MapLegendContentProps>;
18
+ componentDidMount(): void;
19
+ static estimatedWordSize(wordLength: number, letterPixels?: number, constant?: number): number;
20
+ private getItemsPositions;
21
+ private renderCursor;
22
+ private renderMapBitInfo;
23
+ private getFormattedNumber;
24
+ private renderPopupChildren;
25
+ render(): React.ReactNode;
26
+ }
27
+ export {};
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import './MapPopup.less';
3
+ import { PropsWithClassName } from '../Utils';
4
+ declare const MapPopup: React.FC<React.PropsWithChildren<PropsWithClassName>>;
5
+ export { MapPopup };
@@ -0,0 +1,2 @@
1
+ declare const MAP_ATTRIBUTION: string, MAP_TILE_URL: string;
2
+ export { MAP_ATTRIBUTION, MAP_TILE_URL };
package/Map/Types.d.ts ADDED
@@ -0,0 +1,38 @@
1
+ import { GeoJsonObject } from 'geojson';
2
+ import { ScaleLinear } from 'd3-scale';
3
+ import { MapContainerProps } from 'react-leaflet-v3';
4
+ import { DataPoint } from '../Utils/CommonTypes';
5
+ export declare type MapDataKind = 'province' | 'region';
6
+ export declare type NameToDataPointType = Map<string, DataPoint> | null;
7
+ export declare type ItemValueToColorType = ScaleLinear<string, string>;
8
+ export declare type CurrentMapData = MapData | null;
9
+ export interface MapBaseChoroplethFeatureProperties {
10
+ name: string;
11
+ }
12
+ export interface MapData {
13
+ geometries: GeoJsonObject;
14
+ dataPoint: DataPoint[];
15
+ kind: MapDataKind;
16
+ label?: string;
17
+ }
18
+ export interface MapChoroplethProps {
19
+ withLegend?: boolean;
20
+ hoverColor: string;
21
+ numberToStringFormatter?: (value: number) => string;
22
+ mapData: MapData[];
23
+ minColor: string;
24
+ maxColor: string;
25
+ valueMin?: number;
26
+ }
27
+ export interface MapEventDispatcher {
28
+ getCanvas: () => Promise<HTMLCanvasElement>;
29
+ }
30
+ export interface MapProps extends MapContainerProps {
31
+ isLoading: boolean;
32
+ isEmpty: boolean;
33
+ /**
34
+ * This is necessary if you have the png download in the statistics card
35
+ * */
36
+ id: string;
37
+ onInit?: (eventHandler: MapEventDispatcher) => void;
38
+ }
package/Map/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { Map } from './Map';
2
+ export { MapChoroplethProps, MapData, MapDataKind, MapEventDispatcher, MapProps } from './Types';