@prokodo/ui 0.1.14 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +187 -26
- package/NOTICE +24 -0
- package/README.md +32 -302
- package/dist/components/RTE/RTE.client.js +0 -1
- package/dist/components/RTE/RTE.css +180 -68
- package/dist/components/RTE/RTE.js +4 -1
- package/dist/components/RTE/RTE.module.css +180 -68
- package/dist/components/RTE/RTE.module.scss.js +10 -0
- package/dist/components/RTE/RTE.view.js +5 -1
- package/dist/components/accordion/Accordion.css +120 -67
- package/dist/components/accordion/Accordion.js +8 -2
- package/dist/components/accordion/Accordion.module.css +120 -67
- package/dist/components/accordion/Accordion.module.scss.js +12 -5
- package/dist/components/accordion/Accordion.view.js +4 -4
- package/dist/components/animated/Animated.client.js +13 -5
- package/dist/components/animated/Animated.js +8 -2
- package/dist/components/animatedText/AnimatedText.client.js +10 -2
- package/dist/components/animatedText/AnimatedText.js +8 -2
- package/dist/components/autocomplete/Autocomplete.client.js +5 -1
- package/dist/components/autocomplete/Autocomplete.css +111 -95
- package/dist/components/autocomplete/Autocomplete.js +4 -1
- package/dist/components/autocomplete/Autocomplete.module.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.scss.js +11 -4
- package/dist/components/autocomplete/Autocomplete.view.js +16 -5
- package/dist/components/avatar/Avatar.css +11 -8
- package/dist/components/avatar/Avatar.js +4 -1
- package/dist/components/avatar/Avatar.module.css +11 -8
- package/dist/components/avatar/Avatar.module.scss.js +1 -0
- package/dist/components/avatar/Avatar.view.js +22 -15
- package/dist/components/base-link/BaseLink.js +4 -1
- package/dist/components/base-link/BaseLink.view.js +3 -0
- package/dist/components/button/Button.client.js +12 -16
- package/dist/components/button/Button.css +85 -137
- package/dist/components/button/Button.js +4 -1
- package/dist/components/button/Button.module.css +85 -137
- package/dist/components/button/Button.module.scss.js +15 -19
- package/dist/components/button/Button.view.js +8 -2
- package/dist/components/calendly/Calendly.css +132 -0
- package/dist/components/calendly/Calendly.js +8 -2
- package/dist/components/calendly/Calendly.module.css +132 -0
- package/dist/components/calendly/Calendly.module.scss.js +6 -0
- package/dist/components/calendly/Calendly.view.js +12 -6
- package/dist/components/card/Card.client.js +6 -1
- package/dist/components/card/Card.css +67 -32
- package/dist/components/card/Card.js +11 -5
- package/dist/components/card/Card.module.css +67 -32
- package/dist/components/card/Card.module.scss.js +8 -2
- package/dist/components/card/Card.view.js +25 -8
- package/dist/components/carousel/Carousel.client.js +138 -129
- package/dist/components/carousel/Carousel.css +8 -4
- package/dist/components/carousel/Carousel.js +8 -2
- package/dist/components/carousel/Carousel.module.css +8 -4
- package/dist/components/carousel/Carousel.view.js +10 -0
- package/dist/components/checkbox/Checkbox.css +100 -79
- package/dist/components/checkbox/Checkbox.js +4 -1
- package/dist/components/checkbox/Checkbox.module.css +100 -79
- package/dist/components/checkbox/Checkbox.module.scss.js +11 -4
- package/dist/components/checkbox/Checkbox.view.js +7 -2
- package/dist/components/checkbox-group/CheckboxGroup.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.js +4 -1
- package/dist/components/checkbox-group/CheckboxGroup.module.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +8 -0
- package/dist/components/checkbox-group/CheckboxGroup.view.js +7 -2
- package/dist/components/chip/Chip.css +185 -61
- package/dist/components/chip/Chip.js +4 -1
- package/dist/components/chip/Chip.module.css +185 -61
- package/dist/components/chip/Chip.module.scss.js +13 -17
- package/dist/components/chip/Chip.view.js +7 -4
- package/dist/components/datePicker/DatePicker.client.js +211 -66
- package/dist/components/datePicker/DatePicker.css +940 -0
- package/dist/components/datePicker/DatePicker.js +4 -1
- package/dist/components/datePicker/DatePicker.module.css +940 -0
- package/dist/components/datePicker/DatePicker.module.scss.js +62 -0
- package/dist/components/datePicker/DatePicker.server.js +31 -1
- package/dist/components/datePicker/DatePicker.utils.js +103 -0
- package/dist/components/datePicker/DatePicker.view.js +113 -41
- package/dist/components/datePicker/DatePickerDialog.view.js +291 -0
- package/dist/components/dialog/Dialog.css +107 -132
- package/dist/components/dialog/Dialog.js +8 -2
- package/dist/components/dialog/Dialog.module.css +107 -132
- package/dist/components/dialog/Dialog.module.scss.js +13 -8
- package/dist/components/dialog/Dialog.view.js +23 -5
- package/dist/components/drawer/Drawer.client.js +0 -1
- package/dist/components/drawer/Drawer.css +8 -8
- package/dist/components/drawer/Drawer.js +4 -1
- package/dist/components/drawer/Drawer.module.css +8 -8
- package/dist/components/drawer/Drawer.view.js +14 -3
- package/dist/components/dynamic-list/DynamicList.client.js +1 -0
- package/dist/components/dynamic-list/DynamicList.css +20 -12
- package/dist/components/dynamic-list/DynamicList.js +4 -1
- package/dist/components/dynamic-list/DynamicList.module.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.scss.js +1 -0
- package/dist/components/dynamic-list/DynamicList.view.js +89 -44
- package/dist/components/form/Form.client.js +4 -1
- package/dist/components/form/Form.js +4 -1
- package/dist/components/form/Form.view.js +6 -4
- package/dist/components/form/FormField.client.js +59 -4
- package/dist/components/form/FormField.js +4 -1
- package/dist/components/form/FormField.server.js +10 -4
- package/dist/components/form/FormResponse.js +6 -3
- package/dist/components/grid/Grid.css +1 -1
- package/dist/components/grid/Grid.module.css +1 -1
- package/dist/components/headline/Headline.css +16 -16
- package/dist/components/headline/Headline.js +13 -8
- package/dist/components/headline/Headline.module.css +16 -16
- package/dist/components/headline/Headline.module.scss.js +1 -1
- package/dist/components/headline/Headline.variants.js +4 -1
- package/dist/components/icon/Icon.css +14 -14
- package/dist/components/icon/Icon.js +8 -2
- package/dist/components/icon/Icon.module.css +14 -14
- package/dist/components/image/Image.client.js +9 -5
- package/dist/components/image/Image.css +4 -3
- package/dist/components/image/Image.js +8 -2
- package/dist/components/image/Image.module.css +4 -3
- package/dist/components/image/Image.server.js +2 -1
- package/dist/components/image-text/ImageText.css +43 -14
- package/dist/components/image-text/ImageText.js +68 -50
- package/dist/components/image-text/ImageText.module.css +43 -14
- package/dist/components/image-text/ImageText.module.scss.js +11 -2
- package/dist/components/input/Input.client.js +15 -2
- package/dist/components/input/Input.css +197 -115
- package/dist/components/input/Input.js +4 -1
- package/dist/components/input/Input.module.css +197 -115
- package/dist/components/input/Input.module.scss.js +19 -3
- package/dist/components/input/Input.view.js +102 -63
- package/dist/components/input/InputValidation.js +6 -2
- package/dist/components/inputOTP/InputOTP.client.js +165 -0
- package/dist/components/inputOTP/InputOTP.css +155 -7
- package/dist/components/inputOTP/InputOTP.js +10 -194
- package/dist/components/inputOTP/InputOTP.lazy.js +12 -0
- package/dist/components/inputOTP/InputOTP.module.css +155 -7
- package/dist/components/inputOTP/InputOTP.module.scss.js +14 -0
- package/dist/components/inputOTP/InputOTP.server.js +32 -0
- package/dist/components/inputOTP/InputOTP.view.js +117 -0
- package/dist/components/label/Label.css +33 -14
- package/dist/components/label/Label.js +37 -35
- package/dist/components/label/Label.module.css +33 -14
- package/dist/components/label/Label.module.scss.js +9 -2
- package/dist/components/link/Link.css +13 -13
- package/dist/components/link/Link.js +5 -3
- package/dist/components/link/Link.module.css +13 -13
- package/dist/components/link/Link.view.js +16 -13
- package/dist/components/list/List.css +71 -32
- package/dist/components/list/List.js +74 -28
- package/dist/components/list/List.module.css +71 -32
- package/dist/components/list/List.module.scss.js +1 -1
- package/dist/components/loading/Loading.js +4 -1
- package/dist/components/loading/Loading.view.js +47 -7
- package/dist/components/lottie/Lottie.css +16 -0
- package/dist/components/lottie/Lottie.js +9 -5
- package/dist/components/lottie/Lottie.module.css +16 -0
- package/dist/components/lottie/Lottie.module.scss.js +6 -2
- package/dist/components/map/Map.css +130 -0
- package/dist/components/map/Map.js +67 -46
- package/dist/components/map/Map.module.css +130 -0
- package/dist/components/map/Map.module.scss.js +6 -0
- package/dist/components/pagination/Pagination.css +127 -11
- package/dist/components/pagination/Pagination.js +4 -1
- package/dist/components/pagination/Pagination.module.css +127 -11
- package/dist/components/pagination/Pagination.module.scss.js +12 -4
- package/dist/components/pagination/Pagination.view.js +16 -2
- package/dist/components/post-item/PostItem.css +16 -16
- package/dist/components/post-item/PostItem.js +4 -1
- package/dist/components/post-item/PostItem.module.css +16 -16
- package/dist/components/post-item/PostItem.view.js +14 -5
- package/dist/components/post-item/PostItemAuthor.js +4 -1
- package/dist/components/post-teaser/PostTeaser.css +13 -13
- package/dist/components/post-teaser/PostTeaser.js +4 -1
- package/dist/components/post-teaser/PostTeaser.module.css +13 -13
- package/dist/components/post-teaser/PostTeaser.view.js +14 -5
- package/dist/components/post-widget/PostWidget.css +6 -8
- package/dist/components/post-widget/PostWidget.js +5 -3
- package/dist/components/post-widget/PostWidget.module.css +6 -8
- package/dist/components/post-widget/PostWidget.view.js +21 -8
- package/dist/components/post-widget-carousel/PostWidgetCarousel.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.js +8 -2
- package/dist/components/post-widget-carousel/PostWidgetCarousel.module.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +32 -14
- package/dist/components/progressBar/ProgressBar.css +4 -4
- package/dist/components/progressBar/ProgressBar.js +8 -2
- package/dist/components/progressBar/ProgressBar.module.css +4 -4
- package/dist/components/progressBar/ProgressBar.view.js +6 -3
- package/dist/components/quote/Quote.css +21 -6
- package/dist/components/quote/Quote.js +5 -5
- package/dist/components/quote/Quote.module.css +21 -6
- package/dist/components/quote/Quote.module.scss.js +5 -0
- package/dist/components/rating/Rating.client.js +6 -1
- package/dist/components/rating/Rating.css +34 -21
- package/dist/components/rating/Rating.js +4 -1
- package/dist/components/rating/Rating.module.css +34 -21
- package/dist/components/rating/Rating.module.scss.js +8 -0
- package/dist/components/rating/Rating.view.js +4 -2
- package/dist/components/rich-text/RichText.client.js +55 -20
- package/dist/components/rich-text/RichText.css +47 -31
- package/dist/components/rich-text/RichText.js +8 -2
- package/dist/components/rich-text/RichText.module.css +47 -31
- package/dist/components/rich-text/RichText.server.js +3 -0
- package/dist/components/select/Select.client.js +303 -102
- package/dist/components/select/Select.css +542 -221
- package/dist/components/select/Select.js +8 -2
- package/dist/components/select/Select.module.css +542 -221
- package/dist/components/select/Select.module.scss.js +57 -14
- package/dist/components/select/Select.view.js +75 -25
- package/dist/components/sidenav/SideNav.client.js +24 -1
- package/dist/components/sidenav/SideNav.css +89 -21
- package/dist/components/sidenav/SideNav.js +8 -2
- package/dist/components/sidenav/SideNav.module.css +89 -21
- package/dist/components/sidenav/SideNav.module.scss.js +6 -1
- package/dist/components/sidenav/SideNav.view.js +69 -14
- package/dist/components/skeleton/Skeleton.css +7 -7
- package/dist/components/skeleton/Skeleton.module.css +7 -7
- package/dist/components/slider/Slider.client.js +11 -2
- package/dist/components/slider/Slider.css +177 -112
- package/dist/components/slider/Slider.js +4 -1
- package/dist/components/slider/Slider.module.css +177 -112
- package/dist/components/slider/Slider.module.scss.js +11 -2
- package/dist/components/slider/Slider.view.js +140 -90
- package/dist/components/snackbar/Snackbar.client.js +5 -1
- package/dist/components/snackbar/Snackbar.css +125 -64
- package/dist/components/snackbar/Snackbar.js +4 -1
- package/dist/components/snackbar/Snackbar.module.css +125 -64
- package/dist/components/snackbar/Snackbar.module.scss.js +11 -13
- package/dist/components/snackbar/Snackbar.view.js +2 -2
- package/dist/components/snackbar/SnackbarProvider.js +8 -2
- package/dist/components/stepper/Stepper.client.js +27 -9
- package/dist/components/stepper/Stepper.css +46 -11
- package/dist/components/stepper/Stepper.js +4 -1
- package/dist/components/stepper/Stepper.module.css +46 -11
- package/dist/components/stepper/Stepper.module.scss.js +7 -0
- package/dist/components/stepper/Stepper.server.js +2 -0
- package/dist/components/stepper/Stepper.view.js +6 -1
- package/dist/components/switch/Switch.css +108 -84
- package/dist/components/switch/Switch.js +4 -1
- package/dist/components/switch/Switch.module.css +108 -84
- package/dist/components/switch/Switch.module.scss.js +14 -12
- package/dist/components/switch/Switch.view.js +10 -8
- package/dist/components/table/Table.css +19 -14
- package/dist/components/table/Table.js +1 -0
- package/dist/components/table/Table.module.css +19 -14
- package/dist/components/tabs/Tabs.client.js +1 -0
- package/dist/components/tabs/Tabs.css +53 -27
- package/dist/components/tabs/Tabs.js +8 -2
- package/dist/components/tabs/Tabs.module.css +53 -27
- package/dist/components/tabs/Tabs.module.scss.js +7 -2
- package/dist/components/tabs/Tabs.view.js +12 -4
- package/dist/components/teaser/Teaser.css +5 -5
- package/dist/components/teaser/Teaser.js +4 -4
- package/dist/components/teaser/Teaser.module.css +5 -5
- package/dist/components/tooltip/Tooltip.client.js +140 -95
- package/dist/components/tooltip/Tooltip.css +46 -9
- package/dist/components/tooltip/Tooltip.js +10 -4
- package/dist/components/tooltip/Tooltip.module.css +46 -9
- package/dist/components/tooltip/Tooltip.module.scss.js +5 -1
- package/dist/components/tooltip/Tooltip.view.js +7 -1
- package/dist/constants/project.js +1 -1
- package/dist/helpers/createIsland.js +1 -0
- package/dist/helpers/createLazyWrapper.js +1 -0
- package/dist/hooks/useGoogleMaps.js +0 -1
- package/dist/theme.css +3269 -1588
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/RTE/RTE.d.ts +6 -1
- package/dist/types/components/RTE/RTE.lazy.d.ts +6 -1
- package/dist/types/components/RTE/RTE.view.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.lazy.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.model.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.view.d.ts +1 -1
- package/dist/types/components/autocomplete/Autocomplete.model.d.ts +2 -0
- package/dist/types/components/autocomplete/Autocomplete.view.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.lazy.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.model.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.view.d.ts +1 -1
- package/dist/types/components/calendly/Calendly.view.d.ts +1 -1
- package/dist/types/components/card/Card.model.d.ts +1 -1
- package/dist/types/components/card/Card.view.d.ts +1 -1
- package/dist/types/components/carousel/Carousel.view.d.ts +1 -1
- package/dist/types/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.lazy.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.model.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.view.d.ts +1 -1
- package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +2 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +1 -1
- package/dist/types/components/datePicker/DatePicker.model.d.ts +70 -1
- package/dist/types/components/datePicker/DatePicker.utils.d.ts +10 -0
- package/dist/types/components/datePicker/DatePicker.view.d.ts +7 -4
- package/dist/types/components/datePicker/DatePickerDialog.view.d.ts +4 -0
- package/dist/types/components/dynamic-list/DynamicList.model.d.ts +3 -1
- package/dist/types/components/dynamic-list/DynamicList.view.d.ts +1 -1
- package/dist/types/components/form/Form.d.ts +1 -1
- package/dist/types/components/form/Form.lazy.d.ts +1 -1
- package/dist/types/components/form/Form.model.d.ts +19 -4
- package/dist/types/components/form/FormField.client.d.ts +2 -2
- package/dist/types/components/form/FormField.d.ts +1 -1
- package/dist/types/components/form/FormField.lazy.d.ts +1 -1
- package/dist/types/components/form/FormField.server.d.ts +2 -2
- package/dist/types/components/headline/Headline.model.d.ts +2 -2
- package/dist/types/components/input/Input.model.d.ts +8 -1
- package/dist/types/components/input/Input.view.d.ts +1 -1
- package/dist/types/components/inputOTP/InputOTP.client.d.ts +4 -0
- package/dist/types/components/inputOTP/InputOTP.d.ts +10 -3
- package/dist/types/components/inputOTP/InputOTP.lazy.d.ts +11 -0
- package/dist/types/components/inputOTP/InputOTP.model.d.ts +10 -0
- package/dist/types/components/inputOTP/InputOTP.server.d.ts +3 -0
- package/dist/types/components/inputOTP/InputOTP.view.d.ts +3 -0
- package/dist/types/components/inputOTP/index.d.ts +1 -1
- package/dist/types/components/label/Label.model.d.ts +2 -0
- package/dist/types/components/link/Link.model.d.ts +1 -1
- package/dist/types/components/link/Link.view.d.ts +1 -1
- package/dist/types/components/list/List.d.ts +1 -1
- package/dist/types/components/list/List.model.d.ts +14 -5
- package/dist/types/components/list/index.d.ts +1 -1
- package/dist/types/components/loading/Loading.model.d.ts +2 -0
- package/dist/types/components/loading/index.d.ts +1 -1
- package/dist/types/components/pagination/Pagination.model.d.ts +2 -0
- package/dist/types/components/pagination/Pagination.view.d.ts +1 -1
- package/dist/types/components/post-item/PostItem.model.d.ts +2 -1
- package/dist/types/components/post-teaser/PostTeaser.model.d.ts +2 -1
- package/dist/types/components/post-widget/PostWidget.view.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.lazy.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.model.d.ts +3 -2
- package/dist/types/components/progressBar/ProgressBar.view.d.ts +1 -1
- package/dist/types/components/progressBar/index.d.ts +1 -1
- package/dist/types/components/quote/Quote.model.d.ts +1 -1
- package/dist/types/components/rating/Rating.model.d.ts +2 -0
- package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.lazy.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.model.d.ts +1 -1
- package/dist/types/components/select/Select.model.d.ts +2 -0
- package/dist/types/components/select/Select.view.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.client.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.model.d.ts +16 -2
- package/dist/types/components/sidenav/SideNav.view.d.ts +1 -1
- package/dist/types/components/slider/Slider.model.d.ts +2 -0
- package/dist/types/components/snackbar/Snackbar.model.d.ts +3 -2
- package/dist/types/components/snackbar/Snackbar.view.d.ts +3 -2
- package/dist/types/components/snackbar/index.d.ts +1 -1
- package/dist/types/components/stepper/Stepper.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.lazy.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.model.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.server.d.ts +1 -1
- package/dist/types/components/switch/Switch.d.ts +2 -2
- package/dist/types/components/switch/Switch.lazy.d.ts +2 -2
- package/dist/types/components/switch/Switch.model.d.ts +3 -4
- package/dist/types/components/tabs/Tabs.model.d.ts +2 -0
- package/dist/types/components/tabs/Tabs.view.d.ts +1 -1
- package/dist/types/components/teaser/Teaser.model.d.ts +1 -1
- package/dist/types/components/tooltip/Tooltip.model.d.ts +2 -0
- package/package.json +53 -24
|
@@ -5,9 +5,12 @@ import { jsx } from "react/jsx-runtime";
|
|
|
5
5
|
import { useCallback } from "react";
|
|
6
6
|
import { create } from "../../helpers/bem.js";
|
|
7
7
|
import styles from "./Form.module.scss.js";
|
|
8
|
+
import { Autocomplete } from "../autocomplete/Autocomplete.js";
|
|
9
|
+
import { CheckboxGroup } from "../checkbox-group/CheckboxGroup.js";
|
|
8
10
|
import { Rating } from "../rating/Rating.js";
|
|
9
11
|
import { DynamicList } from "../dynamic-list/DynamicList.js";
|
|
10
12
|
import { GridRow } from "../grid/GridRow.js";
|
|
13
|
+
import { Checkbox } from "../checkbox/Checkbox.js";
|
|
11
14
|
import { DatePicker } from "../datePicker/DatePicker.js";
|
|
12
15
|
import { Input } from "../input/Input.js";
|
|
13
16
|
import { Select } from "../select/Select.js";
|
|
@@ -17,7 +20,7 @@ const bem = create(styles, "FormField");
|
|
|
17
20
|
function FormFieldClient({
|
|
18
21
|
fieldType,
|
|
19
22
|
visible,
|
|
20
|
-
|
|
23
|
+
color,
|
|
21
24
|
messagesFields,
|
|
22
25
|
onChange,
|
|
23
26
|
onValidate,
|
|
@@ -36,7 +39,7 @@ function FormFieldClient({
|
|
|
36
39
|
Switch,
|
|
37
40
|
{
|
|
38
41
|
priority: true,
|
|
39
|
-
color
|
|
42
|
+
color,
|
|
40
43
|
...props,
|
|
41
44
|
checked: typeof (props == null ? void 0 : props.value) === "boolean" ? Boolean(props == null ? void 0 : props.value) : props.checked,
|
|
42
45
|
onChange: /* @__PURE__ */ __name((_, checked) => onChange == null ? void 0 : onChange(props, checked), "onChange")
|
|
@@ -49,6 +52,7 @@ function FormFieldClient({
|
|
|
49
52
|
Slider,
|
|
50
53
|
{
|
|
51
54
|
priority: true,
|
|
55
|
+
color,
|
|
52
56
|
...props,
|
|
53
57
|
onChange: /* @__PURE__ */ __name((_, value) => onChange == null ? void 0 : onChange(props, value == null ? void 0 : value.toString()), "onChange")
|
|
54
58
|
}
|
|
@@ -60,8 +64,12 @@ function FormFieldClient({
|
|
|
60
64
|
Select,
|
|
61
65
|
{
|
|
62
66
|
priority: true,
|
|
67
|
+
color,
|
|
63
68
|
...props,
|
|
64
|
-
onChange:
|
|
69
|
+
onChange: (
|
|
70
|
+
/* istanbul ignore next */
|
|
71
|
+
/* @__PURE__ */ __name((_, value) => onChange == null ? void 0 : onChange(props, value ?? void 0), "onChange")
|
|
72
|
+
)
|
|
65
73
|
}
|
|
66
74
|
)
|
|
67
75
|
);
|
|
@@ -71,6 +79,7 @@ function FormFieldClient({
|
|
|
71
79
|
Input,
|
|
72
80
|
{
|
|
73
81
|
priority: true,
|
|
82
|
+
color,
|
|
74
83
|
errorTranslations: (_a = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _a.input,
|
|
75
84
|
onValidate: /* @__PURE__ */ __name((_, err) => onValidate == null ? void 0 : onValidate(props, err), "onValidate"),
|
|
76
85
|
onChange: /* @__PURE__ */ __name((e) => onChange == null ? void 0 : onChange(props, e.target.value), "onChange"),
|
|
@@ -84,12 +93,16 @@ function FormFieldClient({
|
|
|
84
93
|
DatePicker,
|
|
85
94
|
{
|
|
86
95
|
priority: true,
|
|
96
|
+
color,
|
|
87
97
|
...props,
|
|
88
98
|
translations: (_b = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _b.date,
|
|
89
99
|
onValidate: /* @__PURE__ */ __name((_, err) => onValidate == null ? void 0 : onValidate(props, err), "onValidate"),
|
|
90
100
|
onChange: /* @__PURE__ */ __name((value) => onChange == null ? void 0 : onChange(
|
|
91
101
|
props,
|
|
92
|
-
typeof value === "object" ? value == null ? void 0 : value.format("YYYY-MM-DDTHH:mm:ssZ") :
|
|
102
|
+
typeof value === "object" ? value == null ? void 0 : value.format("YYYY-MM-DDTHH:mm:ssZ") : (
|
|
103
|
+
/* istanbul ignore next */
|
|
104
|
+
value
|
|
105
|
+
)
|
|
93
106
|
), "onChange")
|
|
94
107
|
}
|
|
95
108
|
)
|
|
@@ -101,6 +114,7 @@ function FormFieldClient({
|
|
|
101
114
|
DynamicList,
|
|
102
115
|
{
|
|
103
116
|
priority: true,
|
|
117
|
+
color,
|
|
104
118
|
...p,
|
|
105
119
|
value: p == null ? void 0 : p.value,
|
|
106
120
|
fields: (_c = p == null ? void 0 : p.fields) == null ? void 0 : _c.map((field) => ({
|
|
@@ -117,6 +131,7 @@ function FormFieldClient({
|
|
|
117
131
|
Rating,
|
|
118
132
|
{
|
|
119
133
|
priority: true,
|
|
134
|
+
color,
|
|
120
135
|
...props,
|
|
121
136
|
errorTranslations: (_d = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _d.input,
|
|
122
137
|
onValidate: /* @__PURE__ */ __name((_, err) => onValidate == null ? void 0 : onValidate(props, err), "onValidate"),
|
|
@@ -127,6 +142,46 @@ function FormFieldClient({
|
|
|
127
142
|
}
|
|
128
143
|
)
|
|
129
144
|
);
|
|
145
|
+
case "checkbox":
|
|
146
|
+
return renderFieldContainer(
|
|
147
|
+
/* @__PURE__ */ jsx(
|
|
148
|
+
Checkbox,
|
|
149
|
+
{
|
|
150
|
+
priority: true,
|
|
151
|
+
color,
|
|
152
|
+
...props,
|
|
153
|
+
checked: typeof (props == null ? void 0 : props.value) === "boolean" ? Boolean(props == null ? void 0 : props.value) : props.checked,
|
|
154
|
+
onChange: /* @__PURE__ */ __name((_, checked) => onChange == null ? void 0 : onChange(props, checked), "onChange")
|
|
155
|
+
}
|
|
156
|
+
)
|
|
157
|
+
);
|
|
158
|
+
case "checkbox-group":
|
|
159
|
+
return renderFieldContainer(
|
|
160
|
+
/* @__PURE__ */ jsx(
|
|
161
|
+
CheckboxGroup,
|
|
162
|
+
{
|
|
163
|
+
priority: true,
|
|
164
|
+
color,
|
|
165
|
+
...props,
|
|
166
|
+
values: Array.isArray(props == null ? void 0 : props.value) ? props.value : props.values,
|
|
167
|
+
onChange: /* @__PURE__ */ __name((next) => onChange == null ? void 0 : onChange(props, next), "onChange")
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
);
|
|
171
|
+
case "autocomplete":
|
|
172
|
+
return renderFieldContainer(
|
|
173
|
+
/* @__PURE__ */ jsx(
|
|
174
|
+
Autocomplete,
|
|
175
|
+
{
|
|
176
|
+
priority: true,
|
|
177
|
+
color,
|
|
178
|
+
...props,
|
|
179
|
+
value: typeof (props == null ? void 0 : props.value) === "string" ? props.value : props.value,
|
|
180
|
+
onChange: /* @__PURE__ */ __name(({ query }) => onChange == null ? void 0 : onChange(props, query), "onChange"),
|
|
181
|
+
onSelect: /* @__PURE__ */ __name((item) => onChange == null ? void 0 : onChange(props, item.value), "onSelect")
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
);
|
|
130
185
|
default:
|
|
131
186
|
return null;
|
|
132
187
|
}
|
|
@@ -5,7 +5,10 @@ import FormFieldServer from "./FormField.server.js";
|
|
|
5
5
|
const FormField = createIsland({
|
|
6
6
|
name: "FormField",
|
|
7
7
|
Server: FormFieldServer,
|
|
8
|
-
loadLazy:
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./FormField.lazy.js"), "loadLazy")
|
|
11
|
+
)
|
|
9
12
|
});
|
|
10
13
|
FormField.displayName = "FormField";
|
|
11
14
|
export {
|
|
@@ -13,7 +13,7 @@ const bem = create(styles, "FormField");
|
|
|
13
13
|
function FormFieldServer({
|
|
14
14
|
fieldType,
|
|
15
15
|
visible,
|
|
16
|
-
|
|
16
|
+
color,
|
|
17
17
|
messagesFields,
|
|
18
18
|
...props
|
|
19
19
|
}) {
|
|
@@ -25,18 +25,23 @@ function FormFieldServer({
|
|
|
25
25
|
switch (fieldType) {
|
|
26
26
|
case "switch":
|
|
27
27
|
return renderFieldContainer(
|
|
28
|
-
/* @__PURE__ */ jsx(Switch, { color
|
|
28
|
+
/* @__PURE__ */ jsx(Switch, { color, ...props })
|
|
29
29
|
);
|
|
30
30
|
case "slider":
|
|
31
|
-
return renderFieldContainer(
|
|
31
|
+
return renderFieldContainer(
|
|
32
|
+
/* @__PURE__ */ jsx(Slider, { color, ...props })
|
|
33
|
+
);
|
|
32
34
|
case "select":
|
|
33
|
-
return renderFieldContainer(
|
|
35
|
+
return renderFieldContainer(
|
|
36
|
+
/* @__PURE__ */ jsx(Select, { color, ...props })
|
|
37
|
+
);
|
|
34
38
|
case "input":
|
|
35
39
|
return renderFieldContainer(
|
|
36
40
|
/* @__PURE__ */ jsx(
|
|
37
41
|
Input,
|
|
38
42
|
{
|
|
39
43
|
readOnly: true,
|
|
44
|
+
color,
|
|
40
45
|
errorTranslations: (_a = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _a.input,
|
|
41
46
|
...props
|
|
42
47
|
}
|
|
@@ -48,6 +53,7 @@ function FormFieldServer({
|
|
|
48
53
|
DatePicker,
|
|
49
54
|
{
|
|
50
55
|
readOnly: true,
|
|
56
|
+
color,
|
|
51
57
|
...props,
|
|
52
58
|
translations: (_b = messagesFields == null ? void 0 : messagesFields.errors) == null ? void 0 : _b.date
|
|
53
59
|
}
|
|
@@ -17,7 +17,10 @@ const FormResponse = /* @__PURE__ */ __name(({
|
|
|
17
17
|
return {
|
|
18
18
|
id: key,
|
|
19
19
|
title: key.charAt(0).toUpperCase() + key.slice(1),
|
|
20
|
-
desc: (messages == null ? void 0 : messages.errors) ? (_b = (_a = messages.errors) == null ? void 0 : _a[key]) == null ? void 0 : _b.join(", ") :
|
|
20
|
+
desc: (messages == null ? void 0 : messages.errors) ? (_b = (_a = messages.errors) == null ? void 0 : _a[key]) == null ? void 0 : _b.join(", ") : (
|
|
21
|
+
/* istanbul ignore next */
|
|
22
|
+
""
|
|
23
|
+
),
|
|
21
24
|
className: bem("errors__item")
|
|
22
25
|
};
|
|
23
26
|
});
|
|
@@ -31,9 +34,9 @@ const FormResponse = /* @__PURE__ */ __name(({
|
|
|
31
34
|
"aria-relevant": "all",
|
|
32
35
|
className: bem("errors"),
|
|
33
36
|
classNameDesc: bem("errors__desc"),
|
|
37
|
+
color: "error",
|
|
34
38
|
items: listItems,
|
|
35
|
-
role: "alert"
|
|
36
|
-
variant: "error"
|
|
39
|
+
role: "alert"
|
|
37
40
|
}
|
|
38
41
|
)
|
|
39
42
|
] });
|
|
@@ -127,43 +127,37 @@
|
|
|
127
127
|
*/
|
|
128
128
|
.prokodo-Headline {
|
|
129
129
|
margin: 0;
|
|
130
|
-
/*
|
|
131
|
-
/* Highlight-Grundlage */
|
|
130
|
+
/* Color variants (mapped to semantic design tokens) */
|
|
132
131
|
/* Varianten mit Highlight (mit Gradients/Shadow) */
|
|
133
132
|
/* Größen */
|
|
134
133
|
/* Alignment */
|
|
135
134
|
}
|
|
136
135
|
.prokodo-Headline--inherit {
|
|
137
|
-
color: var(--color-
|
|
136
|
+
color: var(--pk-color-fg);
|
|
138
137
|
}
|
|
139
138
|
.prokodo-Headline--primary {
|
|
140
|
-
color: var(--color-
|
|
139
|
+
color: var(--pk-color-brand);
|
|
141
140
|
}
|
|
142
141
|
.prokodo-Headline--secondary {
|
|
143
|
-
color: var(--color-
|
|
142
|
+
color: var(--pk-color-accent);
|
|
144
143
|
}
|
|
145
144
|
.prokodo-Headline--success {
|
|
146
|
-
color: var(--color-success);
|
|
145
|
+
color: var(--pk-color-success);
|
|
147
146
|
}
|
|
148
147
|
.prokodo-Headline--info {
|
|
149
|
-
color: var(--color-
|
|
148
|
+
color: var(--pk-color-muted);
|
|
150
149
|
}
|
|
151
150
|
.prokodo-Headline--warning {
|
|
152
|
-
color: var(--color-warning);
|
|
151
|
+
color: var(--pk-color-warning);
|
|
153
152
|
}
|
|
154
153
|
.prokodo-Headline--error {
|
|
155
|
-
color: var(--color-error);
|
|
154
|
+
color: var(--pk-color-error);
|
|
156
155
|
}
|
|
157
156
|
.prokodo-Headline--white {
|
|
158
|
-
color:
|
|
157
|
+
color: var(--pk-palette-white);
|
|
159
158
|
}
|
|
160
159
|
.prokodo-Headline--black {
|
|
161
|
-
color: var(--
|
|
162
|
-
}
|
|
163
|
-
.prokodo-Headline--is-highlighted {
|
|
164
|
-
background-clip: text;
|
|
165
|
-
-webkit-background-clip: text;
|
|
166
|
-
-webkit-text-fill-color: transparent;
|
|
160
|
+
color: var(--pk-palette-black);
|
|
167
161
|
}
|
|
168
162
|
.prokodo-Headline--inherit--highlighted {
|
|
169
163
|
background-image: var(--gradient-text-grey);
|
|
@@ -206,6 +200,12 @@
|
|
|
206
200
|
-webkit-text-fill-color: transparent;
|
|
207
201
|
filter: drop-shadow(var(--elevation-1--text));
|
|
208
202
|
}
|
|
203
|
+
.prokodo-Headline--info--highlighted {
|
|
204
|
+
background-image: var(--gradient-text-grey);
|
|
205
|
+
-webkit-background-clip: text;
|
|
206
|
+
background-clip: text;
|
|
207
|
+
-webkit-text-fill-color: transparent;
|
|
208
|
+
}
|
|
209
209
|
.prokodo-Headline--xs {
|
|
210
210
|
font-weight: 400;
|
|
211
211
|
font-size: 1rem;
|
|
@@ -18,21 +18,23 @@ const Headline = /* @__PURE__ */ __name(({
|
|
|
18
18
|
className,
|
|
19
19
|
align,
|
|
20
20
|
isRichtext = false,
|
|
21
|
-
|
|
21
|
+
color = "inherit",
|
|
22
22
|
children,
|
|
23
23
|
...remainingProps
|
|
24
24
|
}) => {
|
|
25
|
-
const isHighlighted = Boolean(highlight) && POSSIBLE_HIGHLIGHTS.includes(
|
|
25
|
+
const isHighlighted = Boolean(highlight) && POSSIBLE_HIGHLIGHTS.includes(color);
|
|
26
26
|
const modifier = {
|
|
27
|
-
[
|
|
27
|
+
[color]: !!color,
|
|
28
28
|
"is-highlighted": isHighlighted,
|
|
29
|
-
highlighted: isHighlighted,
|
|
30
|
-
[`${variant}--highlighted`]: isHighlighted,
|
|
29
|
+
[`${color}--highlighted`]: isHighlighted,
|
|
31
30
|
[size]: typeof size === "string" && !!size,
|
|
32
31
|
[`${align}`]: !!align
|
|
33
32
|
};
|
|
34
33
|
const bemClass = bem(void 0, modifier, className);
|
|
35
|
-
const customStyle = typeof size === "number" ? { fontSize: `${size}em` } :
|
|
34
|
+
const customStyle = typeof size === "number" ? { fontSize: `${size}em` } : (
|
|
35
|
+
/* istanbul ignore next */
|
|
36
|
+
{}
|
|
37
|
+
);
|
|
36
38
|
const ariaLabel = typeof children === "string" ? children : void 0;
|
|
37
39
|
const baseProps = {
|
|
38
40
|
id,
|
|
@@ -61,13 +63,16 @@ const Headline = /* @__PURE__ */ __name(({
|
|
|
61
63
|
animated,
|
|
62
64
|
animationProps,
|
|
63
65
|
className: bem("headline", void 0, className),
|
|
66
|
+
color,
|
|
64
67
|
id,
|
|
65
68
|
itemProp: void 0,
|
|
66
69
|
linkComponent: void 0,
|
|
67
70
|
schema,
|
|
68
|
-
variant,
|
|
69
71
|
...remainingProps,
|
|
70
|
-
overrideParagraph:
|
|
72
|
+
overrideParagraph: (
|
|
73
|
+
/* istanbul ignore next */
|
|
74
|
+
/* @__PURE__ */ __name((textContent) => renderHTag({ children: textContent }), "overrideParagraph")
|
|
75
|
+
),
|
|
71
76
|
children
|
|
72
77
|
}
|
|
73
78
|
) });
|
|
@@ -127,43 +127,37 @@
|
|
|
127
127
|
*/
|
|
128
128
|
.prokodo-Headline {
|
|
129
129
|
margin: 0;
|
|
130
|
-
/*
|
|
131
|
-
/* Highlight-Grundlage */
|
|
130
|
+
/* Color variants (mapped to semantic design tokens) */
|
|
132
131
|
/* Varianten mit Highlight (mit Gradients/Shadow) */
|
|
133
132
|
/* Größen */
|
|
134
133
|
/* Alignment */
|
|
135
134
|
}
|
|
136
135
|
.prokodo-Headline--inherit {
|
|
137
|
-
color: var(--color-
|
|
136
|
+
color: var(--pk-color-fg);
|
|
138
137
|
}
|
|
139
138
|
.prokodo-Headline--primary {
|
|
140
|
-
color: var(--color-
|
|
139
|
+
color: var(--pk-color-brand);
|
|
141
140
|
}
|
|
142
141
|
.prokodo-Headline--secondary {
|
|
143
|
-
color: var(--color-
|
|
142
|
+
color: var(--pk-color-accent);
|
|
144
143
|
}
|
|
145
144
|
.prokodo-Headline--success {
|
|
146
|
-
color: var(--color-success);
|
|
145
|
+
color: var(--pk-color-success);
|
|
147
146
|
}
|
|
148
147
|
.prokodo-Headline--info {
|
|
149
|
-
color: var(--color-
|
|
148
|
+
color: var(--pk-color-muted);
|
|
150
149
|
}
|
|
151
150
|
.prokodo-Headline--warning {
|
|
152
|
-
color: var(--color-warning);
|
|
151
|
+
color: var(--pk-color-warning);
|
|
153
152
|
}
|
|
154
153
|
.prokodo-Headline--error {
|
|
155
|
-
color: var(--color-error);
|
|
154
|
+
color: var(--pk-color-error);
|
|
156
155
|
}
|
|
157
156
|
.prokodo-Headline--white {
|
|
158
|
-
color:
|
|
157
|
+
color: var(--pk-palette-white);
|
|
159
158
|
}
|
|
160
159
|
.prokodo-Headline--black {
|
|
161
|
-
color: var(--
|
|
162
|
-
}
|
|
163
|
-
.prokodo-Headline--is-highlighted {
|
|
164
|
-
background-clip: text;
|
|
165
|
-
-webkit-background-clip: text;
|
|
166
|
-
-webkit-text-fill-color: transparent;
|
|
160
|
+
color: var(--pk-palette-black);
|
|
167
161
|
}
|
|
168
162
|
.prokodo-Headline--inherit--highlighted {
|
|
169
163
|
background-image: var(--gradient-text-grey);
|
|
@@ -206,6 +200,12 @@
|
|
|
206
200
|
-webkit-text-fill-color: transparent;
|
|
207
201
|
filter: drop-shadow(var(--elevation-1--text));
|
|
208
202
|
}
|
|
203
|
+
.prokodo-Headline--info--highlighted {
|
|
204
|
+
background-image: var(--gradient-text-grey);
|
|
205
|
+
-webkit-background-clip: text;
|
|
206
|
+
background-clip: text;
|
|
207
|
+
-webkit-text-fill-color: transparent;
|
|
208
|
+
}
|
|
209
209
|
.prokodo-Headline--xs {
|
|
210
210
|
font-weight: 400;
|
|
211
211
|
font-size: 1rem;
|
|
@@ -9,13 +9,13 @@ const styles = {
|
|
|
9
9
|
"prokodo-Headline--error": "prokodo-Headline--error",
|
|
10
10
|
"prokodo-Headline--white": "prokodo-Headline--white",
|
|
11
11
|
"prokodo-Headline--black": "prokodo-Headline--black",
|
|
12
|
-
"prokodo-Headline--is-highlighted": "prokodo-Headline--is-highlighted",
|
|
13
12
|
"prokodo-Headline--inherit--highlighted": "prokodo-Headline--inherit--highlighted",
|
|
14
13
|
"prokodo-Headline--primary--highlighted": "prokodo-Headline--primary--highlighted",
|
|
15
14
|
"prokodo-Headline--secondary--highlighted": "prokodo-Headline--secondary--highlighted",
|
|
16
15
|
"prokodo-Headline--success--highlighted": "prokodo-Headline--success--highlighted",
|
|
17
16
|
"prokodo-Headline--warning--highlighted": "prokodo-Headline--warning--highlighted",
|
|
18
17
|
"prokodo-Headline--error--highlighted": "prokodo-Headline--error--highlighted",
|
|
18
|
+
"prokodo-Headline--info--highlighted": "prokodo-Headline--info--highlighted",
|
|
19
19
|
"prokodo-Headline--xs": "prokodo-Headline--xs",
|
|
20
20
|
"prokodo-Headline--sm": "prokodo-Headline--sm",
|
|
21
21
|
"prokodo-Headline--md": "prokodo-Headline--md",
|
|
@@ -138,44 +138,44 @@
|
|
|
138
138
|
--webkit-mask-position: center;
|
|
139
139
|
}
|
|
140
140
|
.prokodo-Icon--primary {
|
|
141
|
-
color: var(--color-
|
|
141
|
+
color: var(--pk-color-brand);
|
|
142
142
|
}
|
|
143
143
|
.prokodo-Icon--primary:hover {
|
|
144
|
-
color: var(--color-
|
|
144
|
+
color: var(--pk-color-brand);
|
|
145
145
|
}
|
|
146
146
|
.prokodo-Icon--secondary {
|
|
147
|
-
color: var(--color-
|
|
147
|
+
color: var(--pk-color-accent);
|
|
148
148
|
}
|
|
149
149
|
.prokodo-Icon--secondary:hover {
|
|
150
|
-
color: var(--color-
|
|
150
|
+
color: var(--pk-color-accent);
|
|
151
151
|
}
|
|
152
152
|
.prokodo-Icon--info {
|
|
153
|
-
color: var(--color-
|
|
153
|
+
color: var(--pk-color-muted);
|
|
154
154
|
}
|
|
155
155
|
.prokodo-Icon--info:hover {
|
|
156
|
-
color: var(--color-
|
|
156
|
+
color: var(--pk-color-muted);
|
|
157
157
|
}
|
|
158
158
|
.prokodo-Icon--success {
|
|
159
|
-
color: var(--color-success);
|
|
159
|
+
color: var(--pk-color-success);
|
|
160
160
|
}
|
|
161
161
|
.prokodo-Icon--success:hover {
|
|
162
|
-
color: var(--color-success);
|
|
162
|
+
color: var(--pk-color-success);
|
|
163
163
|
}
|
|
164
164
|
.prokodo-Icon--warning {
|
|
165
|
-
color: var(--color-warning);
|
|
165
|
+
color: var(--pk-color-warning);
|
|
166
166
|
}
|
|
167
167
|
.prokodo-Icon--warning:hover {
|
|
168
|
-
color: var(--color-warning);
|
|
168
|
+
color: var(--pk-color-warning);
|
|
169
169
|
}
|
|
170
170
|
.prokodo-Icon--error {
|
|
171
|
-
color: var(--color-error);
|
|
171
|
+
color: var(--pk-color-error);
|
|
172
172
|
}
|
|
173
173
|
.prokodo-Icon--error:hover {
|
|
174
|
-
color: var(--color-error);
|
|
174
|
+
color: var(--pk-color-error);
|
|
175
175
|
}
|
|
176
176
|
.prokodo-Icon--white {
|
|
177
|
-
color:
|
|
177
|
+
color: var(--pk-palette-white);
|
|
178
178
|
}
|
|
179
179
|
.prokodo-Icon--white:hover {
|
|
180
|
-
color:
|
|
180
|
+
color: var(--pk-palette-white);
|
|
181
181
|
}
|
|
@@ -8,7 +8,10 @@ import { isString } from "../../helpers/validations.js";
|
|
|
8
8
|
import styles from "./Icon.module.scss.js";
|
|
9
9
|
const bem = create(styles, "Icon");
|
|
10
10
|
const getIconSize = /* @__PURE__ */ __name((s) => ({ xs: 15, sm: 20, md: 30, lg: 40, xl: 50 })[s] ?? s ?? 16, "getIconSize");
|
|
11
|
-
const baseUrl = ENVIRONMENT !== "development" ? `https://cdn.jsdelivr.net/gh/prokodo-agency/ui@v${PROKODO_UI_VERSION}/assets/icons` :
|
|
11
|
+
const baseUrl = ENVIRONMENT !== "development" ? `https://cdn.jsdelivr.net/gh/prokodo-agency/ui@v${PROKODO_UI_VERSION}/assets/icons` : (
|
|
12
|
+
/* istanbul ignore next */
|
|
13
|
+
"/assets/icons"
|
|
14
|
+
);
|
|
12
15
|
const iconUrl = /* @__PURE__ */ __name((n) => `${baseUrl}/${n.replace(/Icon$/, "").replace(/([a-z0-9])([A-Z])/g, "$1_$2").replace(/([a-zA-Z])([0-9])/g, "$1_$2").toLowerCase()}_icon.svg`, "iconUrl");
|
|
13
16
|
const Icon = /* @__PURE__ */ __name(({
|
|
14
17
|
name,
|
|
@@ -25,7 +28,10 @@ const Icon = /* @__PURE__ */ __name(({
|
|
|
25
28
|
const mask = {
|
|
26
29
|
width: sizePx,
|
|
27
30
|
height: sizePx,
|
|
28
|
-
backgroundColor:
|
|
31
|
+
backgroundColor: (
|
|
32
|
+
/* istanbul ignore next */
|
|
33
|
+
Boolean(isCustomColor) ? color : "currentColor"
|
|
34
|
+
),
|
|
29
35
|
maskImage: `url("${url}")`,
|
|
30
36
|
WebkitMaskImage: `url("${url}")`
|
|
31
37
|
};
|
|
@@ -138,44 +138,44 @@
|
|
|
138
138
|
--webkit-mask-position: center;
|
|
139
139
|
}
|
|
140
140
|
.prokodo-Icon--primary {
|
|
141
|
-
color: var(--color-
|
|
141
|
+
color: var(--pk-color-brand);
|
|
142
142
|
}
|
|
143
143
|
.prokodo-Icon--primary:hover {
|
|
144
|
-
color: var(--color-
|
|
144
|
+
color: var(--pk-color-brand);
|
|
145
145
|
}
|
|
146
146
|
.prokodo-Icon--secondary {
|
|
147
|
-
color: var(--color-
|
|
147
|
+
color: var(--pk-color-accent);
|
|
148
148
|
}
|
|
149
149
|
.prokodo-Icon--secondary:hover {
|
|
150
|
-
color: var(--color-
|
|
150
|
+
color: var(--pk-color-accent);
|
|
151
151
|
}
|
|
152
152
|
.prokodo-Icon--info {
|
|
153
|
-
color: var(--color-
|
|
153
|
+
color: var(--pk-color-muted);
|
|
154
154
|
}
|
|
155
155
|
.prokodo-Icon--info:hover {
|
|
156
|
-
color: var(--color-
|
|
156
|
+
color: var(--pk-color-muted);
|
|
157
157
|
}
|
|
158
158
|
.prokodo-Icon--success {
|
|
159
|
-
color: var(--color-success);
|
|
159
|
+
color: var(--pk-color-success);
|
|
160
160
|
}
|
|
161
161
|
.prokodo-Icon--success:hover {
|
|
162
|
-
color: var(--color-success);
|
|
162
|
+
color: var(--pk-color-success);
|
|
163
163
|
}
|
|
164
164
|
.prokodo-Icon--warning {
|
|
165
|
-
color: var(--color-warning);
|
|
165
|
+
color: var(--pk-color-warning);
|
|
166
166
|
}
|
|
167
167
|
.prokodo-Icon--warning:hover {
|
|
168
|
-
color: var(--color-warning);
|
|
168
|
+
color: var(--pk-color-warning);
|
|
169
169
|
}
|
|
170
170
|
.prokodo-Icon--error {
|
|
171
|
-
color: var(--color-error);
|
|
171
|
+
color: var(--pk-color-error);
|
|
172
172
|
}
|
|
173
173
|
.prokodo-Icon--error:hover {
|
|
174
|
-
color: var(--color-error);
|
|
174
|
+
color: var(--pk-color-error);
|
|
175
175
|
}
|
|
176
176
|
.prokodo-Icon--white {
|
|
177
|
-
color:
|
|
177
|
+
color: var(--pk-palette-white);
|
|
178
178
|
}
|
|
179
179
|
.prokodo-Icon--white:hover {
|
|
180
|
-
color:
|
|
180
|
+
color: var(--pk-palette-white);
|
|
181
181
|
}
|
|
@@ -25,10 +25,13 @@ function toPlainImgProps(p) {
|
|
|
25
25
|
const rawSrc = rest.src;
|
|
26
26
|
if (typeof rawSrc === "string") {
|
|
27
27
|
src = rawSrc;
|
|
28
|
-
} else if (
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
28
|
+
} else if (
|
|
29
|
+
/* istanbul ignore next */
|
|
30
|
+
typeof rawSrc === "object" && rawSrc !== null && Object.prototype.hasOwnProperty.call(
|
|
31
|
+
rawSrc,
|
|
32
|
+
"src"
|
|
33
|
+
) && typeof rawSrc.src === "string"
|
|
34
|
+
) {
|
|
32
35
|
const rs = rawSrc;
|
|
33
36
|
({ src } = rs);
|
|
34
37
|
} else {
|
|
@@ -63,7 +66,8 @@ const ImageClient = /* @__PURE__ */ __name(({
|
|
|
63
66
|
return /* @__PURE__ */ jsx(
|
|
64
67
|
CustomImage,
|
|
65
68
|
{
|
|
66
|
-
alt: alt ??
|
|
69
|
+
alt: alt ?? /* istanbul ignore next */
|
|
70
|
+
"",
|
|
67
71
|
className: bem("image", void 0, className),
|
|
68
72
|
...rawProps
|
|
69
73
|
}
|
|
@@ -132,14 +132,15 @@
|
|
|
132
132
|
width: 100%;
|
|
133
133
|
height: 100%;
|
|
134
134
|
margin: 0;
|
|
135
|
-
padding-bottom:
|
|
135
|
+
padding-bottom: var(--pk-space-lg);
|
|
136
136
|
}
|
|
137
137
|
.prokodo-Image__caption {
|
|
138
138
|
position: absolute;
|
|
139
139
|
width: 100%;
|
|
140
|
-
bottom: -
|
|
140
|
+
bottom: calc(-1 * var(--pk-space-lg));
|
|
141
141
|
left: 0;
|
|
142
|
-
opacity: 0.
|
|
142
|
+
opacity: 0.6;
|
|
143
|
+
color: var(--pk-color-fg);
|
|
143
144
|
font-weight: 400;
|
|
144
145
|
font-size: 1rem;
|
|
145
146
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -5,10 +5,16 @@ import ImageServer from "./Image.server.js";
|
|
|
5
5
|
const Image = createIsland({
|
|
6
6
|
name: "Image",
|
|
7
7
|
Server: ImageServer,
|
|
8
|
-
loadLazy:
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./Image.lazy.js"), "loadLazy")
|
|
11
|
+
),
|
|
9
12
|
// Treat Image as interactive so it always gets the client path
|
|
10
13
|
// when needed, but markup is still valid for server-only fallback.
|
|
11
|
-
isInteractive:
|
|
14
|
+
isInteractive: (
|
|
15
|
+
/* istanbul ignore next */
|
|
16
|
+
/* @__PURE__ */ __name(() => true, "isInteractive")
|
|
17
|
+
)
|
|
12
18
|
});
|
|
13
19
|
export {
|
|
14
20
|
Image
|