@guardian/interactive-component-library 0.2.0-rc1 → 0.2.0-rc2

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 (335) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +8 -0
  2. package/dist/_virtual/dayjs.min.js +4 -0
  3. package/dist/_virtual/relativeTime.js +4 -0
  4. package/dist/components/index.d.ts +3 -0
  5. package/dist/components/molecules/canvas-map/Map.d.ts +17 -0
  6. package/dist/components/molecules/canvas-map/Map.js +89 -0
  7. package/dist/components/molecules/canvas-map/context/MapContext.d.ts +19 -0
  8. package/dist/components/molecules/canvas-map/context/MapContext.js +20 -0
  9. package/dist/components/molecules/canvas-map/controls/ZoomControl.d.ts +6 -0
  10. package/dist/components/molecules/canvas-map/controls/ZoomControl.js +40 -0
  11. package/dist/components/molecules/canvas-map/controls/icons/index.d.ts +3 -0
  12. package/dist/components/molecules/canvas-map/controls/icons/minus.d.ts +1 -0
  13. package/dist/components/molecules/canvas-map/controls/icons/minus.js +25 -0
  14. package/dist/components/molecules/canvas-map/controls/icons/plus.d.ts +1 -0
  15. package/dist/components/molecules/canvas-map/controls/icons/plus.js +25 -0
  16. package/dist/components/molecules/canvas-map/controls/icons/reset.d.ts +3 -0
  17. package/dist/components/molecules/canvas-map/controls/icons/reset.js +25 -0
  18. package/dist/components/molecules/canvas-map/controls/index.d.ts +1 -0
  19. package/dist/components/molecules/canvas-map/controls/style.module.css.js +11 -0
  20. package/dist/components/molecules/canvas-map/index.d.ts +12 -0
  21. package/dist/components/molecules/canvas-map/lib/Feature.d.ts +38 -0
  22. package/dist/components/molecules/canvas-map/lib/Feature.js +104 -0
  23. package/dist/components/molecules/canvas-map/lib/FeatureCollection.d.ts +20 -0
  24. package/dist/components/molecules/canvas-map/lib/FeatureCollection.js +23 -0
  25. package/dist/components/molecules/canvas-map/lib/Map.d.ts +69 -0
  26. package/dist/components/molecules/canvas-map/lib/Map.js +254 -0
  27. package/dist/components/molecules/canvas-map/lib/View.d.ts +136 -0
  28. package/dist/components/molecules/canvas-map/lib/View.js +179 -0
  29. package/dist/components/molecules/canvas-map/lib/events/Dispatcher.d.ts +8 -0
  30. package/dist/components/molecules/canvas-map/lib/events/Dispatcher.js +35 -0
  31. package/dist/components/molecules/canvas-map/lib/events/MapEvent.d.ts +6 -0
  32. package/dist/components/molecules/canvas-map/lib/events/MapEvent.js +9 -0
  33. package/dist/components/molecules/canvas-map/lib/events/index.d.ts +2 -0
  34. package/dist/components/molecules/canvas-map/lib/formats/GeoJSON.d.ts +10 -0
  35. package/dist/components/molecules/canvas-map/lib/formats/GeoJSON.js +96 -0
  36. package/dist/components/molecules/canvas-map/lib/geometry/Geometry.d.ts +32 -0
  37. package/dist/components/molecules/canvas-map/lib/geometry/Geometry.js +41 -0
  38. package/dist/components/molecules/canvas-map/lib/geometry/LineString.d.ts +12 -0
  39. package/dist/components/molecules/canvas-map/lib/geometry/LineString.js +19 -0
  40. package/dist/components/molecules/canvas-map/lib/geometry/Point.d.ts +11 -0
  41. package/dist/components/molecules/canvas-map/lib/geometry/Point.js +16 -0
  42. package/dist/components/molecules/canvas-map/lib/geometry/Polygon.d.ts +16 -0
  43. package/dist/components/molecules/canvas-map/lib/geometry/Polygon.js +46 -0
  44. package/dist/components/molecules/canvas-map/lib/geometry/index.d.ts +4 -0
  45. package/dist/components/molecules/canvas-map/lib/interpolators/index.d.ts +2 -0
  46. package/dist/components/molecules/canvas-map/lib/interpolators/interpolateFeatures.d.ts +5 -0
  47. package/dist/components/molecules/canvas-map/lib/interpolators/interpolateFeatures.js +95 -0
  48. package/dist/components/molecules/canvas-map/lib/interpolators/interpolateStyles.d.ts +4 -0
  49. package/dist/components/molecules/canvas-map/lib/interpolators/interpolateStyles.js +65 -0
  50. package/dist/components/molecules/canvas-map/lib/layers/TextLayer.d.ts +52 -0
  51. package/dist/components/molecules/canvas-map/lib/layers/TextLayer.js +111 -0
  52. package/dist/components/molecules/canvas-map/lib/layers/VectorLayer.d.ts +53 -0
  53. package/dist/components/molecules/canvas-map/lib/layers/VectorLayer.js +132 -0
  54. package/dist/components/molecules/canvas-map/lib/layers/index.d.ts +3 -0
  55. package/dist/components/molecules/canvas-map/lib/projection/index.d.ts +22 -0
  56. package/dist/components/molecules/canvas-map/lib/projection/index.js +12 -0
  57. package/dist/components/molecules/canvas-map/lib/renderers/FeatureRenderer.d.ts +6 -0
  58. package/dist/components/molecules/canvas-map/lib/renderers/FeatureRenderer.js +46 -0
  59. package/dist/components/molecules/canvas-map/lib/renderers/MapRenderer.d.ts +6 -0
  60. package/dist/components/molecules/canvas-map/lib/renderers/MapRenderer.js +53 -0
  61. package/dist/components/molecules/canvas-map/lib/renderers/TextLayerRenderer.d.ts +17 -0
  62. package/dist/components/molecules/canvas-map/lib/renderers/TextLayerRenderer.js +119 -0
  63. package/dist/components/molecules/canvas-map/lib/renderers/VectorLayerRenderer.d.ts +10 -0
  64. package/dist/components/molecules/canvas-map/lib/renderers/VectorLayerRenderer.js +78 -0
  65. package/dist/components/molecules/canvas-map/lib/sources/VectorSource.d.ts +15 -0
  66. package/dist/components/molecules/canvas-map/lib/sources/VectorSource.js +56 -0
  67. package/dist/components/molecules/canvas-map/lib/styles/Fill.d.ts +7 -0
  68. package/dist/components/molecules/canvas-map/lib/styles/Fill.js +15 -0
  69. package/dist/components/molecules/canvas-map/lib/styles/Stroke.d.ts +8 -0
  70. package/dist/components/molecules/canvas-map/lib/styles/Stroke.js +16 -0
  71. package/dist/components/molecules/canvas-map/lib/styles/Style.d.ts +24 -0
  72. package/dist/components/molecules/canvas-map/lib/styles/Style.js +17 -0
  73. package/dist/components/molecules/canvas-map/lib/styles/Text.d.ts +10 -0
  74. package/dist/components/molecules/canvas-map/lib/styles/Text.js +14 -0
  75. package/dist/components/molecules/canvas-map/lib/styles/index.d.ts +4 -0
  76. package/dist/components/molecules/canvas-map/lib/util/array.d.ts +6 -0
  77. package/dist/components/molecules/canvas-map/lib/util/array.js +15 -0
  78. package/dist/components/molecules/canvas-map/lib/util/bboxFeature.d.ts +8 -0
  79. package/dist/components/molecules/canvas-map/lib/util/bboxFeature.js +26 -0
  80. package/dist/components/molecules/canvas-map/lib/util/debug.d.ts +11 -0
  81. package/dist/components/molecules/canvas-map/lib/util/debug.js +27 -0
  82. package/dist/components/molecules/canvas-map/lib/util/deflate.d.ts +36 -0
  83. package/dist/components/molecules/canvas-map/lib/util/distance.d.ts +1 -0
  84. package/dist/components/molecules/canvas-map/lib/util/distance.js +12 -0
  85. package/dist/components/molecules/canvas-map/lib/util/dom.d.ts +9 -0
  86. package/dist/components/molecules/canvas-map/lib/util/dom.js +28 -0
  87. package/dist/components/molecules/canvas-map/lib/util/extent.d.ts +21 -0
  88. package/dist/components/molecules/canvas-map/lib/util/extent.js +38 -0
  89. package/dist/components/molecules/canvas-map/lib/util/memoise.d.ts +10 -0
  90. package/dist/components/molecules/canvas-map/lib/util/memoise.js +20 -0
  91. package/dist/components/molecules/canvas-map/lib/util/resolution.d.ts +9 -0
  92. package/dist/components/molecules/canvas-map/lib/util/resolution.js +11 -0
  93. package/dist/components/molecules/canvas-map/lib/util/simplify.d.ts +114 -0
  94. package/dist/components/molecules/canvas-map/lib/util/size.d.ts +32 -0
  95. package/dist/components/molecules/canvas-map/lib/util/size.js +53 -0
  96. package/dist/components/molecules/canvas-map/lib/util/toRgba.d.ts +1 -0
  97. package/dist/components/molecules/canvas-map/lib/util/toRgba.js +25 -0
  98. package/dist/components/molecules/canvas-map/lib/util/uid.d.ts +5 -0
  99. package/dist/components/molecules/canvas-map/lib/util/uid.js +7 -0
  100. package/dist/components/molecules/canvas-map/lib/util/zoomLevel.d.ts +2 -0
  101. package/dist/components/molecules/canvas-map/lib/util/zoomLevel.js +14 -0
  102. package/dist/components/molecules/canvas-map/style.module.scss.js +20 -0
  103. package/dist/components/molecules/column-chart/column-chart-example.d.ts +35 -0
  104. package/dist/components/molecules/column-chart/column-chart-util.d.ts +1 -0
  105. package/dist/components/molecules/column-chart/index.d.ts +11 -0
  106. package/dist/components/molecules/column-chart/index.js +63 -0
  107. package/dist/components/molecules/column-chart/style.module.css.js +14 -0
  108. package/dist/components/molecules/control-change/index.d.ts +6 -0
  109. package/dist/components/molecules/control-change/index.js +29 -0
  110. package/dist/components/molecules/control-change/style.module.css.js +11 -0
  111. package/dist/components/molecules/dropdown/index.d.ts +11 -0
  112. package/dist/components/molecules/dropdown/index.js +191 -0
  113. package/dist/components/molecules/dropdown/style.module.css.js +50 -0
  114. package/dist/components/molecules/first-past-the-post-waffle/index.d.ts +5 -0
  115. package/dist/components/molecules/first-past-the-post-waffle/index.js +14 -0
  116. package/dist/components/molecules/first-past-the-post-waffle/style.module.css.js +14 -0
  117. package/dist/components/molecules/index.d.ts +17 -0
  118. package/dist/components/molecules/modal/index.d.ts +8 -0
  119. package/dist/components/molecules/modal/index.js +59 -0
  120. package/dist/components/molecules/modal/style.module.css.js +26 -0
  121. package/dist/components/molecules/page-section/index.d.ts +8 -0
  122. package/dist/components/molecules/page-section/index.js +52 -0
  123. package/dist/components/molecules/page-section/style.module.scss.js +20 -0
  124. package/dist/components/molecules/party-profile/index.d.ts +10 -0
  125. package/dist/components/molecules/party-profile/index.js +29 -0
  126. package/dist/components/molecules/party-profile/style.module.css.js +26 -0
  127. package/dist/components/molecules/refresh-indicator/index.d.ts +4 -0
  128. package/dist/components/molecules/refresh-indicator/index.js +18 -0
  129. package/dist/components/molecules/refresh-indicator/style.module.scss.js +17 -0
  130. package/dist/components/molecules/responsive-grid/index.d.ts +10 -0
  131. package/dist/components/molecules/responsive-grid/index.js +19 -0
  132. package/dist/components/molecules/responsive-grid/style.module.scss.js +8 -0
  133. package/dist/components/molecules/result-summary/index.d.ts +8 -0
  134. package/dist/components/molecules/result-summary/index.js +36 -0
  135. package/dist/components/molecules/result-summary/style.module.css.js +11 -0
  136. package/dist/components/molecules/search-input/icons/search.d.ts +1 -0
  137. package/dist/components/molecules/search-input/icons/search.js +24 -0
  138. package/dist/components/molecules/search-input/icons/search.module.css.js +11 -0
  139. package/dist/components/molecules/search-input/index.d.ts +11 -0
  140. package/dist/components/molecules/search-input/index.js +164 -0
  141. package/dist/components/molecules/search-input/style.module.css.js +32 -0
  142. package/dist/components/molecules/slope-chart/index.d.ts +16 -0
  143. package/dist/components/molecules/slope-chart/index.js +139 -0
  144. package/dist/components/molecules/slope-chart/style.module.css.js +35 -0
  145. package/dist/components/molecules/svg-map/context/MapContext.d.ts +1 -0
  146. package/dist/components/molecules/svg-map/context/MapContext.js +5 -0
  147. package/dist/components/molecules/svg-map/context/SVGMapProvider.d.ts +10 -0
  148. package/dist/components/molecules/svg-map/context/SVGMapProvider.js +88 -0
  149. package/dist/components/molecules/svg-map/helpers/bboxFeature.d.ts +8 -0
  150. package/dist/components/molecules/svg-map/helpers/bboxFeature.js +26 -0
  151. package/dist/components/molecules/svg-map/helpers/dynamicPropValue.d.ts +1 -0
  152. package/dist/components/molecules/svg-map/helpers/dynamicPropValue.js +9 -0
  153. package/dist/components/molecules/svg-map/helpers/geoMath.d.ts +4 -0
  154. package/dist/components/molecules/svg-map/helpers/saveSVG.d.ts +1 -0
  155. package/dist/components/molecules/svg-map/hooks/useCamera.d.ts +0 -0
  156. package/dist/components/molecules/svg-map/hooks/useThrowIfNonLayerChildren.d.ts +4 -0
  157. package/dist/components/molecules/svg-map/hooks/useThrowIfNonLayerChildren.js +19 -0
  158. package/dist/components/molecules/svg-map/index.d.ts +38 -0
  159. package/dist/components/molecules/svg-map/index.js +120 -0
  160. package/dist/components/molecules/svg-map/layers/CompositionBorders.d.ts +3 -0
  161. package/dist/components/molecules/svg-map/layers/CompositionBorders.js +14 -0
  162. package/dist/components/molecules/svg-map/layers/Line.d.ts +7 -0
  163. package/dist/components/molecules/svg-map/layers/Line.js +48 -0
  164. package/dist/components/molecules/svg-map/layers/Point.d.ts +10 -0
  165. package/dist/components/molecules/svg-map/layers/Point.js +59 -0
  166. package/dist/components/molecules/svg-map/layers/Polygon.d.ts +9 -0
  167. package/dist/components/molecules/svg-map/layers/Polygon.js +75 -0
  168. package/dist/components/molecules/svg-map/layers/Prerendered.d.ts +3 -0
  169. package/dist/components/molecules/svg-map/layers/Prerendered.js +11 -0
  170. package/dist/components/molecules/svg-map/layers/compositionBorders.module.scss.js +8 -0
  171. package/dist/components/molecules/svg-map/layers/index.d.ts +5 -0
  172. package/dist/components/molecules/svg-map/layers/index.js +12 -0
  173. package/dist/components/molecules/svg-map/renderers/SVGRenderer.d.ts +3 -0
  174. package/dist/components/molecules/svg-map/renderers/SVGRenderer.js +32 -0
  175. package/dist/components/molecules/svg-map/style.module.css.js +11 -0
  176. package/dist/components/molecules/table/index.d.ts +7 -0
  177. package/dist/components/molecules/table/index.js +90 -0
  178. package/dist/components/molecules/table/style.module.scss.js +29 -0
  179. package/dist/components/molecules/table/useTable.d.ts +8 -0
  180. package/dist/components/molecules/table/useTable.js +128 -0
  181. package/dist/components/molecules/tooltip/index.d.ts +82 -0
  182. package/dist/components/molecules/tooltip/index.js +117 -0
  183. package/dist/components/molecules/tooltip/style.module.css.js +8 -0
  184. package/dist/components/molecules/topline-result/index.d.ts +3 -0
  185. package/dist/components/molecules/topline-result/index.js +61 -0
  186. package/dist/components/molecules/topline-result/style.module.scss.js +38 -0
  187. package/dist/components/organisms/coalitions-tracker/index.d.ts +16 -0
  188. package/dist/components/organisms/coalitions-tracker/index.js +151 -0
  189. package/dist/components/organisms/coalitions-tracker/style.module.scss.js +32 -0
  190. package/dist/components/organisms/index.d.ts +2 -0
  191. package/dist/components/organisms/ticker/gradient/index.d.ts +1 -0
  192. package/dist/components/organisms/ticker/gradient/index.js +35 -0
  193. package/dist/components/organisms/ticker/gradient/style.module.scss.js +14 -0
  194. package/dist/components/organisms/ticker/index.d.ts +5 -0
  195. package/dist/components/organisms/ticker/index.js +102 -0
  196. package/dist/components/organisms/ticker/style.module.scss.js +32 -0
  197. package/dist/components/particles/ad-slot/index.d.ts +40 -0
  198. package/dist/components/particles/ad-slot/index.js +34 -0
  199. package/dist/components/particles/ad-slot/style.module.css.js +11 -0
  200. package/dist/components/particles/arrow-button/index.d.ts +6 -0
  201. package/dist/components/particles/arrow-button/index.js +32 -0
  202. package/dist/components/particles/arrow-button/style.module.css.js +11 -0
  203. package/dist/components/particles/aspect-ratio-box/index.d.ts +4 -0
  204. package/dist/components/particles/aspect-ratio-box/index.js +15 -0
  205. package/dist/components/particles/aspect-ratio-box/style.module.css.js +6 -0
  206. package/dist/components/particles/button/index.d.ts +6 -0
  207. package/dist/components/particles/button/index.js +10 -0
  208. package/dist/components/particles/button/style.module.css.js +11 -0
  209. package/dist/components/particles/change-bar/index.d.ts +8 -0
  210. package/dist/components/particles/change-bar/index.js +27 -0
  211. package/dist/components/particles/change-bar/style.module.scss.js +14 -0
  212. package/dist/components/particles/chevron/index.d.ts +6 -0
  213. package/dist/components/particles/chevron/index.js +78 -0
  214. package/dist/components/particles/chevron/style.module.css.js +20 -0
  215. package/dist/components/particles/circle-icon/index.d.ts +6 -0
  216. package/dist/components/particles/circle-icon/index.js +32 -0
  217. package/dist/components/particles/circle-icon/style.module.css.js +14 -0
  218. package/dist/components/particles/close-button/index.d.ts +5 -0
  219. package/dist/components/particles/close-button/index.js +35 -0
  220. package/dist/components/particles/close-button/style.module.css.js +17 -0
  221. package/dist/components/particles/container/index.d.ts +5 -0
  222. package/dist/components/particles/container/index.js +13 -0
  223. package/dist/components/particles/container/style.module.scss.js +11 -0
  224. package/dist/components/particles/gradient-icon/index.d.ts +1 -0
  225. package/dist/components/particles/gradient-icon/index.js +46 -0
  226. package/dist/components/particles/gradient-icon/style.module.css.js +14 -0
  227. package/dist/components/particles/index.d.ts +18 -0
  228. package/dist/components/particles/info-button/index.d.ts +3 -0
  229. package/dist/components/particles/info-button/index.js +19 -0
  230. package/dist/components/particles/info-button/style.module.css.js +11 -0
  231. package/dist/components/particles/legend-item/index.d.ts +6 -0
  232. package/dist/components/particles/legend-item/index.js +26 -0
  233. package/dist/components/particles/legend-item/style.module.css.js +17 -0
  234. package/dist/components/particles/relative-time-sentence/index.d.ts +4 -0
  235. package/dist/components/particles/relative-time-sentence/index.js +14 -0
  236. package/dist/components/particles/relative-time-sentence/style.module.css.js +8 -0
  237. package/dist/components/particles/square-cut-corner-icon/index.d.ts +6 -0
  238. package/dist/components/particles/square-cut-corner-icon/index.js +56 -0
  239. package/dist/components/particles/square-cut-corner-icon/style.module.scss.js +17 -0
  240. package/dist/components/particles/square-icon/index.d.ts +5 -0
  241. package/dist/components/particles/square-icon/index.js +28 -0
  242. package/dist/components/particles/square-icon/style.module.scss.js +11 -0
  243. package/dist/components/particles/stacked-bar/index.d.ts +23 -0
  244. package/dist/components/particles/stacked-bar/index.js +140 -0
  245. package/dist/components/particles/stacked-bar/style.module.css.js +17 -0
  246. package/dist/components/particles/stacked-grid/index.d.ts +6 -0
  247. package/dist/components/particles/stacked-grid/index.js +35 -0
  248. package/dist/components/particles/stacked-grid/style.module.css.js +20 -0
  249. package/dist/components/particles/waffle/index.d.ts +14 -0
  250. package/dist/components/particles/waffle/index.js +76 -0
  251. package/dist/components/particles/waffle/style.module.css.js +11 -0
  252. package/dist/index.d.ts +2 -0
  253. package/dist/index.js +128 -0
  254. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/color.js +338 -0
  255. package/dist/node_modules/.pnpm/d3-color@3.1.0/node_modules/d3-color/src/define.js +13 -0
  256. package/dist/node_modules/.pnpm/d3-composite-projections@1.4.0/node_modules/d3-composite-projections/src/albersUk.js +108 -0
  257. package/dist/node_modules/.pnpm/d3-composite-projections@1.4.0/node_modules/d3-composite-projections/src/bounds.js +24 -0
  258. package/dist/node_modules/.pnpm/d3-composite-projections@1.4.0/node_modules/d3-composite-projections/src/fit.js +18 -0
  259. package/dist/node_modules/.pnpm/d3-composite-projections@1.4.0/node_modules/d3-composite-projections/src/math.js +4 -0
  260. package/dist/node_modules/.pnpm/d3-dispatch@3.0.1/node_modules/d3-dispatch/src/dispatch.js +70 -0
  261. package/dist/node_modules/.pnpm/d3-ease@3.0.1/node_modules/d3-ease/src/cubic.js +6 -0
  262. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/color.js +24 -0
  263. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/constant.js +4 -0
  264. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/number.js +8 -0
  265. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/rgb.js +20 -0
  266. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/string.js +43 -0
  267. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/decompose.js +28 -0
  268. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/index.js +59 -0
  269. package/dist/node_modules/.pnpm/d3-interpolate@3.0.1/node_modules/d3-interpolate/src/transform/parse.js +18 -0
  270. package/dist/node_modules/.pnpm/d3-path@2.0.0/node_modules/d3-path/src/path.js +73 -0
  271. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timeout.js +13 -0
  272. package/dist/node_modules/.pnpm/d3-timer@3.0.1/node_modules/d3-timer/src/timer.js +96 -0
  273. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/interrupt.js +21 -0
  274. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/index.js +5 -0
  275. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/interrupt.js +9 -0
  276. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/selection/transition.js +39 -0
  277. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attr.js +55 -0
  278. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/attrTween.js +42 -0
  279. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/delay.js +18 -0
  280. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/duration.js +18 -0
  281. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/ease.js +14 -0
  282. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/easeVarying.js +15 -0
  283. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/end.js +23 -0
  284. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/filter.js +16 -0
  285. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/index.js +68 -0
  286. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/interpolate.js +11 -0
  287. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/merge.js +18 -0
  288. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/on.js +23 -0
  289. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/remove.js +13 -0
  290. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/schedule.js +125 -0
  291. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/select.js +20 -0
  292. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selectAll.js +24 -0
  293. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/selection.js +8 -0
  294. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/style.js +47 -0
  295. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/styleTween.js +25 -0
  296. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/text.js +18 -0
  297. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/textTween.js +25 -0
  298. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/transition.js +22 -0
  299. package/dist/node_modules/.pnpm/d3-transition@3.0.1_d3-selection@3.0.0/node_modules/d3-transition/src/transition/tween.js +64 -0
  300. package/dist/node_modules/.pnpm/dayjs@1.11.12/node_modules/dayjs/dayjs.min.js +282 -0
  301. package/dist/node_modules/.pnpm/dayjs@1.11.12/node_modules/dayjs/plugin/relativeTime.js +48 -0
  302. package/dist/node_modules/.pnpm/flatbush@4.4.0/node_modules/flatbush/index.js +339 -0
  303. package/dist/node_modules/.pnpm/flatqueue@2.0.3/node_modules/flatqueue/index.js +67 -0
  304. package/dist/node_modules/.pnpm/preact-merge-refs@1.0.2_preact@10.21.0/node_modules/preact-merge-refs/lib/preact-merge-refs.modern.js +10 -0
  305. package/dist/node_modules/.pnpm/preact-transitioning@1.4.1_preact@10.21.0/node_modules/preact-transitioning/lib/preact-transitioning.modern.js +63 -0
  306. package/dist/node_modules/.pnpm/quickselect@2.0.0/node_modules/quickselect/index.js +47 -0
  307. package/dist/node_modules/.pnpm/rbush-knn@4.0.0/node_modules/rbush-knn/index.js +42 -0
  308. package/dist/node_modules/.pnpm/rbush@4.0.0/node_modules/rbush/index.js +378 -0
  309. package/dist/node_modules/.pnpm/tinyqueue@2.0.3/node_modules/tinyqueue/index.js +65 -0
  310. package/dist/shared/colors/index.d.ts +2 -0
  311. package/dist/shared/helpers/createStore.d.ts +1 -0
  312. package/dist/shared/helpers/geometry.d.ts +3 -0
  313. package/dist/shared/helpers/geometry.js +16 -0
  314. package/dist/shared/helpers/geometry.test.d.ts +1 -0
  315. package/dist/shared/helpers/labelsUtil.d.ts +54 -0
  316. package/dist/shared/helpers/labelsUtil.js +58 -0
  317. package/dist/shared/helpers/labelsUtils.test.d.ts +1 -0
  318. package/dist/shared/helpers/shouldUpdate.d.ts +7 -0
  319. package/dist/shared/hooks/index.d.ts +3 -0
  320. package/dist/shared/hooks/useContainerSize.d.ts +1 -0
  321. package/dist/shared/hooks/useContainerSize.js +24 -0
  322. package/dist/shared/hooks/useTouchOrHover.d.ts +6 -0
  323. package/dist/shared/hooks/useTouchOrHover.js +95 -0
  324. package/dist/shared/hooks/useWindowSize.d.ts +4 -0
  325. package/dist/shared/hooks/useWindowSize.js +27 -0
  326. package/dist/style.css +74 -74
  327. package/dist/styles/helpers/mergeStyles.d.ts +1 -0
  328. package/dist/styles/helpers/mergeStyles.js +22 -0
  329. package/dist/styles/helpers/mergeStyles.test.d.ts +1 -0
  330. package/dist/styles/theme.config.d.ts +124 -0
  331. package/package.json +6 -9
  332. package/dist/interactive-component-library.js +0 -7993
  333. package/dist/interactive-component-library.js.map +0 -1
  334. package/dist/interactive-component-library.umd.cjs +0 -7989
  335. package/dist/interactive-component-library.umd.cjs.map +0 -1
@@ -0,0 +1,28 @@
1
+ import { jsx } from "preact/jsx-runtime";
2
+ import { mergeStyles } from "../../../styles/helpers/mergeStyles.js";
3
+ import defaultStyles from "./style.module.scss.js";
4
+ const SquareIcon = ({ color, size, styles }) => {
5
+ styles = mergeStyles({ ...defaultStyles }, styles);
6
+ return /* @__PURE__ */ jsx(
7
+ "svg",
8
+ {
9
+ width: size,
10
+ height: size,
11
+ className: styles.svg,
12
+ viewBox: `0 0 ${size} ${size}`,
13
+ children: /* @__PURE__ */ jsx(
14
+ "rect",
15
+ {
16
+ id: "square",
17
+ fill: color,
18
+ className: styles.squareFill,
19
+ width: size,
20
+ height: size
21
+ }
22
+ )
23
+ }
24
+ );
25
+ };
26
+ export {
27
+ SquareIcon
28
+ };
@@ -0,0 +1,11 @@
1
+ const svg = "_svg_l2fsl_9";
2
+ const squareFill = "_squareFill_l2fsl_16";
3
+ const defaultStyles = {
4
+ svg,
5
+ squareFill
6
+ };
7
+ export {
8
+ defaultStyles as default,
9
+ squareFill,
10
+ svg
11
+ };
@@ -0,0 +1,23 @@
1
+ export function StackedBar({ stack, width, height, hideLabels, labelType, showBackgroundRect, createSVG, labelOverlapConfig, border, styles, }: {
2
+ stack: any;
3
+ width: any;
4
+ height: any;
5
+ hideLabels?: boolean;
6
+ labelType?: string;
7
+ showBackgroundRect?: boolean;
8
+ createSVG?: boolean;
9
+ labelOverlapConfig?: {
10
+ labelSize: number;
11
+ moveBothLabels: boolean;
12
+ };
13
+ border?: boolean;
14
+ styles: any;
15
+ }): import("preact").JSX.Element;
16
+ export namespace LabelType {
17
+ let hanging: string;
18
+ let inline: string;
19
+ }
20
+ export namespace LabelOverlapConfig {
21
+ let labelSize: number;
22
+ let moveBothLabels: boolean;
23
+ }
@@ -0,0 +1,140 @@
1
+ import { jsxs, jsx } from "preact/jsx-runtime";
2
+ import { useRef, useMemo } from "preact/hooks";
3
+ import defaultStyles from "./style.module.css.js";
4
+ import { mergeStyles } from "../../../styles/helpers/mergeStyles.js";
5
+ import { preventOverlap } from "../../../shared/helpers/labelsUtil.js";
6
+ const LabelType = {
7
+ hanging: "hanging",
8
+ inline: "inline"
9
+ };
10
+ const LabelOverlapConfig = {
11
+ labelSize: 20,
12
+ moveBothLabels: false
13
+ };
14
+ function StackedBar({
15
+ stack,
16
+ width,
17
+ height,
18
+ hideLabels = false,
19
+ labelType = LabelType.inline,
20
+ showBackgroundRect = false,
21
+ createSVG = true,
22
+ labelOverlapConfig = LabelOverlapConfig,
23
+ border = false,
24
+ styles
25
+ }) {
26
+ const rectElements = useRef([]);
27
+ const textElements = useRef([]);
28
+ styles = mergeStyles({ ...defaultStyles }, styles);
29
+ const svgHeight = labelType === LabelType.hanging && !hideLabels ? height + 20 : height;
30
+ const cleanBorderAbbr = (abbrText) => abbrText.split("-")[0];
31
+ const renderLabel = (config, i) => /* @__PURE__ */ jsx(
32
+ "text",
33
+ {
34
+ ref: (element) => textElements.current[i] = element,
35
+ textRendering: "optimizeLegibility",
36
+ className: `${styles.label} ${config.hasStroke ? styles.labelStroke : ""}`,
37
+ style: { display: "visible" },
38
+ x: config.x,
39
+ y: config.y,
40
+ textAnchor: config.textAnchor,
41
+ dominantBaseline: config.dominantBaseline,
42
+ children: config.value
43
+ },
44
+ `label-${i}`
45
+ );
46
+ let totalWidth = 0;
47
+ const content = stack.map((d, index) => {
48
+ const itemWidth = d.fraction * width;
49
+ const labelConfig = {
50
+ value: d.label,
51
+ x: itemWidth - 4,
52
+ y: height / 2,
53
+ textAnchor: "end",
54
+ dominantBaseline: "middle"
55
+ };
56
+ const value = /* @__PURE__ */ jsxs("g", { transform: `translate(${totalWidth}, 0)`, children: [
57
+ /* @__PURE__ */ jsx(
58
+ "rect",
59
+ {
60
+ ref: (element) => rectElements.current[index] = element,
61
+ width: itemWidth,
62
+ height,
63
+ className: `${styles.bar} fill-color--${d.abbreviation} ${border && "stroke-color--" + cleanBorderAbbr(d.abbreviation)}`,
64
+ style: { fill: d.fill },
65
+ shapeRendering: "crispEdges"
66
+ }
67
+ ),
68
+ labelType === LabelType.inline && !hideLabels && renderLabel(labelConfig, index)
69
+ ] }, index);
70
+ totalWidth += itemWidth;
71
+ return value;
72
+ });
73
+ const hangingLabelConfig = useMemo(() => {
74
+ let totalW = 0;
75
+ let labels = stack.map((d) => {
76
+ const itemWidth = d.fraction * width;
77
+ const labelConfig = {
78
+ x: itemWidth + totalW,
79
+ y: height + 4,
80
+ value: d.label,
81
+ textAnchor: "end",
82
+ dominantBaseline: "hanging"
83
+ };
84
+ totalW += itemWidth;
85
+ return labelConfig;
86
+ });
87
+ return preventOverlap(
88
+ labels,
89
+ 0,
90
+ labelOverlapConfig.labelSize,
91
+ "x",
92
+ labelOverlapConfig.moveBothLabels
93
+ );
94
+ }, [stack, height, width, labelOverlapConfig]);
95
+ const strokedHangingLabelConfig = useMemo(
96
+ () => [...hangingLabelConfig].map((l) => ({ ...l, hasStroke: true })),
97
+ [hangingLabelConfig]
98
+ );
99
+ const backgroundRect = /* @__PURE__ */ jsx("g", { children: /* @__PURE__ */ jsx(
100
+ "rect",
101
+ {
102
+ x: "0",
103
+ y: "0",
104
+ height,
105
+ width,
106
+ className: styles.backgroundRect
107
+ }
108
+ ) });
109
+ if (createSVG) {
110
+ return /* @__PURE__ */ jsxs(
111
+ "svg",
112
+ {
113
+ overflow: "hidden",
114
+ width,
115
+ height: svgHeight,
116
+ viewBox: `0 0 ${width} ${svgHeight}`,
117
+ xmlns: "http://www.w3.org/2000/svg",
118
+ children: [
119
+ showBackgroundRect && backgroundRect,
120
+ /* @__PURE__ */ jsxs("g", { children: [
121
+ content,
122
+ labelType === LabelType.hanging && !hideLabels && strokedHangingLabelConfig.map(
123
+ (config, i) => renderLabel(config, i)
124
+ ),
125
+ labelType === LabelType.hanging && !hideLabels && hangingLabelConfig.map((config, i) => renderLabel(config, i))
126
+ ] })
127
+ ]
128
+ }
129
+ );
130
+ }
131
+ return /* @__PURE__ */ jsxs("g", { children: [
132
+ content,
133
+ labelType === LabelType.hanging && !hideLabels && hangingLabelConfig.map((config, i) => renderLabel(config, i))
134
+ ] });
135
+ }
136
+ export {
137
+ LabelOverlapConfig,
138
+ LabelType,
139
+ StackedBar
140
+ };
@@ -0,0 +1,17 @@
1
+ const bar = "_bar_1b3uz_1";
2
+ const label = "_label_1b3uz_5";
3
+ const labelStroke = "_labelStroke_1b3uz_12";
4
+ const backgroundRect = "_backgroundRect_1b3uz_18";
5
+ const defaultStyles = {
6
+ bar,
7
+ label,
8
+ labelStroke,
9
+ backgroundRect
10
+ };
11
+ export {
12
+ backgroundRect,
13
+ bar,
14
+ defaultStyles as default,
15
+ label,
16
+ labelStroke
17
+ };
@@ -0,0 +1,6 @@
1
+ export function StackedGrid({ fromLeft, fromBottom, children, styles }: {
2
+ fromLeft: any;
3
+ fromBottom: any;
4
+ children: any;
5
+ styles: any;
6
+ }): import("preact").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { jsx } from "preact/jsx-runtime";
2
+ import defaultStyles from "./style.module.css.js";
3
+ import { mergeStyles } from "../../../styles/helpers/mergeStyles.js";
4
+ const getItemRotate = (fromBottom, fromLeft) => {
5
+ if (fromBottom && fromLeft) {
6
+ return "stackedGridRotateItems270";
7
+ } else if (fromBottom && !fromLeft) {
8
+ return "stackedGridRotateItems180";
9
+ } else if (!fromBottom && !fromLeft) {
10
+ return "stackedGridRotateItems90";
11
+ } else if (!fromBottom && fromLeft) {
12
+ return "stackedGridRotateItems0";
13
+ }
14
+ };
15
+ const getContainerFlip = (fromBottom, fromLeft) => {
16
+ let scaleX = fromLeft ? 1 : -1;
17
+ let scaleY = fromBottom ? -1 : 1;
18
+ return `scale(${scaleX}, ${scaleY})`;
19
+ };
20
+ const StackedGrid = ({ fromLeft, fromBottom, children, styles }) => {
21
+ let containerFlip = getContainerFlip(fromBottom, fromLeft);
22
+ let itemRotateClass = getItemRotate(fromBottom, fromLeft);
23
+ styles = mergeStyles(defaultStyles, styles);
24
+ return /* @__PURE__ */ jsx(
25
+ "div",
26
+ {
27
+ style: { transform: containerFlip },
28
+ className: `${styles.stackedGridContainer} ${styles[itemRotateClass]}`,
29
+ children
30
+ }
31
+ );
32
+ };
33
+ export {
34
+ StackedGrid
35
+ };
@@ -0,0 +1,20 @@
1
+ const stackedGridContainer = "_stackedGridContainer_6whof_1";
2
+ const stackedGridRotateItems0 = "_stackedGridRotateItems0_6whof_11";
3
+ const stackedGridRotateItems90 = "_stackedGridRotateItems90_6whof_17";
4
+ const stackedGridRotateItems180 = "_stackedGridRotateItems180_6whof_23";
5
+ const stackedGridRotateItems270 = "_stackedGridRotateItems270_6whof_29";
6
+ const defaultStyles = {
7
+ stackedGridContainer,
8
+ stackedGridRotateItems0,
9
+ stackedGridRotateItems90,
10
+ stackedGridRotateItems180,
11
+ stackedGridRotateItems270
12
+ };
13
+ export {
14
+ defaultStyles as default,
15
+ stackedGridContainer,
16
+ stackedGridRotateItems0,
17
+ stackedGridRotateItems180,
18
+ stackedGridRotateItems270,
19
+ stackedGridRotateItems90
20
+ };
@@ -0,0 +1,14 @@
1
+ export namespace WaffleType {
2
+ let circle: string;
3
+ let square: string;
4
+ }
5
+ export function Waffle({ units, numberOfRows, type, idAccessor, onMouseOver, onClick, styles, svgId, }: {
6
+ units: any;
7
+ numberOfRows: any;
8
+ type?: string;
9
+ idAccessor: any;
10
+ onMouseOver?: () => void;
11
+ onClick?: () => void;
12
+ styles: any;
13
+ svgId: any;
14
+ }): import("preact").JSX.Element;
@@ -0,0 +1,76 @@
1
+ import { jsx } from "preact/jsx-runtime";
2
+ import defaultStyles from "./style.module.css.js";
3
+ import { mergeStyles } from "../../../styles/helpers/mergeStyles.js";
4
+ import { useContainerSize } from "../../../shared/hooks/useContainerSize.js";
5
+ import { useRef } from "preact/hooks";
6
+ const WaffleType = {
7
+ circle: "circle",
8
+ square: "square"
9
+ };
10
+ const WaffleUnit = ({ type, attributes }) => type === WaffleType.square ? /* @__PURE__ */ jsx("rect", { ...attributes }) : /* @__PURE__ */ jsx("circle", { ...attributes });
11
+ const Waffle = ({
12
+ units,
13
+ numberOfRows,
14
+ type = WaffleType.circle,
15
+ idAccessor,
16
+ onMouseOver = () => {
17
+ },
18
+ onClick = () => {
19
+ },
20
+ styles,
21
+ svgId
22
+ }) => {
23
+ const containerRef = useRef();
24
+ const containerSize = useContainerSize(containerRef);
25
+ const width = containerSize ? containerSize.width : 0;
26
+ const total = units.length;
27
+ const columns = Math.ceil(total / numberOfRows);
28
+ const unitWidth = width / columns;
29
+ const unitHeight = unitWidth;
30
+ const height = numberOfRows * unitHeight;
31
+ styles = mergeStyles(defaultStyles, styles);
32
+ return /* @__PURE__ */ jsx("div", { ref: containerRef, className: styles.container, children: containerSize && /* @__PURE__ */ jsx(
33
+ "svg",
34
+ {
35
+ viewBox: `0 0 ${width} ${height}`,
36
+ className: styles.svg,
37
+ id: svgId,
38
+ children: /* @__PURE__ */ jsx("g", { children: units.map((unit, j) => {
39
+ let attributes;
40
+ if (type === WaffleType.square) {
41
+ attributes = {
42
+ id: unit[idAccessor] || `w-${j}`,
43
+ onMouseOver: (e) => onMouseOver(unit, e),
44
+ onClick: (e) => onClick(unit, e),
45
+ class: `${styles.unit} ${unit.class}`,
46
+ height: unitHeight,
47
+ width: unitWidth,
48
+ x: unitWidth * Math.floor(j / numberOfRows),
49
+ y: unitHeight * (j % numberOfRows)
50
+ };
51
+ } else {
52
+ attributes = {
53
+ id: unit[idAccessor] || `w-${j}`,
54
+ onMouseOver: (e) => onMouseOver(unit, e),
55
+ onClick: (e) => onClick(unit, e),
56
+ class: `${styles.unit} ${unit.class}`,
57
+ r: unitWidth / 2,
58
+ transform: `translate(${unitWidth * Math.floor(j / numberOfRows) + unitWidth / 2}, ${unitHeight * (j % numberOfRows) + unitHeight / 2})`
59
+ };
60
+ }
61
+ return /* @__PURE__ */ jsx(
62
+ WaffleUnit,
63
+ {
64
+ type,
65
+ attributes
66
+ },
67
+ `wu-${j}`
68
+ );
69
+ }) })
70
+ }
71
+ ) });
72
+ };
73
+ export {
74
+ Waffle,
75
+ WaffleType
76
+ };
@@ -0,0 +1,11 @@
1
+ const unit = "_unit_1jxth_1";
2
+ const container = "_container_1jxth_6";
3
+ const defaultStyles = {
4
+ unit,
5
+ container
6
+ };
7
+ export {
8
+ container,
9
+ defaultStyles as default,
10
+ unit
11
+ };
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ export * from './shared/hooks';
package/dist/index.js ADDED
@@ -0,0 +1,128 @@
1
+ /* empty css */
2
+ import { Chevron } from "./components/particles/chevron/index.js";
3
+ import { LegendItem } from "./components/particles/legend-item/index.js";
4
+ import { LabelOverlapConfig, LabelType, StackedBar } from "./components/particles/stacked-bar/index.js";
5
+ import { GradientIcon } from "./components/particles/gradient-icon/index.js";
6
+ import { Waffle, WaffleType } from "./components/particles/waffle/index.js";
7
+ import { InfoButton } from "./components/particles/info-button/index.js";
8
+ import { CircleIcon } from "./components/particles/circle-icon/index.js";
9
+ import { RelativeTimeSentence } from "./components/particles/relative-time-sentence/index.js";
10
+ import { Container } from "./components/particles/container/index.js";
11
+ import { ChangeBar } from "./components/particles/change-bar/index.js";
12
+ import { SquareCutCornerIcon } from "./components/particles/square-cut-corner-icon/index.js";
13
+ import { StackedGrid } from "./components/particles/stacked-grid/index.js";
14
+ import { SquareIcon } from "./components/particles/square-icon/index.js";
15
+ import { ArrowButton } from "./components/particles/arrow-button/index.js";
16
+ import { Button } from "./components/particles/button/index.js";
17
+ import { CloseButton } from "./components/particles/close-button/index.js";
18
+ import { AdSlot } from "./components/particles/ad-slot/index.js";
19
+ import { AspectRatioBox } from "./components/particles/aspect-ratio-box/index.js";
20
+ import { Table } from "./components/molecules/table/index.js";
21
+ import { SlopeChart } from "./components/molecules/slope-chart/index.js";
22
+ import { Tooltip } from "./components/molecules/tooltip/index.js";
23
+ import { ControlChange } from "./components/molecules/control-change/index.js";
24
+ import { FirstPastThePostWaffle } from "./components/molecules/first-past-the-post-waffle/index.js";
25
+ import { ToplineResult } from "./components/molecules/topline-result/index.js";
26
+ import { PageSection, SectionLayout } from "./components/molecules/page-section/index.js";
27
+ import { ColumnChart } from "./components/molecules/column-chart/index.js";
28
+ import { PartyProfile } from "./components/molecules/party-profile/index.js";
29
+ import { ResultSummary } from "./components/molecules/result-summary/index.js";
30
+ import { SearchInput } from "./components/molecules/search-input/index.js";
31
+ import { RefreshIndicator } from "./components/molecules/refresh-indicator/index.js";
32
+ import { GridType, ResponsiveGrid } from "./components/molecules/responsive-grid/index.js";
33
+ import { Modal } from "./components/molecules/modal/index.js";
34
+ import { Dropdown } from "./components/molecules/dropdown/index.js";
35
+ import { MapConfiguration, SVGMap, _Projection } from "./components/molecules/svg-map/index.js";
36
+ import { Map } from "./components/molecules/canvas-map/Map.js";
37
+ import { ZoomControl } from "./components/molecules/canvas-map/controls/ZoomControl.js";
38
+ import { Feature } from "./components/molecules/canvas-map/lib/Feature.js";
39
+ import { FeatureCollection } from "./components/molecules/canvas-map/lib/FeatureCollection.js";
40
+ import { Dispatcher } from "./components/molecules/canvas-map/lib/events/Dispatcher.js";
41
+ import { MapEvent } from "./components/molecules/canvas-map/lib/events/MapEvent.js";
42
+ import { Projection } from "./components/molecules/canvas-map/lib/projection/index.js";
43
+ import { TextLayer } from "./components/molecules/canvas-map/lib/layers/TextLayer.js";
44
+ import { VectorLayer } from "./components/molecules/canvas-map/lib/layers/VectorLayer.js";
45
+ import { Style } from "./components/molecules/canvas-map/lib/styles/Style.js";
46
+ import { Stroke } from "./components/molecules/canvas-map/lib/styles/Stroke.js";
47
+ import { Fill } from "./components/molecules/canvas-map/lib/styles/Fill.js";
48
+ import { Text } from "./components/molecules/canvas-map/lib/styles/Text.js";
49
+ import { interpolateFeatures } from "./components/molecules/canvas-map/lib/interpolators/interpolateFeatures.js";
50
+ import { interpolateFill, interpolateStroke, interpolateStyles } from "./components/molecules/canvas-map/lib/interpolators/interpolateStyles.js";
51
+ import { VectorSource } from "./components/molecules/canvas-map/lib/sources/VectorSource.js";
52
+ import { GeoJSON } from "./components/molecules/canvas-map/lib/formats/GeoJSON.js";
53
+ import { bboxFeature } from "./components/molecules/canvas-map/lib/util/bboxFeature.js";
54
+ import { CoalitionsTracker } from "./components/organisms/coalitions-tracker/index.js";
55
+ import { Ticker } from "./components/organisms/ticker/index.js";
56
+ import { useContainerSize } from "./shared/hooks/useContainerSize.js";
57
+ import { useTouchOrHover } from "./shared/hooks/useTouchOrHover.js";
58
+ import { useWindowSize } from "./shared/hooks/useWindowSize.js";
59
+ import * as index from "./components/molecules/svg-map/layers/index.js";
60
+ export {
61
+ AdSlot,
62
+ ArrowButton,
63
+ AspectRatioBox,
64
+ Button,
65
+ ChangeBar,
66
+ Chevron,
67
+ CircleIcon,
68
+ CloseButton,
69
+ CoalitionsTracker,
70
+ ColumnChart,
71
+ Container,
72
+ ControlChange,
73
+ Dispatcher,
74
+ Dropdown,
75
+ Feature,
76
+ FeatureCollection,
77
+ Fill,
78
+ FirstPastThePostWaffle,
79
+ GeoJSON,
80
+ GradientIcon,
81
+ GridType,
82
+ InfoButton,
83
+ LabelOverlapConfig,
84
+ LabelType,
85
+ LegendItem,
86
+ Map,
87
+ MapConfiguration,
88
+ MapEvent,
89
+ index as MapLayers,
90
+ Modal,
91
+ PageSection,
92
+ PartyProfile,
93
+ Projection,
94
+ RefreshIndicator,
95
+ RelativeTimeSentence,
96
+ ResponsiveGrid,
97
+ ResultSummary,
98
+ SVGMap,
99
+ SearchInput,
100
+ SectionLayout,
101
+ SlopeChart,
102
+ SquareCutCornerIcon,
103
+ SquareIcon,
104
+ StackedBar,
105
+ StackedGrid,
106
+ Stroke,
107
+ Style,
108
+ Table,
109
+ Text,
110
+ TextLayer,
111
+ Ticker,
112
+ Tooltip,
113
+ ToplineResult,
114
+ VectorLayer,
115
+ VectorSource,
116
+ Waffle,
117
+ WaffleType,
118
+ ZoomControl,
119
+ _Projection,
120
+ bboxFeature,
121
+ interpolateFeatures,
122
+ interpolateFill,
123
+ interpolateStroke,
124
+ interpolateStyles,
125
+ useContainerSize,
126
+ useTouchOrHover,
127
+ useWindowSize
128
+ };