@prokodo/ui 1.0.3 → 1.0.5
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 +9 -9
- package/dist/components/RTE/RTE.module.css +9 -9
- package/dist/components/RTE/RTE.module.scss.js +12 -1
- package/dist/components/animatedText/AnimatedText.server.js +2 -2
- package/dist/components/autocomplete/Autocomplete.css +1 -1
- package/dist/components/autocomplete/Autocomplete.module.css +1 -1
- package/dist/components/autocomplete/Autocomplete.module.scss.js +3 -0
- package/dist/components/avatar/Avatar.view.js +1 -1
- package/dist/components/button/Button.client.js +2 -2
- package/dist/components/button/Button.css +1 -3
- package/dist/components/button/Button.module.css +1 -3
- package/dist/components/button/Button.module.scss.js +3 -3
- package/dist/components/button/Button.server.js +9 -2
- package/dist/components/card/Card.client.js +0 -2
- package/dist/components/card/Card.view.js +1 -0
- package/dist/components/carousel/Carousel.client.js +14 -9
- package/dist/components/checkbox/Checkbox.css +2 -2
- package/dist/components/checkbox/Checkbox.module.css +2 -2
- package/dist/components/checkbox/Checkbox.module.scss.js +1 -0
- package/dist/components/checkbox-group/CheckboxGroup.css +5 -5
- package/dist/components/checkbox-group/CheckboxGroup.module.css +5 -5
- package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +1 -0
- package/dist/components/chip/Chip.css +4 -4
- package/dist/components/chip/Chip.module.css +4 -4
- package/dist/components/datePicker/DatePicker.client.js +36 -3
- package/dist/components/datePicker/DatePicker.css +4 -4
- package/dist/components/datePicker/DatePicker.module.css +4 -4
- package/dist/components/datePicker/DatePicker.module.scss.js +1 -0
- 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 +3 -5
- package/dist/components/dialog/Dialog.module.css +3 -5
- package/dist/components/dialog/Dialog.module.scss.js +1 -1
- package/dist/components/dialog/Dialog.view.js +1 -1
- package/dist/components/drawer/Drawer.js +1 -2
- package/dist/components/dynamic-list/DynamicList.css +1 -1
- package/dist/components/dynamic-list/DynamicList.module.css +1 -1
- package/dist/components/dynamic-list/DynamicList.module.scss.js +1 -0
- package/dist/components/form/FormField.client.js +7 -5
- package/dist/components/image/Image.client.js +8 -4
- package/dist/components/image/Image.server.js +6 -3
- package/dist/components/input/Input.css +3 -3
- package/dist/components/input/Input.module.css +3 -3
- package/dist/components/input/Input.module.scss.js +1 -0
- package/dist/components/input/Input.view.js +3 -3
- package/dist/components/label/Label.css +1 -1
- package/dist/components/label/Label.module.css +1 -1
- package/dist/components/label/Label.module.scss.js +1 -0
- package/dist/components/list/List.css +0 -3
- package/dist/components/list/List.module.css +0 -3
- package/dist/components/loading/Loading.js +1 -2
- package/dist/components/post-teaser/PostTeaser.view.js +1 -0
- package/dist/components/post-widget/PostWidget.view.js +1 -1
- package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +1 -0
- package/dist/components/rating/Rating.css +1 -1
- package/dist/components/rating/Rating.module.css +1 -1
- package/dist/components/rating/Rating.module.scss.js +1 -0
- package/dist/components/rich-text/RichText.client.js +1 -1
- package/dist/components/select/Select.client.js +13 -3
- package/dist/components/select/Select.css +14 -31
- package/dist/components/select/Select.module.css +14 -31
- package/dist/components/select/Select.module.scss.js +1 -0
- package/dist/components/snackbar/Snackbar.css +36 -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 +11 -31
- package/dist/components/stepper/Stepper.module.css +11 -31
- package/dist/components/switch/Switch.css +6 -6
- package/dist/components/switch/Switch.module.css +6 -6
- package/dist/components/switch/Switch.module.scss.js +1 -0
- package/dist/components/table/Table.css +9 -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.module.scss.js +1 -0
- package/dist/components/tooltip/Tooltip.client.js +6 -2
- package/dist/constants/project.js +1 -1
- package/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/cssfilter@0.0.10/node_modules/cssfilter/lib/index.js +4 -4
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +1 -1
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +1 -1
- package/dist/node_modules/.pnpm/quill@2.0.3/node_modules/quill/dist/quill.js +4 -4
- package/dist/node_modules/.pnpm/xss@1.0.15/node_modules/xss/lib/index.js +6 -6
- package/dist/theme.css +3708 -2237
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/RTE/RTE.d.ts +1 -1
- package/dist/types/components/RTE/RTE.lazy.d.ts +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 +22 -5
|
@@ -3,7 +3,7 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Marked as B } from "../../node_modules/.pnpm/marked@17.0.1/node_modules/marked/lib/marked.esm.js";
|
|
6
|
-
import { useRef, useMemo, useState, useEffect, Fragment,
|
|
6
|
+
import { useRef, useMemo, useState, useEffect, Fragment, isValidElement, createElement, Children, cloneElement } from "react";
|
|
7
7
|
import { l as libExports } from "../../_virtual/index.js";
|
|
8
8
|
import { create } from "../../helpers/bem.js";
|
|
9
9
|
import { isString } from "../../helpers/validations.js";
|
|
@@ -49,6 +49,7 @@ function SelectClient({
|
|
|
49
49
|
const [popupReady, setPopupReady] = useState(false);
|
|
50
50
|
const [isMobile, setIsMobile] = useState(false);
|
|
51
51
|
const sheetSwipeStart = useRef(null);
|
|
52
|
+
const didInitFocus = useRef(false);
|
|
52
53
|
const hasPlaceholder = !Boolean(required) && !Boolean(multiple);
|
|
53
54
|
const optionCount = (hasPlaceholder ? 1 : 0) + items.length;
|
|
54
55
|
useEffect(() => {
|
|
@@ -114,7 +115,12 @@ function SelectClient({
|
|
|
114
115
|
[]
|
|
115
116
|
);
|
|
116
117
|
useEffect(() => {
|
|
117
|
-
if (!open
|
|
118
|
+
if (!open) {
|
|
119
|
+
didInitFocus.current = false;
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
if (!popupReady || didInitFocus.current) return;
|
|
123
|
+
didInitFocus.current = true;
|
|
118
124
|
setActiveIndex(valueToIndex());
|
|
119
125
|
requestAnimationFrame(() => {
|
|
120
126
|
var _a;
|
|
@@ -150,6 +156,10 @@ function SelectClient({
|
|
|
150
156
|
window.removeEventListener("scroll", onScroll, true);
|
|
151
157
|
};
|
|
152
158
|
}, [open, updatePopupPosition]);
|
|
159
|
+
useEffect(() => {
|
|
160
|
+
if (!open) return;
|
|
161
|
+
requestAnimationFrame(() => updatePopupPosition());
|
|
162
|
+
}, [val, open, updatePopupPosition]);
|
|
153
163
|
useEffect(() => {
|
|
154
164
|
if (!open) return;
|
|
155
165
|
const handleOutside = /* @__PURE__ */ __name((e) => {
|
|
@@ -326,7 +336,7 @@ function SelectClient({
|
|
|
326
336
|
/* @__PURE__ */ jsx(
|
|
327
337
|
"button",
|
|
328
338
|
{
|
|
329
|
-
"aria-label": "Close",
|
|
339
|
+
"aria-label": rest.closeAriaLabel ?? "Close",
|
|
330
340
|
className: bem("sheet__close"),
|
|
331
341
|
type: "button",
|
|
332
342
|
onClick: close,
|
|
@@ -419,7 +429,7 @@ function SelectClient({
|
|
|
419
429
|
className: bem("sheet__done"),
|
|
420
430
|
type: "button",
|
|
421
431
|
onClick: close,
|
|
422
|
-
children: "Done"
|
|
432
|
+
children: rest.doneLabel ?? "Done"
|
|
423
433
|
}
|
|
424
434
|
) })
|
|
425
435
|
]
|
|
@@ -212,12 +212,12 @@
|
|
|
212
212
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-color-muted) 10%, var(--pk-select-bg));
|
|
213
213
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-color-muted) 18%, var(--pk-select-bg));
|
|
214
214
|
}
|
|
215
|
-
html[data-theme=
|
|
215
|
+
html[data-theme=dark] .prokodo-Select--info, [data-theme=dark] .prokodo-Select--info, .pk-theme-dark .prokodo-Select--info, html[data-theme=dark] .prokodo-Select--inherit, [data-theme=dark] .prokodo-Select--inherit, .pk-theme-dark .prokodo-Select--inherit, html[data-theme=dark] .prokodo-Select--white, [data-theme=dark] .prokodo-Select--white, .pk-theme-dark .prokodo-Select--white {
|
|
216
216
|
--pk-select-gradient-from: var(--pk-palette-grey-100);
|
|
217
217
|
--pk-select-gradient-to: var(--pk-palette-grey-200);
|
|
218
218
|
--pk-select-label-fg: var(--pk-palette-grey-200);
|
|
219
219
|
}
|
|
220
|
-
html[data-theme=
|
|
220
|
+
html[data-theme=dark] .prokodo-Select, [data-theme=dark] .prokodo-Select, .pk-theme-dark .prokodo-Select {
|
|
221
221
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-select-gradient-from) 15%, var(--pk-select-bg));
|
|
222
222
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-select-gradient-from) 25%, var(--pk-select-bg));
|
|
223
223
|
--pk-select-fg-placeholder: var(--pk-palette-grey-400);
|
|
@@ -460,7 +460,7 @@ html[data-theme="dark"] .prokodo-Select, [data-theme="dark"] .prokodo-Select, .p
|
|
|
460
460
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-color-muted) 10%, var(--pk-select-bg));
|
|
461
461
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-color-muted) 18%, var(--pk-select-bg));
|
|
462
462
|
}
|
|
463
|
-
html[data-theme=
|
|
463
|
+
html[data-theme=dark] .prokodo-Select__listbox, [data-theme=dark] .prokodo-Select__listbox, .pk-theme-dark .prokodo-Select__listbox {
|
|
464
464
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-select-gradient-from) 15%, var(--pk-select-bg));
|
|
465
465
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-select-gradient-from) 25%, var(--pk-select-bg));
|
|
466
466
|
--pk-select-fg: var(--pk-color-fg);
|
|
@@ -556,7 +556,7 @@ html[data-theme="dark"] .prokodo-Select__listbox, [data-theme="dark"] .prokodo-S
|
|
|
556
556
|
.prokodo-Select__sheet__backdrop {
|
|
557
557
|
position: fixed;
|
|
558
558
|
inset: 0;
|
|
559
|
-
z-index:
|
|
559
|
+
z-index: var(--pk-z-popover, 1400);
|
|
560
560
|
background: rgba(0, 0, 0, 0.5);
|
|
561
561
|
backdrop-filter: blur(4px);
|
|
562
562
|
-webkit-backdrop-filter: blur(4px);
|
|
@@ -567,7 +567,7 @@ html[data-theme="dark"] .prokodo-Select__listbox, [data-theme="dark"] .prokodo-S
|
|
|
567
567
|
bottom: 0;
|
|
568
568
|
left: 0;
|
|
569
569
|
right: 0;
|
|
570
|
-
z-index:
|
|
570
|
+
z-index: calc(var(--pk-z-popover, 1400) + 1);
|
|
571
571
|
box-sizing: border-box;
|
|
572
572
|
display: flex;
|
|
573
573
|
flex-direction: column;
|
|
@@ -617,7 +617,7 @@ html[data-theme="dark"] .prokodo-Select__listbox, [data-theme="dark"] .prokodo-S
|
|
|
617
617
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-color-muted) 10%, var(--pk-select-bg));
|
|
618
618
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-color-muted) 18%, var(--pk-select-bg));
|
|
619
619
|
}
|
|
620
|
-
html[data-theme=
|
|
620
|
+
html[data-theme=dark] .prokodo-Select__sheet, [data-theme=dark] .prokodo-Select__sheet, .pk-theme-dark .prokodo-Select__sheet {
|
|
621
621
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-select-gradient-from) 15%, var(--pk-select-bg));
|
|
622
622
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-select-gradient-from) 25%, var(--pk-select-bg));
|
|
623
623
|
--pk-select-fg: var(--pk-color-fg);
|
|
@@ -759,35 +759,18 @@ html[data-theme="dark"] .prokodo-Select__sheet, [data-theme="dark"] .prokodo-Sel
|
|
|
759
759
|
}
|
|
760
760
|
.prokodo-Select__sheet__done {
|
|
761
761
|
width: 100%;
|
|
762
|
-
|
|
763
|
-
|
|
762
|
+
height: 3rem;
|
|
763
|
+
padding: var(--pk-space-xs, 0.25rem) var(--pk-space-sm, 0.5rem);
|
|
764
|
+
border-radius: var(--pk-radius-lg, 12px);
|
|
764
765
|
border: none;
|
|
765
766
|
cursor: pointer;
|
|
766
|
-
font-
|
|
767
|
-
|
|
767
|
+
font-size: 0.9375rem;
|
|
768
|
+
font-weight: 600;
|
|
769
|
+
text-align: center;
|
|
770
|
+
background: linear-gradient(135deg, var(--pk-select-gradient-from), var(--pk-select-gradient-to));
|
|
768
771
|
color: #fff;
|
|
772
|
+
box-shadow: 0 4px 16px color-mix(in srgb, var(--pk-select-gradient-from) 30%, transparent);
|
|
769
773
|
transition: opacity var(--pk-timing-fast) ease;
|
|
770
|
-
font-weight: 700;
|
|
771
|
-
font-size: 1.75rem;
|
|
772
|
-
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
773
|
-
font-style: normal;
|
|
774
|
-
line-height: 1.6;
|
|
775
|
-
letter-spacing: 0.03em;
|
|
776
|
-
text-transform: none;
|
|
777
|
-
text-align: left;
|
|
778
|
-
text-decoration: none;
|
|
779
|
-
}
|
|
780
|
-
@media screen and (min-width: 480px) {
|
|
781
|
-
.prokodo-Select__sheet__done {
|
|
782
|
-
font-size: 1.5rem;
|
|
783
|
-
line-height: 1.55;
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
@media screen and (min-width: 960px) {
|
|
787
|
-
.prokodo-Select__sheet__done {
|
|
788
|
-
font-size: 1.5rem;
|
|
789
|
-
line-height: 1.55;
|
|
790
|
-
}
|
|
791
774
|
}
|
|
792
775
|
.prokodo-Select__sheet__done:hover {
|
|
793
776
|
opacity: 0.9;
|
|
@@ -212,12 +212,12 @@
|
|
|
212
212
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-color-muted) 10%, var(--pk-select-bg));
|
|
213
213
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-color-muted) 18%, var(--pk-select-bg));
|
|
214
214
|
}
|
|
215
|
-
html[data-theme=
|
|
215
|
+
html[data-theme=dark] .prokodo-Select--info, [data-theme=dark] .prokodo-Select--info, .pk-theme-dark .prokodo-Select--info, html[data-theme=dark] .prokodo-Select--inherit, [data-theme=dark] .prokodo-Select--inherit, .pk-theme-dark .prokodo-Select--inherit, html[data-theme=dark] .prokodo-Select--white, [data-theme=dark] .prokodo-Select--white, .pk-theme-dark .prokodo-Select--white {
|
|
216
216
|
--pk-select-gradient-from: var(--pk-palette-grey-100);
|
|
217
217
|
--pk-select-gradient-to: var(--pk-palette-grey-200);
|
|
218
218
|
--pk-select-label-fg: var(--pk-palette-grey-200);
|
|
219
219
|
}
|
|
220
|
-
html[data-theme=
|
|
220
|
+
html[data-theme=dark] .prokodo-Select, [data-theme=dark] .prokodo-Select, .pk-theme-dark .prokodo-Select {
|
|
221
221
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-select-gradient-from) 15%, var(--pk-select-bg));
|
|
222
222
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-select-gradient-from) 25%, var(--pk-select-bg));
|
|
223
223
|
--pk-select-fg-placeholder: var(--pk-palette-grey-400);
|
|
@@ -460,7 +460,7 @@ html[data-theme="dark"] .prokodo-Select, [data-theme="dark"] .prokodo-Select, .p
|
|
|
460
460
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-color-muted) 10%, var(--pk-select-bg));
|
|
461
461
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-color-muted) 18%, var(--pk-select-bg));
|
|
462
462
|
}
|
|
463
|
-
html[data-theme=
|
|
463
|
+
html[data-theme=dark] .prokodo-Select__listbox, [data-theme=dark] .prokodo-Select__listbox, .pk-theme-dark .prokodo-Select__listbox {
|
|
464
464
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-select-gradient-from) 15%, var(--pk-select-bg));
|
|
465
465
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-select-gradient-from) 25%, var(--pk-select-bg));
|
|
466
466
|
--pk-select-fg: var(--pk-color-fg);
|
|
@@ -556,7 +556,7 @@ html[data-theme="dark"] .prokodo-Select__listbox, [data-theme="dark"] .prokodo-S
|
|
|
556
556
|
.prokodo-Select__sheet__backdrop {
|
|
557
557
|
position: fixed;
|
|
558
558
|
inset: 0;
|
|
559
|
-
z-index:
|
|
559
|
+
z-index: var(--pk-z-popover, 1400);
|
|
560
560
|
background: rgba(0, 0, 0, 0.5);
|
|
561
561
|
backdrop-filter: blur(4px);
|
|
562
562
|
-webkit-backdrop-filter: blur(4px);
|
|
@@ -567,7 +567,7 @@ html[data-theme="dark"] .prokodo-Select__listbox, [data-theme="dark"] .prokodo-S
|
|
|
567
567
|
bottom: 0;
|
|
568
568
|
left: 0;
|
|
569
569
|
right: 0;
|
|
570
|
-
z-index:
|
|
570
|
+
z-index: calc(var(--pk-z-popover, 1400) + 1);
|
|
571
571
|
box-sizing: border-box;
|
|
572
572
|
display: flex;
|
|
573
573
|
flex-direction: column;
|
|
@@ -617,7 +617,7 @@ html[data-theme="dark"] .prokodo-Select__listbox, [data-theme="dark"] .prokodo-S
|
|
|
617
617
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-color-muted) 10%, var(--pk-select-bg));
|
|
618
618
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-color-muted) 18%, var(--pk-select-bg));
|
|
619
619
|
}
|
|
620
|
-
html[data-theme=
|
|
620
|
+
html[data-theme=dark] .prokodo-Select__sheet, [data-theme=dark] .prokodo-Select__sheet, .pk-theme-dark .prokodo-Select__sheet {
|
|
621
621
|
--pk-select-item-hover-bg: color-mix(in srgb, var(--pk-select-gradient-from) 15%, var(--pk-select-bg));
|
|
622
622
|
--pk-select-item-active-bg: color-mix(in srgb, var(--pk-select-gradient-from) 25%, var(--pk-select-bg));
|
|
623
623
|
--pk-select-fg: var(--pk-color-fg);
|
|
@@ -759,35 +759,18 @@ html[data-theme="dark"] .prokodo-Select__sheet, [data-theme="dark"] .prokodo-Sel
|
|
|
759
759
|
}
|
|
760
760
|
.prokodo-Select__sheet__done {
|
|
761
761
|
width: 100%;
|
|
762
|
-
|
|
763
|
-
|
|
762
|
+
height: 3rem;
|
|
763
|
+
padding: var(--pk-space-xs, 0.25rem) var(--pk-space-sm, 0.5rem);
|
|
764
|
+
border-radius: var(--pk-radius-lg, 12px);
|
|
764
765
|
border: none;
|
|
765
766
|
cursor: pointer;
|
|
766
|
-
font-
|
|
767
|
-
|
|
767
|
+
font-size: 0.9375rem;
|
|
768
|
+
font-weight: 600;
|
|
769
|
+
text-align: center;
|
|
770
|
+
background: linear-gradient(135deg, var(--pk-select-gradient-from), var(--pk-select-gradient-to));
|
|
768
771
|
color: #fff;
|
|
772
|
+
box-shadow: 0 4px 16px color-mix(in srgb, var(--pk-select-gradient-from) 30%, transparent);
|
|
769
773
|
transition: opacity var(--pk-timing-fast) ease;
|
|
770
|
-
font-weight: 700;
|
|
771
|
-
font-size: 1.75rem;
|
|
772
|
-
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
773
|
-
font-style: normal;
|
|
774
|
-
line-height: 1.6;
|
|
775
|
-
letter-spacing: 0.03em;
|
|
776
|
-
text-transform: none;
|
|
777
|
-
text-align: left;
|
|
778
|
-
text-decoration: none;
|
|
779
|
-
}
|
|
780
|
-
@media screen and (min-width: 480px) {
|
|
781
|
-
.prokodo-Select__sheet__done {
|
|
782
|
-
font-size: 1.5rem;
|
|
783
|
-
line-height: 1.55;
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
@media screen and (min-width: 960px) {
|
|
787
|
-
.prokodo-Select__sheet__done {
|
|
788
|
-
font-size: 1.5rem;
|
|
789
|
-
line-height: 1.55;
|
|
790
|
-
}
|
|
791
774
|
}
|
|
792
775
|
.prokodo-Select__sheet__done:hover {
|
|
793
776
|
opacity: 0.9;
|
|
@@ -12,6 +12,7 @@ const styles = {
|
|
|
12
12
|
"prokodo-Select--info": "prokodo-Select--info",
|
|
13
13
|
"prokodo-Select--inherit": "prokodo-Select--inherit",
|
|
14
14
|
"prokodo-Select--white": "prokodo-Select--white",
|
|
15
|
+
"pk-theme-dark": "pk-theme-dark",
|
|
15
16
|
"prokodo-Select--fullWidth": "prokodo-Select--fullWidth",
|
|
16
17
|
"prokodo-Select__label": "prokodo-Select__label",
|
|
17
18
|
"prokodo-Select__label--is-focused": "prokodo-Select__label--is-focused",
|
|
@@ -124,6 +124,42 @@
|
|
|
124
124
|
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
|
+
.prokodo-SnackbarProvider {
|
|
128
|
+
position: fixed;
|
|
129
|
+
z-index: 1400;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
gap: var(--pk-space-sm);
|
|
133
|
+
width: -moz-max-content;
|
|
134
|
+
width: max-content;
|
|
135
|
+
max-width: min(480px, 100vw - var(--pk-space-xl) * 2);
|
|
136
|
+
pointer-events: none;
|
|
137
|
+
}
|
|
138
|
+
.prokodo-SnackbarProvider > * {
|
|
139
|
+
pointer-events: auto;
|
|
140
|
+
}
|
|
141
|
+
.prokodo-SnackbarProvider--is-top {
|
|
142
|
+
top: var(--pk-space-lg);
|
|
143
|
+
bottom: auto;
|
|
144
|
+
}
|
|
145
|
+
.prokodo-SnackbarProvider--is-bottom {
|
|
146
|
+
bottom: var(--pk-space-lg);
|
|
147
|
+
top: auto;
|
|
148
|
+
}
|
|
149
|
+
.prokodo-SnackbarProvider--is-left {
|
|
150
|
+
left: var(--pk-space-lg);
|
|
151
|
+
right: auto;
|
|
152
|
+
}
|
|
153
|
+
.prokodo-SnackbarProvider--is-right {
|
|
154
|
+
right: var(--pk-space-lg);
|
|
155
|
+
left: auto;
|
|
156
|
+
}
|
|
157
|
+
.prokodo-SnackbarProvider--is-center {
|
|
158
|
+
left: 50%;
|
|
159
|
+
right: auto;
|
|
160
|
+
transform: translateX(-50%);
|
|
161
|
+
}
|
|
162
|
+
|
|
127
163
|
@keyframes Snackbar_slideIn {
|
|
128
164
|
from {
|
|
129
165
|
opacity: 0;
|
|
@@ -124,6 +124,42 @@
|
|
|
124
124
|
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
|
+
.prokodo-SnackbarProvider {
|
|
128
|
+
position: fixed;
|
|
129
|
+
z-index: 1400;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
gap: var(--pk-space-sm);
|
|
133
|
+
width: -moz-max-content;
|
|
134
|
+
width: max-content;
|
|
135
|
+
max-width: min(480px, 100vw - var(--pk-space-xl) * 2);
|
|
136
|
+
pointer-events: none;
|
|
137
|
+
}
|
|
138
|
+
.prokodo-SnackbarProvider > * {
|
|
139
|
+
pointer-events: auto;
|
|
140
|
+
}
|
|
141
|
+
.prokodo-SnackbarProvider--is-top {
|
|
142
|
+
top: var(--pk-space-lg);
|
|
143
|
+
bottom: auto;
|
|
144
|
+
}
|
|
145
|
+
.prokodo-SnackbarProvider--is-bottom {
|
|
146
|
+
bottom: var(--pk-space-lg);
|
|
147
|
+
top: auto;
|
|
148
|
+
}
|
|
149
|
+
.prokodo-SnackbarProvider--is-left {
|
|
150
|
+
left: var(--pk-space-lg);
|
|
151
|
+
right: auto;
|
|
152
|
+
}
|
|
153
|
+
.prokodo-SnackbarProvider--is-right {
|
|
154
|
+
right: var(--pk-space-lg);
|
|
155
|
+
left: auto;
|
|
156
|
+
}
|
|
157
|
+
.prokodo-SnackbarProvider--is-center {
|
|
158
|
+
left: 50%;
|
|
159
|
+
right: auto;
|
|
160
|
+
transform: translateX(-50%);
|
|
161
|
+
}
|
|
162
|
+
|
|
127
163
|
@keyframes Snackbar_slideIn {
|
|
128
164
|
from {
|
|
129
165
|
opacity: 0;
|
|
@@ -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",
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -157,10 +157,10 @@
|
|
|
157
157
|
.prokodo-Switch--inherit {
|
|
158
158
|
--pk-switch-active: currentColor;
|
|
159
159
|
}
|
|
160
|
-
[data-theme=
|
|
160
|
+
[data-theme=dark] .prokodo-Switch--info, .pk-theme-dark .prokodo-Switch--info {
|
|
161
161
|
--pk-switch-active: var(--pk-palette-grey-300);
|
|
162
162
|
}
|
|
163
|
-
[data-theme=
|
|
163
|
+
[data-theme=dark] .prokodo-Switch--inherit, .pk-theme-dark .prokodo-Switch--inherit {
|
|
164
164
|
--pk-switch-active: var(--pk-color-fg);
|
|
165
165
|
}
|
|
166
166
|
.prokodo-Switch__label {
|
|
@@ -262,17 +262,17 @@
|
|
|
262
262
|
.prokodo-Switch__icon--isActive {
|
|
263
263
|
color: var(--pk-color-fg);
|
|
264
264
|
}
|
|
265
|
-
[data-theme=
|
|
265
|
+
[data-theme=dark] .prokodo-Switch__thumb, .pk-theme-dark .prokodo-Switch__thumb {
|
|
266
266
|
--pk-switch-thumb-bg: #ffffff;
|
|
267
267
|
--pk-switch-thumb-checked-bg: #ffffff;
|
|
268
268
|
}
|
|
269
|
-
[data-theme=
|
|
269
|
+
[data-theme=dark] .prokodo-Switch__icon__wrapper, .pk-theme-dark .prokodo-Switch__icon__wrapper, [data-theme=dark] .prokodo-Switch__icon, .pk-theme-dark .prokodo-Switch__icon {
|
|
270
270
|
color: #000000;
|
|
271
271
|
}
|
|
272
|
-
[data-theme=
|
|
272
|
+
[data-theme=dark] .prokodo-Switch--inherit .prokodo-Switch__thumb--checked, .pk-theme-dark .prokodo-Switch--inherit .prokodo-Switch__thumb--checked {
|
|
273
273
|
--pk-switch-thumb-checked-bg: #000000;
|
|
274
274
|
}
|
|
275
|
-
[data-theme=
|
|
275
|
+
[data-theme=dark] .prokodo-Switch--inherit .prokodo-Switch__icon--isActive, .pk-theme-dark .prokodo-Switch--inherit .prokodo-Switch__icon--isActive {
|
|
276
276
|
color: #ffffff;
|
|
277
277
|
}
|
|
278
278
|
.prokodo-Switch--disabled, .prokodo-Switch__control--disabled {
|
|
@@ -157,10 +157,10 @@
|
|
|
157
157
|
.prokodo-Switch--inherit {
|
|
158
158
|
--pk-switch-active: currentColor;
|
|
159
159
|
}
|
|
160
|
-
[data-theme=
|
|
160
|
+
[data-theme=dark] .prokodo-Switch--info, .pk-theme-dark .prokodo-Switch--info {
|
|
161
161
|
--pk-switch-active: var(--pk-palette-grey-300);
|
|
162
162
|
}
|
|
163
|
-
[data-theme=
|
|
163
|
+
[data-theme=dark] .prokodo-Switch--inherit, .pk-theme-dark .prokodo-Switch--inherit {
|
|
164
164
|
--pk-switch-active: var(--pk-color-fg);
|
|
165
165
|
}
|
|
166
166
|
.prokodo-Switch__label {
|
|
@@ -262,17 +262,17 @@
|
|
|
262
262
|
.prokodo-Switch__icon--isActive {
|
|
263
263
|
color: var(--pk-color-fg);
|
|
264
264
|
}
|
|
265
|
-
[data-theme=
|
|
265
|
+
[data-theme=dark] .prokodo-Switch__thumb, .pk-theme-dark .prokodo-Switch__thumb {
|
|
266
266
|
--pk-switch-thumb-bg: #ffffff;
|
|
267
267
|
--pk-switch-thumb-checked-bg: #ffffff;
|
|
268
268
|
}
|
|
269
|
-
[data-theme=
|
|
269
|
+
[data-theme=dark] .prokodo-Switch__icon__wrapper, .pk-theme-dark .prokodo-Switch__icon__wrapper, [data-theme=dark] .prokodo-Switch__icon, .pk-theme-dark .prokodo-Switch__icon {
|
|
270
270
|
color: #000000;
|
|
271
271
|
}
|
|
272
|
-
[data-theme=
|
|
272
|
+
[data-theme=dark] .prokodo-Switch--inherit .prokodo-Switch__thumb--checked, .pk-theme-dark .prokodo-Switch--inherit .prokodo-Switch__thumb--checked {
|
|
273
273
|
--pk-switch-thumb-checked-bg: #000000;
|
|
274
274
|
}
|
|
275
|
-
[data-theme=
|
|
275
|
+
[data-theme=dark] .prokodo-Switch--inherit .prokodo-Switch__icon--isActive, .pk-theme-dark .prokodo-Switch--inherit .prokodo-Switch__icon--isActive {
|
|
276
276
|
color: #ffffff;
|
|
277
277
|
}
|
|
278
278
|
.prokodo-Switch--disabled, .prokodo-Switch__control--disabled {
|
|
@@ -7,6 +7,7 @@ const styles = {
|
|
|
7
7
|
"prokodo-Switch--info": "prokodo-Switch--info",
|
|
8
8
|
"prokodo-Switch--warning": "prokodo-Switch--warning",
|
|
9
9
|
"prokodo-Switch--inherit": "prokodo-Switch--inherit",
|
|
10
|
+
"pk-theme-dark": "pk-theme-dark",
|
|
10
11
|
"prokodo-Switch__label": "prokodo-Switch__label",
|
|
11
12
|
"prokodo-Switch__control": "prokodo-Switch__control",
|
|
12
13
|
"prokodo-Switch__track": "prokodo-Switch__track",
|
|
@@ -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
|
}
|
|
@@ -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
|
}
|