@blateral/b.kit 2.3.0-beta.1.3 → 2.3.0-beta.1.4
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/cjs/EventBlock-10b9d78d.js +2 -0
- package/cjs/EventBlock-10b9d78d.js.map +1 -0
- package/cjs/FileUpload-ece8bb07.js +2 -0
- package/cjs/FileUpload-ece8bb07.js.map +1 -0
- package/cjs/Filter-d6d90b8b.js +2 -0
- package/cjs/Filter-d6d90b8b.js.map +1 -0
- package/cjs/FilterField-cf9e2f16.js +2 -0
- package/cjs/FilterField-cf9e2f16.js.map +1 -0
- package/cjs/Grid-39b12e21.js +2 -0
- package/cjs/Grid-39b12e21.js.map +1 -0
- package/cjs/InfoList-577f3c57.js +2 -0
- package/cjs/InfoList-577f3c57.js.map +1 -0
- package/cjs/POICard-492bf8d0.js +2 -0
- package/cjs/POICard-492bf8d0.js.map +1 -0
- package/cjs/TableBlock-a5b16e8f.js +2 -0
- package/cjs/TableBlock-a5b16e8f.js.map +1 -0
- package/cjs/Tag-5c72cc0d.js +2 -0
- package/cjs/Tag-5c72cc0d.js.map +1 -0
- package/cjs/VideoBlock-301997a9.js +2 -0
- package/cjs/VideoBlock-301997a9.js.map +1 -0
- package/cjs/VideoCard-405b518a.js +2 -0
- package/cjs/VideoCard-405b518a.js.map +1 -0
- package/cjs/Wrapper-91748bdb.js +2 -0
- package/cjs/Wrapper-91748bdb.js.map +1 -0
- package/cjs/base.js +1 -1
- package/cjs/blocks.js +1 -1
- package/cjs/escape-1ef8dd83.js +2 -0
- package/cjs/escape-1ef8dd83.js.map +1 -0
- package/cjs/fields.js +1 -1
- package/cjs/fields.js.map +1 -1
- package/cjs/footer.js +1 -1
- package/cjs/footer.js.map +1 -1
- package/cjs/hooks.js +1 -1
- package/cjs/hooks.js.map +1 -1
- package/cjs/sections.js +1 -1
- package/cjs/sections.js.map +1 -1
- package/cjs/sections_events.js +2 -0
- package/cjs/sections_events.js.map +1 -0
- package/cjs/sections_forms.js +2 -0
- package/cjs/sections_forms.js.map +1 -0
- package/cjs/sections_jobs.js +2 -0
- package/cjs/sections_jobs.js.map +1 -0
- package/cjs/sections_news.js +1 -1
- package/cjs/sections_news.js.map +1 -1
- package/cjs/sections_pois.js +2 -0
- package/cjs/sections_pois.js.map +1 -0
- package/cjs/structuredData-0b1278a9.js +2 -0
- package/cjs/structuredData-0b1278a9.js.map +1 -0
- package/cjs/urlParams-7525f638.js +2 -0
- package/cjs/urlParams-7525f638.js.map +1 -0
- package/cjs/useEqualSheetHeight-cfd4176e.js +2 -0
- package/cjs/useEqualSheetHeight-cfd4176e.js.map +1 -0
- package/cjs/useGeolocation-d8946470.js +2 -0
- package/cjs/useGeolocation-d8946470.js.map +1 -0
- package/cjs/useLazyInput-f71c221b.js +2 -0
- package/cjs/useLazyInput-f71c221b.js.map +1 -0
- package/cjs/useLeafletMap-2e608b01.js +2 -0
- package/cjs/useLeafletMap-2e608b01.js.map +1 -0
- package/cjs/useScrollTo-fdd665da.js +2 -0
- package/cjs/useScrollTo-fdd665da.js.map +1 -0
- package/esm/{Actions-73e13c48.js → Actions-3f06c2e9.js} +3 -3
- package/esm/{Actions-73e13c48.js.map → Actions-3f06c2e9.js.map} +1 -1
- package/esm/{Bdot-30b047cc.js → Bdot-fae262fc.js} +3 -3
- package/esm/{Bdot-30b047cc.js.map → Bdot-fae262fc.js.map} +1 -1
- package/esm/{Button-678be396.js → Button-ab1a4e79.js} +3 -3
- package/esm/{Button-678be396.js.map → Button-ab1a4e79.js.map} +1 -1
- package/esm/{ButtonGhost-6673a07e.js → ButtonGhost-5b498dba.js} +3 -3
- package/esm/{ButtonGhost-6673a07e.js.map → ButtonGhost-5b498dba.js.map} +1 -1
- package/esm/{Callout-439308f6.js → Callout-389fed95.js} +4 -4
- package/esm/{Callout-439308f6.js.map → Callout-389fed95.js.map} +1 -1
- package/esm/{Checkbox-a365d733.js → Checkbox-957d8f33.js} +5 -5
- package/esm/{Checkbox-a365d733.js.map → Checkbox-957d8f33.js.map} +1 -1
- package/esm/{ClockFilled-8784ddac.js → ClockFilled-6bae80dc.js} +2 -2
- package/esm/{ClockFilled-8784ddac.js.map → ClockFilled-6bae80dc.js.map} +1 -1
- package/esm/{Control-e61c9395.js → Control-57a287dc.js} +3 -3
- package/esm/{Control-e61c9395.js.map → Control-57a287dc.js.map} +1 -1
- package/esm/{Copy-3444d005.js → Copy-fb124972.js} +4 -4
- package/esm/{Copy-3444d005.js.map → Copy-fb124972.js.map} +1 -1
- package/esm/EventBlock-0109da13.js +132 -0
- package/esm/EventBlock-0109da13.js.map +1 -0
- package/esm/{FilterField-f423b4d1.js → FileUpload-4ba0a672.js} +48 -165
- package/esm/FileUpload-4ba0a672.js.map +1 -0
- package/esm/Filter-fec6dc5c.js +32 -0
- package/esm/Filter-fec6dc5c.js.map +1 -0
- package/esm/FilterField-03097694.js +129 -0
- package/esm/FilterField-03097694.js.map +1 -0
- package/esm/{Wrapper-f4a70e30.js → Grid-151498da.js} +7 -224
- package/esm/Grid-151498da.js.map +1 -0
- package/esm/{Image-82417953.js → Image-b538f659.js} +5 -5
- package/esm/{Image-82417953.js.map → Image-b538f659.js.map} +1 -1
- package/esm/InfoList-616d17fd.js +74 -0
- package/esm/InfoList-616d17fd.js.map +1 -0
- package/esm/{LanguageSwitcher-a53094d3.js → LanguageSwitcher-058e0145.js} +5 -5
- package/esm/{LanguageSwitcher-a53094d3.js.map → LanguageSwitcher-058e0145.js.map} +1 -1
- package/esm/{LibThemeProvider-90a5375f.js → LibThemeProvider-a38c5bf1.js} +3 -3
- package/esm/{LibThemeProvider-90a5375f.js.map → LibThemeProvider-a38c5bf1.js.map} +1 -1
- package/esm/{Link-ee8a48ed.js → Link-0a1e35d6.js} +3 -3
- package/esm/{Link-ee8a48ed.js.map → Link-0a1e35d6.js.map} +1 -1
- package/esm/{Navigation-ece0ff0d.js → Navigation-13dce48c.js} +10 -10
- package/esm/{Navigation-ece0ff0d.js.map → Navigation-13dce48c.js.map} +1 -1
- package/esm/POICard-392a2c3a.js +116 -0
- package/esm/POICard-392a2c3a.js.map +1 -0
- package/esm/{Pointer-da4d0977.js → Pointer-bc68154f.js} +3 -3
- package/esm/{Pointer-da4d0977.js.map → Pointer-bc68154f.js.map} +1 -1
- package/esm/{SocialList-7c00c70e.js → SocialList-4396cad9.js} +5 -5
- package/esm/{SocialList-7c00c70e.js.map → SocialList-4396cad9.js.map} +1 -1
- package/esm/{TableBlock-0bbde956.js → TableBlock-26530c71.js} +11 -70
- package/esm/TableBlock-26530c71.js.map +1 -0
- package/esm/Tag-72424779.js +67 -0
- package/esm/Tag-72424779.js.map +1 -0
- package/esm/{POICard-d8832988.js → VideoBlock-b3f4ae27.js} +39 -332
- package/esm/VideoBlock-b3f4ae27.js.map +1 -0
- package/esm/{VideoCard-2557407b.js → VideoCard-3fd368ef.js} +8 -35
- package/esm/VideoCard-3fd368ef.js.map +1 -0
- package/esm/Wrapper-29347885.js +224 -0
- package/esm/Wrapper-29347885.js.map +1 -0
- package/esm/base.js +4 -3
- package/esm/base.js.map +1 -1
- package/esm/blocks.js +19 -15
- package/esm/blocks.js.map +1 -1
- package/esm/buttons.js +6 -6
- package/esm/cookies.js +8 -8
- package/esm/escape-cbff9c25.js +6 -0
- package/esm/escape-cbff9c25.js.map +1 -0
- package/esm/fields.js +12 -9
- package/esm/fields.js.map +1 -1
- package/esm/footer.js +10 -9
- package/esm/footer.js.map +1 -1
- package/esm/hooks.js +13 -9
- package/esm/hooks.js.map +1 -1
- package/esm/icons.js +1 -1
- package/esm/index.js +3 -3
- package/esm/{navigation-49280321.js → navigation-a2998143.js} +2 -2
- package/esm/{navigation-49280321.js.map → navigation-a2998143.js.map} +1 -1
- package/esm/navigation.js +12 -12
- package/esm/sections.js +2595 -5807
- package/esm/sections.js.map +1 -1
- package/esm/sections_events.js +573 -0
- package/esm/sections_events.js.map +1 -0
- package/esm/sections_forms.js +1405 -0
- package/esm/sections_forms.js.map +1 -0
- package/esm/sections_jobs.js +508 -0
- package/esm/sections_jobs.js.map +1 -0
- package/esm/sections_news.js +102 -97
- package/esm/sections_news.js.map +1 -1
- package/esm/sections_pois.js +719 -0
- package/esm/sections_pois.js.map +1 -0
- package/esm/structuredData-87423414.js +117 -0
- package/esm/structuredData-87423414.js.map +1 -0
- package/esm/{styles-5f78e59d.js → styles-f6c54818.js} +2 -2
- package/esm/{styles-5f78e59d.js.map → styles-f6c54818.js.map} +1 -1
- package/esm/typography.js +6 -6
- package/esm/urlParams-9cfdaf71.js +51 -0
- package/esm/urlParams-9cfdaf71.js.map +1 -0
- package/esm/{useCookieConsent-db86e5cb.js → useCookieConsent-8caef116.js} +2 -2
- package/esm/{useCookieConsent-db86e5cb.js.map → useCookieConsent-8caef116.js.map} +1 -1
- package/esm/{urlParams-882563ce.js → useEqualSheetHeight-c18cebd3.js} +4 -105
- package/esm/useEqualSheetHeight-c18cebd3.js.map +1 -0
- package/esm/useGeolocation-f9f073cc.js +95 -0
- package/esm/useGeolocation-f9f073cc.js.map +1 -0
- package/esm/useLazyInput-e66fc5be.js +85 -0
- package/esm/useLazyInput-e66fc5be.js.map +1 -0
- package/esm/{useGeolocation-c81e3efc.js → useLeafletMap-6dea7a8e.js} +4 -175
- package/esm/useLeafletMap-6dea7a8e.js.map +1 -0
- package/esm/{useMediaQuery-43629cbb.js → useMediaQuery-0d473a9c.js} +2 -2
- package/esm/{useMediaQuery-43629cbb.js.map → useMediaQuery-0d473a9c.js.map} +1 -1
- package/esm/useScrollTo-70af34bf.js +57 -0
- package/esm/useScrollTo-70af34bf.js.map +1 -0
- package/package.json +1 -1
- package/sections/events/package.json +7 -0
- package/sections/forms/package.json +7 -0
- package/sections/jobs/package.json +7 -0
- package/sections/pois/package.json +7 -0
- package/types/sections.d.ts +0 -10
- package/types/sections.d.ts.map +1 -1
- package/types/sections_events.d.ts +4 -0
- package/types/sections_events.d.ts.map +1 -0
- package/types/sections_forms.d.ts +3 -0
- package/types/sections_forms.d.ts.map +1 -0
- package/types/sections_jobs.d.ts +3 -0
- package/types/sections_jobs.d.ts.map +1 -0
- package/types/sections_news.d.ts +2 -2
- package/types/sections_news.d.ts.map +1 -1
- package/types/sections_pois.d.ts +4 -0
- package/types/sections_pois.d.ts.map +1 -0
- package/cjs/FilterField-497e998f.js +0 -2
- package/cjs/FilterField-497e998f.js.map +0 -1
- package/cjs/POICard-9911980e.js +0 -2
- package/cjs/POICard-9911980e.js.map +0 -1
- package/cjs/TableBlock-080c9c2e.js +0 -2
- package/cjs/TableBlock-080c9c2e.js.map +0 -1
- package/cjs/VideoCard-1fa209fc.js +0 -2
- package/cjs/VideoCard-1fa209fc.js.map +0 -1
- package/cjs/Wrapper-3b9c9e89.js +0 -2
- package/cjs/Wrapper-3b9c9e89.js.map +0 -1
- package/cjs/urlParams-1d03b5a6.js +0 -2
- package/cjs/urlParams-1d03b5a6.js.map +0 -1
- package/cjs/useGeolocation-4d38150b.js +0 -2
- package/cjs/useGeolocation-4d38150b.js.map +0 -1
- package/esm/FilterField-f423b4d1.js.map +0 -1
- package/esm/POICard-d8832988.js.map +0 -1
- package/esm/TableBlock-0bbde956.js.map +0 -1
- package/esm/VideoCard-2557407b.js.map +0 -1
- package/esm/Wrapper-f4a70e30.js.map +0 -1
- package/esm/urlParams-882563ce.js.map +0 -1
- package/esm/useGeolocation-c81e3efc.js.map +0 -1
package/esm/sections_news.js
CHANGED
|
@@ -1,27 +1,32 @@
|
|
|
1
|
-
import { a as __makeTemplateObject, _ as __assign, e as __spreadArray } from './ClockFilled-
|
|
1
|
+
import { a as __makeTemplateObject, _ as __assign, e as __spreadArray } from './ClockFilled-6bae80dc.js';
|
|
2
2
|
import React__default, { forwardRef, useMemo, useState, useRef, useCallback, useEffect } from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import { S as Section, m as mapToBgMode, W as Wrapper
|
|
5
|
-
import { C as Copy, H as Heading, c as copyStyle } from './Copy-
|
|
6
|
-
import { g as getColors, s as spacings, m as mq, c as getGlobals, a as getFonts } from './styles-
|
|
7
|
-
import { w as withLibTheme, u as useLibTheme } from './LibThemeProvider-
|
|
8
|
-
import { I as Image } from './Image-
|
|
9
|
-
import {
|
|
4
|
+
import { S as Section, m as mapToBgMode, W as Wrapper } from './Wrapper-29347885.js';
|
|
5
|
+
import { C as Copy, H as Heading, c as copyStyle } from './Copy-fb124972.js';
|
|
6
|
+
import { g as getColors, s as spacings, m as mq, c as getGlobals, a as getFonts } from './styles-f6c54818.js';
|
|
7
|
+
import { w as withLibTheme, u as useLibTheme } from './LibThemeProvider-a38c5bf1.js';
|
|
8
|
+
import { I as Image } from './Image-b538f659.js';
|
|
9
|
+
import { T as Tag } from './Tag-72424779.js';
|
|
10
10
|
import { S as StatusFormatter } from './statusFormatter-9be0fbff.js';
|
|
11
|
-
import { L as Link } from './Link-
|
|
11
|
+
import { L as Link } from './Link-0a1e35d6.js';
|
|
12
12
|
import { i as isValidArray } from './arrays-65b644ef.js';
|
|
13
|
-
import { u as useMediaQuery } from './useMediaQuery-
|
|
14
|
-
import {
|
|
13
|
+
import { u as useMediaQuery } from './useMediaQuery-0d473a9c.js';
|
|
14
|
+
import { u as useEqualSheetHeight } from './useEqualSheetHeight-c18cebd3.js';
|
|
15
|
+
import { G as Grid } from './Grid-151498da.js';
|
|
15
16
|
import { u as useObserverSupport } from './useObserverSupport-02bce7f5.js';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
17
|
+
import { u as useScrollTo } from './useScrollTo-70af34bf.js';
|
|
18
|
+
import { P as Pointer } from './Pointer-bc68154f.js';
|
|
19
|
+
import { g as getUrlParams, s as setUrlParam, d as deleteUrlParam } from './urlParams-9cfdaf71.js';
|
|
20
|
+
import { F as Filter } from './Filter-fec6dc5c.js';
|
|
18
21
|
import { u as useUpdateEffect } from './useUpdateEffect-824c0c84.js';
|
|
19
22
|
import { u as useMounted } from './useMounted-1e4cc87b.js';
|
|
20
|
-
import './
|
|
23
|
+
import { T as Title, a as TableBlock } from './TableBlock-26530c71.js';
|
|
24
|
+
import { V as VideoCard } from './VideoCard-3fd368ef.js';
|
|
21
25
|
import './concat-ab3c66f2.js';
|
|
26
|
+
import './clamp-12d37b65.js';
|
|
22
27
|
import 'react-dom/server';
|
|
23
|
-
import './useCookieConsent-
|
|
24
|
-
import './ButtonGhost-
|
|
28
|
+
import './useCookieConsent-8caef116.js';
|
|
29
|
+
import './ButtonGhost-5b498dba.js';
|
|
25
30
|
import './hexRgbConverter-edb91624.js';
|
|
26
31
|
|
|
27
32
|
var Seperator = styled.div.withConfig({
|
|
@@ -842,88 +847,10 @@ var NewsIntro = function (_a) {
|
|
|
842
847
|
var NewsIntro$1 = withLibTheme(NewsIntro);
|
|
843
848
|
var templateObject_1$3, templateObject_2$1, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
|
844
849
|
|
|
845
|
-
var News = styled.ul.withConfig({
|
|
846
|
-
displayName: "NewsList__News",
|
|
847
|
-
componentId: "sc-sew5jz-0"
|
|
848
|
-
})(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n list-style: none;\n margin: 0;\n margin-top: -", "px;\n margin-left: -", "px;\n padding: 0;\n\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n\n flex-wrap: wrap;\n"], ["\n list-style: none;\n margin: 0;\n margin-top: -", "px;\n margin-left: -", "px;\n padding: 0;\n\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n\n flex-wrap: wrap;\n"])), spacings.nudge * 6, spacings.spacer);
|
|
849
|
-
var NewsItem = styled.li.withConfig({
|
|
850
|
-
displayName: "NewsList__NewsItem",
|
|
851
|
-
componentId: "sc-sew5jz-1"
|
|
852
|
-
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-top: ", "px;\n padding-left: ", "px;\n flex: 1 0 100%;\n max-width: 100%;\n\n @media ", " {\n flex: 1 0 50%;\n max-width: 50%;\n }\n\n @media ", " {\n flex: 1 0 33.33%;\n max-width: 33.33%;\n }\n"], ["\n padding-top: ", "px;\n padding-left: ", "px;\n flex: 1 0 100%;\n max-width: 100%;\n\n @media ", " {\n flex: 1 0 50%;\n max-width: 50%;\n }\n\n @media ", " {\n flex: 1 0 33.33%;\n max-width: 33.33%;\n }\n"])), spacings.nudge * 6, spacings.spacer, mq.medium, mq.large);
|
|
853
|
-
|
|
854
|
-
var NewsList = function (_a) {
|
|
855
|
-
var anchorId = _a.anchorId,
|
|
856
|
-
_b = _a.mode,
|
|
857
|
-
mode = _b === void 0 ? 'short' : _b,
|
|
858
|
-
news = _a.news,
|
|
859
|
-
bgMode = _a.bgMode,
|
|
860
|
-
customTag = _a.customTag;
|
|
861
|
-
|
|
862
|
-
var _c = useLibTheme(),
|
|
863
|
-
colors = _c.colors,
|
|
864
|
-
theme = _c.theme;
|
|
865
|
-
|
|
866
|
-
var items = useMemo(function () {
|
|
867
|
-
if (!news) return [];
|
|
868
|
-
if (mode === 'expanded') return news.slice(0, 6);else return news.slice(0, 3);
|
|
869
|
-
}, [news, mode]);
|
|
870
|
-
var isInverted = bgMode === 'inverted';
|
|
871
|
-
var hasBg = bgMode === 'full';
|
|
872
|
-
var cardRefs = useEqualSheetHeight({
|
|
873
|
-
listLength: items.length,
|
|
874
|
-
identifiers: ['[data-sheet="head"]', '[data-sheet="title"]', '[data-sheet="text"]'],
|
|
875
|
-
responsive: {
|
|
876
|
-
small: 1,
|
|
877
|
-
medium: 2,
|
|
878
|
-
semilarge: 2,
|
|
879
|
-
large: 3,
|
|
880
|
-
xlarge: 3
|
|
881
|
-
}
|
|
882
|
-
}).sheetRefs;
|
|
883
|
-
return React__default.createElement(Section, {
|
|
884
|
-
addSeperation: true,
|
|
885
|
-
anchorId: anchorId,
|
|
886
|
-
bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
|
|
887
|
-
bgMode: mapToBgMode(bgMode, true)
|
|
888
|
-
}, React__default.createElement(Wrapper, {
|
|
889
|
-
addWhitespace: true
|
|
890
|
-
}, React__default.createElement(News, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
|
|
891
|
-
var _a;
|
|
892
|
-
|
|
893
|
-
return React__default.createElement(NewsItem, {
|
|
894
|
-
key: i
|
|
895
|
-
}, React__default.createElement(NewsCard, __assign({
|
|
896
|
-
key: i,
|
|
897
|
-
ref: cardRefs[i]
|
|
898
|
-
}, item, {
|
|
899
|
-
isInverted: isInverted,
|
|
900
|
-
tags: (_a = item.tags) === null || _a === void 0 ? void 0 : _a.map(function (tag) {
|
|
901
|
-
var _a, _b;
|
|
902
|
-
|
|
903
|
-
var tagHref = undefined;
|
|
904
|
-
|
|
905
|
-
if (tag.name && ((_a = tag.link) === null || _a === void 0 ? void 0 : _a.href)) {
|
|
906
|
-
tagHref = getNewsFilterParams(tag.link.href, theme, [tag.name]);
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
return {
|
|
910
|
-
name: tag.name,
|
|
911
|
-
link: ((_b = tag.link) === null || _b === void 0 ? void 0 : _b.href) ? __assign(__assign({}, tag.link), {
|
|
912
|
-
href: tagHref
|
|
913
|
-
}) : undefined
|
|
914
|
-
};
|
|
915
|
-
}),
|
|
916
|
-
customTag: customTag
|
|
917
|
-
})));
|
|
918
|
-
}))));
|
|
919
|
-
};
|
|
920
|
-
var NewsList$1 = withLibTheme(NewsList);
|
|
921
|
-
var templateObject_1$2, templateObject_2;
|
|
922
|
-
|
|
923
850
|
var TableWrapper = styled(Wrapper).withConfig({
|
|
924
851
|
displayName: "NewsTable__TableWrapper",
|
|
925
852
|
componentId: "sc-ph099f-0"
|
|
926
|
-
})(templateObject_1$
|
|
853
|
+
})(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.spacer);
|
|
927
854
|
|
|
928
855
|
var NewsTable = function (_a) {
|
|
929
856
|
var anchorId = _a.anchorId,
|
|
@@ -948,12 +875,12 @@ var NewsTable = function (_a) {
|
|
|
948
875
|
})));
|
|
949
876
|
};
|
|
950
877
|
var NewsTable$1 = withLibTheme(NewsTable);
|
|
951
|
-
var templateObject_1$
|
|
878
|
+
var templateObject_1$2;
|
|
952
879
|
|
|
953
880
|
var ContentBlock = styled(Copy).withConfig({
|
|
954
881
|
displayName: "NewsText__ContentBlock",
|
|
955
882
|
componentId: "sc-2vavtq-0"
|
|
956
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: block;\n margin: ", ";\n max-width: ", ";\n\n :not(:first-child) {\n padding-top: ", "px;\n }\n"], ["\n display: block;\n margin: ", ";\n max-width: ", ";\n\n :not(:first-child) {\n padding-top: ", "px;\n }\n"])), function (_a) {
|
|
883
|
+
})(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n display: block;\n margin: ", ";\n max-width: ", ";\n\n :not(:first-child) {\n padding-top: ", "px;\n }\n"], ["\n display: block;\n margin: ", ";\n max-width: ", ";\n\n :not(:first-child) {\n padding-top: ", "px;\n }\n"])), function (_a) {
|
|
957
884
|
var isCentered = _a.isCentered;
|
|
958
885
|
return isCentered && '0 auto';
|
|
959
886
|
}, function (_a) {
|
|
@@ -983,7 +910,7 @@ var NewsText = function (_a) {
|
|
|
983
910
|
})));
|
|
984
911
|
};
|
|
985
912
|
var NewsText$1 = withLibTheme(NewsText);
|
|
986
|
-
var templateObject_1;
|
|
913
|
+
var templateObject_1$1;
|
|
987
914
|
|
|
988
915
|
var NewsVideo = function (_a) {
|
|
989
916
|
var anchorId = _a.anchorId,
|
|
@@ -1014,5 +941,83 @@ var NewsVideo = function (_a) {
|
|
|
1014
941
|
};
|
|
1015
942
|
var NewsVideo$1 = withLibTheme(NewsVideo);
|
|
1016
943
|
|
|
944
|
+
var News = styled.ul.withConfig({
|
|
945
|
+
displayName: "NewsList__News",
|
|
946
|
+
componentId: "sc-sew5jz-0"
|
|
947
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n list-style: none;\n margin: 0;\n margin-top: -", "px;\n margin-left: -", "px;\n padding: 0;\n\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n\n flex-wrap: wrap;\n"], ["\n list-style: none;\n margin: 0;\n margin-top: -", "px;\n margin-left: -", "px;\n padding: 0;\n\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: flex-start;\n\n flex-wrap: wrap;\n"])), spacings.nudge * 6, spacings.spacer);
|
|
948
|
+
var NewsItem = styled.li.withConfig({
|
|
949
|
+
displayName: "NewsList__NewsItem",
|
|
950
|
+
componentId: "sc-sew5jz-1"
|
|
951
|
+
})(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-top: ", "px;\n padding-left: ", "px;\n flex: 1 0 100%;\n max-width: 100%;\n\n @media ", " {\n flex: 1 0 50%;\n max-width: 50%;\n }\n\n @media ", " {\n flex: 1 0 33.33%;\n max-width: 33.33%;\n }\n"], ["\n padding-top: ", "px;\n padding-left: ", "px;\n flex: 1 0 100%;\n max-width: 100%;\n\n @media ", " {\n flex: 1 0 50%;\n max-width: 50%;\n }\n\n @media ", " {\n flex: 1 0 33.33%;\n max-width: 33.33%;\n }\n"])), spacings.nudge * 6, spacings.spacer, mq.medium, mq.large);
|
|
952
|
+
|
|
953
|
+
var NewsList = function (_a) {
|
|
954
|
+
var anchorId = _a.anchorId,
|
|
955
|
+
_b = _a.mode,
|
|
956
|
+
mode = _b === void 0 ? 'short' : _b,
|
|
957
|
+
news = _a.news,
|
|
958
|
+
bgMode = _a.bgMode,
|
|
959
|
+
customTag = _a.customTag;
|
|
960
|
+
|
|
961
|
+
var _c = useLibTheme(),
|
|
962
|
+
colors = _c.colors,
|
|
963
|
+
theme = _c.theme;
|
|
964
|
+
|
|
965
|
+
var items = useMemo(function () {
|
|
966
|
+
if (!news) return [];
|
|
967
|
+
if (mode === 'expanded') return news.slice(0, 6);else return news.slice(0, 3);
|
|
968
|
+
}, [news, mode]);
|
|
969
|
+
var isInverted = bgMode === 'inverted';
|
|
970
|
+
var hasBg = bgMode === 'full';
|
|
971
|
+
var cardRefs = useEqualSheetHeight({
|
|
972
|
+
listLength: items.length,
|
|
973
|
+
identifiers: ['[data-sheet="head"]', '[data-sheet="title"]', '[data-sheet="text"]'],
|
|
974
|
+
responsive: {
|
|
975
|
+
small: 1,
|
|
976
|
+
medium: 2,
|
|
977
|
+
semilarge: 2,
|
|
978
|
+
large: 3,
|
|
979
|
+
xlarge: 3
|
|
980
|
+
}
|
|
981
|
+
}).sheetRefs;
|
|
982
|
+
return React__default.createElement(Section, {
|
|
983
|
+
addSeperation: true,
|
|
984
|
+
anchorId: anchorId,
|
|
985
|
+
bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
|
|
986
|
+
bgMode: mapToBgMode(bgMode, true)
|
|
987
|
+
}, React__default.createElement(Wrapper, {
|
|
988
|
+
addWhitespace: true
|
|
989
|
+
}, React__default.createElement(News, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
|
|
990
|
+
var _a;
|
|
991
|
+
|
|
992
|
+
return React__default.createElement(NewsItem, {
|
|
993
|
+
key: i
|
|
994
|
+
}, React__default.createElement(NewsCard, __assign({
|
|
995
|
+
key: i,
|
|
996
|
+
ref: cardRefs[i]
|
|
997
|
+
}, item, {
|
|
998
|
+
isInverted: isInverted,
|
|
999
|
+
tags: (_a = item.tags) === null || _a === void 0 ? void 0 : _a.map(function (tag) {
|
|
1000
|
+
var _a, _b;
|
|
1001
|
+
|
|
1002
|
+
var tagHref = undefined;
|
|
1003
|
+
|
|
1004
|
+
if (tag.name && ((_a = tag.link) === null || _a === void 0 ? void 0 : _a.href)) {
|
|
1005
|
+
tagHref = getNewsFilterParams(tag.link.href, theme, [tag.name]);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
return {
|
|
1009
|
+
name: tag.name,
|
|
1010
|
+
link: ((_b = tag.link) === null || _b === void 0 ? void 0 : _b.href) ? __assign(__assign({}, tag.link), {
|
|
1011
|
+
href: tagHref
|
|
1012
|
+
}) : undefined
|
|
1013
|
+
};
|
|
1014
|
+
}),
|
|
1015
|
+
customTag: customTag
|
|
1016
|
+
})));
|
|
1017
|
+
}))));
|
|
1018
|
+
};
|
|
1019
|
+
var NewsList$1 = withLibTheme(NewsList);
|
|
1020
|
+
var templateObject_1, templateObject_2;
|
|
1021
|
+
|
|
1017
1022
|
export { NewsAuthorCard$1 as NewsAuthorCard, NewsFooter$1 as NewsFooter, NewsImages$1 as NewsImages, NewsIntro$1 as NewsIntro, NewsList$1 as NewsList, NewsOverview$1 as NewsOverview, NewsTable$1 as NewsTable, NewsText$1 as NewsText, NewsVideo$1 as NewsVideo };
|
|
1018
1023
|
//# sourceMappingURL=sections_news.js.map
|