@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
|
@@ -137,6 +137,41 @@
|
|
|
137
137
|
flex-direction: row;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
+
.prokodo-Stepper--primary {
|
|
141
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-brand) 0%, var(--pk-color-accent) 100%);
|
|
142
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-brand) 0%, var(--pk-color-accent) 100%);
|
|
143
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-brand), var(--pk-color-accent), var(--pk-color-brand));
|
|
144
|
+
}
|
|
145
|
+
.prokodo-Stepper--secondary {
|
|
146
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-accent) 0%, var(--pk-color-brand) 100%);
|
|
147
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-accent) 0%, var(--pk-color-brand) 100%);
|
|
148
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-accent), var(--pk-color-brand), var(--pk-color-accent));
|
|
149
|
+
}
|
|
150
|
+
.prokodo-Stepper--success {
|
|
151
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-success) 0%, #10CCB8 100%);
|
|
152
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-success) 0%, #10CCB8 100%);
|
|
153
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-success), #10CCB8, var(--pk-color-success));
|
|
154
|
+
}
|
|
155
|
+
.prokodo-Stepper--warning {
|
|
156
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-warning) 0%, #f7cc6a 100%);
|
|
157
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-warning) 0%, #f7cc6a 100%);
|
|
158
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-warning), #f7cc6a, var(--pk-color-warning));
|
|
159
|
+
}
|
|
160
|
+
.prokodo-Stepper--error {
|
|
161
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-error) 0%, #ff6b6b 100%);
|
|
162
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-error) 0%, #ff6b6b 100%);
|
|
163
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-error), #ff6b6b, var(--pk-color-error));
|
|
164
|
+
}
|
|
165
|
+
.prokodo-Stepper--info {
|
|
166
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-fg) 0%, var(--pk-color-muted) 100%);
|
|
167
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-fg) 0%, var(--pk-color-muted) 100%);
|
|
168
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-fg), var(--pk-color-muted), var(--pk-color-fg));
|
|
169
|
+
}
|
|
170
|
+
.prokodo-Stepper--inherit {
|
|
171
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-border) 0%, var(--pk-color-muted) 100%);
|
|
172
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-border) 0%, var(--pk-color-muted) 100%);
|
|
173
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-border), var(--pk-color-muted), var(--pk-color-border));
|
|
174
|
+
}
|
|
140
175
|
.prokodo-Stepper__step {
|
|
141
176
|
position: relative;
|
|
142
177
|
height: 100%;
|
|
@@ -195,7 +230,7 @@
|
|
|
195
230
|
width: 2.5rem;
|
|
196
231
|
height: 2.5rem;
|
|
197
232
|
border-radius: 9999px;
|
|
198
|
-
margin-bottom:
|
|
233
|
+
margin-bottom: var(--pk-stepper-icon-mb);
|
|
199
234
|
}
|
|
200
235
|
.prokodo-Stepper__icon__container::before {
|
|
201
236
|
content: "";
|
|
@@ -207,13 +242,13 @@
|
|
|
207
242
|
border-radius: inherit;
|
|
208
243
|
padding: 3px;
|
|
209
244
|
background: var(--gradient-border-7);
|
|
210
|
-
-webkit-mask: linear-gradient(var(--
|
|
211
|
-
mask: linear-gradient(var(--
|
|
245
|
+
-webkit-mask: linear-gradient(var(--pk-stepper-icon-mask-bg) 0 0) content-box, linear-gradient(var(--pk-stepper-icon-mask-bg) 0 0);
|
|
246
|
+
mask: linear-gradient(var(--pk-stepper-icon-mask-bg) 0 0) content-box, linear-gradient(var(--pk-stepper-icon-mask-bg) 0 0);
|
|
212
247
|
-webkit-mask-composite: xor;
|
|
213
248
|
mask-composite: exclude;
|
|
214
249
|
}
|
|
215
250
|
.prokodo-Stepper__icon__container--is-active {
|
|
216
|
-
box-shadow: var(--
|
|
251
|
+
box-shadow: var(--pk-stepper-shadow);
|
|
217
252
|
}
|
|
218
253
|
.prokodo-Stepper__icon__container--is-active::before {
|
|
219
254
|
background: var(--gradient-border-1);
|
|
@@ -227,7 +262,7 @@
|
|
|
227
262
|
right: 4px;
|
|
228
263
|
bottom: 4px;
|
|
229
264
|
border-radius: inherit;
|
|
230
|
-
box-shadow: var(--
|
|
265
|
+
box-shadow: var(--pk-stepper-shadow-inset);
|
|
231
266
|
}
|
|
232
267
|
.prokodo-Stepper__icon__container:focus {
|
|
233
268
|
border-radius: 9999px;
|
|
@@ -239,7 +274,7 @@
|
|
|
239
274
|
display: flex;
|
|
240
275
|
justify-content: center;
|
|
241
276
|
align-items: center;
|
|
242
|
-
color: var(--
|
|
277
|
+
color: var(--pk-stepper-label-color);
|
|
243
278
|
font-weight: 400;
|
|
244
279
|
font-size: 1rem;
|
|
245
280
|
font-family: var(--font-primary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -251,7 +286,7 @@
|
|
|
251
286
|
text-decoration: none;
|
|
252
287
|
}
|
|
253
288
|
.prokodo-Stepper__icon__label--is-active {
|
|
254
|
-
color: var(--color-
|
|
289
|
+
color: var(--pk-stepper-label-color-active);
|
|
255
290
|
}
|
|
256
291
|
.prokodo-Stepper__icon__completed {
|
|
257
292
|
visibility: hidden;
|
|
@@ -284,7 +319,7 @@
|
|
|
284
319
|
font-family: !important;
|
|
285
320
|
font-size: 1rem !important;
|
|
286
321
|
line-height: 1.45 !important;
|
|
287
|
-
color: var(--
|
|
322
|
+
color: var(--pk-stepper-label-color) !important;
|
|
288
323
|
font-weight: 400;
|
|
289
324
|
font-size: 1rem;
|
|
290
325
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -308,10 +343,10 @@
|
|
|
308
343
|
}
|
|
309
344
|
}
|
|
310
345
|
.prokodo-Stepper__label--is-active {
|
|
311
|
-
color: var(--color-
|
|
346
|
+
color: var(--pk-stepper-label-color-active) !important;
|
|
312
347
|
}
|
|
313
348
|
.prokodo-Stepper__label__text {
|
|
314
|
-
color: var(--
|
|
349
|
+
color: var(--pk-stepper-label-color) !important;
|
|
315
350
|
position: absolute;
|
|
316
351
|
top: auto;
|
|
317
352
|
left: -99999px;
|
|
@@ -320,7 +355,7 @@
|
|
|
320
355
|
text-indent: -99999px;
|
|
321
356
|
}
|
|
322
357
|
.prokodo-Stepper__label__text--is-active {
|
|
323
|
-
color: var(--color-
|
|
358
|
+
color: var(--pk-stepper-label-color-active) !important;
|
|
324
359
|
}
|
|
325
360
|
@media screen and (min-width: 375px) {
|
|
326
361
|
.prokodo-Stepper__label__text {
|
|
@@ -5,7 +5,10 @@ import StepperServer from "./Stepper.server.js";
|
|
|
5
5
|
const Stepper = createIsland({
|
|
6
6
|
name: "Stepper",
|
|
7
7
|
Server: StepperServer,
|
|
8
|
-
loadLazy:
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./Stepper.lazy.js"), "loadLazy")
|
|
11
|
+
)
|
|
9
12
|
});
|
|
10
13
|
export {
|
|
11
14
|
Stepper
|
|
@@ -137,6 +137,41 @@
|
|
|
137
137
|
flex-direction: row;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
+
.prokodo-Stepper--primary {
|
|
141
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-brand) 0%, var(--pk-color-accent) 100%);
|
|
142
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-brand) 0%, var(--pk-color-accent) 100%);
|
|
143
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-brand), var(--pk-color-accent), var(--pk-color-brand));
|
|
144
|
+
}
|
|
145
|
+
.prokodo-Stepper--secondary {
|
|
146
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-accent) 0%, var(--pk-color-brand) 100%);
|
|
147
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-accent) 0%, var(--pk-color-brand) 100%);
|
|
148
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-accent), var(--pk-color-brand), var(--pk-color-accent));
|
|
149
|
+
}
|
|
150
|
+
.prokodo-Stepper--success {
|
|
151
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-success) 0%, #10CCB8 100%);
|
|
152
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-success) 0%, #10CCB8 100%);
|
|
153
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-success), #10CCB8, var(--pk-color-success));
|
|
154
|
+
}
|
|
155
|
+
.prokodo-Stepper--warning {
|
|
156
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-warning) 0%, #f7cc6a 100%);
|
|
157
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-warning) 0%, #f7cc6a 100%);
|
|
158
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-warning), #f7cc6a, var(--pk-color-warning));
|
|
159
|
+
}
|
|
160
|
+
.prokodo-Stepper--error {
|
|
161
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-error) 0%, #ff6b6b 100%);
|
|
162
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-error) 0%, #ff6b6b 100%);
|
|
163
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-error), #ff6b6b, var(--pk-color-error));
|
|
164
|
+
}
|
|
165
|
+
.prokodo-Stepper--info {
|
|
166
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-fg) 0%, var(--pk-color-muted) 100%);
|
|
167
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-fg) 0%, var(--pk-color-muted) 100%);
|
|
168
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-fg), var(--pk-color-muted), var(--pk-color-fg));
|
|
169
|
+
}
|
|
170
|
+
.prokodo-Stepper--inherit {
|
|
171
|
+
--gradient-border-1: linear-gradient(180deg, var(--pk-color-border) 0%, var(--pk-color-muted) 100%);
|
|
172
|
+
--gradient-border-5: linear-gradient(90deg, var(--pk-color-border) 0%, var(--pk-color-muted) 100%);
|
|
173
|
+
--gradient-border-7: linear-gradient(90deg, var(--pk-color-border), var(--pk-color-muted), var(--pk-color-border));
|
|
174
|
+
}
|
|
140
175
|
.prokodo-Stepper__step {
|
|
141
176
|
position: relative;
|
|
142
177
|
height: 100%;
|
|
@@ -195,7 +230,7 @@
|
|
|
195
230
|
width: 2.5rem;
|
|
196
231
|
height: 2.5rem;
|
|
197
232
|
border-radius: 9999px;
|
|
198
|
-
margin-bottom:
|
|
233
|
+
margin-bottom: var(--pk-stepper-icon-mb);
|
|
199
234
|
}
|
|
200
235
|
.prokodo-Stepper__icon__container::before {
|
|
201
236
|
content: "";
|
|
@@ -207,13 +242,13 @@
|
|
|
207
242
|
border-radius: inherit;
|
|
208
243
|
padding: 3px;
|
|
209
244
|
background: var(--gradient-border-7);
|
|
210
|
-
-webkit-mask: linear-gradient(var(--
|
|
211
|
-
mask: linear-gradient(var(--
|
|
245
|
+
-webkit-mask: linear-gradient(var(--pk-stepper-icon-mask-bg) 0 0) content-box, linear-gradient(var(--pk-stepper-icon-mask-bg) 0 0);
|
|
246
|
+
mask: linear-gradient(var(--pk-stepper-icon-mask-bg) 0 0) content-box, linear-gradient(var(--pk-stepper-icon-mask-bg) 0 0);
|
|
212
247
|
-webkit-mask-composite: xor;
|
|
213
248
|
mask-composite: exclude;
|
|
214
249
|
}
|
|
215
250
|
.prokodo-Stepper__icon__container--is-active {
|
|
216
|
-
box-shadow: var(--
|
|
251
|
+
box-shadow: var(--pk-stepper-shadow);
|
|
217
252
|
}
|
|
218
253
|
.prokodo-Stepper__icon__container--is-active::before {
|
|
219
254
|
background: var(--gradient-border-1);
|
|
@@ -227,7 +262,7 @@
|
|
|
227
262
|
right: 4px;
|
|
228
263
|
bottom: 4px;
|
|
229
264
|
border-radius: inherit;
|
|
230
|
-
box-shadow: var(--
|
|
265
|
+
box-shadow: var(--pk-stepper-shadow-inset);
|
|
231
266
|
}
|
|
232
267
|
.prokodo-Stepper__icon__container:focus {
|
|
233
268
|
border-radius: 9999px;
|
|
@@ -239,7 +274,7 @@
|
|
|
239
274
|
display: flex;
|
|
240
275
|
justify-content: center;
|
|
241
276
|
align-items: center;
|
|
242
|
-
color: var(--
|
|
277
|
+
color: var(--pk-stepper-label-color);
|
|
243
278
|
font-weight: 400;
|
|
244
279
|
font-size: 1rem;
|
|
245
280
|
font-family: var(--font-primary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -251,7 +286,7 @@
|
|
|
251
286
|
text-decoration: none;
|
|
252
287
|
}
|
|
253
288
|
.prokodo-Stepper__icon__label--is-active {
|
|
254
|
-
color: var(--color-
|
|
289
|
+
color: var(--pk-stepper-label-color-active);
|
|
255
290
|
}
|
|
256
291
|
.prokodo-Stepper__icon__completed {
|
|
257
292
|
visibility: hidden;
|
|
@@ -284,7 +319,7 @@
|
|
|
284
319
|
font-family: !important;
|
|
285
320
|
font-size: 1rem !important;
|
|
286
321
|
line-height: 1.45 !important;
|
|
287
|
-
color: var(--
|
|
322
|
+
color: var(--pk-stepper-label-color) !important;
|
|
288
323
|
font-weight: 400;
|
|
289
324
|
font-size: 1rem;
|
|
290
325
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -308,10 +343,10 @@
|
|
|
308
343
|
}
|
|
309
344
|
}
|
|
310
345
|
.prokodo-Stepper__label--is-active {
|
|
311
|
-
color: var(--color-
|
|
346
|
+
color: var(--pk-stepper-label-color-active) !important;
|
|
312
347
|
}
|
|
313
348
|
.prokodo-Stepper__label__text {
|
|
314
|
-
color: var(--
|
|
349
|
+
color: var(--pk-stepper-label-color) !important;
|
|
315
350
|
position: absolute;
|
|
316
351
|
top: auto;
|
|
317
352
|
left: -99999px;
|
|
@@ -320,7 +355,7 @@
|
|
|
320
355
|
text-indent: -99999px;
|
|
321
356
|
}
|
|
322
357
|
.prokodo-Stepper__label__text--is-active {
|
|
323
|
-
color: var(--color-
|
|
358
|
+
color: var(--pk-stepper-label-color-active) !important;
|
|
324
359
|
}
|
|
325
360
|
@media screen and (min-width: 375px) {
|
|
326
361
|
.prokodo-Stepper__label__text {
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
const styles = {
|
|
2
2
|
"prokodo-Stepper": "prokodo-Stepper",
|
|
3
|
+
"prokodo-Stepper--primary": "prokodo-Stepper--primary",
|
|
4
|
+
"prokodo-Stepper--secondary": "prokodo-Stepper--secondary",
|
|
5
|
+
"prokodo-Stepper--success": "prokodo-Stepper--success",
|
|
6
|
+
"prokodo-Stepper--warning": "prokodo-Stepper--warning",
|
|
7
|
+
"prokodo-Stepper--error": "prokodo-Stepper--error",
|
|
8
|
+
"prokodo-Stepper--info": "prokodo-Stepper--info",
|
|
9
|
+
"prokodo-Stepper--inherit": "prokodo-Stepper--inherit",
|
|
3
10
|
"prokodo-Stepper__step": "prokodo-Stepper__step",
|
|
4
11
|
"prokodo-Stepper__step--is-active": "prokodo-Stepper__step--is-active",
|
|
5
12
|
"prokodo-Stepper__icon": "prokodo-Stepper__icon",
|
|
@@ -7,6 +7,7 @@ function StepperServer({
|
|
|
7
7
|
initialStep = 0,
|
|
8
8
|
translations,
|
|
9
9
|
className,
|
|
10
|
+
color,
|
|
10
11
|
...rootProps
|
|
11
12
|
}) {
|
|
12
13
|
const serverSteps = steps.map((step) => ({
|
|
@@ -21,6 +22,7 @@ function StepperServer({
|
|
|
21
22
|
...rootProps,
|
|
22
23
|
activeStep: initialStep,
|
|
23
24
|
className,
|
|
25
|
+
color,
|
|
24
26
|
stepRefs: emptyStepRefs,
|
|
25
27
|
steps: serverSteps,
|
|
26
28
|
translations
|
|
@@ -10,6 +10,7 @@ const StepperView = /* @__PURE__ */ __name(({
|
|
|
10
10
|
activeStep,
|
|
11
11
|
translations,
|
|
12
12
|
className,
|
|
13
|
+
color,
|
|
13
14
|
...props
|
|
14
15
|
}) => {
|
|
15
16
|
const rootProps = props;
|
|
@@ -27,7 +28,11 @@ const StepperView = /* @__PURE__ */ __name(({
|
|
|
27
28
|
{
|
|
28
29
|
...rootProps,
|
|
29
30
|
"aria-label": t.stepper,
|
|
30
|
-
className: bem(
|
|
31
|
+
className: bem(
|
|
32
|
+
void 0,
|
|
33
|
+
{ ...color ? { [color]: true } : {} },
|
|
34
|
+
className
|
|
35
|
+
),
|
|
31
36
|
children: steps.map((step, i) => {
|
|
32
37
|
const {
|
|
33
38
|
key,
|
|
@@ -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
|
}
|
|
@@ -5,7 +5,10 @@ import SwitchServer from "./Switch.server.js";
|
|
|
5
5
|
const Switch = createIsland({
|
|
6
6
|
name: "Switch",
|
|
7
7
|
Server: SwitchServer,
|
|
8
|
-
loadLazy:
|
|
8
|
+
loadLazy: (
|
|
9
|
+
/* istanbul ignore next */
|
|
10
|
+
/* @__PURE__ */ __name(() => import("./Switch.lazy.js"), "loadLazy")
|
|
11
|
+
)
|
|
9
12
|
});
|
|
10
13
|
export {
|
|
11
14
|
Switch
|