@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
|
@@ -126,4 +126,20 @@
|
|
|
126
126
|
*/
|
|
127
127
|
.prokodo-Lottie__container {
|
|
128
128
|
position: relative;
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
.prokodo-Lottie__placeholder {
|
|
132
|
+
width: 100%;
|
|
133
|
+
aspect-ratio: 1/1;
|
|
134
|
+
border-radius: var(--pk-radius-md);
|
|
135
|
+
background-color: var(--pk-color-surface-subtle);
|
|
136
|
+
animation: pulse var(--pk-timing-slow) ease-in-out infinite alternate;
|
|
137
|
+
}
|
|
138
|
+
@keyframes pulse {
|
|
139
|
+
from {
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}
|
|
142
|
+
to {
|
|
143
|
+
opacity: 0.4;
|
|
144
|
+
}
|
|
129
145
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
const pulse = "pulse";
|
|
1
2
|
const styles = {
|
|
2
|
-
"prokodo-Lottie__container": "prokodo-Lottie__container"
|
|
3
|
+
"prokodo-Lottie__container": "prokodo-Lottie__container",
|
|
4
|
+
"prokodo-Lottie__placeholder": "prokodo-Lottie__placeholder",
|
|
5
|
+
pulse
|
|
3
6
|
};
|
|
4
7
|
export {
|
|
5
|
-
styles as default
|
|
8
|
+
styles as default,
|
|
9
|
+
pulse
|
|
6
10
|
};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Calculates a rem-based value by a given pixel size.
|
|
4
|
+
*/
|
|
5
|
+
/* stylelint-disable */
|
|
6
|
+
/**
|
|
7
|
+
* Applies flex-column and gap.
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
As example (light, primary)
|
|
11
|
+
See defined modes in designsystem/config/gradients
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Mixin that renders a media query that target screens that are larger than the
|
|
15
|
+
* given size.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Mixin that renders a media query that target screens that are smaller than the
|
|
19
|
+
* given size.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Mixin that renders a media query that target screens in between the given range.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Mixin that renders a media query that target screens that have height larger than the
|
|
26
|
+
* given size.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Mixin that renders a media query that target screens that have height smaller than the
|
|
30
|
+
* given size.
|
|
31
|
+
*/
|
|
32
|
+
/* stylelint-disable */
|
|
33
|
+
/* M3/Elevation Light/1 */
|
|
34
|
+
/* M3/Elevation Light/2 */
|
|
35
|
+
/* M3/Elevation/5 */
|
|
36
|
+
/* M3/Elevation/1 Text */
|
|
37
|
+
/* Inner elevations */
|
|
38
|
+
/* stylelint-disable */
|
|
39
|
+
/**
|
|
40
|
+
* Visually hides an element but not removes them for screen readers.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* The inverse of the `hidden` helper to reset a previously hidden element to be
|
|
44
|
+
* visible for users.
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* Creates a selector for :hover effects depending on the current user input
|
|
48
|
+
* device. If the input device is a mouse, this hover effect will appear.
|
|
49
|
+
* Keyboard and touch inputs are ignored.
|
|
50
|
+
*
|
|
51
|
+
* Example usage:
|
|
52
|
+
* .link {
|
|
53
|
+
* color: blue;
|
|
54
|
+
*
|
|
55
|
+
* @include when-hovered() {
|
|
56
|
+
* color: green;
|
|
57
|
+
* }
|
|
58
|
+
* }
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* Creates a selector for :active effects depending on the current user input
|
|
62
|
+
* device. The state applies when the input device is a mouse or keyboard. Touch
|
|
63
|
+
* devices will not show a pressed state.
|
|
64
|
+
*
|
|
65
|
+
* Example usage:
|
|
66
|
+
* .link {
|
|
67
|
+
* box-shadow: none;
|
|
68
|
+
*
|
|
69
|
+
* @include when-pressed() {
|
|
70
|
+
* box-shadow: inset 0 2px 4px grey;
|
|
71
|
+
* }
|
|
72
|
+
* }
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Creates a selector for :focus effects depending on the current user input
|
|
76
|
+
* device. When the user navigates using a keyboard, the focus effect defined in
|
|
77
|
+
* here is applied. For other input devices they don't show up.
|
|
78
|
+
*
|
|
79
|
+
* Example usage:
|
|
80
|
+
* .link {
|
|
81
|
+
* text-decoration: none;
|
|
82
|
+
*
|
|
83
|
+
* @include when-focused() {
|
|
84
|
+
* text-decoration: underline;
|
|
85
|
+
* }
|
|
86
|
+
* }
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* Creates a selector for :focus-within effects depending on the current user
|
|
90
|
+
* input device. When the user navigates using a keyboard, the focus effect
|
|
91
|
+
* defined in here is applied. For other input devices they don't show up.
|
|
92
|
+
*
|
|
93
|
+
* Example usage:
|
|
94
|
+
* .link {
|
|
95
|
+
* img {
|
|
96
|
+
* opacity: 0.75;
|
|
97
|
+
*
|
|
98
|
+
* @include when-focused-within() {
|
|
99
|
+
* opacity: 1;
|
|
100
|
+
* }
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* Wrapper for media query "prefers-reduced-motion".
|
|
106
|
+
*/
|
|
107
|
+
/**
|
|
108
|
+
* This helper hides the outline but still makes it visible for
|
|
109
|
+
* Windows high-contrast users. Use this instead of `outline: 0;`.
|
|
110
|
+
*/
|
|
111
|
+
/**
|
|
112
|
+
* This helper hides the outline but still makes it visible for
|
|
113
|
+
* Windows high-contrast users. Use this instead of `outline: 0;`.
|
|
114
|
+
*/
|
|
115
|
+
/**
|
|
116
|
+
* Renders an alternative, but application consistent focus-ring.
|
|
117
|
+
*/
|
|
118
|
+
/**
|
|
119
|
+
* Specifies the outer layout for all contents across breakpoints. Apply this
|
|
120
|
+
* mixin to the container element, to center the contents on the screen within
|
|
121
|
+
* the layout offsets.
|
|
122
|
+
*/
|
|
123
|
+
/**
|
|
124
|
+
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
|
+
* content.
|
|
126
|
+
*/
|
|
127
|
+
.prokodo-Map__container {
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: var(--pk-map-height, 500px);
|
|
130
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useRef, useState, useCallback, useEffect } from "react";
|
|
3
|
+
import { create } from "../../helpers/bem.js";
|
|
3
4
|
import { isString, isArray } from "../../helpers/validations.js";
|
|
4
5
|
import { useGoogleMaps } from "../../hooks/useGoogleMaps.js";
|
|
6
|
+
import styles from "./Map.module.scss.js";
|
|
5
7
|
import { Skeleton } from "../skeleton/Skeleton.js";
|
|
8
|
+
const bem = create(styles, "Map");
|
|
6
9
|
const Map = memo(
|
|
7
10
|
({ apiKey, mapId, center, marker, zoom = 8 }) => {
|
|
8
11
|
const mapRef = useRef(null);
|
|
@@ -75,9 +78,9 @@ const Map = memo(
|
|
|
75
78
|
[initMap]
|
|
76
79
|
);
|
|
77
80
|
if (!loaded) {
|
|
78
|
-
return /* @__PURE__ */ jsx(Skeleton, {
|
|
81
|
+
return /* @__PURE__ */ jsx(Skeleton, { className: bem("container") });
|
|
79
82
|
}
|
|
80
|
-
return /* @__PURE__ */ jsx("div", { ref: mapRef,
|
|
83
|
+
return /* @__PURE__ */ jsx("div", { ref: mapRef, className: bem("container") });
|
|
81
84
|
}
|
|
82
85
|
);
|
|
83
86
|
Map.displayName = "Map";
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Calculates a rem-based value by a given pixel size.
|
|
4
|
+
*/
|
|
5
|
+
/* stylelint-disable */
|
|
6
|
+
/**
|
|
7
|
+
* Applies flex-column and gap.
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
As example (light, primary)
|
|
11
|
+
See defined modes in designsystem/config/gradients
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Mixin that renders a media query that target screens that are larger than the
|
|
15
|
+
* given size.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Mixin that renders a media query that target screens that are smaller than the
|
|
19
|
+
* given size.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Mixin that renders a media query that target screens in between the given range.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Mixin that renders a media query that target screens that have height larger than the
|
|
26
|
+
* given size.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Mixin that renders a media query that target screens that have height smaller than the
|
|
30
|
+
* given size.
|
|
31
|
+
*/
|
|
32
|
+
/* stylelint-disable */
|
|
33
|
+
/* M3/Elevation Light/1 */
|
|
34
|
+
/* M3/Elevation Light/2 */
|
|
35
|
+
/* M3/Elevation/5 */
|
|
36
|
+
/* M3/Elevation/1 Text */
|
|
37
|
+
/* Inner elevations */
|
|
38
|
+
/* stylelint-disable */
|
|
39
|
+
/**
|
|
40
|
+
* Visually hides an element but not removes them for screen readers.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* The inverse of the `hidden` helper to reset a previously hidden element to be
|
|
44
|
+
* visible for users.
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* Creates a selector for :hover effects depending on the current user input
|
|
48
|
+
* device. If the input device is a mouse, this hover effect will appear.
|
|
49
|
+
* Keyboard and touch inputs are ignored.
|
|
50
|
+
*
|
|
51
|
+
* Example usage:
|
|
52
|
+
* .link {
|
|
53
|
+
* color: blue;
|
|
54
|
+
*
|
|
55
|
+
* @include when-hovered() {
|
|
56
|
+
* color: green;
|
|
57
|
+
* }
|
|
58
|
+
* }
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* Creates a selector for :active effects depending on the current user input
|
|
62
|
+
* device. The state applies when the input device is a mouse or keyboard. Touch
|
|
63
|
+
* devices will not show a pressed state.
|
|
64
|
+
*
|
|
65
|
+
* Example usage:
|
|
66
|
+
* .link {
|
|
67
|
+
* box-shadow: none;
|
|
68
|
+
*
|
|
69
|
+
* @include when-pressed() {
|
|
70
|
+
* box-shadow: inset 0 2px 4px grey;
|
|
71
|
+
* }
|
|
72
|
+
* }
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Creates a selector for :focus effects depending on the current user input
|
|
76
|
+
* device. When the user navigates using a keyboard, the focus effect defined in
|
|
77
|
+
* here is applied. For other input devices they don't show up.
|
|
78
|
+
*
|
|
79
|
+
* Example usage:
|
|
80
|
+
* .link {
|
|
81
|
+
* text-decoration: none;
|
|
82
|
+
*
|
|
83
|
+
* @include when-focused() {
|
|
84
|
+
* text-decoration: underline;
|
|
85
|
+
* }
|
|
86
|
+
* }
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* Creates a selector for :focus-within effects depending on the current user
|
|
90
|
+
* input device. When the user navigates using a keyboard, the focus effect
|
|
91
|
+
* defined in here is applied. For other input devices they don't show up.
|
|
92
|
+
*
|
|
93
|
+
* Example usage:
|
|
94
|
+
* .link {
|
|
95
|
+
* img {
|
|
96
|
+
* opacity: 0.75;
|
|
97
|
+
*
|
|
98
|
+
* @include when-focused-within() {
|
|
99
|
+
* opacity: 1;
|
|
100
|
+
* }
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* Wrapper for media query "prefers-reduced-motion".
|
|
106
|
+
*/
|
|
107
|
+
/**
|
|
108
|
+
* This helper hides the outline but still makes it visible for
|
|
109
|
+
* Windows high-contrast users. Use this instead of `outline: 0;`.
|
|
110
|
+
*/
|
|
111
|
+
/**
|
|
112
|
+
* This helper hides the outline but still makes it visible for
|
|
113
|
+
* Windows high-contrast users. Use this instead of `outline: 0;`.
|
|
114
|
+
*/
|
|
115
|
+
/**
|
|
116
|
+
* Renders an alternative, but application consistent focus-ring.
|
|
117
|
+
*/
|
|
118
|
+
/**
|
|
119
|
+
* Specifies the outer layout for all contents across breakpoints. Apply this
|
|
120
|
+
* mixin to the container element, to center the contents on the screen within
|
|
121
|
+
* the layout offsets.
|
|
122
|
+
*/
|
|
123
|
+
/**
|
|
124
|
+
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
|
+
* content.
|
|
126
|
+
*/
|
|
127
|
+
.prokodo-Map__container {
|
|
128
|
+
width: 100%;
|
|
129
|
+
height: var(--pk-map-height, 500px);
|
|
130
|
+
}
|
|
@@ -124,15 +124,99 @@
|
|
|
124
124
|
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
|
+
@keyframes pk-pagination-pulse {
|
|
128
|
+
0%, 100% {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
transform: scale(1);
|
|
131
|
+
}
|
|
132
|
+
50% {
|
|
133
|
+
opacity: 0.4;
|
|
134
|
+
transform: scale(0.96);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
127
137
|
.prokodo-Pagination {
|
|
128
138
|
display: inline-flex;
|
|
129
139
|
align-items: center;
|
|
130
|
-
gap:
|
|
140
|
+
gap: var(--pk-pagination-gap);
|
|
141
|
+
}
|
|
142
|
+
.prokodo-Pagination--is-pending {
|
|
143
|
+
--pk-button-disabled-bg: transparent;
|
|
144
|
+
--pk-button-disabled-fg: var(--pk-pagination-fg);
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
}
|
|
147
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__btn, .prokodo-Pagination--is-pending .prokodo-Pagination__page {
|
|
148
|
+
animation: pk-pagination-pulse 1.4s ease-in-out infinite;
|
|
149
|
+
}
|
|
150
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__page--active {
|
|
151
|
+
animation-duration: 2.4s;
|
|
152
|
+
}
|
|
153
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(1) .prokodo-Pagination__page {
|
|
154
|
+
animation-delay: 0s;
|
|
155
|
+
}
|
|
156
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(2) .prokodo-Pagination__page {
|
|
157
|
+
animation-delay: 0.065s;
|
|
158
|
+
}
|
|
159
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(3) .prokodo-Pagination__page {
|
|
160
|
+
animation-delay: 0.13s;
|
|
161
|
+
}
|
|
162
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(4) .prokodo-Pagination__page {
|
|
163
|
+
animation-delay: 0.195s;
|
|
164
|
+
}
|
|
165
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(5) .prokodo-Pagination__page {
|
|
166
|
+
animation-delay: 0.26s;
|
|
167
|
+
}
|
|
168
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(6) .prokodo-Pagination__page {
|
|
169
|
+
animation-delay: 0.325s;
|
|
170
|
+
}
|
|
171
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(7) .prokodo-Pagination__page {
|
|
172
|
+
animation-delay: 0.39s;
|
|
173
|
+
}
|
|
174
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(8) .prokodo-Pagination__page {
|
|
175
|
+
animation-delay: 0.455s;
|
|
176
|
+
}
|
|
177
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(9) .prokodo-Pagination__page {
|
|
178
|
+
animation-delay: 0.52s;
|
|
179
|
+
}
|
|
180
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(10) .prokodo-Pagination__page {
|
|
181
|
+
animation-delay: 0.585s;
|
|
182
|
+
}
|
|
183
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(11) .prokodo-Pagination__page {
|
|
184
|
+
animation-delay: 0.65s;
|
|
185
|
+
}
|
|
186
|
+
.prokodo-Pagination--color-primary {
|
|
187
|
+
--pk-pagination-active-border: var(--pk-color-brand);
|
|
188
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-brand) 45%, transparent);
|
|
189
|
+
--pk-pagination-active-gradient: var(--gradient-border-4);
|
|
190
|
+
}
|
|
191
|
+
.prokodo-Pagination--color-secondary {
|
|
192
|
+
--pk-pagination-active-border: var(--pk-color-accent);
|
|
193
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-accent) 45%, transparent);
|
|
194
|
+
--pk-pagination-active-gradient: var(--gradient-border-2);
|
|
195
|
+
}
|
|
196
|
+
.prokodo-Pagination--color-success {
|
|
197
|
+
--pk-pagination-active-border: var(--pk-color-success);
|
|
198
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-success) 45%, transparent);
|
|
199
|
+
--pk-pagination-active-gradient: var(--gradient-border-success);
|
|
200
|
+
}
|
|
201
|
+
.prokodo-Pagination--color-error {
|
|
202
|
+
--pk-pagination-active-border: var(--pk-color-error);
|
|
203
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-error) 45%, transparent);
|
|
204
|
+
--pk-pagination-active-gradient: var(--gradient-border-error);
|
|
205
|
+
}
|
|
206
|
+
.prokodo-Pagination--color-warning {
|
|
207
|
+
--pk-pagination-active-border: var(--pk-color-warning);
|
|
208
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-warning) 45%, transparent);
|
|
209
|
+
--pk-pagination-active-gradient: var(--gradient-border-warning);
|
|
210
|
+
}
|
|
211
|
+
.prokodo-Pagination--color-info {
|
|
212
|
+
--pk-pagination-active-border: var(--pk-color-info);
|
|
213
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-info) 45%, transparent);
|
|
214
|
+
--pk-pagination-active-gradient: var(--gradient-border-info);
|
|
131
215
|
}
|
|
132
216
|
.prokodo-Pagination__list {
|
|
133
217
|
display: inline-flex;
|
|
134
218
|
align-items: center;
|
|
135
|
-
gap:
|
|
219
|
+
gap: var(--pk-pagination-gap);
|
|
136
220
|
margin: 0;
|
|
137
221
|
padding: 0;
|
|
138
222
|
list-style: none;
|
|
@@ -142,8 +226,8 @@
|
|
|
142
226
|
align-items: center;
|
|
143
227
|
}
|
|
144
228
|
.prokodo-Pagination__ellipsis {
|
|
145
|
-
color: var(--
|
|
146
|
-
padding: 0
|
|
229
|
+
color: var(--pk-pagination-fg);
|
|
230
|
+
padding: 0 var(--pk-pagination-pad-x);
|
|
147
231
|
-webkit-user-select: none;
|
|
148
232
|
-moz-user-select: none;
|
|
149
233
|
user-select: none;
|
|
@@ -172,20 +256,52 @@
|
|
|
172
256
|
.prokodo-Pagination__btn {
|
|
173
257
|
width: 40px;
|
|
174
258
|
height: 40px;
|
|
259
|
+
transition: box-shadow 140ms ease;
|
|
260
|
+
}
|
|
261
|
+
.prokodo-Pagination__btn:not(:disabled):hover {
|
|
262
|
+
box-shadow: 0 4px 14px color-mix(in srgb, var(--pk-pagination-active-border) 30%, transparent);
|
|
175
263
|
}
|
|
176
264
|
.prokodo-Pagination__page {
|
|
177
265
|
min-width: 36px;
|
|
178
266
|
height: 36px;
|
|
179
|
-
padding: 0
|
|
180
|
-
border-radius:
|
|
181
|
-
color: var(--
|
|
182
|
-
border:
|
|
267
|
+
padding: 0 var(--pk-pagination-pad-x);
|
|
268
|
+
border-radius: var(--pk-pagination-page-radius);
|
|
269
|
+
color: var(--pk-pagination-fg);
|
|
270
|
+
border: none !important;
|
|
271
|
+
background: transparent !important;
|
|
272
|
+
background-color: transparent !important;
|
|
183
273
|
text-align: center !important;
|
|
274
|
+
transition: box-shadow 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
|
|
184
275
|
}
|
|
185
|
-
|
|
186
|
-
|
|
276
|
+
.prokodo-Pagination__page:not(:disabled):hover {
|
|
277
|
+
background: color-mix(in srgb, var(--pk-pagination-active-bg) 10%, transparent) !important;
|
|
278
|
+
background-color: color-mix(in srgb, var(--pk-pagination-active-bg) 10%, transparent) !important;
|
|
279
|
+
color: var(--pk-pagination-active-border) !important;
|
|
280
|
+
transform: scale(1.05);
|
|
187
281
|
}
|
|
188
282
|
.prokodo-Pagination__page--active {
|
|
189
|
-
border: none;
|
|
190
283
|
pointer-events: none;
|
|
284
|
+
border-radius: calc(var(--pk-pagination-page-radius) + 2px);
|
|
285
|
+
box-shadow: var(--pk-pagination-active-shadow);
|
|
286
|
+
transform: scale(1.1);
|
|
287
|
+
font-weight: 600 !important;
|
|
288
|
+
letter-spacing: -0.01em;
|
|
289
|
+
transition: transform 140ms ease, box-shadow 140ms ease;
|
|
290
|
+
color: var(--pk-color-fg) !important;
|
|
291
|
+
background: transparent !important;
|
|
292
|
+
background-color: transparent !important;
|
|
293
|
+
--pk-button-disabled-bg: transparent;
|
|
294
|
+
--pk-button-disabled-fg: var(--pk-color-fg);
|
|
295
|
+
}
|
|
296
|
+
.prokodo-Pagination__page--active::before {
|
|
297
|
+
content: "";
|
|
298
|
+
position: absolute;
|
|
299
|
+
inset: 0;
|
|
300
|
+
border-radius: inherit;
|
|
301
|
+
padding: 2px;
|
|
302
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
303
|
+
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
304
|
+
-webkit-mask-composite: xor;
|
|
305
|
+
mask-composite: exclude;
|
|
306
|
+
background: var(--pk-pagination-active-gradient) !important;
|
|
191
307
|
}
|
|
@@ -124,15 +124,99 @@
|
|
|
124
124
|
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
|
+
@keyframes pk-pagination-pulse {
|
|
128
|
+
0%, 100% {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
transform: scale(1);
|
|
131
|
+
}
|
|
132
|
+
50% {
|
|
133
|
+
opacity: 0.4;
|
|
134
|
+
transform: scale(0.96);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
127
137
|
.prokodo-Pagination {
|
|
128
138
|
display: inline-flex;
|
|
129
139
|
align-items: center;
|
|
130
|
-
gap:
|
|
140
|
+
gap: var(--pk-pagination-gap);
|
|
141
|
+
}
|
|
142
|
+
.prokodo-Pagination--is-pending {
|
|
143
|
+
--pk-button-disabled-bg: transparent;
|
|
144
|
+
--pk-button-disabled-fg: var(--pk-pagination-fg);
|
|
145
|
+
pointer-events: none;
|
|
146
|
+
}
|
|
147
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__btn, .prokodo-Pagination--is-pending .prokodo-Pagination__page {
|
|
148
|
+
animation: pk-pagination-pulse 1.4s ease-in-out infinite;
|
|
149
|
+
}
|
|
150
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__page--active {
|
|
151
|
+
animation-duration: 2.4s;
|
|
152
|
+
}
|
|
153
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(1) .prokodo-Pagination__page {
|
|
154
|
+
animation-delay: 0s;
|
|
155
|
+
}
|
|
156
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(2) .prokodo-Pagination__page {
|
|
157
|
+
animation-delay: 0.065s;
|
|
158
|
+
}
|
|
159
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(3) .prokodo-Pagination__page {
|
|
160
|
+
animation-delay: 0.13s;
|
|
161
|
+
}
|
|
162
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(4) .prokodo-Pagination__page {
|
|
163
|
+
animation-delay: 0.195s;
|
|
164
|
+
}
|
|
165
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(5) .prokodo-Pagination__page {
|
|
166
|
+
animation-delay: 0.26s;
|
|
167
|
+
}
|
|
168
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(6) .prokodo-Pagination__page {
|
|
169
|
+
animation-delay: 0.325s;
|
|
170
|
+
}
|
|
171
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(7) .prokodo-Pagination__page {
|
|
172
|
+
animation-delay: 0.39s;
|
|
173
|
+
}
|
|
174
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(8) .prokodo-Pagination__page {
|
|
175
|
+
animation-delay: 0.455s;
|
|
176
|
+
}
|
|
177
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(9) .prokodo-Pagination__page {
|
|
178
|
+
animation-delay: 0.52s;
|
|
179
|
+
}
|
|
180
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(10) .prokodo-Pagination__page {
|
|
181
|
+
animation-delay: 0.585s;
|
|
182
|
+
}
|
|
183
|
+
.prokodo-Pagination--is-pending .prokodo-Pagination__item:nth-child(11) .prokodo-Pagination__page {
|
|
184
|
+
animation-delay: 0.65s;
|
|
185
|
+
}
|
|
186
|
+
.prokodo-Pagination--color-primary {
|
|
187
|
+
--pk-pagination-active-border: var(--pk-color-brand);
|
|
188
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-brand) 45%, transparent);
|
|
189
|
+
--pk-pagination-active-gradient: var(--gradient-border-4);
|
|
190
|
+
}
|
|
191
|
+
.prokodo-Pagination--color-secondary {
|
|
192
|
+
--pk-pagination-active-border: var(--pk-color-accent);
|
|
193
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-accent) 45%, transparent);
|
|
194
|
+
--pk-pagination-active-gradient: var(--gradient-border-2);
|
|
195
|
+
}
|
|
196
|
+
.prokodo-Pagination--color-success {
|
|
197
|
+
--pk-pagination-active-border: var(--pk-color-success);
|
|
198
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-success) 45%, transparent);
|
|
199
|
+
--pk-pagination-active-gradient: var(--gradient-border-success);
|
|
200
|
+
}
|
|
201
|
+
.prokodo-Pagination--color-error {
|
|
202
|
+
--pk-pagination-active-border: var(--pk-color-error);
|
|
203
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-error) 45%, transparent);
|
|
204
|
+
--pk-pagination-active-gradient: var(--gradient-border-error);
|
|
205
|
+
}
|
|
206
|
+
.prokodo-Pagination--color-warning {
|
|
207
|
+
--pk-pagination-active-border: var(--pk-color-warning);
|
|
208
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-warning) 45%, transparent);
|
|
209
|
+
--pk-pagination-active-gradient: var(--gradient-border-warning);
|
|
210
|
+
}
|
|
211
|
+
.prokodo-Pagination--color-info {
|
|
212
|
+
--pk-pagination-active-border: var(--pk-color-info);
|
|
213
|
+
--pk-pagination-active-shadow: 0 4px 18px color-mix(in srgb, var(--pk-color-info) 45%, transparent);
|
|
214
|
+
--pk-pagination-active-gradient: var(--gradient-border-info);
|
|
131
215
|
}
|
|
132
216
|
.prokodo-Pagination__list {
|
|
133
217
|
display: inline-flex;
|
|
134
218
|
align-items: center;
|
|
135
|
-
gap:
|
|
219
|
+
gap: var(--pk-pagination-gap);
|
|
136
220
|
margin: 0;
|
|
137
221
|
padding: 0;
|
|
138
222
|
list-style: none;
|
|
@@ -142,8 +226,8 @@
|
|
|
142
226
|
align-items: center;
|
|
143
227
|
}
|
|
144
228
|
.prokodo-Pagination__ellipsis {
|
|
145
|
-
color: var(--
|
|
146
|
-
padding: 0
|
|
229
|
+
color: var(--pk-pagination-fg);
|
|
230
|
+
padding: 0 var(--pk-pagination-pad-x);
|
|
147
231
|
-webkit-user-select: none;
|
|
148
232
|
-moz-user-select: none;
|
|
149
233
|
user-select: none;
|
|
@@ -172,20 +256,52 @@
|
|
|
172
256
|
.prokodo-Pagination__btn {
|
|
173
257
|
width: 40px;
|
|
174
258
|
height: 40px;
|
|
259
|
+
transition: box-shadow 140ms ease;
|
|
260
|
+
}
|
|
261
|
+
.prokodo-Pagination__btn:not(:disabled):hover {
|
|
262
|
+
box-shadow: 0 4px 14px color-mix(in srgb, var(--pk-pagination-active-border) 30%, transparent);
|
|
175
263
|
}
|
|
176
264
|
.prokodo-Pagination__page {
|
|
177
265
|
min-width: 36px;
|
|
178
266
|
height: 36px;
|
|
179
|
-
padding: 0
|
|
180
|
-
border-radius:
|
|
181
|
-
color: var(--
|
|
182
|
-
border:
|
|
267
|
+
padding: 0 var(--pk-pagination-pad-x);
|
|
268
|
+
border-radius: var(--pk-pagination-page-radius);
|
|
269
|
+
color: var(--pk-pagination-fg);
|
|
270
|
+
border: none !important;
|
|
271
|
+
background: transparent !important;
|
|
272
|
+
background-color: transparent !important;
|
|
183
273
|
text-align: center !important;
|
|
274
|
+
transition: box-shadow 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
|
|
184
275
|
}
|
|
185
|
-
|
|
186
|
-
|
|
276
|
+
.prokodo-Pagination__page:not(:disabled):hover {
|
|
277
|
+
background: color-mix(in srgb, var(--pk-pagination-active-bg) 10%, transparent) !important;
|
|
278
|
+
background-color: color-mix(in srgb, var(--pk-pagination-active-bg) 10%, transparent) !important;
|
|
279
|
+
color: var(--pk-pagination-active-border) !important;
|
|
280
|
+
transform: scale(1.05);
|
|
187
281
|
}
|
|
188
282
|
.prokodo-Pagination__page--active {
|
|
189
|
-
border: none;
|
|
190
283
|
pointer-events: none;
|
|
284
|
+
border-radius: calc(var(--pk-pagination-page-radius) + 2px);
|
|
285
|
+
box-shadow: var(--pk-pagination-active-shadow);
|
|
286
|
+
transform: scale(1.1);
|
|
287
|
+
font-weight: 600 !important;
|
|
288
|
+
letter-spacing: -0.01em;
|
|
289
|
+
transition: transform 140ms ease, box-shadow 140ms ease;
|
|
290
|
+
color: var(--pk-color-fg) !important;
|
|
291
|
+
background: transparent !important;
|
|
292
|
+
background-color: transparent !important;
|
|
293
|
+
--pk-button-disabled-bg: transparent;
|
|
294
|
+
--pk-button-disabled-fg: var(--pk-color-fg);
|
|
295
|
+
}
|
|
296
|
+
.prokodo-Pagination__page--active::before {
|
|
297
|
+
content: "";
|
|
298
|
+
position: absolute;
|
|
299
|
+
inset: 0;
|
|
300
|
+
border-radius: inherit;
|
|
301
|
+
padding: 2px;
|
|
302
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
303
|
+
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
304
|
+
-webkit-mask-composite: xor;
|
|
305
|
+
mask-composite: exclude;
|
|
306
|
+
background: var(--pk-pagination-active-gradient) !important;
|
|
191
307
|
}
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
const styles = {
|
|
2
2
|
"prokodo-Pagination": "prokodo-Pagination",
|
|
3
|
-
"prokodo-
|
|
4
|
-
"prokodo-Pagination__item": "prokodo-Pagination__item",
|
|
5
|
-
"prokodo-Pagination__ellipsis": "prokodo-Pagination__ellipsis",
|
|
3
|
+
"prokodo-Pagination--is-pending": "prokodo-Pagination--is-pending",
|
|
6
4
|
"prokodo-Pagination__btn": "prokodo-Pagination__btn",
|
|
7
5
|
"prokodo-Pagination__page": "prokodo-Pagination__page",
|
|
8
|
-
"
|
|
6
|
+
"pk-pagination-pulse": "pk-pagination-pulse",
|
|
7
|
+
"prokodo-Pagination__page--active": "prokodo-Pagination__page--active",
|
|
8
|
+
"prokodo-Pagination__item": "prokodo-Pagination__item",
|
|
9
|
+
"prokodo-Pagination--color-primary": "prokodo-Pagination--color-primary",
|
|
10
|
+
"prokodo-Pagination--color-secondary": "prokodo-Pagination--color-secondary",
|
|
11
|
+
"prokodo-Pagination--color-success": "prokodo-Pagination--color-success",
|
|
12
|
+
"prokodo-Pagination--color-error": "prokodo-Pagination--color-error",
|
|
13
|
+
"prokodo-Pagination--color-warning": "prokodo-Pagination--color-warning",
|
|
14
|
+
"prokodo-Pagination--color-info": "prokodo-Pagination--color-info",
|
|
15
|
+
"prokodo-Pagination__list": "prokodo-Pagination__list",
|
|
16
|
+
"prokodo-Pagination__ellipsis": "prokodo-Pagination__ellipsis"
|
|
9
17
|
};
|
|
10
18
|
export {
|
|
11
19
|
styles as default
|