@prokodo/ui 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/Accordion.js +65 -65
- package/dist/components/animated/Animated.js +17 -17
- package/dist/components/animatedText/AnimatedText.js +4 -4
- package/dist/components/avatar/Avatar.js +34 -34
- package/dist/components/base-link/BaseLink.js +12 -12
- package/dist/components/button/Button.js +48 -48
- package/dist/components/calendly/Calendly.js +32 -32
- package/dist/components/card/Card.js +107 -107
- package/dist/components/carousel/Carousel.js +106 -106
- package/dist/components/chip/Chip.js +26 -26
- package/dist/components/datePicker/DatePicker.js +37 -37
- package/dist/components/dialog/Dialog.js +82 -82
- package/dist/components/drawer/Drawer.js +48 -48
- package/dist/components/form/Form.js +94 -94
- package/dist/components/form/FormField.js +41 -41
- package/dist/components/form/FormResponse.js +22 -22
- package/dist/components/grid/Grid.js +8 -8
- package/dist/components/grid/GridRow.js +10 -10
- package/dist/components/headline/Headline.js +28 -28
- package/dist/components/icon/Icon.js +4 -4
- package/dist/components/image/Image.js +15 -15
- package/dist/components/image-text/ImageText.js +48 -48
- package/dist/components/input/Input.js +121 -121
- package/dist/components/inputOTP/InputOTP.js +24 -24
- package/dist/components/label/Label.js +26 -26
- package/dist/components/link/Link.js +27 -27
- package/dist/components/list/List.js +75 -75
- package/dist/components/loading/Loading.js +17 -17
- package/dist/components/lottie/Lottie.js +23 -23
- package/dist/components/map/Map.js +19 -19
- package/dist/components/post-item/PostItem.js +73 -73
- package/dist/components/post-item/PostItemAuthor.js +16 -16
- package/dist/components/post-teaser/PostTeaser.js +76 -76
- package/dist/components/post-widget/PostWidget.js +63 -63
- package/dist/components/post-widget-carousel/PostWidgetCarousel.js +67 -67
- package/dist/components/quote/Quote.js +40 -40
- package/dist/components/rich-text/RichText.js +76 -76
- package/dist/components/select/Select.js +92 -92
- package/dist/components/skeleton/Skeleton.js +8 -8
- package/dist/components/slider/Slider.js +50 -50
- package/dist/components/stepper/Stepper.js +41 -41
- package/dist/components/switch/Switch.js +32 -32
- package/dist/components/table/Table.js +31 -31
- package/dist/components/teaser/Teaser.js +55 -55
- package/dist/constants/project.js +1 -1
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Option/Option.js +23 -23
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Portal/Portal.js +22 -22
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Select/Select.js +46 -46
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Slider/Slider.js +141 -141
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Switch/Switch.js +33 -33
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/Unstable_Popup/Popup.js +31 -31
- package/dist/node_modules/.pnpm/@mui_base@5.0.0-beta.58_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0__react@19.1.0/node_modules/@mui/base/useSelect/SelectProvider.js +14 -14
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -3
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime2.js +0 -4
- package/dist/_virtual/react-jsx-runtime.development.js +0 -4
- package/dist/_virtual/react-jsx-runtime.production.js +0 -4
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js +0 -247
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.production.js +0 -35
- package/dist/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js +0 -10
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import { create as
|
|
4
|
-
import { isString as
|
|
5
|
-
import
|
|
6
|
-
import { Card as
|
|
7
|
-
import { Headline as
|
|
8
|
-
import { Link as
|
|
9
|
-
import { Image as
|
|
10
|
-
const
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { memo as f } from "react";
|
|
3
|
+
import { create as y } from "../../helpers/bem.js";
|
|
4
|
+
import { isString as i } from "../../helpers/validations.js";
|
|
5
|
+
import _ from "./PostWidget.module.scss.js";
|
|
6
|
+
import { Card as v } from "../card/Card.js";
|
|
7
|
+
import { Headline as h } from "../headline/Headline.js";
|
|
8
|
+
import { Link as p } from "../link/Link.js";
|
|
9
|
+
import { Image as S } from "../image/Image.js";
|
|
10
|
+
const r = y(_, "PostWidget"), L = f(
|
|
11
11
|
({
|
|
12
|
-
fullWidth:
|
|
13
|
-
className:
|
|
14
|
-
title:
|
|
15
|
-
listClassName:
|
|
16
|
-
contentClassName:
|
|
17
|
-
items:
|
|
18
|
-
...
|
|
19
|
-
}) => /* @__PURE__ */
|
|
12
|
+
fullWidth: c,
|
|
13
|
+
className: g,
|
|
14
|
+
title: o,
|
|
15
|
+
listClassName: m,
|
|
16
|
+
contentClassName: N,
|
|
17
|
+
items: P = [],
|
|
18
|
+
...u
|
|
19
|
+
}) => /* @__PURE__ */ e(
|
|
20
20
|
"section",
|
|
21
21
|
{
|
|
22
22
|
itemScope: !0,
|
|
23
|
-
className:
|
|
23
|
+
className: r(void 0, void 0, g),
|
|
24
24
|
itemType: "https://schema.org/ItemList",
|
|
25
|
-
children: /* @__PURE__ */ s
|
|
26
|
-
|
|
25
|
+
children: /* @__PURE__ */ s(
|
|
26
|
+
v,
|
|
27
27
|
{
|
|
28
28
|
animated: !0,
|
|
29
29
|
enableShadow: !0,
|
|
30
|
-
...
|
|
31
|
-
className:
|
|
32
|
-
contentClassName:
|
|
30
|
+
...u,
|
|
31
|
+
className: r("card__container"),
|
|
32
|
+
contentClassName: r("card", void 0, N),
|
|
33
33
|
children: [
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
o && /* @__PURE__ */ e(
|
|
35
|
+
h,
|
|
36
36
|
{
|
|
37
37
|
highlight: !0,
|
|
38
38
|
size: "md",
|
|
39
39
|
type: "h2",
|
|
40
|
-
...
|
|
41
|
-
className:
|
|
40
|
+
...o,
|
|
41
|
+
className: r("title", o == null ? void 0 : o.className),
|
|
42
42
|
itemProp: "headline",
|
|
43
43
|
variant: "secondary",
|
|
44
|
-
children:
|
|
44
|
+
children: o == null ? void 0 : o.content
|
|
45
45
|
}
|
|
46
46
|
),
|
|
47
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
48
|
"ul",
|
|
49
49
|
{
|
|
50
|
-
className:
|
|
50
|
+
className: r(
|
|
51
51
|
"list",
|
|
52
52
|
{
|
|
53
|
-
"has-fullWidth": !!
|
|
53
|
+
"has-fullWidth": !!c
|
|
54
54
|
},
|
|
55
|
-
|
|
55
|
+
m
|
|
56
56
|
),
|
|
57
|
-
children:
|
|
58
|
-
var
|
|
59
|
-
return /* @__PURE__ */
|
|
57
|
+
children: P.map((a, b) => {
|
|
58
|
+
var l, d, n, t;
|
|
59
|
+
return /* @__PURE__ */ e(
|
|
60
60
|
"li",
|
|
61
61
|
{
|
|
62
62
|
itemScope: !0,
|
|
63
63
|
itemProp: "itemListElement",
|
|
64
64
|
itemType: "https://schema.org/ListItem",
|
|
65
|
-
className:
|
|
66
|
-
"has-fullWidth": !!
|
|
65
|
+
className: r("list__item", {
|
|
66
|
+
"has-fullWidth": !!c
|
|
67
67
|
}),
|
|
68
|
-
children: /* @__PURE__ */ s
|
|
68
|
+
children: /* @__PURE__ */ s(
|
|
69
69
|
"article",
|
|
70
70
|
{
|
|
71
71
|
itemScope: !0,
|
|
72
|
-
className:
|
|
72
|
+
className: r("list__item__content"),
|
|
73
73
|
itemType: "https://schema.org/BlogPosting",
|
|
74
74
|
children: [
|
|
75
|
-
(a == null ? void 0 : a.image) && /* @__PURE__ */
|
|
76
|
-
|
|
75
|
+
(a == null ? void 0 : a.image) && /* @__PURE__ */ e("header", { children: /* @__PURE__ */ e(
|
|
76
|
+
p,
|
|
77
77
|
{
|
|
78
78
|
...a == null ? void 0 : a.redirect,
|
|
79
79
|
"aria-label": `Read more about ${a.title.content}`,
|
|
80
|
-
className:
|
|
80
|
+
className: r(
|
|
81
81
|
"image__link",
|
|
82
82
|
void 0,
|
|
83
|
-
(
|
|
83
|
+
(l = a == null ? void 0 : a.redirect) == null ? void 0 : l.className
|
|
84
84
|
),
|
|
85
|
-
children: /* @__PURE__ */
|
|
86
|
-
|
|
85
|
+
children: /* @__PURE__ */ e(
|
|
86
|
+
S,
|
|
87
87
|
{
|
|
88
88
|
...a == null ? void 0 : a.image,
|
|
89
89
|
itemProp: "image",
|
|
90
|
-
className:
|
|
90
|
+
className: r(
|
|
91
91
|
"image",
|
|
92
92
|
void 0,
|
|
93
|
-
(
|
|
93
|
+
(d = a == null ? void 0 : a.image) == null ? void 0 : d.className
|
|
94
94
|
)
|
|
95
95
|
}
|
|
96
96
|
)
|
|
97
97
|
}
|
|
98
98
|
) }),
|
|
99
|
-
/* @__PURE__ */ s
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
99
|
+
/* @__PURE__ */ s("div", { className: r("content"), children: [
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
p,
|
|
102
102
|
{
|
|
103
103
|
...a == null ? void 0 : a.redirect,
|
|
104
104
|
"aria-label": `Read more about ${a.title.content}`,
|
|
105
|
-
children: /* @__PURE__ */
|
|
106
|
-
|
|
105
|
+
children: /* @__PURE__ */ e(
|
|
106
|
+
h,
|
|
107
107
|
{
|
|
108
108
|
size: "sm",
|
|
109
109
|
type: "h3",
|
|
110
110
|
...a.title,
|
|
111
|
-
className:
|
|
111
|
+
className: r("headline", (n = a.title) == null ? void 0 : n.className),
|
|
112
112
|
itemProp: "headline",
|
|
113
113
|
variant: "inherit",
|
|
114
|
-
children: (
|
|
114
|
+
children: (t = a.title) == null ? void 0 : t.content
|
|
115
115
|
}
|
|
116
116
|
)
|
|
117
117
|
}
|
|
118
118
|
),
|
|
119
|
-
|
|
119
|
+
i(a == null ? void 0 : a.date) && (a == null ? void 0 : a.date) !== "LL" && /* @__PURE__ */ e(
|
|
120
120
|
"p",
|
|
121
121
|
{
|
|
122
122
|
"aria-label": `Published at ${a.date}`,
|
|
123
|
-
className:
|
|
123
|
+
className: r("date"),
|
|
124
124
|
itemProp: "datePublished",
|
|
125
|
-
children: /* @__PURE__ */
|
|
125
|
+
children: /* @__PURE__ */ e(
|
|
126
126
|
"time",
|
|
127
127
|
{
|
|
128
128
|
"aria-label": `Published at ${a.date}`,
|
|
129
|
-
className:
|
|
129
|
+
className: r("date"),
|
|
130
130
|
itemProp: "datePublished",
|
|
131
131
|
...a == null ? void 0 : a.dateProps,
|
|
132
132
|
children: a.date
|
|
@@ -135,8 +135,8 @@ const e = u(b, "PostWidget"), _ = P(
|
|
|
135
135
|
}
|
|
136
136
|
)
|
|
137
137
|
] }),
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
|
|
138
|
+
/* @__PURE__ */ e("meta", { content: (b + 1).toString(), itemProp: "position" }),
|
|
139
|
+
i(a == null ? void 0 : a.category) && /* @__PURE__ */ e("meta", { content: a.category, itemProp: "articleSection" })
|
|
140
140
|
]
|
|
141
141
|
}
|
|
142
142
|
)
|
|
@@ -152,7 +152,7 @@ const e = u(b, "PostWidget"), _ = P(
|
|
|
152
152
|
}
|
|
153
153
|
)
|
|
154
154
|
);
|
|
155
|
-
|
|
155
|
+
L.displayName = "PostWidget";
|
|
156
156
|
export {
|
|
157
|
-
|
|
157
|
+
L as PostWidget
|
|
158
158
|
};
|
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import { create as
|
|
4
|
-
import
|
|
5
|
-
import { Carousel as
|
|
6
|
-
import { Card as
|
|
7
|
-
import { Headline as
|
|
8
|
-
import { Link as
|
|
9
|
-
import { Image as
|
|
10
|
-
import { Button as
|
|
11
|
-
const
|
|
12
|
-
({ autoplay:
|
|
13
|
-
const
|
|
14
|
-
return
|
|
15
|
-
var
|
|
16
|
-
const e = ((
|
|
17
|
-
|
|
1
|
+
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { memo as b, useRef as v, useState as w, useLayoutEffect as C, Fragment as u } from "react";
|
|
3
|
+
import { create as P } from "../../helpers/bem.js";
|
|
4
|
+
import z from "./PostWidgetCarousel.module.scss.js";
|
|
5
|
+
import { Carousel as L } from "../carousel/Carousel.js";
|
|
6
|
+
import { Card as W } from "../card/Card.js";
|
|
7
|
+
import { Headline as h } from "../headline/Headline.js";
|
|
8
|
+
import { Link as _ } from "../link/Link.js";
|
|
9
|
+
import { Image as k } from "../image/Image.js";
|
|
10
|
+
import { Button as p } from "../button/Button.js";
|
|
11
|
+
const r = P(z, "PostWidgetCarousel"), x = b(
|
|
12
|
+
({ autoplay: N, className: g, title: o, items: i = [], ...f }) => {
|
|
13
|
+
const s = v(null), [y, d] = w(0);
|
|
14
|
+
return C(() => {
|
|
15
|
+
var c, n;
|
|
16
|
+
const e = ((n = (c = s == null ? void 0 : s.current) == null ? void 0 : c.carouselContainer) == null ? void 0 : n.offsetWidth) ?? 0;
|
|
17
|
+
d(e);
|
|
18
18
|
const t = () => {
|
|
19
|
-
|
|
19
|
+
d(e);
|
|
20
20
|
};
|
|
21
21
|
return window.addEventListener("resize", t), () => {
|
|
22
22
|
window.removeEventListener("resize", t);
|
|
23
23
|
};
|
|
24
|
-
}, [
|
|
24
|
+
}, [s]), /* @__PURE__ */ a(
|
|
25
25
|
"section",
|
|
26
26
|
{
|
|
27
27
|
itemScope: !0,
|
|
28
|
-
className:
|
|
28
|
+
className: r(void 0, void 0, g),
|
|
29
29
|
itemType: "https://schema.org/ItemList",
|
|
30
|
-
children: /* @__PURE__ */
|
|
31
|
-
|
|
30
|
+
children: /* @__PURE__ */ l(
|
|
31
|
+
W,
|
|
32
32
|
{
|
|
33
33
|
animated: !0,
|
|
34
34
|
enableShadow: !0,
|
|
35
|
-
...
|
|
36
|
-
className:
|
|
37
|
-
contentClassName:
|
|
35
|
+
...f,
|
|
36
|
+
className: r("card__container"),
|
|
37
|
+
contentClassName: r("card"),
|
|
38
38
|
variant: "white",
|
|
39
39
|
children: [
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
o && /* @__PURE__ */ a(
|
|
41
|
+
h,
|
|
42
42
|
{
|
|
43
43
|
highlight: !0,
|
|
44
44
|
size: "md",
|
|
45
45
|
type: "h2",
|
|
46
|
-
...
|
|
47
|
-
className:
|
|
46
|
+
...o,
|
|
47
|
+
className: r("title", o == null ? void 0 : o.className),
|
|
48
48
|
itemProp: "headline",
|
|
49
49
|
variant: "secondary",
|
|
50
|
-
children:
|
|
50
|
+
children: o == null ? void 0 : o.content
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
|
-
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
53
|
+
i.length > 0 && /* @__PURE__ */ l(u, { children: [
|
|
54
|
+
/* @__PURE__ */ a(
|
|
55
|
+
L,
|
|
56
56
|
{
|
|
57
|
-
ref:
|
|
58
|
-
autoplay:
|
|
59
|
-
className:
|
|
60
|
-
classNameDots:
|
|
61
|
-
classNameItem:
|
|
57
|
+
ref: s,
|
|
58
|
+
autoplay: N,
|
|
59
|
+
className: r("carousel"),
|
|
60
|
+
classNameDots: r("carousel__dots"),
|
|
61
|
+
classNameItem: r("carousel__item"),
|
|
62
62
|
itemsToShow: 1,
|
|
63
|
-
children:
|
|
64
|
-
var
|
|
63
|
+
children: i.map((e) => {
|
|
64
|
+
var c, n, m;
|
|
65
65
|
const t = `carousel-item-${e.title}`;
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
(e == null ? void 0 : e.image) && /* @__PURE__ */
|
|
68
|
-
|
|
66
|
+
return /* @__PURE__ */ l(u, { children: [
|
|
67
|
+
(e == null ? void 0 : e.image) && /* @__PURE__ */ a(
|
|
68
|
+
_,
|
|
69
69
|
{
|
|
70
70
|
"aria-label": `Read more about ${e.title.content}`,
|
|
71
71
|
...e == null ? void 0 : e.redirect,
|
|
72
|
-
className:
|
|
72
|
+
className: r(
|
|
73
73
|
"carousel__item__image__link",
|
|
74
74
|
void 0,
|
|
75
|
-
(
|
|
75
|
+
(c = e == null ? void 0 : e.redirect) == null ? void 0 : c.className
|
|
76
76
|
),
|
|
77
77
|
style: {
|
|
78
|
-
width:
|
|
78
|
+
width: y
|
|
79
79
|
},
|
|
80
|
-
children: /* @__PURE__ */
|
|
81
|
-
|
|
80
|
+
children: /* @__PURE__ */ a(
|
|
81
|
+
k,
|
|
82
82
|
{
|
|
83
|
-
className:
|
|
83
|
+
className: r("carousel__item__image"),
|
|
84
84
|
...e.image
|
|
85
85
|
},
|
|
86
86
|
t
|
|
87
87
|
)
|
|
88
88
|
}
|
|
89
89
|
),
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
|
|
90
|
+
/* @__PURE__ */ a(
|
|
91
|
+
_,
|
|
92
92
|
{
|
|
93
93
|
...e == null ? void 0 : e.redirect,
|
|
94
94
|
"aria-label": `Read more about ${e.title.content}`,
|
|
95
|
-
className:
|
|
96
|
-
children: /* @__PURE__ */
|
|
97
|
-
|
|
95
|
+
className: r("carousel__item__link"),
|
|
96
|
+
children: /* @__PURE__ */ a(
|
|
97
|
+
h,
|
|
98
98
|
{
|
|
99
99
|
size: "md",
|
|
100
100
|
type: "h3",
|
|
101
101
|
...e.title,
|
|
102
|
-
className:
|
|
102
|
+
className: r("headline", (n = e.title) == null ? void 0 : n.className),
|
|
103
103
|
itemProp: "headline",
|
|
104
104
|
variant: "inherit",
|
|
105
|
-
children: (
|
|
105
|
+
children: (m = e.title) == null ? void 0 : m.content
|
|
106
106
|
}
|
|
107
107
|
)
|
|
108
108
|
}
|
|
@@ -111,12 +111,12 @@ const s = v(w, "PostWidgetCarousel"), L = f(
|
|
|
111
111
|
})
|
|
112
112
|
}
|
|
113
113
|
),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
|
|
114
|
+
/* @__PURE__ */ l("div", { className: r("carousel__buttons"), children: [
|
|
115
|
+
/* @__PURE__ */ a(
|
|
116
|
+
p,
|
|
117
117
|
{
|
|
118
118
|
"aria-label": "Last category",
|
|
119
|
-
className:
|
|
119
|
+
className: r("carousel__button"),
|
|
120
120
|
color: "primary",
|
|
121
121
|
iconProps: {
|
|
122
122
|
name: "ArrowLeft01Icon",
|
|
@@ -124,15 +124,15 @@ const s = v(w, "PostWidgetCarousel"), L = f(
|
|
|
124
124
|
},
|
|
125
125
|
onClick: () => {
|
|
126
126
|
var e;
|
|
127
|
-
return (e =
|
|
127
|
+
return (e = s.current) == null ? void 0 : e.slidePrev();
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
),
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
|
|
131
|
+
/* @__PURE__ */ a(
|
|
132
|
+
p,
|
|
133
133
|
{
|
|
134
134
|
"aria-label": "Next category",
|
|
135
|
-
className:
|
|
135
|
+
className: r("carousel__button"),
|
|
136
136
|
color: "primary",
|
|
137
137
|
iconProps: {
|
|
138
138
|
name: "ArrowRight01Icon",
|
|
@@ -140,7 +140,7 @@ const s = v(w, "PostWidgetCarousel"), L = f(
|
|
|
140
140
|
},
|
|
141
141
|
onClick: () => {
|
|
142
142
|
var e;
|
|
143
|
-
return (e =
|
|
143
|
+
return (e = s.current) == null ? void 0 : e.slideNext();
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
)
|
|
@@ -153,7 +153,7 @@ const s = v(w, "PostWidgetCarousel"), L = f(
|
|
|
153
153
|
);
|
|
154
154
|
}
|
|
155
155
|
);
|
|
156
|
-
|
|
156
|
+
x.displayName = "PostWidgetCarousel";
|
|
157
157
|
export {
|
|
158
|
-
|
|
158
|
+
x as PostWidgetCarousel
|
|
159
159
|
};
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { memo as
|
|
3
|
-
import { create as
|
|
4
|
-
import { isString as
|
|
5
|
-
import
|
|
6
|
-
import { Headline as
|
|
7
|
-
import { Card as
|
|
8
|
-
import { RichText as
|
|
9
|
-
import { Avatar as
|
|
10
|
-
const
|
|
11
|
-
({ className:
|
|
1
|
+
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { memo as p } from "react";
|
|
3
|
+
import { create as d } from "../../helpers/bem.js";
|
|
4
|
+
import { isString as h } from "../../helpers/validations.js";
|
|
5
|
+
import l from "./Quote.module.scss.js";
|
|
6
|
+
import { Headline as r } from "../headline/Headline.js";
|
|
7
|
+
import { Card as _ } from "../card/Card.js";
|
|
8
|
+
import { RichText as N } from "../rich-text/RichText.js";
|
|
9
|
+
import { Avatar as f } from "../avatar/Avatar.js";
|
|
10
|
+
const e = d(l, "Quote"), v = p(
|
|
11
|
+
({ className: t, variant: c = "primary", title: i, subTitle: m, content: s, author: a }) => /* @__PURE__ */ n(
|
|
12
12
|
"figure",
|
|
13
13
|
{
|
|
14
14
|
itemScope: !0,
|
|
15
|
-
className:
|
|
15
|
+
className: e(void 0, void 0, t),
|
|
16
16
|
itemType: "https://schema.org/Quotation",
|
|
17
17
|
children: [
|
|
18
|
-
m && /* @__PURE__ */
|
|
19
|
-
|
|
18
|
+
m && /* @__PURE__ */ o(
|
|
19
|
+
r,
|
|
20
20
|
{
|
|
21
21
|
highlight: !0,
|
|
22
|
-
className:
|
|
22
|
+
className: e("sub_headline", void 0, m == null ? void 0 : m.className),
|
|
23
23
|
size: "sm",
|
|
24
24
|
type: "h3",
|
|
25
25
|
...m,
|
|
26
|
-
variant: m.variant ??
|
|
26
|
+
variant: m.variant ?? c,
|
|
27
27
|
children: m == null ? void 0 : m.content
|
|
28
28
|
}
|
|
29
29
|
),
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
i && /* @__PURE__ */ o(
|
|
31
|
+
r,
|
|
32
32
|
{
|
|
33
|
-
className:
|
|
33
|
+
className: e("headline", void 0, i == null ? void 0 : i.className),
|
|
34
34
|
size: "lg",
|
|
35
35
|
type: "h2",
|
|
36
|
-
...
|
|
37
|
-
children:
|
|
36
|
+
...i,
|
|
37
|
+
children: i.content
|
|
38
38
|
}
|
|
39
39
|
),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
|
|
40
|
+
/* @__PURE__ */ n(
|
|
41
|
+
_,
|
|
42
42
|
{
|
|
43
43
|
animated: !0,
|
|
44
44
|
highlight: !0,
|
|
45
|
-
className:
|
|
46
|
-
contentClassName:
|
|
45
|
+
className: e("card__container"),
|
|
46
|
+
contentClassName: e("card"),
|
|
47
47
|
customAnimation: "left-right",
|
|
48
48
|
variant: "white",
|
|
49
49
|
children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
|
|
50
|
+
/* @__PURE__ */ o("blockquote", { className: e("quote"), children: /* @__PURE__ */ o(N, { className: e("quote__content"), itemProp: "text", children: s }) }),
|
|
51
|
+
a && /* @__PURE__ */ o("figcaption", { children: /* @__PURE__ */ n(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
54
|
itemScope: !0,
|
|
55
|
-
className:
|
|
55
|
+
className: e("caption"),
|
|
56
56
|
itemType: "https://schema.org/Person",
|
|
57
57
|
children: [
|
|
58
|
-
(
|
|
59
|
-
|
|
58
|
+
(a == null ? void 0 : a.avatar) && /* @__PURE__ */ o(
|
|
59
|
+
f,
|
|
60
60
|
{
|
|
61
|
-
className:
|
|
62
|
-
...
|
|
63
|
-
variant:
|
|
61
|
+
className: e("caption__avatar"),
|
|
62
|
+
...a.avatar,
|
|
63
|
+
variant: c
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
66
|
+
/* @__PURE__ */ n("div", { className: e("caption__author"), children: [
|
|
67
|
+
/* @__PURE__ */ o("span", { className: e("caption__author__name"), itemProp: "name", children: a.name }),
|
|
68
|
+
h(a == null ? void 0 : a.position) && /* @__PURE__ */ o(
|
|
69
69
|
"span",
|
|
70
70
|
{
|
|
71
|
-
className:
|
|
71
|
+
className: e("caption__author__position"),
|
|
72
72
|
itemProp: "jobTitle",
|
|
73
|
-
children:
|
|
73
|
+
children: a.position
|
|
74
74
|
}
|
|
75
75
|
)
|
|
76
76
|
] })
|
|
@@ -84,7 +84,7 @@ const a = p(h, "Quote"), j = t(
|
|
|
84
84
|
}
|
|
85
85
|
)
|
|
86
86
|
);
|
|
87
|
-
|
|
87
|
+
v.displayName = "Quote";
|
|
88
88
|
export {
|
|
89
|
-
|
|
89
|
+
v as Quote
|
|
90
90
|
};
|