@guardian/interactive-component-library 0.5.1 → 0.5.3

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 (28) hide show
  1. package/dist/components/molecules/canvas-map/lib/Feature.d.ts +4 -1
  2. package/dist/components/molecules/canvas-map/lib/Feature.js +3 -0
  3. package/dist/components/molecules/canvas-map/lib/layers/TextLayer.d.ts +49 -15
  4. package/dist/components/molecules/canvas-map/lib/layers/TextLayer.js +4 -1
  5. package/dist/components/molecules/canvas-map/lib/layers/VectorLayer.d.ts +36 -10
  6. package/dist/components/molecules/canvas-map/lib/layers/VectorLayer.js +6 -3
  7. package/dist/components/molecules/canvas-map/lib/renderers/MapRenderer.d.ts +14 -0
  8. package/dist/components/molecules/canvas-map/lib/renderers/MapRenderer.js +52 -8
  9. package/dist/components/molecules/canvas-map/lib/renderers/TextLayerRenderer.d.ts +50 -5
  10. package/dist/components/molecules/canvas-map/lib/renderers/TextLayerRenderer.js +171 -24
  11. package/dist/components/molecules/canvas-map/lib/renderers/VectorLayerRenderer.d.ts +13 -6
  12. package/dist/components/molecules/canvas-map/lib/renderers/VectorLayerRenderer.js +12 -42
  13. package/dist/components/molecules/canvas-map/lib/sources/VectorSource.d.ts +24 -6
  14. package/dist/components/molecules/canvas-map/lib/sources/VectorSource.js +18 -0
  15. package/dist/components/molecules/canvas-map/lib/styles/Style.d.ts +40 -11
  16. package/dist/components/molecules/canvas-map/lib/styles/Style.js +7 -0
  17. package/dist/components/molecules/canvas-map/lib/styles/Text.d.ts +184 -11
  18. package/dist/components/molecules/canvas-map/lib/styles/Text.js +18 -3
  19. package/dist/components/molecules/result-summary/index.d.ts +2 -1
  20. package/dist/components/molecules/result-summary/index.js +30 -5
  21. package/dist/components/molecules/result-summary/style.module.css.js +12 -3
  22. package/dist/components/organisms/ticker/index.d.ts +2 -1
  23. package/dist/components/organisms/ticker/index.js +4 -1
  24. package/dist/components/organisms/ticker/lib/TickerControlsDesktop.js +4 -4
  25. package/dist/components/organisms/ticker/lib/TickerControlsMobileVertical.js +5 -5
  26. package/dist/components/organisms/ticker/style.module.scss.js +2 -2
  27. package/dist/style.css +21 -2
  28. package/package.json +1 -1
@@ -4,7 +4,7 @@ import "preact/hooks";
4
4
  import "../../../particles/info-button/index.js";
5
5
  import "../../../particles/relative-time-sentence/index.js";
6
6
  import { Button } from "../../../particles/button/index.js";
7
- import styles from "../style.module.scss.js";
7
+ import defaultStyles from "../style.module.scss.js";
8
8
  const TickerControlsMobileVertical = ({
9
9
  hideButtons,
10
10
  controlsRef,
@@ -15,15 +15,15 @@ const TickerControlsMobileVertical = ({
15
15
  "div",
16
16
  {
17
17
  ref: controlsRef,
18
- className: styles.controls,
18
+ className: defaultStyles.controls,
19
19
  style: hideButtons && { display: "none" },
20
20
  children: [
21
- /* @__PURE__ */ jsx("div", { className: styles.gradient, children: /* @__PURE__ */ jsx(Gradient, {}) }),
22
- /* @__PURE__ */ jsx("div", { className: styles.button, children: /* @__PURE__ */ jsx(
21
+ /* @__PURE__ */ jsx("div", { className: defaultStyles.gradient, children: /* @__PURE__ */ jsx(Gradient, {}) }),
22
+ /* @__PURE__ */ jsx("div", { className: defaultStyles.button, children: /* @__PURE__ */ jsx(
23
23
  Button,
24
24
  {
25
25
  type: "regular",
26
- styles: { buttonInner: styles.buttonInner },
26
+ styles: { buttonInner: defaultStyles.buttonInner },
27
27
  onClick: toggleExpandedState,
28
28
  children: buttonText
29
29
  }
@@ -10,7 +10,7 @@ const gradientHorizontal = "_gradientHorizontal_1at7j_103";
10
10
  const buttons = "_buttons_1at7j_118";
11
11
  const button = "_button_1at7j_118";
12
12
  const buttonInner = "_buttonInner_1at7j_144";
13
- const styles = {
13
+ const defaultStyles = {
14
14
  tickerVertical,
15
15
  ticker,
16
16
  tickerItems,
@@ -29,7 +29,7 @@ export {
29
29
  buttonInner,
30
30
  buttons,
31
31
  controls,
32
- styles as default,
32
+ defaultStyles as default,
33
33
  gradient,
34
34
  gradientHorizontal,
35
35
  ticker,
package/dist/style.css CHANGED
@@ -2443,7 +2443,7 @@ body ._header_1xpz0_150._fullWidth_1xpz0_39 {
2443
2443
  color: var(--primary-text-color);
2444
2444
  margin-top: var(--space-2);
2445
2445
  }
2446
- ._container_azu4a_1 {
2446
+ ._container_14h9i_1 {
2447
2447
  background-color: var(--quaternary-bg-color);
2448
2448
  border-radius: 4px;
2449
2449
  padding: 4px 8px 6px 8px;
@@ -2454,7 +2454,26 @@ body ._header_1xpz0_150._fullWidth_1xpz0_39 {
2454
2454
  height: 100%;
2455
2455
  }
2456
2456
 
2457
- ._paragraph_azu4a_12 {
2457
+ ._containerSlim_14h9i_12 {
2458
+ min-width: 260px;
2459
+ display: inline-block;
2460
+ }
2461
+
2462
+ ._titleSlim_14h9i_17 {
2463
+ display: inline;
2464
+ color: var(--primary-text-color) !important;
2465
+ font-family: var(--text-sans) !important;
2466
+ font-size: var(--sans-small) !important;
2467
+ line-height: var(--sans-line-height) !important;
2468
+ font-weight: 700 !important;
2469
+ margin-left: var(--space-1) !important;
2470
+ }
2471
+
2472
+ ._dateStampLinePosition_14h9i_27 {
2473
+ display: block;
2474
+ }
2475
+
2476
+ ._paragraph_14h9i_31 {
2458
2477
  font-family: var(--text-sans);
2459
2478
  font-size: var(--sans-xsmall);
2460
2479
  line-height: var(--sans-line-height);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@guardian/interactive-component-library",
3
3
  "private": false,
4
- "version": "0.5.1",
4
+ "version": "0.5.3",
5
5
  "packageManager": "pnpm@8.4.0",
6
6
  "repository": {
7
7
  "type": "git",