@prokodo/ui 0.1.15 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +187 -26
- package/NOTICE +24 -0
- package/README.md +32 -302
- package/dist/components/RTE/RTE.css +180 -68
- package/dist/components/RTE/RTE.module.css +180 -68
- package/dist/components/RTE/RTE.module.scss.js +10 -0
- package/dist/components/RTE/RTE.view.js +5 -1
- package/dist/components/accordion/Accordion.css +120 -67
- package/dist/components/accordion/Accordion.module.css +120 -67
- package/dist/components/accordion/Accordion.module.scss.js +12 -5
- package/dist/components/accordion/Accordion.view.js +3 -3
- package/dist/components/autocomplete/Autocomplete.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.css +111 -95
- package/dist/components/autocomplete/Autocomplete.module.scss.js +11 -4
- package/dist/components/autocomplete/Autocomplete.view.js +3 -1
- package/dist/components/avatar/Avatar.css +11 -8
- package/dist/components/avatar/Avatar.module.css +11 -8
- package/dist/components/avatar/Avatar.module.scss.js +1 -0
- package/dist/components/avatar/Avatar.view.js +5 -5
- package/dist/components/button/Button.client.js +12 -16
- package/dist/components/button/Button.css +85 -137
- package/dist/components/button/Button.module.css +85 -137
- package/dist/components/button/Button.module.scss.js +15 -19
- package/dist/components/button/Button.view.js +6 -2
- package/dist/components/calendly/Calendly.css +132 -0
- package/dist/components/calendly/Calendly.module.css +132 -0
- package/dist/components/calendly/Calendly.module.scss.js +6 -0
- package/dist/components/calendly/Calendly.view.js +12 -6
- package/dist/components/card/Card.client.js +6 -1
- package/dist/components/card/Card.css +67 -32
- package/dist/components/card/Card.module.css +67 -32
- package/dist/components/card/Card.module.scss.js +8 -2
- package/dist/components/card/Card.view.js +3 -3
- package/dist/components/carousel/Carousel.client.js +2 -4
- package/dist/components/carousel/Carousel.css +8 -4
- package/dist/components/carousel/Carousel.module.css +8 -4
- package/dist/components/checkbox/Checkbox.css +100 -79
- package/dist/components/checkbox/Checkbox.module.css +100 -79
- package/dist/components/checkbox/Checkbox.module.scss.js +11 -4
- package/dist/components/checkbox/Checkbox.view.js +3 -1
- package/dist/components/checkbox-group/CheckboxGroup.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.css +39 -6
- package/dist/components/checkbox-group/CheckboxGroup.module.scss.js +8 -0
- package/dist/components/checkbox-group/CheckboxGroup.view.js +3 -1
- package/dist/components/chip/Chip.css +185 -61
- package/dist/components/chip/Chip.module.css +185 -61
- package/dist/components/chip/Chip.module.scss.js +13 -17
- package/dist/components/chip/Chip.view.js +3 -4
- package/dist/components/datePicker/DatePicker.client.js +211 -66
- package/dist/components/datePicker/DatePicker.css +940 -0
- package/dist/components/datePicker/DatePicker.module.css +940 -0
- package/dist/components/datePicker/DatePicker.module.scss.js +62 -0
- package/dist/components/datePicker/DatePicker.server.js +31 -1
- package/dist/components/datePicker/DatePicker.utils.js +103 -0
- package/dist/components/datePicker/DatePicker.view.js +113 -41
- package/dist/components/datePicker/DatePickerDialog.view.js +291 -0
- package/dist/components/dialog/Dialog.css +107 -132
- package/dist/components/dialog/Dialog.module.css +107 -132
- package/dist/components/dialog/Dialog.module.scss.js +13 -8
- package/dist/components/drawer/Drawer.css +8 -8
- package/dist/components/drawer/Drawer.module.css +8 -8
- package/dist/components/dynamic-list/DynamicList.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.css +20 -12
- package/dist/components/dynamic-list/DynamicList.module.scss.js +1 -0
- package/dist/components/dynamic-list/DynamicList.view.js +78 -46
- package/dist/components/form/Form.view.js +3 -3
- package/dist/components/form/FormField.client.js +51 -2
- package/dist/components/form/FormField.server.js +10 -4
- package/dist/components/form/FormResponse.js +2 -2
- package/dist/components/grid/Grid.css +1 -1
- package/dist/components/grid/Grid.module.css +1 -1
- package/dist/components/headline/Headline.css +16 -16
- package/dist/components/headline/Headline.js +5 -6
- package/dist/components/headline/Headline.module.css +16 -16
- package/dist/components/headline/Headline.module.scss.js +1 -1
- package/dist/components/headline/Headline.variants.js +4 -1
- package/dist/components/icon/Icon.css +14 -14
- package/dist/components/icon/Icon.module.css +14 -14
- package/dist/components/image/Image.css +4 -3
- package/dist/components/image/Image.module.css +4 -3
- package/dist/components/image-text/ImageText.css +43 -14
- package/dist/components/image-text/ImageText.js +61 -53
- package/dist/components/image-text/ImageText.module.css +43 -14
- package/dist/components/image-text/ImageText.module.scss.js +11 -2
- package/dist/components/input/Input.css +197 -115
- package/dist/components/input/Input.module.css +197 -115
- package/dist/components/input/Input.module.scss.js +19 -3
- package/dist/components/input/Input.view.js +87 -57
- package/dist/components/inputOTP/InputOTP.client.js +165 -0
- package/dist/components/inputOTP/InputOTP.css +155 -7
- package/dist/components/inputOTP/InputOTP.js +10 -195
- package/dist/components/inputOTP/InputOTP.lazy.js +12 -0
- package/dist/components/inputOTP/InputOTP.module.css +155 -7
- package/dist/components/inputOTP/InputOTP.module.scss.js +14 -0
- package/dist/components/inputOTP/InputOTP.server.js +32 -0
- package/dist/components/inputOTP/InputOTP.view.js +117 -0
- package/dist/components/label/Label.css +33 -14
- package/dist/components/label/Label.js +37 -35
- package/dist/components/label/Label.module.css +33 -14
- package/dist/components/label/Label.module.scss.js +9 -2
- package/dist/components/link/Link.css +13 -13
- package/dist/components/link/Link.module.css +13 -13
- package/dist/components/link/Link.view.js +14 -12
- package/dist/components/list/List.css +71 -32
- package/dist/components/list/List.js +25 -8
- package/dist/components/list/List.module.css +71 -32
- package/dist/components/list/List.module.scss.js +1 -1
- package/dist/components/loading/Loading.view.js +22 -2
- package/dist/components/lottie/Lottie.css +16 -0
- package/dist/components/lottie/Lottie.module.css +16 -0
- package/dist/components/lottie/Lottie.module.scss.js +6 -2
- package/dist/components/map/Map.css +130 -0
- package/dist/components/map/Map.js +5 -2
- package/dist/components/map/Map.module.css +130 -0
- package/dist/components/map/Map.module.scss.js +6 -0
- package/dist/components/pagination/Pagination.css +127 -11
- package/dist/components/pagination/Pagination.module.css +127 -11
- package/dist/components/pagination/Pagination.module.scss.js +12 -4
- package/dist/components/pagination/Pagination.view.js +13 -1
- package/dist/components/post-item/PostItem.css +16 -16
- package/dist/components/post-item/PostItem.module.css +16 -16
- package/dist/components/post-item/PostItem.view.js +14 -5
- package/dist/components/post-teaser/PostTeaser.css +13 -13
- package/dist/components/post-teaser/PostTeaser.module.css +13 -13
- package/dist/components/post-teaser/PostTeaser.view.js +10 -3
- package/dist/components/post-widget/PostWidget.css +6 -8
- package/dist/components/post-widget/PostWidget.module.css +6 -8
- package/dist/components/post-widget/PostWidget.view.js +12 -5
- package/dist/components/post-widget-carousel/PostWidgetCarousel.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.module.css +7 -7
- package/dist/components/post-widget-carousel/PostWidgetCarousel.view.js +30 -13
- package/dist/components/progressBar/ProgressBar.css +4 -4
- package/dist/components/progressBar/ProgressBar.module.css +4 -4
- package/dist/components/progressBar/ProgressBar.view.js +2 -2
- package/dist/components/quote/Quote.css +21 -6
- package/dist/components/quote/Quote.js +5 -5
- package/dist/components/quote/Quote.module.css +21 -6
- package/dist/components/quote/Quote.module.scss.js +5 -0
- package/dist/components/rating/Rating.css +34 -21
- package/dist/components/rating/Rating.module.css +34 -21
- package/dist/components/rating/Rating.module.scss.js +8 -0
- package/dist/components/rating/Rating.view.js +4 -2
- package/dist/components/rich-text/RichText.client.js +3 -3
- package/dist/components/rich-text/RichText.css +47 -31
- package/dist/components/rich-text/RichText.module.css +47 -31
- package/dist/components/rich-text/RichText.server.js +1 -1
- package/dist/components/select/Select.client.js +154 -1
- package/dist/components/select/Select.css +542 -221
- package/dist/components/select/Select.module.css +542 -221
- package/dist/components/select/Select.module.scss.js +57 -14
- package/dist/components/select/Select.view.js +40 -14
- package/dist/components/sidenav/SideNav.client.js +24 -1
- package/dist/components/sidenav/SideNav.css +89 -21
- package/dist/components/sidenav/SideNav.module.css +89 -21
- package/dist/components/sidenav/SideNav.module.scss.js +6 -1
- package/dist/components/sidenav/SideNav.view.js +69 -14
- package/dist/components/skeleton/Skeleton.css +7 -7
- package/dist/components/skeleton/Skeleton.module.css +7 -7
- package/dist/components/slider/Slider.css +177 -112
- package/dist/components/slider/Slider.module.css +177 -112
- package/dist/components/slider/Slider.module.scss.js +11 -2
- package/dist/components/slider/Slider.view.js +113 -101
- package/dist/components/snackbar/Snackbar.css +125 -64
- package/dist/components/snackbar/Snackbar.module.css +125 -64
- package/dist/components/snackbar/Snackbar.module.scss.js +11 -13
- package/dist/components/snackbar/Snackbar.view.js +2 -2
- package/dist/components/stepper/Stepper.client.js +21 -6
- package/dist/components/stepper/Stepper.css +46 -11
- package/dist/components/stepper/Stepper.module.css +46 -11
- package/dist/components/stepper/Stepper.module.scss.js +7 -0
- package/dist/components/stepper/Stepper.server.js +2 -0
- package/dist/components/stepper/Stepper.view.js +6 -1
- package/dist/components/switch/Switch.css +108 -84
- package/dist/components/switch/Switch.module.css +108 -84
- package/dist/components/switch/Switch.module.scss.js +14 -12
- package/dist/components/switch/Switch.view.js +9 -8
- package/dist/components/table/Table.css +19 -14
- package/dist/components/table/Table.module.css +19 -14
- package/dist/components/tabs/Tabs.css +53 -27
- package/dist/components/tabs/Tabs.module.css +53 -27
- package/dist/components/tabs/Tabs.module.scss.js +7 -2
- package/dist/components/tabs/Tabs.view.js +4 -2
- package/dist/components/teaser/Teaser.css +5 -5
- package/dist/components/teaser/Teaser.js +4 -4
- package/dist/components/teaser/Teaser.module.css +5 -5
- package/dist/components/tooltip/Tooltip.client.js +14 -4
- package/dist/components/tooltip/Tooltip.css +46 -9
- package/dist/components/tooltip/Tooltip.module.css +46 -9
- package/dist/components/tooltip/Tooltip.module.scss.js +5 -1
- package/dist/components/tooltip/Tooltip.view.js +6 -1
- package/dist/constants/project.js +1 -1
- package/dist/theme.css +3269 -1588
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/components/RTE/RTE.d.ts +5 -0
- package/dist/types/components/RTE/RTE.lazy.d.ts +5 -0
- package/dist/types/components/RTE/RTE.view.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.lazy.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.model.d.ts +1 -1
- package/dist/types/components/accordion/Accordion.view.d.ts +1 -1
- package/dist/types/components/autocomplete/Autocomplete.model.d.ts +2 -0
- package/dist/types/components/autocomplete/Autocomplete.view.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.lazy.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.model.d.ts +1 -1
- package/dist/types/components/avatar/Avatar.view.d.ts +1 -1
- package/dist/types/components/calendly/Calendly.view.d.ts +1 -1
- package/dist/types/components/card/Card.model.d.ts +1 -1
- package/dist/types/components/card/Card.view.d.ts +1 -1
- package/dist/types/components/checkbox/Checkbox.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.lazy.d.ts +1 -0
- package/dist/types/components/checkbox/Checkbox.model.d.ts +2 -0
- package/dist/types/components/checkbox/Checkbox.view.d.ts +1 -1
- package/dist/types/components/checkbox-group/CheckboxGroup.model.d.ts +2 -0
- package/dist/types/components/checkbox-group/CheckboxGroup.view.d.ts +1 -1
- package/dist/types/components/datePicker/DatePicker.model.d.ts +70 -1
- package/dist/types/components/datePicker/DatePicker.utils.d.ts +10 -0
- package/dist/types/components/datePicker/DatePicker.view.d.ts +7 -4
- package/dist/types/components/datePicker/DatePickerDialog.view.d.ts +4 -0
- package/dist/types/components/dynamic-list/DynamicList.model.d.ts +2 -0
- package/dist/types/components/dynamic-list/DynamicList.view.d.ts +1 -1
- package/dist/types/components/form/Form.d.ts +1 -1
- package/dist/types/components/form/Form.lazy.d.ts +1 -1
- package/dist/types/components/form/Form.model.d.ts +19 -4
- package/dist/types/components/form/FormField.client.d.ts +2 -2
- package/dist/types/components/form/FormField.d.ts +1 -1
- package/dist/types/components/form/FormField.lazy.d.ts +1 -1
- package/dist/types/components/form/FormField.server.d.ts +2 -2
- package/dist/types/components/headline/Headline.model.d.ts +1 -1
- package/dist/types/components/input/Input.model.d.ts +8 -1
- package/dist/types/components/input/Input.view.d.ts +1 -1
- package/dist/types/components/inputOTP/InputOTP.client.d.ts +4 -0
- package/dist/types/components/inputOTP/InputOTP.d.ts +10 -3
- package/dist/types/components/inputOTP/InputOTP.lazy.d.ts +11 -0
- package/dist/types/components/inputOTP/InputOTP.model.d.ts +10 -0
- package/dist/types/components/inputOTP/InputOTP.server.d.ts +3 -0
- package/dist/types/components/inputOTP/InputOTP.view.d.ts +3 -0
- package/dist/types/components/inputOTP/index.d.ts +1 -1
- package/dist/types/components/label/Label.model.d.ts +2 -0
- package/dist/types/components/link/Link.model.d.ts +1 -1
- package/dist/types/components/link/Link.view.d.ts +1 -1
- package/dist/types/components/list/List.d.ts +1 -1
- package/dist/types/components/list/List.model.d.ts +14 -5
- package/dist/types/components/list/index.d.ts +1 -1
- package/dist/types/components/loading/Loading.model.d.ts +2 -0
- package/dist/types/components/loading/index.d.ts +1 -1
- package/dist/types/components/pagination/Pagination.model.d.ts +2 -0
- package/dist/types/components/pagination/Pagination.view.d.ts +1 -1
- package/dist/types/components/post-item/PostItem.model.d.ts +2 -1
- package/dist/types/components/post-teaser/PostTeaser.model.d.ts +2 -1
- package/dist/types/components/post-widget/PostWidget.view.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.lazy.d.ts +1 -1
- package/dist/types/components/progressBar/ProgressBar.model.d.ts +3 -2
- package/dist/types/components/progressBar/ProgressBar.view.d.ts +1 -1
- package/dist/types/components/progressBar/index.d.ts +1 -1
- package/dist/types/components/quote/Quote.model.d.ts +1 -1
- package/dist/types/components/rating/Rating.model.d.ts +2 -0
- package/dist/types/components/rich-text/RichText.client.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.lazy.d.ts +1 -1
- package/dist/types/components/rich-text/RichText.model.d.ts +1 -1
- package/dist/types/components/select/Select.model.d.ts +2 -0
- package/dist/types/components/select/Select.view.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.client.d.ts +1 -1
- package/dist/types/components/sidenav/SideNav.model.d.ts +16 -2
- package/dist/types/components/sidenav/SideNav.view.d.ts +1 -1
- package/dist/types/components/slider/Slider.model.d.ts +2 -0
- package/dist/types/components/snackbar/Snackbar.model.d.ts +3 -2
- package/dist/types/components/snackbar/Snackbar.view.d.ts +3 -2
- package/dist/types/components/snackbar/index.d.ts +1 -1
- package/dist/types/components/stepper/Stepper.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.lazy.d.ts +1 -0
- package/dist/types/components/stepper/Stepper.model.d.ts +3 -0
- package/dist/types/components/stepper/Stepper.server.d.ts +1 -1
- package/dist/types/components/switch/Switch.d.ts +2 -2
- package/dist/types/components/switch/Switch.lazy.d.ts +2 -2
- package/dist/types/components/switch/Switch.model.d.ts +3 -4
- package/dist/types/components/tabs/Tabs.model.d.ts +2 -0
- package/dist/types/components/tabs/Tabs.view.d.ts +1 -1
- package/dist/types/components/teaser/Teaser.model.d.ts +1 -1
- package/dist/types/components/tooltip/Tooltip.model.d.ts +2 -0
- package/package.json +37 -22
|
@@ -124,95 +124,156 @@
|
|
|
124
124
|
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
|
+
@keyframes Snackbar_slideIn {
|
|
128
|
+
from {
|
|
129
|
+
opacity: 0;
|
|
130
|
+
transform: translateY(100%);
|
|
131
|
+
}
|
|
132
|
+
to {
|
|
133
|
+
opacity: 1;
|
|
134
|
+
transform: translateY(0);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
@keyframes Snackbar_slideOut {
|
|
138
|
+
from {
|
|
139
|
+
opacity: 1;
|
|
140
|
+
transform: translateY(0);
|
|
141
|
+
}
|
|
142
|
+
to {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
transform: translateY(100%);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
127
147
|
.prokodo-Snackbar {
|
|
128
|
-
position: relative;
|
|
129
148
|
display: flex;
|
|
130
149
|
align-items: center;
|
|
131
|
-
gap:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
150
|
+
gap: var(--pk-space-md);
|
|
151
|
+
padding: var(--pk-snackbar-padding-y) var(--pk-snackbar-padding-x);
|
|
152
|
+
border-radius: var(--pk-snackbar-radius);
|
|
153
|
+
border: var(--pk-border-width) solid var(--pk-snackbar-border-color);
|
|
154
|
+
box-shadow: var(--pk-snackbar-shadow);
|
|
155
|
+
background-color: var(--pk-snackbar-bg);
|
|
156
|
+
color: var(--pk-snackbar-fg);
|
|
157
|
+
animation: Snackbar_slideIn var(--pk-snackbar-timing) ease;
|
|
139
158
|
}
|
|
140
|
-
.prokodo-Snackbar--
|
|
141
|
-
background-color: var(--
|
|
159
|
+
.prokodo-Snackbar--info {
|
|
160
|
+
background-color: var(--pk-snackbar-info-bg);
|
|
161
|
+
color: var(--pk-snackbar-info-fg);
|
|
162
|
+
border-color: var(--pk-snackbar-info-border);
|
|
163
|
+
box-shadow: var(--pk-snackbar-info-shadow);
|
|
142
164
|
}
|
|
143
|
-
.prokodo-Snackbar--
|
|
144
|
-
background-color: var(--
|
|
165
|
+
.prokodo-Snackbar--success {
|
|
166
|
+
background-color: var(--pk-snackbar-success-bg);
|
|
167
|
+
color: var(--pk-snackbar-success-fg);
|
|
168
|
+
border-color: var(--pk-snackbar-success-border);
|
|
169
|
+
box-shadow: var(--pk-snackbar-success-shadow);
|
|
145
170
|
}
|
|
146
171
|
.prokodo-Snackbar--warning {
|
|
147
|
-
background-color: var(--
|
|
148
|
-
color: var(--
|
|
172
|
+
background-color: var(--pk-snackbar-warning-bg);
|
|
173
|
+
color: var(--pk-snackbar-warning-fg);
|
|
174
|
+
border-color: var(--pk-snackbar-warning-border);
|
|
175
|
+
box-shadow: var(--pk-snackbar-warning-shadow);
|
|
149
176
|
}
|
|
150
|
-
.prokodo-Snackbar--
|
|
151
|
-
background-color: var(--
|
|
177
|
+
.prokodo-Snackbar--error {
|
|
178
|
+
background-color: var(--pk-snackbar-error-bg);
|
|
179
|
+
color: var(--pk-snackbar-error-fg);
|
|
180
|
+
border-color: var(--pk-snackbar-error-border);
|
|
181
|
+
box-shadow: var(--pk-snackbar-error-shadow);
|
|
152
182
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
183
|
+
.prokodo-Snackbar--is-leaving {
|
|
184
|
+
animation: Snackbar_slideOut var(--pk-snackbar-timing) ease forwards;
|
|
185
|
+
}
|
|
186
|
+
.prokodo-Snackbar__icon {
|
|
187
|
+
flex-shrink: 0;
|
|
156
188
|
}
|
|
157
189
|
.prokodo-Snackbar__message {
|
|
158
190
|
flex: 1 1;
|
|
191
|
+
font-weight: 400;
|
|
192
|
+
font-size: 1.125rem;
|
|
193
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
194
|
+
font-style: normal;
|
|
195
|
+
line-height: 1.55;
|
|
196
|
+
letter-spacing: 0.03em;
|
|
197
|
+
text-transform: none;
|
|
198
|
+
text-align: left;
|
|
199
|
+
text-decoration: none;
|
|
200
|
+
}
|
|
201
|
+
@media screen and (min-width: 480px) {
|
|
202
|
+
.prokodo-Snackbar__message {
|
|
203
|
+
font-size: 1rem;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
@media screen and (min-width: 960px) {
|
|
207
|
+
.prokodo-Snackbar__message {
|
|
208
|
+
font-size: 1rem;
|
|
209
|
+
}
|
|
159
210
|
}
|
|
160
211
|
.prokodo-Snackbar__action {
|
|
161
|
-
|
|
212
|
+
flex-shrink: 0;
|
|
213
|
+
display: inline-flex;
|
|
214
|
+
align-items: center;
|
|
162
215
|
}
|
|
163
|
-
.prokodo-
|
|
216
|
+
.prokodo-Snackbar__action button {
|
|
164
217
|
display: inline-flex;
|
|
165
218
|
align-items: center;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
height: 20px;
|
|
169
|
-
padding: 0;
|
|
219
|
+
gap: var(--pk-space-xs);
|
|
220
|
+
padding: var(--pk-space-xs) var(--pk-space-sm);
|
|
170
221
|
border: none;
|
|
171
|
-
|
|
222
|
+
border-radius: var(--pk-radius-sm);
|
|
223
|
+
background-color: color-mix(in srgb, currentColor 12%, transparent);
|
|
172
224
|
color: inherit;
|
|
173
225
|
cursor: pointer;
|
|
226
|
+
transition: background-color var(--pk-timing-fast) ease, transform var(--pk-timing-fast) ease;
|
|
227
|
+
font-weight: 400;
|
|
228
|
+
font-size: 1rem;
|
|
229
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
230
|
+
font-style: normal;
|
|
231
|
+
line-height: 1.45;
|
|
232
|
+
letter-spacing: 0.03em;
|
|
233
|
+
text-transform: none;
|
|
234
|
+
text-align: left;
|
|
235
|
+
text-decoration: none;
|
|
174
236
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
237
|
+
@media screen and (min-width: 480px) {
|
|
238
|
+
.prokodo-Snackbar__action button {
|
|
239
|
+
font-size: 0.875rem;
|
|
240
|
+
line-height: 1.4;
|
|
241
|
+
}
|
|
178
242
|
}
|
|
179
|
-
|
|
180
|
-
|
|
243
|
+
@media screen and (min-width: 960px) {
|
|
244
|
+
.prokodo-Snackbar__action button {
|
|
245
|
+
font-size: 0.875rem;
|
|
246
|
+
line-height: 1.4;
|
|
247
|
+
}
|
|
181
248
|
}
|
|
182
|
-
.prokodo-
|
|
183
|
-
|
|
249
|
+
.prokodo-Snackbar__action button:hover {
|
|
250
|
+
background-color: color-mix(in srgb, currentColor 22%, transparent);
|
|
251
|
+
transform: scale(1.03);
|
|
184
252
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
display: flex;
|
|
189
|
-
flex-direction: column;
|
|
190
|
-
gap: 8;
|
|
191
|
-
z-index: 9000;
|
|
192
|
-
pointer-events: none;
|
|
193
|
-
}
|
|
194
|
-
.prokodo-SnackbarProvider--is-top {
|
|
195
|
-
top: 0;
|
|
196
|
-
}
|
|
197
|
-
.prokodo-SnackbarProvider--is-bottom {
|
|
198
|
-
bottom: 0;
|
|
199
|
-
}
|
|
200
|
-
.prokodo-SnackbarProvider--is-center {
|
|
201
|
-
left: 50%;
|
|
202
|
-
transform: translateX(-50%);
|
|
203
|
-
}
|
|
204
|
-
.prokodo-SnackbarProvider--is-left {
|
|
205
|
-
left: 1rem;
|
|
206
|
-
}
|
|
207
|
-
.prokodo-SnackbarProvider--is-right {
|
|
208
|
-
right: 1rem;
|
|
253
|
+
.prokodo-Snackbar__action button:focus-visible {
|
|
254
|
+
outline: 2px solid currentColor;
|
|
255
|
+
outline-offset: 2px;
|
|
209
256
|
}
|
|
210
|
-
.prokodo-
|
|
211
|
-
|
|
257
|
+
.prokodo-Snackbar__close {
|
|
258
|
+
flex-shrink: 0;
|
|
259
|
+
display: inline-flex;
|
|
260
|
+
align-items: center;
|
|
261
|
+
justify-content: center;
|
|
262
|
+
width: 28px;
|
|
263
|
+
height: 28px;
|
|
264
|
+
padding: 0;
|
|
265
|
+
border: none;
|
|
266
|
+
border-radius: 50%;
|
|
267
|
+
background-color: color-mix(in srgb, currentColor 8%, transparent);
|
|
268
|
+
color: inherit;
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
transition: background-color var(--pk-timing-fast) ease, transform var(--pk-timing-fast) ease;
|
|
212
271
|
}
|
|
213
|
-
.prokodo-
|
|
214
|
-
|
|
272
|
+
.prokodo-Snackbar__close:hover {
|
|
273
|
+
background-color: color-mix(in srgb, currentColor 18%, transparent);
|
|
274
|
+
transform: scale(1.1);
|
|
215
275
|
}
|
|
216
|
-
.prokodo-
|
|
217
|
-
|
|
276
|
+
.prokodo-Snackbar__close:focus-visible {
|
|
277
|
+
outline: 2px solid currentColor;
|
|
278
|
+
outline-offset: 2px;
|
|
218
279
|
}
|
|
@@ -124,95 +124,156 @@
|
|
|
124
124
|
* This mixin specifies basic text-styles for components that render a richtext
|
|
125
125
|
* content.
|
|
126
126
|
*/
|
|
127
|
+
@keyframes Snackbar_slideIn {
|
|
128
|
+
from {
|
|
129
|
+
opacity: 0;
|
|
130
|
+
transform: translateY(100%);
|
|
131
|
+
}
|
|
132
|
+
to {
|
|
133
|
+
opacity: 1;
|
|
134
|
+
transform: translateY(0);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
@keyframes Snackbar_slideOut {
|
|
138
|
+
from {
|
|
139
|
+
opacity: 1;
|
|
140
|
+
transform: translateY(0);
|
|
141
|
+
}
|
|
142
|
+
to {
|
|
143
|
+
opacity: 0;
|
|
144
|
+
transform: translateY(100%);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
127
147
|
.prokodo-Snackbar {
|
|
128
|
-
position: relative;
|
|
129
148
|
display: flex;
|
|
130
149
|
align-items: center;
|
|
131
|
-
gap:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
150
|
+
gap: var(--pk-space-md);
|
|
151
|
+
padding: var(--pk-snackbar-padding-y) var(--pk-snackbar-padding-x);
|
|
152
|
+
border-radius: var(--pk-snackbar-radius);
|
|
153
|
+
border: var(--pk-border-width) solid var(--pk-snackbar-border-color);
|
|
154
|
+
box-shadow: var(--pk-snackbar-shadow);
|
|
155
|
+
background-color: var(--pk-snackbar-bg);
|
|
156
|
+
color: var(--pk-snackbar-fg);
|
|
157
|
+
animation: Snackbar_slideIn var(--pk-snackbar-timing) ease;
|
|
139
158
|
}
|
|
140
|
-
.prokodo-Snackbar--
|
|
141
|
-
background-color: var(--
|
|
159
|
+
.prokodo-Snackbar--info {
|
|
160
|
+
background-color: var(--pk-snackbar-info-bg);
|
|
161
|
+
color: var(--pk-snackbar-info-fg);
|
|
162
|
+
border-color: var(--pk-snackbar-info-border);
|
|
163
|
+
box-shadow: var(--pk-snackbar-info-shadow);
|
|
142
164
|
}
|
|
143
|
-
.prokodo-Snackbar--
|
|
144
|
-
background-color: var(--
|
|
165
|
+
.prokodo-Snackbar--success {
|
|
166
|
+
background-color: var(--pk-snackbar-success-bg);
|
|
167
|
+
color: var(--pk-snackbar-success-fg);
|
|
168
|
+
border-color: var(--pk-snackbar-success-border);
|
|
169
|
+
box-shadow: var(--pk-snackbar-success-shadow);
|
|
145
170
|
}
|
|
146
171
|
.prokodo-Snackbar--warning {
|
|
147
|
-
background-color: var(--
|
|
148
|
-
color: var(--
|
|
172
|
+
background-color: var(--pk-snackbar-warning-bg);
|
|
173
|
+
color: var(--pk-snackbar-warning-fg);
|
|
174
|
+
border-color: var(--pk-snackbar-warning-border);
|
|
175
|
+
box-shadow: var(--pk-snackbar-warning-shadow);
|
|
149
176
|
}
|
|
150
|
-
.prokodo-Snackbar--
|
|
151
|
-
background-color: var(--
|
|
177
|
+
.prokodo-Snackbar--error {
|
|
178
|
+
background-color: var(--pk-snackbar-error-bg);
|
|
179
|
+
color: var(--pk-snackbar-error-fg);
|
|
180
|
+
border-color: var(--pk-snackbar-error-border);
|
|
181
|
+
box-shadow: var(--pk-snackbar-error-shadow);
|
|
152
182
|
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
183
|
+
.prokodo-Snackbar--is-leaving {
|
|
184
|
+
animation: Snackbar_slideOut var(--pk-snackbar-timing) ease forwards;
|
|
185
|
+
}
|
|
186
|
+
.prokodo-Snackbar__icon {
|
|
187
|
+
flex-shrink: 0;
|
|
156
188
|
}
|
|
157
189
|
.prokodo-Snackbar__message {
|
|
158
190
|
flex: 1 1;
|
|
191
|
+
font-weight: 400;
|
|
192
|
+
font-size: 1.125rem;
|
|
193
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
194
|
+
font-style: normal;
|
|
195
|
+
line-height: 1.55;
|
|
196
|
+
letter-spacing: 0.03em;
|
|
197
|
+
text-transform: none;
|
|
198
|
+
text-align: left;
|
|
199
|
+
text-decoration: none;
|
|
200
|
+
}
|
|
201
|
+
@media screen and (min-width: 480px) {
|
|
202
|
+
.prokodo-Snackbar__message {
|
|
203
|
+
font-size: 1rem;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
@media screen and (min-width: 960px) {
|
|
207
|
+
.prokodo-Snackbar__message {
|
|
208
|
+
font-size: 1rem;
|
|
209
|
+
}
|
|
159
210
|
}
|
|
160
211
|
.prokodo-Snackbar__action {
|
|
161
|
-
|
|
212
|
+
flex-shrink: 0;
|
|
213
|
+
display: inline-flex;
|
|
214
|
+
align-items: center;
|
|
162
215
|
}
|
|
163
|
-
.prokodo-
|
|
216
|
+
.prokodo-Snackbar__action button {
|
|
164
217
|
display: inline-flex;
|
|
165
218
|
align-items: center;
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
height: 20px;
|
|
169
|
-
padding: 0;
|
|
219
|
+
gap: var(--pk-space-xs);
|
|
220
|
+
padding: var(--pk-space-xs) var(--pk-space-sm);
|
|
170
221
|
border: none;
|
|
171
|
-
|
|
222
|
+
border-radius: var(--pk-radius-sm);
|
|
223
|
+
background-color: color-mix(in srgb, currentColor 12%, transparent);
|
|
172
224
|
color: inherit;
|
|
173
225
|
cursor: pointer;
|
|
226
|
+
transition: background-color var(--pk-timing-fast) ease, transform var(--pk-timing-fast) ease;
|
|
227
|
+
font-weight: 400;
|
|
228
|
+
font-size: 1rem;
|
|
229
|
+
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
230
|
+
font-style: normal;
|
|
231
|
+
line-height: 1.45;
|
|
232
|
+
letter-spacing: 0.03em;
|
|
233
|
+
text-transform: none;
|
|
234
|
+
text-align: left;
|
|
235
|
+
text-decoration: none;
|
|
174
236
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
237
|
+
@media screen and (min-width: 480px) {
|
|
238
|
+
.prokodo-Snackbar__action button {
|
|
239
|
+
font-size: 0.875rem;
|
|
240
|
+
line-height: 1.4;
|
|
241
|
+
}
|
|
178
242
|
}
|
|
179
|
-
|
|
180
|
-
|
|
243
|
+
@media screen and (min-width: 960px) {
|
|
244
|
+
.prokodo-Snackbar__action button {
|
|
245
|
+
font-size: 0.875rem;
|
|
246
|
+
line-height: 1.4;
|
|
247
|
+
}
|
|
181
248
|
}
|
|
182
|
-
.prokodo-
|
|
183
|
-
|
|
249
|
+
.prokodo-Snackbar__action button:hover {
|
|
250
|
+
background-color: color-mix(in srgb, currentColor 22%, transparent);
|
|
251
|
+
transform: scale(1.03);
|
|
184
252
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
display: flex;
|
|
189
|
-
flex-direction: column;
|
|
190
|
-
gap: 8;
|
|
191
|
-
z-index: 9000;
|
|
192
|
-
pointer-events: none;
|
|
193
|
-
}
|
|
194
|
-
.prokodo-SnackbarProvider--is-top {
|
|
195
|
-
top: 0;
|
|
196
|
-
}
|
|
197
|
-
.prokodo-SnackbarProvider--is-bottom {
|
|
198
|
-
bottom: 0;
|
|
199
|
-
}
|
|
200
|
-
.prokodo-SnackbarProvider--is-center {
|
|
201
|
-
left: 50%;
|
|
202
|
-
transform: translateX(-50%);
|
|
203
|
-
}
|
|
204
|
-
.prokodo-SnackbarProvider--is-left {
|
|
205
|
-
left: 1rem;
|
|
206
|
-
}
|
|
207
|
-
.prokodo-SnackbarProvider--is-right {
|
|
208
|
-
right: 1rem;
|
|
253
|
+
.prokodo-Snackbar__action button:focus-visible {
|
|
254
|
+
outline: 2px solid currentColor;
|
|
255
|
+
outline-offset: 2px;
|
|
209
256
|
}
|
|
210
|
-
.prokodo-
|
|
211
|
-
|
|
257
|
+
.prokodo-Snackbar__close {
|
|
258
|
+
flex-shrink: 0;
|
|
259
|
+
display: inline-flex;
|
|
260
|
+
align-items: center;
|
|
261
|
+
justify-content: center;
|
|
262
|
+
width: 28px;
|
|
263
|
+
height: 28px;
|
|
264
|
+
padding: 0;
|
|
265
|
+
border: none;
|
|
266
|
+
border-radius: 50%;
|
|
267
|
+
background-color: color-mix(in srgb, currentColor 8%, transparent);
|
|
268
|
+
color: inherit;
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
transition: background-color var(--pk-timing-fast) ease, transform var(--pk-timing-fast) ease;
|
|
212
271
|
}
|
|
213
|
-
.prokodo-
|
|
214
|
-
|
|
272
|
+
.prokodo-Snackbar__close:hover {
|
|
273
|
+
background-color: color-mix(in srgb, currentColor 18%, transparent);
|
|
274
|
+
transform: scale(1.1);
|
|
215
275
|
}
|
|
216
|
-
.prokodo-
|
|
217
|
-
|
|
276
|
+
.prokodo-Snackbar__close:focus-visible {
|
|
277
|
+
outline: 2px solid currentColor;
|
|
278
|
+
outline-offset: 2px;
|
|
218
279
|
}
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
+
const Snackbar_slideIn = "Snackbar_slideIn";
|
|
2
|
+
const Snackbar_slideOut = "Snackbar_slideOut";
|
|
1
3
|
const styles = {
|
|
2
4
|
"prokodo-Snackbar": "prokodo-Snackbar",
|
|
5
|
+
Snackbar_slideIn,
|
|
6
|
+
"prokodo-Snackbar--info": "prokodo-Snackbar--info",
|
|
3
7
|
"prokodo-Snackbar--success": "prokodo-Snackbar--success",
|
|
4
|
-
"prokodo-Snackbar--error": "prokodo-Snackbar--error",
|
|
5
8
|
"prokodo-Snackbar--warning": "prokodo-Snackbar--warning",
|
|
6
|
-
"prokodo-Snackbar--
|
|
9
|
+
"prokodo-Snackbar--error": "prokodo-Snackbar--error",
|
|
10
|
+
"prokodo-Snackbar--is-leaving": "prokodo-Snackbar--is-leaving",
|
|
11
|
+
Snackbar_slideOut,
|
|
12
|
+
"prokodo-Snackbar__icon": "prokodo-Snackbar__icon",
|
|
7
13
|
"prokodo-Snackbar__message": "prokodo-Snackbar__message",
|
|
8
14
|
"prokodo-Snackbar__action": "prokodo-Snackbar__action",
|
|
9
|
-
"prokodo-Snackbar__close": "prokodo-Snackbar__close"
|
|
10
|
-
"prokodo-Snackbar--readonly": "prokodo-Snackbar--readonly",
|
|
11
|
-
"prokodo-SnackbarProvider": "prokodo-SnackbarProvider",
|
|
12
|
-
"prokodo-SnackbarProvider--is-top": "prokodo-SnackbarProvider--is-top",
|
|
13
|
-
"prokodo-SnackbarProvider--is-bottom": "prokodo-SnackbarProvider--is-bottom",
|
|
14
|
-
"prokodo-SnackbarProvider--is-center": "prokodo-SnackbarProvider--is-center",
|
|
15
|
-
"prokodo-SnackbarProvider--is-left": "prokodo-SnackbarProvider--is-left",
|
|
16
|
-
"prokodo-SnackbarProvider--is-right": "prokodo-SnackbarProvider--is-right",
|
|
17
|
-
"prokodo-SnackbarProvider__snackbar": "prokodo-SnackbarProvider__snackbar",
|
|
18
|
-
"prokodo-SnackbarProvider__snackbar--is-top": "prokodo-SnackbarProvider__snackbar--is-top",
|
|
19
|
-
"prokodo-SnackbarProvider__snackbar--is-bottom": "prokodo-SnackbarProvider__snackbar--is-bottom"
|
|
15
|
+
"prokodo-Snackbar__close": "prokodo-Snackbar__close"
|
|
20
16
|
};
|
|
21
17
|
export {
|
|
18
|
+
Snackbar_slideIn,
|
|
19
|
+
Snackbar_slideOut,
|
|
22
20
|
styles as default
|
|
23
21
|
};
|
|
@@ -7,7 +7,7 @@ import { Icon } from "../icon/Icon.js";
|
|
|
7
7
|
const bem = create(styles, "Snackbar");
|
|
8
8
|
function SnackbarView({
|
|
9
9
|
message,
|
|
10
|
-
|
|
10
|
+
color = "default",
|
|
11
11
|
anchorOrigin = { vertical: "bottom", horizontal: "center" },
|
|
12
12
|
action,
|
|
13
13
|
closeable = true,
|
|
@@ -28,7 +28,7 @@ function SnackbarView({
|
|
|
28
28
|
className: bem(
|
|
29
29
|
void 0,
|
|
30
30
|
{
|
|
31
|
-
[
|
|
31
|
+
[color]: true,
|
|
32
32
|
readonly: Boolean(readOnly),
|
|
33
33
|
[pos.vertical]: true,
|
|
34
34
|
[pos.horizontal]: true
|
|
@@ -13,6 +13,7 @@ const StepperClient = forwardRef((props, ref) => {
|
|
|
13
13
|
onBlur,
|
|
14
14
|
translations,
|
|
15
15
|
className,
|
|
16
|
+
color,
|
|
16
17
|
...rootProps
|
|
17
18
|
} = props;
|
|
18
19
|
const [activeStep, setActiveStep] = useState(initialStep);
|
|
@@ -41,21 +42,34 @@ const StepperClient = forwardRef((props, ref) => {
|
|
|
41
42
|
);
|
|
42
43
|
const handleStepKeyDown = useCallback(
|
|
43
44
|
(e, index) => {
|
|
44
|
-
var _a, _b;
|
|
45
|
+
var _a, _b, _c;
|
|
45
46
|
const prev = index - 1;
|
|
46
47
|
const next = index + 1;
|
|
48
|
+
const isCompleted = index < activeStep;
|
|
49
|
+
const isActivationKey = e.key === "Enter" || e.key === " " || e.key === "Spacebar" || e.code === "Enter" || e.code === "Space";
|
|
50
|
+
if (isActivationKey) {
|
|
51
|
+
if (isCompleted) {
|
|
52
|
+
setActiveStep(index);
|
|
53
|
+
(_a = stepRefs.current[index]) == null ? void 0 : _a.focus();
|
|
54
|
+
onChange == null ? void 0 : onChange(e, index);
|
|
55
|
+
}
|
|
56
|
+
e.preventDefault();
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
47
59
|
if (e.key === "ArrowLeft") {
|
|
48
60
|
if (prev >= 0 && prev < activeStep) {
|
|
49
61
|
setActiveStep(prev);
|
|
50
|
-
(
|
|
62
|
+
(_b = stepRefs.current[prev]) == null ? void 0 : _b.focus();
|
|
51
63
|
onChange == null ? void 0 : onChange(e, prev);
|
|
52
64
|
}
|
|
53
65
|
e.preventDefault();
|
|
54
66
|
} else if (e.key === "ArrowRight") {
|
|
55
|
-
if (next < steps.length
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
67
|
+
if (next < steps.length) {
|
|
68
|
+
if (next < activeStep) {
|
|
69
|
+
setActiveStep(next);
|
|
70
|
+
(_c = stepRefs.current[next]) == null ? void 0 : _c.focus();
|
|
71
|
+
onChange == null ? void 0 : onChange(e, next);
|
|
72
|
+
}
|
|
59
73
|
}
|
|
60
74
|
e.preventDefault();
|
|
61
75
|
}
|
|
@@ -115,6 +129,7 @@ const StepperClient = forwardRef((props, ref) => {
|
|
|
115
129
|
...rootProps,
|
|
116
130
|
activeStep,
|
|
117
131
|
className,
|
|
132
|
+
color,
|
|
118
133
|
stepRefs,
|
|
119
134
|
steps: formattedSteps,
|
|
120
135
|
translations
|
|
@@ -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 {
|