@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
|
@@ -5,9 +5,11 @@ import { create } from "../../helpers/bem.js";
|
|
|
5
5
|
import styles from "./SideNav.module.scss.js";
|
|
6
6
|
import { Icon } from "../icon/Icon.js";
|
|
7
7
|
import { Link } from "../link/Link.js";
|
|
8
|
+
import { Headline } from "../headline/Headline.js";
|
|
8
9
|
const bem = create(styles, "SideNav");
|
|
9
10
|
function SideNavView({
|
|
10
11
|
items,
|
|
12
|
+
sections,
|
|
11
13
|
collapsed,
|
|
12
14
|
collapsedLabel = "Expand menu",
|
|
13
15
|
collapsedIcon = "ArrowRight01Icon",
|
|
@@ -18,7 +20,9 @@ function SideNavView({
|
|
|
18
20
|
interactive = true,
|
|
19
21
|
ariaLabel = "Main navigation",
|
|
20
22
|
className,
|
|
21
|
-
renderFooter
|
|
23
|
+
renderFooter,
|
|
24
|
+
headlineProps: globalHeadlineProps,
|
|
25
|
+
descriptionProps: globalDescriptionProps
|
|
22
26
|
}) {
|
|
23
27
|
const renderItem = /* @__PURE__ */ __name((icon, label) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24
28
|
/* @__PURE__ */ jsx("div", { className: bem("icon__wrapper"), children: /* @__PURE__ */ jsx(
|
|
@@ -31,6 +35,69 @@ function SideNavView({
|
|
|
31
35
|
) }),
|
|
32
36
|
!collapsed && /* @__PURE__ */ jsx("span", { className: bem("label", { collapsed }), children: label })
|
|
33
37
|
] }), "renderItem");
|
|
38
|
+
const renderNavItem = /* @__PURE__ */ __name(({ label, icon, redirect, active }) => /* @__PURE__ */ jsx("li", { children: (redirect == null ? void 0 : redirect.href) !== void 0 ? /* @__PURE__ */ jsx(
|
|
39
|
+
Link,
|
|
40
|
+
{
|
|
41
|
+
...redirect,
|
|
42
|
+
href: redirect.href,
|
|
43
|
+
className: bem(
|
|
44
|
+
"link",
|
|
45
|
+
{ collapsed, "is-active": Boolean(active) },
|
|
46
|
+
redirect == null ? void 0 : redirect.className
|
|
47
|
+
),
|
|
48
|
+
children: renderItem(icon, label)
|
|
49
|
+
}
|
|
50
|
+
) : /* @__PURE__ */ jsx(Fragment, { children: renderItem(icon, label) }) }, label), "renderNavItem");
|
|
51
|
+
const renderSection = /* @__PURE__ */ __name((section, index) => {
|
|
52
|
+
const {
|
|
53
|
+
headline,
|
|
54
|
+
description,
|
|
55
|
+
headlineComponent: HeadlineComponent,
|
|
56
|
+
headlineProps: sectionHeadlineProps,
|
|
57
|
+
descriptionProps: sectionDescriptionProps,
|
|
58
|
+
items: sectionItems
|
|
59
|
+
} = section;
|
|
60
|
+
const mergedHeadlineProps = {
|
|
61
|
+
...globalHeadlineProps,
|
|
62
|
+
...sectionHeadlineProps
|
|
63
|
+
};
|
|
64
|
+
const mergedDescriptionProps = {
|
|
65
|
+
...globalDescriptionProps,
|
|
66
|
+
...sectionDescriptionProps
|
|
67
|
+
};
|
|
68
|
+
const showHeader = !collapsed && (headline || description || HeadlineComponent);
|
|
69
|
+
return /* @__PURE__ */ jsxs("div", { className: bem("section"), children: [
|
|
70
|
+
showHeader && /* @__PURE__ */ jsxs("div", { className: bem("section__header"), children: [
|
|
71
|
+
HeadlineComponent ? /* @__PURE__ */ jsx(HeadlineComponent, { className: bem("section__headline") }) : headline && /* @__PURE__ */ jsx(
|
|
72
|
+
Headline,
|
|
73
|
+
{
|
|
74
|
+
size: "xs",
|
|
75
|
+
type: "h6",
|
|
76
|
+
...mergedHeadlineProps,
|
|
77
|
+
className: bem(
|
|
78
|
+
"section__headline",
|
|
79
|
+
void 0,
|
|
80
|
+
mergedHeadlineProps == null ? void 0 : mergedHeadlineProps.className
|
|
81
|
+
),
|
|
82
|
+
children: headline
|
|
83
|
+
}
|
|
84
|
+
),
|
|
85
|
+
!HeadlineComponent && description && /* @__PURE__ */ jsx(
|
|
86
|
+
"p",
|
|
87
|
+
{
|
|
88
|
+
...mergedDescriptionProps,
|
|
89
|
+
className: bem(
|
|
90
|
+
"section__description",
|
|
91
|
+
void 0,
|
|
92
|
+
mergedDescriptionProps == null ? void 0 : mergedDescriptionProps.className
|
|
93
|
+
),
|
|
94
|
+
children: description
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
] }),
|
|
98
|
+
/* @__PURE__ */ jsx("ul", { className: bem("list"), children: sectionItems.map(renderNavItem) })
|
|
99
|
+
] }, index);
|
|
100
|
+
}, "renderSection");
|
|
34
101
|
return /* @__PURE__ */ jsxs(
|
|
35
102
|
"aside",
|
|
36
103
|
{
|
|
@@ -59,19 +126,7 @@ function SideNavView({
|
|
|
59
126
|
]
|
|
60
127
|
}
|
|
61
128
|
),
|
|
62
|
-
/* @__PURE__ */ jsx("nav", { id: "sidenav", children: /* @__PURE__ */ jsx("
|
|
63
|
-
Link,
|
|
64
|
-
{
|
|
65
|
-
...redirect,
|
|
66
|
-
href: redirect.href,
|
|
67
|
-
className: bem(
|
|
68
|
-
"link",
|
|
69
|
-
{ collapsed, "is-active": Boolean(active) },
|
|
70
|
-
redirect == null ? void 0 : redirect.className
|
|
71
|
-
),
|
|
72
|
-
children: renderItem(icon, label)
|
|
73
|
-
}
|
|
74
|
-
) : /* @__PURE__ */ jsx(Fragment, { children: renderItem(icon, label) }) }, label)) }) }),
|
|
129
|
+
/* @__PURE__ */ jsx("nav", { id: "sidenav", children: sections && sections.length > 0 ? /* @__PURE__ */ jsx("div", { className: bem("sections"), children: sections.map(renderSection) }) : /* @__PURE__ */ jsx("ul", { className: bem("list"), children: (items ?? []).map(renderNavItem) }) }),
|
|
75
130
|
renderFooter !== void 0 && !collapsed && renderFooter()
|
|
76
131
|
]
|
|
77
132
|
}
|
|
@@ -150,8 +150,8 @@
|
|
|
150
150
|
}
|
|
151
151
|
.prokodo-Skeleton {
|
|
152
152
|
display: inline-block;
|
|
153
|
-
background-color:
|
|
154
|
-
border-radius:
|
|
153
|
+
background-color: var(--pk-skeleton-bg);
|
|
154
|
+
border-radius: var(--pk-skeleton-radius);
|
|
155
155
|
position: relative;
|
|
156
156
|
overflow: hidden;
|
|
157
157
|
/* shimmer carrier (animation is attached in modifier) */
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
/* animation hooks (keyframes live in effects sheet) */
|
|
160
160
|
}
|
|
161
161
|
html[data-theme=dark] .prokodo-Skeleton {
|
|
162
|
-
background-color:
|
|
162
|
+
background-color: var(--pk-skeleton-bg-dark);
|
|
163
163
|
}
|
|
164
164
|
.prokodo-Skeleton::after {
|
|
165
165
|
content: "";
|
|
@@ -167,18 +167,18 @@ html[data-theme=dark] .prokodo-Skeleton {
|
|
|
167
167
|
position: absolute;
|
|
168
168
|
inset: 0;
|
|
169
169
|
left: -100%;
|
|
170
|
-
background: linear-gradient(90deg, transparent, var(--
|
|
170
|
+
background: linear-gradient(90deg, transparent, var(--pk-skeleton-shimmer-fg), transparent);
|
|
171
171
|
opacity: 0.6;
|
|
172
172
|
}
|
|
173
173
|
html[data-theme=dark] .prokodo-Skeleton::after {
|
|
174
|
-
background: linear-gradient(90deg, transparent, var(--
|
|
174
|
+
background: linear-gradient(90deg, transparent, var(--pk-skeleton-shimmer-fg-dark), transparent);
|
|
175
175
|
}
|
|
176
176
|
.prokodo-Skeleton--text {
|
|
177
177
|
height: 1em;
|
|
178
|
-
border-radius:
|
|
178
|
+
border-radius: var(--pk-skeleton-radius);
|
|
179
179
|
}
|
|
180
180
|
.prokodo-Skeleton--rectangular {
|
|
181
|
-
border-radius:
|
|
181
|
+
border-radius: var(--pk-skeleton-radius);
|
|
182
182
|
}
|
|
183
183
|
.prokodo-Skeleton--circular {
|
|
184
184
|
border-radius: 50%;
|
|
@@ -150,8 +150,8 @@
|
|
|
150
150
|
}
|
|
151
151
|
.prokodo-Skeleton {
|
|
152
152
|
display: inline-block;
|
|
153
|
-
background-color:
|
|
154
|
-
border-radius:
|
|
153
|
+
background-color: var(--pk-skeleton-bg);
|
|
154
|
+
border-radius: var(--pk-skeleton-radius);
|
|
155
155
|
position: relative;
|
|
156
156
|
overflow: hidden;
|
|
157
157
|
/* shimmer carrier (animation is attached in modifier) */
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
/* animation hooks (keyframes live in effects sheet) */
|
|
160
160
|
}
|
|
161
161
|
html[data-theme=dark] .prokodo-Skeleton {
|
|
162
|
-
background-color:
|
|
162
|
+
background-color: var(--pk-skeleton-bg-dark);
|
|
163
163
|
}
|
|
164
164
|
.prokodo-Skeleton::after {
|
|
165
165
|
content: "";
|
|
@@ -167,18 +167,18 @@ html[data-theme=dark] .prokodo-Skeleton {
|
|
|
167
167
|
position: absolute;
|
|
168
168
|
inset: 0;
|
|
169
169
|
left: -100%;
|
|
170
|
-
background: linear-gradient(90deg, transparent, var(--
|
|
170
|
+
background: linear-gradient(90deg, transparent, var(--pk-skeleton-shimmer-fg), transparent);
|
|
171
171
|
opacity: 0.6;
|
|
172
172
|
}
|
|
173
173
|
html[data-theme=dark] .prokodo-Skeleton::after {
|
|
174
|
-
background: linear-gradient(90deg, transparent, var(--
|
|
174
|
+
background: linear-gradient(90deg, transparent, var(--pk-skeleton-shimmer-fg-dark), transparent);
|
|
175
175
|
}
|
|
176
176
|
.prokodo-Skeleton--text {
|
|
177
177
|
height: 1em;
|
|
178
|
-
border-radius:
|
|
178
|
+
border-radius: var(--pk-skeleton-radius);
|
|
179
179
|
}
|
|
180
180
|
.prokodo-Skeleton--rectangular {
|
|
181
|
-
border-radius:
|
|
181
|
+
border-radius: var(--pk-skeleton-radius);
|
|
182
182
|
}
|
|
183
183
|
.prokodo-Skeleton--circular {
|
|
184
184
|
border-radius: 50%;
|
|
@@ -125,10 +125,60 @@
|
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
127
|
.prokodo-Slider {
|
|
128
|
-
|
|
128
|
+
position: relative;
|
|
129
|
+
width: 100%;
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
gap: var(--pk-space-xs);
|
|
133
|
+
}
|
|
134
|
+
.prokodo-Slider--primary {
|
|
135
|
+
--pk-slider-fill-from: var(--pk-color-brand);
|
|
136
|
+
--pk-slider-fill-to: var(--pk-color-accent);
|
|
137
|
+
}
|
|
138
|
+
.prokodo-Slider--secondary {
|
|
139
|
+
--pk-slider-fill-from: var(--pk-color-accent);
|
|
140
|
+
--pk-slider-fill-to: var(--pk-color-brand);
|
|
141
|
+
}
|
|
142
|
+
.prokodo-Slider--success {
|
|
143
|
+
--pk-slider-fill-from: var(--pk-color-success);
|
|
144
|
+
--pk-slider-fill-to: #10CCB8;
|
|
145
|
+
}
|
|
146
|
+
.prokodo-Slider--warning {
|
|
147
|
+
--pk-slider-fill-from: var(--pk-color-warning);
|
|
148
|
+
--pk-slider-fill-to: #f7cc6a;
|
|
149
|
+
}
|
|
150
|
+
.prokodo-Slider--error {
|
|
151
|
+
--pk-slider-fill-from: var(--pk-color-error);
|
|
152
|
+
--pk-slider-fill-to: #ff6b6b;
|
|
153
|
+
}
|
|
154
|
+
.prokodo-Slider--info, .prokodo-Slider--inherit, .prokodo-Slider--white {
|
|
155
|
+
--pk-slider-fill-from: var(--pk-color-muted);
|
|
156
|
+
--pk-slider-fill-to: var(--pk-color-border);
|
|
157
|
+
}
|
|
158
|
+
.prokodo-Slider__label {
|
|
159
|
+
color: var(--pk-slider-label-fg);
|
|
160
|
+
font-weight: 400;
|
|
161
|
+
font-size: 1.125rem;
|
|
162
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
163
|
+
font-style: normal;
|
|
164
|
+
line-height: 1.55;
|
|
165
|
+
letter-spacing: 0.03em;
|
|
166
|
+
text-transform: none;
|
|
167
|
+
text-align: left;
|
|
168
|
+
text-decoration: none;
|
|
169
|
+
}
|
|
170
|
+
@media screen and (min-width: 480px) {
|
|
171
|
+
.prokodo-Slider__label {
|
|
172
|
+
font-size: 1rem;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
@media screen and (min-width: 960px) {
|
|
176
|
+
.prokodo-Slider__label {
|
|
177
|
+
font-size: 1rem;
|
|
178
|
+
}
|
|
129
179
|
}
|
|
130
180
|
.prokodo-Slider__label {
|
|
131
|
-
|
|
181
|
+
transition: transform var(--pk-slider-timing) ease;
|
|
132
182
|
}
|
|
133
183
|
.prokodo-Slider__label--is-hidden {
|
|
134
184
|
position: absolute;
|
|
@@ -141,62 +191,63 @@
|
|
|
141
191
|
.prokodo-Slider__root {
|
|
142
192
|
position: relative;
|
|
143
193
|
width: 100%;
|
|
144
|
-
height:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
cursor: pointer;
|
|
148
|
-
touch-action: none;
|
|
149
|
-
-webkit-tap-highlight-color: transparent;
|
|
194
|
+
height: calc(var(--pk-slider-tooltip-height) + var(--pk-slider-tooltip-gap) + var(--pk-slider-thumb-size) + var(--pk-slider-mark-label-height));
|
|
195
|
+
margin-top: calc(-1 * (var(--pk-slider-tooltip-height) + var(--pk-slider-tooltip-gap)));
|
|
196
|
+
transition: margin-top var(--pk-slider-timing) ease;
|
|
150
197
|
}
|
|
151
198
|
.prokodo-Slider__root--disabled {
|
|
152
|
-
cursor: default;
|
|
153
|
-
pointer-events: none;
|
|
154
199
|
opacity: 0.4;
|
|
200
|
+
pointer-events: none;
|
|
201
|
+
cursor: not-allowed;
|
|
155
202
|
}
|
|
156
203
|
.prokodo-Slider__rail {
|
|
157
204
|
position: absolute;
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
top:
|
|
205
|
+
left: 0;
|
|
206
|
+
right: 0;
|
|
207
|
+
top: calc(var(--pk-slider-tooltip-height) + var(--pk-slider-tooltip-gap) + var(--pk-slider-thumb-size) / 2);
|
|
161
208
|
transform: translateY(-50%);
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
209
|
+
height: var(--pk-slider-track-height);
|
|
210
|
+
border-radius: 9999px;
|
|
211
|
+
background: linear-gradient(90deg, var(--pk-slider-fill-from), var(--pk-slider-fill-to));
|
|
212
|
+
opacity: 0.25;
|
|
213
|
+
pointer-events: none;
|
|
166
214
|
}
|
|
167
215
|
.prokodo-Slider__track {
|
|
168
216
|
position: absolute;
|
|
169
|
-
|
|
170
|
-
top:
|
|
217
|
+
left: 0;
|
|
218
|
+
top: calc(var(--pk-slider-tooltip-height) + var(--pk-slider-tooltip-gap) + var(--pk-slider-thumb-size) / 2);
|
|
171
219
|
transform: translateY(-50%);
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
background: var(--
|
|
220
|
+
height: var(--pk-slider-track-height);
|
|
221
|
+
border-radius: 9999px;
|
|
222
|
+
background: linear-gradient(90deg, var(--pk-slider-fill-from), var(--pk-slider-fill-to));
|
|
223
|
+
pointer-events: none;
|
|
224
|
+
transition: width var(--pk-slider-timing) ease;
|
|
175
225
|
}
|
|
176
226
|
.prokodo-Slider__mark {
|
|
177
227
|
position: absolute;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
228
|
+
top: calc(var(--pk-slider-tooltip-height) + var(--pk-slider-tooltip-gap) + var(--pk-slider-thumb-size) + 4px);
|
|
229
|
+
transform: translateX(-50%);
|
|
230
|
+
display: flex;
|
|
231
|
+
flex-direction: column;
|
|
232
|
+
align-items: center;
|
|
233
|
+
pointer-events: none;
|
|
234
|
+
}
|
|
235
|
+
.prokodo-Slider__mark::before {
|
|
236
|
+
content: "";
|
|
237
|
+
display: block;
|
|
238
|
+
width: 4px;
|
|
239
|
+
height: 4px;
|
|
181
240
|
border-radius: 50%;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
transform: translateX(-50%) translateY(-50%);
|
|
185
|
-
z-index: 3;
|
|
241
|
+
background-color: var(--pk-slider-mark-bg);
|
|
242
|
+
margin-bottom: 2px;
|
|
186
243
|
}
|
|
187
244
|
.prokodo-Slider__mark__label {
|
|
188
|
-
|
|
189
|
-
display: inline-block;
|
|
190
|
-
bottom: 0;
|
|
191
|
-
left: 50%;
|
|
192
|
-
padding-top: 1.5rem;
|
|
193
|
-
transform: translateX(-50%);
|
|
194
|
-
color: var(--color-grey-300);
|
|
245
|
+
color: var(--pk-slider-mark-label-fg);
|
|
195
246
|
font-weight: 400;
|
|
196
|
-
font-size:
|
|
247
|
+
font-size: 1rem;
|
|
197
248
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
198
249
|
font-style: normal;
|
|
199
|
-
line-height: 1.
|
|
250
|
+
line-height: 1.45;
|
|
200
251
|
letter-spacing: 0.03em;
|
|
201
252
|
text-transform: none;
|
|
202
253
|
text-align: left;
|
|
@@ -204,102 +255,116 @@
|
|
|
204
255
|
}
|
|
205
256
|
@media screen and (min-width: 480px) {
|
|
206
257
|
.prokodo-Slider__mark__label {
|
|
207
|
-
font-size:
|
|
258
|
+
font-size: 0.875rem;
|
|
259
|
+
line-height: 1.4;
|
|
208
260
|
}
|
|
209
261
|
}
|
|
210
262
|
@media screen and (min-width: 960px) {
|
|
211
263
|
.prokodo-Slider__mark__label {
|
|
212
|
-
font-size:
|
|
264
|
+
font-size: 0.875rem;
|
|
265
|
+
line-height: 1.4;
|
|
213
266
|
}
|
|
214
267
|
}
|
|
215
268
|
.prokodo-Slider__mark__label {
|
|
216
|
-
|
|
217
|
-
font-size: 0.8rem;
|
|
218
|
-
}
|
|
219
|
-
@media screen and (min-width: 480px) {
|
|
220
|
-
.prokodo-Slider__mark__label {
|
|
221
|
-
position: static;
|
|
222
|
-
width: auto;
|
|
223
|
-
height: auto;
|
|
224
|
-
left: auto;
|
|
225
|
-
text-indent: inherit;
|
|
226
|
-
margin-left: 50%;
|
|
227
|
-
min-width: 100px;
|
|
228
|
-
font-size: 1rem;
|
|
229
|
-
}
|
|
269
|
+
white-space: nowrap;
|
|
230
270
|
}
|
|
231
271
|
.prokodo-Slider__input {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
appearance: none;
|
|
235
|
-
-webkit-appearance: none;
|
|
272
|
+
position: absolute;
|
|
273
|
+
inset: 0;
|
|
236
274
|
width: 100%;
|
|
237
275
|
height: 100%;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
z-index: 4;
|
|
276
|
+
opacity: 0;
|
|
277
|
+
cursor: pointer;
|
|
241
278
|
margin: 0;
|
|
242
|
-
|
|
243
|
-
cursor: inherit;
|
|
244
|
-
}
|
|
245
|
-
.prokodo-Slider__input:focus {
|
|
246
|
-
outline: none;
|
|
247
|
-
}
|
|
248
|
-
.prokodo-Slider__input::-webkit-slider-thumb {
|
|
249
|
-
-webkit-appearance: none;
|
|
250
|
-
width: 0;
|
|
251
|
-
height: 0;
|
|
252
|
-
}
|
|
253
|
-
.prokodo-Slider__input::-webkit-slider-runnable-track {
|
|
254
|
-
-webkit-appearance: none;
|
|
255
|
-
background: transparent;
|
|
256
|
-
border: none;
|
|
257
|
-
}
|
|
258
|
-
.prokodo-Slider__input::-moz-range-thumb {
|
|
259
|
-
width: 0;
|
|
260
|
-
height: 0;
|
|
261
|
-
background: transparent;
|
|
262
|
-
border: none;
|
|
263
|
-
}
|
|
264
|
-
.prokodo-Slider__input::-moz-range-track {
|
|
265
|
-
background: transparent;
|
|
266
|
-
border: none;
|
|
267
|
-
}
|
|
268
|
-
.prokodo-Slider__thumb {
|
|
269
|
-
position: absolute;
|
|
270
|
-
top: 50%;
|
|
271
|
-
width: 30px;
|
|
272
|
-
height: 30px;
|
|
273
|
-
border-radius: 50%;
|
|
274
|
-
background-color: var(--color-primary-500);
|
|
275
|
-
transform: translateX(-50%) translateY(-50%);
|
|
276
|
-
transition: box-shadow 120ms ease, transform 120ms ease;
|
|
277
|
-
z-index: 3;
|
|
278
|
-
background: var(--gradient-background-primary-secondary);
|
|
279
|
+
z-index: 2;
|
|
279
280
|
}
|
|
280
|
-
.prokodo-
|
|
281
|
-
|
|
282
|
-
}
|
|
283
|
-
.prokodo-Slider__thumb--focused {
|
|
284
|
-
box-shadow: 0 0 0 6px rgba(var(--color-primary-700-rgb), 0.3);
|
|
285
|
-
outline: none;
|
|
286
|
-
outline: 3px solid #1E90FF;
|
|
287
|
-
outline-offset: 4px;
|
|
288
|
-
border-radius: 100%;
|
|
281
|
+
.prokodo-Slider__input:disabled {
|
|
282
|
+
cursor: not-allowed;
|
|
289
283
|
}
|
|
290
284
|
.prokodo-Slider__valueText {
|
|
291
285
|
position: absolute;
|
|
292
|
-
top:
|
|
293
|
-
white-space: nowrap;
|
|
286
|
+
top: 0;
|
|
294
287
|
transform: translateX(-50%);
|
|
295
|
-
|
|
288
|
+
background-color: var(--pk-slider-tooltip-bg);
|
|
289
|
+
color: var(--pk-slider-tooltip-fg);
|
|
290
|
+
border-radius: 999px;
|
|
291
|
+
padding: 3px calc(var(--pk-space-xs) * 1.5);
|
|
292
|
+
height: var(--pk-slider-tooltip-height);
|
|
293
|
+
display: flex;
|
|
294
|
+
align-items: center;
|
|
295
|
+
white-space: nowrap;
|
|
296
|
+
pointer-events: none;
|
|
297
|
+
z-index: 1;
|
|
298
|
+
opacity: 0;
|
|
299
|
+
transition: opacity var(--pk-slider-timing) ease;
|
|
296
300
|
font-weight: 400;
|
|
297
301
|
font-size: 1rem;
|
|
298
|
-
font-family: var(--font-
|
|
302
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
299
303
|
font-style: normal;
|
|
300
|
-
line-height: 1.
|
|
304
|
+
line-height: 1.45;
|
|
301
305
|
letter-spacing: 0.03em;
|
|
302
306
|
text-transform: none;
|
|
303
307
|
text-align: left;
|
|
304
308
|
text-decoration: none;
|
|
309
|
+
}
|
|
310
|
+
@media screen and (min-width: 480px) {
|
|
311
|
+
.prokodo-Slider__valueText {
|
|
312
|
+
font-size: 0.875rem;
|
|
313
|
+
line-height: 1.4;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
@media screen and (min-width: 960px) {
|
|
317
|
+
.prokodo-Slider__valueText {
|
|
318
|
+
font-size: 0.875rem;
|
|
319
|
+
line-height: 1.4;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
.prokodo-Slider__valueText--focused {
|
|
323
|
+
opacity: 1;
|
|
324
|
+
}
|
|
325
|
+
@media (hover: hover) {
|
|
326
|
+
.prokodo-Slider:hover .prokodo-Slider__root {
|
|
327
|
+
margin-top: 0;
|
|
328
|
+
}
|
|
329
|
+
.prokodo-Slider:hover .prokodo-Slider__valueText {
|
|
330
|
+
opacity: 1;
|
|
331
|
+
}
|
|
332
|
+
.prokodo-Slider:hover .prokodo-Slider__label {
|
|
333
|
+
transform: translateY(var(--pk-space-xs));
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
.prokodo-Slider:has(.prokodo-Slider__valueText--focused) .prokodo-Slider__root {
|
|
337
|
+
margin-top: 0;
|
|
338
|
+
}
|
|
339
|
+
.prokodo-Slider:has(.prokodo-Slider__valueText--focused) .prokodo-Slider__label {
|
|
340
|
+
transform: translateY(var(--pk-space-xs));
|
|
341
|
+
}
|
|
342
|
+
@media (hover: none) {
|
|
343
|
+
.prokodo-Slider__root {
|
|
344
|
+
margin-top: 0;
|
|
345
|
+
}
|
|
346
|
+
.prokodo-Slider__valueText {
|
|
347
|
+
opacity: 1;
|
|
348
|
+
}
|
|
349
|
+
.prokodo-Slider__label {
|
|
350
|
+
transition: none;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
.prokodo-Slider__thumb {
|
|
354
|
+
position: absolute;
|
|
355
|
+
top: calc(var(--pk-slider-tooltip-height) + var(--pk-slider-tooltip-gap) + var(--pk-slider-thumb-size) / 2);
|
|
356
|
+
transform: translate(-50%, -50%);
|
|
357
|
+
width: var(--pk-slider-thumb-size);
|
|
358
|
+
height: var(--pk-slider-thumb-size);
|
|
359
|
+
border-radius: 50%;
|
|
360
|
+
background: radial-gradient(circle at 38% 38%, color-mix(in srgb, var(--pk-slider-fill-to) 60%, white 40%), var(--pk-slider-fill-from) 70%);
|
|
361
|
+
border: 2.5px solid var(--pk-slider-thumb-border);
|
|
362
|
+
box-shadow: var(--pk-shadow-sm), 0 0 0 4px rgb(var(--pk-slider-thumb-glow-rgb)/0.18);
|
|
363
|
+
pointer-events: none;
|
|
364
|
+
z-index: 1;
|
|
365
|
+
transition: box-shadow var(--pk-slider-timing) ease, transform var(--pk-slider-timing) ease;
|
|
366
|
+
}
|
|
367
|
+
.prokodo-Slider__thumb--focused {
|
|
368
|
+
box-shadow: var(--pk-shadow-sm), 0 0 0 8px rgb(var(--pk-slider-thumb-glow-rgb)/0.3);
|
|
369
|
+
transform: translate(-50%, -50%) scale(1.12);
|
|
305
370
|
}
|