@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,132 +125,156 @@
|
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
127
|
.prokodo-Switch {
|
|
128
|
-
|
|
129
|
-
display: flex;
|
|
128
|
+
width: 100%;
|
|
129
|
+
display: inline-flex;
|
|
130
|
+
flex-direction: row;
|
|
130
131
|
align-items: center;
|
|
132
|
+
justify-content: space-between;
|
|
133
|
+
gap: var(--pk-space-sm);
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
-webkit-user-select: none;
|
|
136
|
+
-moz-user-select: none;
|
|
137
|
+
user-select: none;
|
|
138
|
+
}
|
|
139
|
+
.prokodo-Switch--primary {
|
|
140
|
+
--pk-switch-active: var(--pk-color-brand);
|
|
141
|
+
}
|
|
142
|
+
.prokodo-Switch--secondary {
|
|
143
|
+
--pk-switch-active: var(--pk-color-accent);
|
|
144
|
+
}
|
|
145
|
+
.prokodo-Switch--success {
|
|
146
|
+
--pk-switch-active: var(--pk-color-success, #22c55e);
|
|
147
|
+
}
|
|
148
|
+
.prokodo-Switch--error {
|
|
149
|
+
--pk-switch-active: var(--pk-color-error, #ef4444);
|
|
150
|
+
}
|
|
151
|
+
.prokodo-Switch--info {
|
|
152
|
+
--pk-switch-active: var(--pk-palette-grey-500);
|
|
153
|
+
}
|
|
154
|
+
.prokodo-Switch--warning {
|
|
155
|
+
--pk-switch-active: var(--pk-color-warning, #f59e0b);
|
|
156
|
+
}
|
|
157
|
+
.prokodo-Switch--inherit {
|
|
158
|
+
--pk-switch-active: currentColor;
|
|
159
|
+
}
|
|
160
|
+
[data-theme="dark"] .prokodo-Switch--info, .pk-theme-dark .prokodo-Switch--info {
|
|
161
|
+
--pk-switch-active: var(--pk-palette-grey-300);
|
|
162
|
+
}
|
|
163
|
+
[data-theme="dark"] .prokodo-Switch--inherit, .pk-theme-dark .prokodo-Switch--inherit {
|
|
164
|
+
--pk-switch-active: var(--pk-color-fg);
|
|
131
165
|
}
|
|
132
166
|
.prokodo-Switch__label {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
font-size:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
167
|
+
color: var(--pk-switch-active);
|
|
168
|
+
font-weight: 400;
|
|
169
|
+
font-size: 1.125rem;
|
|
170
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
171
|
+
font-style: normal;
|
|
172
|
+
line-height: 1.55;
|
|
173
|
+
letter-spacing: 0.03em;
|
|
174
|
+
text-transform: none;
|
|
175
|
+
text-align: left;
|
|
176
|
+
text-decoration: none;
|
|
140
177
|
}
|
|
141
178
|
@media screen and (min-width: 480px) {
|
|
142
179
|
.prokodo-Switch__label {
|
|
143
|
-
|
|
180
|
+
font-size: 1rem;
|
|
144
181
|
}
|
|
145
182
|
}
|
|
146
183
|
@media screen and (min-width: 960px) {
|
|
147
184
|
.prokodo-Switch__label {
|
|
148
|
-
|
|
185
|
+
font-size: 1rem;
|
|
149
186
|
}
|
|
150
187
|
}
|
|
151
|
-
.prokodo-Switch__label__content {
|
|
152
|
-
padding-right: 1rem;
|
|
153
|
-
}
|
|
154
188
|
.prokodo-Switch__control {
|
|
155
189
|
position: relative;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
transition: background-color 0.3s ease;
|
|
190
|
+
display: inline-flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
width: var(--pk-switch-track-width);
|
|
193
|
+
height: var(--pk-switch-track-height);
|
|
194
|
+
flex-shrink: 0;
|
|
162
195
|
}
|
|
163
|
-
.prokodo-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
border-radius:
|
|
167
|
-
|
|
196
|
+
.prokodo-Switch__track {
|
|
197
|
+
position: absolute;
|
|
198
|
+
inset: 0;
|
|
199
|
+
border-radius: var(--pk-switch-track-radius);
|
|
200
|
+
background-color: var(--pk-switch-track-bg);
|
|
201
|
+
transition: background-color var(--pk-switch-timing) ease;
|
|
168
202
|
}
|
|
169
|
-
.prokodo-
|
|
170
|
-
background: var(--
|
|
203
|
+
.prokodo-Switch__track--checked {
|
|
204
|
+
background: linear-gradient(90deg, var(--pk-switch-active), color-mix(in srgb, var(--pk-switch-active) 75%, white 25%));
|
|
171
205
|
}
|
|
172
|
-
.prokodo-
|
|
173
|
-
|
|
174
|
-
cursor: not-allowed;
|
|
206
|
+
.prokodo-Switch__track--disabled {
|
|
207
|
+
opacity: 0.4;
|
|
175
208
|
}
|
|
176
209
|
.prokodo-Switch__input {
|
|
177
210
|
position: absolute;
|
|
178
|
-
|
|
179
|
-
|
|
211
|
+
inset: 0;
|
|
212
|
+
opacity: 0;
|
|
180
213
|
width: 100%;
|
|
181
214
|
height: 100%;
|
|
182
|
-
opacity: 0;
|
|
183
215
|
margin: 0;
|
|
184
|
-
padding: 0;
|
|
185
216
|
cursor: pointer;
|
|
186
|
-
z-index: 2;
|
|
217
|
+
z-index: 2;
|
|
218
|
+
}
|
|
219
|
+
.prokodo-Switch__input:disabled {
|
|
220
|
+
cursor: not-allowed;
|
|
221
|
+
}
|
|
222
|
+
.prokodo-Switch__control {
|
|
223
|
+
box-shadow: 0 2px 8px color-mix(in srgb, var(--pk-switch-active) 30%, transparent), 0 1px 3px color-mix(in srgb, var(--pk-switch-active) 15%, transparent);
|
|
224
|
+
border-radius: var(--pk-switch-track-radius);
|
|
225
|
+
transition: box-shadow var(--pk-switch-timing) ease;
|
|
226
|
+
}
|
|
227
|
+
.prokodo-Switch__control:hover {
|
|
228
|
+
box-shadow: 0 4px 12px color-mix(in srgb, var(--pk-switch-active) 40%, transparent), 0 0 5px color-mix(in srgb, var(--pk-switch-active) 30%, transparent);
|
|
229
|
+
}
|
|
230
|
+
.prokodo-Switch__control:focus-within {
|
|
231
|
+
box-shadow: 0 4px 12px color-mix(in srgb, var(--pk-switch-active) 40%, transparent), 0 0 5px color-mix(in srgb, var(--pk-switch-active) 30%, transparent);
|
|
187
232
|
}
|
|
188
233
|
.prokodo-Switch__thumb {
|
|
189
234
|
position: absolute;
|
|
235
|
+
left: 3px;
|
|
190
236
|
top: 50%;
|
|
191
|
-
left: 2px; /* default (unchecked) */
|
|
192
|
-
width: 22px;
|
|
193
|
-
height: 22px;
|
|
194
|
-
background-color: #FFFFFF;
|
|
195
|
-
border-radius: 50%;
|
|
196
237
|
transform: translateY(-50%);
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
238
|
+
width: var(--pk-switch-thumb-size);
|
|
239
|
+
height: var(--pk-switch-thumb-size);
|
|
240
|
+
border-radius: 50%;
|
|
241
|
+
background-color: var(--pk-switch-thumb-bg);
|
|
242
|
+
box-shadow: var(--pk-shadow-sm);
|
|
243
|
+
z-index: 1;
|
|
244
|
+
display: flex;
|
|
245
|
+
align-items: center;
|
|
246
|
+
justify-content: center;
|
|
247
|
+
transition: left var(--pk-switch-timing) ease, background-color var(--pk-switch-timing) ease, box-shadow var(--pk-switch-timing) ease;
|
|
200
248
|
}
|
|
201
249
|
.prokodo-Switch__thumb--checked {
|
|
202
|
-
|
|
203
|
-
|
|
250
|
+
left: calc(var(--pk-switch-track-width) - var(--pk-switch-thumb-size) - 3px);
|
|
251
|
+
background-color: var(--pk-switch-thumb-checked-bg);
|
|
204
252
|
}
|
|
205
253
|
.prokodo-Switch__thumb--disabled {
|
|
206
|
-
|
|
207
|
-
}
|
|
208
|
-
.prokodo-Switch__thumb {
|
|
209
|
-
/* Center child icon */
|
|
210
|
-
display: flex;
|
|
211
|
-
align-items: center;
|
|
212
|
-
justify-content: center;
|
|
213
|
-
pointer-events: none;
|
|
254
|
+
opacity: 0.6;
|
|
214
255
|
}
|
|
215
256
|
.prokodo-Switch__icon__wrapper {
|
|
216
257
|
display: flex;
|
|
217
258
|
align-items: center;
|
|
218
259
|
justify-content: center;
|
|
219
|
-
|
|
220
|
-
height: 100%;
|
|
260
|
+
color: var(--pk-color-fg);
|
|
221
261
|
}
|
|
222
|
-
.prokodo-Switch__icon--
|
|
223
|
-
color: var(--color-
|
|
262
|
+
.prokodo-Switch__icon--isActive {
|
|
263
|
+
color: var(--pk-color-fg);
|
|
224
264
|
}
|
|
225
|
-
.prokodo-
|
|
226
|
-
|
|
265
|
+
[data-theme="dark"] .prokodo-Switch__thumb, .pk-theme-dark .prokodo-Switch__thumb {
|
|
266
|
+
--pk-switch-thumb-bg: #ffffff;
|
|
267
|
+
--pk-switch-thumb-checked-bg: #ffffff;
|
|
227
268
|
}
|
|
228
|
-
.prokodo-Switch__icon
|
|
229
|
-
color:
|
|
269
|
+
[data-theme="dark"] .prokodo-Switch__icon__wrapper, .pk-theme-dark .prokodo-Switch__icon__wrapper, [data-theme="dark"] .prokodo-Switch__icon, .pk-theme-dark .prokodo-Switch__icon {
|
|
270
|
+
color: #000000;
|
|
230
271
|
}
|
|
231
|
-
.prokodo-
|
|
232
|
-
|
|
272
|
+
[data-theme="dark"] .prokodo-Switch--inherit .prokodo-Switch__thumb--checked, .pk-theme-dark .prokodo-Switch--inherit .prokodo-Switch__thumb--checked {
|
|
273
|
+
--pk-switch-thumb-checked-bg: #000000;
|
|
233
274
|
}
|
|
234
|
-
.prokodo-Switch__icon--
|
|
235
|
-
color:
|
|
275
|
+
[data-theme="dark"] .prokodo-Switch--inherit .prokodo-Switch__icon--isActive, .pk-theme-dark .prokodo-Switch--inherit .prokodo-Switch__icon--isActive {
|
|
276
|
+
color: #ffffff;
|
|
236
277
|
}
|
|
237
|
-
.prokodo-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
.prokodo-Switch__track {
|
|
241
|
-
position: absolute;
|
|
242
|
-
top: 0;
|
|
243
|
-
left: 0;
|
|
244
|
-
width: 100%;
|
|
245
|
-
height: 100%;
|
|
246
|
-
background-color: var(--color-grey-300);
|
|
247
|
-
border-radius: 13px;
|
|
248
|
-
transition: background-color 0.3s ease;
|
|
249
|
-
z-index: 1;
|
|
250
|
-
}
|
|
251
|
-
.prokodo-Switch__track--checked {
|
|
252
|
-
background-color: var(--color-primary-500);
|
|
253
|
-
}
|
|
254
|
-
.prokodo-Switch__track--disabled {
|
|
255
|
-
background-color: var(--color-grey-200);
|
|
278
|
+
.prokodo-Switch--disabled, .prokodo-Switch__control--disabled {
|
|
279
|
+
cursor: not-allowed;
|
|
256
280
|
}
|
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
const styles = {
|
|
2
2
|
"prokodo-Switch": "prokodo-Switch",
|
|
3
|
+
"prokodo-Switch--primary": "prokodo-Switch--primary",
|
|
4
|
+
"prokodo-Switch--secondary": "prokodo-Switch--secondary",
|
|
5
|
+
"prokodo-Switch--success": "prokodo-Switch--success",
|
|
6
|
+
"prokodo-Switch--error": "prokodo-Switch--error",
|
|
7
|
+
"prokodo-Switch--info": "prokodo-Switch--info",
|
|
8
|
+
"prokodo-Switch--warning": "prokodo-Switch--warning",
|
|
9
|
+
"prokodo-Switch--inherit": "prokodo-Switch--inherit",
|
|
3
10
|
"prokodo-Switch__label": "prokodo-Switch__label",
|
|
4
|
-
"prokodo-Switch__label__content": "prokodo-Switch__label__content",
|
|
5
11
|
"prokodo-Switch__control": "prokodo-Switch__control",
|
|
6
|
-
"prokodo-
|
|
7
|
-
"prokodo-
|
|
12
|
+
"prokodo-Switch__track": "prokodo-Switch__track",
|
|
13
|
+
"prokodo-Switch__track--checked": "prokodo-Switch__track--checked",
|
|
14
|
+
"prokodo-Switch__track--disabled": "prokodo-Switch__track--disabled",
|
|
8
15
|
"prokodo-Switch__input": "prokodo-Switch__input",
|
|
9
16
|
"prokodo-Switch__thumb": "prokodo-Switch__thumb",
|
|
10
17
|
"prokodo-Switch__thumb--checked": "prokodo-Switch__thumb--checked",
|
|
11
18
|
"prokodo-Switch__thumb--disabled": "prokodo-Switch__thumb--disabled",
|
|
12
19
|
"prokodo-Switch__icon__wrapper": "prokodo-Switch__icon__wrapper",
|
|
13
|
-
"prokodo-Switch__icon--
|
|
14
|
-
"prokodo-Switch__icon
|
|
15
|
-
"prokodo-
|
|
16
|
-
"prokodo-
|
|
17
|
-
"prokodo-Switch__icon--info": "prokodo-Switch__icon--info",
|
|
18
|
-
"prokodo-Switch__icon--warning": "prokodo-Switch__icon--warning",
|
|
19
|
-
"prokodo-Switch__track": "prokodo-Switch__track",
|
|
20
|
-
"prokodo-Switch__track--checked": "prokodo-Switch__track--checked",
|
|
21
|
-
"prokodo-Switch__track--disabled": "prokodo-Switch__track--disabled"
|
|
20
|
+
"prokodo-Switch__icon--isActive": "prokodo-Switch__icon--isActive",
|
|
21
|
+
"prokodo-Switch__icon": "prokodo-Switch__icon",
|
|
22
|
+
"prokodo-Switch--disabled": "prokodo-Switch--disabled",
|
|
23
|
+
"prokodo-Switch__control--disabled": "prokodo-Switch__control--disabled"
|
|
22
24
|
};
|
|
23
25
|
export {
|
|
24
26
|
styles as default
|
|
@@ -3,7 +3,6 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
3
3
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
4
4
|
import { create } from "../../helpers/bem.js";
|
|
5
5
|
import styles from "./Switch.module.scss.js";
|
|
6
|
-
import { Label } from "../label/Label.js";
|
|
7
6
|
import { Icon } from "../icon/Icon.js";
|
|
8
7
|
const bem = create(styles, "Switch");
|
|
9
8
|
const SwitchView = /* @__PURE__ */ __name(({
|
|
@@ -11,7 +10,7 @@ const SwitchView = /* @__PURE__ */ __name(({
|
|
|
11
10
|
label,
|
|
12
11
|
labelProps = {},
|
|
13
12
|
required = false,
|
|
14
|
-
|
|
13
|
+
color = "primary",
|
|
15
14
|
icon,
|
|
16
15
|
checkedIcon,
|
|
17
16
|
isChecked,
|
|
@@ -21,22 +20,25 @@ const SwitchView = /* @__PURE__ */ __name(({
|
|
|
21
20
|
onChangeInternal,
|
|
22
21
|
onFocusInternal,
|
|
23
22
|
onBlurInternal,
|
|
23
|
+
isFocused: _isFocused,
|
|
24
24
|
...props
|
|
25
25
|
}) => {
|
|
26
26
|
const hasLabel = typeof label === "string" && label.length > 0;
|
|
27
|
-
return /* @__PURE__ */ jsxs("div", { className: bem(void 0, { [
|
|
28
|
-
hasLabel && /* @__PURE__ */
|
|
29
|
-
|
|
27
|
+
return /* @__PURE__ */ jsxs("div", { className: bem(void 0, { [color]: true }, className), children: [
|
|
28
|
+
hasLabel && /* @__PURE__ */ jsxs(
|
|
29
|
+
"label",
|
|
30
30
|
{
|
|
31
31
|
...labelProps,
|
|
32
32
|
htmlFor: name,
|
|
33
|
-
label,
|
|
34
|
-
required,
|
|
35
33
|
className: bem(
|
|
36
34
|
"label",
|
|
37
35
|
void 0,
|
|
38
36
|
hideLabel ? "visually-hidden" : void 0
|
|
39
|
-
)
|
|
37
|
+
),
|
|
38
|
+
children: [
|
|
39
|
+
label,
|
|
40
|
+
required && /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: " *" })
|
|
41
|
+
]
|
|
40
42
|
}
|
|
41
43
|
),
|
|
42
44
|
/* @__PURE__ */ jsxs(
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
127
|
.prokodo-Table {
|
|
128
|
-
padding-bottom:
|
|
129
|
-
padding-left:
|
|
128
|
+
padding-bottom: var(--pk-table-container-pb);
|
|
129
|
+
padding-left: calc(var(--pk-space-lg) + var(--pk-space-xs));
|
|
130
130
|
}
|
|
131
131
|
@media screen and (min-width: 480px) {
|
|
132
132
|
.prokodo-Table {
|
|
@@ -137,10 +137,15 @@
|
|
|
137
137
|
overflow: visible;
|
|
138
138
|
}
|
|
139
139
|
.prokodo-Table__headline {
|
|
140
|
-
margin-left: -
|
|
140
|
+
margin-left: calc(-1 * (var(--pk-space-lg) + var(--pk-space-xs)));
|
|
141
|
+
}
|
|
142
|
+
@media screen and (min-width: 480px) {
|
|
143
|
+
.prokodo-Table__headline {
|
|
144
|
+
margin-left: 0;
|
|
145
|
+
}
|
|
141
146
|
}
|
|
142
147
|
.prokodo-Table__content {
|
|
143
|
-
padding-left:
|
|
148
|
+
padding-left: 0;
|
|
144
149
|
}
|
|
145
150
|
.prokodo-Table__table {
|
|
146
151
|
table-layout: auto;
|
|
@@ -152,10 +157,10 @@
|
|
|
152
157
|
overflow-y: hidden;
|
|
153
158
|
}
|
|
154
159
|
.prokodo-Table__head__row {
|
|
155
|
-
border-bottom:
|
|
160
|
+
border-bottom: var(--pk-border-width) solid var(--pk-table-border-color);
|
|
156
161
|
}
|
|
157
162
|
.prokodo-Table__head__cell {
|
|
158
|
-
padding:
|
|
163
|
+
padding: var(--pk-table-padding-y) var(--pk-table-padding-x);
|
|
159
164
|
font-weight: 500;
|
|
160
165
|
font-weight: 400;
|
|
161
166
|
font-size: 1.125rem;
|
|
@@ -171,20 +176,20 @@
|
|
|
171
176
|
text-align: center;
|
|
172
177
|
}
|
|
173
178
|
.prokodo-Table__head__cell:first-child {
|
|
174
|
-
color: var(--
|
|
179
|
+
color: var(--pk-table-header-accent-color);
|
|
175
180
|
text-align: left;
|
|
176
181
|
}
|
|
177
182
|
.prokodo-Table__body__row {
|
|
178
|
-
border-bottom:
|
|
183
|
+
border-bottom: var(--pk-border-width) solid var(--pk-table-border-color);
|
|
179
184
|
}
|
|
180
185
|
.prokodo-Table__body__row--has-link:hover {
|
|
181
|
-
background: var(--
|
|
186
|
+
background: var(--pk-table-row-hover-bg);
|
|
182
187
|
}
|
|
183
188
|
.prokodo-Table__body__row--has-link:focus {
|
|
184
|
-
background: var(--
|
|
189
|
+
background: var(--pk-table-row-hover-bg);
|
|
185
190
|
}
|
|
186
191
|
.prokodo-Table__caption {
|
|
187
|
-
color: var(--
|
|
192
|
+
color: var(--pk-table-caption-color);
|
|
188
193
|
text-align: right;
|
|
189
194
|
opacity: 0;
|
|
190
195
|
font-weight: 400;
|
|
@@ -219,8 +224,8 @@
|
|
|
219
224
|
flex-direction: column;
|
|
220
225
|
justify-content: center;
|
|
221
226
|
align-items: center;
|
|
222
|
-
padding:
|
|
223
|
-
color: var(--
|
|
227
|
+
padding: var(--pk-table-padding-y) var(--pk-table-padding-x);
|
|
228
|
+
color: var(--pk-table-cell-fg);
|
|
224
229
|
font-weight: 400;
|
|
225
230
|
font-size: 1.125rem;
|
|
226
231
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -247,5 +252,5 @@
|
|
|
247
252
|
align-items: baseline;
|
|
248
253
|
}
|
|
249
254
|
.prokodo-TableCell__icon {
|
|
250
|
-
padding-bottom:
|
|
255
|
+
padding-bottom: var(--pk-space-lg);
|
|
251
256
|
}
|
|
@@ -52,6 +52,7 @@ const Table = /* @__PURE__ */ __name(({
|
|
|
52
52
|
"tr",
|
|
53
53
|
{
|
|
54
54
|
className: bem("body__row", {
|
|
55
|
+
/* istanbul ignore next */
|
|
55
56
|
"has-link": isString((_a = row == null ? void 0 : row.redirect) == null ? void 0 : _a.href)
|
|
56
57
|
}),
|
|
57
58
|
children: row == null ? void 0 : row.cells.filter((el) => el !== null).map((cell, b) => /* @__PURE__ */ createElement(
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
127
|
.prokodo-Table {
|
|
128
|
-
padding-bottom:
|
|
129
|
-
padding-left:
|
|
128
|
+
padding-bottom: var(--pk-table-container-pb);
|
|
129
|
+
padding-left: calc(var(--pk-space-lg) + var(--pk-space-xs));
|
|
130
130
|
}
|
|
131
131
|
@media screen and (min-width: 480px) {
|
|
132
132
|
.prokodo-Table {
|
|
@@ -137,10 +137,15 @@
|
|
|
137
137
|
overflow: visible;
|
|
138
138
|
}
|
|
139
139
|
.prokodo-Table__headline {
|
|
140
|
-
margin-left: -
|
|
140
|
+
margin-left: calc(-1 * (var(--pk-space-lg) + var(--pk-space-xs)));
|
|
141
|
+
}
|
|
142
|
+
@media screen and (min-width: 480px) {
|
|
143
|
+
.prokodo-Table__headline {
|
|
144
|
+
margin-left: 0;
|
|
145
|
+
}
|
|
141
146
|
}
|
|
142
147
|
.prokodo-Table__content {
|
|
143
|
-
padding-left:
|
|
148
|
+
padding-left: 0;
|
|
144
149
|
}
|
|
145
150
|
.prokodo-Table__table {
|
|
146
151
|
table-layout: auto;
|
|
@@ -152,10 +157,10 @@
|
|
|
152
157
|
overflow-y: hidden;
|
|
153
158
|
}
|
|
154
159
|
.prokodo-Table__head__row {
|
|
155
|
-
border-bottom:
|
|
160
|
+
border-bottom: var(--pk-border-width) solid var(--pk-table-border-color);
|
|
156
161
|
}
|
|
157
162
|
.prokodo-Table__head__cell {
|
|
158
|
-
padding:
|
|
163
|
+
padding: var(--pk-table-padding-y) var(--pk-table-padding-x);
|
|
159
164
|
font-weight: 500;
|
|
160
165
|
font-weight: 400;
|
|
161
166
|
font-size: 1.125rem;
|
|
@@ -171,20 +176,20 @@
|
|
|
171
176
|
text-align: center;
|
|
172
177
|
}
|
|
173
178
|
.prokodo-Table__head__cell:first-child {
|
|
174
|
-
color: var(--
|
|
179
|
+
color: var(--pk-table-header-accent-color);
|
|
175
180
|
text-align: left;
|
|
176
181
|
}
|
|
177
182
|
.prokodo-Table__body__row {
|
|
178
|
-
border-bottom:
|
|
183
|
+
border-bottom: var(--pk-border-width) solid var(--pk-table-border-color);
|
|
179
184
|
}
|
|
180
185
|
.prokodo-Table__body__row--has-link:hover {
|
|
181
|
-
background: var(--
|
|
186
|
+
background: var(--pk-table-row-hover-bg);
|
|
182
187
|
}
|
|
183
188
|
.prokodo-Table__body__row--has-link:focus {
|
|
184
|
-
background: var(--
|
|
189
|
+
background: var(--pk-table-row-hover-bg);
|
|
185
190
|
}
|
|
186
191
|
.prokodo-Table__caption {
|
|
187
|
-
color: var(--
|
|
192
|
+
color: var(--pk-table-caption-color);
|
|
188
193
|
text-align: right;
|
|
189
194
|
opacity: 0;
|
|
190
195
|
font-weight: 400;
|
|
@@ -219,8 +224,8 @@
|
|
|
219
224
|
flex-direction: column;
|
|
220
225
|
justify-content: center;
|
|
221
226
|
align-items: center;
|
|
222
|
-
padding:
|
|
223
|
-
color: var(--
|
|
227
|
+
padding: var(--pk-table-padding-y) var(--pk-table-padding-x);
|
|
228
|
+
color: var(--pk-table-cell-fg);
|
|
224
229
|
font-weight: 400;
|
|
225
230
|
font-size: 1.125rem;
|
|
226
231
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -247,5 +252,5 @@
|
|
|
247
252
|
align-items: baseline;
|
|
248
253
|
}
|
|
249
254
|
.prokodo-TableCell__icon {
|
|
250
|
-
padding-bottom:
|
|
255
|
+
padding-bottom: var(--pk-space-lg);
|
|
251
256
|
}
|
|
@@ -74,6 +74,7 @@ function TabsClient({
|
|
|
74
74
|
[disabled, isControlled, items, onChange]
|
|
75
75
|
);
|
|
76
76
|
const moveFocus = useCallback(
|
|
77
|
+
/* istanbul ignore next */
|
|
77
78
|
(currentIndex, direction) => {
|
|
78
79
|
if (!enabledIndices.length) return currentIndex;
|
|
79
80
|
const currentEnabledPos = enabledIndices.findIndex(
|
|
@@ -127,15 +127,18 @@
|
|
|
127
127
|
.prokodo-Tabs {
|
|
128
128
|
width: 100%;
|
|
129
129
|
}
|
|
130
|
+
.pk-theme-dark .prokodo-Tabs {
|
|
131
|
+
--pk-tabs-border: var(--pk-palette-grey-500);
|
|
132
|
+
}
|
|
130
133
|
.prokodo-Tabs--vertical {
|
|
131
134
|
display: grid;
|
|
132
|
-
grid-gap:
|
|
133
|
-
gap:
|
|
135
|
+
grid-gap: var(--pk-tabs-gap);
|
|
136
|
+
gap: var(--pk-tabs-gap);
|
|
134
137
|
grid-template-columns: minmax(px-to-rem(180px), px-to-rem(260px)) 1fr;
|
|
135
138
|
}
|
|
136
139
|
.prokodo-Tabs__list {
|
|
137
140
|
align-items: stretch;
|
|
138
|
-
border-bottom: 1px solid var(--
|
|
141
|
+
border-bottom: 1px solid var(--pk-tabs-border);
|
|
139
142
|
display: flex;
|
|
140
143
|
gap: 0;
|
|
141
144
|
overflow-x: auto;
|
|
@@ -143,35 +146,26 @@
|
|
|
143
146
|
position: relative;
|
|
144
147
|
scrollbar-width: none;
|
|
145
148
|
}
|
|
146
|
-
html[data-theme=dark] .prokodo-Tabs__list {
|
|
147
|
-
border-bottom-color: var(--color-grey-700);
|
|
148
|
-
}
|
|
149
149
|
.prokodo-Tabs__list--vertical {
|
|
150
150
|
border-bottom: none;
|
|
151
|
-
border-right: 1px solid var(--
|
|
151
|
+
border-right: 1px solid var(--pk-tabs-border);
|
|
152
152
|
flex-direction: column;
|
|
153
153
|
overflow-x: visible;
|
|
154
154
|
}
|
|
155
|
-
html[data-theme=dark] .prokodo-Tabs__list--vertical {
|
|
156
|
-
border-right-color: var(--color-grey-700);
|
|
157
|
-
}
|
|
158
|
-
.prokodo-Tabs__list--disabled {
|
|
159
|
-
opacity: 0.7;
|
|
160
|
-
}
|
|
161
155
|
.prokodo-Tabs__tab {
|
|
162
156
|
align-items: center;
|
|
163
157
|
background: transparent;
|
|
164
158
|
border: none;
|
|
165
|
-
border-top-left-radius:
|
|
166
|
-
border-top-right-radius:
|
|
159
|
+
border-top-left-radius: var(--pk-tabs-radius);
|
|
160
|
+
border-top-right-radius: var(--pk-tabs-radius);
|
|
167
161
|
box-shadow: none;
|
|
168
|
-
color: var(--
|
|
162
|
+
color: var(--pk-tabs-tab-color);
|
|
169
163
|
cursor: pointer;
|
|
170
164
|
display: inline-flex;
|
|
171
|
-
gap:
|
|
165
|
+
gap: var(--pk-tabs-pad-sm);
|
|
172
166
|
justify-content: center;
|
|
173
167
|
min-height: px-to-rem(44px);
|
|
174
|
-
padding:
|
|
168
|
+
padding: var(--pk-tabs-pad-md) var(--pk-tabs-pad-lg);
|
|
175
169
|
position: relative;
|
|
176
170
|
transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
|
|
177
171
|
font-weight: 400;
|
|
@@ -199,11 +193,13 @@ html[data-theme=dark] .prokodo-Tabs__list--vertical {
|
|
|
199
193
|
border-top-right-radius: 0;
|
|
200
194
|
}
|
|
201
195
|
.prokodo-Tabs__tab:hover {
|
|
202
|
-
background: var(--
|
|
196
|
+
background: var(--pk-tabs-tab-hover-bg);
|
|
197
|
+
border-radius: var(--pk-tabs-radius) var(--pk-tabs-radius) 0 0;
|
|
203
198
|
}
|
|
204
199
|
.prokodo-Tabs__tab:focus-visible {
|
|
205
200
|
outline: 0;
|
|
206
|
-
background: var(--
|
|
201
|
+
background: var(--pk-tabs-tab-hover-bg);
|
|
202
|
+
border-radius: var(--pk-tabs-radius) var(--pk-tabs-radius) 0 0;
|
|
207
203
|
}
|
|
208
204
|
.prokodo-Tabs__tab::after {
|
|
209
205
|
background: transparent;
|
|
@@ -221,14 +217,14 @@ html[data-theme=dark] .prokodo-Tabs__list--vertical {
|
|
|
221
217
|
flex: 1 1;
|
|
222
218
|
}
|
|
223
219
|
.prokodo-Tabs__tab--selected {
|
|
224
|
-
color: var(--
|
|
220
|
+
color: var(--pk-tabs-tab-selected-color);
|
|
225
221
|
}
|
|
226
222
|
.prokodo-Tabs__tab--selected::after {
|
|
227
|
-
background: var(--
|
|
223
|
+
background: var(--pk-tabs-indicator-gradient);
|
|
228
224
|
transform: scaleX(1);
|
|
229
225
|
}
|
|
230
226
|
.prokodo-Tabs__tab--disabled {
|
|
231
|
-
color: var(--
|
|
227
|
+
color: var(--pk-tabs-tab-disabled-color);
|
|
232
228
|
cursor: not-allowed;
|
|
233
229
|
opacity: 0.58;
|
|
234
230
|
}
|
|
@@ -242,6 +238,12 @@ html[data-theme=dark] .prokodo-Tabs__list--vertical {
|
|
|
242
238
|
justify-content: flex-start;
|
|
243
239
|
text-align: left;
|
|
244
240
|
}
|
|
241
|
+
.prokodo-Tabs__list--vertical .prokodo-Tabs__tab:hover {
|
|
242
|
+
border-radius: var(--pk-tabs-radius) 0 0 var(--pk-tabs-radius);
|
|
243
|
+
}
|
|
244
|
+
.prokodo-Tabs__list--vertical .prokodo-Tabs__tab:focus-visible {
|
|
245
|
+
border-radius: var(--pk-tabs-radius) 0 0 var(--pk-tabs-radius);
|
|
246
|
+
}
|
|
245
247
|
.prokodo-Tabs__list--vertical .prokodo-Tabs__tab::after {
|
|
246
248
|
bottom: 0;
|
|
247
249
|
height: auto;
|
|
@@ -263,13 +265,13 @@ html[data-theme=dark] .prokodo-Tabs__list--vertical {
|
|
|
263
265
|
}
|
|
264
266
|
.prokodo-Tabs__badge {
|
|
265
267
|
align-items: center;
|
|
266
|
-
background: var(--
|
|
268
|
+
background: var(--pk-tabs-badge-bg);
|
|
267
269
|
border-radius: px-to-rem(999px);
|
|
268
|
-
color: var(--
|
|
270
|
+
color: var(--pk-tabs-badge-fg);
|
|
269
271
|
display: inline-flex;
|
|
270
272
|
justify-content: center;
|
|
271
273
|
min-width: px-to-rem(20px);
|
|
272
|
-
padding: 0
|
|
274
|
+
padding: 0 var(--pk-tabs-pad-xs);
|
|
273
275
|
font-size: px-to-rem(12px);
|
|
274
276
|
font-weight: 400;
|
|
275
277
|
font-size: 1.125rem;
|
|
@@ -319,7 +321,7 @@ html[data-theme=dark] .prokodo-Tabs__list--vertical {
|
|
|
319
321
|
background: transparent;
|
|
320
322
|
border-radius: 0;
|
|
321
323
|
box-shadow: none;
|
|
322
|
-
padding:
|
|
324
|
+
padding: var(--pk-tabs-pad-lg);
|
|
323
325
|
}
|
|
324
326
|
.prokodo-Tabs__panel[hidden] {
|
|
325
327
|
display: none !important;
|
|
@@ -327,4 +329,28 @@ html[data-theme=dark] .prokodo-Tabs__list--vertical {
|
|
|
327
329
|
.prokodo-Tabs__panel:focus-visible {
|
|
328
330
|
outline: 0;
|
|
329
331
|
background: var(--gradient-border-4);
|
|
332
|
+
}
|
|
333
|
+
.prokodo-Tabs--color-primary {
|
|
334
|
+
--pk-tabs-indicator-gradient: var(--gradient-border-4);
|
|
335
|
+
--pk-tabs-tab-hover-bg: color-mix(in srgb, var(--pk-color-brand) 10%, transparent);
|
|
336
|
+
}
|
|
337
|
+
.prokodo-Tabs--color-secondary {
|
|
338
|
+
--pk-tabs-indicator-gradient: var(--gradient-border-2);
|
|
339
|
+
--pk-tabs-tab-hover-bg: color-mix(in srgb, var(--pk-color-accent) 10%, transparent);
|
|
340
|
+
}
|
|
341
|
+
.prokodo-Tabs--color-success {
|
|
342
|
+
--pk-tabs-indicator-gradient: var(--gradient-border-success);
|
|
343
|
+
--pk-tabs-tab-hover-bg: color-mix(in srgb, var(--pk-color-success) 10%, transparent);
|
|
344
|
+
}
|
|
345
|
+
.prokodo-Tabs--color-error {
|
|
346
|
+
--pk-tabs-indicator-gradient: var(--gradient-border-error);
|
|
347
|
+
--pk-tabs-tab-hover-bg: color-mix(in srgb, var(--pk-color-error) 10%, transparent);
|
|
348
|
+
}
|
|
349
|
+
.prokodo-Tabs--color-warning {
|
|
350
|
+
--pk-tabs-indicator-gradient: var(--gradient-border-warning);
|
|
351
|
+
--pk-tabs-tab-hover-bg: color-mix(in srgb, var(--pk-color-warning) 10%, transparent);
|
|
352
|
+
}
|
|
353
|
+
.prokodo-Tabs--color-info {
|
|
354
|
+
--pk-tabs-indicator-gradient: var(--gradient-border-info);
|
|
355
|
+
--pk-tabs-tab-hover-bg: color-mix(in srgb, var(--pk-color-muted) 20%, transparent);
|
|
330
356
|
}
|