@prokodo/ui 0.0.4 → 0.0.6
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 +99 -12
- package/dist/components/Accordion-V3d_aGvZ.js +130 -0
- package/dist/components/Accordion-o8oKA6Tq.js +1 -0
- package/dist/components/Animated-BBfAgsHL.js +64 -0
- package/dist/components/Animated-CO4IEerF.js +1 -0
- package/dist/components/AnimatedText-BmB5Vkyq.js +31 -0
- package/dist/components/AnimatedText-Sy1jofZl.js +1 -0
- package/dist/components/Avatar-Ci5YNFc5.js +95 -0
- package/dist/components/Avatar-CjlbA5a5.js +1 -0
- package/dist/components/BaseLink-Dd9htNXU.js +1 -0
- package/dist/components/BaseLink-w1q9Qc1U.js +30 -0
- package/dist/components/Button-B8chVgsB.js +111 -0
- package/dist/components/Button-yvFLX-6Q.js +1 -0
- package/dist/components/Calendly-CWCAs02R.js +1 -0
- package/dist/components/Calendly-WBM4oHyC.js +82 -0
- package/dist/components/Card-BPEoLzF1.js +1 -0
- package/dist/components/Card-IW4R7bKr.js +202 -0
- package/dist/components/Carousel-CdS7SVzA.js +1 -0
- package/dist/components/Carousel-DpO4a3lm.js +257 -0
- package/dist/components/Chip-BmBxJH5M.js +80 -0
- package/dist/components/Chip-Q2ttDAQn.js +1 -0
- package/dist/components/ClassNameConfigurator-C6UbdI-d.js +21 -0
- package/dist/components/ClassNameConfigurator-Ce5BUPXc.js +860 -0
- package/dist/components/DatePicker-BTenaDN8.js +1 -0
- package/dist/components/DatePicker-PK173UTy.js +93 -0
- package/dist/components/Dialog-Bq3tfZ0_.js +1 -0
- package/dist/components/Dialog-KlXAOdt_.js +172 -0
- package/dist/components/Drawer-DulO9091.js +1 -0
- package/dist/components/Drawer-i9X07r74.js +120 -0
- package/dist/components/Form-B6963dT5.js +368 -0
- package/dist/components/Form-DVNzITG2.js +1 -0
- package/dist/components/GridRow-1h1JHuDl.js +114 -0
- package/dist/components/GridRow-C5v0sOZZ.js +1 -0
- package/dist/components/Headline-CnyLLQLB.js +1 -0
- package/dist/components/Headline-DzEinaZi.js +98 -0
- package/dist/components/Icon-BMrVlROP.js +4195 -0
- package/dist/components/Icon-eWdA85cf.js +1 -0
- package/dist/components/Image-B-lyA7ym.js +1 -0
- package/dist/components/Image-CVgvVlLE.js +33 -0
- package/dist/components/ImageText-Cqp4xp9y.js +113 -0
- package/dist/components/ImageText-D-06_EGf.js +1 -0
- package/dist/components/Input-BEO9ig1R.js +1 -0
- package/dist/components/Input-CrNLI_OY.js +258 -0
- package/dist/components/InputOTP-Db7DHrhS.js +88 -0
- package/dist/components/InputOTP-MnmjEmPU.js +1 -0
- package/dist/components/Label-BvCzZIGM.js +1 -0
- package/dist/components/Label-DRUCdGoX.js +71 -0
- package/dist/components/Link-DSQ1125B.js +69 -0
- package/dist/components/Link-Dg7XR4uY.js +1 -0
- package/dist/components/List-D_dSwMx5.js +1 -0
- package/dist/components/List-P6xbVrBc.js +196 -0
- package/dist/components/Loading-C7lyHDW7.js +68 -0
- package/dist/components/Loading-U-CrTVTi.js +1 -0
- package/dist/components/Lottie-Br7PmIzX.js +1 -0
- package/dist/components/Lottie-CrvbxK0R.js +87 -0
- package/dist/components/Map-D3xbPS1S.js +1 -0
- package/dist/components/Map-DEIB_y-M.js +64 -0
- package/dist/components/PostItem-B8Vfv_sW.js +183 -0
- package/dist/components/PostItem-BSTn6cHD.js +1 -0
- package/dist/components/PostTeaser-BmZyqFL2.js +186 -0
- package/dist/components/PostTeaser-DLynX43c.js +1 -0
- package/dist/components/PostWidget-Bo4KiSsV.js +170 -0
- package/dist/components/PostWidget-DYWA-B8d.js +1 -0
- package/dist/components/PostWidgetCarousel-CZ6ptOGv.js +168 -0
- package/dist/components/PostWidgetCarousel-D7-p3Pwr.js +1 -0
- package/dist/components/Quote-6aurOanD.js +1 -0
- package/dist/components/Quote-CV_UYE1G.js +101 -0
- package/dist/components/RichText-Cg_XzkUs.js +152 -0
- package/dist/components/RichText-DVg1dwMV.js +1 -0
- package/dist/components/Select-BMyrX8V0.js +3081 -0
- package/dist/components/Select-DbjU6dlH.js +3 -0
- package/dist/components/Skeleton-BuY3bttw.js +1 -0
- package/dist/components/Skeleton-D6olNYTG.js +40 -0
- package/dist/components/Slider-C-lecSwc.js +957 -0
- package/dist/components/Slider-GvO3Xllf.js +1 -0
- package/dist/components/Stepper-BV3PGCr2.js +1 -0
- package/dist/components/Stepper-CA1DOm4D.js +135 -0
- package/dist/components/Switch-C_6EUOIc.js +330 -0
- package/dist/components/Switch-Db3HpOhM.js +1 -0
- package/dist/components/Table-Csc0FIbX.js +1 -0
- package/dist/components/Table-Cy8bIv_C.js +95 -0
- package/dist/components/Teaser-CkisYOs-.js +1 -0
- package/dist/components/Teaser-Cl2oBeh5.js +118 -0
- package/dist/components/accordion.js +1 -0
- package/dist/components/animated.js +1 -0
- package/dist/components/animatedText.js +1 -0
- package/dist/components/areArraysEqual-6R3bBH2E.js +1 -0
- package/dist/components/areArraysEqual-CJkStQkx.js +20 -0
- package/dist/components/avatar.js +1 -0
- package/dist/components/base-link.js +1 -0
- package/dist/components/bem-CYKrPjje.js +11 -0
- package/dist/components/bem-DC5wv0dD.js +1 -0
- package/dist/components/button.js +1 -0
- package/dist/components/calculation-79PhfKvq.js +4 -0
- package/dist/components/calculation-D-p0iqpk.js +1 -0
- package/dist/components/calendly.js +1 -0
- package/dist/components/card.js +1 -0
- package/dist/components/carousel.js +1 -0
- package/dist/components/chip.js +1 -0
- package/dist/components/datePicker.js +1 -0
- package/dist/components/dialog.js +1 -0
- package/dist/components/drawer.js +1 -0
- package/dist/components/form.js +1 -0
- package/dist/components/grid.js +1 -0
- package/dist/components/headline.js +1 -0
- package/dist/components/icon.js +1 -0
- package/dist/components/image-text.js +1 -0
- package/dist/components/image.js +1 -0
- package/dist/components/input.js +1 -0
- package/dist/components/inputOTP.js +1 -0
- package/dist/components/jsx-runtime-C5mzlN2N.js +284 -0
- package/dist/components/jsx-runtime-CITbqOLs.js +22 -0
- package/dist/components/label.js +1 -0
- package/dist/components/link.js +1 -0
- package/dist/components/list.js +1 -0
- package/dist/components/loading.js +1 -0
- package/dist/components/lottie.js +1 -0
- package/dist/components/map.js +1 -0
- package/dist/components/post-item.js +1 -0
- package/dist/components/post-teaser.js +1 -0
- package/dist/components/post-widget-carousel.js +1 -0
- package/dist/components/post-widget.js +1 -0
- package/dist/components/quote.js +1 -0
- package/dist/components/rich-text.js +1 -0
- package/dist/components/select.js +1 -0
- package/dist/components/skeleton.js +1 -0
- package/dist/components/slider.js +1 -0
- package/dist/components/stepper.js +1 -0
- package/dist/components/switch.js +1 -0
- package/dist/components/table.js +1 -0
- package/dist/components/teaser.js +1 -0
- package/dist/components/useControlled-BYdyS7Pn.js +31 -0
- package/dist/components/useControlled-Ysk4KqoX.js +3 -0
- package/dist/components/validations-B_cxltQ_.js +8 -0
- package/dist/components/validations-Cnxtn28y.js +1 -0
- package/dist/index.cjs.js +1 -46
- package/dist/index.es.js +82 -13845
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/types/components/accordion/Accordion.d.ts +3 -0
- package/dist/types/components/accordion/Accordion.model.d.ts +28 -0
- package/dist/types/components/accordion/index.d.ts +2 -0
- package/dist/types/components/animated/Animated.d.ts +3 -0
- package/dist/types/components/animated/Animated.model.d.ts +12 -0
- package/dist/types/components/animated/index.d.ts +2 -0
- package/dist/types/components/animatedText/AnimatedText.d.ts +3 -0
- package/dist/types/components/animatedText/AnimatedText.model.d.ts +7 -0
- package/dist/types/components/animatedText/index.d.ts +2 -0
- package/dist/types/components/avatar/Avatar.d.ts +3 -0
- package/dist/types/components/avatar/Avatar.model.d.ts +11 -0
- package/dist/types/components/avatar/index.d.ts +2 -0
- package/dist/types/components/base-link/BaseLink.d.ts +3 -0
- package/dist/types/components/base-link/BaseLink.model.d.ts +7 -0
- package/dist/types/components/base-link/index.d.ts +2 -0
- package/dist/types/components/button/Button.d.ts +3 -0
- package/dist/types/components/button/Button.model.d.ts +26 -0
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/calendly/Calendly.d.ts +22 -0
- package/dist/types/components/calendly/Calendly.model.d.ts +27 -0
- package/dist/types/components/calendly/index.d.ts +2 -0
- package/dist/types/components/card/Card.d.ts +3 -0
- package/dist/types/components/card/Card.model.d.ts +35 -0
- package/dist/types/components/card/index.d.ts +2 -0
- package/dist/types/components/carousel/Carousel.d.ts +3 -0
- package/dist/types/components/carousel/Carousel.model.d.ts +24 -0
- package/dist/types/components/carousel/Carousel.services.d.ts +23 -0
- package/dist/types/components/carousel/index.d.ts +2 -0
- package/dist/types/components/chip/Chip.d.ts +3 -0
- package/dist/types/components/chip/Chip.model.d.ts +14 -0
- package/dist/types/components/chip/index.d.ts +2 -0
- package/dist/types/components/datePicker/DatePicker.d.ts +3 -0
- package/dist/types/components/datePicker/DatePicker.model.d.ts +21 -0
- package/dist/types/components/datePicker/index.d.ts +2 -0
- package/dist/types/components/dialog/Dialog.d.ts +3 -0
- package/dist/types/components/dialog/Dialog.model.d.ts +34 -0
- package/dist/types/components/dialog/index.d.ts +2 -0
- package/dist/types/components/drawer/Drawer.d.ts +5 -0
- package/dist/types/components/drawer/Drawer.model.d.ts +11 -0
- package/dist/types/components/drawer/index.d.ts +2 -0
- package/dist/types/components/form/Form.d.ts +3 -0
- package/dist/types/components/form/Form.model.d.ts +71 -0
- package/dist/types/components/form/FormField.d.ts +9 -0
- package/dist/types/components/form/FormResponse.d.ts +6 -0
- package/dist/types/components/form/index.d.ts +3 -0
- package/dist/types/components/grid/Grid.d.ts +7 -0
- package/dist/types/components/grid/GridRow.d.ts +13 -0
- package/dist/types/components/grid/index.d.ts +2 -0
- package/dist/types/components/headline/Headline.d.ts +4 -0
- package/dist/types/components/headline/Headline.model.d.ts +19 -0
- package/dist/types/components/headline/index.d.ts +2 -0
- package/dist/types/components/icon/Icon.d.ts +4 -0
- package/dist/types/components/icon/Icon.model.d.ts +15 -0
- package/dist/types/components/icon/iconsMap.d.ts +4128 -0
- package/dist/types/components/icon/index.d.ts +2 -0
- package/dist/types/components/image/Image.d.ts +3 -0
- package/dist/types/components/image/Image.model.d.ts +12 -0
- package/dist/types/components/image/index.d.ts +2 -0
- package/dist/types/components/image-text/ImageText.d.ts +3 -0
- package/dist/types/components/image-text/ImageText.model.d.ts +21 -0
- package/dist/types/components/image-text/index.d.ts +2 -0
- package/dist/types/components/input/Input.d.ts +3 -0
- package/dist/types/components/input/Input.model.d.ts +55 -0
- package/dist/types/components/input/InputValidation.d.ts +2 -0
- package/dist/types/components/input/index.d.ts +2 -0
- package/dist/types/components/inputOTP/InputOTP.d.ts +3 -0
- package/dist/types/components/inputOTP/InputOTP.model.d.ts +8 -0
- package/dist/types/components/inputOTP/index.d.ts +2 -0
- package/dist/types/components/label/Label.d.ts +3 -0
- package/dist/types/components/label/Label.model.d.ts +9 -0
- package/dist/types/components/label/index.d.ts +2 -0
- package/dist/types/components/link/Link.d.ts +3 -0
- package/dist/types/components/link/Link.model.d.ts +22 -0
- package/dist/types/components/link/index.d.ts +2 -0
- package/dist/types/components/list/List.d.ts +3 -0
- package/dist/types/components/list/List.model.d.ts +49 -0
- package/dist/types/components/list/index.d.ts +2 -0
- package/dist/types/components/loading/Loading.d.ts +3 -0
- package/dist/types/components/loading/Loading.model.d.ts +5 -0
- package/dist/types/components/loading/index.d.ts +2 -0
- package/dist/types/components/lottie/Lottie.d.ts +3 -0
- package/dist/types/components/lottie/Lottie.model.d.ts +8 -0
- package/dist/types/components/lottie/LottieAnimations.d.ts +32 -0
- package/dist/types/components/lottie/index.d.ts +2 -0
- package/dist/types/components/map/Map.d.ts +3 -0
- package/dist/types/components/map/Map.model.d.ts +20 -0
- package/dist/types/components/map/index.d.ts +2 -0
- package/dist/types/components/post-item/PostItem.d.ts +3 -0
- package/dist/types/components/post-item/PostItem.model.d.ts +21 -0
- package/dist/types/components/post-item/PostItemAuthor.d.ts +3 -0
- package/dist/types/components/post-item/PostItemAuthor.model.d.ts +14 -0
- package/dist/types/components/post-item/index.d.ts +3 -0
- package/dist/types/components/post-teaser/PostTeaser.d.ts +3 -0
- package/dist/types/components/post-teaser/PostTeaser.model.d.ts +25 -0
- package/dist/types/components/post-teaser/index.d.ts +2 -0
- package/dist/types/components/post-widget/PostWidget.d.ts +3 -0
- package/dist/types/components/post-widget/PostWidget.model.d.ts +25 -0
- package/dist/types/components/post-widget/index.d.ts +2 -0
- package/dist/types/components/post-widget-carousel/PostWidgetCarousel.d.ts +3 -0
- package/dist/types/components/post-widget-carousel/PostWidgetCarousel.model.d.ts +20 -0
- package/dist/types/components/post-widget-carousel/index.d.ts +2 -0
- package/dist/types/components/quote/Quote.d.ts +3 -0
- package/dist/types/components/quote/Quote.model.d.ts +19 -0
- package/dist/types/components/quote/index.d.ts +2 -0
- package/dist/types/components/rich-text/RichText.d.ts +3 -0
- package/dist/types/components/rich-text/RichText.model.d.ts +11 -0
- package/dist/types/components/rich-text/index.d.ts +2 -0
- package/dist/types/components/select/Select.d.ts +3 -0
- package/dist/types/components/select/Select.model.d.ts +30 -0
- package/dist/types/components/select/index.d.ts +2 -0
- package/dist/types/components/skeleton/Skeleton.d.ts +3 -0
- package/dist/types/components/skeleton/Skeleton.model.d.ts +7 -0
- package/dist/types/components/skeleton/index.d.ts +2 -0
- package/dist/types/components/slider/Slider.d.ts +3 -0
- package/dist/types/components/slider/Slider.model.d.ts +11 -0
- package/dist/types/components/slider/index.d.ts +2 -0
- package/dist/types/components/stepper/Stepper.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.model.d.ts +24 -0
- package/dist/types/components/stepper/index.d.ts +2 -0
- package/dist/types/components/switch/Switch.d.ts +3 -0
- package/dist/types/components/switch/Switch.model.d.ts +18 -0
- package/dist/types/components/switch/index.d.ts +2 -0
- package/dist/types/components/table/Table.d.ts +3 -0
- package/dist/types/components/table/Table.model.d.ts +32 -0
- package/dist/types/components/table/index.d.ts +2 -0
- package/dist/types/components/teaser/Teaser.d.ts +3 -0
- package/dist/types/components/teaser/Teaser.model.d.ts +29 -0
- package/dist/types/components/teaser/index.d.ts +2 -0
- package/dist/types/helpers/bem.d.ts +8 -0
- package/dist/types/helpers/calculation.d.ts +2 -0
- package/dist/types/helpers/effect.d.ts +1 -0
- package/dist/types/helpers/getTracking.d.ts +5 -0
- package/dist/types/helpers/theme.d.ts +1 -0
- package/dist/types/helpers/validations.d.ts +6 -0
- package/dist/types/hooks/useGoogleMaps.d.ts +1 -0
- package/dist/types/hooks/useThrottleScroll.d.ts +1 -0
- package/dist/types/index.d.ts +80 -0
- package/dist/types/types/colors.d.ts +5 -0
- package/dist/types/types/core.d.ts +5 -0
- package/dist/types/types/schema.d.ts +7 -0
- package/dist/types/types/variants.d.ts +1 -0
- package/dist/ui.css +1 -1
- package/package.json +183 -18
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { j as s } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { memo as P, useRef as W, useState as f, useLayoutEffect as N, Fragment as d } from "react";
|
|
3
|
+
import { c as x } from "./bem-CYKrPjje.js";
|
|
4
|
+
import { B as u } from "./Button-B8chVgsB.js";
|
|
5
|
+
import { C as y } from "./Card-IW4R7bKr.js";
|
|
6
|
+
import { C as j } from "./Carousel-DpO4a3lm.js";
|
|
7
|
+
import { H as m } from "./Headline-DzEinaZi.js";
|
|
8
|
+
import { I as v } from "./Image-CVgvVlLE.js";
|
|
9
|
+
import { L as p } from "./Link-DSQ1125B.js";
|
|
10
|
+
const b = "gradientMove", w = "fadeInKeyframe", I = {
|
|
11
|
+
"prokodo-PostWidgetCarousel__carousel": "prokodo-PostWidgetCarousel__carousel",
|
|
12
|
+
"prokodo-PostWidgetCarousel__carousel__item__image__link": "prokodo-PostWidgetCarousel__carousel__item__image__link",
|
|
13
|
+
"prokodo-PostWidgetCarousel__carousel__item__image": "prokodo-PostWidgetCarousel__carousel__item__image",
|
|
14
|
+
"prokodo-PostWidgetCarousel__carousel__item__link": "prokodo-PostWidgetCarousel__carousel__item__link",
|
|
15
|
+
"prokodo-PostWidgetCarousel__carousel__dots": "prokodo-PostWidgetCarousel__carousel__dots",
|
|
16
|
+
"prokodo-PostWidgetCarousel__carousel__buttons": "prokodo-PostWidgetCarousel__carousel__buttons",
|
|
17
|
+
"prokodo-PostWidgetCarousel__headline": "prokodo-PostWidgetCarousel__headline",
|
|
18
|
+
gradientMove: b,
|
|
19
|
+
fadeInKeyframe: w
|
|
20
|
+
}, o = x(I, "PostWidgetCarousel"), L = P(
|
|
21
|
+
({ autoplay: g, className: h, title: a, items: n = [], ...C }) => {
|
|
22
|
+
const r = W(null), [k, c] = f(0);
|
|
23
|
+
return N(() => {
|
|
24
|
+
var l, i;
|
|
25
|
+
const e = ((i = (l = r == null ? void 0 : r.current) == null ? void 0 : l.carouselContainer) == null ? void 0 : i.offsetWidth) ?? 0;
|
|
26
|
+
c(e);
|
|
27
|
+
const t = () => {
|
|
28
|
+
c(e);
|
|
29
|
+
};
|
|
30
|
+
return window.addEventListener("resize", t), () => {
|
|
31
|
+
window.removeEventListener("resize", t);
|
|
32
|
+
};
|
|
33
|
+
}, [r]), /* @__PURE__ */ s.jsx(
|
|
34
|
+
"section",
|
|
35
|
+
{
|
|
36
|
+
itemScope: !0,
|
|
37
|
+
className: o(void 0, void 0, h),
|
|
38
|
+
itemType: "https://schema.org/ItemList",
|
|
39
|
+
children: /* @__PURE__ */ s.jsxs(
|
|
40
|
+
y,
|
|
41
|
+
{
|
|
42
|
+
animated: !0,
|
|
43
|
+
enableShadow: !0,
|
|
44
|
+
...C,
|
|
45
|
+
className: o("card__container"),
|
|
46
|
+
contentClassName: o("card"),
|
|
47
|
+
variant: "white",
|
|
48
|
+
children: [
|
|
49
|
+
a && /* @__PURE__ */ s.jsx(
|
|
50
|
+
m,
|
|
51
|
+
{
|
|
52
|
+
highlight: !0,
|
|
53
|
+
size: "md",
|
|
54
|
+
type: "h2",
|
|
55
|
+
...a,
|
|
56
|
+
className: o("title", a == null ? void 0 : a.className),
|
|
57
|
+
itemProp: "headline",
|
|
58
|
+
variant: "secondary",
|
|
59
|
+
children: a == null ? void 0 : a.content
|
|
60
|
+
}
|
|
61
|
+
),
|
|
62
|
+
n.length > 0 && /* @__PURE__ */ s.jsxs(d, { children: [
|
|
63
|
+
/* @__PURE__ */ s.jsx(
|
|
64
|
+
j,
|
|
65
|
+
{
|
|
66
|
+
ref: r,
|
|
67
|
+
autoplay: g,
|
|
68
|
+
className: o("carousel"),
|
|
69
|
+
classNameDots: o("carousel__dots"),
|
|
70
|
+
classNameItem: o("carousel__item"),
|
|
71
|
+
itemsToShow: 1,
|
|
72
|
+
children: n.map((e) => {
|
|
73
|
+
var l, i, _;
|
|
74
|
+
const t = `carousel-item-${e.title}`;
|
|
75
|
+
return /* @__PURE__ */ s.jsxs(d, { children: [
|
|
76
|
+
(e == null ? void 0 : e.image) && /* @__PURE__ */ s.jsx(
|
|
77
|
+
p,
|
|
78
|
+
{
|
|
79
|
+
"aria-label": `Read more about ${e.title.content}`,
|
|
80
|
+
...e == null ? void 0 : e.redirect,
|
|
81
|
+
className: o(
|
|
82
|
+
"carousel__item__image__link",
|
|
83
|
+
void 0,
|
|
84
|
+
(l = e == null ? void 0 : e.redirect) == null ? void 0 : l.className
|
|
85
|
+
),
|
|
86
|
+
style: {
|
|
87
|
+
width: k
|
|
88
|
+
},
|
|
89
|
+
children: /* @__PURE__ */ s.jsx(
|
|
90
|
+
v,
|
|
91
|
+
{
|
|
92
|
+
className: o("carousel__item__image"),
|
|
93
|
+
...e.image
|
|
94
|
+
},
|
|
95
|
+
t
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ s.jsx(
|
|
100
|
+
p,
|
|
101
|
+
{
|
|
102
|
+
...e == null ? void 0 : e.redirect,
|
|
103
|
+
"aria-label": `Read more about ${e.title.content}`,
|
|
104
|
+
className: o("carousel__item__link"),
|
|
105
|
+
children: /* @__PURE__ */ s.jsx(
|
|
106
|
+
m,
|
|
107
|
+
{
|
|
108
|
+
size: "md",
|
|
109
|
+
type: "h3",
|
|
110
|
+
...e.title,
|
|
111
|
+
className: o("headline", (i = e.title) == null ? void 0 : i.className),
|
|
112
|
+
itemProp: "headline",
|
|
113
|
+
variant: "inherit",
|
|
114
|
+
children: (_ = e.title) == null ? void 0 : _.content
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
)
|
|
119
|
+
] }, t);
|
|
120
|
+
})
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ s.jsxs("div", { className: o("carousel__buttons"), children: [
|
|
124
|
+
/* @__PURE__ */ s.jsx(
|
|
125
|
+
u,
|
|
126
|
+
{
|
|
127
|
+
"aria-label": "Last category",
|
|
128
|
+
className: o("carousel__button"),
|
|
129
|
+
color: "primary",
|
|
130
|
+
iconProps: {
|
|
131
|
+
name: "ArrowLeft01Icon",
|
|
132
|
+
size: "sm"
|
|
133
|
+
},
|
|
134
|
+
onClick: () => {
|
|
135
|
+
var e;
|
|
136
|
+
return (e = r.current) == null ? void 0 : e.slidePrev();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
),
|
|
140
|
+
/* @__PURE__ */ s.jsx(
|
|
141
|
+
u,
|
|
142
|
+
{
|
|
143
|
+
"aria-label": "Next category",
|
|
144
|
+
className: o("carousel__button"),
|
|
145
|
+
color: "primary",
|
|
146
|
+
iconProps: {
|
|
147
|
+
name: "ArrowRight01Icon",
|
|
148
|
+
size: "sm"
|
|
149
|
+
},
|
|
150
|
+
onClick: () => {
|
|
151
|
+
var e;
|
|
152
|
+
return (e = r.current) == null ? void 0 : e.slideNext();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
] })
|
|
157
|
+
] })
|
|
158
|
+
]
|
|
159
|
+
}
|
|
160
|
+
)
|
|
161
|
+
}
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
L.displayName = "PostWidgetCarousel";
|
|
166
|
+
export {
|
|
167
|
+
L as P
|
|
168
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-CITbqOLs.js"),a=require("react"),k=require("./bem-DC5wv0dD.js"),_=require("./Button-yvFLX-6Q.js"),P=require("./Card-BPEoLzF1.js"),W=require("./Carousel-CdS7SVzA.js"),m=require("./Headline-CnyLLQLB.js"),N=require("./Image-B-lyA7ym.js"),x=require("./Link-Dg7XR4uY.js"),R="gradientMove",y="fadeInKeyframe",E={"prokodo-PostWidgetCarousel__carousel":"prokodo-PostWidgetCarousel__carousel","prokodo-PostWidgetCarousel__carousel__item__image__link":"prokodo-PostWidgetCarousel__carousel__item__image__link","prokodo-PostWidgetCarousel__carousel__item__image":"prokodo-PostWidgetCarousel__carousel__item__image","prokodo-PostWidgetCarousel__carousel__item__link":"prokodo-PostWidgetCarousel__carousel__item__link","prokodo-PostWidgetCarousel__carousel__dots":"prokodo-PostWidgetCarousel__carousel__dots","prokodo-PostWidgetCarousel__carousel__buttons":"prokodo-PostWidgetCarousel__carousel__buttons","prokodo-PostWidgetCarousel__headline":"prokodo-PostWidgetCarousel__headline",gradientMove:R,fadeInKeyframe:y},s=k.create(E,"PostWidgetCarousel"),g=a.memo(({autoplay:p,className:h,title:r,items:c=[],...j})=>{const t=a.useRef(null),[C,u]=a.useState(0);return a.useLayoutEffect(()=>{var i,l;const e=((l=(i=t==null?void 0:t.current)==null?void 0:i.carouselContainer)==null?void 0:l.offsetWidth)??0;u(e);const n=()=>{u(e)};return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[t]),o.jsxRuntimeExports.jsx("section",{itemScope:!0,className:s(void 0,void 0,h),itemType:"https://schema.org/ItemList",children:o.jsxRuntimeExports.jsxs(P.Card,{animated:!0,enableShadow:!0,...j,className:s("card__container"),contentClassName:s("card"),variant:"white",children:[r&&o.jsxRuntimeExports.jsx(m.Headline,{highlight:!0,size:"md",type:"h2",...r,className:s("title",r==null?void 0:r.className),itemProp:"headline",variant:"secondary",children:r==null?void 0:r.content}),c.length>0&&o.jsxRuntimeExports.jsxs(a.Fragment,{children:[o.jsxRuntimeExports.jsx(W.Carousel,{ref:t,autoplay:p,className:s("carousel"),classNameDots:s("carousel__dots"),classNameItem:s("carousel__item"),itemsToShow:1,children:c.map(e=>{var i,l,d;const n=`carousel-item-${e.title}`;return o.jsxRuntimeExports.jsxs(a.Fragment,{children:[(e==null?void 0:e.image)&&o.jsxRuntimeExports.jsx(x.Link,{"aria-label":`Read more about ${e.title.content}`,...e==null?void 0:e.redirect,className:s("carousel__item__image__link",void 0,(i=e==null?void 0:e.redirect)==null?void 0:i.className),style:{width:C},children:o.jsxRuntimeExports.jsx(N.Image,{className:s("carousel__item__image"),...e.image},n)}),o.jsxRuntimeExports.jsx(x.Link,{...e==null?void 0:e.redirect,"aria-label":`Read more about ${e.title.content}`,className:s("carousel__item__link"),children:o.jsxRuntimeExports.jsx(m.Headline,{size:"md",type:"h3",...e.title,className:s("headline",(l=e.title)==null?void 0:l.className),itemProp:"headline",variant:"inherit",children:(d=e.title)==null?void 0:d.content})})]},n)})}),o.jsxRuntimeExports.jsxs("div",{className:s("carousel__buttons"),children:[o.jsxRuntimeExports.jsx(_.Button,{"aria-label":"Last category",className:s("carousel__button"),color:"primary",iconProps:{name:"ArrowLeft01Icon",size:"sm"},onClick:()=>{var e;return(e=t.current)==null?void 0:e.slidePrev()}}),o.jsxRuntimeExports.jsx(_.Button,{"aria-label":"Next category",className:s("carousel__button"),color:"primary",iconProps:{name:"ArrowRight01Icon",size:"sm"},onClick:()=>{var e;return(e=t.current)==null?void 0:e.slideNext()}})]})]})]})})});g.displayName="PostWidgetCarousel";exports.PostWidgetCarousel=g;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("./jsx-runtime-CITbqOLs.js"),p=require("react"),d=require("./bem-DC5wv0dD.js"),m=require("./validations-Cnxtn28y.js"),u=require("./Avatar-CjlbA5a5.js"),x=require("./Card-BPEoLzF1.js"),r=require("./Headline-CnyLLQLB.js"),h=require("./RichText-DVg1dwMV.js"),j="gradientMove",Q="fadeInKeyframe",l={"prokodo-Quote":"prokodo-Quote","prokodo-Quote__headline":"prokodo-Quote__headline","prokodo-Quote__quote":"prokodo-Quote__quote","prokodo-Quote__quote__content":"prokodo-Quote__quote__content","prokodo-Quote__caption":"prokodo-Quote__caption","prokodo-Quote__caption__avatar":"prokodo-Quote__caption__avatar","prokodo-Quote__caption__author":"prokodo-Quote__caption__author","prokodo-Quote__caption__author__name":"prokodo-Quote__caption__author__name","prokodo-Quote__caption__author__position":"prokodo-Quote__caption__author__position",gradientMove:j,fadeInKeyframe:Q},e=d.create(l,"Quote"),i=p.memo(({className:_,variant:s="primary",title:n,subTitle:a,content:c,author:t})=>o.jsxRuntimeExports.jsxs("figure",{itemScope:!0,className:e(void 0,void 0,_),itemType:"https://schema.org/Quotation",children:[a&&o.jsxRuntimeExports.jsx(r.Headline,{highlight:!0,className:e("sub_headline",void 0,a==null?void 0:a.className),size:"sm",type:"h3",...a,variant:a.variant??s,children:a==null?void 0:a.content}),n&&o.jsxRuntimeExports.jsx(r.Headline,{className:e("headline",void 0,n==null?void 0:n.className),size:"lg",type:"h2",...n,children:n.content}),o.jsxRuntimeExports.jsxs(x.Card,{animated:!0,highlight:!0,className:e("card__container"),contentClassName:e("card"),customAnimation:"left-right",variant:"white",children:[o.jsxRuntimeExports.jsx("blockquote",{className:e("quote"),children:o.jsxRuntimeExports.jsx(h.RichText,{className:e("quote__content"),itemProp:"text",children:c})}),t&&o.jsxRuntimeExports.jsx("figcaption",{children:o.jsxRuntimeExports.jsxs("div",{itemScope:!0,className:e("caption"),itemType:"https://schema.org/Person",children:[(t==null?void 0:t.avatar)&&o.jsxRuntimeExports.jsx(u.Avatar,{className:e("caption__avatar"),...t.avatar,variant:s}),o.jsxRuntimeExports.jsxs("div",{className:e("caption__author"),children:[o.jsxRuntimeExports.jsx("span",{className:e("caption__author__name"),itemProp:"name",children:t.name}),m.isString(t==null?void 0:t.position)&&o.jsxRuntimeExports.jsx("span",{className:e("caption__author__position"),itemProp:"jobTitle",children:t.position})]})]})})]})]}));i.displayName="Quote";exports.Quote=i;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { j as o } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { memo as p } from "react";
|
|
3
|
+
import { c } from "./bem-CYKrPjje.js";
|
|
4
|
+
import { i as m } from "./validations-B_cxltQ_.js";
|
|
5
|
+
import { A as d } from "./Avatar-Ci5YNFc5.js";
|
|
6
|
+
import { C as h } from "./Card-IW4R7bKr.js";
|
|
7
|
+
import { H as _ } from "./Headline-DzEinaZi.js";
|
|
8
|
+
import { R as Q } from "./RichText-Cg_XzkUs.js";
|
|
9
|
+
const u = "gradientMove", k = "fadeInKeyframe", l = {
|
|
10
|
+
"prokodo-Quote": "prokodo-Quote",
|
|
11
|
+
"prokodo-Quote__headline": "prokodo-Quote__headline",
|
|
12
|
+
"prokodo-Quote__quote": "prokodo-Quote__quote",
|
|
13
|
+
"prokodo-Quote__quote__content": "prokodo-Quote__quote__content",
|
|
14
|
+
"prokodo-Quote__caption": "prokodo-Quote__caption",
|
|
15
|
+
"prokodo-Quote__caption__avatar": "prokodo-Quote__caption__avatar",
|
|
16
|
+
"prokodo-Quote__caption__author": "prokodo-Quote__caption__author",
|
|
17
|
+
"prokodo-Quote__caption__author__name": "prokodo-Quote__caption__author__name",
|
|
18
|
+
"prokodo-Quote__caption__author__position": "prokodo-Quote__caption__author__position",
|
|
19
|
+
gradientMove: u,
|
|
20
|
+
fadeInKeyframe: k
|
|
21
|
+
}, e = c(l, "Quote"), f = p(
|
|
22
|
+
({ className: i, variant: r = "primary", title: n, subTitle: t, content: s, author: a }) => /* @__PURE__ */ o.jsxs(
|
|
23
|
+
"figure",
|
|
24
|
+
{
|
|
25
|
+
itemScope: !0,
|
|
26
|
+
className: e(void 0, void 0, i),
|
|
27
|
+
itemType: "https://schema.org/Quotation",
|
|
28
|
+
children: [
|
|
29
|
+
t && /* @__PURE__ */ o.jsx(
|
|
30
|
+
_,
|
|
31
|
+
{
|
|
32
|
+
highlight: !0,
|
|
33
|
+
className: e("sub_headline", void 0, t == null ? void 0 : t.className),
|
|
34
|
+
size: "sm",
|
|
35
|
+
type: "h3",
|
|
36
|
+
...t,
|
|
37
|
+
variant: t.variant ?? r,
|
|
38
|
+
children: t == null ? void 0 : t.content
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
n && /* @__PURE__ */ o.jsx(
|
|
42
|
+
_,
|
|
43
|
+
{
|
|
44
|
+
className: e("headline", void 0, n == null ? void 0 : n.className),
|
|
45
|
+
size: "lg",
|
|
46
|
+
type: "h2",
|
|
47
|
+
...n,
|
|
48
|
+
children: n.content
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
/* @__PURE__ */ o.jsxs(
|
|
52
|
+
h,
|
|
53
|
+
{
|
|
54
|
+
animated: !0,
|
|
55
|
+
highlight: !0,
|
|
56
|
+
className: e("card__container"),
|
|
57
|
+
contentClassName: e("card"),
|
|
58
|
+
customAnimation: "left-right",
|
|
59
|
+
variant: "white",
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ o.jsx("blockquote", { className: e("quote"), children: /* @__PURE__ */ o.jsx(Q, { className: e("quote__content"), itemProp: "text", children: s }) }),
|
|
62
|
+
a && /* @__PURE__ */ o.jsx("figcaption", { children: /* @__PURE__ */ o.jsxs(
|
|
63
|
+
"div",
|
|
64
|
+
{
|
|
65
|
+
itemScope: !0,
|
|
66
|
+
className: e("caption"),
|
|
67
|
+
itemType: "https://schema.org/Person",
|
|
68
|
+
children: [
|
|
69
|
+
(a == null ? void 0 : a.avatar) && /* @__PURE__ */ o.jsx(
|
|
70
|
+
d,
|
|
71
|
+
{
|
|
72
|
+
className: e("caption__avatar"),
|
|
73
|
+
...a.avatar,
|
|
74
|
+
variant: r
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ o.jsxs("div", { className: e("caption__author"), children: [
|
|
78
|
+
/* @__PURE__ */ o.jsx("span", { className: e("caption__author__name"), itemProp: "name", children: a.name }),
|
|
79
|
+
m(a == null ? void 0 : a.position) && /* @__PURE__ */ o.jsx(
|
|
80
|
+
"span",
|
|
81
|
+
{
|
|
82
|
+
className: e("caption__author__position"),
|
|
83
|
+
itemProp: "jobTitle",
|
|
84
|
+
children: a.position
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
] })
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
) })
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
);
|
|
98
|
+
f.displayName = "Quote";
|
|
99
|
+
export {
|
|
100
|
+
f as Q
|
|
101
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { j as l } from "./jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { memo as T, useMemo as _, useCallback as N } from "react";
|
|
3
|
+
import v from "react-markdown";
|
|
4
|
+
import y from "remark-breaks";
|
|
5
|
+
import s from "remark-gfm";
|
|
6
|
+
import { A as g } from "./AnimatedText-BmB5Vkyq.js";
|
|
7
|
+
import { H as m } from "./Headline-DzEinaZi.js";
|
|
8
|
+
import { I as z } from "./Icon-BMrVlROP.js";
|
|
9
|
+
import { L as I } from "./Link-DSQ1125B.js";
|
|
10
|
+
import { c as M } from "./bem-CYKrPjje.js";
|
|
11
|
+
import { a as o } from "./validations-B_cxltQ_.js";
|
|
12
|
+
const A = "gradientMove", K = "fadeInKeyframe", w = {
|
|
13
|
+
"prokodo-RichText__p": "prokodo-RichText__p",
|
|
14
|
+
"prokodo-RichText__pre": "prokodo-RichText__pre",
|
|
15
|
+
"prokodo-RichText__ul": "prokodo-RichText__ul",
|
|
16
|
+
"prokodo-RichText__ol": "prokodo-RichText__ol",
|
|
17
|
+
"prokodo-RichText__li": "prokodo-RichText__li",
|
|
18
|
+
"prokodo-RichText__li__icon": "prokodo-RichText__li__icon",
|
|
19
|
+
"prokodo-RichText__ol__decimal": "prokodo-RichText__ol__decimal",
|
|
20
|
+
gradientMove: A,
|
|
21
|
+
fadeInKeyframe: K
|
|
22
|
+
}, h = M(w, "RichText");
|
|
23
|
+
function E(c) {
|
|
24
|
+
return o(c) && "tagName" in c;
|
|
25
|
+
}
|
|
26
|
+
function H(c) {
|
|
27
|
+
return !o(c) && (c == null ? void 0 : c.type) === "text" && "value" in c;
|
|
28
|
+
}
|
|
29
|
+
const L = T(
|
|
30
|
+
({
|
|
31
|
+
className: c,
|
|
32
|
+
animated: a,
|
|
33
|
+
animationProps: r = {},
|
|
34
|
+
variant: f = "primary",
|
|
35
|
+
schema: x = {},
|
|
36
|
+
itemProp: u,
|
|
37
|
+
children: j,
|
|
38
|
+
...k
|
|
39
|
+
}) => {
|
|
40
|
+
const i = _(
|
|
41
|
+
() => ({
|
|
42
|
+
animated: a,
|
|
43
|
+
className: c ?? void 0,
|
|
44
|
+
...x
|
|
45
|
+
}),
|
|
46
|
+
[a, x, c]
|
|
47
|
+
), n = _(
|
|
48
|
+
() => ({
|
|
49
|
+
animationProps: r
|
|
50
|
+
}),
|
|
51
|
+
[r]
|
|
52
|
+
), d = N(
|
|
53
|
+
(e) => a === !1 || a === void 0 ? e : /* @__PURE__ */ l.jsx(g, { ...r, children: e }),
|
|
54
|
+
[a, r]
|
|
55
|
+
);
|
|
56
|
+
return /* @__PURE__ */ l.jsx(
|
|
57
|
+
v,
|
|
58
|
+
{
|
|
59
|
+
remarkPlugins: [s, y],
|
|
60
|
+
components: {
|
|
61
|
+
h1: (e) => /* @__PURE__ */ l.jsx(m, { ...i, ...n, size: "xxl", type: "h1", children: e == null ? void 0 : e.children }),
|
|
62
|
+
h2: (e) => /* @__PURE__ */ l.jsx(m, { ...i, ...n, size: "xl", type: "h2", children: e == null ? void 0 : e.children }),
|
|
63
|
+
h3: (e) => /* @__PURE__ */ l.jsx(m, { ...i, ...n, size: "lg", type: "h3", children: e == null ? void 0 : e.children }),
|
|
64
|
+
h4: (e) => /* @__PURE__ */ l.jsx(m, { ...i, ...n, size: "md", type: "h4", children: e == null ? void 0 : e.children }),
|
|
65
|
+
h5: (e) => /* @__PURE__ */ l.jsx(m, { ...i, ...n, size: "sm", type: "h5", children: e == null ? void 0 : e.children }),
|
|
66
|
+
h6: (e) => /* @__PURE__ */ l.jsx(m, { ...i, ...n, size: "xs", type: "h6", children: e == null ? void 0 : e.children }),
|
|
67
|
+
p: (e) => /* @__PURE__ */ l.jsx(
|
|
68
|
+
"p",
|
|
69
|
+
{
|
|
70
|
+
...i,
|
|
71
|
+
className: h("p", void 0, i == null ? void 0 : i.className),
|
|
72
|
+
itemProp: u,
|
|
73
|
+
children: d(e == null ? void 0 : e.children)
|
|
74
|
+
}
|
|
75
|
+
),
|
|
76
|
+
a: (e) => {
|
|
77
|
+
var t;
|
|
78
|
+
return /* @__PURE__ */ l.jsx(
|
|
79
|
+
I,
|
|
80
|
+
{
|
|
81
|
+
...i,
|
|
82
|
+
"aria-label": (t = e == null ? void 0 : e.children) == null ? void 0 : t.toString(),
|
|
83
|
+
href: (e == null ? void 0 : e.href) ?? "#",
|
|
84
|
+
children: d(e == null ? void 0 : e.children)
|
|
85
|
+
}
|
|
86
|
+
);
|
|
87
|
+
},
|
|
88
|
+
pre: (e) => /* @__PURE__ */ l.jsx(
|
|
89
|
+
"pre",
|
|
90
|
+
{
|
|
91
|
+
...i,
|
|
92
|
+
className: h("pre", void 0, i == null ? void 0 : i.className),
|
|
93
|
+
children: d(e == null ? void 0 : e.children)
|
|
94
|
+
}
|
|
95
|
+
),
|
|
96
|
+
ul: (e) => /* @__PURE__ */ l.jsx(
|
|
97
|
+
"ul",
|
|
98
|
+
{
|
|
99
|
+
...i,
|
|
100
|
+
className: h("ul", void 0, i == null ? void 0 : i.className),
|
|
101
|
+
children: d(e == null ? void 0 : e.children)
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
ol: ({ node: e }) => /* @__PURE__ */ l.jsx(
|
|
105
|
+
"ol",
|
|
106
|
+
{
|
|
107
|
+
...i,
|
|
108
|
+
className: h("ol", void 0, i == null ? void 0 : i.className),
|
|
109
|
+
children: e == null ? void 0 : e.children.map((t, R) => E(t) && t.children.length > 0 && H(t.children[0]) ? /* @__PURE__ */ l.jsxs(
|
|
110
|
+
"li",
|
|
111
|
+
{
|
|
112
|
+
...i,
|
|
113
|
+
className: h("li", void 0, i == null ? void 0 : i.className),
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ l.jsx("i", { className: h("ol__decimal"), children: R + 1 }),
|
|
116
|
+
d(/* @__PURE__ */ l.jsx("span", { children: t.children[0].value }))
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
`item-${t.children[0].value}`
|
|
120
|
+
) : null)
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
li: (e) => /* @__PURE__ */ l.jsxs(
|
|
124
|
+
"li",
|
|
125
|
+
{
|
|
126
|
+
...i,
|
|
127
|
+
className: h("li", void 0, i == null ? void 0 : i.className),
|
|
128
|
+
children: [
|
|
129
|
+
/* @__PURE__ */ l.jsx(
|
|
130
|
+
z,
|
|
131
|
+
{
|
|
132
|
+
className: h("li__icon"),
|
|
133
|
+
color: f,
|
|
134
|
+
name: "ArrowRight01Icon",
|
|
135
|
+
size: 18
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
d(/* @__PURE__ */ l.jsx("span", { children: e == null ? void 0 : e.children }))
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
)
|
|
142
|
+
},
|
|
143
|
+
...k,
|
|
144
|
+
children: j
|
|
145
|
+
}
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
);
|
|
149
|
+
L.displayName = "RichText";
|
|
150
|
+
export {
|
|
151
|
+
L as R
|
|
152
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./jsx-runtime-CITbqOLs.js"),u=require("react"),E=require("react-markdown"),N=require("remark-breaks"),v=require("remark-gfm"),f=require("./AnimatedText-Sy1jofZl.js"),r=require("./Headline-CnyLLQLB.js"),y=require("./Icon-eWdA85cf.js"),q=require("./Link-Dg7XR4uY.js"),g=require("./bem-DC5wv0dD.js"),a=require("./validations-Cnxtn28y.js"),z="gradientMove",H="fadeInKeyframe",I={"prokodo-RichText__p":"prokodo-RichText__p","prokodo-RichText__pre":"prokodo-RichText__pre","prokodo-RichText__ul":"prokodo-RichText__ul","prokodo-RichText__ol":"prokodo-RichText__ol","prokodo-RichText__li":"prokodo-RichText__li","prokodo-RichText__li__icon":"prokodo-RichText__li__icon","prokodo-RichText__ol__decimal":"prokodo-RichText__ol__decimal",gradientMove:z,fadeInKeyframe:H},c=g.create(I,"RichText");function M(l){return a.isNull(l)&&"tagName"in l}function A(l){return!a.isNull(l)&&(l==null?void 0:l.type)==="text"&&"value"in l}const R=u.memo(({className:l,animated:d,animationProps:s={},variant:_="primary",schema:m={},itemProp:j,children:o,...k})=>{const i=u.useMemo(()=>({animated:d,className:l??void 0,...m}),[d,m,l]),x=u.useMemo(()=>({animationProps:s}),[s]),h=u.useCallback(e=>d===!1||d===void 0?e:t.jsxRuntimeExports.jsx(f.AnimatedText,{...s,children:e}),[d,s]);return t.jsxRuntimeExports.jsx(E,{remarkPlugins:[v,N],components:{h1:e=>t.jsxRuntimeExports.jsx(r.Headline,{...i,...x,size:"xxl",type:"h1",children:e==null?void 0:e.children}),h2:e=>t.jsxRuntimeExports.jsx(r.Headline,{...i,...x,size:"xl",type:"h2",children:e==null?void 0:e.children}),h3:e=>t.jsxRuntimeExports.jsx(r.Headline,{...i,...x,size:"lg",type:"h3",children:e==null?void 0:e.children}),h4:e=>t.jsxRuntimeExports.jsx(r.Headline,{...i,...x,size:"md",type:"h4",children:e==null?void 0:e.children}),h5:e=>t.jsxRuntimeExports.jsx(r.Headline,{...i,...x,size:"sm",type:"h5",children:e==null?void 0:e.children}),h6:e=>t.jsxRuntimeExports.jsx(r.Headline,{...i,...x,size:"xs",type:"h6",children:e==null?void 0:e.children}),p:e=>t.jsxRuntimeExports.jsx("p",{...i,className:c("p",void 0,i==null?void 0:i.className),itemProp:j,children:h(e==null?void 0:e.children)}),a:e=>{var n;return t.jsxRuntimeExports.jsx(q.Link,{...i,"aria-label":(n=e==null?void 0:e.children)==null?void 0:n.toString(),href:(e==null?void 0:e.href)??"#",children:h(e==null?void 0:e.children)})},pre:e=>t.jsxRuntimeExports.jsx("pre",{...i,className:c("pre",void 0,i==null?void 0:i.className),children:h(e==null?void 0:e.children)}),ul:e=>t.jsxRuntimeExports.jsx("ul",{...i,className:c("ul",void 0,i==null?void 0:i.className),children:h(e==null?void 0:e.children)}),ol:({node:e})=>t.jsxRuntimeExports.jsx("ol",{...i,className:c("ol",void 0,i==null?void 0:i.className),children:e==null?void 0:e.children.map((n,T)=>M(n)&&n.children.length>0&&A(n.children[0])?t.jsxRuntimeExports.jsxs("li",{...i,className:c("li",void 0,i==null?void 0:i.className),children:[t.jsxRuntimeExports.jsx("i",{className:c("ol__decimal"),children:T+1}),h(t.jsxRuntimeExports.jsx("span",{children:n.children[0].value}))]},`item-${n.children[0].value}`):null)}),li:e=>t.jsxRuntimeExports.jsxs("li",{...i,className:c("li",void 0,i==null?void 0:i.className),children:[t.jsxRuntimeExports.jsx(y.Icon,{className:c("li__icon"),color:_,name:"ArrowRight01Icon",size:18}),h(t.jsxRuntimeExports.jsx("span",{children:e==null?void 0:e.children}))]})},...k,children:o})});R.displayName="RichText";exports.RichText=R;
|