@guardian/interactive-component-library 0.2.0-rc4 → 0.3.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.
- package/dist/interactive-component-library.js +8365 -0
- package/dist/interactive-component-library.js.map +1 -0
- package/dist/interactive-component-library.umd.cjs +8360 -0
- package/dist/interactive-component-library.umd.cjs.map +1 -0
- package/dist/style.css +157 -73
- package/package.json +11 -19
- package/dist/components/index.d.ts +0 -3
- package/dist/components/molecules/canvas-map/Map.d.ts +0 -17
- package/dist/components/molecules/canvas-map/Map.js +0 -89
- package/dist/components/molecules/canvas-map/context/MapContext.d.ts +0 -19
- package/dist/components/molecules/canvas-map/context/MapContext.js +0 -20
- package/dist/components/molecules/canvas-map/controls/ZoomControl.d.ts +0 -6
- package/dist/components/molecules/canvas-map/controls/ZoomControl.js +0 -40
- package/dist/components/molecules/canvas-map/controls/icons/index.d.ts +0 -3
- package/dist/components/molecules/canvas-map/controls/icons/minus.d.ts +0 -1
- package/dist/components/molecules/canvas-map/controls/icons/minus.js +0 -25
- package/dist/components/molecules/canvas-map/controls/icons/plus.d.ts +0 -1
- package/dist/components/molecules/canvas-map/controls/icons/plus.js +0 -25
- package/dist/components/molecules/canvas-map/controls/icons/reset.d.ts +0 -3
- package/dist/components/molecules/canvas-map/controls/icons/reset.js +0 -25
- package/dist/components/molecules/canvas-map/controls/index.d.ts +0 -1
- package/dist/components/molecules/canvas-map/controls/style.module.css.js +0 -11
- package/dist/components/molecules/canvas-map/index.d.ts +0 -12
- package/dist/components/molecules/canvas-map/lib/Feature.d.ts +0 -38
- package/dist/components/molecules/canvas-map/lib/Feature.js +0 -104
- package/dist/components/molecules/canvas-map/lib/FeatureCollection.d.ts +0 -20
- package/dist/components/molecules/canvas-map/lib/FeatureCollection.js +0 -23
- package/dist/components/molecules/canvas-map/lib/Map.d.ts +0 -69
- package/dist/components/molecules/canvas-map/lib/Map.js +0 -254
- package/dist/components/molecules/canvas-map/lib/View.d.ts +0 -136
- package/dist/components/molecules/canvas-map/lib/View.js +0 -179
- package/dist/components/molecules/canvas-map/lib/events/Dispatcher.d.ts +0 -8
- package/dist/components/molecules/canvas-map/lib/events/Dispatcher.js +0 -35
- package/dist/components/molecules/canvas-map/lib/events/MapEvent.d.ts +0 -6
- package/dist/components/molecules/canvas-map/lib/events/MapEvent.js +0 -9
- package/dist/components/molecules/canvas-map/lib/events/index.d.ts +0 -2
- package/dist/components/molecules/canvas-map/lib/formats/GeoJSON.d.ts +0 -10
- package/dist/components/molecules/canvas-map/lib/formats/GeoJSON.js +0 -96
- package/dist/components/molecules/canvas-map/lib/geometry/Geometry.d.ts +0 -32
- package/dist/components/molecules/canvas-map/lib/geometry/Geometry.js +0 -41
- package/dist/components/molecules/canvas-map/lib/geometry/LineString.d.ts +0 -12
- package/dist/components/molecules/canvas-map/lib/geometry/LineString.js +0 -19
- package/dist/components/molecules/canvas-map/lib/geometry/Point.d.ts +0 -11
- package/dist/components/molecules/canvas-map/lib/geometry/Point.js +0 -16
- package/dist/components/molecules/canvas-map/lib/geometry/Polygon.d.ts +0 -16
- package/dist/components/molecules/canvas-map/lib/geometry/Polygon.js +0 -46
- package/dist/components/molecules/canvas-map/lib/geometry/index.d.ts +0 -4
- package/dist/components/molecules/canvas-map/lib/interpolators/index.d.ts +0 -2
- package/dist/components/molecules/canvas-map/lib/interpolators/interpolateFeatures.d.ts +0 -5
- package/dist/components/molecules/canvas-map/lib/interpolators/interpolateFeatures.js +0 -95
- package/dist/components/molecules/canvas-map/lib/interpolators/interpolateStyles.d.ts +0 -4
- package/dist/components/molecules/canvas-map/lib/interpolators/interpolateStyles.js +0 -65
- package/dist/components/molecules/canvas-map/lib/layers/TextLayer.d.ts +0 -52
- package/dist/components/molecules/canvas-map/lib/layers/TextLayer.js +0 -111
- package/dist/components/molecules/canvas-map/lib/layers/VectorLayer.d.ts +0 -53
- package/dist/components/molecules/canvas-map/lib/layers/VectorLayer.js +0 -132
- package/dist/components/molecules/canvas-map/lib/layers/index.d.ts +0 -3
- package/dist/components/molecules/canvas-map/lib/projection/index.d.ts +0 -22
- package/dist/components/molecules/canvas-map/lib/projection/index.js +0 -12
- package/dist/components/molecules/canvas-map/lib/renderers/FeatureRenderer.d.ts +0 -6
- package/dist/components/molecules/canvas-map/lib/renderers/FeatureRenderer.js +0 -46
- package/dist/components/molecules/canvas-map/lib/renderers/MapRenderer.d.ts +0 -6
- package/dist/components/molecules/canvas-map/lib/renderers/MapRenderer.js +0 -53
- package/dist/components/molecules/canvas-map/lib/renderers/TextLayerRenderer.d.ts +0 -17
- package/dist/components/molecules/canvas-map/lib/renderers/TextLayerRenderer.js +0 -119
- package/dist/components/molecules/canvas-map/lib/renderers/VectorLayerRenderer.d.ts +0 -10
- package/dist/components/molecules/canvas-map/lib/renderers/VectorLayerRenderer.js +0 -78
- package/dist/components/molecules/canvas-map/lib/sources/VectorSource.d.ts +0 -15
- package/dist/components/molecules/canvas-map/lib/sources/VectorSource.js +0 -56
- package/dist/components/molecules/canvas-map/lib/styles/Fill.d.ts +0 -7
- package/dist/components/molecules/canvas-map/lib/styles/Fill.js +0 -15
- package/dist/components/molecules/canvas-map/lib/styles/Stroke.d.ts +0 -8
- package/dist/components/molecules/canvas-map/lib/styles/Stroke.js +0 -16
- package/dist/components/molecules/canvas-map/lib/styles/Style.d.ts +0 -24
- package/dist/components/molecules/canvas-map/lib/styles/Style.js +0 -17
- package/dist/components/molecules/canvas-map/lib/styles/Text.d.ts +0 -10
- package/dist/components/molecules/canvas-map/lib/styles/Text.js +0 -14
- package/dist/components/molecules/canvas-map/lib/styles/index.d.ts +0 -4
- package/dist/components/molecules/canvas-map/lib/util/array.d.ts +0 -6
- package/dist/components/molecules/canvas-map/lib/util/array.js +0 -15
- package/dist/components/molecules/canvas-map/lib/util/bboxFeature.d.ts +0 -8
- package/dist/components/molecules/canvas-map/lib/util/bboxFeature.js +0 -26
- package/dist/components/molecules/canvas-map/lib/util/debug.d.ts +0 -11
- package/dist/components/molecules/canvas-map/lib/util/debug.js +0 -27
- package/dist/components/molecules/canvas-map/lib/util/deflate.d.ts +0 -36
- package/dist/components/molecules/canvas-map/lib/util/distance.d.ts +0 -1
- package/dist/components/molecules/canvas-map/lib/util/distance.js +0 -12
- package/dist/components/molecules/canvas-map/lib/util/dom.d.ts +0 -9
- package/dist/components/molecules/canvas-map/lib/util/dom.js +0 -28
- package/dist/components/molecules/canvas-map/lib/util/extent.d.ts +0 -21
- package/dist/components/molecules/canvas-map/lib/util/extent.js +0 -38
- package/dist/components/molecules/canvas-map/lib/util/memoise.d.ts +0 -10
- package/dist/components/molecules/canvas-map/lib/util/memoise.js +0 -20
- package/dist/components/molecules/canvas-map/lib/util/resolution.d.ts +0 -9
- package/dist/components/molecules/canvas-map/lib/util/resolution.js +0 -11
- package/dist/components/molecules/canvas-map/lib/util/simplify.d.ts +0 -114
- package/dist/components/molecules/canvas-map/lib/util/size.d.ts +0 -32
- package/dist/components/molecules/canvas-map/lib/util/size.js +0 -53
- package/dist/components/molecules/canvas-map/lib/util/toRgba.d.ts +0 -1
- package/dist/components/molecules/canvas-map/lib/util/toRgba.js +0 -25
- package/dist/components/molecules/canvas-map/lib/util/uid.d.ts +0 -5
- package/dist/components/molecules/canvas-map/lib/util/uid.js +0 -7
- package/dist/components/molecules/canvas-map/lib/util/zoomLevel.d.ts +0 -2
- package/dist/components/molecules/canvas-map/lib/util/zoomLevel.js +0 -14
- package/dist/components/molecules/canvas-map/style.module.scss.js +0 -20
- package/dist/components/molecules/column-chart/column-chart-example.d.ts +0 -35
- package/dist/components/molecules/column-chart/column-chart-util.d.ts +0 -1
- package/dist/components/molecules/column-chart/index.d.ts +0 -11
- package/dist/components/molecules/column-chart/index.js +0 -63
- package/dist/components/molecules/column-chart/style.module.css.js +0 -14
- package/dist/components/molecules/control-change/index.d.ts +0 -6
- package/dist/components/molecules/control-change/index.js +0 -29
- package/dist/components/molecules/control-change/style.module.css.js +0 -11
- package/dist/components/molecules/dropdown/index.d.ts +0 -11
- package/dist/components/molecules/dropdown/index.js +0 -191
- package/dist/components/molecules/dropdown/style.module.css.js +0 -50
- package/dist/components/molecules/first-past-the-post-waffle/index.d.ts +0 -5
- package/dist/components/molecules/first-past-the-post-waffle/index.js +0 -14
- package/dist/components/molecules/first-past-the-post-waffle/style.module.css.js +0 -14
- package/dist/components/molecules/index.d.ts +0 -17
- package/dist/components/molecules/modal/index.d.ts +0 -8
- package/dist/components/molecules/modal/index.js +0 -59
- package/dist/components/molecules/modal/style.module.css.js +0 -26
- package/dist/components/molecules/page-section/index.d.ts +0 -8
- package/dist/components/molecules/page-section/index.js +0 -52
- package/dist/components/molecules/page-section/style.module.scss.js +0 -20
- package/dist/components/molecules/party-profile/index.d.ts +0 -10
- package/dist/components/molecules/party-profile/index.js +0 -29
- package/dist/components/molecules/party-profile/style.module.css.js +0 -26
- package/dist/components/molecules/refresh-indicator/index.d.ts +0 -4
- package/dist/components/molecules/refresh-indicator/index.js +0 -18
- package/dist/components/molecules/refresh-indicator/style.module.scss.js +0 -17
- package/dist/components/molecules/responsive-grid/index.d.ts +0 -10
- package/dist/components/molecules/responsive-grid/index.js +0 -19
- package/dist/components/molecules/responsive-grid/style.module.scss.js +0 -8
- package/dist/components/molecules/result-summary/index.d.ts +0 -8
- package/dist/components/molecules/result-summary/index.js +0 -38
- package/dist/components/molecules/result-summary/style.module.css.js +0 -11
- package/dist/components/molecules/search-input/icons/search.d.ts +0 -1
- package/dist/components/molecules/search-input/icons/search.js +0 -24
- package/dist/components/molecules/search-input/icons/search.module.css.js +0 -11
- package/dist/components/molecules/search-input/index.d.ts +0 -11
- package/dist/components/molecules/search-input/index.js +0 -164
- package/dist/components/molecules/search-input/style.module.css.js +0 -32
- package/dist/components/molecules/slope-chart/index.d.ts +0 -16
- package/dist/components/molecules/slope-chart/index.js +0 -139
- package/dist/components/molecules/slope-chart/style.module.css.js +0 -35
- package/dist/components/molecules/svg-map/context/MapContext.d.ts +0 -1
- package/dist/components/molecules/svg-map/context/MapContext.js +0 -5
- package/dist/components/molecules/svg-map/context/SVGMapProvider.d.ts +0 -10
- package/dist/components/molecules/svg-map/context/SVGMapProvider.js +0 -88
- package/dist/components/molecules/svg-map/helpers/bboxFeature.d.ts +0 -8
- package/dist/components/molecules/svg-map/helpers/bboxFeature.js +0 -26
- package/dist/components/molecules/svg-map/helpers/dynamicPropValue.d.ts +0 -1
- package/dist/components/molecules/svg-map/helpers/dynamicPropValue.js +0 -9
- package/dist/components/molecules/svg-map/helpers/geoMath.d.ts +0 -4
- package/dist/components/molecules/svg-map/helpers/saveSVG.d.ts +0 -1
- package/dist/components/molecules/svg-map/hooks/useCamera.d.ts +0 -0
- package/dist/components/molecules/svg-map/hooks/useThrowIfNonLayerChildren.d.ts +0 -4
- package/dist/components/molecules/svg-map/hooks/useThrowIfNonLayerChildren.js +0 -19
- package/dist/components/molecules/svg-map/index.d.ts +0 -38
- package/dist/components/molecules/svg-map/index.js +0 -121
- package/dist/components/molecules/svg-map/layers/CompositionBorders.d.ts +0 -3
- package/dist/components/molecules/svg-map/layers/CompositionBorders.js +0 -14
- package/dist/components/molecules/svg-map/layers/Line.d.ts +0 -7
- package/dist/components/molecules/svg-map/layers/Line.js +0 -48
- package/dist/components/molecules/svg-map/layers/Point.d.ts +0 -10
- package/dist/components/molecules/svg-map/layers/Point.js +0 -59
- package/dist/components/molecules/svg-map/layers/Polygon.d.ts +0 -9
- package/dist/components/molecules/svg-map/layers/Polygon.js +0 -75
- package/dist/components/molecules/svg-map/layers/Prerendered.d.ts +0 -3
- package/dist/components/molecules/svg-map/layers/Prerendered.js +0 -11
- package/dist/components/molecules/svg-map/layers/compositionBorders.module.scss.js +0 -8
- package/dist/components/molecules/svg-map/layers/index.d.ts +0 -5
- package/dist/components/molecules/svg-map/layers/index.js +0 -12
- package/dist/components/molecules/svg-map/renderers/SVGRenderer.d.ts +0 -3
- package/dist/components/molecules/svg-map/renderers/SVGRenderer.js +0 -32
- package/dist/components/molecules/svg-map/style.module.css.js +0 -11
- package/dist/components/molecules/table/index.d.ts +0 -7
- package/dist/components/molecules/table/index.js +0 -90
- package/dist/components/molecules/table/style.module.scss.js +0 -29
- package/dist/components/molecules/table/useTable.d.ts +0 -8
- package/dist/components/molecules/table/useTable.js +0 -128
- package/dist/components/molecules/tooltip/index.d.ts +0 -82
- package/dist/components/molecules/tooltip/index.js +0 -117
- package/dist/components/molecules/tooltip/style.module.css.js +0 -8
- package/dist/components/molecules/topline-result/index.d.ts +0 -3
- package/dist/components/molecules/topline-result/index.js +0 -61
- package/dist/components/molecules/topline-result/style.module.scss.js +0 -38
- package/dist/components/organisms/coalitions-tracker/index.d.ts +0 -16
- package/dist/components/organisms/coalitions-tracker/index.js +0 -151
- package/dist/components/organisms/coalitions-tracker/style.module.scss.js +0 -32
- package/dist/components/organisms/index.d.ts +0 -2
- package/dist/components/organisms/ticker/gradient/index.d.ts +0 -1
- package/dist/components/organisms/ticker/gradient/index.js +0 -35
- package/dist/components/organisms/ticker/gradient/style.module.scss.js +0 -14
- package/dist/components/organisms/ticker/index.d.ts +0 -5
- package/dist/components/organisms/ticker/index.js +0 -102
- package/dist/components/organisms/ticker/style.module.scss.js +0 -32
- package/dist/components/particles/ad-slot/index.d.ts +0 -40
- package/dist/components/particles/ad-slot/index.js +0 -34
- package/dist/components/particles/ad-slot/style.module.css.js +0 -11
- package/dist/components/particles/arrow-button/index.d.ts +0 -6
- package/dist/components/particles/arrow-button/index.js +0 -32
- package/dist/components/particles/arrow-button/style.module.css.js +0 -11
- package/dist/components/particles/aspect-ratio-box/index.d.ts +0 -4
- package/dist/components/particles/aspect-ratio-box/index.js +0 -15
- package/dist/components/particles/aspect-ratio-box/style.module.css.js +0 -6
- package/dist/components/particles/button/index.d.ts +0 -6
- package/dist/components/particles/button/index.js +0 -10
- package/dist/components/particles/button/style.module.css.js +0 -11
- package/dist/components/particles/change-bar/index.d.ts +0 -8
- package/dist/components/particles/change-bar/index.js +0 -27
- package/dist/components/particles/change-bar/style.module.scss.js +0 -14
- package/dist/components/particles/chevron/index.d.ts +0 -6
- package/dist/components/particles/chevron/index.js +0 -78
- package/dist/components/particles/chevron/style.module.css.js +0 -20
- package/dist/components/particles/circle-icon/index.d.ts +0 -6
- package/dist/components/particles/circle-icon/index.js +0 -32
- package/dist/components/particles/circle-icon/style.module.css.js +0 -14
- package/dist/components/particles/close-button/index.d.ts +0 -5
- package/dist/components/particles/close-button/index.js +0 -35
- package/dist/components/particles/close-button/style.module.css.js +0 -17
- package/dist/components/particles/container/index.d.ts +0 -5
- package/dist/components/particles/container/index.js +0 -13
- package/dist/components/particles/container/style.module.scss.js +0 -11
- package/dist/components/particles/gradient-icon/index.d.ts +0 -1
- package/dist/components/particles/gradient-icon/index.js +0 -46
- package/dist/components/particles/gradient-icon/style.module.css.js +0 -14
- package/dist/components/particles/index.d.ts +0 -18
- package/dist/components/particles/info-button/index.d.ts +0 -3
- package/dist/components/particles/info-button/index.js +0 -19
- package/dist/components/particles/info-button/style.module.css.js +0 -11
- package/dist/components/particles/legend-item/index.d.ts +0 -6
- package/dist/components/particles/legend-item/index.js +0 -26
- package/dist/components/particles/legend-item/style.module.css.js +0 -17
- package/dist/components/particles/relative-time-sentence/index.d.ts +0 -4
- package/dist/components/particles/relative-time-sentence/index.js +0 -14
- package/dist/components/particles/relative-time-sentence/style.module.css.js +0 -8
- package/dist/components/particles/square-cut-corner-icon/index.d.ts +0 -6
- package/dist/components/particles/square-cut-corner-icon/index.js +0 -56
- package/dist/components/particles/square-cut-corner-icon/style.module.scss.js +0 -17
- package/dist/components/particles/square-icon/index.d.ts +0 -5
- package/dist/components/particles/square-icon/index.js +0 -28
- package/dist/components/particles/square-icon/style.module.scss.js +0 -11
- package/dist/components/particles/stacked-bar/index.d.ts +0 -23
- package/dist/components/particles/stacked-bar/index.js +0 -140
- package/dist/components/particles/stacked-bar/style.module.css.js +0 -17
- package/dist/components/particles/stacked-grid/index.d.ts +0 -6
- package/dist/components/particles/stacked-grid/index.js +0 -35
- package/dist/components/particles/stacked-grid/style.module.css.js +0 -20
- package/dist/components/particles/waffle/index.d.ts +0 -14
- package/dist/components/particles/waffle/index.js +0 -76
- package/dist/components/particles/waffle/style.module.css.js +0 -11
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -128
- package/dist/shared/colors/index.d.ts +0 -2
- package/dist/shared/helpers/createStore.d.ts +0 -1
- package/dist/shared/helpers/geometry.d.ts +0 -3
- package/dist/shared/helpers/geometry.js +0 -16
- package/dist/shared/helpers/geometry.test.d.ts +0 -1
- package/dist/shared/helpers/labelsUtil.d.ts +0 -54
- package/dist/shared/helpers/labelsUtil.js +0 -58
- package/dist/shared/helpers/labelsUtils.test.d.ts +0 -1
- package/dist/shared/helpers/shouldUpdate.d.ts +0 -7
- package/dist/shared/hooks/index.d.ts +0 -3
- package/dist/shared/hooks/useContainerSize.d.ts +0 -1
- package/dist/shared/hooks/useContainerSize.js +0 -24
- package/dist/shared/hooks/useTouchOrHover.d.ts +0 -6
- package/dist/shared/hooks/useTouchOrHover.js +0 -95
- package/dist/shared/hooks/useWindowSize.d.ts +0 -4
- package/dist/shared/hooks/useWindowSize.js +0 -27
- package/dist/styles/helpers/mergeStyles.d.ts +0 -1
- package/dist/styles/helpers/mergeStyles.js +0 -22
- package/dist/styles/helpers/mergeStyles.test.d.ts +0 -1
- package/dist/styles/theme.config.d.ts +0 -124
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function GradientIcon(props: any): import("preact").JSX.Element;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
2
|
-
import { useId } from "preact/hooks";
|
|
3
|
-
import defaultStyles from "./style.module.css.js";
|
|
4
|
-
import { mergeStyles } from "../../../styles/helpers/mergeStyles.js";
|
|
5
|
-
const GradientIcon = (props) => {
|
|
6
|
-
let { previous, next, styles } = props;
|
|
7
|
-
styles = mergeStyles(defaultStyles, styles);
|
|
8
|
-
const gradientId = useId();
|
|
9
|
-
return /* @__PURE__ */ jsxs(
|
|
10
|
-
"svg",
|
|
11
|
-
{
|
|
12
|
-
className: styles.svg,
|
|
13
|
-
width: "24",
|
|
14
|
-
height: "11",
|
|
15
|
-
viewBox: "0 0 24 11",
|
|
16
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17
|
-
children: [
|
|
18
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
19
|
-
"linearGradient",
|
|
20
|
-
{
|
|
21
|
-
id: gradientId,
|
|
22
|
-
x1: "5.5",
|
|
23
|
-
y1: "5.5",
|
|
24
|
-
x2: "12",
|
|
25
|
-
y2: "5.5",
|
|
26
|
-
gradientUnits: "userSpaceOnUse",
|
|
27
|
-
children: [
|
|
28
|
-
/* @__PURE__ */ jsx("stop", { className: `${styles == null ? void 0 : styles.previous} stop-color--${previous}` }),
|
|
29
|
-
/* @__PURE__ */ jsx("stop", { className: `${styles == null ? void 0 : styles.next} stop-color--${next}`, offset: "1" })
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
) }),
|
|
33
|
-
/* @__PURE__ */ jsx(
|
|
34
|
-
"path",
|
|
35
|
-
{
|
|
36
|
-
d: "M0 5.434C0 2.43288 2.43288 0 5.434 0H5.69626C6.85818 0 7.9797 0.426401 8.84813 1.19834C10.6456 2.79612 13.3544 2.79612 15.1519 1.19834C16.0203 0.426401 17.1418 0 18.3037 0L18.566 0C21.5671 0 24 2.43288 24 5.434V5.566C24 8.56712 21.5671 11 18.566 11H18.3037C17.1418 11 16.0203 10.5736 15.1519 9.80166C13.3544 8.20388 10.6456 8.20388 8.84813 9.80166C7.9797 10.5736 6.85818 11 5.69626 11H5.434C2.43288 11 0 8.56712 0 5.566V5.434Z",
|
|
37
|
-
fill: `url(#${gradientId})`
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
export {
|
|
45
|
-
GradientIcon
|
|
46
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from './chevron';
|
|
2
|
-
export * from './legend-item';
|
|
3
|
-
export * from './stacked-bar';
|
|
4
|
-
export * from './gradient-icon';
|
|
5
|
-
export * from './waffle';
|
|
6
|
-
export * from './info-button';
|
|
7
|
-
export * from './circle-icon';
|
|
8
|
-
export * from './relative-time-sentence';
|
|
9
|
-
export * from './container';
|
|
10
|
-
export * from './change-bar';
|
|
11
|
-
export * from './square-cut-corner-icon';
|
|
12
|
-
export * from './stacked-grid';
|
|
13
|
-
export * from './square-icon';
|
|
14
|
-
export * from './arrow-button';
|
|
15
|
-
export * from './button';
|
|
16
|
-
export * from './close-button';
|
|
17
|
-
export * from './ad-slot';
|
|
18
|
-
export * from './aspect-ratio-box';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx } from "preact/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "preact/compat";
|
|
3
|
-
import { mergeStyles } from "../../../styles/helpers/mergeStyles.js";
|
|
4
|
-
import defaultStyles from "./style.module.css.js";
|
|
5
|
-
const InfoButton = forwardRef(({ onClick, styles }, ref) => {
|
|
6
|
-
styles = mergeStyles({ ...defaultStyles }, styles);
|
|
7
|
-
return /* @__PURE__ */ jsx("button", { ref, className: styles.button, onClick, children: /* @__PURE__ */ jsx(
|
|
8
|
-
"svg",
|
|
9
|
-
{
|
|
10
|
-
className: styles.svg,
|
|
11
|
-
viewBox: "0 0 5 13",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
children: /* @__PURE__ */ jsx("path", { d: "m3.72905 10.8229v.5256c-.11944.0955-.28666.1672-.45388.2628-.16723.0716-.35834.1433-.54945.215-.19111.0716-.38222.1194-.57333.1433s-.38222.0478-.54945.0478c-.38222 0-.621109-.0717-.764442-.215-.167222-.1434-.238889-.3106-.238889-.4778 0-.1911.023889-.3822.047778-.5733s.071667-.3823.119445-.6211l1.003328-4.56282-.931662-.215v-.50167c.143333-.04777.334442-.11944.597222-.19111.23889-.07166.50167-.11944.78833-.16722.28667-.04778.54945-.09556.81223-.11944.26277-.02389.50166-.04778.71666-.04778l.26278.16722-1.33778 6.33052zm.45389-8.02663c-.215.19111-.52555.28667-.88389.28667-.33444 0-.62111-.09556-.86-.28667-.215-.19111-.33444-.43-.33444-.74056 0-.33444.11944-.59722.33444-.78833s.50167-.286667.86-.286667c.38223 0 .66889.095557.88389.286667s.33445.45389.33445.78833c-.02389.31056-.11945.54945-.33445.74056z" })
|
|
14
|
-
}
|
|
15
|
-
) });
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
InfoButton
|
|
19
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "preact/jsx-runtime";
|
|
2
|
-
import defaultStyles from "./style.module.css.js";
|
|
3
|
-
import { mergeStyles } from "../../../styles/helpers/mergeStyles.js";
|
|
4
|
-
const DOT_TYPE = {
|
|
5
|
-
round: "round",
|
|
6
|
-
square: "square"
|
|
7
|
-
};
|
|
8
|
-
const LegendItem = ({
|
|
9
|
-
dotType = DOT_TYPE.round,
|
|
10
|
-
text,
|
|
11
|
-
styles,
|
|
12
|
-
abbreviation
|
|
13
|
-
}) => {
|
|
14
|
-
const defaultStylesCopy = { ...defaultStyles };
|
|
15
|
-
if (dotType === DOT_TYPE.round) {
|
|
16
|
-
defaultStylesCopy.dot = mergeStyles(defaultStyles.dot, defaultStyles.circle);
|
|
17
|
-
}
|
|
18
|
-
styles = mergeStyles(defaultStylesCopy, styles);
|
|
19
|
-
return /* @__PURE__ */ jsxs("div", { className: styles.container, children: [
|
|
20
|
-
/* @__PURE__ */ jsx("span", { className: `${styles.dot} bg-color--${abbreviation}` }),
|
|
21
|
-
/* @__PURE__ */ jsx("p", { className: styles.text, children: text })
|
|
22
|
-
] });
|
|
23
|
-
};
|
|
24
|
-
export {
|
|
25
|
-
LegendItem
|
|
26
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const container = "_container_jzalm_1";
|
|
2
|
-
const dot = "_dot_jzalm_6";
|
|
3
|
-
const circle = "_circle_jzalm_13";
|
|
4
|
-
const text = "_text_jzalm_17";
|
|
5
|
-
const defaultStyles = {
|
|
6
|
-
container,
|
|
7
|
-
dot,
|
|
8
|
-
circle,
|
|
9
|
-
text
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
circle,
|
|
13
|
-
container,
|
|
14
|
-
defaultStyles as default,
|
|
15
|
-
dot,
|
|
16
|
-
text
|
|
17
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
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 dayjs from "dayjs";
|
|
5
|
-
import relativeTime from "dayjs/plugin/relativeTime";
|
|
6
|
-
dayjs.extend(relativeTime);
|
|
7
|
-
const RelativeTimeSentence = ({ timeStamp, styles }) => {
|
|
8
|
-
styles = mergeStyles({ ...defaultStyles }, styles);
|
|
9
|
-
let timeSince = dayjs(timeStamp).fromNow();
|
|
10
|
-
return /* @__PURE__ */ jsx("span", { className: styles.dateStampText, children: timeSince });
|
|
11
|
-
};
|
|
12
|
-
export {
|
|
13
|
-
RelativeTimeSentence
|
|
14
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
2
|
-
import defaultStyles from "./style.module.scss.js";
|
|
3
|
-
import { mergeStyles } from "../../../styles/helpers/mergeStyles.js";
|
|
4
|
-
const SquareCutCornerIcon = ({
|
|
5
|
-
cornerColor,
|
|
6
|
-
squareColor,
|
|
7
|
-
squareSize,
|
|
8
|
-
styles
|
|
9
|
-
}) => {
|
|
10
|
-
styles = mergeStyles({ ...defaultStyles }, styles);
|
|
11
|
-
let cornerSize = squareSize * 0.625;
|
|
12
|
-
let cornerMargin = squareSize < 100 ? squareSize / 6 : 10;
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
"svg",
|
|
15
|
-
{
|
|
16
|
-
width: squareSize,
|
|
17
|
-
height: squareSize,
|
|
18
|
-
className: styles.svg,
|
|
19
|
-
viewBox: `0 0 ${squareSize} ${squareSize}`,
|
|
20
|
-
children: /* @__PURE__ */ jsxs("g", { id: "square-cutoff-corner-icon", children: [
|
|
21
|
-
/* @__PURE__ */ jsx(
|
|
22
|
-
"rect",
|
|
23
|
-
{
|
|
24
|
-
id: "square",
|
|
25
|
-
fill: squareColor,
|
|
26
|
-
className: styles.square,
|
|
27
|
-
width: squareSize,
|
|
28
|
-
height: squareSize
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
/* @__PURE__ */ jsxs("g", { id: "corner", children: [
|
|
32
|
-
/* @__PURE__ */ jsx(
|
|
33
|
-
"polygon",
|
|
34
|
-
{
|
|
35
|
-
id: "cornerTriangleBg",
|
|
36
|
-
className: styles.dividingLineColor,
|
|
37
|
-
points: `0,0 0,${cornerSize} ${cornerSize},0`
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
/* @__PURE__ */ jsx(
|
|
41
|
-
"polygon",
|
|
42
|
-
{
|
|
43
|
-
id: "cornerTriangle",
|
|
44
|
-
fill: cornerColor,
|
|
45
|
-
className: styles.corner,
|
|
46
|
-
points: `0,0 0,${cornerSize - cornerMargin} ${cornerSize - cornerMargin},0`
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
] })
|
|
50
|
-
] })
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
export {
|
|
55
|
-
SquareCutCornerIcon
|
|
56
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const svg = "_svg_886i1_9";
|
|
2
|
-
const dividingLineColor = "_dividingLineColor_886i1_16";
|
|
3
|
-
const square = "_square_886i1_20";
|
|
4
|
-
const corner = "_corner_886i1_24";
|
|
5
|
-
const defaultStyles = {
|
|
6
|
-
svg,
|
|
7
|
-
dividingLineColor,
|
|
8
|
-
square,
|
|
9
|
-
corner
|
|
10
|
-
};
|
|
11
|
-
export {
|
|
12
|
-
corner,
|
|
13
|
-
defaultStyles as default,
|
|
14
|
-
dividingLineColor,
|
|
15
|
-
square,
|
|
16
|
-
svg
|
|
17
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|