@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
|
@@ -125,107 +125,121 @@
|
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
127
|
.prokodo-Checkbox {
|
|
128
|
-
display:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
grid-gap: 0.75rem;
|
|
132
|
-
gap: 0.75rem;
|
|
133
|
-
padding: 0.5rem 0;
|
|
134
|
-
border-radius: 12px;
|
|
135
|
-
background: transparent;
|
|
136
|
-
border: 1px solid transparent;
|
|
137
|
-
box-shadow: none;
|
|
128
|
+
display: inline-flex;
|
|
129
|
+
align-items: flex-start;
|
|
130
|
+
gap: var(--pk-space-sm);
|
|
138
131
|
cursor: pointer;
|
|
139
132
|
-webkit-user-select: none;
|
|
140
133
|
-moz-user-select: none;
|
|
141
134
|
user-select: none;
|
|
135
|
+
width: 100%;
|
|
136
|
+
position: relative;
|
|
142
137
|
}
|
|
143
|
-
.prokodo-Checkbox
|
|
144
|
-
|
|
145
|
-
|
|
138
|
+
html[data-theme="dark"] .prokodo-Checkbox, [data-theme="dark"] .prokodo-Checkbox, .pk-theme-dark .prokodo-Checkbox {
|
|
139
|
+
--pk-checkbox-control-border: rgba(255, 255, 255, 0.18);
|
|
140
|
+
--pk-checkbox-control-bg: rgba(255, 255, 255, 0.04);
|
|
141
|
+
--pk-checkbox-card-bg: rgba(255, 255, 255, 0.03);
|
|
142
|
+
--pk-checkbox-fg-muted: var(--pk-palette-grey-200);
|
|
146
143
|
}
|
|
147
|
-
.prokodo-Checkbox
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
144
|
+
.prokodo-Checkbox--primary {
|
|
145
|
+
--pk-checkbox-gradient-from: var(--pk-color-brand);
|
|
146
|
+
--pk-checkbox-gradient-to: var(--pk-color-accent);
|
|
147
|
+
--pk-checkbox-shadow-color: color-mix(in srgb, var(--pk-color-brand) 30%, transparent);
|
|
151
148
|
}
|
|
152
|
-
.prokodo-Checkbox--
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
149
|
+
.prokodo-Checkbox--secondary {
|
|
150
|
+
--pk-checkbox-gradient-from: var(--pk-color-accent);
|
|
151
|
+
--pk-checkbox-gradient-to: var(--pk-color-brand);
|
|
152
|
+
--pk-checkbox-shadow-color: color-mix(in srgb, var(--pk-color-accent) 30%, transparent);
|
|
153
|
+
}
|
|
154
|
+
.prokodo-Checkbox--success {
|
|
155
|
+
--pk-checkbox-gradient-from: var(--pk-color-success);
|
|
156
|
+
--pk-checkbox-gradient-to: #10CCB8;
|
|
157
|
+
--pk-checkbox-shadow-color: color-mix(in srgb, var(--pk-color-success) 30%, transparent);
|
|
158
|
+
}
|
|
159
|
+
.prokodo-Checkbox--warning {
|
|
160
|
+
--pk-checkbox-gradient-from: var(--pk-color-warning);
|
|
161
|
+
--pk-checkbox-gradient-to: #f7cc6a;
|
|
162
|
+
--pk-checkbox-shadow-color: color-mix(in srgb, var(--pk-color-warning) 30%, transparent);
|
|
163
|
+
}
|
|
164
|
+
.prokodo-Checkbox--error {
|
|
165
|
+
--pk-checkbox-gradient-from: var(--pk-color-error);
|
|
166
|
+
--pk-checkbox-gradient-to: #ff6b6b;
|
|
167
|
+
--pk-checkbox-shadow-color: color-mix(in srgb, var(--pk-color-error) 30%, transparent);
|
|
168
|
+
}
|
|
169
|
+
.prokodo-Checkbox--info, .prokodo-Checkbox--inherit, .prokodo-Checkbox--white {
|
|
170
|
+
--pk-checkbox-gradient-from: var(--pk-color-muted);
|
|
171
|
+
--pk-checkbox-gradient-to: var(--pk-color-border);
|
|
172
|
+
--pk-checkbox-shadow-color: rgba(0, 0, 0, 0.1);
|
|
173
|
+
}
|
|
174
|
+
html[data-theme="dark"] .prokodo-Checkbox--info, [data-theme="dark"] .prokodo-Checkbox--info, .pk-theme-dark .prokodo-Checkbox--info, html[data-theme="dark"] .prokodo-Checkbox--inherit, [data-theme="dark"] .prokodo-Checkbox--inherit, .pk-theme-dark .prokodo-Checkbox--inherit, html[data-theme="dark"] .prokodo-Checkbox--white, [data-theme="dark"] .prokodo-Checkbox--white, .pk-theme-dark .prokodo-Checkbox--white {
|
|
175
|
+
--pk-checkbox-gradient-from: var(--pk-palette-grey-100);
|
|
176
|
+
--pk-checkbox-gradient-to: var(--pk-palette-grey-200);
|
|
158
177
|
}
|
|
159
178
|
.prokodo-Checkbox__left {
|
|
160
|
-
|
|
161
|
-
|
|
179
|
+
flex-shrink: 0;
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: flex-start;
|
|
182
|
+
padding-top: 2px;
|
|
162
183
|
}
|
|
163
184
|
.prokodo-Checkbox__input {
|
|
164
185
|
position: absolute;
|
|
165
186
|
opacity: 0;
|
|
166
|
-
width:
|
|
167
|
-
height:
|
|
168
|
-
margin: 0;
|
|
169
|
-
padding: 0;
|
|
187
|
+
width: 0;
|
|
188
|
+
height: 0;
|
|
170
189
|
pointer-events: none;
|
|
171
190
|
}
|
|
172
191
|
.prokodo-Checkbox__control {
|
|
173
|
-
width: 18px;
|
|
174
|
-
height: 18px;
|
|
175
|
-
border-radius: 6px;
|
|
176
192
|
position: relative;
|
|
177
|
-
|
|
178
|
-
background: rgba(255, 255, 255, 0.02);
|
|
179
|
-
box-shadow: var(--inner-elevation-1);
|
|
180
|
-
display: inline-flex;
|
|
181
|
-
align-items: center;
|
|
193
|
+
display: flex;
|
|
182
194
|
justify-content: center;
|
|
183
|
-
|
|
195
|
+
align-items: center;
|
|
196
|
+
width: var(--pk-checkbox-size);
|
|
197
|
+
height: var(--pk-checkbox-size);
|
|
198
|
+
border-radius: var(--pk-checkbox-control-radius);
|
|
199
|
+
background: var(--pk-checkbox-control-bg);
|
|
200
|
+
flex-shrink: 0;
|
|
201
|
+
box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pk-checkbox-gradient-from) 25%, transparent), inset 0 2px 6px color-mix(in srgb, var(--pk-checkbox-gradient-from) 20%, transparent);
|
|
202
|
+
transition: background var(--pk-timing-fast) ease, box-shadow var(--pk-timing-fast) ease;
|
|
184
203
|
}
|
|
185
204
|
.prokodo-Checkbox__control::after {
|
|
186
205
|
content: "";
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
border
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
transform: translate(-50%, -50%) rotate(-45deg) scale(0.6);
|
|
206
|
+
display: block;
|
|
207
|
+
width: 5px;
|
|
208
|
+
height: 9px;
|
|
209
|
+
border: 2px solid transparent;
|
|
210
|
+
border-top-width: 0;
|
|
211
|
+
border-left-width: 0;
|
|
212
|
+
transform: rotate(45deg) translate(-1px, -1px);
|
|
195
213
|
opacity: 0;
|
|
196
|
-
transition:
|
|
214
|
+
transition: opacity var(--pk-timing-fast) ease, border-color var(--pk-timing-fast) ease;
|
|
197
215
|
}
|
|
198
216
|
.prokodo-Checkbox__control--checked {
|
|
199
|
-
|
|
217
|
+
background: linear-gradient(135deg, var(--pk-checkbox-gradient-from), var(--pk-checkbox-gradient-to));
|
|
218
|
+
border-color: transparent;
|
|
219
|
+
box-shadow: 0 2px 10px var(--pk-checkbox-shadow-color);
|
|
200
220
|
}
|
|
201
221
|
.prokodo-Checkbox__control--checked::after {
|
|
222
|
+
border-color: #ffffff;
|
|
202
223
|
opacity: 1;
|
|
203
|
-
transform: translate(-50%, -50%) rotate(-45deg) scale(1);
|
|
204
|
-
}
|
|
205
|
-
.prokodo-Checkbox__control--card {
|
|
206
|
-
box-shadow: var(--inner-elevation-1);
|
|
207
224
|
}
|
|
208
|
-
.prokodo-
|
|
209
|
-
|
|
225
|
+
.prokodo-Checkbox__input:focus-visible ~ .prokodo-Checkbox__control {
|
|
226
|
+
outline: none;
|
|
227
|
+
box-shadow: 0 0 0 var(--pk-focus-ring-width) var(--pk-checkbox-gradient-from), 0 2px 10px var(--pk-checkbox-shadow-color);
|
|
210
228
|
}
|
|
211
229
|
.prokodo-Checkbox__body {
|
|
230
|
+
flex: 1 1;
|
|
212
231
|
min-width: 0;
|
|
213
232
|
display: flex;
|
|
214
233
|
flex-direction: column;
|
|
215
|
-
gap:
|
|
234
|
+
gap: 2px;
|
|
216
235
|
}
|
|
217
236
|
.prokodo-Checkbox__row {
|
|
218
|
-
display:
|
|
237
|
+
display: flex;
|
|
219
238
|
align-items: center;
|
|
220
|
-
gap:
|
|
221
|
-
min-width: 0;
|
|
239
|
+
gap: var(--pk-space-xs);
|
|
222
240
|
}
|
|
223
241
|
.prokodo-Checkbox__title {
|
|
224
|
-
|
|
225
|
-
overflow: hidden;
|
|
226
|
-
text-overflow: ellipsis;
|
|
227
|
-
color: var(--color-grey-900);
|
|
228
|
-
margin: 0;
|
|
242
|
+
color: var(--pk-checkbox-fg);
|
|
229
243
|
font-weight: 400;
|
|
230
244
|
font-size: 1.125rem;
|
|
231
245
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -247,8 +261,7 @@
|
|
|
247
261
|
}
|
|
248
262
|
}
|
|
249
263
|
.prokodo-Checkbox__requiredMark {
|
|
250
|
-
color: var(--
|
|
251
|
-
line-height: 1;
|
|
264
|
+
color: var(--pk-checkbox-error-fg);
|
|
252
265
|
font-weight: 400;
|
|
253
266
|
font-size: 1.125rem;
|
|
254
267
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -270,13 +283,7 @@
|
|
|
270
283
|
}
|
|
271
284
|
}
|
|
272
285
|
.prokodo-Checkbox__desc {
|
|
273
|
-
color: var(--
|
|
274
|
-
opacity: 0.82;
|
|
275
|
-
overflow: hidden;
|
|
276
|
-
text-overflow: ellipsis;
|
|
277
|
-
display: -webkit-box;
|
|
278
|
-
line-clamp: 2;
|
|
279
|
-
-webkit-box-orient: vertical;
|
|
286
|
+
color: var(--pk-checkbox-fg-muted);
|
|
280
287
|
font-weight: 400;
|
|
281
288
|
font-size: 1rem;
|
|
282
289
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -300,13 +307,27 @@
|
|
|
300
307
|
}
|
|
301
308
|
}
|
|
302
309
|
.prokodo-Checkbox__right {
|
|
303
|
-
|
|
304
|
-
display:
|
|
310
|
+
flex-shrink: 0;
|
|
311
|
+
display: flex;
|
|
305
312
|
align-items: center;
|
|
306
|
-
|
|
307
|
-
|
|
313
|
+
color: var(--pk-checkbox-fg-muted);
|
|
314
|
+
}
|
|
315
|
+
.prokodo-Checkbox--disabled {
|
|
316
|
+
cursor: not-allowed;
|
|
317
|
+
opacity: 0.5;
|
|
318
|
+
}
|
|
319
|
+
.prokodo-Checkbox--card {
|
|
320
|
+
padding: var(--pk-space-md) var(--pk-space-lg);
|
|
321
|
+
border-radius: var(--pk-checkbox-radius);
|
|
322
|
+
border: var(--pk-border-width) solid var(--pk-checkbox-control-border);
|
|
323
|
+
background: var(--pk-checkbox-card-bg);
|
|
324
|
+
transition: border-color var(--pk-timing-fast) ease, box-shadow var(--pk-timing-fast) ease;
|
|
325
|
+
}
|
|
326
|
+
.prokodo-Checkbox--card:hover:not(.prokodo-Checkbox--disabled) {
|
|
327
|
+
border-color: var(--pk-checkbox-gradient-from);
|
|
328
|
+
box-shadow: 0 2px 8px var(--pk-checkbox-shadow-color);
|
|
308
329
|
}
|
|
309
|
-
.prokodo-
|
|
310
|
-
color: var(--
|
|
311
|
-
|
|
330
|
+
.prokodo-Checkbox--card.prokodo-Checkbox--checked {
|
|
331
|
+
border-color: var(--pk-checkbox-gradient-from);
|
|
332
|
+
box-shadow: 0 2px 8px var(--pk-checkbox-shadow-color);
|
|
312
333
|
}
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
const styles = {
|
|
2
2
|
"prokodo-Checkbox": "prokodo-Checkbox",
|
|
3
|
-
"prokodo-Checkbox--
|
|
4
|
-
"prokodo-Checkbox--
|
|
3
|
+
"prokodo-Checkbox--primary": "prokodo-Checkbox--primary",
|
|
4
|
+
"prokodo-Checkbox--secondary": "prokodo-Checkbox--secondary",
|
|
5
|
+
"prokodo-Checkbox--success": "prokodo-Checkbox--success",
|
|
6
|
+
"prokodo-Checkbox--warning": "prokodo-Checkbox--warning",
|
|
7
|
+
"prokodo-Checkbox--error": "prokodo-Checkbox--error",
|
|
8
|
+
"prokodo-Checkbox--info": "prokodo-Checkbox--info",
|
|
9
|
+
"prokodo-Checkbox--inherit": "prokodo-Checkbox--inherit",
|
|
10
|
+
"prokodo-Checkbox--white": "prokodo-Checkbox--white",
|
|
5
11
|
"prokodo-Checkbox__left": "prokodo-Checkbox__left",
|
|
6
12
|
"prokodo-Checkbox__input": "prokodo-Checkbox__input",
|
|
7
13
|
"prokodo-Checkbox__control": "prokodo-Checkbox__control",
|
|
8
14
|
"prokodo-Checkbox__control--checked": "prokodo-Checkbox__control--checked",
|
|
9
|
-
"prokodo-Checkbox__control--card": "prokodo-Checkbox__control--card",
|
|
10
15
|
"prokodo-Checkbox__body": "prokodo-Checkbox__body",
|
|
11
16
|
"prokodo-Checkbox__row": "prokodo-Checkbox__row",
|
|
12
17
|
"prokodo-Checkbox__title": "prokodo-Checkbox__title",
|
|
13
18
|
"prokodo-Checkbox__requiredMark": "prokodo-Checkbox__requiredMark",
|
|
14
19
|
"prokodo-Checkbox__desc": "prokodo-Checkbox__desc",
|
|
15
20
|
"prokodo-Checkbox__right": "prokodo-Checkbox__right",
|
|
16
|
-
"prokodo-
|
|
21
|
+
"prokodo-Checkbox--disabled": "prokodo-Checkbox--disabled",
|
|
22
|
+
"prokodo-Checkbox--card": "prokodo-Checkbox--card",
|
|
23
|
+
"prokodo-Checkbox--checked": "prokodo-Checkbox--checked"
|
|
17
24
|
};
|
|
18
25
|
export {
|
|
19
26
|
styles as default
|
|
@@ -17,6 +17,7 @@ function CheckboxView({
|
|
|
17
17
|
showRequiredMark,
|
|
18
18
|
disabled,
|
|
19
19
|
variant = "plain",
|
|
20
|
+
color = "primary",
|
|
20
21
|
isChecked,
|
|
21
22
|
onChangeInternal
|
|
22
23
|
}) {
|
|
@@ -29,7 +30,8 @@ function CheckboxView({
|
|
|
29
30
|
{
|
|
30
31
|
checked: isChecked,
|
|
31
32
|
disabled: Boolean(disabled),
|
|
32
|
-
[variant]: true
|
|
33
|
+
[variant]: true,
|
|
34
|
+
[color]: true
|
|
33
35
|
},
|
|
34
36
|
className
|
|
35
37
|
),
|
|
@@ -73,7 +75,10 @@ function CheckboxView({
|
|
|
73
75
|
{
|
|
74
76
|
...icon,
|
|
75
77
|
className: bem("rightIcon", void 0, icon.className),
|
|
76
|
-
label:
|
|
78
|
+
label: (
|
|
79
|
+
/* istanbul ignore next */
|
|
80
|
+
iconLabel ?? void 0
|
|
81
|
+
)
|
|
77
82
|
}
|
|
78
83
|
) : null })
|
|
79
84
|
]
|
|
@@ -130,13 +130,46 @@
|
|
|
130
130
|
border: 0;
|
|
131
131
|
min-width: 0;
|
|
132
132
|
}
|
|
133
|
+
.prokodo-CheckboxGroup--primary {
|
|
134
|
+
--pk-cg-legend-color: color-mix(in srgb, var(--pk-color-brand) 80%, #000000);
|
|
135
|
+
}
|
|
136
|
+
html[data-theme="dark"] .prokodo-CheckboxGroup--primary, [data-theme="dark"] .prokodo-CheckboxGroup--primary, .pk-theme-dark .prokodo-CheckboxGroup--primary {
|
|
137
|
+
--pk-cg-legend-color: var(--pk-color-brand);
|
|
138
|
+
}
|
|
139
|
+
.prokodo-CheckboxGroup--secondary {
|
|
140
|
+
--pk-cg-legend-color: color-mix(in srgb, var(--pk-color-accent) 80%, #000000);
|
|
141
|
+
}
|
|
142
|
+
html[data-theme="dark"] .prokodo-CheckboxGroup--secondary, [data-theme="dark"] .prokodo-CheckboxGroup--secondary, .pk-theme-dark .prokodo-CheckboxGroup--secondary {
|
|
143
|
+
--pk-cg-legend-color: var(--pk-color-accent);
|
|
144
|
+
}
|
|
145
|
+
.prokodo-CheckboxGroup--success {
|
|
146
|
+
--pk-cg-legend-color: color-mix(in srgb, var(--pk-color-success) 80%, #000000);
|
|
147
|
+
}
|
|
148
|
+
html[data-theme="dark"] .prokodo-CheckboxGroup--success, [data-theme="dark"] .prokodo-CheckboxGroup--success, .pk-theme-dark .prokodo-CheckboxGroup--success {
|
|
149
|
+
--pk-cg-legend-color: var(--pk-color-success);
|
|
150
|
+
}
|
|
151
|
+
.prokodo-CheckboxGroup--warning {
|
|
152
|
+
--pk-cg-legend-color: color-mix(in srgb, var(--pk-color-warning) 80%, #000000);
|
|
153
|
+
}
|
|
154
|
+
html[data-theme="dark"] .prokodo-CheckboxGroup--warning, [data-theme="dark"] .prokodo-CheckboxGroup--warning, .pk-theme-dark .prokodo-CheckboxGroup--warning {
|
|
155
|
+
--pk-cg-legend-color: var(--pk-color-warning);
|
|
156
|
+
}
|
|
157
|
+
.prokodo-CheckboxGroup--error {
|
|
158
|
+
--pk-cg-legend-color: var(--pk-color-error);
|
|
159
|
+
}
|
|
160
|
+
.prokodo-CheckboxGroup--info, .prokodo-CheckboxGroup--inherit, .prokodo-CheckboxGroup--white {
|
|
161
|
+
--pk-cg-legend-color: var(--pk-color-muted);
|
|
162
|
+
}
|
|
163
|
+
html[data-theme="dark"] .prokodo-CheckboxGroup--info, [data-theme="dark"] .prokodo-CheckboxGroup--info, .pk-theme-dark .prokodo-CheckboxGroup--info, html[data-theme="dark"] .prokodo-CheckboxGroup--inherit, [data-theme="dark"] .prokodo-CheckboxGroup--inherit, .pk-theme-dark .prokodo-CheckboxGroup--inherit, html[data-theme="dark"] .prokodo-CheckboxGroup--white, [data-theme="dark"] .prokodo-CheckboxGroup--white, .pk-theme-dark .prokodo-CheckboxGroup--white {
|
|
164
|
+
--pk-cg-legend-color: var(--pk-palette-grey-200);
|
|
165
|
+
}
|
|
133
166
|
.prokodo-CheckboxGroup__legend {
|
|
134
|
-
margin: 0 0
|
|
167
|
+
margin: 0 0 var(--pk-space-sm) 0;
|
|
135
168
|
padding: 0;
|
|
136
|
-
opacity: 0.
|
|
169
|
+
opacity: 0.9;
|
|
137
170
|
display: inline-flex;
|
|
138
171
|
align-items: center;
|
|
139
|
-
gap:
|
|
172
|
+
gap: var(--pk-space-xs);
|
|
140
173
|
font-weight: 400;
|
|
141
174
|
font-size: 1rem;
|
|
142
175
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -168,7 +201,7 @@
|
|
|
168
201
|
text-indent: -99999px;
|
|
169
202
|
}
|
|
170
203
|
.prokodo-CheckboxGroup__legendLabel {
|
|
171
|
-
color: var(--color-
|
|
204
|
+
color: var(--pk-cg-legend-color, var(--pk-color-fg));
|
|
172
205
|
font-weight: 400;
|
|
173
206
|
font-size: 1rem;
|
|
174
207
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -192,7 +225,7 @@
|
|
|
192
225
|
}
|
|
193
226
|
}
|
|
194
227
|
.prokodo-CheckboxGroup__legendRequiredMark {
|
|
195
|
-
color: var(--color-error);
|
|
228
|
+
color: var(--pk-color-error);
|
|
196
229
|
line-height: 1;
|
|
197
230
|
font-weight: 400;
|
|
198
231
|
font-size: 1rem;
|
|
@@ -219,7 +252,7 @@
|
|
|
219
252
|
.prokodo-CheckboxGroup__list {
|
|
220
253
|
display: flex;
|
|
221
254
|
flex-direction: column;
|
|
222
|
-
gap:
|
|
255
|
+
gap: var(--pk-space-sm);
|
|
223
256
|
min-width: 0;
|
|
224
257
|
}
|
|
225
258
|
.prokodo-CheckboxGroup__list--plain {
|
|
@@ -6,7 +6,10 @@ const CheckboxGroup = createIsland({
|
|
|
6
6
|
name: "CheckboxGroup",
|
|
7
7
|
Server: CheckboxGroupServer,
|
|
8
8
|
/* istanbul ignore next */
|
|
9
|
-
loadLazy:
|
|
9
|
+
loadLazy: (
|
|
10
|
+
/* istanbul ignore next */
|
|
11
|
+
/* @__PURE__ */ __name(() => import("./CheckboxGroup.lazy.js"), "loadLazy")
|
|
12
|
+
)
|
|
10
13
|
});
|
|
11
14
|
export {
|
|
12
15
|
CheckboxGroup
|
|
@@ -130,13 +130,46 @@
|
|
|
130
130
|
border: 0;
|
|
131
131
|
min-width: 0;
|
|
132
132
|
}
|
|
133
|
+
.prokodo-CheckboxGroup--primary {
|
|
134
|
+
--pk-cg-legend-color: color-mix(in srgb, var(--pk-color-brand) 80%, #000000);
|
|
135
|
+
}
|
|
136
|
+
html[data-theme="dark"] .prokodo-CheckboxGroup--primary, [data-theme="dark"] .prokodo-CheckboxGroup--primary, .pk-theme-dark .prokodo-CheckboxGroup--primary {
|
|
137
|
+
--pk-cg-legend-color: var(--pk-color-brand);
|
|
138
|
+
}
|
|
139
|
+
.prokodo-CheckboxGroup--secondary {
|
|
140
|
+
--pk-cg-legend-color: color-mix(in srgb, var(--pk-color-accent) 80%, #000000);
|
|
141
|
+
}
|
|
142
|
+
html[data-theme="dark"] .prokodo-CheckboxGroup--secondary, [data-theme="dark"] .prokodo-CheckboxGroup--secondary, .pk-theme-dark .prokodo-CheckboxGroup--secondary {
|
|
143
|
+
--pk-cg-legend-color: var(--pk-color-accent);
|
|
144
|
+
}
|
|
145
|
+
.prokodo-CheckboxGroup--success {
|
|
146
|
+
--pk-cg-legend-color: color-mix(in srgb, var(--pk-color-success) 80%, #000000);
|
|
147
|
+
}
|
|
148
|
+
html[data-theme="dark"] .prokodo-CheckboxGroup--success, [data-theme="dark"] .prokodo-CheckboxGroup--success, .pk-theme-dark .prokodo-CheckboxGroup--success {
|
|
149
|
+
--pk-cg-legend-color: var(--pk-color-success);
|
|
150
|
+
}
|
|
151
|
+
.prokodo-CheckboxGroup--warning {
|
|
152
|
+
--pk-cg-legend-color: color-mix(in srgb, var(--pk-color-warning) 80%, #000000);
|
|
153
|
+
}
|
|
154
|
+
html[data-theme="dark"] .prokodo-CheckboxGroup--warning, [data-theme="dark"] .prokodo-CheckboxGroup--warning, .pk-theme-dark .prokodo-CheckboxGroup--warning {
|
|
155
|
+
--pk-cg-legend-color: var(--pk-color-warning);
|
|
156
|
+
}
|
|
157
|
+
.prokodo-CheckboxGroup--error {
|
|
158
|
+
--pk-cg-legend-color: var(--pk-color-error);
|
|
159
|
+
}
|
|
160
|
+
.prokodo-CheckboxGroup--info, .prokodo-CheckboxGroup--inherit, .prokodo-CheckboxGroup--white {
|
|
161
|
+
--pk-cg-legend-color: var(--pk-color-muted);
|
|
162
|
+
}
|
|
163
|
+
html[data-theme="dark"] .prokodo-CheckboxGroup--info, [data-theme="dark"] .prokodo-CheckboxGroup--info, .pk-theme-dark .prokodo-CheckboxGroup--info, html[data-theme="dark"] .prokodo-CheckboxGroup--inherit, [data-theme="dark"] .prokodo-CheckboxGroup--inherit, .pk-theme-dark .prokodo-CheckboxGroup--inherit, html[data-theme="dark"] .prokodo-CheckboxGroup--white, [data-theme="dark"] .prokodo-CheckboxGroup--white, .pk-theme-dark .prokodo-CheckboxGroup--white {
|
|
164
|
+
--pk-cg-legend-color: var(--pk-palette-grey-200);
|
|
165
|
+
}
|
|
133
166
|
.prokodo-CheckboxGroup__legend {
|
|
134
|
-
margin: 0 0
|
|
167
|
+
margin: 0 0 var(--pk-space-sm) 0;
|
|
135
168
|
padding: 0;
|
|
136
|
-
opacity: 0.
|
|
169
|
+
opacity: 0.9;
|
|
137
170
|
display: inline-flex;
|
|
138
171
|
align-items: center;
|
|
139
|
-
gap:
|
|
172
|
+
gap: var(--pk-space-xs);
|
|
140
173
|
font-weight: 400;
|
|
141
174
|
font-size: 1rem;
|
|
142
175
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -168,7 +201,7 @@
|
|
|
168
201
|
text-indent: -99999px;
|
|
169
202
|
}
|
|
170
203
|
.prokodo-CheckboxGroup__legendLabel {
|
|
171
|
-
color: var(--color-
|
|
204
|
+
color: var(--pk-cg-legend-color, var(--pk-color-fg));
|
|
172
205
|
font-weight: 400;
|
|
173
206
|
font-size: 1rem;
|
|
174
207
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -192,7 +225,7 @@
|
|
|
192
225
|
}
|
|
193
226
|
}
|
|
194
227
|
.prokodo-CheckboxGroup__legendRequiredMark {
|
|
195
|
-
color: var(--color-error);
|
|
228
|
+
color: var(--pk-color-error);
|
|
196
229
|
line-height: 1;
|
|
197
230
|
font-weight: 400;
|
|
198
231
|
font-size: 1rem;
|
|
@@ -219,7 +252,7 @@
|
|
|
219
252
|
.prokodo-CheckboxGroup__list {
|
|
220
253
|
display: flex;
|
|
221
254
|
flex-direction: column;
|
|
222
|
-
gap:
|
|
255
|
+
gap: var(--pk-space-sm);
|
|
223
256
|
min-width: 0;
|
|
224
257
|
}
|
|
225
258
|
.prokodo-CheckboxGroup__list--plain {
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
const styles = {
|
|
2
2
|
"prokodo-CheckboxGroup": "prokodo-CheckboxGroup",
|
|
3
|
+
"prokodo-CheckboxGroup--primary": "prokodo-CheckboxGroup--primary",
|
|
4
|
+
"prokodo-CheckboxGroup--secondary": "prokodo-CheckboxGroup--secondary",
|
|
5
|
+
"prokodo-CheckboxGroup--success": "prokodo-CheckboxGroup--success",
|
|
6
|
+
"prokodo-CheckboxGroup--warning": "prokodo-CheckboxGroup--warning",
|
|
7
|
+
"prokodo-CheckboxGroup--error": "prokodo-CheckboxGroup--error",
|
|
8
|
+
"prokodo-CheckboxGroup--info": "prokodo-CheckboxGroup--info",
|
|
9
|
+
"prokodo-CheckboxGroup--inherit": "prokodo-CheckboxGroup--inherit",
|
|
10
|
+
"prokodo-CheckboxGroup--white": "prokodo-CheckboxGroup--white",
|
|
3
11
|
"prokodo-CheckboxGroup__legend": "prokodo-CheckboxGroup__legend",
|
|
4
12
|
"prokodo-CheckboxGroup__legend--is-hidden": "prokodo-CheckboxGroup__legend--is-hidden",
|
|
5
13
|
"prokodo-CheckboxGroup__legendLabel": "prokodo-CheckboxGroup__legendLabel",
|
|
@@ -18,19 +18,23 @@ function CheckboxGroupView({
|
|
|
18
18
|
hiddenInputName,
|
|
19
19
|
layout = "stack",
|
|
20
20
|
variant = "plain",
|
|
21
|
+
color = "primary",
|
|
21
22
|
translations: t,
|
|
22
23
|
isChecked,
|
|
23
24
|
onToggle
|
|
24
25
|
}) {
|
|
25
26
|
if (!(options == null ? void 0 : options.length)) return null;
|
|
26
|
-
const label =
|
|
27
|
+
const label = (
|
|
28
|
+
/* istanbul ignore next */
|
|
29
|
+
ariaLabel ?? (t == null ? void 0 : t.ariaLabel) ?? "Options"
|
|
30
|
+
);
|
|
27
31
|
const isGroupRequiredActive = Boolean(required) && selectedValues.length === 0;
|
|
28
32
|
return /* @__PURE__ */ jsxs(
|
|
29
33
|
"fieldset",
|
|
30
34
|
{
|
|
31
35
|
"aria-label": label,
|
|
32
36
|
"aria-required": required || void 0,
|
|
33
|
-
className: bem(),
|
|
37
|
+
className: bem(void 0, { [color]: true }),
|
|
34
38
|
children: [
|
|
35
39
|
legend ? /* @__PURE__ */ jsxs(
|
|
36
40
|
"legend",
|
|
@@ -70,6 +74,7 @@ function CheckboxGroupView({
|
|
|
70
74
|
Checkbox,
|
|
71
75
|
{
|
|
72
76
|
checked,
|
|
77
|
+
color,
|
|
73
78
|
description: opt.description,
|
|
74
79
|
disabled: itemDisabled,
|
|
75
80
|
icon: opt.icon,
|