@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
|
@@ -0,0 +1,940 @@
|
|
|
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
|
+
@keyframes dpDialogIn {
|
|
128
|
+
from {
|
|
129
|
+
opacity: 0;
|
|
130
|
+
transform: translateY(-0.5rem) scale(0.98);
|
|
131
|
+
}
|
|
132
|
+
to {
|
|
133
|
+
opacity: 1;
|
|
134
|
+
transform: translateY(0) scale(1);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
@keyframes dpBorderShift {
|
|
138
|
+
from {
|
|
139
|
+
background-position: 0 0, 0 0;
|
|
140
|
+
}
|
|
141
|
+
to {
|
|
142
|
+
background-position: 200% 0, 0 0;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
@keyframes dpSlideUp {
|
|
146
|
+
from {
|
|
147
|
+
opacity: 0;
|
|
148
|
+
transform: translateY(100%);
|
|
149
|
+
}
|
|
150
|
+
to {
|
|
151
|
+
opacity: 1;
|
|
152
|
+
transform: translateY(0);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
.prokodo-DatePicker {
|
|
156
|
+
position: relative;
|
|
157
|
+
display: inline-block;
|
|
158
|
+
width: 100%;
|
|
159
|
+
}
|
|
160
|
+
.prokodo-DatePicker--primary {
|
|
161
|
+
--pk-dp-gradient-from: var(--pk-color-brand);
|
|
162
|
+
--pk-dp-gradient-to: var(--pk-color-accent);
|
|
163
|
+
--pk-dp-shadow-color: color-mix(in srgb, var(--pk-color-brand) 30%, transparent);
|
|
164
|
+
--pk-dp-trigger-label-float-fg: var(--pk-color-brand);
|
|
165
|
+
--pk-dp-day-today-ring: var(--pk-color-brand);
|
|
166
|
+
}
|
|
167
|
+
.prokodo-DatePicker--secondary {
|
|
168
|
+
--pk-dp-gradient-from: var(--pk-color-accent);
|
|
169
|
+
--pk-dp-gradient-to: var(--pk-color-brand);
|
|
170
|
+
--pk-dp-shadow-color: color-mix(in srgb, var(--pk-color-accent) 30%, transparent);
|
|
171
|
+
--pk-dp-trigger-label-float-fg: var(--pk-color-accent);
|
|
172
|
+
--pk-dp-day-today-ring: var(--pk-color-accent);
|
|
173
|
+
}
|
|
174
|
+
.prokodo-DatePicker--success {
|
|
175
|
+
--pk-dp-gradient-from: var(--pk-color-success);
|
|
176
|
+
--pk-dp-gradient-to: #10CCB8;
|
|
177
|
+
--pk-dp-shadow-color: color-mix(in srgb, var(--pk-color-success) 30%, transparent);
|
|
178
|
+
--pk-dp-trigger-label-float-fg: var(--pk-color-success);
|
|
179
|
+
--pk-dp-day-today-ring: var(--pk-color-success);
|
|
180
|
+
}
|
|
181
|
+
.prokodo-DatePicker--warning {
|
|
182
|
+
--pk-dp-gradient-from: var(--pk-color-warning);
|
|
183
|
+
--pk-dp-gradient-to: #f7cc6a;
|
|
184
|
+
--pk-dp-shadow-color: color-mix(in srgb, var(--pk-color-warning) 30%, transparent);
|
|
185
|
+
--pk-dp-trigger-label-float-fg: var(--pk-color-warning);
|
|
186
|
+
--pk-dp-day-today-ring: var(--pk-color-warning);
|
|
187
|
+
}
|
|
188
|
+
.prokodo-DatePicker--error {
|
|
189
|
+
--pk-dp-gradient-from: var(--pk-color-error);
|
|
190
|
+
--pk-dp-gradient-to: #ff6b6b;
|
|
191
|
+
--pk-dp-shadow-color: color-mix(in srgb, var(--pk-color-error) 30%, transparent);
|
|
192
|
+
--pk-dp-trigger-label-float-fg: var(--pk-color-error);
|
|
193
|
+
--pk-dp-day-today-ring: var(--pk-color-error);
|
|
194
|
+
}
|
|
195
|
+
.prokodo-DatePicker--info, .prokodo-DatePicker--inherit, .prokodo-DatePicker--white {
|
|
196
|
+
--pk-dp-gradient-from: var(--pk-color-muted);
|
|
197
|
+
--pk-dp-gradient-to: var(--pk-color-border);
|
|
198
|
+
--pk-dp-shadow-color: rgba(0, 0, 0, 0.1);
|
|
199
|
+
--pk-dp-trigger-label-float-fg: var(--pk-color-muted);
|
|
200
|
+
--pk-dp-day-today-ring: var(--pk-color-muted);
|
|
201
|
+
}
|
|
202
|
+
html[data-theme="dark"] .prokodo-DatePicker--info, [data-theme="dark"] .prokodo-DatePicker--info, html[data-theme="dark"] .prokodo-DatePicker--inherit, [data-theme="dark"] .prokodo-DatePicker--inherit, html[data-theme="dark"] .prokodo-DatePicker--white, [data-theme="dark"] .prokodo-DatePicker--white {
|
|
203
|
+
--pk-dp-gradient-from: var(--pk-palette-grey-100);
|
|
204
|
+
--pk-dp-gradient-to: var(--pk-palette-grey-200);
|
|
205
|
+
}
|
|
206
|
+
.prokodo-DatePicker__trigger {
|
|
207
|
+
position: relative;
|
|
208
|
+
display: flex;
|
|
209
|
+
align-items: center;
|
|
210
|
+
width: 100%;
|
|
211
|
+
padding: var(--pk-dp-trigger-padding-y) calc(var(--pk-dp-trigger-padding-x) + 2rem) var(--pk-dp-trigger-padding-y) var(--pk-dp-trigger-padding-x);
|
|
212
|
+
background: var(--pk-dp-trigger-bg);
|
|
213
|
+
border: 1.5px solid var(--pk-dp-trigger-border);
|
|
214
|
+
border-radius: var(--pk-dp-trigger-radius);
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
text-align: left;
|
|
217
|
+
transition: border-color var(--pk-timing-normal) ease, box-shadow var(--pk-timing-normal) ease;
|
|
218
|
+
box-shadow: 0 2px 8px var(--pk-dp-shadow-color), 0 1px 3px color-mix(in srgb, var(--pk-dp-shadow-color) 50%, transparent);
|
|
219
|
+
}
|
|
220
|
+
.prokodo-DatePicker__trigger:hover {
|
|
221
|
+
border-color: transparent;
|
|
222
|
+
box-shadow: 0 4px 12px var(--pk-dp-shadow-color), 0 0 5px var(--pk-dp-shadow-color);
|
|
223
|
+
}
|
|
224
|
+
.prokodo-DatePicker__trigger--open {
|
|
225
|
+
border-color: transparent;
|
|
226
|
+
box-shadow: 0 4px 12px var(--pk-dp-shadow-color), 0 0 5px var(--pk-dp-shadow-color);
|
|
227
|
+
}
|
|
228
|
+
.prokodo-DatePicker__trigger--open::before {
|
|
229
|
+
content: "";
|
|
230
|
+
pointer-events: none;
|
|
231
|
+
position: absolute;
|
|
232
|
+
inset: -1.5px;
|
|
233
|
+
border-radius: var(--pk-dp-trigger-radius);
|
|
234
|
+
background: linear-gradient(90deg, var(--pk-dp-gradient-from), var(--pk-dp-gradient-to), var(--pk-dp-gradient-from));
|
|
235
|
+
background-size: 200% 100%;
|
|
236
|
+
animation: dpBorderShift 3s linear infinite;
|
|
237
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
238
|
+
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
239
|
+
-webkit-mask-composite: destination-out;
|
|
240
|
+
mask-composite: exclude;
|
|
241
|
+
padding: 1.5px;
|
|
242
|
+
}
|
|
243
|
+
.prokodo-DatePicker__trigger__label {
|
|
244
|
+
position: absolute;
|
|
245
|
+
top: 50%;
|
|
246
|
+
left: var(--pk-dp-trigger-padding-x);
|
|
247
|
+
transform: translateY(-50%);
|
|
248
|
+
font-size: 1rem;
|
|
249
|
+
color: var(--pk-dp-trigger-label-fg);
|
|
250
|
+
pointer-events: none;
|
|
251
|
+
transition: transform var(--pk-timing-normal) ease, font-size var(--pk-timing-normal) ease, color var(--pk-timing-normal) ease;
|
|
252
|
+
}
|
|
253
|
+
.prokodo-DatePicker__trigger__label--float {
|
|
254
|
+
top: 0;
|
|
255
|
+
transform: translateY(-50%) scale(0.78);
|
|
256
|
+
transform-origin: top left;
|
|
257
|
+
font-size: 1rem;
|
|
258
|
+
color: var(--pk-dp-trigger-label-float-fg);
|
|
259
|
+
text-shadow: -3px 0 var(--pk-dp-trigger-bg), 3px 0 var(--pk-dp-trigger-bg), 0 -2px var(--pk-dp-trigger-bg), 0 2px var(--pk-dp-trigger-bg);
|
|
260
|
+
}
|
|
261
|
+
.prokodo-DatePicker__trigger__value {
|
|
262
|
+
font-size: 1rem;
|
|
263
|
+
color: var(--pk-dp-trigger-fg);
|
|
264
|
+
line-height: 1.4;
|
|
265
|
+
}
|
|
266
|
+
.prokodo-DatePicker__trigger__value--empty {
|
|
267
|
+
color: var(--pk-dp-trigger-fg-muted);
|
|
268
|
+
}
|
|
269
|
+
.prokodo-DatePicker__trigger__icon {
|
|
270
|
+
position: absolute;
|
|
271
|
+
right: var(--pk-dp-trigger-padding-x);
|
|
272
|
+
top: 50%;
|
|
273
|
+
transform: translateY(-50%);
|
|
274
|
+
display: flex;
|
|
275
|
+
align-items: center;
|
|
276
|
+
color: var(--pk-dp-nav-fg);
|
|
277
|
+
pointer-events: none;
|
|
278
|
+
}
|
|
279
|
+
.prokodo-DatePicker__dialog {
|
|
280
|
+
position: absolute;
|
|
281
|
+
top: calc(100% + var(--pk-space-xs));
|
|
282
|
+
left: 0;
|
|
283
|
+
z-index: 200;
|
|
284
|
+
min-width: var(--pk-dp-dialog-min-width);
|
|
285
|
+
width: -moz-max-content;
|
|
286
|
+
width: max-content;
|
|
287
|
+
background: var(--pk-dp-dialog-bg);
|
|
288
|
+
border: 1px solid var(--pk-dp-dialog-border);
|
|
289
|
+
border-radius: var(--pk-dp-dialog-radius);
|
|
290
|
+
box-shadow: var(--pk-dp-dialog-shadow);
|
|
291
|
+
padding: var(--pk-dp-dialog-padding);
|
|
292
|
+
animation: dpDialogIn 180ms ease both;
|
|
293
|
+
}
|
|
294
|
+
html[data-theme="dark"] .prokodo-DatePicker__dialog, [data-theme="dark"] .prokodo-DatePicker__dialog, .pk-theme-dark .prokodo-DatePicker__dialog {
|
|
295
|
+
--pk-dp-header-fg: var(--pk-palette-grey-50);
|
|
296
|
+
--pk-dp-nav-fg: var(--pk-palette-grey-300);
|
|
297
|
+
--pk-dp-nav-hover-bg: rgba(255, 255, 255, 0.10);
|
|
298
|
+
--pk-dp-weekday-fg: var(--pk-palette-grey-400);
|
|
299
|
+
--pk-dp-footer-ghost-fg: var(--pk-palette-grey-300);
|
|
300
|
+
--pk-dp-footer-ghost-hover-fg: var(--pk-palette-grey-50);
|
|
301
|
+
--pk-dp-dialog-border: rgba(255, 255, 255, 0.10);
|
|
302
|
+
--pk-dp-dialog-bg: var(--pk-color-surface);
|
|
303
|
+
}
|
|
304
|
+
@media screen and (max-width: 480px) {
|
|
305
|
+
.prokodo-DatePicker__dialog {
|
|
306
|
+
position: fixed;
|
|
307
|
+
top: auto;
|
|
308
|
+
bottom: 0;
|
|
309
|
+
left: 0;
|
|
310
|
+
right: 0;
|
|
311
|
+
width: 100%;
|
|
312
|
+
box-sizing: border-box;
|
|
313
|
+
min-width: 0;
|
|
314
|
+
max-height: 92dvh;
|
|
315
|
+
overflow-y: auto;
|
|
316
|
+
overscroll-behavior: contain;
|
|
317
|
+
-webkit-overflow-scrolling: touch;
|
|
318
|
+
border-radius: 1.25rem 1.25rem 0 0;
|
|
319
|
+
border-bottom: none;
|
|
320
|
+
padding: 0 1.25rem 2rem;
|
|
321
|
+
animation: dpSlideUp 260ms cubic-bezier(0.32, 0.72, 0, 1) both;
|
|
322
|
+
box-shadow: 0 -4px 40px rgba(0, 0, 0, 0.18), 0 -1px 0 var(--pk-dp-dialog-border);
|
|
323
|
+
}
|
|
324
|
+
.prokodo-DatePicker__dialog::before {
|
|
325
|
+
content: "";
|
|
326
|
+
display: block;
|
|
327
|
+
width: 2.5rem;
|
|
328
|
+
height: 0.25rem;
|
|
329
|
+
background: var(--pk-dp-gradient-from);
|
|
330
|
+
border-radius: 999px;
|
|
331
|
+
margin: 0.75rem auto 1.25rem;
|
|
332
|
+
flex-shrink: 0;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
.prokodo-DatePicker__dialog__backdrop {
|
|
336
|
+
display: none;
|
|
337
|
+
}
|
|
338
|
+
@media screen and (max-width: 480px) {
|
|
339
|
+
.prokodo-DatePicker__dialog__backdrop {
|
|
340
|
+
display: block;
|
|
341
|
+
position: fixed;
|
|
342
|
+
inset: 0;
|
|
343
|
+
z-index: 199;
|
|
344
|
+
background: rgba(0, 0, 0, 0.5);
|
|
345
|
+
backdrop-filter: blur(4px);
|
|
346
|
+
-webkit-backdrop-filter: blur(4px);
|
|
347
|
+
animation: dpDialogIn 200ms ease both;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
.prokodo-DatePicker__dialog__close {
|
|
351
|
+
display: none;
|
|
352
|
+
}
|
|
353
|
+
@media screen and (max-width: 480px) {
|
|
354
|
+
.prokodo-DatePicker__dialog__close {
|
|
355
|
+
display: flex;
|
|
356
|
+
align-items: center;
|
|
357
|
+
justify-content: center;
|
|
358
|
+
width: 2.5rem;
|
|
359
|
+
height: 2.5rem;
|
|
360
|
+
border-radius: 100%;
|
|
361
|
+
background: transparent;
|
|
362
|
+
border: none;
|
|
363
|
+
cursor: pointer;
|
|
364
|
+
color: var(--pk-dp-nav-fg);
|
|
365
|
+
flex-shrink: 0;
|
|
366
|
+
transition: color var(--pk-timing-fast) ease, background var(--pk-timing-fast) ease;
|
|
367
|
+
}
|
|
368
|
+
.prokodo-DatePicker__dialog__close:hover {
|
|
369
|
+
background: color-mix(in srgb, var(--pk-dp-gradient-from) 10%, transparent);
|
|
370
|
+
color: var(--pk-dp-gradient-from);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
.prokodo-DatePicker__dialog__header {
|
|
374
|
+
display: flex;
|
|
375
|
+
align-items: center;
|
|
376
|
+
justify-content: space-between;
|
|
377
|
+
margin-bottom: var(--pk-space-sm);
|
|
378
|
+
gap: var(--pk-space-xs);
|
|
379
|
+
}
|
|
380
|
+
@media screen and (max-width: 480px) {
|
|
381
|
+
.prokodo-DatePicker__dialog__header {
|
|
382
|
+
margin-bottom: 1.25rem;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
.prokodo-DatePicker__month__label {
|
|
386
|
+
flex: 1 1;
|
|
387
|
+
display: flex;
|
|
388
|
+
align-items: center;
|
|
389
|
+
justify-content: center;
|
|
390
|
+
gap: 0.25em;
|
|
391
|
+
white-space: nowrap;
|
|
392
|
+
color: var(--pk-dp-header-fg);
|
|
393
|
+
font-weight: 400;
|
|
394
|
+
font-size: 1.125rem;
|
|
395
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
396
|
+
font-style: normal;
|
|
397
|
+
line-height: 1.55;
|
|
398
|
+
letter-spacing: 0.03em;
|
|
399
|
+
text-transform: none;
|
|
400
|
+
text-align: left;
|
|
401
|
+
text-decoration: none;
|
|
402
|
+
}
|
|
403
|
+
@media screen and (min-width: 480px) {
|
|
404
|
+
.prokodo-DatePicker__month__label {
|
|
405
|
+
font-size: 1rem;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
@media screen and (min-width: 960px) {
|
|
409
|
+
.prokodo-DatePicker__month__label {
|
|
410
|
+
font-size: 1rem;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
@media screen and (max-width: 480px) {
|
|
414
|
+
.prokodo-DatePicker__month__label {
|
|
415
|
+
font-weight: 700;
|
|
416
|
+
font-size: 1.75rem;
|
|
417
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
418
|
+
font-style: normal;
|
|
419
|
+
line-height: 1.6;
|
|
420
|
+
letter-spacing: 0.03em;
|
|
421
|
+
text-transform: none;
|
|
422
|
+
text-align: left;
|
|
423
|
+
text-decoration: none;
|
|
424
|
+
font-weight: 700;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
@media screen and (max-width: 480px) and (min-width: 480px) {
|
|
428
|
+
.prokodo-DatePicker__month__label {
|
|
429
|
+
font-size: 1.5rem;
|
|
430
|
+
line-height: 1.55;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
@media screen and (max-width: 480px) and (min-width: 960px) {
|
|
434
|
+
.prokodo-DatePicker__month__label {
|
|
435
|
+
font-size: 1.5rem;
|
|
436
|
+
line-height: 1.55;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
.prokodo-DatePicker__header-btn {
|
|
440
|
+
background: none;
|
|
441
|
+
border: none;
|
|
442
|
+
cursor: pointer;
|
|
443
|
+
font-weight: 700;
|
|
444
|
+
text-align: center;
|
|
445
|
+
padding: 0.15em 0.35em;
|
|
446
|
+
border-radius: var(--pk-radius-sm, 4px);
|
|
447
|
+
color: var(--pk-dp-header-fg);
|
|
448
|
+
transition: background var(--pk-timing-fast) ease, color var(--pk-timing-fast) ease;
|
|
449
|
+
font-weight: 400;
|
|
450
|
+
font-size: 1.125rem;
|
|
451
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
452
|
+
font-style: normal;
|
|
453
|
+
line-height: 1.55;
|
|
454
|
+
letter-spacing: 0.03em;
|
|
455
|
+
text-transform: none;
|
|
456
|
+
text-align: left;
|
|
457
|
+
text-decoration: none;
|
|
458
|
+
}
|
|
459
|
+
@media screen and (min-width: 480px) {
|
|
460
|
+
.prokodo-DatePicker__header-btn {
|
|
461
|
+
font-size: 1rem;
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
@media screen and (min-width: 960px) {
|
|
465
|
+
.prokodo-DatePicker__header-btn {
|
|
466
|
+
font-size: 1rem;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
.prokodo-DatePicker__header-btn:hover {
|
|
470
|
+
background: color-mix(in srgb, var(--pk-dp-gradient-from) 10%, transparent);
|
|
471
|
+
color: var(--pk-dp-gradient-from);
|
|
472
|
+
}
|
|
473
|
+
.prokodo-DatePicker__header-range {
|
|
474
|
+
flex: 1 1;
|
|
475
|
+
text-align: center;
|
|
476
|
+
font-weight: 700;
|
|
477
|
+
color: var(--pk-dp-header-fg);
|
|
478
|
+
font-weight: 400;
|
|
479
|
+
font-size: 1.125rem;
|
|
480
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
481
|
+
font-style: normal;
|
|
482
|
+
line-height: 1.55;
|
|
483
|
+
letter-spacing: 0.03em;
|
|
484
|
+
text-transform: none;
|
|
485
|
+
text-align: left;
|
|
486
|
+
text-decoration: none;
|
|
487
|
+
}
|
|
488
|
+
@media screen and (min-width: 480px) {
|
|
489
|
+
.prokodo-DatePicker__header-range {
|
|
490
|
+
font-size: 1rem;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
@media screen and (min-width: 960px) {
|
|
494
|
+
.prokodo-DatePicker__header-range {
|
|
495
|
+
font-size: 1rem;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
.prokodo-DatePicker__picker-grid {
|
|
499
|
+
display: grid;
|
|
500
|
+
grid-template-columns: repeat(3, 1fr);
|
|
501
|
+
grid-gap: var(--pk-space-xs, 0.25rem);
|
|
502
|
+
gap: var(--pk-space-xs, 0.25rem);
|
|
503
|
+
padding-block: var(--pk-space-sm, 0.5rem);
|
|
504
|
+
}
|
|
505
|
+
.prokodo-DatePicker__picker-cell {
|
|
506
|
+
display: flex;
|
|
507
|
+
align-items: center;
|
|
508
|
+
justify-content: center;
|
|
509
|
+
border: none;
|
|
510
|
+
border-radius: var(--pk-radius-md, 6px);
|
|
511
|
+
cursor: pointer;
|
|
512
|
+
font-size: 0.9375rem;
|
|
513
|
+
font-weight: 500;
|
|
514
|
+
height: 2.75rem;
|
|
515
|
+
background: transparent;
|
|
516
|
+
color: var(--pk-dp-header-fg);
|
|
517
|
+
transition: background var(--pk-timing-fast) ease, color var(--pk-timing-fast) ease;
|
|
518
|
+
}
|
|
519
|
+
.prokodo-DatePicker__picker-cell--today {
|
|
520
|
+
font-weight: 700;
|
|
521
|
+
color: var(--pk-dp-gradient-from);
|
|
522
|
+
}
|
|
523
|
+
.prokodo-DatePicker__picker-cell--selected {
|
|
524
|
+
background: var(--pk-dp-gradient-from);
|
|
525
|
+
color: #fff;
|
|
526
|
+
font-weight: 700;
|
|
527
|
+
}
|
|
528
|
+
.prokodo-DatePicker__picker-cell--disabled {
|
|
529
|
+
opacity: 0.35;
|
|
530
|
+
cursor: not-allowed;
|
|
531
|
+
}
|
|
532
|
+
.prokodo-DatePicker__picker-cell:hover:not([disabled]) {
|
|
533
|
+
background: color-mix(in srgb, var(--pk-dp-gradient-from) 10%, transparent);
|
|
534
|
+
color: var(--pk-dp-gradient-from);
|
|
535
|
+
}
|
|
536
|
+
@media screen and (max-width: 480px) {
|
|
537
|
+
.prokodo-DatePicker__picker-cell {
|
|
538
|
+
height: 3.25rem;
|
|
539
|
+
font-size: 1rem;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
.prokodo-DatePicker__nav__btn {
|
|
543
|
+
display: flex;
|
|
544
|
+
align-items: center;
|
|
545
|
+
justify-content: center;
|
|
546
|
+
width: 2rem;
|
|
547
|
+
height: 2rem;
|
|
548
|
+
border-radius: var(--pk-dp-nav-radius);
|
|
549
|
+
background: transparent;
|
|
550
|
+
border: none;
|
|
551
|
+
cursor: pointer;
|
|
552
|
+
color: var(--pk-dp-nav-fg);
|
|
553
|
+
transition: color var(--pk-timing-fast) ease, background var(--pk-timing-fast) ease;
|
|
554
|
+
}
|
|
555
|
+
.prokodo-DatePicker__nav__btn:hover {
|
|
556
|
+
color: var(--pk-dp-gradient-from);
|
|
557
|
+
}
|
|
558
|
+
.prokodo-DatePicker__nav__btn--prev svg {
|
|
559
|
+
transform: rotate(180deg);
|
|
560
|
+
}
|
|
561
|
+
@media screen and (max-width: 480px) {
|
|
562
|
+
.prokodo-DatePicker__nav__btn {
|
|
563
|
+
width: 2.75rem;
|
|
564
|
+
height: 2.75rem;
|
|
565
|
+
border-radius: 100%;
|
|
566
|
+
background: color-mix(in srgb, var(--pk-dp-nav-fg) 8%, transparent);
|
|
567
|
+
}
|
|
568
|
+
.prokodo-DatePicker__nav__btn:hover {
|
|
569
|
+
background: color-mix(in srgb, var(--pk-dp-gradient-from) 12%, transparent);
|
|
570
|
+
color: var(--pk-dp-gradient-from);
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
.prokodo-DatePicker__weekdays {
|
|
574
|
+
display: grid;
|
|
575
|
+
grid-template-columns: repeat(7, 1fr);
|
|
576
|
+
margin-bottom: var(--pk-space-xs);
|
|
577
|
+
}
|
|
578
|
+
@media screen and (max-width: 480px) {
|
|
579
|
+
.prokodo-DatePicker__weekdays {
|
|
580
|
+
margin-bottom: var(--pk-space-sm);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
.prokodo-DatePicker__weekday {
|
|
584
|
+
text-transform: uppercase;
|
|
585
|
+
color: var(--pk-dp-weekday-fg);
|
|
586
|
+
padding-block: var(--pk-space-xs);
|
|
587
|
+
font-weight: 400;
|
|
588
|
+
font-size: 1rem;
|
|
589
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
590
|
+
font-style: normal;
|
|
591
|
+
line-height: 1.45;
|
|
592
|
+
letter-spacing: 0.03em;
|
|
593
|
+
text-transform: none;
|
|
594
|
+
text-align: left;
|
|
595
|
+
text-decoration: none;
|
|
596
|
+
}
|
|
597
|
+
@media screen and (min-width: 480px) {
|
|
598
|
+
.prokodo-DatePicker__weekday {
|
|
599
|
+
font-size: 0.875rem;
|
|
600
|
+
line-height: 1.4;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
@media screen and (min-width: 960px) {
|
|
604
|
+
.prokodo-DatePicker__weekday {
|
|
605
|
+
font-size: 0.875rem;
|
|
606
|
+
line-height: 1.4;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
.prokodo-DatePicker__weekday {
|
|
610
|
+
text-align: center;
|
|
611
|
+
}
|
|
612
|
+
@media screen and (max-width: 480px) {
|
|
613
|
+
.prokodo-DatePicker__weekday {
|
|
614
|
+
font-weight: 400;
|
|
615
|
+
font-size: 1.125rem;
|
|
616
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
617
|
+
font-style: normal;
|
|
618
|
+
line-height: 1.55;
|
|
619
|
+
letter-spacing: 0.03em;
|
|
620
|
+
text-transform: none;
|
|
621
|
+
text-align: left;
|
|
622
|
+
text-decoration: none;
|
|
623
|
+
font-weight: 600;
|
|
624
|
+
padding-block: var(--pk-space-sm);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
@media screen and (max-width: 480px) and (min-width: 480px) {
|
|
628
|
+
.prokodo-DatePicker__weekday {
|
|
629
|
+
font-size: 1rem;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
@media screen and (max-width: 480px) and (min-width: 960px) {
|
|
633
|
+
.prokodo-DatePicker__weekday {
|
|
634
|
+
font-size: 1rem;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
.prokodo-DatePicker__days {
|
|
638
|
+
display: flex;
|
|
639
|
+
flex-direction: column;
|
|
640
|
+
gap: 2px;
|
|
641
|
+
}
|
|
642
|
+
.prokodo-DatePicker__days > div {
|
|
643
|
+
display: grid;
|
|
644
|
+
grid-template-columns: repeat(7, 1fr);
|
|
645
|
+
grid-gap: 2px;
|
|
646
|
+
gap: 2px;
|
|
647
|
+
}
|
|
648
|
+
@media screen and (max-width: 480px) {
|
|
649
|
+
.prokodo-DatePicker__days {
|
|
650
|
+
gap: var(--pk-space-xs);
|
|
651
|
+
}
|
|
652
|
+
.prokodo-DatePicker__days > div {
|
|
653
|
+
gap: var(--pk-space-xs);
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
.prokodo-DatePicker__day {
|
|
657
|
+
position: relative;
|
|
658
|
+
display: flex;
|
|
659
|
+
align-items: center;
|
|
660
|
+
justify-content: center;
|
|
661
|
+
aspect-ratio: 1;
|
|
662
|
+
border-radius: 100%;
|
|
663
|
+
border: none;
|
|
664
|
+
background: transparent;
|
|
665
|
+
color: var(--pk-dp-day-fg);
|
|
666
|
+
font-size: 0.875rem;
|
|
667
|
+
cursor: pointer;
|
|
668
|
+
transition: background var(--pk-timing-fast) ease, color var(--pk-timing-fast) ease;
|
|
669
|
+
}
|
|
670
|
+
@media screen and (max-width: 480px) {
|
|
671
|
+
.prokodo-DatePicker__day {
|
|
672
|
+
font-size: 1rem;
|
|
673
|
+
min-height: 2.75rem;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
.prokodo-DatePicker__day::before {
|
|
677
|
+
content: "";
|
|
678
|
+
pointer-events: none;
|
|
679
|
+
position: absolute;
|
|
680
|
+
inset: 0;
|
|
681
|
+
border-radius: 100%;
|
|
682
|
+
background: linear-gradient(135deg, var(--pk-dp-gradient-from), var(--pk-dp-gradient-to));
|
|
683
|
+
padding: 1.5px;
|
|
684
|
+
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
685
|
+
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
686
|
+
-webkit-mask-composite: destination-out;
|
|
687
|
+
mask-composite: exclude;
|
|
688
|
+
opacity: 0;
|
|
689
|
+
transition: opacity var(--pk-timing-fast) ease;
|
|
690
|
+
}
|
|
691
|
+
.prokodo-DatePicker__day:hover {
|
|
692
|
+
background: radial-gradient(100% 100% at 50% 50%, color-mix(in srgb, var(--pk-dp-gradient-from) 22%, transparent) 0%, transparent 100%);
|
|
693
|
+
}
|
|
694
|
+
.prokodo-DatePicker__day:hover::before {
|
|
695
|
+
opacity: 1;
|
|
696
|
+
}
|
|
697
|
+
.prokodo-DatePicker__day:active:not(.prokodo-DatePicker__day--disabled) {
|
|
698
|
+
background: radial-gradient(100% 100% at 50% 50%, var(--pk-dp-gradient-from) 0%, var(--pk-dp-gradient-to) 100%);
|
|
699
|
+
color: #fff;
|
|
700
|
+
}
|
|
701
|
+
.prokodo-DatePicker__day:active:not(.prokodo-DatePicker__day--disabled)::before {
|
|
702
|
+
opacity: 0;
|
|
703
|
+
}
|
|
704
|
+
.prokodo-DatePicker__day--today:not(.prokodo-DatePicker__day--selected) {
|
|
705
|
+
font-weight: 600;
|
|
706
|
+
}
|
|
707
|
+
.prokodo-DatePicker__day--today:not(.prokodo-DatePicker__day--selected)::before {
|
|
708
|
+
opacity: 1;
|
|
709
|
+
}
|
|
710
|
+
.prokodo-DatePicker__day--selected {
|
|
711
|
+
border-radius: 100%;
|
|
712
|
+
background: linear-gradient(135deg, var(--pk-dp-gradient-from), var(--pk-dp-gradient-to));
|
|
713
|
+
color: #fff;
|
|
714
|
+
font-weight: 600;
|
|
715
|
+
box-shadow: 0 2px 8px var(--pk-dp-shadow-color);
|
|
716
|
+
}
|
|
717
|
+
.prokodo-DatePicker__day--selected::before {
|
|
718
|
+
opacity: 0;
|
|
719
|
+
}
|
|
720
|
+
.prokodo-DatePicker__day--selected:hover {
|
|
721
|
+
filter: brightness(1.08);
|
|
722
|
+
}
|
|
723
|
+
.prokodo-DatePicker__day--selected:hover::before {
|
|
724
|
+
opacity: 0;
|
|
725
|
+
}
|
|
726
|
+
.prokodo-DatePicker__day--outside {
|
|
727
|
+
color: var(--pk-dp-day-outside-fg);
|
|
728
|
+
}
|
|
729
|
+
.prokodo-DatePicker__day--disabled {
|
|
730
|
+
color: var(--pk-dp-day-disabled-fg);
|
|
731
|
+
cursor: not-allowed;
|
|
732
|
+
pointer-events: none;
|
|
733
|
+
}
|
|
734
|
+
.prokodo-DatePicker__day--disabled:hover {
|
|
735
|
+
background: transparent;
|
|
736
|
+
}
|
|
737
|
+
.prokodo-DatePicker__time__row {
|
|
738
|
+
display: flex;
|
|
739
|
+
align-items: center;
|
|
740
|
+
gap: var(--pk-space-xs);
|
|
741
|
+
padding: var(--pk-space-sm) 0 var(--pk-space-xs);
|
|
742
|
+
margin-top: var(--pk-space-sm);
|
|
743
|
+
border-top: 1px solid var(--pk-dp-footer-border);
|
|
744
|
+
}
|
|
745
|
+
@media screen and (max-width: 480px) {
|
|
746
|
+
.prokodo-DatePicker__time__row {
|
|
747
|
+
justify-content: center;
|
|
748
|
+
gap: var(--pk-space-md);
|
|
749
|
+
padding: var(--pk-space-md) 0;
|
|
750
|
+
margin-top: var(--pk-space-md);
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
.prokodo-DatePicker__time__label {
|
|
754
|
+
padding-left: var(--pk-space-sm);
|
|
755
|
+
text-transform: uppercase;
|
|
756
|
+
color: var(--pk-dp-time-label-fg);
|
|
757
|
+
flex: 1 1;
|
|
758
|
+
font-weight: 400;
|
|
759
|
+
font-size: 1rem;
|
|
760
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
761
|
+
font-style: normal;
|
|
762
|
+
line-height: 1.45;
|
|
763
|
+
letter-spacing: 0.03em;
|
|
764
|
+
text-transform: none;
|
|
765
|
+
text-align: left;
|
|
766
|
+
text-decoration: none;
|
|
767
|
+
}
|
|
768
|
+
@media screen and (min-width: 480px) {
|
|
769
|
+
.prokodo-DatePicker__time__label {
|
|
770
|
+
font-size: 0.875rem;
|
|
771
|
+
line-height: 1.4;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
@media screen and (min-width: 960px) {
|
|
775
|
+
.prokodo-DatePicker__time__label {
|
|
776
|
+
font-size: 0.875rem;
|
|
777
|
+
line-height: 1.4;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
.prokodo-DatePicker__time__label {
|
|
781
|
+
font-weight: 600;
|
|
782
|
+
}
|
|
783
|
+
@media screen and (max-width: 480px) {
|
|
784
|
+
.prokodo-DatePicker__time__label {
|
|
785
|
+
display: none;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
.prokodo-DatePicker__time__select {
|
|
789
|
+
-webkit-appearance: none;
|
|
790
|
+
-moz-appearance: none;
|
|
791
|
+
appearance: none;
|
|
792
|
+
background: var(--pk-dp-time-select-bg);
|
|
793
|
+
color: var(--pk-dp-time-select-fg);
|
|
794
|
+
border: 1px solid var(--pk-dp-time-select-border);
|
|
795
|
+
border-radius: var(--pk-dp-time-select-radius);
|
|
796
|
+
padding: var(--pk-space-xs) var(--pk-space-sm);
|
|
797
|
+
cursor: pointer;
|
|
798
|
+
transition: border-color var(--pk-timing-fast) ease;
|
|
799
|
+
width: 3.5rem;
|
|
800
|
+
font-weight: 400;
|
|
801
|
+
font-size: 1rem;
|
|
802
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
803
|
+
font-style: normal;
|
|
804
|
+
line-height: 1.45;
|
|
805
|
+
letter-spacing: 0.03em;
|
|
806
|
+
text-transform: none;
|
|
807
|
+
text-align: left;
|
|
808
|
+
text-decoration: none;
|
|
809
|
+
}
|
|
810
|
+
@media screen and (min-width: 480px) {
|
|
811
|
+
.prokodo-DatePicker__time__select {
|
|
812
|
+
font-size: 0.875rem;
|
|
813
|
+
line-height: 1.4;
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
@media screen and (min-width: 960px) {
|
|
817
|
+
.prokodo-DatePicker__time__select {
|
|
818
|
+
font-size: 0.875rem;
|
|
819
|
+
line-height: 1.4;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
.prokodo-DatePicker__time__select {
|
|
823
|
+
text-align: center;
|
|
824
|
+
}
|
|
825
|
+
.prokodo-DatePicker__time__select:focus {
|
|
826
|
+
outline: none;
|
|
827
|
+
border-color: var(--pk-dp-gradient-from);
|
|
828
|
+
}
|
|
829
|
+
@media screen and (max-width: 480px) {
|
|
830
|
+
.prokodo-DatePicker__time__select {
|
|
831
|
+
width: 5.5rem;
|
|
832
|
+
height: 3.25rem;
|
|
833
|
+
font-size: 1.75rem;
|
|
834
|
+
font-weight: 600;
|
|
835
|
+
border-radius: var(--pk-radius-lg);
|
|
836
|
+
text-align: center;
|
|
837
|
+
padding: 0;
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
.prokodo-DatePicker__time__sep {
|
|
841
|
+
font-size: 1rem;
|
|
842
|
+
font-weight: 700;
|
|
843
|
+
color: var(--pk-dp-time-sep-fg);
|
|
844
|
+
margin-inline: 2px;
|
|
845
|
+
}
|
|
846
|
+
@media screen and (max-width: 480px) {
|
|
847
|
+
.prokodo-DatePicker__time__sep {
|
|
848
|
+
font-size: 1.75rem;
|
|
849
|
+
font-weight: 700;
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
.prokodo-DatePicker__footer {
|
|
853
|
+
display: flex;
|
|
854
|
+
align-items: center;
|
|
855
|
+
justify-content: flex-end;
|
|
856
|
+
gap: var(--pk-space-xs);
|
|
857
|
+
padding-top: var(--pk-space-sm);
|
|
858
|
+
margin-top: var(--pk-space-sm);
|
|
859
|
+
border-top: 1px solid var(--pk-dp-footer-border);
|
|
860
|
+
}
|
|
861
|
+
@media screen and (max-width: 480px) {
|
|
862
|
+
.prokodo-DatePicker__footer {
|
|
863
|
+
gap: var(--pk-space-sm);
|
|
864
|
+
padding-top: var(--pk-space-md);
|
|
865
|
+
margin-top: var(--pk-space-md);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
.prokodo-DatePicker__footer__btn {
|
|
869
|
+
padding: var(--pk-space-xs) var(--pk-space-sm);
|
|
870
|
+
border-radius: var(--pk-radius-md);
|
|
871
|
+
border: none;
|
|
872
|
+
font-size: 0.8125rem;
|
|
873
|
+
font-weight: 500;
|
|
874
|
+
cursor: pointer;
|
|
875
|
+
transition: background var(--pk-timing-fast) ease, color var(--pk-timing-fast) ease, box-shadow var(--pk-timing-fast) ease;
|
|
876
|
+
}
|
|
877
|
+
@media screen and (max-width: 480px) {
|
|
878
|
+
.prokodo-DatePicker__footer__btn {
|
|
879
|
+
flex: 1 1;
|
|
880
|
+
height: 3rem;
|
|
881
|
+
font-size: 0.9375rem;
|
|
882
|
+
font-weight: 600;
|
|
883
|
+
border-radius: var(--pk-radius-lg);
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
.prokodo-DatePicker__footer__btn--ghost {
|
|
887
|
+
background: transparent;
|
|
888
|
+
color: var(--pk-dp-footer-ghost-fg);
|
|
889
|
+
}
|
|
890
|
+
.prokodo-DatePicker__footer__btn--ghost:hover {
|
|
891
|
+
background: var(--pk-dp-nav-hover-bg);
|
|
892
|
+
color: var(--pk-dp-footer-ghost-hover-fg);
|
|
893
|
+
}
|
|
894
|
+
@media screen and (max-width: 480px) {
|
|
895
|
+
.prokodo-DatePicker__footer__btn--ghost {
|
|
896
|
+
background: color-mix(in srgb, var(--pk-dp-nav-fg) 8%, transparent);
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
.prokodo-DatePicker__footer__btn--ghost:first-child {
|
|
900
|
+
color: var(--pk-dp-gradient-from);
|
|
901
|
+
margin-right: auto;
|
|
902
|
+
}
|
|
903
|
+
.prokodo-DatePicker__footer__btn--ghost:first-child:hover {
|
|
904
|
+
background: color-mix(in srgb, var(--pk-dp-gradient-from) 12%, transparent);
|
|
905
|
+
color: var(--pk-dp-gradient-from);
|
|
906
|
+
}
|
|
907
|
+
@media screen and (max-width: 480px) {
|
|
908
|
+
.prokodo-DatePicker__footer__btn--ghost:first-child {
|
|
909
|
+
margin-right: 0;
|
|
910
|
+
background: color-mix(in srgb, var(--pk-dp-gradient-from) 10%, transparent);
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
.prokodo-DatePicker__footer__btn--filled {
|
|
914
|
+
background: linear-gradient(135deg, var(--pk-dp-gradient-from), var(--pk-dp-gradient-to));
|
|
915
|
+
color: #fff;
|
|
916
|
+
font-weight: 600;
|
|
917
|
+
box-shadow: 0 2px 6px var(--pk-dp-shadow-color);
|
|
918
|
+
}
|
|
919
|
+
.prokodo-DatePicker__footer__btn--filled:hover {
|
|
920
|
+
filter: brightness(1.08);
|
|
921
|
+
box-shadow: 0 3px 10px var(--pk-dp-shadow-color);
|
|
922
|
+
}
|
|
923
|
+
@media screen and (max-width: 480px) {
|
|
924
|
+
.prokodo-DatePicker__footer__btn--filled {
|
|
925
|
+
flex: 1.5 1;
|
|
926
|
+
box-shadow: 0 4px 16px var(--pk-dp-shadow-color);
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
.prokodo-DatePicker__helper {
|
|
930
|
+
margin-top: var(--pk-space-xs);
|
|
931
|
+
padding-inline: var(--pk-dp-trigger-padding-x);
|
|
932
|
+
font-size: 0.8125rem;
|
|
933
|
+
color: var(--pk-dp-trigger-fg-muted);
|
|
934
|
+
}
|
|
935
|
+
.prokodo-DatePicker__error {
|
|
936
|
+
margin-top: var(--pk-space-xs);
|
|
937
|
+
padding-inline: var(--pk-dp-trigger-padding-x);
|
|
938
|
+
font-size: 0.8125rem;
|
|
939
|
+
color: var(--pk-color-error);
|
|
940
|
+
}
|