@prokodo/ui 0.1.15 → 1.0.0
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/LICENSE +187 -26
- package/NOTICE +24 -0
- package/README.md +32 -302
- package/dist/components/RTE/RTE.css +180 -68
- package/dist/components/RTE/RTE.module.css +180 -68
- package/dist/components/RTE/RTE.module.scss.js +10 -0
- package/dist/components/RTE/RTE.view.js +5 -1
- package/dist/components/accordion/Accordion.css +120 -67
- package/dist/components/accordion/Accordion.module.css +120 -67
- package/dist/components/accordion/Accordion.module.scss.js +12 -5
- package/dist/components/accordion/Accordion.view.js +3 -3
- package/dist/components/autocomplete/Autocomplete.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.scss.js +11 -4
- package/dist/components/autocomplete/Autocomplete.view.js +3 -1
- package/dist/components/avatar/Avatar.css +11 -8
- package/dist/components/avatar/Avatar.module.css +11 -8
- package/dist/components/avatar/Avatar.module.scss.js +1 -0
- package/dist/components/avatar/Avatar.view.js +5 -5
- package/dist/components/button/Button.client.js +12 -16
- package/dist/components/button/Button.css +85 -137
- package/dist/components/button/Button.module.css +85 -137
- package/dist/components/button/Button.module.scss.js +15 -19
- package/dist/components/button/Button.view.js +6 -2
- package/dist/components/calendly/Calendly.css +132 -0
- package/dist/components/calendly/Calendly.module.css +132 -0
- package/dist/components/calendly/Calendly.module.scss.js +6 -0
- package/dist/components/calendly/Calendly.view.js +12 -6
- package/dist/components/card/Card.client.js +6 -1
- package/dist/components/card/Card.css +67 -32
- package/dist/components/card/Card.module.css +67 -32
- package/dist/components/card/Card.module.scss.js +8 -2
- package/dist/components/card/Card.view.js +3 -3
- package/dist/components/carousel/Carousel.client.js +2 -4
- package/dist/components/carousel/Carousel.css +8 -4
- package/dist/components/carousel/Carousel.module.css +8 -4
- package/dist/components/checkbox/Checkbox.css +100 -79
- package/dist/components/checkbox/Checkbox.module.css +100 -79
- package/dist/components/checkbox/Checkbox.module.scss.js +11 -4
- package/dist/components/checkbox/Checkbox.view.js +3 -1
- package/dist/components/checkbox-group/CheckboxGroup.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +8 -0
- package/dist/components/checkbox-group/CheckboxGroup.view.js +3 -1
- package/dist/components/chip/Chip.css +185 -61
- package/dist/components/chip/Chip.module.css +185 -61
- package/dist/components/chip/Chip.module.scss.js +13 -17
- package/dist/components/chip/Chip.view.js +3 -4
- package/dist/components/datePicker/DatePicker.client.js +211 -66
- package/dist/components/datePicker/DatePicker.css +940 -0
- package/dist/components/datePicker/DatePicker.module.css +940 -0
- package/dist/components/datePicker/DatePicker.module.scss.js +62 -0
- package/dist/components/datePicker/DatePicker.server.js +31 -1
- package/dist/components/datePicker/DatePicker.utils.js +103 -0
- package/dist/components/datePicker/DatePicker.view.js +113 -41
- package/dist/components/datePicker/DatePickerDialog.view.js +291 -0
- package/dist/components/dialog/Dialog.css +107 -132
- package/dist/components/dialog/Dialog.module.css +107 -132
- package/dist/components/dialog/Dialog.module.scss.js +13 -8
- package/dist/components/drawer/Drawer.css +8 -8
- package/dist/components/drawer/Drawer.module.css +8 -8
- package/dist/components/dynamic-list/DynamicList.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.scss.js +1 -0
- package/dist/components/dynamic-list/DynamicList.view.js +78 -46
- package/dist/components/form/Form.view.js +3 -3
- package/dist/components/form/FormField.client.js +51 -2
- package/dist/components/form/FormField.server.js +10 -4
- package/dist/components/form/FormResponse.js +2 -2
- package/dist/components/grid/Grid.css +1 -1
- package/dist/components/grid/Grid.module.css +1 -1
- package/dist/components/headline/Headline.css +16 -16
- package/dist/components/headline/Headline.js +5 -6
- package/dist/components/headline/Headline.module.css +16 -16
- package/dist/components/headline/Headline.module.scss.js +1 -1
- package/dist/components/headline/Headline.variants.js +4 -1
- package/dist/components/icon/Icon.css +14 -14
- package/dist/components/icon/Icon.module.css +14 -14
- package/dist/components/image/Image.css +4 -3
- package/dist/components/image/Image.module.css +4 -3
- package/dist/components/image-text/ImageText.css +43 -14
- package/dist/components/image-text/ImageText.js +61 -53
- package/dist/components/image-text/ImageText.module.css +43 -14
- package/dist/components/image-text/ImageText.module.scss.js +11 -2
- package/dist/components/input/Input.css +197 -115
- package/dist/components/input/Input.module.css +197 -115
- package/dist/components/input/Input.module.scss.js +19 -3
- package/dist/components/input/Input.view.js +87 -57
- package/dist/components/inputOTP/InputOTP.client.js +165 -0
- package/dist/components/inputOTP/InputOTP.css +155 -7
- package/dist/components/inputOTP/InputOTP.js +10 -195
- package/dist/components/inputOTP/InputOTP.lazy.js +12 -0
- package/dist/components/inputOTP/InputOTP.module.css +155 -7
- package/dist/components/inputOTP/InputOTP.module.scss.js +14 -0
- package/dist/components/inputOTP/InputOTP.server.js +32 -0
- package/dist/components/inputOTP/InputOTP.view.js +117 -0
- package/dist/components/label/Label.css +33 -14
- package/dist/components/label/Label.js +37 -35
- package/dist/components/label/Label.module.css +33 -14
- package/dist/components/label/Label.module.scss.js +9 -2
- package/dist/components/link/Link.css +13 -13
- package/dist/components/link/Link.module.css +13 -13
- package/dist/components/link/Link.view.js +14 -12
- package/dist/components/list/List.css +71 -32
- package/dist/components/list/List.js +25 -8
- package/dist/components/list/List.module.css +71 -32
- package/dist/components/list/List.module.scss.js +1 -1
- package/dist/components/loading/Loading.view.js +22 -2
- package/dist/components/lottie/Lottie.css +16 -0
- package/dist/components/lottie/Lottie.module.css +16 -0
- package/dist/components/lottie/Lottie.module.scss.js +6 -2
- package/dist/components/map/Map.css +130 -0
- package/dist/components/map/Map.js +5 -2
- package/dist/components/map/Map.module.css +130 -0
- package/dist/components/map/Map.module.scss.js +6 -0
- package/dist/components/pagination/Pagination.css +127 -11
- package/dist/components/pagination/Pagination.module.css +127 -11
- package/dist/components/pagination/Pagination.module.scss.js +12 -4
- package/dist/components/pagination/Pagination.view.js +13 -1
- package/dist/components/post-item/PostItem.css +16 -16
- package/dist/components/post-item/PostItem.module.css +16 -16
- package/dist/components/post-item/PostItem.view.js +14 -5
- package/dist/components/post-teaser/PostTeaser.css +13 -13
- package/dist/components/post-teaser/PostTeaser.module.css +13 -13
- package/dist/components/post-teaser/PostTeaser.view.js +10 -3
- package/dist/components/post-widget/PostWidget.css +6 -8
- package/dist/components/post-widget/PostWidget.module.css +6 -8
- package/dist/components/post-widget/PostWidget.view.js +12 -5
- package/dist/components/post-widget-carousel/PostWidgetCarousel.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.module.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +30 -13
- package/dist/components/progressBar/ProgressBar.css +4 -4
- package/dist/components/progressBar/ProgressBar.module.css +4 -4
- package/dist/components/progressBar/ProgressBar.view.js +2 -2
- package/dist/components/quote/Quote.css +21 -6
- package/dist/components/quote/Quote.js +5 -5
- package/dist/components/quote/Quote.module.css +21 -6
- package/dist/components/quote/Quote.module.scss.js +5 -0
- package/dist/components/rating/Rating.css +34 -21
- package/dist/components/rating/Rating.module.css +34 -21
- package/dist/components/rating/Rating.module.scss.js +8 -0
- package/dist/components/rating/Rating.view.js +4 -2
- package/dist/components/rich-text/RichText.client.js +3 -3
- package/dist/components/rich-text/RichText.css +47 -31
- package/dist/components/rich-text/RichText.module.css +47 -31
- package/dist/components/rich-text/RichText.server.js +1 -1
- package/dist/components/select/Select.client.js +154 -1
- package/dist/components/select/Select.css +542 -221
- package/dist/components/select/Select.module.css +542 -221
- package/dist/components/select/Select.module.scss.js +57 -14
- package/dist/components/select/Select.view.js +40 -14
- package/dist/components/sidenav/SideNav.client.js +24 -1
- package/dist/components/sidenav/SideNav.css +89 -21
- package/dist/components/sidenav/SideNav.module.css +89 -21
- package/dist/components/sidenav/SideNav.module.scss.js +6 -1
- package/dist/components/sidenav/SideNav.view.js +69 -14
- package/dist/components/skeleton/Skeleton.css +7 -7
- package/dist/components/skeleton/Skeleton.module.css +7 -7
- package/dist/components/slider/Slider.css +177 -112
- package/dist/components/slider/Slider.module.css +177 -112
- package/dist/components/slider/Slider.module.scss.js +11 -2
- package/dist/components/slider/Slider.view.js +113 -101
- package/dist/components/snackbar/Snackbar.css +125 -64
- package/dist/components/snackbar/Snackbar.module.css +125 -64
- package/dist/components/snackbar/Snackbar.module.scss.js +11 -13
- package/dist/components/snackbar/Snackbar.view.js +2 -2
- package/dist/components/stepper/Stepper.client.js +21 -6
- package/dist/components/stepper/Stepper.css +46 -11
- package/dist/components/stepper/Stepper.module.css +46 -11
- package/dist/components/stepper/Stepper.module.scss.js +7 -0
- package/dist/components/stepper/Stepper.server.js +2 -0
- package/dist/components/stepper/Stepper.view.js +6 -1
- package/dist/components/switch/Switch.css +108 -84
- package/dist/components/switch/Switch.module.css +108 -84
- package/dist/components/switch/Switch.module.scss.js +14 -12
- package/dist/components/switch/Switch.view.js +9 -8
- package/dist/components/table/Table.css +19 -14
- package/dist/components/table/Table.module.css +19 -14
- package/dist/components/tabs/Tabs.css +53 -27
- package/dist/components/tabs/Tabs.module.css +53 -27
- package/dist/components/tabs/Tabs.module.scss.js +7 -2
- package/dist/components/tabs/Tabs.view.js +4 -2
- package/dist/components/teaser/Teaser.css +5 -5
- package/dist/components/teaser/Teaser.js +4 -4
- package/dist/components/teaser/Teaser.module.css +5 -5
- package/dist/components/tooltip/Tooltip.client.js +14 -4
- package/dist/components/tooltip/Tooltip.css +46 -9
- package/dist/components/tooltip/Tooltip.module.css +46 -9
- package/dist/components/tooltip/Tooltip.module.scss.js +5 -1
- package/dist/components/tooltip/Tooltip.view.js +6 -1
- package/dist/constants/project.js +1 -1
- package/dist/theme.css +3269 -1588
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/RTE/RTE.d.ts +5 -0
- package/dist/types/components/RTE/RTE.lazy.d.ts +5 -0
- package/dist/types/components/RTE/RTE.view.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.lazy.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.model.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.view.d.ts +1 -1
- package/dist/types/components/autocomplete/Autocomplete.model.d.ts +2 -0
- package/dist/types/components/autocomplete/Autocomplete.view.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.lazy.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.model.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.view.d.ts +1 -1
- package/dist/types/components/calendly/Calendly.view.d.ts +1 -1
- package/dist/types/components/card/Card.model.d.ts +1 -1
- package/dist/types/components/card/Card.view.d.ts +1 -1
- package/dist/types/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.lazy.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.model.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.view.d.ts +1 -1
- package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +2 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +1 -1
- package/dist/types/components/datePicker/DatePicker.model.d.ts +70 -1
- package/dist/types/components/datePicker/DatePicker.utils.d.ts +10 -0
- package/dist/types/components/datePicker/DatePicker.view.d.ts +7 -4
- package/dist/types/components/datePicker/DatePickerDialog.view.d.ts +4 -0
- package/dist/types/components/dynamic-list/DynamicList.model.d.ts +2 -0
- package/dist/types/components/dynamic-list/DynamicList.view.d.ts +1 -1
- package/dist/types/components/form/Form.d.ts +1 -1
- package/dist/types/components/form/Form.lazy.d.ts +1 -1
- package/dist/types/components/form/Form.model.d.ts +19 -4
- package/dist/types/components/form/FormField.client.d.ts +2 -2
- package/dist/types/components/form/FormField.d.ts +1 -1
- package/dist/types/components/form/FormField.lazy.d.ts +1 -1
- package/dist/types/components/form/FormField.server.d.ts +2 -2
- package/dist/types/components/headline/Headline.model.d.ts +1 -1
- package/dist/types/components/input/Input.model.d.ts +8 -1
- package/dist/types/components/input/Input.view.d.ts +1 -1
- package/dist/types/components/inputOTP/InputOTP.client.d.ts +4 -0
- package/dist/types/components/inputOTP/InputOTP.d.ts +10 -3
- package/dist/types/components/inputOTP/InputOTP.lazy.d.ts +11 -0
- package/dist/types/components/inputOTP/InputOTP.model.d.ts +10 -0
- package/dist/types/components/inputOTP/InputOTP.server.d.ts +3 -0
- package/dist/types/components/inputOTP/InputOTP.view.d.ts +3 -0
- package/dist/types/components/inputOTP/index.d.ts +1 -1
- package/dist/types/components/label/Label.model.d.ts +2 -0
- package/dist/types/components/link/Link.model.d.ts +1 -1
- package/dist/types/components/link/Link.view.d.ts +1 -1
- package/dist/types/components/list/List.d.ts +1 -1
- package/dist/types/components/list/List.model.d.ts +14 -5
- package/dist/types/components/list/index.d.ts +1 -1
- package/dist/types/components/loading/Loading.model.d.ts +2 -0
- package/dist/types/components/loading/index.d.ts +1 -1
- package/dist/types/components/pagination/Pagination.model.d.ts +2 -0
- package/dist/types/components/pagination/Pagination.view.d.ts +1 -1
- package/dist/types/components/post-item/PostItem.model.d.ts +2 -1
- package/dist/types/components/post-teaser/PostTeaser.model.d.ts +2 -1
- package/dist/types/components/post-widget/PostWidget.view.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.lazy.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.model.d.ts +3 -2
- package/dist/types/components/progressBar/ProgressBar.view.d.ts +1 -1
- package/dist/types/components/progressBar/index.d.ts +1 -1
- package/dist/types/components/quote/Quote.model.d.ts +1 -1
- package/dist/types/components/rating/Rating.model.d.ts +2 -0
- package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.lazy.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.model.d.ts +1 -1
- package/dist/types/components/select/Select.model.d.ts +2 -0
- package/dist/types/components/select/Select.view.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.client.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.model.d.ts +16 -2
- package/dist/types/components/sidenav/SideNav.view.d.ts +1 -1
- package/dist/types/components/slider/Slider.model.d.ts +2 -0
- package/dist/types/components/snackbar/Snackbar.model.d.ts +3 -2
- package/dist/types/components/snackbar/Snackbar.view.d.ts +3 -2
- package/dist/types/components/snackbar/index.d.ts +1 -1
- package/dist/types/components/stepper/Stepper.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.lazy.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.model.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.server.d.ts +1 -1
- package/dist/types/components/switch/Switch.d.ts +2 -2
- package/dist/types/components/switch/Switch.lazy.d.ts +2 -2
- package/dist/types/components/switch/Switch.model.d.ts +3 -4
- package/dist/types/components/tabs/Tabs.model.d.ts +2 -0
- package/dist/types/components/tabs/Tabs.view.d.ts +1 -1
- package/dist/types/components/teaser/Teaser.model.d.ts +1 -1
- package/dist/types/components/tooltip/Tooltip.model.d.ts +2 -0
- package/package.json +37 -22
|
@@ -12,6 +12,7 @@ function PaginationView({
|
|
|
12
12
|
totalPages,
|
|
13
13
|
disabled,
|
|
14
14
|
isPending,
|
|
15
|
+
color,
|
|
15
16
|
siblingCount = 1,
|
|
16
17
|
boundaryCount = 1,
|
|
17
18
|
onPrev,
|
|
@@ -33,14 +34,23 @@ function PaginationView({
|
|
|
33
34
|
return /* @__PURE__ */ jsxs(
|
|
34
35
|
"nav",
|
|
35
36
|
{
|
|
37
|
+
"aria-busy": isPending || void 0,
|
|
36
38
|
"aria-label": (t == null ? void 0 : t.pagination) ?? "Pagination",
|
|
37
|
-
className: bem(
|
|
39
|
+
className: bem(
|
|
40
|
+
void 0,
|
|
41
|
+
{
|
|
42
|
+
"is-pending": Boolean(isPending),
|
|
43
|
+
[`color-${color}`]: Boolean(color)
|
|
44
|
+
},
|
|
45
|
+
className
|
|
46
|
+
),
|
|
38
47
|
children: [
|
|
39
48
|
/* @__PURE__ */ jsx(
|
|
40
49
|
Button,
|
|
41
50
|
{
|
|
42
51
|
"aria-label": (t == null ? void 0 : t.prev) ?? "Previous page",
|
|
43
52
|
className: bem("btn"),
|
|
53
|
+
color,
|
|
44
54
|
disabled: isDisabled || safePage <= 1,
|
|
45
55
|
iconProps: { name: "ArrowLeft01Icon" },
|
|
46
56
|
variant: "outlined",
|
|
@@ -67,6 +77,7 @@ function PaginationView({
|
|
|
67
77
|
{
|
|
68
78
|
"aria-current": isActive ? "page" : void 0,
|
|
69
79
|
className: bem("page", { active: isActive }),
|
|
80
|
+
color,
|
|
70
81
|
disabled: isDisabled || isActive,
|
|
71
82
|
title: (_a = it.value) == null ? void 0 : _a.toString(),
|
|
72
83
|
variant: isActive ? "outlined" : "text",
|
|
@@ -82,6 +93,7 @@ function PaginationView({
|
|
|
82
93
|
{
|
|
83
94
|
"aria-label": (t == null ? void 0 : t.next) ?? "Next page",
|
|
84
95
|
className: bem("btn"),
|
|
96
|
+
color,
|
|
85
97
|
disabled: isDisabled || safePage >= safeTotal,
|
|
86
98
|
iconProps: { name: "ArrowRight01Icon" },
|
|
87
99
|
variant: "outlined",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* stylelint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Calculates a rem-based value by a given pixel size.
|
|
@@ -129,27 +128,29 @@
|
|
|
129
128
|
/* Mobile: stacked, image on top via order */
|
|
130
129
|
display: flex;
|
|
131
130
|
flex-direction: column-reverse;
|
|
132
|
-
gap:
|
|
131
|
+
gap: var(--pk-space-lg);
|
|
133
132
|
align-items: stretch;
|
|
134
133
|
}
|
|
135
134
|
@media screen and (min-width: 960px) {
|
|
136
135
|
.prokodo-PostItem__grid {
|
|
137
136
|
flex-direction: row;
|
|
138
137
|
align-items: flex-start;
|
|
139
|
-
gap:
|
|
138
|
+
gap: var(--pk-space-xl);
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
.prokodo-PostItem__media {
|
|
143
142
|
order: 1;
|
|
144
143
|
width: 100%;
|
|
145
144
|
min-width: 0;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
146
147
|
}
|
|
147
148
|
@media screen and (min-width: 960px) {
|
|
148
149
|
.prokodo-PostItem__media {
|
|
149
150
|
order: 0;
|
|
150
151
|
flex: 0 1 33.3333%;
|
|
151
152
|
max-width: 33.333%;
|
|
152
|
-
min-width: 0;
|
|
153
|
+
min-width: 0;
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
.prokodo-PostItem__main {
|
|
@@ -179,7 +180,7 @@
|
|
|
179
180
|
align-items: center;
|
|
180
181
|
}
|
|
181
182
|
.prokodo-PostItem__date {
|
|
182
|
-
color: var(--color-
|
|
183
|
+
color: var(--pk-color-muted);
|
|
183
184
|
font-weight: 400;
|
|
184
185
|
font-size: 1.125rem;
|
|
185
186
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -201,8 +202,8 @@
|
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
.prokodo-PostItem__read__count {
|
|
204
|
-
padding-left:
|
|
205
|
-
color: var(--color-
|
|
205
|
+
padding-left: var(--pk-space-md);
|
|
206
|
+
color: var(--pk-color-muted);
|
|
206
207
|
font-weight: 400;
|
|
207
208
|
font-size: 1.125rem;
|
|
208
209
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -226,8 +227,8 @@
|
|
|
226
227
|
.prokodo-PostItem__content {
|
|
227
228
|
display: flex;
|
|
228
229
|
align-items: center;
|
|
229
|
-
min-width: 0;
|
|
230
|
-
overflow-wrap: anywhere;
|
|
230
|
+
min-width: 0;
|
|
231
|
+
overflow-wrap: anywhere;
|
|
231
232
|
font-weight: 400;
|
|
232
233
|
font-size: 1.125rem;
|
|
233
234
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -249,17 +250,16 @@
|
|
|
249
250
|
}
|
|
250
251
|
}
|
|
251
252
|
.prokodo-PostItem__content__paragraph {
|
|
252
|
-
color: var(--color-
|
|
253
|
+
color: var(--pk-color-muted);
|
|
253
254
|
display: -webkit-box;
|
|
254
255
|
-webkit-line-clamp: 3;
|
|
255
256
|
-webkit-box-orient: vertical;
|
|
256
257
|
overflow: hidden;
|
|
257
258
|
}
|
|
258
259
|
.prokodo-PostItem__content__paragraph > p {
|
|
259
|
-
margin:
|
|
260
|
+
margin: var(--pk-space-sm) var(--pk-space-xs);
|
|
260
261
|
}
|
|
261
262
|
.prokodo-PostItem__image {
|
|
262
|
-
min-height: 300px;
|
|
263
263
|
min-height: 300px;
|
|
264
264
|
-o-object-fit: cover;
|
|
265
265
|
object-fit: cover;
|
|
@@ -268,16 +268,16 @@
|
|
|
268
268
|
padding: 0;
|
|
269
269
|
}
|
|
270
270
|
.prokodo-PostItem__image__wrapper {
|
|
271
|
+
flex: 1 1;
|
|
271
272
|
width: 100%;
|
|
272
|
-
min-width: 300px;
|
|
273
273
|
min-height: 300px;
|
|
274
|
-
border-radius:
|
|
274
|
+
border-radius: var(--pk-radius-lg);
|
|
275
275
|
overflow: hidden;
|
|
276
|
-
transform: none;
|
|
276
|
+
transform: none;
|
|
277
277
|
}
|
|
278
278
|
.prokodo-PostItem__button {
|
|
279
279
|
width: 100%;
|
|
280
|
-
margin-top:
|
|
280
|
+
margin-top: var(--pk-space-lg);
|
|
281
281
|
}
|
|
282
282
|
.prokodo-PostItem__button__content {
|
|
283
283
|
justify-content: flex-start;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* stylelint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Calculates a rem-based value by a given pixel size.
|
|
@@ -129,27 +128,29 @@
|
|
|
129
128
|
/* Mobile: stacked, image on top via order */
|
|
130
129
|
display: flex;
|
|
131
130
|
flex-direction: column-reverse;
|
|
132
|
-
gap:
|
|
131
|
+
gap: var(--pk-space-lg);
|
|
133
132
|
align-items: stretch;
|
|
134
133
|
}
|
|
135
134
|
@media screen and (min-width: 960px) {
|
|
136
135
|
.prokodo-PostItem__grid {
|
|
137
136
|
flex-direction: row;
|
|
138
137
|
align-items: flex-start;
|
|
139
|
-
gap:
|
|
138
|
+
gap: var(--pk-space-xl);
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
.prokodo-PostItem__media {
|
|
143
142
|
order: 1;
|
|
144
143
|
width: 100%;
|
|
145
144
|
min-width: 0;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
146
147
|
}
|
|
147
148
|
@media screen and (min-width: 960px) {
|
|
148
149
|
.prokodo-PostItem__media {
|
|
149
150
|
order: 0;
|
|
150
151
|
flex: 0 1 33.3333%;
|
|
151
152
|
max-width: 33.333%;
|
|
152
|
-
min-width: 0;
|
|
153
|
+
min-width: 0;
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
.prokodo-PostItem__main {
|
|
@@ -179,7 +180,7 @@
|
|
|
179
180
|
align-items: center;
|
|
180
181
|
}
|
|
181
182
|
.prokodo-PostItem__date {
|
|
182
|
-
color: var(--color-
|
|
183
|
+
color: var(--pk-color-muted);
|
|
183
184
|
font-weight: 400;
|
|
184
185
|
font-size: 1.125rem;
|
|
185
186
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -201,8 +202,8 @@
|
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
.prokodo-PostItem__read__count {
|
|
204
|
-
padding-left:
|
|
205
|
-
color: var(--color-
|
|
205
|
+
padding-left: var(--pk-space-md);
|
|
206
|
+
color: var(--pk-color-muted);
|
|
206
207
|
font-weight: 400;
|
|
207
208
|
font-size: 1.125rem;
|
|
208
209
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -226,8 +227,8 @@
|
|
|
226
227
|
.prokodo-PostItem__content {
|
|
227
228
|
display: flex;
|
|
228
229
|
align-items: center;
|
|
229
|
-
min-width: 0;
|
|
230
|
-
overflow-wrap: anywhere;
|
|
230
|
+
min-width: 0;
|
|
231
|
+
overflow-wrap: anywhere;
|
|
231
232
|
font-weight: 400;
|
|
232
233
|
font-size: 1.125rem;
|
|
233
234
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -249,17 +250,16 @@
|
|
|
249
250
|
}
|
|
250
251
|
}
|
|
251
252
|
.prokodo-PostItem__content__paragraph {
|
|
252
|
-
color: var(--color-
|
|
253
|
+
color: var(--pk-color-muted);
|
|
253
254
|
display: -webkit-box;
|
|
254
255
|
-webkit-line-clamp: 3;
|
|
255
256
|
-webkit-box-orient: vertical;
|
|
256
257
|
overflow: hidden;
|
|
257
258
|
}
|
|
258
259
|
.prokodo-PostItem__content__paragraph > p {
|
|
259
|
-
margin:
|
|
260
|
+
margin: var(--pk-space-sm) var(--pk-space-xs);
|
|
260
261
|
}
|
|
261
262
|
.prokodo-PostItem__image {
|
|
262
|
-
min-height: 300px;
|
|
263
263
|
min-height: 300px;
|
|
264
264
|
-o-object-fit: cover;
|
|
265
265
|
object-fit: cover;
|
|
@@ -268,16 +268,16 @@
|
|
|
268
268
|
padding: 0;
|
|
269
269
|
}
|
|
270
270
|
.prokodo-PostItem__image__wrapper {
|
|
271
|
+
flex: 1 1;
|
|
271
272
|
width: 100%;
|
|
272
|
-
min-width: 300px;
|
|
273
273
|
min-height: 300px;
|
|
274
|
-
border-radius:
|
|
274
|
+
border-radius: var(--pk-radius-lg);
|
|
275
275
|
overflow: hidden;
|
|
276
|
-
transform: none;
|
|
276
|
+
transform: none;
|
|
277
277
|
}
|
|
278
278
|
.prokodo-PostItem__button {
|
|
279
279
|
width: 100%;
|
|
280
|
-
margin-top:
|
|
280
|
+
margin-top: var(--pk-space-lg);
|
|
281
281
|
}
|
|
282
282
|
.prokodo-PostItem__button__content {
|
|
283
283
|
justify-content: flex-start;
|
|
@@ -13,7 +13,7 @@ import { RichText } from "../rich-text/RichText.js";
|
|
|
13
13
|
import { Card } from "../card/Card.js";
|
|
14
14
|
const bem = create(styles, "PostItem");
|
|
15
15
|
function PostItemView(props) {
|
|
16
|
-
var _a, _b, _c, _d, _e, _f;
|
|
16
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
17
17
|
const {
|
|
18
18
|
locale,
|
|
19
19
|
className,
|
|
@@ -33,13 +33,14 @@ function PostItemView(props) {
|
|
|
33
33
|
// public opts
|
|
34
34
|
structuredData = true,
|
|
35
35
|
animate = true,
|
|
36
|
+
color,
|
|
36
37
|
...rest
|
|
37
38
|
} = props;
|
|
38
39
|
const cardMerged = {
|
|
39
40
|
...componentsProps == null ? void 0 : componentsProps.card,
|
|
40
41
|
...rest,
|
|
41
|
-
// keep
|
|
42
|
-
|
|
42
|
+
// keep color narrow; if none is provided, let Card default handle it
|
|
43
|
+
color: ((_a = componentsProps == null ? void 0 : componentsProps.card) == null ? void 0 : _a.color) ?? (rest == null ? void 0 : rest.color) ?? color ?? void 0
|
|
43
44
|
};
|
|
44
45
|
const ArticleWrapper = animate ? Animated : ({
|
|
45
46
|
children,
|
|
@@ -82,6 +83,10 @@ function PostItemView(props) {
|
|
|
82
83
|
classes == null ? void 0 : classes.headline
|
|
83
84
|
].filter(Boolean).join(" ")
|
|
84
85
|
),
|
|
86
|
+
color: (title == null ? void 0 : title.color) ?? ((_e = componentsProps == null ? void 0 : componentsProps.headline) == null ? void 0 : _e.color) ?? (color && color !== "white" ? color : (
|
|
87
|
+
/* istanbul ignore next */
|
|
88
|
+
void 0
|
|
89
|
+
)) ?? "inherit",
|
|
85
90
|
children: title.content
|
|
86
91
|
}
|
|
87
92
|
),
|
|
@@ -172,16 +177,20 @@ function PostItemView(props) {
|
|
|
172
177
|
void 0,
|
|
173
178
|
[
|
|
174
179
|
button == null ? void 0 : button.className,
|
|
175
|
-
(
|
|
180
|
+
(_f = componentsProps == null ? void 0 : componentsProps.button) == null ? void 0 : _f.className,
|
|
176
181
|
classes == null ? void 0 : classes.button
|
|
177
182
|
].filter(Boolean).join(" ")
|
|
178
183
|
),
|
|
184
|
+
color: (button == null ? void 0 : button.color) ?? ((_g = componentsProps == null ? void 0 : componentsProps.button) == null ? void 0 : _g.color) ?? (color && color !== "white" ? color : (
|
|
185
|
+
/* istanbul ignore next */
|
|
186
|
+
void 0
|
|
187
|
+
)),
|
|
179
188
|
contentClassName: bem(
|
|
180
189
|
"button__content",
|
|
181
190
|
void 0,
|
|
182
191
|
[button == null ? void 0 : button.contentClassName, classes == null ? void 0 : classes.buttonContent].filter(Boolean).join(" ")
|
|
183
192
|
),
|
|
184
|
-
variant: (button == null ? void 0 : button.variant) ?? ((
|
|
193
|
+
variant: (button == null ? void 0 : button.variant) ?? ((_h = componentsProps == null ? void 0 : componentsProps.button) == null ? void 0 : _h.variant) ?? "outlined"
|
|
185
194
|
}
|
|
186
195
|
)
|
|
187
196
|
]
|
|
@@ -135,20 +135,20 @@
|
|
|
135
135
|
overflow: hidden;
|
|
136
136
|
}
|
|
137
137
|
.prokodo-PostTeaser__card__content {
|
|
138
|
-
padding: 0
|
|
138
|
+
padding: 0 var(--pk-space-lg) 0;
|
|
139
139
|
}
|
|
140
140
|
.prokodo-PostTeaser__card__footer {
|
|
141
141
|
display: flex;
|
|
142
142
|
align-items: center;
|
|
143
143
|
justify-content: space-between;
|
|
144
144
|
margin-top: auto;
|
|
145
|
-
padding:
|
|
145
|
+
padding: var(--pk-space-lg);
|
|
146
146
|
}
|
|
147
147
|
.prokodo-PostTeaser__meta {
|
|
148
148
|
position: absolute;
|
|
149
|
-
top:
|
|
150
|
-
left:
|
|
151
|
-
width: calc(100% -
|
|
149
|
+
top: var(--pk-space-lg);
|
|
150
|
+
left: var(--pk-space-lg);
|
|
151
|
+
width: calc(100% - 2 * var(--pk-space-lg));
|
|
152
152
|
display: flex;
|
|
153
153
|
align-items: center;
|
|
154
154
|
justify-content: space-between;
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
}
|
|
168
168
|
.prokodo-PostTeaser__meta__readcount__wrapper {
|
|
169
169
|
display: flex;
|
|
170
|
-
gap:
|
|
170
|
+
gap: var(--pk-space-sm);
|
|
171
171
|
}
|
|
172
172
|
.prokodo-PostTeaser__image {
|
|
173
173
|
display: block;
|
|
@@ -189,14 +189,14 @@
|
|
|
189
189
|
height: 100%;
|
|
190
190
|
}
|
|
191
191
|
.prokodo-PostTeaser__image__caption {
|
|
192
|
-
bottom:
|
|
192
|
+
bottom: var(--pk-space-sm);
|
|
193
193
|
text-align: right;
|
|
194
|
-
padding-right:
|
|
195
|
-
width: calc(100% -
|
|
194
|
+
padding-right: var(--pk-space-sm);
|
|
195
|
+
width: calc(100% - var(--pk-space-sm));
|
|
196
196
|
}
|
|
197
197
|
.prokodo-PostTeaser__date {
|
|
198
198
|
padding: 0;
|
|
199
|
-
color: var(--color-
|
|
199
|
+
color: var(--pk-color-muted);
|
|
200
200
|
font-weight: 400;
|
|
201
201
|
font-size: 1rem;
|
|
202
202
|
font-family: var(--font-primary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
height: 230px;
|
|
213
213
|
}
|
|
214
214
|
.prokodo-PostTeaser__headline {
|
|
215
|
-
padding:
|
|
215
|
+
padding: var(--pk-space-lg) var(--pk-space-lg) 0;
|
|
216
216
|
display: -webkit-box;
|
|
217
217
|
-webkit-line-clamp: 1;
|
|
218
218
|
-webkit-box-orient: vertical;
|
|
@@ -250,8 +250,8 @@
|
|
|
250
250
|
align-items: center;
|
|
251
251
|
}
|
|
252
252
|
.prokodo-PostTeaser__link__icon {
|
|
253
|
-
margin-right:
|
|
253
|
+
margin-right: var(--pk-space-xs);
|
|
254
254
|
}
|
|
255
255
|
.prokodo-PostTeaser__link--is-hovered {
|
|
256
|
-
color: var(--color-
|
|
256
|
+
color: var(--pk-color-brand) !important;
|
|
257
257
|
}
|
|
@@ -135,20 +135,20 @@
|
|
|
135
135
|
overflow: hidden;
|
|
136
136
|
}
|
|
137
137
|
.prokodo-PostTeaser__card__content {
|
|
138
|
-
padding: 0
|
|
138
|
+
padding: 0 var(--pk-space-lg) 0;
|
|
139
139
|
}
|
|
140
140
|
.prokodo-PostTeaser__card__footer {
|
|
141
141
|
display: flex;
|
|
142
142
|
align-items: center;
|
|
143
143
|
justify-content: space-between;
|
|
144
144
|
margin-top: auto;
|
|
145
|
-
padding:
|
|
145
|
+
padding: var(--pk-space-lg);
|
|
146
146
|
}
|
|
147
147
|
.prokodo-PostTeaser__meta {
|
|
148
148
|
position: absolute;
|
|
149
|
-
top:
|
|
150
|
-
left:
|
|
151
|
-
width: calc(100% -
|
|
149
|
+
top: var(--pk-space-lg);
|
|
150
|
+
left: var(--pk-space-lg);
|
|
151
|
+
width: calc(100% - 2 * var(--pk-space-lg));
|
|
152
152
|
display: flex;
|
|
153
153
|
align-items: center;
|
|
154
154
|
justify-content: space-between;
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
}
|
|
168
168
|
.prokodo-PostTeaser__meta__readcount__wrapper {
|
|
169
169
|
display: flex;
|
|
170
|
-
gap:
|
|
170
|
+
gap: var(--pk-space-sm);
|
|
171
171
|
}
|
|
172
172
|
.prokodo-PostTeaser__image {
|
|
173
173
|
display: block;
|
|
@@ -189,14 +189,14 @@
|
|
|
189
189
|
height: 100%;
|
|
190
190
|
}
|
|
191
191
|
.prokodo-PostTeaser__image__caption {
|
|
192
|
-
bottom:
|
|
192
|
+
bottom: var(--pk-space-sm);
|
|
193
193
|
text-align: right;
|
|
194
|
-
padding-right:
|
|
195
|
-
width: calc(100% -
|
|
194
|
+
padding-right: var(--pk-space-sm);
|
|
195
|
+
width: calc(100% - var(--pk-space-sm));
|
|
196
196
|
}
|
|
197
197
|
.prokodo-PostTeaser__date {
|
|
198
198
|
padding: 0;
|
|
199
|
-
color: var(--color-
|
|
199
|
+
color: var(--pk-color-muted);
|
|
200
200
|
font-weight: 400;
|
|
201
201
|
font-size: 1rem;
|
|
202
202
|
font-family: var(--font-primary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
height: 230px;
|
|
213
213
|
}
|
|
214
214
|
.prokodo-PostTeaser__headline {
|
|
215
|
-
padding:
|
|
215
|
+
padding: var(--pk-space-lg) var(--pk-space-lg) 0;
|
|
216
216
|
display: -webkit-box;
|
|
217
217
|
-webkit-line-clamp: 1;
|
|
218
218
|
-webkit-box-orient: vertical;
|
|
@@ -250,8 +250,8 @@
|
|
|
250
250
|
align-items: center;
|
|
251
251
|
}
|
|
252
252
|
.prokodo-PostTeaser__link__icon {
|
|
253
|
-
margin-right:
|
|
253
|
+
margin-right: var(--pk-space-xs);
|
|
254
254
|
}
|
|
255
255
|
.prokodo-PostTeaser__link--is-hovered {
|
|
256
|
-
color: var(--color-
|
|
256
|
+
color: var(--pk-color-brand) !important;
|
|
257
257
|
}
|
|
@@ -30,6 +30,7 @@ function PostTeaserView(props) {
|
|
|
30
30
|
onClick,
|
|
31
31
|
redirect,
|
|
32
32
|
structuredData = true,
|
|
33
|
+
color,
|
|
33
34
|
// private
|
|
34
35
|
isHovered,
|
|
35
36
|
readMinutes,
|
|
@@ -41,7 +42,7 @@ function PostTeaserView(props) {
|
|
|
41
42
|
const cardMerged = {
|
|
42
43
|
...componentsProps == null ? void 0 : componentsProps.card,
|
|
43
44
|
...cardRest,
|
|
44
|
-
|
|
45
|
+
color: ((_a = componentsProps == null ? void 0 : componentsProps.card) == null ? void 0 : _a.color) ?? (cardRest == null ? void 0 : cardRest.color) ?? color ?? "white"
|
|
45
46
|
};
|
|
46
47
|
const baseImg = image;
|
|
47
48
|
const imageMerged = baseImg ? {
|
|
@@ -166,7 +167,10 @@ function PostTeaserView(props) {
|
|
|
166
167
|
void 0,
|
|
167
168
|
[title == null ? void 0 : title.className, classes == null ? void 0 : classes.headline].filter(Boolean).join(" ")
|
|
168
169
|
),
|
|
169
|
-
|
|
170
|
+
color: (title == null ? void 0 : title.color) ?? ((_b = componentsProps == null ? void 0 : componentsProps.headline) == null ? void 0 : _b.color) ?? (color && color !== "white" ? color : (
|
|
171
|
+
/* istanbul ignore next */
|
|
172
|
+
void 0
|
|
173
|
+
)) ?? "secondary",
|
|
170
174
|
children: title == null ? void 0 : title.content
|
|
171
175
|
}
|
|
172
176
|
)
|
|
@@ -204,7 +208,6 @@ function PostTeaserView(props) {
|
|
|
204
208
|
/* @__PURE__ */ jsx(
|
|
205
209
|
Icon,
|
|
206
210
|
{
|
|
207
|
-
color: "primary",
|
|
208
211
|
name: "ArrowRight01Icon",
|
|
209
212
|
size: "xs",
|
|
210
213
|
className: bem(
|
|
@@ -212,6 +215,10 @@ function PostTeaserView(props) {
|
|
|
212
215
|
{ "is-hovered": Boolean(isHovered) },
|
|
213
216
|
classes == null ? void 0 : classes.linkIcon
|
|
214
217
|
),
|
|
218
|
+
color: (color && color !== "white" ? color : (
|
|
219
|
+
/* istanbul ignore next */
|
|
220
|
+
void 0
|
|
221
|
+
)) ?? "primary",
|
|
215
222
|
...componentsProps == null ? void 0 : componentsProps.linkIcon,
|
|
216
223
|
...redirect == null ? void 0 : redirect.icon
|
|
217
224
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* stylelint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Calculates a rem-based value by a given pixel size.
|
|
@@ -133,18 +132,18 @@
|
|
|
133
132
|
.prokodo-PostWidget__list--has-fullWidth {
|
|
134
133
|
display: flex;
|
|
135
134
|
flex-wrap: wrap;
|
|
136
|
-
gap:
|
|
135
|
+
gap: var(--pk-space-lg);
|
|
137
136
|
}
|
|
138
137
|
.prokodo-PostWidget__list__item {
|
|
139
138
|
display: block;
|
|
140
|
-
margin-top:
|
|
139
|
+
margin-top: var(--pk-space-lg);
|
|
141
140
|
}
|
|
142
141
|
.prokodo-PostWidget__list__item--has-fullWidth {
|
|
143
142
|
width: 100%;
|
|
144
143
|
}
|
|
145
144
|
@media screen and (min-width: 480px) {
|
|
146
145
|
.prokodo-PostWidget__list__item--has-fullWidth {
|
|
147
|
-
width: calc(50% -
|
|
146
|
+
width: calc(50% - var(--pk-space-lg) / 2);
|
|
148
147
|
}
|
|
149
148
|
}
|
|
150
149
|
.prokodo-PostWidget__list__item__content {
|
|
@@ -156,16 +155,15 @@
|
|
|
156
155
|
height: 100%;
|
|
157
156
|
-o-object-fit: cover;
|
|
158
157
|
object-fit: cover;
|
|
159
|
-
/* This is the Image component’s container to force fill */
|
|
160
158
|
}
|
|
161
159
|
.prokodo-PostWidget__image__link {
|
|
162
160
|
position: relative;
|
|
163
161
|
display: block;
|
|
164
162
|
width: 80px;
|
|
165
163
|
height: 80px;
|
|
166
|
-
margin-right:
|
|
164
|
+
margin-right: var(--pk-space-lg);
|
|
167
165
|
line-height: 0;
|
|
168
|
-
border-radius:
|
|
166
|
+
border-radius: var(--pk-radius-md);
|
|
169
167
|
overflow: hidden;
|
|
170
168
|
}
|
|
171
169
|
.prokodo-PostWidget__image__container {
|
|
@@ -189,7 +187,7 @@
|
|
|
189
187
|
.prokodo-PostWidget__date {
|
|
190
188
|
display: block;
|
|
191
189
|
margin: 0;
|
|
192
|
-
color: var(--color-
|
|
190
|
+
color: var(--pk-color-muted);
|
|
193
191
|
font-weight: 400;
|
|
194
192
|
font-size: 1rem;
|
|
195
193
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* stylelint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Calculates a rem-based value by a given pixel size.
|
|
@@ -133,18 +132,18 @@
|
|
|
133
132
|
.prokodo-PostWidget__list--has-fullWidth {
|
|
134
133
|
display: flex;
|
|
135
134
|
flex-wrap: wrap;
|
|
136
|
-
gap:
|
|
135
|
+
gap: var(--pk-space-lg);
|
|
137
136
|
}
|
|
138
137
|
.prokodo-PostWidget__list__item {
|
|
139
138
|
display: block;
|
|
140
|
-
margin-top:
|
|
139
|
+
margin-top: var(--pk-space-lg);
|
|
141
140
|
}
|
|
142
141
|
.prokodo-PostWidget__list__item--has-fullWidth {
|
|
143
142
|
width: 100%;
|
|
144
143
|
}
|
|
145
144
|
@media screen and (min-width: 480px) {
|
|
146
145
|
.prokodo-PostWidget__list__item--has-fullWidth {
|
|
147
|
-
width: calc(50% -
|
|
146
|
+
width: calc(50% - var(--pk-space-lg) / 2);
|
|
148
147
|
}
|
|
149
148
|
}
|
|
150
149
|
.prokodo-PostWidget__list__item__content {
|
|
@@ -156,16 +155,15 @@
|
|
|
156
155
|
height: 100%;
|
|
157
156
|
-o-object-fit: cover;
|
|
158
157
|
object-fit: cover;
|
|
159
|
-
/* This is the Image component’s container to force fill */
|
|
160
158
|
}
|
|
161
159
|
.prokodo-PostWidget__image__link {
|
|
162
160
|
position: relative;
|
|
163
161
|
display: block;
|
|
164
162
|
width: 80px;
|
|
165
163
|
height: 80px;
|
|
166
|
-
margin-right:
|
|
164
|
+
margin-right: var(--pk-space-lg);
|
|
167
165
|
line-height: 0;
|
|
168
|
-
border-radius:
|
|
166
|
+
border-radius: var(--pk-radius-md);
|
|
169
167
|
overflow: hidden;
|
|
170
168
|
}
|
|
171
169
|
.prokodo-PostWidget__image__container {
|
|
@@ -189,7 +187,7 @@
|
|
|
189
187
|
.prokodo-PostWidget__date {
|
|
190
188
|
display: block;
|
|
191
189
|
margin: 0;
|
|
192
|
-
color: var(--color-
|
|
190
|
+
color: var(--pk-color-muted);
|
|
193
191
|
font-weight: 400;
|
|
194
192
|
font-size: 1rem;
|
|
195
193
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -22,6 +22,7 @@ function PostWidgetView({
|
|
|
22
22
|
classes,
|
|
23
23
|
componentsProps,
|
|
24
24
|
structuredData = true,
|
|
25
|
+
color,
|
|
25
26
|
...rest
|
|
26
27
|
}) {
|
|
27
28
|
var _a, _b;
|
|
@@ -30,7 +31,7 @@ function PostWidgetView({
|
|
|
30
31
|
enableShadow: true,
|
|
31
32
|
...componentsProps == null ? void 0 : componentsProps.card,
|
|
32
33
|
...rest,
|
|
33
|
-
|
|
34
|
+
color: ((_a = componentsProps == null ? void 0 : componentsProps.card) == null ? void 0 : _a.color) ?? (rest == null ? void 0 : rest.color) ?? color ?? void 0
|
|
34
35
|
};
|
|
35
36
|
return /* @__PURE__ */ jsxs(
|
|
36
37
|
"section",
|
|
@@ -58,16 +59,19 @@ function PostWidgetView({
|
|
|
58
59
|
Headline,
|
|
59
60
|
{
|
|
60
61
|
highlight: true,
|
|
61
|
-
size: "md",
|
|
62
|
-
type: "h2",
|
|
63
62
|
...{ ...title, ...(componentsProps == null ? void 0 : componentsProps.title) ?? {} },
|
|
64
63
|
itemProp: "headline",
|
|
64
|
+
size: "md",
|
|
65
|
+
type: "h2",
|
|
65
66
|
className: bem(
|
|
66
67
|
"title",
|
|
67
68
|
void 0,
|
|
68
69
|
[title == null ? void 0 : title.className, classes == null ? void 0 : classes.title].filter(Boolean).join(" ")
|
|
69
70
|
),
|
|
70
|
-
|
|
71
|
+
color: (title == null ? void 0 : title.color) ?? ((_b = componentsProps == null ? void 0 : componentsProps.title) == null ? void 0 : _b.color) ?? (color && color !== "white" ? color : (
|
|
72
|
+
/* istanbul ignore next */
|
|
73
|
+
void 0
|
|
74
|
+
)) ?? "inherit",
|
|
71
75
|
children: title == null ? void 0 : title.content
|
|
72
76
|
}
|
|
73
77
|
),
|
|
@@ -118,7 +122,10 @@ function PostWidgetView({
|
|
|
118
122
|
const headlineMerged = {
|
|
119
123
|
size: "sm",
|
|
120
124
|
type: "h3",
|
|
121
|
-
|
|
125
|
+
color: (color && color !== "white" ? color : (
|
|
126
|
+
/* istanbul ignore next */
|
|
127
|
+
void 0
|
|
128
|
+
)) ?? "inherit",
|
|
122
129
|
...item.title ?? /* istanbul ignore next */
|
|
123
130
|
{},
|
|
124
131
|
...(componentsProps == null ? void 0 : componentsProps.title) ?? {},
|