@prokodo/ui 0.0.7 → 0.0.8
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/README.md +1 -2
- package/dist/components/Accordion2.js +1 -0
- package/dist/components/Animated2.js +1 -0
- package/dist/components/AnimatedText2.js +1 -0
- package/dist/components/Avatar2.js +1 -0
- package/dist/components/BaseLink.js +1 -0
- package/dist/components/Button2.js +1 -0
- package/dist/components/Calendly2.js +1 -0
- package/dist/components/Card2.js +1 -0
- package/dist/components/Carousel2.js +1 -0
- package/dist/components/Chip2.js +1 -0
- package/dist/components/{ClassNameConfigurator-C6UbdI-d.js → ClassNameConfigurator.js} +1 -1
- package/dist/components/DatePicker2.js +1 -0
- package/dist/components/Dialog2.js +1 -0
- package/dist/components/Drawer2.js +1 -0
- package/dist/components/Form2.js +1 -0
- package/dist/components/GridRow.js +1 -0
- package/dist/components/Headline2.js +1 -0
- package/dist/components/Icon2.js +1 -0
- package/dist/components/Image2.js +1 -0
- package/dist/components/ImageText.js +1 -0
- package/dist/components/Input2.js +1 -0
- package/dist/components/InputOTP2.js +1 -0
- package/dist/components/Label2.js +1 -0
- package/dist/components/Link2.js +1 -0
- package/dist/components/List2.js +1 -0
- package/dist/components/Loading2.js +1 -0
- package/dist/components/Lottie2.js +1 -0
- package/dist/components/Map2.js +1 -0
- package/dist/components/PostItem.js +1 -0
- package/dist/components/PostTeaser.js +1 -0
- package/dist/components/PostWidget.js +1 -0
- package/dist/components/PostWidgetCarousel.js +1 -0
- package/dist/components/Quote2.js +1 -0
- package/dist/components/RichText.js +1 -0
- package/dist/components/{Select-DbjU6dlH.js → Select2.js} +1 -1
- package/dist/components/Skeleton2.js +1 -0
- package/dist/components/Slider2.js +1 -0
- package/dist/components/Stepper2.js +1 -0
- package/dist/components/Switch2.js +1 -0
- package/dist/components/Table2.js +1 -0
- package/dist/components/Teaser2.js +1 -0
- package/dist/components/accordion.js +1 -1
- package/dist/components/animated.js +1 -1
- package/dist/components/animatedText.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/base-link.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/calendly.js +1 -1
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/datePicker.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/drawer.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/grid.js +1 -1
- package/dist/components/headline.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/image-text.js +1 -1
- package/dist/components/image.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/inputOTP.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/list.js +1 -1
- package/dist/components/loading.js +1 -1
- package/dist/components/lottie.js +1 -1
- package/dist/components/map.js +1 -1
- package/dist/components/post-item.js +1 -1
- package/dist/components/post-teaser.js +1 -1
- package/dist/components/post-widget-carousel.js +1 -1
- package/dist/components/post-widget.js +1 -1
- package/dist/components/quote.js +1 -1
- package/dist/components/rich-text.js +1 -1
- package/dist/components/select.js +1 -1
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/stepper.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/table.js +1 -1
- package/dist/components/teaser.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +40 -40
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/tsconfig.typecheck.tsbuildinfo +1 -0
- package/dist/types/components/accordion/index.d.ts +1 -1
- package/dist/types/components/animated/index.d.ts +1 -1
- package/dist/types/components/animatedText/index.d.ts +1 -1
- package/dist/types/components/avatar/index.d.ts +1 -1
- package/dist/types/components/base-link/index.d.ts +1 -1
- package/dist/types/components/button/index.d.ts +1 -1
- package/dist/types/components/calendly/index.d.ts +1 -1
- package/dist/types/components/card/index.d.ts +1 -1
- package/dist/types/components/carousel/index.d.ts +1 -1
- package/dist/types/components/chip/index.d.ts +1 -1
- package/dist/types/components/datePicker/index.d.ts +1 -1
- package/dist/types/components/dialog/index.d.ts +1 -1
- package/dist/types/components/drawer/index.d.ts +1 -1
- package/dist/types/components/form/Form.model.d.ts +4 -1
- package/dist/types/components/form/FormResponse.d.ts +2 -5
- package/dist/types/components/form/index.d.ts +2 -1
- package/dist/types/components/grid/Grid.d.ts +2 -6
- package/dist/types/components/grid/Grid.model.d.ts +17 -0
- package/dist/types/components/grid/GridRow.d.ts +2 -12
- package/dist/types/components/grid/index.d.ts +1 -0
- package/dist/types/components/headline/index.d.ts +1 -1
- package/dist/types/components/icon/index.d.ts +1 -1
- package/dist/types/components/image/index.d.ts +1 -1
- package/dist/types/components/image-text/index.d.ts +1 -1
- package/dist/types/components/input/index.d.ts +1 -1
- package/dist/types/components/inputOTP/index.d.ts +1 -1
- package/dist/types/components/label/index.d.ts +1 -1
- package/dist/types/components/link/index.d.ts +1 -1
- package/dist/types/components/list/index.d.ts +1 -1
- package/dist/types/components/loading/index.d.ts +1 -1
- package/dist/types/components/lottie/index.d.ts +1 -1
- package/dist/types/components/map/index.d.ts +1 -1
- package/dist/types/components/post-item/index.d.ts +2 -2
- package/dist/types/components/post-teaser/index.d.ts +1 -1
- package/dist/types/components/post-widget/index.d.ts +1 -1
- package/dist/types/components/post-widget-carousel/index.d.ts +1 -1
- package/dist/types/components/quote/index.d.ts +1 -1
- package/dist/types/components/rich-text/index.d.ts +1 -1
- package/dist/types/components/select/index.d.ts +1 -1
- package/dist/types/components/skeleton/index.d.ts +1 -1
- package/dist/types/components/slider/index.d.ts +1 -1
- package/dist/types/components/stepper/index.d.ts +1 -1
- package/dist/types/components/switch/index.d.ts +1 -1
- package/dist/types/components/table/index.d.ts +1 -1
- package/dist/types/components/teaser/index.d.ts +1 -1
- package/dist/types/index.d.ts +0 -40
- package/package.json +1 -1
- package/dist/components/Accordion-V3d_aGvZ.js +0 -130
- package/dist/components/Accordion-o8oKA6Tq.js +0 -1
- package/dist/components/Animated-BBfAgsHL.js +0 -64
- package/dist/components/Animated-CO4IEerF.js +0 -1
- package/dist/components/AnimatedText-BmB5Vkyq.js +0 -31
- package/dist/components/AnimatedText-Sy1jofZl.js +0 -1
- package/dist/components/Avatar-Ci5YNFc5.js +0 -95
- package/dist/components/Avatar-CjlbA5a5.js +0 -1
- package/dist/components/BaseLink-Dd9htNXU.js +0 -1
- package/dist/components/BaseLink-w1q9Qc1U.js +0 -30
- package/dist/components/Button-B8chVgsB.js +0 -111
- package/dist/components/Button-yvFLX-6Q.js +0 -1
- package/dist/components/Calendly-CWCAs02R.js +0 -1
- package/dist/components/Calendly-WBM4oHyC.js +0 -82
- package/dist/components/Card-BPEoLzF1.js +0 -1
- package/dist/components/Card-IW4R7bKr.js +0 -202
- package/dist/components/Carousel-CdS7SVzA.js +0 -1
- package/dist/components/Carousel-DpO4a3lm.js +0 -257
- package/dist/components/Chip-BmBxJH5M.js +0 -80
- package/dist/components/Chip-Q2ttDAQn.js +0 -1
- package/dist/components/ClassNameConfigurator-Ce5BUPXc.js +0 -860
- package/dist/components/DatePicker-BTenaDN8.js +0 -1
- package/dist/components/DatePicker-PK173UTy.js +0 -93
- package/dist/components/Dialog-Bq3tfZ0_.js +0 -1
- package/dist/components/Dialog-KlXAOdt_.js +0 -172
- package/dist/components/Drawer-DulO9091.js +0 -1
- package/dist/components/Drawer-i9X07r74.js +0 -120
- package/dist/components/Form-B6963dT5.js +0 -368
- package/dist/components/Form-DVNzITG2.js +0 -1
- package/dist/components/GridRow-1h1JHuDl.js +0 -114
- package/dist/components/GridRow-C5v0sOZZ.js +0 -1
- package/dist/components/Headline-CnyLLQLB.js +0 -1
- package/dist/components/Headline-DzEinaZi.js +0 -98
- package/dist/components/Icon-BMrVlROP.js +0 -4195
- package/dist/components/Icon-eWdA85cf.js +0 -1
- package/dist/components/Image-B-lyA7ym.js +0 -1
- package/dist/components/Image-CVgvVlLE.js +0 -33
- package/dist/components/ImageText-Cqp4xp9y.js +0 -113
- package/dist/components/ImageText-D-06_EGf.js +0 -1
- package/dist/components/Input-BEO9ig1R.js +0 -1
- package/dist/components/Input-CrNLI_OY.js +0 -258
- package/dist/components/InputOTP-Db7DHrhS.js +0 -88
- package/dist/components/InputOTP-MnmjEmPU.js +0 -1
- package/dist/components/Label-BvCzZIGM.js +0 -1
- package/dist/components/Label-DRUCdGoX.js +0 -71
- package/dist/components/Link-DSQ1125B.js +0 -69
- package/dist/components/Link-Dg7XR4uY.js +0 -1
- package/dist/components/List-D_dSwMx5.js +0 -1
- package/dist/components/List-P6xbVrBc.js +0 -196
- package/dist/components/Loading-C7lyHDW7.js +0 -68
- package/dist/components/Loading-U-CrTVTi.js +0 -1
- package/dist/components/Lottie-Br7PmIzX.js +0 -1
- package/dist/components/Lottie-CrvbxK0R.js +0 -87
- package/dist/components/Map-D3xbPS1S.js +0 -1
- package/dist/components/Map-DEIB_y-M.js +0 -64
- package/dist/components/PostItem-B8Vfv_sW.js +0 -183
- package/dist/components/PostItem-BSTn6cHD.js +0 -1
- package/dist/components/PostTeaser-BmZyqFL2.js +0 -186
- package/dist/components/PostTeaser-DLynX43c.js +0 -1
- package/dist/components/PostWidget-Bo4KiSsV.js +0 -170
- package/dist/components/PostWidget-DYWA-B8d.js +0 -1
- package/dist/components/PostWidgetCarousel-CZ6ptOGv.js +0 -168
- package/dist/components/PostWidgetCarousel-D7-p3Pwr.js +0 -1
- package/dist/components/Quote-6aurOanD.js +0 -1
- package/dist/components/Quote-CV_UYE1G.js +0 -101
- package/dist/components/RichText-Cg_XzkUs.js +0 -152
- package/dist/components/RichText-DVg1dwMV.js +0 -1
- package/dist/components/Select-BMyrX8V0.js +0 -3081
- package/dist/components/Skeleton-BuY3bttw.js +0 -1
- package/dist/components/Skeleton-D6olNYTG.js +0 -40
- package/dist/components/Slider-C-lecSwc.js +0 -957
- package/dist/components/Slider-GvO3Xllf.js +0 -1
- package/dist/components/Stepper-BV3PGCr2.js +0 -1
- package/dist/components/Stepper-CA1DOm4D.js +0 -135
- package/dist/components/Switch-C_6EUOIc.js +0 -330
- package/dist/components/Switch-Db3HpOhM.js +0 -1
- package/dist/components/Table-Csc0FIbX.js +0 -1
- package/dist/components/Table-Cy8bIv_C.js +0 -95
- package/dist/components/Teaser-CkisYOs-.js +0 -1
- package/dist/components/Teaser-Cl2oBeh5.js +0 -118
- package/dist/components/areArraysEqual-CJkStQkx.js +0 -20
- package/dist/components/bem-CYKrPjje.js +0 -11
- package/dist/components/calculation-79PhfKvq.js +0 -4
- package/dist/components/jsx-runtime-C5mzlN2N.js +0 -284
- package/dist/components/useControlled-BYdyS7Pn.js +0 -31
- package/dist/components/validations-B_cxltQ_.js +0 -8
- /package/dist/components/{areArraysEqual-6R3bBH2E.js → areArraysEqual.js} +0 -0
- /package/dist/components/{bem-DC5wv0dD.js → bem.js} +0 -0
- /package/dist/components/{calculation-D-p0iqpk.js → calculation.js} +0 -0
- /package/dist/components/{jsx-runtime-CITbqOLs.js → jsx-runtime.js} +0 -0
- /package/dist/components/{useControlled-Ysk4KqoX.js → useControlled.js} +0 -0
- /package/dist/components/{validations-Cnxtn28y.js → validations.js} +0 -0
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { memo as x, useState as N, useEffect as g } from "react";
|
|
3
|
-
import { c as k } from "./bem-CYKrPjje.js";
|
|
4
|
-
import { c as y } from "./calculation-79PhfKvq.js";
|
|
5
|
-
import { i as n } from "./validations-B_cxltQ_.js";
|
|
6
|
-
import { A as w } from "./Animated-BBfAgsHL.js";
|
|
7
|
-
import { B as A } from "./Button-B8chVgsB.js";
|
|
8
|
-
import { C as S } from "./Card-IW4R7bKr.js";
|
|
9
|
-
import { G as v, a as P } from "./GridRow-1h1JHuDl.js";
|
|
10
|
-
import { H as C } from "./Headline-DzEinaZi.js";
|
|
11
|
-
import { R as K } from "./RichText-Cg_XzkUs.js";
|
|
12
|
-
import { S as M } from "./Skeleton-D6olNYTG.js";
|
|
13
|
-
import { A as $ } from "./Avatar-Ci5YNFc5.js";
|
|
14
|
-
const R = "gradientMove", T = "fadeInKeyframe", B = {
|
|
15
|
-
"prokodo-PostItem__grid": "prokodo-PostItem__grid",
|
|
16
|
-
"prokodo-PostItem__animation": "prokodo-PostItem__animation",
|
|
17
|
-
"prokodo-PostItem__headline": "prokodo-PostItem__headline",
|
|
18
|
-
"prokodo-PostItem__info": "prokodo-PostItem__info",
|
|
19
|
-
"prokodo-PostItem__date": "prokodo-PostItem__date",
|
|
20
|
-
"prokodo-PostItem__read__count": "prokodo-PostItem__read__count",
|
|
21
|
-
"prokodo-PostItem__content": "prokodo-PostItem__content",
|
|
22
|
-
"prokodo-PostItem__content__paragraph": "prokodo-PostItem__content__paragraph",
|
|
23
|
-
"prokodo-PostItem__image": "prokodo-PostItem__image",
|
|
24
|
-
"prokodo-PostItem__image__wrapper": "prokodo-PostItem__image__wrapper",
|
|
25
|
-
"prokodo-PostItem__image__content__wrapper": "prokodo-PostItem__image__content__wrapper",
|
|
26
|
-
"prokodo-PostItem__button": "prokodo-PostItem__button",
|
|
27
|
-
"prokodo-PostItem__button__content": "prokodo-PostItem__button__content",
|
|
28
|
-
gradientMove: R,
|
|
29
|
-
fadeInKeyframe: T
|
|
30
|
-
}, G = "gradientMove", L = "fadeInKeyframe", z = {
|
|
31
|
-
"prokodo-PostItemAuthor": "prokodo-PostItemAuthor",
|
|
32
|
-
"prokodo-PostItemAuthor__name": "prokodo-PostItemAuthor__name",
|
|
33
|
-
gradientMove: G,
|
|
34
|
-
fadeInKeyframe: L
|
|
35
|
-
}, I = k(z, "PostItemAuthor"), f = x(
|
|
36
|
-
({ className: _, avatar: e, avatarProps: m, name: a, nameProps: i }) => {
|
|
37
|
-
const d = a;
|
|
38
|
-
return /* @__PURE__ */ o.jsxs("div", { className: I(void 0, void 0, _), children: [
|
|
39
|
-
/* @__PURE__ */ o.jsx(
|
|
40
|
-
$,
|
|
41
|
-
{
|
|
42
|
-
image: (e == null ? void 0 : e.src) !== void 0 && n(e == null ? void 0 : e.src) ? {
|
|
43
|
-
src: e == null ? void 0 : e.src,
|
|
44
|
-
alt: (e == null ? void 0 : e.alt) ?? ""
|
|
45
|
-
} : void 0,
|
|
46
|
-
...m
|
|
47
|
-
}
|
|
48
|
-
),
|
|
49
|
-
/* @__PURE__ */ o.jsx(
|
|
50
|
-
"p",
|
|
51
|
-
{
|
|
52
|
-
"aria-label": `Author ${d}`,
|
|
53
|
-
itemProp: "author",
|
|
54
|
-
...i,
|
|
55
|
-
className: I("name", void 0, i == null ? void 0 : i.className),
|
|
56
|
-
children: d
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
] });
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
f.displayName = "PostItemAuthor";
|
|
63
|
-
const t = k(B, "PostItem"), E = x(
|
|
64
|
-
({
|
|
65
|
-
className: _,
|
|
66
|
-
readCount: e = 0,
|
|
67
|
-
title: m,
|
|
68
|
-
content: a,
|
|
69
|
-
category: i,
|
|
70
|
-
author: d,
|
|
71
|
-
date: p,
|
|
72
|
-
metaDate: j,
|
|
73
|
-
image: r,
|
|
74
|
-
button: s,
|
|
75
|
-
imageComponent: c
|
|
76
|
-
}) => {
|
|
77
|
-
const l = y(a), [u, h] = N(!c);
|
|
78
|
-
return g(() => {
|
|
79
|
-
c || h(!0);
|
|
80
|
-
}, [c]), /* @__PURE__ */ o.jsxs(
|
|
81
|
-
"article",
|
|
82
|
-
{
|
|
83
|
-
itemScope: !0,
|
|
84
|
-
className: t(void 0, void 0, _),
|
|
85
|
-
itemType: "http://schema.org/BlogPosting",
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ o.jsxs(v, { className: t("grid"), children: [
|
|
88
|
-
/* @__PURE__ */ o.jsx(P, { className: t("content"), md: r ? 8 : 12, xs: 12, children: /* @__PURE__ */ o.jsxs(w, { className: t("animation"), children: [
|
|
89
|
-
/* @__PURE__ */ o.jsxs("header", { children: [
|
|
90
|
-
/* @__PURE__ */ o.jsx(
|
|
91
|
-
C,
|
|
92
|
-
{
|
|
93
|
-
className: t("headline", void 0, m == null ? void 0 : m.className),
|
|
94
|
-
size: "lg",
|
|
95
|
-
type: "h2",
|
|
96
|
-
...m,
|
|
97
|
-
children: m.content
|
|
98
|
-
}
|
|
99
|
-
),
|
|
100
|
-
/* @__PURE__ */ o.jsxs("div", { className: t("info"), children: [
|
|
101
|
-
d && /* @__PURE__ */ o.jsx(f, { avatar: d.avatar, name: d.name }),
|
|
102
|
-
n(p) && /* @__PURE__ */ o.jsxs(
|
|
103
|
-
"p",
|
|
104
|
-
{
|
|
105
|
-
"aria-label": `Published at ${p}`,
|
|
106
|
-
className: t("date"),
|
|
107
|
-
itemProp: "datePublished",
|
|
108
|
-
children: [
|
|
109
|
-
"📅 ",
|
|
110
|
-
/* @__PURE__ */ o.jsx("time", { dateTime: j, itemProp: "datePublished", children: p })
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
e > 0 && /* @__PURE__ */ o.jsxs(
|
|
115
|
-
"div",
|
|
116
|
-
{
|
|
117
|
-
itemScope: !0,
|
|
118
|
-
className: t("read__count"),
|
|
119
|
-
itemProp: "interactionStatistic",
|
|
120
|
-
itemType: "https://schema.org/InteractionCounter",
|
|
121
|
-
children: [
|
|
122
|
-
/* @__PURE__ */ o.jsx(
|
|
123
|
-
"meta",
|
|
124
|
-
{
|
|
125
|
-
content: "https://schema.org/ReadAction",
|
|
126
|
-
itemProp: "interactionType"
|
|
127
|
-
}
|
|
128
|
-
),
|
|
129
|
-
/* @__PURE__ */ o.jsx("span", { itemProp: "userInteractionCount", children: e })
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
] })
|
|
134
|
-
] }),
|
|
135
|
-
n(a) && /* @__PURE__ */ o.jsx("div", { itemProp: "articleBody", children: /* @__PURE__ */ o.jsx(K, { className: t("content__paragraph"), children: a }) }),
|
|
136
|
-
s && /* @__PURE__ */ o.jsx(
|
|
137
|
-
A,
|
|
138
|
-
{
|
|
139
|
-
variant: "outlined",
|
|
140
|
-
...s,
|
|
141
|
-
className: t("button", void 0, s == null ? void 0 : s.className),
|
|
142
|
-
contentClassName: t(
|
|
143
|
-
"button__content",
|
|
144
|
-
void 0,
|
|
145
|
-
s == null ? void 0 : s.contentClassName
|
|
146
|
-
)
|
|
147
|
-
}
|
|
148
|
-
)
|
|
149
|
-
] }) }),
|
|
150
|
-
/* @__PURE__ */ o.jsx(P, { md: 4, xs: 12, children: /* @__PURE__ */ o.jsxs(
|
|
151
|
-
S,
|
|
152
|
-
{
|
|
153
|
-
enableShadow: !0,
|
|
154
|
-
background: n(r == null ? void 0 : r.src) ? 3 : void 0,
|
|
155
|
-
className: t("image__wrapper"),
|
|
156
|
-
contentClassName: t("image__content__wrapper"),
|
|
157
|
-
redirect: s == null ? void 0 : s.redirect,
|
|
158
|
-
children: [
|
|
159
|
-
!u && /* @__PURE__ */ o.jsx(M, { height: "275px" }),
|
|
160
|
-
c !== void 0 && n(r == null ? void 0 : r.src) && /* @__PURE__ */ o.jsx(
|
|
161
|
-
c,
|
|
162
|
-
{
|
|
163
|
-
...r,
|
|
164
|
-
className: t("image"),
|
|
165
|
-
sizes: "(max-width: 960px) 100vw, 25vw",
|
|
166
|
-
onLoad: () => h(!0)
|
|
167
|
-
}
|
|
168
|
-
)
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
) })
|
|
172
|
-
] }),
|
|
173
|
-
l > 0 && /* @__PURE__ */ o.jsx("meta", { content: String(l), itemProp: "wordCount" }),
|
|
174
|
-
n(i) && /* @__PURE__ */ o.jsx("meta", { content: i, itemProp: "articleSection" })
|
|
175
|
-
]
|
|
176
|
-
}
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
);
|
|
180
|
-
E.displayName = "PostItem";
|
|
181
|
-
export {
|
|
182
|
-
E as P
|
|
183
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./jsx-runtime-CITbqOLs.js"),_=require("react"),P=require("./bem-DC5wv0dD.js"),g=require("./calculation-D-p0iqpk.js"),d=require("./validations-Cnxtn28y.js"),N=require("./Animated-CO4IEerF.js"),f=require("./Button-yvFLX-6Q.js"),w=require("./Card-BPEoLzF1.js"),u=require("./GridRow-C5v0sOZZ.js"),S=require("./Headline-CnyLLQLB.js"),y=require("./RichText-DVg1dwMV.js"),q=require("./Skeleton-BuY3bttw.js"),A=require("./Avatar-CjlbA5a5.js"),v="gradientMove",$="fadeInKeyframe",C={"prokodo-PostItem__grid":"prokodo-PostItem__grid","prokodo-PostItem__animation":"prokodo-PostItem__animation","prokodo-PostItem__headline":"prokodo-PostItem__headline","prokodo-PostItem__info":"prokodo-PostItem__info","prokodo-PostItem__date":"prokodo-PostItem__date","prokodo-PostItem__read__count":"prokodo-PostItem__read__count","prokodo-PostItem__content":"prokodo-PostItem__content","prokodo-PostItem__content__paragraph":"prokodo-PostItem__content__paragraph","prokodo-PostItem__image":"prokodo-PostItem__image","prokodo-PostItem__image__wrapper":"prokodo-PostItem__image__wrapper","prokodo-PostItem__image__content__wrapper":"prokodo-PostItem__image__content__wrapper","prokodo-PostItem__button":"prokodo-PostItem__button","prokodo-PostItem__button__content":"prokodo-PostItem__button__content",gradientMove:v,fadeInKeyframe:$},K="gradientMove",M="fadeInKeyframe",T={"prokodo-PostItemAuthor":"prokodo-PostItemAuthor","prokodo-PostItemAuthor__name":"prokodo-PostItemAuthor__name",gradientMove:K,fadeInKeyframe:M},h=P.create(T,"PostItemAuthor"),I=_.memo(({className:p,avatar:o,avatarProps:i,name:c,nameProps:n})=>{const m=c;return e.jsxRuntimeExports.jsxs("div",{className:h(void 0,void 0,p),children:[e.jsxRuntimeExports.jsx(A.Avatar,{image:(o==null?void 0:o.src)!==void 0&&d.isString(o==null?void 0:o.src)?{src:o==null?void 0:o.src,alt:(o==null?void 0:o.alt)??""}:void 0,...i}),e.jsxRuntimeExports.jsx("p",{"aria-label":`Author ${m}`,itemProp:"author",...n,className:h("name",void 0,n==null?void 0:n.className),children:m})]})});I.displayName="PostItemAuthor";const t=P.create(C,"PostItem"),k=_.memo(({className:p,readCount:o=0,title:i,content:c,category:n,author:m,date:x,metaDate:R,image:r,button:s,imageComponent:a})=>{const l=g.calculateWordCount(c),[E,j]=_.useState(!a);return _.useEffect(()=>{a||j(!0)},[a]),e.jsxRuntimeExports.jsxs("article",{itemScope:!0,className:t(void 0,void 0,p),itemType:"http://schema.org/BlogPosting",children:[e.jsxRuntimeExports.jsxs(u.Grid,{className:t("grid"),children:[e.jsxRuntimeExports.jsx(u.GridRow,{className:t("content"),md:r?8:12,xs:12,children:e.jsxRuntimeExports.jsxs(N.Animated,{className:t("animation"),children:[e.jsxRuntimeExports.jsxs("header",{children:[e.jsxRuntimeExports.jsx(S.Headline,{className:t("headline",void 0,i==null?void 0:i.className),size:"lg",type:"h2",...i,children:i.content}),e.jsxRuntimeExports.jsxs("div",{className:t("info"),children:[m&&e.jsxRuntimeExports.jsx(I,{avatar:m.avatar,name:m.name}),d.isString(x)&&e.jsxRuntimeExports.jsxs("p",{"aria-label":`Published at ${x}`,className:t("date"),itemProp:"datePublished",children:["📅 ",e.jsxRuntimeExports.jsx("time",{dateTime:R,itemProp:"datePublished",children:x})]}),o>0&&e.jsxRuntimeExports.jsxs("div",{itemScope:!0,className:t("read__count"),itemProp:"interactionStatistic",itemType:"https://schema.org/InteractionCounter",children:[e.jsxRuntimeExports.jsx("meta",{content:"https://schema.org/ReadAction",itemProp:"interactionType"}),e.jsxRuntimeExports.jsx("span",{itemProp:"userInteractionCount",children:o})]})]})]}),d.isString(c)&&e.jsxRuntimeExports.jsx("div",{itemProp:"articleBody",children:e.jsxRuntimeExports.jsx(y.RichText,{className:t("content__paragraph"),children:c})}),s&&e.jsxRuntimeExports.jsx(f.Button,{variant:"outlined",...s,className:t("button",void 0,s==null?void 0:s.className),contentClassName:t("button__content",void 0,s==null?void 0:s.contentClassName)})]})}),e.jsxRuntimeExports.jsx(u.GridRow,{md:4,xs:12,children:e.jsxRuntimeExports.jsxs(w.Card,{enableShadow:!0,background:d.isString(r==null?void 0:r.src)?3:void 0,className:t("image__wrapper"),contentClassName:t("image__content__wrapper"),redirect:s==null?void 0:s.redirect,children:[!E&&e.jsxRuntimeExports.jsx(q.Skeleton,{height:"275px"}),a!==void 0&&d.isString(r==null?void 0:r.src)&&e.jsxRuntimeExports.jsx(a,{...r,className:t("image"),sizes:"(max-width: 960px) 100vw, 25vw",onLoad:()=>j(!0)})]})})]}),l>0&&e.jsxRuntimeExports.jsx("meta",{content:String(l),itemProp:"wordCount"}),d.isString(n)&&e.jsxRuntimeExports.jsx("meta",{content:n,itemProp:"articleSection"})]})});k.displayName="PostItem";exports.PostItem=k;
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { memo as N, useState as y, useCallback as P } from "react";
|
|
3
|
-
import { c as b } from "./bem-CYKrPjje.js";
|
|
4
|
-
import { c as C } from "./calculation-79PhfKvq.js";
|
|
5
|
-
import { i as r } from "./validations-B_cxltQ_.js";
|
|
6
|
-
import { C as I } from "./Card-IW4R7bKr.js";
|
|
7
|
-
import { C as h } from "./Chip-BmBxJH5M.js";
|
|
8
|
-
import { H as w } from "./Headline-DzEinaZi.js";
|
|
9
|
-
import { I as k } from "./Icon-BMrVlROP.js";
|
|
10
|
-
import { I as M } from "./Image-CVgvVlLE.js";
|
|
11
|
-
import { R as S } from "./RichText-Cg_XzkUs.js";
|
|
12
|
-
const R = "gradientMove", E = "fadeInKeyframe", H = {
|
|
13
|
-
"prokodo-PostTeaser__card": "prokodo-PostTeaser__card",
|
|
14
|
-
"prokodo-PostTeaser__card__container": "prokodo-PostTeaser__card__container",
|
|
15
|
-
"prokodo-PostTeaser__card__content": "prokodo-PostTeaser__card__content",
|
|
16
|
-
"prokodo-PostTeaser__card__footer": "prokodo-PostTeaser__card__footer",
|
|
17
|
-
"prokodo-PostTeaser__meta": "prokodo-PostTeaser__meta",
|
|
18
|
-
"prokodo-PostTeaser__meta__category": "prokodo-PostTeaser__meta__category",
|
|
19
|
-
"prokodo-PostTeaser__image": "prokodo-PostTeaser__image",
|
|
20
|
-
"prokodo-PostTeaser__image__wrapper": "prokodo-PostTeaser__image__wrapper",
|
|
21
|
-
"prokodo-PostTeaser__image__caption": "prokodo-PostTeaser__image__caption",
|
|
22
|
-
"prokodo-PostTeaser__date": "prokodo-PostTeaser__date",
|
|
23
|
-
"prokodo-PostTeaser__animation": "prokodo-PostTeaser__animation",
|
|
24
|
-
"prokodo-PostTeaser__headline": "prokodo-PostTeaser__headline",
|
|
25
|
-
"prokodo-PostTeaser__content": "prokodo-PostTeaser__content",
|
|
26
|
-
"prokodo-PostTeaser__link": "prokodo-PostTeaser__link",
|
|
27
|
-
"prokodo-PostTeaser__link__icon": "prokodo-PostTeaser__link__icon",
|
|
28
|
-
"prokodo-PostTeaser__link--is-hovered": "prokodo-PostTeaser__link--is-hovered",
|
|
29
|
-
gradientMove: R,
|
|
30
|
-
fadeInKeyframe: E
|
|
31
|
-
}, e = b(H, "PostTeaser"), z = N(
|
|
32
|
-
({
|
|
33
|
-
className: T,
|
|
34
|
-
image: n,
|
|
35
|
-
readCount: _,
|
|
36
|
-
title: a,
|
|
37
|
-
date: i,
|
|
38
|
-
metaDate: x,
|
|
39
|
-
hideCategory: j,
|
|
40
|
-
category: t,
|
|
41
|
-
content: m,
|
|
42
|
-
onClick: f,
|
|
43
|
-
redirect: s,
|
|
44
|
-
...v
|
|
45
|
-
}) => {
|
|
46
|
-
var l;
|
|
47
|
-
const p = C(m), [c, d] = y(!1), g = P(() => {
|
|
48
|
-
d(!0);
|
|
49
|
-
}, []), u = P(() => {
|
|
50
|
-
d(!1);
|
|
51
|
-
}, []);
|
|
52
|
-
return /* @__PURE__ */ o.jsxs(
|
|
53
|
-
"article",
|
|
54
|
-
{
|
|
55
|
-
itemScope: !0,
|
|
56
|
-
className: e(void 0, void 0, T),
|
|
57
|
-
itemType: "http://schema.org/BlogPosting",
|
|
58
|
-
children: [
|
|
59
|
-
/* @__PURE__ */ o.jsxs(
|
|
60
|
-
I,
|
|
61
|
-
{
|
|
62
|
-
variant: "white",
|
|
63
|
-
...v,
|
|
64
|
-
className: e("card__container"),
|
|
65
|
-
contentClassName: e("card"),
|
|
66
|
-
highlight: c,
|
|
67
|
-
redirect: s,
|
|
68
|
-
onClick: f,
|
|
69
|
-
onMouseEnter: g,
|
|
70
|
-
onMouseLeave: u,
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ o.jsxs("header", { children: [
|
|
73
|
-
r(n == null ? void 0 : n.src) && /* @__PURE__ */ o.jsxs("div", { className: e("image__wrapper"), children: [
|
|
74
|
-
/* @__PURE__ */ o.jsxs("div", { className: e("meta"), children: [
|
|
75
|
-
r(t) && j === !1 && /* @__PURE__ */ o.jsx(
|
|
76
|
-
h,
|
|
77
|
-
{
|
|
78
|
-
"aria-label": `Category ${t}`,
|
|
79
|
-
className: e("meta__category"),
|
|
80
|
-
color: "primary",
|
|
81
|
-
label: t
|
|
82
|
-
}
|
|
83
|
-
),
|
|
84
|
-
_ !== void 0 && /* @__PURE__ */ o.jsx(
|
|
85
|
-
h,
|
|
86
|
-
{
|
|
87
|
-
"aria-label": `Read ${_} times`,
|
|
88
|
-
color: "white",
|
|
89
|
-
icon: /* @__PURE__ */ o.jsx(k, { name: "EyeIcon", size: "sm" }),
|
|
90
|
-
label: /* @__PURE__ */ o.jsxs(
|
|
91
|
-
"p",
|
|
92
|
-
{
|
|
93
|
-
itemScope: !0,
|
|
94
|
-
itemProp: "interactionStatistic",
|
|
95
|
-
itemType: "https://schema.org/InteractionCounter",
|
|
96
|
-
children: [
|
|
97
|
-
/* @__PURE__ */ o.jsx(
|
|
98
|
-
"meta",
|
|
99
|
-
{
|
|
100
|
-
content: "https://schema.org/ReadAction",
|
|
101
|
-
itemProp: "interactionType"
|
|
102
|
-
}
|
|
103
|
-
),
|
|
104
|
-
/* @__PURE__ */ o.jsx("span", { itemProp: "userInteractionCount", children: _ })
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
] }),
|
|
111
|
-
/* @__PURE__ */ o.jsx(
|
|
112
|
-
M,
|
|
113
|
-
{
|
|
114
|
-
...n,
|
|
115
|
-
captionClassName: e("image__caption"),
|
|
116
|
-
className: e("image"),
|
|
117
|
-
containerClassName: e("image")
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
] }),
|
|
121
|
-
/* @__PURE__ */ o.jsx(
|
|
122
|
-
w,
|
|
123
|
-
{
|
|
124
|
-
highlight: !0,
|
|
125
|
-
size: "md",
|
|
126
|
-
type: "h3",
|
|
127
|
-
...a,
|
|
128
|
-
className: e("headline", a == null ? void 0 : a.className),
|
|
129
|
-
variant: (a == null ? void 0 : a.variant) ?? "secondary",
|
|
130
|
-
children: a == null ? void 0 : a.content
|
|
131
|
-
}
|
|
132
|
-
)
|
|
133
|
-
] }),
|
|
134
|
-
r(m) && /* @__PURE__ */ o.jsx("div", { className: e("card__content"), itemProp: "articleBody", children: /* @__PURE__ */ o.jsx(S, { className: e("content"), children: m }) }),
|
|
135
|
-
/* @__PURE__ */ o.jsxs("div", { className: e("card__footer"), children: [
|
|
136
|
-
r(i) && /* @__PURE__ */ o.jsx(
|
|
137
|
-
"p",
|
|
138
|
-
{
|
|
139
|
-
"aria-label": `Published at ${i}`,
|
|
140
|
-
className: e("date"),
|
|
141
|
-
itemProp: "datePublished",
|
|
142
|
-
children: /* @__PURE__ */ o.jsx("time", { dateTime: x, itemProp: "datePublished", children: i })
|
|
143
|
-
}
|
|
144
|
-
),
|
|
145
|
-
(s == null ? void 0 : s.label) !== void 0 && r(s == null ? void 0 : s.label) && /* @__PURE__ */ o.jsxs(
|
|
146
|
-
"span",
|
|
147
|
-
{
|
|
148
|
-
className: e("link", {
|
|
149
|
-
"is-hovered": c
|
|
150
|
-
}),
|
|
151
|
-
children: [
|
|
152
|
-
/* @__PURE__ */ o.jsx(
|
|
153
|
-
k,
|
|
154
|
-
{
|
|
155
|
-
name: "ArrowRight01Icon",
|
|
156
|
-
size: "xs",
|
|
157
|
-
...s == null ? void 0 : s.icon,
|
|
158
|
-
color: "primary",
|
|
159
|
-
className: e(
|
|
160
|
-
"link__icon",
|
|
161
|
-
{
|
|
162
|
-
"is-hovered": c
|
|
163
|
-
},
|
|
164
|
-
(l = s == null ? void 0 : s.icon) == null ? void 0 : l.className
|
|
165
|
-
)
|
|
166
|
-
}
|
|
167
|
-
),
|
|
168
|
-
s.label
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
)
|
|
172
|
-
] })
|
|
173
|
-
]
|
|
174
|
-
}
|
|
175
|
-
),
|
|
176
|
-
p > 0 && /* @__PURE__ */ o.jsx("meta", { content: String(p), itemProp: "wordCount" }),
|
|
177
|
-
r(t) && /* @__PURE__ */ o.jsx("meta", { content: t, itemProp: "articleSection" })
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
);
|
|
183
|
-
z.displayName = "PostTeaser";
|
|
184
|
-
export {
|
|
185
|
-
z as P
|
|
186
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime-CITbqOLs.js"),i=require("react"),N=require("./bem-DC5wv0dD.js"),b=require("./calculation-D-p0iqpk.js"),r=require("./validations-Cnxtn28y.js"),y=require("./Card-BPEoLzF1.js"),u=require("./Chip-Q2ttDAQn.js"),C=require("./Headline-CnyLLQLB.js"),h=require("./Icon-eWdA85cf.js"),I=require("./Image-B-lyA7ym.js"),f=require("./RichText-DVg1dwMV.js"),S="gradientMove",q="fadeInKeyframe",w={"prokodo-PostTeaser__card":"prokodo-PostTeaser__card","prokodo-PostTeaser__card__container":"prokodo-PostTeaser__card__container","prokodo-PostTeaser__card__content":"prokodo-PostTeaser__card__content","prokodo-PostTeaser__card__footer":"prokodo-PostTeaser__card__footer","prokodo-PostTeaser__meta":"prokodo-PostTeaser__meta","prokodo-PostTeaser__meta__category":"prokodo-PostTeaser__meta__category","prokodo-PostTeaser__image":"prokodo-PostTeaser__image","prokodo-PostTeaser__image__wrapper":"prokodo-PostTeaser__image__wrapper","prokodo-PostTeaser__image__caption":"prokodo-PostTeaser__image__caption","prokodo-PostTeaser__date":"prokodo-PostTeaser__date","prokodo-PostTeaser__animation":"prokodo-PostTeaser__animation","prokodo-PostTeaser__headline":"prokodo-PostTeaser__headline","prokodo-PostTeaser__content":"prokodo-PostTeaser__content","prokodo-PostTeaser__link":"prokodo-PostTeaser__link","prokodo-PostTeaser__link__icon":"prokodo-PostTeaser__link__icon","prokodo-PostTeaser__link--is-hovered":"prokodo-PostTeaser__link--is-hovered",gradientMove:S,fadeInKeyframe:q},e=N.create(w,"PostTeaser"),P=i.memo(({className:j,image:n,readCount:_,title:a,date:c,metaDate:k,hideCategory:T,category:t,content:m,onClick:R,redirect:s,...g})=>{var x;const d=b.calculateWordCount(m),[p,l]=i.useState(!1),E=i.useCallback(()=>{l(!0)},[]),v=i.useCallback(()=>{l(!1)},[]);return o.jsxRuntimeExports.jsxs("article",{itemScope:!0,className:e(void 0,void 0,j),itemType:"http://schema.org/BlogPosting",children:[o.jsxRuntimeExports.jsxs(y.Card,{variant:"white",...g,className:e("card__container"),contentClassName:e("card"),highlight:p,redirect:s,onClick:R,onMouseEnter:E,onMouseLeave:v,children:[o.jsxRuntimeExports.jsxs("header",{children:[r.isString(n==null?void 0:n.src)&&o.jsxRuntimeExports.jsxs("div",{className:e("image__wrapper"),children:[o.jsxRuntimeExports.jsxs("div",{className:e("meta"),children:[r.isString(t)&&T===!1&&o.jsxRuntimeExports.jsx(u.Chip,{"aria-label":`Category ${t}`,className:e("meta__category"),color:"primary",label:t}),_!==void 0&&o.jsxRuntimeExports.jsx(u.Chip,{"aria-label":`Read ${_} times`,color:"white",icon:o.jsxRuntimeExports.jsx(h.Icon,{name:"EyeIcon",size:"sm"}),label:o.jsxRuntimeExports.jsxs("p",{itemScope:!0,itemProp:"interactionStatistic",itemType:"https://schema.org/InteractionCounter",children:[o.jsxRuntimeExports.jsx("meta",{content:"https://schema.org/ReadAction",itemProp:"interactionType"}),o.jsxRuntimeExports.jsx("span",{itemProp:"userInteractionCount",children:_})]})})]}),o.jsxRuntimeExports.jsx(I.Image,{...n,captionClassName:e("image__caption"),className:e("image"),containerClassName:e("image")})]}),o.jsxRuntimeExports.jsx(C.Headline,{highlight:!0,size:"md",type:"h3",...a,className:e("headline",a==null?void 0:a.className),variant:(a==null?void 0:a.variant)??"secondary",children:a==null?void 0:a.content})]}),r.isString(m)&&o.jsxRuntimeExports.jsx("div",{className:e("card__content"),itemProp:"articleBody",children:o.jsxRuntimeExports.jsx(f.RichText,{className:e("content"),children:m})}),o.jsxRuntimeExports.jsxs("div",{className:e("card__footer"),children:[r.isString(c)&&o.jsxRuntimeExports.jsx("p",{"aria-label":`Published at ${c}`,className:e("date"),itemProp:"datePublished",children:o.jsxRuntimeExports.jsx("time",{dateTime:k,itemProp:"datePublished",children:c})}),(s==null?void 0:s.label)!==void 0&&r.isString(s==null?void 0:s.label)&&o.jsxRuntimeExports.jsxs("span",{className:e("link",{"is-hovered":p}),children:[o.jsxRuntimeExports.jsx(h.Icon,{name:"ArrowRight01Icon",size:"xs",...s==null?void 0:s.icon,color:"primary",className:e("link__icon",{"is-hovered":p},(x=s==null?void 0:s.icon)==null?void 0:x.className)}),s.label]})]})]}),d>0&&o.jsxRuntimeExports.jsx("meta",{content:String(d),itemProp:"wordCount"}),r.isString(t)&&o.jsxRuntimeExports.jsx("meta",{content:t,itemProp:"articleSection"})]})});P.displayName="PostTeaser";exports.PostTeaser=P;
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { j as e } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
-
import { memo as k } from "react";
|
|
3
|
-
import { c as f } from "./bem-CYKrPjje.js";
|
|
4
|
-
import { i as n } from "./validations-B_cxltQ_.js";
|
|
5
|
-
import { C as u } from "./Card-IW4R7bKr.js";
|
|
6
|
-
import { H as _ } from "./Headline-DzEinaZi.js";
|
|
7
|
-
import { I as x } from "./Image-CVgvVlLE.js";
|
|
8
|
-
import { L as c } from "./Link-DSQ1125B.js";
|
|
9
|
-
const j = "gradientMove", N = "fadeInKeyframe", y = {
|
|
10
|
-
"prokodo-PostWidget__list": "prokodo-PostWidget__list",
|
|
11
|
-
"prokodo-PostWidget__list--has-fullWidth": "prokodo-PostWidget__list--has-fullWidth",
|
|
12
|
-
"prokodo-PostWidget__list__item": "prokodo-PostWidget__list__item",
|
|
13
|
-
"prokodo-PostWidget__list__item--has-fullWidth": "prokodo-PostWidget__list__item--has-fullWidth",
|
|
14
|
-
"prokodo-PostWidget__list__item__content": "prokodo-PostWidget__list__item__content",
|
|
15
|
-
"prokodo-PostWidget__image": "prokodo-PostWidget__image",
|
|
16
|
-
"prokodo-PostWidget__image__link": "prokodo-PostWidget__image__link",
|
|
17
|
-
"prokodo-PostWidget__content": "prokodo-PostWidget__content",
|
|
18
|
-
"prokodo-PostWidget__headline": "prokodo-PostWidget__headline",
|
|
19
|
-
"prokodo-PostWidget__date": "prokodo-PostWidget__date",
|
|
20
|
-
gradientMove: j,
|
|
21
|
-
fadeInKeyframe: N
|
|
22
|
-
}, s = f(y, "PostWidget"), b = k(
|
|
23
|
-
({
|
|
24
|
-
fullWidth: t,
|
|
25
|
-
className: p,
|
|
26
|
-
title: a,
|
|
27
|
-
listClassName: g,
|
|
28
|
-
contentClassName: h,
|
|
29
|
-
items: P = [],
|
|
30
|
-
...m
|
|
31
|
-
}) => /* @__PURE__ */ e.jsx(
|
|
32
|
-
"section",
|
|
33
|
-
{
|
|
34
|
-
itemScope: !0,
|
|
35
|
-
className: s(void 0, void 0, p),
|
|
36
|
-
itemType: "https://schema.org/ItemList",
|
|
37
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
38
|
-
u,
|
|
39
|
-
{
|
|
40
|
-
animated: !0,
|
|
41
|
-
enableShadow: !0,
|
|
42
|
-
...m,
|
|
43
|
-
className: s("card__container"),
|
|
44
|
-
contentClassName: s("card", void 0, h),
|
|
45
|
-
children: [
|
|
46
|
-
a && /* @__PURE__ */ e.jsx(
|
|
47
|
-
_,
|
|
48
|
-
{
|
|
49
|
-
highlight: !0,
|
|
50
|
-
size: "md",
|
|
51
|
-
type: "h2",
|
|
52
|
-
...a,
|
|
53
|
-
className: s("title", a == null ? void 0 : a.className),
|
|
54
|
-
itemProp: "headline",
|
|
55
|
-
variant: "secondary",
|
|
56
|
-
children: a == null ? void 0 : a.content
|
|
57
|
-
}
|
|
58
|
-
),
|
|
59
|
-
/* @__PURE__ */ e.jsx(
|
|
60
|
-
"ul",
|
|
61
|
-
{
|
|
62
|
-
className: s(
|
|
63
|
-
"list",
|
|
64
|
-
{
|
|
65
|
-
"has-fullWidth": !!t
|
|
66
|
-
},
|
|
67
|
-
g
|
|
68
|
-
),
|
|
69
|
-
children: P.map((o, W) => {
|
|
70
|
-
var d, r, i, l;
|
|
71
|
-
return /* @__PURE__ */ e.jsx(
|
|
72
|
-
"li",
|
|
73
|
-
{
|
|
74
|
-
itemScope: !0,
|
|
75
|
-
itemProp: "itemListElement",
|
|
76
|
-
itemType: "https://schema.org/ListItem",
|
|
77
|
-
className: s("list__item", {
|
|
78
|
-
"has-fullWidth": !!t
|
|
79
|
-
}),
|
|
80
|
-
children: /* @__PURE__ */ e.jsxs(
|
|
81
|
-
"article",
|
|
82
|
-
{
|
|
83
|
-
itemScope: !0,
|
|
84
|
-
className: s("list__item__content"),
|
|
85
|
-
itemType: "https://schema.org/BlogPosting",
|
|
86
|
-
children: [
|
|
87
|
-
(o == null ? void 0 : o.image) && /* @__PURE__ */ e.jsx("header", { children: /* @__PURE__ */ e.jsx(
|
|
88
|
-
c,
|
|
89
|
-
{
|
|
90
|
-
...o == null ? void 0 : o.redirect,
|
|
91
|
-
"aria-label": `Read more about ${o.title.content}`,
|
|
92
|
-
className: s(
|
|
93
|
-
"image__link",
|
|
94
|
-
void 0,
|
|
95
|
-
(d = o == null ? void 0 : o.redirect) == null ? void 0 : d.className
|
|
96
|
-
),
|
|
97
|
-
children: /* @__PURE__ */ e.jsx(
|
|
98
|
-
x,
|
|
99
|
-
{
|
|
100
|
-
...o == null ? void 0 : o.image,
|
|
101
|
-
itemProp: "image",
|
|
102
|
-
className: s(
|
|
103
|
-
"image",
|
|
104
|
-
void 0,
|
|
105
|
-
(r = o == null ? void 0 : o.image) == null ? void 0 : r.className
|
|
106
|
-
)
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
}
|
|
110
|
-
) }),
|
|
111
|
-
/* @__PURE__ */ e.jsxs("div", { className: s("content"), children: [
|
|
112
|
-
/* @__PURE__ */ e.jsx(
|
|
113
|
-
c,
|
|
114
|
-
{
|
|
115
|
-
...o == null ? void 0 : o.redirect,
|
|
116
|
-
"aria-label": `Read more about ${o.title.content}`,
|
|
117
|
-
children: /* @__PURE__ */ e.jsx(
|
|
118
|
-
_,
|
|
119
|
-
{
|
|
120
|
-
size: "sm",
|
|
121
|
-
type: "h3",
|
|
122
|
-
...o.title,
|
|
123
|
-
className: s("headline", (i = o.title) == null ? void 0 : i.className),
|
|
124
|
-
itemProp: "headline",
|
|
125
|
-
variant: "inherit",
|
|
126
|
-
children: (l = o.title) == null ? void 0 : l.content
|
|
127
|
-
}
|
|
128
|
-
)
|
|
129
|
-
}
|
|
130
|
-
),
|
|
131
|
-
n(o == null ? void 0 : o.date) && (o == null ? void 0 : o.date) !== "LL" && /* @__PURE__ */ e.jsx(
|
|
132
|
-
"p",
|
|
133
|
-
{
|
|
134
|
-
"aria-label": `Published at ${o.date}`,
|
|
135
|
-
className: s("date"),
|
|
136
|
-
itemProp: "datePublished",
|
|
137
|
-
children: /* @__PURE__ */ e.jsx(
|
|
138
|
-
"time",
|
|
139
|
-
{
|
|
140
|
-
"aria-label": `Published at ${o.date}`,
|
|
141
|
-
className: s("date"),
|
|
142
|
-
itemProp: "datePublished",
|
|
143
|
-
...o == null ? void 0 : o.dateProps,
|
|
144
|
-
children: o.date
|
|
145
|
-
}
|
|
146
|
-
)
|
|
147
|
-
}
|
|
148
|
-
)
|
|
149
|
-
] }),
|
|
150
|
-
/* @__PURE__ */ e.jsx("meta", { content: (W + 1).toString(), itemProp: "position" }),
|
|
151
|
-
n(o == null ? void 0 : o.category) && /* @__PURE__ */ e.jsx("meta", { content: o.category, itemProp: "articleSection" })
|
|
152
|
-
]
|
|
153
|
-
}
|
|
154
|
-
)
|
|
155
|
-
},
|
|
156
|
-
`post-widget-item-${o.title}`
|
|
157
|
-
);
|
|
158
|
-
})
|
|
159
|
-
}
|
|
160
|
-
)
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
}
|
|
165
|
-
)
|
|
166
|
-
);
|
|
167
|
-
b.displayName = "PostWidget";
|
|
168
|
-
export {
|
|
169
|
-
b as P
|
|
170
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const o=require("./jsx-runtime-CITbqOLs.js"),j=require("react"),W=require("./bem-DC5wv0dD.js"),l=require("./validations-Cnxtn28y.js"),k=require("./Card-BPEoLzF1.js"),c=require("./Headline-CnyLLQLB.js"),R=require("./Image-B-lyA7ym.js"),_=require("./Link-Dg7XR4uY.js"),N="gradientMove",E="fadeInKeyframe",b={"prokodo-PostWidget__list":"prokodo-PostWidget__list","prokodo-PostWidget__list--has-fullWidth":"prokodo-PostWidget__list--has-fullWidth","prokodo-PostWidget__list__item":"prokodo-PostWidget__list__item","prokodo-PostWidget__list__item--has-fullWidth":"prokodo-PostWidget__list__item--has-fullWidth","prokodo-PostWidget__list__item__content":"prokodo-PostWidget__list__item__content","prokodo-PostWidget__image":"prokodo-PostWidget__image","prokodo-PostWidget__image__link":"prokodo-PostWidget__image__link","prokodo-PostWidget__content":"prokodo-PostWidget__content","prokodo-PostWidget__headline":"prokodo-PostWidget__headline","prokodo-PostWidget__date":"prokodo-PostWidget__date",gradientMove:N,fadeInKeyframe:E},s=W.create(b,"PostWidget"),p=j.memo(({fullWidth:a,className:g,title:t,listClassName:x,contentClassName:h,items:u=[],...P})=>o.jsxRuntimeExports.jsx("section",{itemScope:!0,className:s(void 0,void 0,g),itemType:"https://schema.org/ItemList",children:o.jsxRuntimeExports.jsxs(k.Card,{animated:!0,enableShadow:!0,...P,className:s("card__container"),contentClassName:s("card",void 0,h),children:[t&&o.jsxRuntimeExports.jsx(c.Headline,{highlight:!0,size:"md",type:"h2",...t,className:s("title",t==null?void 0:t.className),itemProp:"headline",variant:"secondary",children:t==null?void 0:t.content}),o.jsxRuntimeExports.jsx("ul",{className:s("list",{"has-fullWidth":!!a},x),children:u.map((e,m)=>{var r,i,d,n;return o.jsxRuntimeExports.jsx("li",{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem",className:s("list__item",{"has-fullWidth":!!a}),children:o.jsxRuntimeExports.jsxs("article",{itemScope:!0,className:s("list__item__content"),itemType:"https://schema.org/BlogPosting",children:[(e==null?void 0:e.image)&&o.jsxRuntimeExports.jsx("header",{children:o.jsxRuntimeExports.jsx(_.Link,{...e==null?void 0:e.redirect,"aria-label":`Read more about ${e.title.content}`,className:s("image__link",void 0,(r=e==null?void 0:e.redirect)==null?void 0:r.className),children:o.jsxRuntimeExports.jsx(R.Image,{...e==null?void 0:e.image,itemProp:"image",className:s("image",void 0,(i=e==null?void 0:e.image)==null?void 0:i.className)})})}),o.jsxRuntimeExports.jsxs("div",{className:s("content"),children:[o.jsxRuntimeExports.jsx(_.Link,{...e==null?void 0:e.redirect,"aria-label":`Read more about ${e.title.content}`,children:o.jsxRuntimeExports.jsx(c.Headline,{size:"sm",type:"h3",...e.title,className:s("headline",(d=e.title)==null?void 0:d.className),itemProp:"headline",variant:"inherit",children:(n=e.title)==null?void 0:n.content})}),l.isString(e==null?void 0:e.date)&&(e==null?void 0:e.date)!=="LL"&&o.jsxRuntimeExports.jsx("p",{"aria-label":`Published at ${e.date}`,className:s("date"),itemProp:"datePublished",children:o.jsxRuntimeExports.jsx("time",{"aria-label":`Published at ${e.date}`,className:s("date"),itemProp:"datePublished",...e==null?void 0:e.dateProps,children:e.date})})]}),o.jsxRuntimeExports.jsx("meta",{content:(m+1).toString(),itemProp:"position"}),l.isString(e==null?void 0:e.category)&&o.jsxRuntimeExports.jsx("meta",{content:e.category,itemProp:"articleSection"})]})},`post-widget-item-${e.title}`)})})]})}));p.displayName="PostWidget";exports.PostWidget=p;
|