@prokodo/ui 0.1.15 → 1.0.1
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,132 @@
|
|
|
1
|
+
/* stylelint-disable */
|
|
2
|
+
/**
|
|
3
|
+
* Calculates a rem-based value by a given pixel size.
|
|
4
|
+
*/
|
|
5
|
+
/* stylelint-disable */
|
|
6
|
+
/**
|
|
7
|
+
* Applies flex-column and gap.
|
|
8
|
+
*/
|
|
9
|
+
/*
|
|
10
|
+
As example (light, primary)
|
|
11
|
+
See defined modes in designsystem/config/gradients
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Mixin that renders a media query that target screens that are larger than the
|
|
15
|
+
* given size.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Mixin that renders a media query that target screens that are smaller than the
|
|
19
|
+
* given size.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
* Mixin that renders a media query that target screens in between the given range.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Mixin that renders a media query that target screens that have height larger than the
|
|
26
|
+
* given size.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* Mixin that renders a media query that target screens that have height smaller than the
|
|
30
|
+
* given size.
|
|
31
|
+
*/
|
|
32
|
+
/* stylelint-disable */
|
|
33
|
+
/* M3/Elevation Light/1 */
|
|
34
|
+
/* M3/Elevation Light/2 */
|
|
35
|
+
/* M3/Elevation/5 */
|
|
36
|
+
/* M3/Elevation/1 Text */
|
|
37
|
+
/* Inner elevations */
|
|
38
|
+
/* stylelint-disable */
|
|
39
|
+
/**
|
|
40
|
+
* Visually hides an element but not removes them for screen readers.
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* The inverse of the `hidden` helper to reset a previously hidden element to be
|
|
44
|
+
* visible for users.
|
|
45
|
+
*/
|
|
46
|
+
/**
|
|
47
|
+
* Creates a selector for :hover effects depending on the current user input
|
|
48
|
+
* device. If the input device is a mouse, this hover effect will appear.
|
|
49
|
+
* Keyboard and touch inputs are ignored.
|
|
50
|
+
*
|
|
51
|
+
* Example usage:
|
|
52
|
+
* .link {
|
|
53
|
+
* color: blue;
|
|
54
|
+
*
|
|
55
|
+
* @include when-hovered() {
|
|
56
|
+
* color: green;
|
|
57
|
+
* }
|
|
58
|
+
* }
|
|
59
|
+
*/
|
|
60
|
+
/**
|
|
61
|
+
* Creates a selector for :active effects depending on the current user input
|
|
62
|
+
* device. The state applies when the input device is a mouse or keyboard. Touch
|
|
63
|
+
* devices will not show a pressed state.
|
|
64
|
+
*
|
|
65
|
+
* Example usage:
|
|
66
|
+
* .link {
|
|
67
|
+
* box-shadow: none;
|
|
68
|
+
*
|
|
69
|
+
* @include when-pressed() {
|
|
70
|
+
* box-shadow: inset 0 2px 4px grey;
|
|
71
|
+
* }
|
|
72
|
+
* }
|
|
73
|
+
*/
|
|
74
|
+
/**
|
|
75
|
+
* Creates a selector for :focus effects depending on the current user input
|
|
76
|
+
* device. When the user navigates using a keyboard, the focus effect defined in
|
|
77
|
+
* here is applied. For other input devices they don't show up.
|
|
78
|
+
*
|
|
79
|
+
* Example usage:
|
|
80
|
+
* .link {
|
|
81
|
+
* text-decoration: none;
|
|
82
|
+
*
|
|
83
|
+
* @include when-focused() {
|
|
84
|
+
* text-decoration: underline;
|
|
85
|
+
* }
|
|
86
|
+
* }
|
|
87
|
+
*/
|
|
88
|
+
/**
|
|
89
|
+
* Creates a selector for :focus-within effects depending on the current user
|
|
90
|
+
* input device. When the user navigates using a keyboard, the focus effect
|
|
91
|
+
* defined in here is applied. For other input devices they don't show up.
|
|
92
|
+
*
|
|
93
|
+
* Example usage:
|
|
94
|
+
* .link {
|
|
95
|
+
* img {
|
|
96
|
+
* opacity: 0.75;
|
|
97
|
+
*
|
|
98
|
+
* @include when-focused-within() {
|
|
99
|
+
* opacity: 1;
|
|
100
|
+
* }
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
*/
|
|
104
|
+
/**
|
|
105
|
+
* Wrapper for media query "prefers-reduced-motion".
|
|
106
|
+
*/
|
|
107
|
+
/**
|
|
108
|
+
* This helper hides the outline but still makes it visible for
|
|
109
|
+
* Windows high-contrast users. Use this instead of `outline: 0;`.
|
|
110
|
+
*/
|
|
111
|
+
/**
|
|
112
|
+
* This helper hides the outline but still makes it visible for
|
|
113
|
+
* Windows high-contrast users. Use this instead of `outline: 0;`.
|
|
114
|
+
*/
|
|
115
|
+
/**
|
|
116
|
+
* Renders an alternative, but application consistent focus-ring.
|
|
117
|
+
*/
|
|
118
|
+
/**
|
|
119
|
+
* Specifies the outer layout for all contents across breakpoints. Apply this
|
|
120
|
+
* mixin to the container element, to center the contents on the screen within
|
|
121
|
+
* the layout offsets.
|
|
122
|
+
*/
|
|
123
|
+
/**
|
|
124
|
+
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
|
+
* content.
|
|
126
|
+
*/
|
|
127
|
+
.prokodo-Calendly__widget {
|
|
128
|
+
display: block;
|
|
129
|
+
min-width: 320px;
|
|
130
|
+
height: var(--pk-calendly-height, 700px);
|
|
131
|
+
width: 100%;
|
|
132
|
+
}
|
|
@@ -2,22 +2,28 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Animated } from "../animated/Animated.js";
|
|
5
|
+
import { create } from "../../helpers/bem.js";
|
|
6
|
+
import styles from "./Calendly.module.scss.js";
|
|
5
7
|
import { Loading } from "../loading/Loading.js";
|
|
8
|
+
const bem = create(styles, "Calendly");
|
|
6
9
|
function CalendlyView({
|
|
7
10
|
animationProps,
|
|
8
11
|
hideLoading,
|
|
9
12
|
LoadingComponent = Loading,
|
|
10
13
|
calendlyId: _calendlyId,
|
|
14
|
+
className,
|
|
11
15
|
...rest
|
|
12
16
|
}) {
|
|
13
|
-
const style = {
|
|
14
|
-
display: "block",
|
|
15
|
-
minWidth: 320,
|
|
16
|
-
height: 700
|
|
17
|
-
};
|
|
18
17
|
return /* @__PURE__ */ jsxs(Animated, { ...animationProps, children: [
|
|
19
18
|
!Boolean(hideLoading) && /* @__PURE__ */ jsx(LoadingComponent, {}),
|
|
20
|
-
/* @__PURE__ */ jsx(
|
|
19
|
+
/* @__PURE__ */ jsx(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
...rest,
|
|
23
|
+
"data-calendly": true,
|
|
24
|
+
className: bem("widget", void 0, className)
|
|
25
|
+
}
|
|
26
|
+
)
|
|
21
27
|
] });
|
|
22
28
|
}
|
|
23
29
|
__name(CalendlyView, "CalendlyView");
|
|
@@ -20,8 +20,13 @@ function CardClient({
|
|
|
20
20
|
}, [onClick]);
|
|
21
21
|
const handleKey = useCallback(
|
|
22
22
|
(e) => {
|
|
23
|
-
|
|
23
|
+
const isActivationKey = e.key === "Enter" || e.key === " " || e.key === "Spacebar" || e.code === "Enter" || e.code === "Space";
|
|
24
|
+
if (isActivationKey && typeof onClick === "function" && !Boolean(disabled)) {
|
|
25
|
+
if (e.key === " " || e.key === "Spacebar" || e.code === "Space") {
|
|
26
|
+
e.preventDefault();
|
|
27
|
+
}
|
|
24
28
|
onClick();
|
|
29
|
+
}
|
|
25
30
|
onKeyDown == null ? void 0 : onKeyDown(e);
|
|
26
31
|
},
|
|
27
32
|
[onClick, onKeyDown, disabled]
|
|
@@ -124,9 +124,6 @@
|
|
|
124
124
|
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
|
-
/**
|
|
128
|
-
* Fade in
|
|
129
|
-
*/
|
|
130
127
|
@keyframes Card_fadeInAnimation {
|
|
131
128
|
0% {
|
|
132
129
|
opacity: 0;
|
|
@@ -142,50 +139,88 @@
|
|
|
142
139
|
}
|
|
143
140
|
.prokodo-Card {
|
|
144
141
|
position: relative;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
/* Reveal animation (what used to be &--has-animation + fadeInAnimation) */
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
color: var(--pk-card-fg, #111);
|
|
144
|
+
background-color: var(--pk-card-bg, #fff);
|
|
145
|
+
border-radius: var(--pk-card-radius);
|
|
150
146
|
}
|
|
151
147
|
.prokodo-Card--inherit {
|
|
152
|
-
background-color: var(--
|
|
148
|
+
background-color: var(--pk-card-inherit-bg);
|
|
153
149
|
}
|
|
154
150
|
.prokodo-Card--white {
|
|
155
|
-
background-color: var(--
|
|
151
|
+
background-color: var(--pk-card-bg);
|
|
152
|
+
}
|
|
153
|
+
.prokodo-Card--primary {
|
|
154
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-brand) 30%, transparent);
|
|
155
|
+
background-color: color-mix(in srgb, var(--pk-color-brand) 4%, var(--pk-card-bg));
|
|
156
|
+
}
|
|
157
|
+
.prokodo-Card--secondary {
|
|
158
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-accent) 30%, transparent);
|
|
159
|
+
background-color: color-mix(in srgb, var(--pk-color-accent) 4%, var(--pk-card-bg));
|
|
160
|
+
}
|
|
161
|
+
.prokodo-Card--success {
|
|
162
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-success) 30%, transparent);
|
|
163
|
+
background-color: color-mix(in srgb, var(--pk-color-success) 4%, var(--pk-card-bg));
|
|
164
|
+
}
|
|
165
|
+
.prokodo-Card--warning {
|
|
166
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-warning) 30%, transparent);
|
|
167
|
+
background-color: color-mix(in srgb, var(--pk-color-warning) 4%, var(--pk-card-bg));
|
|
168
|
+
}
|
|
169
|
+
.prokodo-Card--error {
|
|
170
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-error) 30%, transparent);
|
|
171
|
+
background-color: color-mix(in srgb, var(--pk-color-error) 4%, var(--pk-card-bg));
|
|
172
|
+
}
|
|
173
|
+
.prokodo-Card--info {
|
|
174
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-fg) 20%, transparent);
|
|
175
|
+
background-color: color-mix(in srgb, var(--pk-color-fg) 4%, var(--pk-card-bg));
|
|
156
176
|
}
|
|
157
|
-
|
|
158
|
-
|
|
177
|
+
.prokodo-Card--primary.prokodo-Card--is-clickable {
|
|
178
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-brand) 18%, transparent);
|
|
179
|
+
}
|
|
180
|
+
.prokodo-Card--secondary.prokodo-Card--is-clickable {
|
|
181
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-accent) 18%, transparent);
|
|
182
|
+
}
|
|
183
|
+
.prokodo-Card--success.prokodo-Card--is-clickable {
|
|
184
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-success) 18%, transparent);
|
|
185
|
+
}
|
|
186
|
+
.prokodo-Card--warning.prokodo-Card--is-clickable {
|
|
187
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-warning) 18%, transparent);
|
|
188
|
+
}
|
|
189
|
+
.prokodo-Card--error.prokodo-Card--is-clickable {
|
|
190
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-error) 18%, transparent);
|
|
191
|
+
}
|
|
192
|
+
.prokodo-Card--info.prokodo-Card--is-clickable {
|
|
193
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-fg) 10%, transparent);
|
|
159
194
|
}
|
|
160
195
|
.prokodo-Card--panel {
|
|
161
|
-
background:
|
|
162
|
-
border:
|
|
163
|
-
/* in light mode trotzdem lesbar */
|
|
196
|
+
background: var(--pk-card-panel-bg);
|
|
197
|
+
border: var(--pk-border-width) solid var(--pk-card-panel-border);
|
|
164
198
|
}
|
|
165
|
-
|
|
166
|
-
background: var(--
|
|
167
|
-
border:
|
|
199
|
+
.prokodo-Card--panel:not([data-theme=dark] *) {
|
|
200
|
+
background: var(--pk-card-panel-light-bg);
|
|
201
|
+
border-color: var(--pk-card-panel-light-border);
|
|
168
202
|
}
|
|
169
203
|
.prokodo-Card__skeleton {
|
|
170
204
|
position: absolute;
|
|
171
205
|
z-index: 3;
|
|
172
206
|
width: 100%;
|
|
173
207
|
height: 100% !important;
|
|
174
|
-
border-radius:
|
|
208
|
+
border-radius: var(--pk-card-radius);
|
|
175
209
|
}
|
|
176
210
|
.prokodo-Card__background {
|
|
177
211
|
position: absolute;
|
|
178
|
-
|
|
179
|
-
left: 0;
|
|
212
|
+
inset: 0;
|
|
180
213
|
width: 100%;
|
|
181
214
|
height: 100%;
|
|
215
|
+
-o-object-fit: cover;
|
|
216
|
+
object-fit: cover;
|
|
217
|
+
-o-object-position: center;
|
|
218
|
+
object-position: center;
|
|
182
219
|
background-repeat: no-repeat;
|
|
183
220
|
background-position: center;
|
|
184
221
|
background-size: cover;
|
|
185
|
-
border-radius:
|
|
222
|
+
border-radius: var(--pk-card-radius);
|
|
186
223
|
z-index: 1;
|
|
187
|
-
}
|
|
188
|
-
html[data-theme=dark] .prokodo-Card__background {
|
|
189
224
|
opacity: 0.7;
|
|
190
225
|
}
|
|
191
226
|
.prokodo-Card__link {
|
|
@@ -197,8 +232,8 @@ html[data-theme=dark] .prokodo-Card__background {
|
|
|
197
232
|
.prokodo-Card__content {
|
|
198
233
|
position: relative;
|
|
199
234
|
z-index: 2;
|
|
200
|
-
padding:
|
|
201
|
-
color: var(--
|
|
235
|
+
padding: var(--pk-card-padding);
|
|
236
|
+
color: var(--pk-card-fg);
|
|
202
237
|
}
|
|
203
238
|
.prokodo-Card__content--has-link {
|
|
204
239
|
cursor: pointer;
|
|
@@ -213,7 +248,7 @@ html[data-theme=dark] .prokodo-Card__background {
|
|
|
213
248
|
width: 100%;
|
|
214
249
|
height: 100%;
|
|
215
250
|
top: 0;
|
|
216
|
-
border-radius:
|
|
251
|
+
border-radius: var(--pk-card-radius);
|
|
217
252
|
}
|
|
218
253
|
.prokodo-Card__gradiant--primary {
|
|
219
254
|
background: var(--gradient-background-primary);
|
|
@@ -232,20 +267,18 @@ html[data-theme=dark] .prokodo-Card__background {
|
|
|
232
267
|
}
|
|
233
268
|
.prokodo-Card--has-highlight {
|
|
234
269
|
position: relative;
|
|
235
|
-
/* Highlight border fade-in that previously defined @keyframes inline */
|
|
236
270
|
}
|
|
237
271
|
.prokodo-Card--has-highlight::before {
|
|
238
272
|
content: "";
|
|
239
273
|
position: absolute;
|
|
240
274
|
inset: 0;
|
|
241
275
|
border-radius: inherit;
|
|
242
|
-
padding:
|
|
276
|
+
padding: var(--pk-border-width);
|
|
243
277
|
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
244
278
|
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
245
279
|
-webkit-mask-composite: xor;
|
|
246
280
|
mask-composite: exclude;
|
|
247
281
|
opacity: 0;
|
|
248
|
-
/* If gradientBorderVar injects animated gradient, it's fine here */
|
|
249
282
|
background: var(--gradient-border-4);
|
|
250
283
|
animation: Card_fadeInMask 0.5s ease forwards;
|
|
251
284
|
}
|
|
@@ -253,18 +286,20 @@ html[data-theme=dark] .prokodo-Card__background {
|
|
|
253
286
|
position: relative;
|
|
254
287
|
}
|
|
255
288
|
.prokodo-Card--has-gradiant, .prokodo-Card--has-background {
|
|
256
|
-
color: var(--
|
|
289
|
+
color: var(--pk-card-fg);
|
|
257
290
|
}
|
|
258
291
|
.prokodo-Card--has-shadow {
|
|
259
|
-
box-shadow: var(--
|
|
292
|
+
box-shadow: var(--pk-card-shadow);
|
|
260
293
|
}
|
|
261
294
|
.prokodo-Card--has-animation {
|
|
262
295
|
animation: Card_fadeInAnimation 0.5s;
|
|
263
296
|
}
|
|
264
297
|
.prokodo-Card--is-clickable {
|
|
265
298
|
cursor: pointer;
|
|
299
|
+
transition: transform var(--pk-timing-fast, 0.15s) ease;
|
|
266
300
|
}
|
|
267
301
|
.prokodo-Card--is-clickable:hover {
|
|
302
|
+
transform: translateY(-2px);
|
|
268
303
|
box-shadow: none;
|
|
269
304
|
}
|
|
270
305
|
.prokodo-Card--is-clickable:focus {
|
|
@@ -124,9 +124,6 @@
|
|
|
124
124
|
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
|
-
/**
|
|
128
|
-
* Fade in
|
|
129
|
-
*/
|
|
130
127
|
@keyframes Card_fadeInAnimation {
|
|
131
128
|
0% {
|
|
132
129
|
opacity: 0;
|
|
@@ -142,50 +139,88 @@
|
|
|
142
139
|
}
|
|
143
140
|
.prokodo-Card {
|
|
144
141
|
position: relative;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
/* Reveal animation (what used to be &--has-animation + fadeInAnimation) */
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
color: var(--pk-card-fg, #111);
|
|
144
|
+
background-color: var(--pk-card-bg, #fff);
|
|
145
|
+
border-radius: var(--pk-card-radius);
|
|
150
146
|
}
|
|
151
147
|
.prokodo-Card--inherit {
|
|
152
|
-
background-color: var(--
|
|
148
|
+
background-color: var(--pk-card-inherit-bg);
|
|
153
149
|
}
|
|
154
150
|
.prokodo-Card--white {
|
|
155
|
-
background-color: var(--
|
|
151
|
+
background-color: var(--pk-card-bg);
|
|
152
|
+
}
|
|
153
|
+
.prokodo-Card--primary {
|
|
154
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-brand) 30%, transparent);
|
|
155
|
+
background-color: color-mix(in srgb, var(--pk-color-brand) 4%, var(--pk-card-bg));
|
|
156
|
+
}
|
|
157
|
+
.prokodo-Card--secondary {
|
|
158
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-accent) 30%, transparent);
|
|
159
|
+
background-color: color-mix(in srgb, var(--pk-color-accent) 4%, var(--pk-card-bg));
|
|
160
|
+
}
|
|
161
|
+
.prokodo-Card--success {
|
|
162
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-success) 30%, transparent);
|
|
163
|
+
background-color: color-mix(in srgb, var(--pk-color-success) 4%, var(--pk-card-bg));
|
|
164
|
+
}
|
|
165
|
+
.prokodo-Card--warning {
|
|
166
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-warning) 30%, transparent);
|
|
167
|
+
background-color: color-mix(in srgb, var(--pk-color-warning) 4%, var(--pk-card-bg));
|
|
168
|
+
}
|
|
169
|
+
.prokodo-Card--error {
|
|
170
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-error) 30%, transparent);
|
|
171
|
+
background-color: color-mix(in srgb, var(--pk-color-error) 4%, var(--pk-card-bg));
|
|
172
|
+
}
|
|
173
|
+
.prokodo-Card--info {
|
|
174
|
+
border: var(--pk-border-width) solid color-mix(in srgb, var(--pk-color-fg) 20%, transparent);
|
|
175
|
+
background-color: color-mix(in srgb, var(--pk-color-fg) 4%, var(--pk-card-bg));
|
|
156
176
|
}
|
|
157
|
-
|
|
158
|
-
|
|
177
|
+
.prokodo-Card--primary.prokodo-Card--is-clickable {
|
|
178
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-brand) 18%, transparent);
|
|
179
|
+
}
|
|
180
|
+
.prokodo-Card--secondary.prokodo-Card--is-clickable {
|
|
181
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-accent) 18%, transparent);
|
|
182
|
+
}
|
|
183
|
+
.prokodo-Card--success.prokodo-Card--is-clickable {
|
|
184
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-success) 18%, transparent);
|
|
185
|
+
}
|
|
186
|
+
.prokodo-Card--warning.prokodo-Card--is-clickable {
|
|
187
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-warning) 18%, transparent);
|
|
188
|
+
}
|
|
189
|
+
.prokodo-Card--error.prokodo-Card--is-clickable {
|
|
190
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-error) 18%, transparent);
|
|
191
|
+
}
|
|
192
|
+
.prokodo-Card--info.prokodo-Card--is-clickable {
|
|
193
|
+
box-shadow: 0 4px 20px color-mix(in srgb, var(--pk-color-fg) 10%, transparent);
|
|
159
194
|
}
|
|
160
195
|
.prokodo-Card--panel {
|
|
161
|
-
background:
|
|
162
|
-
border:
|
|
163
|
-
/* in light mode trotzdem lesbar */
|
|
196
|
+
background: var(--pk-card-panel-bg);
|
|
197
|
+
border: var(--pk-border-width) solid var(--pk-card-panel-border);
|
|
164
198
|
}
|
|
165
|
-
|
|
166
|
-
background: var(--
|
|
167
|
-
border:
|
|
199
|
+
.prokodo-Card--panel:not([data-theme=dark] *) {
|
|
200
|
+
background: var(--pk-card-panel-light-bg);
|
|
201
|
+
border-color: var(--pk-card-panel-light-border);
|
|
168
202
|
}
|
|
169
203
|
.prokodo-Card__skeleton {
|
|
170
204
|
position: absolute;
|
|
171
205
|
z-index: 3;
|
|
172
206
|
width: 100%;
|
|
173
207
|
height: 100% !important;
|
|
174
|
-
border-radius:
|
|
208
|
+
border-radius: var(--pk-card-radius);
|
|
175
209
|
}
|
|
176
210
|
.prokodo-Card__background {
|
|
177
211
|
position: absolute;
|
|
178
|
-
|
|
179
|
-
left: 0;
|
|
212
|
+
inset: 0;
|
|
180
213
|
width: 100%;
|
|
181
214
|
height: 100%;
|
|
215
|
+
-o-object-fit: cover;
|
|
216
|
+
object-fit: cover;
|
|
217
|
+
-o-object-position: center;
|
|
218
|
+
object-position: center;
|
|
182
219
|
background-repeat: no-repeat;
|
|
183
220
|
background-position: center;
|
|
184
221
|
background-size: cover;
|
|
185
|
-
border-radius:
|
|
222
|
+
border-radius: var(--pk-card-radius);
|
|
186
223
|
z-index: 1;
|
|
187
|
-
}
|
|
188
|
-
html[data-theme=dark] .prokodo-Card__background {
|
|
189
224
|
opacity: 0.7;
|
|
190
225
|
}
|
|
191
226
|
.prokodo-Card__link {
|
|
@@ -197,8 +232,8 @@ html[data-theme=dark] .prokodo-Card__background {
|
|
|
197
232
|
.prokodo-Card__content {
|
|
198
233
|
position: relative;
|
|
199
234
|
z-index: 2;
|
|
200
|
-
padding:
|
|
201
|
-
color: var(--
|
|
235
|
+
padding: var(--pk-card-padding);
|
|
236
|
+
color: var(--pk-card-fg);
|
|
202
237
|
}
|
|
203
238
|
.prokodo-Card__content--has-link {
|
|
204
239
|
cursor: pointer;
|
|
@@ -213,7 +248,7 @@ html[data-theme=dark] .prokodo-Card__background {
|
|
|
213
248
|
width: 100%;
|
|
214
249
|
height: 100%;
|
|
215
250
|
top: 0;
|
|
216
|
-
border-radius:
|
|
251
|
+
border-radius: var(--pk-card-radius);
|
|
217
252
|
}
|
|
218
253
|
.prokodo-Card__gradiant--primary {
|
|
219
254
|
background: var(--gradient-background-primary);
|
|
@@ -232,20 +267,18 @@ html[data-theme=dark] .prokodo-Card__background {
|
|
|
232
267
|
}
|
|
233
268
|
.prokodo-Card--has-highlight {
|
|
234
269
|
position: relative;
|
|
235
|
-
/* Highlight border fade-in that previously defined @keyframes inline */
|
|
236
270
|
}
|
|
237
271
|
.prokodo-Card--has-highlight::before {
|
|
238
272
|
content: "";
|
|
239
273
|
position: absolute;
|
|
240
274
|
inset: 0;
|
|
241
275
|
border-radius: inherit;
|
|
242
|
-
padding:
|
|
276
|
+
padding: var(--pk-border-width);
|
|
243
277
|
-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
244
278
|
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
245
279
|
-webkit-mask-composite: xor;
|
|
246
280
|
mask-composite: exclude;
|
|
247
281
|
opacity: 0;
|
|
248
|
-
/* If gradientBorderVar injects animated gradient, it's fine here */
|
|
249
282
|
background: var(--gradient-border-4);
|
|
250
283
|
animation: Card_fadeInMask 0.5s ease forwards;
|
|
251
284
|
}
|
|
@@ -253,18 +286,20 @@ html[data-theme=dark] .prokodo-Card__background {
|
|
|
253
286
|
position: relative;
|
|
254
287
|
}
|
|
255
288
|
.prokodo-Card--has-gradiant, .prokodo-Card--has-background {
|
|
256
|
-
color: var(--
|
|
289
|
+
color: var(--pk-card-fg);
|
|
257
290
|
}
|
|
258
291
|
.prokodo-Card--has-shadow {
|
|
259
|
-
box-shadow: var(--
|
|
292
|
+
box-shadow: var(--pk-card-shadow);
|
|
260
293
|
}
|
|
261
294
|
.prokodo-Card--has-animation {
|
|
262
295
|
animation: Card_fadeInAnimation 0.5s;
|
|
263
296
|
}
|
|
264
297
|
.prokodo-Card--is-clickable {
|
|
265
298
|
cursor: pointer;
|
|
299
|
+
transition: transform var(--pk-timing-fast, 0.15s) ease;
|
|
266
300
|
}
|
|
267
301
|
.prokodo-Card--is-clickable:hover {
|
|
302
|
+
transform: translateY(-2px);
|
|
268
303
|
box-shadow: none;
|
|
269
304
|
}
|
|
270
305
|
.prokodo-Card--is-clickable:focus {
|
|
@@ -4,6 +4,13 @@ const styles = {
|
|
|
4
4
|
"prokodo-Card": "prokodo-Card",
|
|
5
5
|
"prokodo-Card--inherit": "prokodo-Card--inherit",
|
|
6
6
|
"prokodo-Card--white": "prokodo-Card--white",
|
|
7
|
+
"prokodo-Card--primary": "prokodo-Card--primary",
|
|
8
|
+
"prokodo-Card--secondary": "prokodo-Card--secondary",
|
|
9
|
+
"prokodo-Card--success": "prokodo-Card--success",
|
|
10
|
+
"prokodo-Card--warning": "prokodo-Card--warning",
|
|
11
|
+
"prokodo-Card--error": "prokodo-Card--error",
|
|
12
|
+
"prokodo-Card--info": "prokodo-Card--info",
|
|
13
|
+
"prokodo-Card--is-clickable": "prokodo-Card--is-clickable",
|
|
7
14
|
"prokodo-Card--panel": "prokodo-Card--panel",
|
|
8
15
|
"prokodo-Card__skeleton": "prokodo-Card__skeleton",
|
|
9
16
|
"prokodo-Card__background": "prokodo-Card__background",
|
|
@@ -22,8 +29,7 @@ const styles = {
|
|
|
22
29
|
"prokodo-Card--has-background": "prokodo-Card--has-background",
|
|
23
30
|
"prokodo-Card--has-shadow": "prokodo-Card--has-shadow",
|
|
24
31
|
"prokodo-Card--has-animation": "prokodo-Card--has-animation",
|
|
25
|
-
Card_fadeInAnimation
|
|
26
|
-
"prokodo-Card--is-clickable": "prokodo-Card--is-clickable"
|
|
32
|
+
Card_fadeInAnimation
|
|
27
33
|
};
|
|
28
34
|
export {
|
|
29
35
|
Card_fadeInAnimation,
|
|
@@ -11,7 +11,7 @@ import { Link } from "../link/Link.js";
|
|
|
11
11
|
const bem = create(styles, "Card");
|
|
12
12
|
function CardView({
|
|
13
13
|
isClickable,
|
|
14
|
-
|
|
14
|
+
color = "white",
|
|
15
15
|
loading,
|
|
16
16
|
skeletonProps,
|
|
17
17
|
highlight,
|
|
@@ -35,7 +35,7 @@ function CardView({
|
|
|
35
35
|
onMouseLeave
|
|
36
36
|
}) {
|
|
37
37
|
const modifiers = {
|
|
38
|
-
[
|
|
38
|
+
[color]: true,
|
|
39
39
|
"is-clickable": Boolean(isClickable),
|
|
40
40
|
"has-highlight": Boolean(highlight),
|
|
41
41
|
"has-gradiant": Boolean(gradiant),
|
|
@@ -93,7 +93,7 @@ function CardView({
|
|
|
93
93
|
{
|
|
94
94
|
className: bem(
|
|
95
95
|
"gradiant",
|
|
96
|
-
{ [
|
|
96
|
+
{ [color]: color !== "inherit" && color !== "white" },
|
|
97
97
|
gradiantClassName
|
|
98
98
|
)
|
|
99
99
|
}
|
|
@@ -215,8 +215,7 @@ function CarouselClient(props) {
|
|
|
215
215
|
),
|
|
216
216
|
iconProps: {
|
|
217
217
|
name: "ArrowLeft01Icon",
|
|
218
|
-
size: "
|
|
219
|
-
color: "white",
|
|
218
|
+
size: "sm",
|
|
220
219
|
/* istanbul ignore next */
|
|
221
220
|
...prevButton == null ? void 0 : prevButton.iconProps
|
|
222
221
|
},
|
|
@@ -256,8 +255,7 @@ function CarouselClient(props) {
|
|
|
256
255
|
),
|
|
257
256
|
iconProps: {
|
|
258
257
|
name: "ArrowRight01Icon",
|
|
259
|
-
size: "
|
|
260
|
-
color: "white",
|
|
258
|
+
size: "sm",
|
|
261
259
|
/* istanbul ignore next */
|
|
262
260
|
...nextButton == null ? void 0 : nextButton.iconProps
|
|
263
261
|
},
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
left: 0;
|
|
153
153
|
opacity: 1;
|
|
154
154
|
visibility: visible;
|
|
155
|
-
background-color:
|
|
155
|
+
background-color: var(--pk-carousel-overlay-bg);
|
|
156
156
|
transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
|
|
157
157
|
z-index: 10;
|
|
158
158
|
}
|
|
@@ -179,6 +179,7 @@
|
|
|
179
179
|
width: 100%;
|
|
180
180
|
align-items: center;
|
|
181
181
|
justify-content: space-between;
|
|
182
|
+
margin-top: var(--pk-carousel-controls-mt);
|
|
182
183
|
opacity: 0;
|
|
183
184
|
}
|
|
184
185
|
@media screen and (min-width: 480px) {
|
|
@@ -187,11 +188,14 @@
|
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
190
|
.prokodo-Carousel__button {
|
|
190
|
-
padding:
|
|
191
|
+
padding: var(--pk-carousel-button-padding) !important;
|
|
192
|
+
line-height: 1 !important;
|
|
193
|
+
--pk-button-padding-x: var(--pk-carousel-button-padding);
|
|
194
|
+
--pk-button-padding-y: var(--pk-carousel-button-padding);
|
|
191
195
|
}
|
|
192
196
|
.prokodo-Carousel__dots {
|
|
193
197
|
display: flex;
|
|
194
|
-
margin:
|
|
198
|
+
margin: var(--pk-carousel-dots-mt) auto 0 auto;
|
|
195
199
|
text-align: center;
|
|
196
200
|
}
|
|
197
201
|
.prokodo-Carousel__dots__dot {
|
|
@@ -222,7 +226,7 @@
|
|
|
222
226
|
background: var(--gradient-border-4);
|
|
223
227
|
}
|
|
224
228
|
.prokodo-Carousel__dots__dot--is-active {
|
|
225
|
-
background-color:
|
|
229
|
+
background-color: var(--pk-carousel-dot-active-bg);
|
|
226
230
|
}
|
|
227
231
|
@media screen and (max-width: 1280px) {
|
|
228
232
|
.prokodo-Carousel__dots__dot {
|