@prokodo/ui 0.1.14 → 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.client.js +0 -1
- package/dist/components/RTE/RTE.css +180 -68
- package/dist/components/RTE/RTE.js +4 -1
- 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.js +8 -2
- 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 +4 -4
- package/dist/components/animated/Animated.client.js +13 -5
- package/dist/components/animated/Animated.js +8 -2
- package/dist/components/animatedText/AnimatedText.client.js +10 -2
- package/dist/components/animatedText/AnimatedText.js +8 -2
- package/dist/components/autocomplete/Autocomplete.client.js +5 -1
- package/dist/components/autocomplete/Autocomplete.css +111 -95
- package/dist/components/autocomplete/Autocomplete.js +4 -1
- 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 +16 -5
- package/dist/components/avatar/Avatar.css +11 -8
- package/dist/components/avatar/Avatar.js +4 -1
- 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 +22 -15
- package/dist/components/base-link/BaseLink.js +4 -1
- package/dist/components/base-link/BaseLink.view.js +3 -0
- package/dist/components/button/Button.client.js +12 -16
- package/dist/components/button/Button.css +85 -137
- package/dist/components/button/Button.js +4 -1
- 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 +8 -2
- package/dist/components/calendly/Calendly.css +132 -0
- package/dist/components/calendly/Calendly.js +8 -2
- 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.js +11 -5
- 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 +25 -8
- package/dist/components/carousel/Carousel.client.js +138 -129
- package/dist/components/carousel/Carousel.css +8 -4
- package/dist/components/carousel/Carousel.js +8 -2
- package/dist/components/carousel/Carousel.module.css +8 -4
- package/dist/components/carousel/Carousel.view.js +10 -0
- package/dist/components/checkbox/Checkbox.css +100 -79
- package/dist/components/checkbox/Checkbox.js +4 -1
- 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 +7 -2
- package/dist/components/checkbox-group/CheckboxGroup.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.js +4 -1
- 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 +7 -2
- package/dist/components/chip/Chip.css +185 -61
- package/dist/components/chip/Chip.js +4 -1
- 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 +7 -4
- package/dist/components/datePicker/DatePicker.client.js +211 -66
- package/dist/components/datePicker/DatePicker.css +940 -0
- package/dist/components/datePicker/DatePicker.js +4 -1
- 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.js +8 -2
- package/dist/components/dialog/Dialog.module.css +107 -132
- package/dist/components/dialog/Dialog.module.scss.js +13 -8
- package/dist/components/dialog/Dialog.view.js +23 -5
- package/dist/components/drawer/Drawer.client.js +0 -1
- package/dist/components/drawer/Drawer.css +8 -8
- package/dist/components/drawer/Drawer.js +4 -1
- package/dist/components/drawer/Drawer.module.css +8 -8
- package/dist/components/drawer/Drawer.view.js +14 -3
- package/dist/components/dynamic-list/DynamicList.client.js +1 -0
- package/dist/components/dynamic-list/DynamicList.css +20 -12
- package/dist/components/dynamic-list/DynamicList.js +4 -1
- 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 +89 -44
- package/dist/components/form/Form.client.js +4 -1
- package/dist/components/form/Form.js +4 -1
- package/dist/components/form/Form.view.js +6 -4
- package/dist/components/form/FormField.client.js +59 -4
- package/dist/components/form/FormField.js +4 -1
- package/dist/components/form/FormField.server.js +10 -4
- package/dist/components/form/FormResponse.js +6 -3
- 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 +13 -8
- 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.js +8 -2
- package/dist/components/icon/Icon.module.css +14 -14
- package/dist/components/image/Image.client.js +9 -5
- package/dist/components/image/Image.css +4 -3
- package/dist/components/image/Image.js +8 -2
- package/dist/components/image/Image.module.css +4 -3
- package/dist/components/image/Image.server.js +2 -1
- package/dist/components/image-text/ImageText.css +43 -14
- package/dist/components/image-text/ImageText.js +68 -50
- 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.client.js +15 -2
- package/dist/components/input/Input.css +197 -115
- package/dist/components/input/Input.js +4 -1
- 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 +102 -63
- package/dist/components/input/InputValidation.js +6 -2
- package/dist/components/inputOTP/InputOTP.client.js +165 -0
- package/dist/components/inputOTP/InputOTP.css +155 -7
- package/dist/components/inputOTP/InputOTP.js +10 -194
- 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.js +5 -3
- package/dist/components/link/Link.module.css +13 -13
- package/dist/components/link/Link.view.js +16 -13
- package/dist/components/list/List.css +71 -32
- package/dist/components/list/List.js +74 -28
- package/dist/components/list/List.module.css +71 -32
- package/dist/components/list/List.module.scss.js +1 -1
- package/dist/components/loading/Loading.js +4 -1
- package/dist/components/loading/Loading.view.js +47 -7
- package/dist/components/lottie/Lottie.css +16 -0
- package/dist/components/lottie/Lottie.js +9 -5
- 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 +67 -46
- 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.js +4 -1
- 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 +16 -2
- package/dist/components/post-item/PostItem.css +16 -16
- package/dist/components/post-item/PostItem.js +4 -1
- package/dist/components/post-item/PostItem.module.css +16 -16
- package/dist/components/post-item/PostItem.view.js +14 -5
- package/dist/components/post-item/PostItemAuthor.js +4 -1
- package/dist/components/post-teaser/PostTeaser.css +13 -13
- package/dist/components/post-teaser/PostTeaser.js +4 -1
- package/dist/components/post-teaser/PostTeaser.module.css +13 -13
- package/dist/components/post-teaser/PostTeaser.view.js +14 -5
- package/dist/components/post-widget/PostWidget.css +6 -8
- package/dist/components/post-widget/PostWidget.js +5 -3
- package/dist/components/post-widget/PostWidget.module.css +6 -8
- package/dist/components/post-widget/PostWidget.view.js +21 -8
- package/dist/components/post-widget-carousel/PostWidgetCarousel.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.js +8 -2
- package/dist/components/post-widget-carousel/PostWidgetCarousel.module.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +32 -14
- package/dist/components/progressBar/ProgressBar.css +4 -4
- package/dist/components/progressBar/ProgressBar.js +8 -2
- package/dist/components/progressBar/ProgressBar.module.css +4 -4
- package/dist/components/progressBar/ProgressBar.view.js +6 -3
- 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.client.js +6 -1
- package/dist/components/rating/Rating.css +34 -21
- package/dist/components/rating/Rating.js +4 -1
- 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 +55 -20
- package/dist/components/rich-text/RichText.css +47 -31
- package/dist/components/rich-text/RichText.js +8 -2
- package/dist/components/rich-text/RichText.module.css +47 -31
- package/dist/components/rich-text/RichText.server.js +3 -0
- package/dist/components/select/Select.client.js +303 -102
- package/dist/components/select/Select.css +542 -221
- package/dist/components/select/Select.js +8 -2
- 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 +75 -25
- package/dist/components/sidenav/SideNav.client.js +24 -1
- package/dist/components/sidenav/SideNav.css +89 -21
- package/dist/components/sidenav/SideNav.js +8 -2
- 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.client.js +11 -2
- package/dist/components/slider/Slider.css +177 -112
- package/dist/components/slider/Slider.js +4 -1
- 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 +140 -90
- package/dist/components/snackbar/Snackbar.client.js +5 -1
- package/dist/components/snackbar/Snackbar.css +125 -64
- package/dist/components/snackbar/Snackbar.js +4 -1
- 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/snackbar/SnackbarProvider.js +8 -2
- package/dist/components/stepper/Stepper.client.js +27 -9
- package/dist/components/stepper/Stepper.css +46 -11
- package/dist/components/stepper/Stepper.js +4 -1
- 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.js +4 -1
- 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 +10 -8
- package/dist/components/table/Table.css +19 -14
- package/dist/components/table/Table.js +1 -0
- package/dist/components/table/Table.module.css +19 -14
- package/dist/components/tabs/Tabs.client.js +1 -0
- package/dist/components/tabs/Tabs.css +53 -27
- package/dist/components/tabs/Tabs.js +8 -2
- 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 +12 -4
- 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 +140 -95
- package/dist/components/tooltip/Tooltip.css +46 -9
- package/dist/components/tooltip/Tooltip.js +10 -4
- 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 +7 -1
- package/dist/constants/project.js +1 -1
- package/dist/helpers/createIsland.js +1 -0
- package/dist/helpers/createLazyWrapper.js +1 -0
- package/dist/hooks/useGoogleMaps.js +0 -1
- package/dist/theme.css +3269 -1588
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/RTE/RTE.d.ts +6 -1
- package/dist/types/components/RTE/RTE.lazy.d.ts +6 -1
- 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/carousel/Carousel.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 +3 -1
- 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 +2 -2
- 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 +53 -24
|
@@ -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
|
}
|
|
@@ -5,7 +5,10 @@ import PaginationServer from "./Pagination.server.js";
|
|
|
5
5
|
const Pagination = createIsland({
|
|
6
6
|
name: "Pagination",
|
|
7
7
|
Server: PaginationServer,
|
|
8
|
-
loadLazy:
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./Pagination.lazy.js"), "loadLazy")
|
|
11
|
+
)
|
|
9
12
|
});
|
|
10
13
|
export {
|
|
11
14
|
Pagination
|
|
@@ -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
|
|
@@ -12,6 +12,7 @@ function PaginationView({
|
|
|
12
12
|
totalPages,
|
|
13
13
|
disabled,
|
|
14
14
|
isPending,
|
|
15
|
+
color,
|
|
15
16
|
siblingCount = 1,
|
|
16
17
|
boundaryCount = 1,
|
|
17
18
|
onPrev,
|
|
@@ -33,14 +34,23 @@ function PaginationView({
|
|
|
33
34
|
return /* @__PURE__ */ jsxs(
|
|
34
35
|
"nav",
|
|
35
36
|
{
|
|
37
|
+
"aria-busy": isPending || void 0,
|
|
36
38
|
"aria-label": (t == null ? void 0 : t.pagination) ?? "Pagination",
|
|
37
|
-
className: bem(
|
|
39
|
+
className: bem(
|
|
40
|
+
void 0,
|
|
41
|
+
{
|
|
42
|
+
"is-pending": Boolean(isPending),
|
|
43
|
+
[`color-${color}`]: Boolean(color)
|
|
44
|
+
},
|
|
45
|
+
className
|
|
46
|
+
),
|
|
38
47
|
children: [
|
|
39
48
|
/* @__PURE__ */ jsx(
|
|
40
49
|
Button,
|
|
41
50
|
{
|
|
42
51
|
"aria-label": (t == null ? void 0 : t.prev) ?? "Previous page",
|
|
43
52
|
className: bem("btn"),
|
|
53
|
+
color,
|
|
44
54
|
disabled: isDisabled || safePage <= 1,
|
|
45
55
|
iconProps: { name: "ArrowLeft01Icon" },
|
|
46
56
|
variant: "outlined",
|
|
@@ -67,10 +77,13 @@ function PaginationView({
|
|
|
67
77
|
{
|
|
68
78
|
"aria-current": isActive ? "page" : void 0,
|
|
69
79
|
className: bem("page", { active: isActive }),
|
|
80
|
+
color,
|
|
70
81
|
disabled: isDisabled || isActive,
|
|
71
82
|
title: (_a = it.value) == null ? void 0 : _a.toString(),
|
|
72
83
|
variant: isActive ? "outlined" : "text",
|
|
73
|
-
"aria-label": isActive ? ((_b = t == null ? void 0 : t.pageCurrent) == null ? void 0 : _b.replace("{page}", String(it.value))) ??
|
|
84
|
+
"aria-label": isActive ? ((_b = t == null ? void 0 : t.pageCurrent) == null ? void 0 : _b.replace("{page}", String(it.value))) ?? /* istanbul ignore next */
|
|
85
|
+
`Current page ${it.value}` : ((_c = t == null ? void 0 : t.pageGoTo) == null ? void 0 : _c.replace("{page}", String(it.value))) ?? /* istanbul ignore next */
|
|
86
|
+
`Go to page ${it.value}`,
|
|
74
87
|
onClick: isDisabled ? void 0 : () => onPageChange == null ? void 0 : onPageChange(it.value)
|
|
75
88
|
}
|
|
76
89
|
) }, it.value);
|
|
@@ -80,6 +93,7 @@ function PaginationView({
|
|
|
80
93
|
{
|
|
81
94
|
"aria-label": (t == null ? void 0 : t.next) ?? "Next page",
|
|
82
95
|
className: bem("btn"),
|
|
96
|
+
color,
|
|
83
97
|
disabled: isDisabled || safePage >= safeTotal,
|
|
84
98
|
iconProps: { name: "ArrowRight01Icon" },
|
|
85
99
|
variant: "outlined",
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* stylelint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Calculates a rem-based value by a given pixel size.
|
|
@@ -129,27 +128,29 @@
|
|
|
129
128
|
/* Mobile: stacked, image on top via order */
|
|
130
129
|
display: flex;
|
|
131
130
|
flex-direction: column-reverse;
|
|
132
|
-
gap:
|
|
131
|
+
gap: var(--pk-space-lg);
|
|
133
132
|
align-items: stretch;
|
|
134
133
|
}
|
|
135
134
|
@media screen and (min-width: 960px) {
|
|
136
135
|
.prokodo-PostItem__grid {
|
|
137
136
|
flex-direction: row;
|
|
138
137
|
align-items: flex-start;
|
|
139
|
-
gap:
|
|
138
|
+
gap: var(--pk-space-xl);
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
.prokodo-PostItem__media {
|
|
143
142
|
order: 1;
|
|
144
143
|
width: 100%;
|
|
145
144
|
min-width: 0;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
146
147
|
}
|
|
147
148
|
@media screen and (min-width: 960px) {
|
|
148
149
|
.prokodo-PostItem__media {
|
|
149
150
|
order: 0;
|
|
150
151
|
flex: 0 1 33.3333%;
|
|
151
152
|
max-width: 33.333%;
|
|
152
|
-
min-width: 0;
|
|
153
|
+
min-width: 0;
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
.prokodo-PostItem__main {
|
|
@@ -179,7 +180,7 @@
|
|
|
179
180
|
align-items: center;
|
|
180
181
|
}
|
|
181
182
|
.prokodo-PostItem__date {
|
|
182
|
-
color: var(--color-
|
|
183
|
+
color: var(--pk-color-muted);
|
|
183
184
|
font-weight: 400;
|
|
184
185
|
font-size: 1.125rem;
|
|
185
186
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -201,8 +202,8 @@
|
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
.prokodo-PostItem__read__count {
|
|
204
|
-
padding-left:
|
|
205
|
-
color: var(--color-
|
|
205
|
+
padding-left: var(--pk-space-md);
|
|
206
|
+
color: var(--pk-color-muted);
|
|
206
207
|
font-weight: 400;
|
|
207
208
|
font-size: 1.125rem;
|
|
208
209
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -226,8 +227,8 @@
|
|
|
226
227
|
.prokodo-PostItem__content {
|
|
227
228
|
display: flex;
|
|
228
229
|
align-items: center;
|
|
229
|
-
min-width: 0;
|
|
230
|
-
overflow-wrap: anywhere;
|
|
230
|
+
min-width: 0;
|
|
231
|
+
overflow-wrap: anywhere;
|
|
231
232
|
font-weight: 400;
|
|
232
233
|
font-size: 1.125rem;
|
|
233
234
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -249,17 +250,16 @@
|
|
|
249
250
|
}
|
|
250
251
|
}
|
|
251
252
|
.prokodo-PostItem__content__paragraph {
|
|
252
|
-
color: var(--color-
|
|
253
|
+
color: var(--pk-color-muted);
|
|
253
254
|
display: -webkit-box;
|
|
254
255
|
-webkit-line-clamp: 3;
|
|
255
256
|
-webkit-box-orient: vertical;
|
|
256
257
|
overflow: hidden;
|
|
257
258
|
}
|
|
258
259
|
.prokodo-PostItem__content__paragraph > p {
|
|
259
|
-
margin:
|
|
260
|
+
margin: var(--pk-space-sm) var(--pk-space-xs);
|
|
260
261
|
}
|
|
261
262
|
.prokodo-PostItem__image {
|
|
262
|
-
min-height: 300px;
|
|
263
263
|
min-height: 300px;
|
|
264
264
|
-o-object-fit: cover;
|
|
265
265
|
object-fit: cover;
|
|
@@ -268,16 +268,16 @@
|
|
|
268
268
|
padding: 0;
|
|
269
269
|
}
|
|
270
270
|
.prokodo-PostItem__image__wrapper {
|
|
271
|
+
flex: 1 1;
|
|
271
272
|
width: 100%;
|
|
272
|
-
min-width: 300px;
|
|
273
273
|
min-height: 300px;
|
|
274
|
-
border-radius:
|
|
274
|
+
border-radius: var(--pk-radius-lg);
|
|
275
275
|
overflow: hidden;
|
|
276
|
-
transform: none;
|
|
276
|
+
transform: none;
|
|
277
277
|
}
|
|
278
278
|
.prokodo-PostItem__button {
|
|
279
279
|
width: 100%;
|
|
280
|
-
margin-top:
|
|
280
|
+
margin-top: var(--pk-space-lg);
|
|
281
281
|
}
|
|
282
282
|
.prokodo-PostItem__button__content {
|
|
283
283
|
justify-content: flex-start;
|
|
@@ -5,7 +5,10 @@ import PostItemServer from "./PostItem.server.js";
|
|
|
5
5
|
const PostItem = createIsland({
|
|
6
6
|
name: "PostItem",
|
|
7
7
|
Server: PostItemServer,
|
|
8
|
-
loadLazy:
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./PostItem.lazy.js"), "loadLazy")
|
|
11
|
+
)
|
|
9
12
|
});
|
|
10
13
|
export {
|
|
11
14
|
PostItem
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/* stylelint-disable */
|
|
3
2
|
/**
|
|
4
3
|
* Calculates a rem-based value by a given pixel size.
|
|
@@ -129,27 +128,29 @@
|
|
|
129
128
|
/* Mobile: stacked, image on top via order */
|
|
130
129
|
display: flex;
|
|
131
130
|
flex-direction: column-reverse;
|
|
132
|
-
gap:
|
|
131
|
+
gap: var(--pk-space-lg);
|
|
133
132
|
align-items: stretch;
|
|
134
133
|
}
|
|
135
134
|
@media screen and (min-width: 960px) {
|
|
136
135
|
.prokodo-PostItem__grid {
|
|
137
136
|
flex-direction: row;
|
|
138
137
|
align-items: flex-start;
|
|
139
|
-
gap:
|
|
138
|
+
gap: var(--pk-space-xl);
|
|
140
139
|
}
|
|
141
140
|
}
|
|
142
141
|
.prokodo-PostItem__media {
|
|
143
142
|
order: 1;
|
|
144
143
|
width: 100%;
|
|
145
144
|
min-width: 0;
|
|
145
|
+
display: flex;
|
|
146
|
+
flex-direction: column;
|
|
146
147
|
}
|
|
147
148
|
@media screen and (min-width: 960px) {
|
|
148
149
|
.prokodo-PostItem__media {
|
|
149
150
|
order: 0;
|
|
150
151
|
flex: 0 1 33.3333%;
|
|
151
152
|
max-width: 33.333%;
|
|
152
|
-
min-width: 0;
|
|
153
|
+
min-width: 0;
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
.prokodo-PostItem__main {
|
|
@@ -179,7 +180,7 @@
|
|
|
179
180
|
align-items: center;
|
|
180
181
|
}
|
|
181
182
|
.prokodo-PostItem__date {
|
|
182
|
-
color: var(--color-
|
|
183
|
+
color: var(--pk-color-muted);
|
|
183
184
|
font-weight: 400;
|
|
184
185
|
font-size: 1.125rem;
|
|
185
186
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -201,8 +202,8 @@
|
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
.prokodo-PostItem__read__count {
|
|
204
|
-
padding-left:
|
|
205
|
-
color: var(--color-
|
|
205
|
+
padding-left: var(--pk-space-md);
|
|
206
|
+
color: var(--pk-color-muted);
|
|
206
207
|
font-weight: 400;
|
|
207
208
|
font-size: 1.125rem;
|
|
208
209
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -226,8 +227,8 @@
|
|
|
226
227
|
.prokodo-PostItem__content {
|
|
227
228
|
display: flex;
|
|
228
229
|
align-items: center;
|
|
229
|
-
min-width: 0;
|
|
230
|
-
overflow-wrap: anywhere;
|
|
230
|
+
min-width: 0;
|
|
231
|
+
overflow-wrap: anywhere;
|
|
231
232
|
font-weight: 400;
|
|
232
233
|
font-size: 1.125rem;
|
|
233
234
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -249,17 +250,16 @@
|
|
|
249
250
|
}
|
|
250
251
|
}
|
|
251
252
|
.prokodo-PostItem__content__paragraph {
|
|
252
|
-
color: var(--color-
|
|
253
|
+
color: var(--pk-color-muted);
|
|
253
254
|
display: -webkit-box;
|
|
254
255
|
-webkit-line-clamp: 3;
|
|
255
256
|
-webkit-box-orient: vertical;
|
|
256
257
|
overflow: hidden;
|
|
257
258
|
}
|
|
258
259
|
.prokodo-PostItem__content__paragraph > p {
|
|
259
|
-
margin:
|
|
260
|
+
margin: var(--pk-space-sm) var(--pk-space-xs);
|
|
260
261
|
}
|
|
261
262
|
.prokodo-PostItem__image {
|
|
262
|
-
min-height: 300px;
|
|
263
263
|
min-height: 300px;
|
|
264
264
|
-o-object-fit: cover;
|
|
265
265
|
object-fit: cover;
|
|
@@ -268,16 +268,16 @@
|
|
|
268
268
|
padding: 0;
|
|
269
269
|
}
|
|
270
270
|
.prokodo-PostItem__image__wrapper {
|
|
271
|
+
flex: 1 1;
|
|
271
272
|
width: 100%;
|
|
272
|
-
min-width: 300px;
|
|
273
273
|
min-height: 300px;
|
|
274
|
-
border-radius:
|
|
274
|
+
border-radius: var(--pk-radius-lg);
|
|
275
275
|
overflow: hidden;
|
|
276
|
-
transform: none;
|
|
276
|
+
transform: none;
|
|
277
277
|
}
|
|
278
278
|
.prokodo-PostItem__button {
|
|
279
279
|
width: 100%;
|
|
280
|
-
margin-top:
|
|
280
|
+
margin-top: var(--pk-space-lg);
|
|
281
281
|
}
|
|
282
282
|
.prokodo-PostItem__button__content {
|
|
283
283
|
justify-content: flex-start;
|