@prokodo/ui 1.0.4 → 1.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/dist/components/RTE/RTE.css +2 -0
- package/dist/components/accordion/Accordion.css +4 -0
- package/dist/components/animatedText/AnimatedText.server.js +2 -2
- package/dist/components/autocomplete/Autocomplete.css +2 -0
- package/dist/components/avatar/Avatar.css +3 -0
- package/dist/components/button/Button.css +4 -0
- package/dist/components/calendly/Calendly.css +2 -0
- package/dist/components/card/Card.client.js +0 -2
- package/dist/components/card/Card.css +7 -0
- package/dist/components/carousel/Carousel.client.js +14 -9
- package/dist/components/carousel/Carousel.css +2 -0
- package/dist/components/datePicker/DatePicker.client.js +36 -3
- package/dist/components/datePicker/DatePicker.css +4 -2
- package/dist/components/datePicker/DatePicker.module.css +2 -2
- package/dist/components/datePicker/DatePicker.view.js +3 -1
- package/dist/components/datePicker/DatePickerDialog.view.js +3 -1
- package/dist/components/dialog/Dialog.client.js +8 -0
- package/dist/components/dialog/Dialog.css +5 -5
- package/dist/components/dialog/Dialog.module.css +3 -5
- package/dist/components/dialog/Dialog.module.scss.js +1 -1
- package/dist/components/drawer/Drawer.css +3 -0
- package/dist/components/dynamic-list/DynamicList.css +5 -0
- package/dist/components/form/Form.css +184 -0
- package/dist/components/form/FormField.client.js +7 -5
- package/dist/components/headline/Headline.css +2 -0
- package/dist/components/image/Image.client.js +8 -4
- package/dist/components/image/Image.server.js +6 -3
- package/dist/components/image-text/ImageText.css +8 -0
- package/dist/components/input/Input.css +3 -1
- package/dist/components/input/Input.module.css +1 -1
- package/dist/components/input/Input.view.js +3 -3
- package/dist/components/inputOTP/InputOTP.css +2 -0
- package/dist/components/list/List.css +4 -3
- package/dist/components/list/List.module.css +0 -3
- package/dist/components/map/Map.css +2 -0
- package/dist/components/post-item/PostItem.css +165 -0
- package/dist/components/post-teaser/PostTeaser.css +8 -0
- package/dist/components/post-widget/PostWidget.css +5 -0
- package/dist/components/post-widget-carousel/PostWidgetCarousel.css +7 -0
- package/dist/components/quote/Quote.css +5 -0
- package/dist/components/rating/Rating.css +2 -0
- package/dist/components/rich-text/RichText.css +5 -0
- package/dist/components/select/Select.client.js +13 -3
- package/dist/components/select/Select.css +12 -27
- package/dist/components/select/Select.module.css +10 -27
- package/dist/components/sidenav/SideNav.css +4 -0
- package/dist/components/slider/Slider.css +2 -0
- package/dist/components/snackbar/Snackbar.css +38 -0
- package/dist/components/snackbar/Snackbar.module.css +36 -0
- package/dist/components/snackbar/Snackbar.module.scss.js +6 -0
- package/dist/components/stepper/Stepper.css +13 -31
- package/dist/components/stepper/Stepper.module.css +11 -31
- package/dist/components/switch/Switch.css +2 -0
- package/dist/components/table/Table.css +15 -0
- package/dist/components/table/Table.js +2 -1
- package/dist/components/table/Table.module.css +9 -0
- package/dist/components/table/Table.module.scss.js +2 -0
- package/dist/components/tabs/Tabs.css +2 -0
- package/dist/components/teaser/Teaser.css +8 -0
- package/dist/components/tooltip/Tooltip.client.js +6 -2
- package/dist/constants/project.js +1 -1
- package/dist/theme-tokens.css +723 -0
- package/dist/theme.css +75 -71
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/datePicker/DatePicker.model.d.ts +2 -1
- package/dist/types/components/datePicker/DatePicker.view.d.ts +3 -2
- package/dist/types/components/datePicker/DatePickerDialog.view.d.ts +1 -1
- package/dist/types/components/form/Form.model.d.ts +5 -0
- package/dist/types/components/input/Input.view.d.ts +1 -1
- package/dist/types/components/select/Select.model.d.ts +2 -0
- package/package.json +3 -2
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
const Snackbar_slideIn = "Snackbar_slideIn";
|
|
2
2
|
const Snackbar_slideOut = "Snackbar_slideOut";
|
|
3
3
|
const styles = {
|
|
4
|
+
"prokodo-SnackbarProvider": "prokodo-SnackbarProvider",
|
|
5
|
+
"prokodo-SnackbarProvider--is-top": "prokodo-SnackbarProvider--is-top",
|
|
6
|
+
"prokodo-SnackbarProvider--is-bottom": "prokodo-SnackbarProvider--is-bottom",
|
|
7
|
+
"prokodo-SnackbarProvider--is-left": "prokodo-SnackbarProvider--is-left",
|
|
8
|
+
"prokodo-SnackbarProvider--is-right": "prokodo-SnackbarProvider--is-right",
|
|
9
|
+
"prokodo-SnackbarProvider--is-center": "prokodo-SnackbarProvider--is-center",
|
|
4
10
|
"prokodo-Snackbar": "prokodo-Snackbar",
|
|
5
11
|
Snackbar_slideIn,
|
|
6
12
|
"prokodo-Snackbar--info": "prokodo-Snackbar--info",
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@import "../icon/Icon.css";
|
|
2
|
+
|
|
1
3
|
/* stylelint-disable */
|
|
2
4
|
/**
|
|
3
5
|
* Calculates a rem-based value by a given pixel size.
|
|
@@ -127,15 +129,9 @@
|
|
|
127
129
|
.prokodo-Stepper {
|
|
128
130
|
display: flex;
|
|
129
131
|
justify-content: space-between;
|
|
130
|
-
flex-direction:
|
|
132
|
+
flex-direction: row;
|
|
131
133
|
padding: 0;
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
@media screen and (min-width: 480px) {
|
|
135
|
-
.prokodo-Stepper {
|
|
136
|
-
width: 100%;
|
|
137
|
-
flex-direction: row;
|
|
138
|
-
}
|
|
134
|
+
width: 100%;
|
|
139
135
|
}
|
|
140
136
|
.prokodo-Stepper--primary {
|
|
141
137
|
--gradient-border-1: linear-gradient(180deg, var(--pk-color-brand) 0%, var(--pk-color-accent) 100%);
|
|
@@ -174,35 +170,22 @@
|
|
|
174
170
|
}
|
|
175
171
|
.prokodo-Stepper__step {
|
|
176
172
|
position: relative;
|
|
177
|
-
|
|
173
|
+
width: 100%;
|
|
178
174
|
list-style-type: none;
|
|
179
175
|
cursor: pointer;
|
|
180
176
|
}
|
|
181
177
|
.prokodo-Stepper__step::after {
|
|
182
178
|
content: "";
|
|
183
|
-
position:
|
|
184
|
-
|
|
185
|
-
margin:
|
|
186
|
-
|
|
187
|
-
|
|
179
|
+
position: absolute;
|
|
180
|
+
top: 1.25rem;
|
|
181
|
+
margin: 0;
|
|
182
|
+
left: auto;
|
|
183
|
+
height: 3px;
|
|
184
|
+
width: calc(100% - 80px);
|
|
188
185
|
background: var(--gradient-border-7);
|
|
189
|
-
transform:
|
|
186
|
+
transform: translateX(-50%);
|
|
190
187
|
opacity: 0.5;
|
|
191
188
|
}
|
|
192
|
-
@media screen and (min-width: 480px) {
|
|
193
|
-
.prokodo-Stepper__step {
|
|
194
|
-
width: 100%;
|
|
195
|
-
}
|
|
196
|
-
.prokodo-Stepper__step::after {
|
|
197
|
-
position: absolute;
|
|
198
|
-
top: 1.25rem;
|
|
199
|
-
margin: 0;
|
|
200
|
-
left: auto;
|
|
201
|
-
height: 3px;
|
|
202
|
-
width: calc(100% - 80px);
|
|
203
|
-
transform: translateX(-50%);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
189
|
.prokodo-Stepper__step:first-child::after {
|
|
207
190
|
display: none;
|
|
208
191
|
}
|
|
@@ -312,7 +295,7 @@
|
|
|
312
295
|
}
|
|
313
296
|
.prokodo-Stepper__label {
|
|
314
297
|
text-align: center;
|
|
315
|
-
align-items:
|
|
298
|
+
align-items: center;
|
|
316
299
|
display: flex !important;
|
|
317
300
|
flex-direction: column;
|
|
318
301
|
justify-content: center;
|
|
@@ -368,7 +351,6 @@
|
|
|
368
351
|
}
|
|
369
352
|
@media screen and (min-width: 480px) {
|
|
370
353
|
.prokodo-Stepper__label {
|
|
371
|
-
align-items: center;
|
|
372
354
|
font-weight: 400;
|
|
373
355
|
font-size: 1rem;
|
|
374
356
|
font-family: var(--font-primary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -127,15 +127,9 @@
|
|
|
127
127
|
.prokodo-Stepper {
|
|
128
128
|
display: flex;
|
|
129
129
|
justify-content: space-between;
|
|
130
|
-
flex-direction:
|
|
130
|
+
flex-direction: row;
|
|
131
131
|
padding: 0;
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
@media screen and (min-width: 480px) {
|
|
135
|
-
.prokodo-Stepper {
|
|
136
|
-
width: 100%;
|
|
137
|
-
flex-direction: row;
|
|
138
|
-
}
|
|
132
|
+
width: 100%;
|
|
139
133
|
}
|
|
140
134
|
.prokodo-Stepper--primary {
|
|
141
135
|
--gradient-border-1: linear-gradient(180deg, var(--pk-color-brand) 0%, var(--pk-color-accent) 100%);
|
|
@@ -174,35 +168,22 @@
|
|
|
174
168
|
}
|
|
175
169
|
.prokodo-Stepper__step {
|
|
176
170
|
position: relative;
|
|
177
|
-
|
|
171
|
+
width: 100%;
|
|
178
172
|
list-style-type: none;
|
|
179
173
|
cursor: pointer;
|
|
180
174
|
}
|
|
181
175
|
.prokodo-Stepper__step::after {
|
|
182
176
|
content: "";
|
|
183
|
-
position:
|
|
184
|
-
|
|
185
|
-
margin:
|
|
186
|
-
|
|
187
|
-
|
|
177
|
+
position: absolute;
|
|
178
|
+
top: 1.25rem;
|
|
179
|
+
margin: 0;
|
|
180
|
+
left: auto;
|
|
181
|
+
height: 3px;
|
|
182
|
+
width: calc(100% - 80px);
|
|
188
183
|
background: var(--gradient-border-7);
|
|
189
|
-
transform:
|
|
184
|
+
transform: translateX(-50%);
|
|
190
185
|
opacity: 0.5;
|
|
191
186
|
}
|
|
192
|
-
@media screen and (min-width: 480px) {
|
|
193
|
-
.prokodo-Stepper__step {
|
|
194
|
-
width: 100%;
|
|
195
|
-
}
|
|
196
|
-
.prokodo-Stepper__step::after {
|
|
197
|
-
position: absolute;
|
|
198
|
-
top: 1.25rem;
|
|
199
|
-
margin: 0;
|
|
200
|
-
left: auto;
|
|
201
|
-
height: 3px;
|
|
202
|
-
width: calc(100% - 80px);
|
|
203
|
-
transform: translateX(-50%);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
187
|
.prokodo-Stepper__step:first-child::after {
|
|
207
188
|
display: none;
|
|
208
189
|
}
|
|
@@ -312,7 +293,7 @@
|
|
|
312
293
|
}
|
|
313
294
|
.prokodo-Stepper__label {
|
|
314
295
|
text-align: center;
|
|
315
|
-
align-items:
|
|
296
|
+
align-items: center;
|
|
316
297
|
display: flex !important;
|
|
317
298
|
flex-direction: column;
|
|
318
299
|
justify-content: center;
|
|
@@ -368,7 +349,6 @@
|
|
|
368
349
|
}
|
|
369
350
|
@media screen and (min-width: 480px) {
|
|
370
351
|
.prokodo-Stepper__label {
|
|
371
|
-
align-items: center;
|
|
372
352
|
font-weight: 400;
|
|
373
353
|
font-size: 1rem;
|
|
374
354
|
font-family: var(--font-primary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
@import "../animated/Animated.css";
|
|
2
|
+
@import "../headline/Headline.css";
|
|
3
|
+
@import "../icon/Icon.css";
|
|
4
|
+
@import "../link/Link.css";
|
|
5
|
+
@import "../rich-text/RichText.css";
|
|
6
|
+
|
|
1
7
|
/* stylelint-disable */
|
|
2
8
|
/**
|
|
3
9
|
* Calculates a rem-based value by a given pixel size.
|
|
@@ -159,9 +165,14 @@
|
|
|
159
165
|
.prokodo-Table__head__row {
|
|
160
166
|
border-bottom: var(--pk-border-width) solid var(--pk-table-border-color);
|
|
161
167
|
}
|
|
168
|
+
.prokodo-Table__head__row--double {
|
|
169
|
+
border-bottom-width: 3px;
|
|
170
|
+
border-bottom-style: double;
|
|
171
|
+
}
|
|
162
172
|
.prokodo-Table__head__cell {
|
|
163
173
|
padding: var(--pk-table-padding-y) var(--pk-table-padding-x);
|
|
164
174
|
font-weight: 500;
|
|
175
|
+
color: var(--pk-table-cell-fg);
|
|
165
176
|
font-weight: 400;
|
|
166
177
|
font-size: 1.125rem;
|
|
167
178
|
font-family: var(--font-primary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -182,6 +193,10 @@
|
|
|
182
193
|
.prokodo-Table__body__row {
|
|
183
194
|
border-bottom: var(--pk-border-width) solid var(--pk-table-border-color);
|
|
184
195
|
}
|
|
196
|
+
.prokodo-Table__body__row--double {
|
|
197
|
+
border-bottom-width: 3px;
|
|
198
|
+
border-bottom-style: double;
|
|
199
|
+
}
|
|
185
200
|
.prokodo-Table__body__row--has-link:hover {
|
|
186
201
|
background: var(--pk-table-row-hover-bg);
|
|
187
202
|
}
|
|
@@ -38,7 +38,7 @@ const Table = /* @__PURE__ */ __name(({
|
|
|
38
38
|
) }),
|
|
39
39
|
isString(content) && /* @__PURE__ */ jsx(Animated, { className: bem("content"), delay: 500, children: /* @__PURE__ */ jsx(RichText, { children: content }) }),
|
|
40
40
|
/* @__PURE__ */ jsx("div", { className: bem("table__wrapper"), children: /* @__PURE__ */ jsxs("table", { "aria-label": ariaLabel, className: bem("table"), ...props, children: [
|
|
41
|
-
/* @__PURE__ */ jsx("thead", { className: bem("head"), children: /* @__PURE__ */ jsx("tr", { className: bem("head__row"), children: header.map((cell, i) => /* @__PURE__ */ jsx(
|
|
41
|
+
/* @__PURE__ */ jsx("thead", { className: bem("head"), children: /* @__PURE__ */ jsx("tr", { className: bem("head__row", { [type]: true }), children: header.map((cell, i) => /* @__PURE__ */ jsx(
|
|
42
42
|
"th",
|
|
43
43
|
{
|
|
44
44
|
className: bem("head__cell", void 0, cell == null ? void 0 : cell.className),
|
|
@@ -52,6 +52,7 @@ const Table = /* @__PURE__ */ __name(({
|
|
|
52
52
|
"tr",
|
|
53
53
|
{
|
|
54
54
|
className: bem("body__row", {
|
|
55
|
+
[type]: true,
|
|
55
56
|
/* istanbul ignore next */
|
|
56
57
|
"has-link": isString((_a = row == null ? void 0 : row.redirect) == null ? void 0 : _a.href)
|
|
57
58
|
}),
|
|
@@ -159,9 +159,14 @@
|
|
|
159
159
|
.prokodo-Table__head__row {
|
|
160
160
|
border-bottom: var(--pk-border-width) solid var(--pk-table-border-color);
|
|
161
161
|
}
|
|
162
|
+
.prokodo-Table__head__row--double {
|
|
163
|
+
border-bottom-width: 3px;
|
|
164
|
+
border-bottom-style: double;
|
|
165
|
+
}
|
|
162
166
|
.prokodo-Table__head__cell {
|
|
163
167
|
padding: var(--pk-table-padding-y) var(--pk-table-padding-x);
|
|
164
168
|
font-weight: 500;
|
|
169
|
+
color: var(--pk-table-cell-fg);
|
|
165
170
|
font-weight: 400;
|
|
166
171
|
font-size: 1.125rem;
|
|
167
172
|
font-family: var(--font-primary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -182,6 +187,10 @@
|
|
|
182
187
|
.prokodo-Table__body__row {
|
|
183
188
|
border-bottom: var(--pk-border-width) solid var(--pk-table-border-color);
|
|
184
189
|
}
|
|
190
|
+
.prokodo-Table__body__row--double {
|
|
191
|
+
border-bottom-width: 3px;
|
|
192
|
+
border-bottom-style: double;
|
|
193
|
+
}
|
|
185
194
|
.prokodo-Table__body__row--has-link:hover {
|
|
186
195
|
background: var(--pk-table-row-hover-bg);
|
|
187
196
|
}
|
|
@@ -6,8 +6,10 @@ const styles = {
|
|
|
6
6
|
"prokodo-Table__table": "prokodo-Table__table",
|
|
7
7
|
"prokodo-Table__table__wrapper": "prokodo-Table__table__wrapper",
|
|
8
8
|
"prokodo-Table__head__row": "prokodo-Table__head__row",
|
|
9
|
+
"prokodo-Table__head__row--double": "prokodo-Table__head__row--double",
|
|
9
10
|
"prokodo-Table__head__cell": "prokodo-Table__head__cell",
|
|
10
11
|
"prokodo-Table__body__row": "prokodo-Table__body__row",
|
|
12
|
+
"prokodo-Table__body__row--double": "prokodo-Table__body__row--double",
|
|
11
13
|
"prokodo-Table__body__row--has-link": "prokodo-Table__body__row--has-link",
|
|
12
14
|
"prokodo-Table__caption": "prokodo-Table__caption",
|
|
13
15
|
"prokodo-TableCell": "prokodo-TableCell",
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
@import "../card/Card.css";
|
|
2
|
+
@import "../headline/Headline.css";
|
|
3
|
+
@import "../icon/Icon.css";
|
|
4
|
+
@import "../image/Image.css";
|
|
5
|
+
@import "../link/Link.css";
|
|
6
|
+
@import "../lottie/Lottie.css";
|
|
7
|
+
@import "../rich-text/RichText.css";
|
|
8
|
+
|
|
1
9
|
/* stylelint-disable */
|
|
2
10
|
/**
|
|
3
11
|
* Calculates a rem-based value by a given pixel size.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
4
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
5
|
-
import { memo, useState, useRef, useCallback, useMemo, useLayoutEffect } from "react";
|
|
5
|
+
import { memo, useState, useRef, useEffect, useCallback, useMemo, useLayoutEffect } from "react";
|
|
6
6
|
import { createPortal } from "react-dom";
|
|
7
7
|
import { create } from "../../helpers/bem.js";
|
|
8
8
|
import styles from "./Tooltip.module.scss.js";
|
|
@@ -169,6 +169,10 @@ function TooltipClient(props) {
|
|
|
169
169
|
void 0
|
|
170
170
|
);
|
|
171
171
|
const [effectivePlacement, setEffectivePlacement] = useState(placement);
|
|
172
|
+
const [isMounted, setIsMounted] = useState(false);
|
|
173
|
+
useEffect(() => {
|
|
174
|
+
setIsMounted(true);
|
|
175
|
+
}, []);
|
|
172
176
|
const openTimer = useRef(null);
|
|
173
177
|
const closeTimer = useRef(null);
|
|
174
178
|
const clearTimers = useCallback(() => {
|
|
@@ -372,7 +376,7 @@ function TooltipClient(props) {
|
|
|
372
376
|
},
|
|
373
377
|
[portal, open, compute]
|
|
374
378
|
);
|
|
375
|
-
const overlayRoot =
|
|
379
|
+
const overlayRoot = isMounted && portal ? getOverlayRoot(overlayRootId, zIndex) : null;
|
|
376
380
|
const portalOpen = open && Boolean(bubbleStyle);
|
|
377
381
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
378
382
|
/* @__PURE__ */ jsx(
|