@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
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
.prokodo-Link {
|
|
128
128
|
text-decoration: none;
|
|
129
129
|
cursor: pointer;
|
|
130
|
-
color: var(--
|
|
130
|
+
color: var(--pk-link-color);
|
|
131
131
|
font-weight: 500;
|
|
132
132
|
font-size: 1.125rem;
|
|
133
133
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -155,38 +155,38 @@
|
|
|
155
155
|
}
|
|
156
156
|
.prokodo-Link--has-no-background:hover {
|
|
157
157
|
text-decoration: underline;
|
|
158
|
-
color: var(--color-
|
|
158
|
+
color: var(--pk-link-color-hover);
|
|
159
159
|
}
|
|
160
160
|
.prokodo-Link--has-no-background:focus {
|
|
161
|
-
color: var(--color-
|
|
161
|
+
color: var(--pk-link-color-hover);
|
|
162
162
|
}
|
|
163
163
|
.prokodo-Link--has-no-background--primary {
|
|
164
|
-
color: var(--color-primary
|
|
164
|
+
color: var(--pk-link-color-primary);
|
|
165
165
|
}
|
|
166
166
|
.prokodo-Link--has-no-background--secondary {
|
|
167
|
-
color: var(--color-secondary
|
|
167
|
+
color: var(--pk-link-color-secondary);
|
|
168
168
|
}
|
|
169
169
|
.prokodo-Link--has-no-background--info {
|
|
170
|
-
color: var(--color-
|
|
170
|
+
color: var(--pk-link-color-info);
|
|
171
171
|
}
|
|
172
172
|
.prokodo-Link--has-no-background--success {
|
|
173
|
-
color: var(--color-success);
|
|
173
|
+
color: var(--pk-link-color-success);
|
|
174
174
|
}
|
|
175
175
|
.prokodo-Link--has-no-background--warning {
|
|
176
|
-
color: var(--color-warning);
|
|
176
|
+
color: var(--pk-link-color-warning);
|
|
177
177
|
}
|
|
178
178
|
.prokodo-Link--has-no-background--error {
|
|
179
|
-
color: var(--color-error);
|
|
179
|
+
color: var(--pk-link-color-error);
|
|
180
180
|
}
|
|
181
181
|
.prokodo-Link--has-no-background--white {
|
|
182
|
-
color: var(--color-white);
|
|
182
|
+
color: var(--pk-link-color-white);
|
|
183
183
|
}
|
|
184
184
|
.prokodo-Link--has-no-background--white:hover {
|
|
185
|
-
color: var(--color-white);
|
|
185
|
+
color: var(--pk-link-color-white);
|
|
186
186
|
}
|
|
187
187
|
.prokodo-Link--has-no-background--primary:hover, .prokodo-Link--has-no-background--secondary:hover, .prokodo-Link--has-no-background--success:hover, .prokodo-Link--has-no-background--error:hover, .prokodo-Link--has-no-background--info:hover, .prokodo-Link--has-no-background--warning:hover {
|
|
188
|
-
color: var(--color-
|
|
188
|
+
color: var(--pk-link-color-variant-hover);
|
|
189
189
|
}
|
|
190
190
|
.prokodo-Link--has-no-background--primary:focus, .prokodo-Link--has-no-background--secondary:focus, .prokodo-Link--has-no-background--success:focus, .prokodo-Link--has-no-background--error:focus, .prokodo-Link--has-no-background--info:focus, .prokodo-Link--has-no-background--warning:focus {
|
|
191
|
-
color: var(--color-
|
|
191
|
+
color: var(--pk-link-color-variant-hover);
|
|
192
192
|
}
|
|
@@ -5,7 +5,7 @@ import { create } from "../../helpers/bem.js";
|
|
|
5
5
|
import styles from "./Link.module.scss.js";
|
|
6
6
|
const bem = create(styles, "Link");
|
|
7
7
|
function LinkView({
|
|
8
|
-
|
|
8
|
+
color = "inherit",
|
|
9
9
|
href,
|
|
10
10
|
children,
|
|
11
11
|
className,
|
|
@@ -23,7 +23,7 @@ function LinkView({
|
|
|
23
23
|
}) {
|
|
24
24
|
const linkMod = {
|
|
25
25
|
"has-no-background": hasBackground === false,
|
|
26
|
-
[`has-no-background--${
|
|
26
|
+
[`has-no-background--${color}`]: hasBackground === false
|
|
27
27
|
};
|
|
28
28
|
const common = {
|
|
29
29
|
className: bem(void 0, linkMod, className),
|
|
@@ -36,16 +36,18 @@ function LinkView({
|
|
|
36
36
|
"span",
|
|
37
37
|
{
|
|
38
38
|
...common,
|
|
39
|
-
role: "button",
|
|
40
|
-
tabIndex: 0,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
role: hasHandlers ? "button" : void 0,
|
|
40
|
+
tabIndex: hasHandlers ? 0 : void 0,
|
|
41
|
+
...hasHandlers ? {
|
|
42
|
+
onClick,
|
|
43
|
+
onKeyDown: /* @__PURE__ */ __name((e) => {
|
|
44
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
45
|
+
onClick == null ? void 0 : onClick(
|
|
46
|
+
e
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
}, "onKeyDown")
|
|
50
|
+
} : {},
|
|
49
51
|
...rest,
|
|
50
52
|
children
|
|
51
53
|
}
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
flex-wrap: wrap;
|
|
133
133
|
align-items: center;
|
|
134
134
|
width: 100%;
|
|
135
|
-
margin:
|
|
136
|
-
color: var(--color-
|
|
135
|
+
margin: var(--pk-space-xs) 0;
|
|
136
|
+
color: var(--pk-color-muted);
|
|
137
137
|
font-weight: 500;
|
|
138
138
|
font-size: 1.125rem;
|
|
139
139
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -163,12 +163,12 @@
|
|
|
163
163
|
flex-wrap: nowrap;
|
|
164
164
|
}
|
|
165
165
|
.prokodo-List__item__card {
|
|
166
|
-
margin:
|
|
166
|
+
margin: var(--pk-space-md) 0;
|
|
167
167
|
}
|
|
168
168
|
.prokodo-List__item__card__content {
|
|
169
169
|
display: flex;
|
|
170
170
|
align-items: center;
|
|
171
|
-
padding:
|
|
171
|
+
padding: var(--pk-space-md);
|
|
172
172
|
}
|
|
173
173
|
.prokodo-List__item__inner {
|
|
174
174
|
width: 100%;
|
|
@@ -206,22 +206,22 @@
|
|
|
206
206
|
align-self: flex-start;
|
|
207
207
|
min-width: 2.5rem;
|
|
208
208
|
height: 2.5rem;
|
|
209
|
-
margin-top:
|
|
210
|
-
margin-right:
|
|
209
|
+
margin-top: var(--pk-space-xs);
|
|
210
|
+
margin-right: var(--pk-space-xs);
|
|
211
211
|
border-radius: 1000rem;
|
|
212
|
-
background-color: var(--color-
|
|
212
|
+
background-color: var(--pk-color-surface-raised);
|
|
213
213
|
}
|
|
214
214
|
html[data-theme=dark] .prokodo-List__item__icon {
|
|
215
|
-
background-color: var(--
|
|
215
|
+
background-color: var(--pk-palette-grey-400);
|
|
216
216
|
}
|
|
217
217
|
.prokodo-List__item__icon__wrapper {
|
|
218
218
|
display: flex;
|
|
219
219
|
align-items: center;
|
|
220
|
-
padding-right:
|
|
220
|
+
padding-right: var(--pk-space-sm);
|
|
221
221
|
}
|
|
222
222
|
.prokodo-List__item__title--card {
|
|
223
223
|
display: block;
|
|
224
|
-
padding:
|
|
224
|
+
padding: var(--pk-space-md) 0 var(--pk-space-xs) var(--pk-space-sm);
|
|
225
225
|
font-weight: 500;
|
|
226
226
|
font-size: 1.125rem;
|
|
227
227
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -248,19 +248,19 @@ html[data-theme=dark] .prokodo-List__item__icon {
|
|
|
248
248
|
font-weight: 500;
|
|
249
249
|
}
|
|
250
250
|
.prokodo-List__item__content {
|
|
251
|
-
width: calc(100% -
|
|
251
|
+
width: calc(100% - var(--pk-space-2xl));
|
|
252
252
|
}
|
|
253
253
|
.prokodo-List__item__desc {
|
|
254
|
-
color: var(--color-
|
|
254
|
+
color: var(--pk-color-muted);
|
|
255
255
|
margin: 0;
|
|
256
|
-
padding:
|
|
256
|
+
padding: var(--pk-space-xs) 0;
|
|
257
257
|
display: block;
|
|
258
258
|
width: 100%;
|
|
259
259
|
-webkit-box-orient: vertical;
|
|
260
260
|
line-clamp: 3;
|
|
261
|
-
-webkit-line-clamp: 3;
|
|
261
|
+
-webkit-line-clamp: 3;
|
|
262
262
|
overflow: hidden;
|
|
263
|
-
text-overflow: ellipsis;
|
|
263
|
+
text-overflow: ellipsis;
|
|
264
264
|
word-wrap: break-word;
|
|
265
265
|
font-weight: 400;
|
|
266
266
|
font-size: 1.125rem;
|
|
@@ -284,11 +284,11 @@ html[data-theme=dark] .prokodo-List__item__icon {
|
|
|
284
284
|
}
|
|
285
285
|
.prokodo-List__item__desc--card {
|
|
286
286
|
padding-top: 0;
|
|
287
|
-
padding-left:
|
|
287
|
+
padding-left: var(--pk-space-sm);
|
|
288
288
|
}
|
|
289
289
|
.prokodo-List__item--is-clickable {
|
|
290
290
|
cursor: pointer;
|
|
291
|
-
color: var(--color-
|
|
291
|
+
color: var(--pk-color-muted);
|
|
292
292
|
}
|
|
293
293
|
.prokodo-List__item--is-clickable a {
|
|
294
294
|
font-weight: 500;
|
|
@@ -316,44 +316,83 @@ html[data-theme=dark] .prokodo-List__item__icon {
|
|
|
316
316
|
.prokodo-List__item--is-clickable a {
|
|
317
317
|
font-weight: 500;
|
|
318
318
|
}
|
|
319
|
-
.prokodo-List__item--is-clickable:hover
|
|
320
|
-
color: var(--color-
|
|
319
|
+
.prokodo-List__item--is-clickable--inherit:hover {
|
|
320
|
+
color: var(--pk-color-brand);
|
|
321
321
|
}
|
|
322
|
-
.prokodo-List__item--is-clickable:hover .list-title {
|
|
322
|
+
.prokodo-List__item--is-clickable--inherit:hover .list-title {
|
|
323
323
|
background-image: var(--gradient-text-primary);
|
|
324
324
|
-webkit-background-clip: text;
|
|
325
325
|
background-clip: text;
|
|
326
326
|
-webkit-text-fill-color: transparent;
|
|
327
327
|
}
|
|
328
|
-
.prokodo-List__item--is-clickable--inherit:hover {
|
|
329
|
-
color: var(--color-primary-500);
|
|
330
|
-
}
|
|
331
328
|
.prokodo-List__item--is-clickable--primary {
|
|
332
|
-
color: var(--color-
|
|
329
|
+
color: var(--pk-color-brand);
|
|
330
|
+
}
|
|
331
|
+
.prokodo-List__item--is-clickable--primary:hover .list-title {
|
|
332
|
+
background-image: var(--gradient-text-primary);
|
|
333
|
+
-webkit-background-clip: text;
|
|
334
|
+
background-clip: text;
|
|
335
|
+
-webkit-text-fill-color: transparent;
|
|
336
|
+
}
|
|
337
|
+
.prokodo-List__item--is-clickable--primary:hover span[role=presentation] {
|
|
338
|
+
color: var(--pk-color-brand);
|
|
333
339
|
}
|
|
334
340
|
.prokodo-List__item--is-clickable--secondary {
|
|
335
|
-
color: var(--color-
|
|
341
|
+
color: var(--pk-color-accent);
|
|
342
|
+
}
|
|
343
|
+
.prokodo-List__item--is-clickable--secondary:hover span[role=presentation] {
|
|
344
|
+
color: var(--pk-color-accent);
|
|
336
345
|
}
|
|
337
346
|
.prokodo-List__item--is-clickable--info {
|
|
338
|
-
color: var(--color-
|
|
347
|
+
color: var(--pk-color-muted);
|
|
348
|
+
}
|
|
349
|
+
.prokodo-List__item--is-clickable--info:hover span[role=presentation] {
|
|
350
|
+
color: var(--pk-color-muted);
|
|
339
351
|
}
|
|
340
352
|
.prokodo-List__item--is-clickable--success {
|
|
341
|
-
color: var(--color-success);
|
|
353
|
+
color: var(--pk-color-success);
|
|
354
|
+
}
|
|
355
|
+
.prokodo-List__item--is-clickable--success:hover .list-title {
|
|
356
|
+
background-image: var(--gradient-text-success);
|
|
357
|
+
-webkit-background-clip: text;
|
|
358
|
+
background-clip: text;
|
|
359
|
+
-webkit-text-fill-color: transparent;
|
|
360
|
+
}
|
|
361
|
+
.prokodo-List__item--is-clickable--success:hover span[role=presentation] {
|
|
362
|
+
color: var(--pk-color-success);
|
|
342
363
|
}
|
|
343
364
|
.prokodo-List__item--is-clickable--warning {
|
|
344
|
-
color: var(--color-warning);
|
|
365
|
+
color: var(--pk-color-warning);
|
|
366
|
+
}
|
|
367
|
+
.prokodo-List__item--is-clickable--warning:hover .list-title {
|
|
368
|
+
background-image: var(--gradient-text-warning);
|
|
369
|
+
-webkit-background-clip: text;
|
|
370
|
+
background-clip: text;
|
|
371
|
+
-webkit-text-fill-color: transparent;
|
|
372
|
+
}
|
|
373
|
+
.prokodo-List__item--is-clickable--warning:hover span[role=presentation] {
|
|
374
|
+
color: var(--pk-color-warning);
|
|
345
375
|
}
|
|
346
376
|
.prokodo-List__item--is-clickable--error {
|
|
347
|
-
color: var(--color-error);
|
|
377
|
+
color: var(--pk-color-error);
|
|
378
|
+
}
|
|
379
|
+
.prokodo-List__item--is-clickable--error:hover .list-title {
|
|
380
|
+
background-image: var(--gradient-text-error);
|
|
381
|
+
-webkit-background-clip: text;
|
|
382
|
+
background-clip: text;
|
|
383
|
+
-webkit-text-fill-color: transparent;
|
|
384
|
+
}
|
|
385
|
+
.prokodo-List__item--is-clickable--error:hover span[role=presentation] {
|
|
386
|
+
color: var(--pk-color-error);
|
|
348
387
|
}
|
|
349
388
|
.prokodo-List__item--is-clickable--white {
|
|
350
|
-
color: var(--
|
|
389
|
+
color: var(--pk-palette-white);
|
|
351
390
|
}
|
|
352
391
|
.prokodo-List__item--is-clickable--white:hover {
|
|
353
|
-
color: var(--
|
|
392
|
+
color: var(--pk-palette-white);
|
|
354
393
|
}
|
|
355
394
|
.prokodo-List__item--is-clickable--primary:hover, .prokodo-List__item--is-clickable--secondary:hover, .prokodo-List__item--is-clickable--success:hover, .prokodo-List__item--is-clickable--error:hover, .prokodo-List__item--is-clickable--info:hover, .prokodo-List__item--is-clickable--warning:hover {
|
|
356
|
-
color: var(--color-
|
|
395
|
+
color: var(--pk-color-muted);
|
|
357
396
|
}
|
|
358
397
|
.prokodo-List__item--card {
|
|
359
398
|
display: block;
|
|
@@ -11,7 +11,7 @@ import { Link } from "../link/Link.js";
|
|
|
11
11
|
const bem = create(styles, "List");
|
|
12
12
|
function List({
|
|
13
13
|
type,
|
|
14
|
-
|
|
14
|
+
color = "inherit",
|
|
15
15
|
className,
|
|
16
16
|
/* istanbul ignore next */
|
|
17
17
|
options = (
|
|
@@ -46,7 +46,7 @@ function List({
|
|
|
46
46
|
icon,
|
|
47
47
|
redirect,
|
|
48
48
|
onClick,
|
|
49
|
-
|
|
49
|
+
color: itemColor,
|
|
50
50
|
className: itemClassName
|
|
51
51
|
} = item;
|
|
52
52
|
const isClickable = Boolean(onClick || redirect);
|
|
@@ -68,7 +68,7 @@ function List({
|
|
|
68
68
|
"item",
|
|
69
69
|
{
|
|
70
70
|
"is-clickable": isClickable,
|
|
71
|
-
[`is-clickable--${
|
|
71
|
+
[`is-clickable--${itemColor ?? color}`]: isClickable,
|
|
72
72
|
"has-icon": Boolean(item == null ? void 0 : item.icon),
|
|
73
73
|
...modifier
|
|
74
74
|
},
|
|
@@ -101,13 +101,28 @@ function List({
|
|
|
101
101
|
}, "DescParagraph");
|
|
102
102
|
const IconWrapper = /* @__PURE__ */ __name(() => {
|
|
103
103
|
if (icon === void 0 || icon === null) return null;
|
|
104
|
+
if (type === "icon") {
|
|
105
|
+
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: bem("item__icon"), children: isValidElement(icon) ? (
|
|
106
|
+
/* istanbul ignore next */
|
|
107
|
+
icon
|
|
108
|
+
) : /* @__PURE__ */ jsx(
|
|
109
|
+
Icon,
|
|
110
|
+
{
|
|
111
|
+
...options.icon,
|
|
112
|
+
className: bem("item__icon__svg"),
|
|
113
|
+
size: "sm",
|
|
114
|
+
name: icon ?? /* istanbul ignore next */
|
|
115
|
+
"ArrowRight01Icon"
|
|
116
|
+
}
|
|
117
|
+
) });
|
|
118
|
+
}
|
|
104
119
|
return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: bem("item__icon__wrapper"), children: isValidElement(icon) ? (
|
|
105
120
|
/* istanbul ignore next */
|
|
106
121
|
icon
|
|
107
122
|
) : /* @__PURE__ */ jsx(
|
|
108
123
|
Icon,
|
|
109
124
|
{
|
|
110
|
-
color
|
|
125
|
+
color,
|
|
111
126
|
name: icon,
|
|
112
127
|
...options.icon
|
|
113
128
|
}
|
|
@@ -124,7 +139,7 @@ function List({
|
|
|
124
139
|
Card,
|
|
125
140
|
{
|
|
126
141
|
priority: true,
|
|
127
|
-
|
|
142
|
+
color: "white",
|
|
128
143
|
...cardItem,
|
|
129
144
|
className: bem("item__card", void 0, cardItem.className),
|
|
130
145
|
contentClassName: bem(
|
|
@@ -185,7 +200,7 @@ function List({
|
|
|
185
200
|
Link,
|
|
186
201
|
{
|
|
187
202
|
className: bem("item__link", void 0, linkProps.className),
|
|
188
|
-
|
|
203
|
+
color,
|
|
189
204
|
...linkProps,
|
|
190
205
|
children: [
|
|
191
206
|
/* @__PURE__ */ jsxs("div", { className: bem("item__link__header"), children: [
|
|
@@ -208,8 +223,10 @@ function List({
|
|
|
208
223
|
...liHandlers,
|
|
209
224
|
children: [
|
|
210
225
|
/* @__PURE__ */ jsx(IconWrapper, {}),
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
|
|
226
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
227
|
+
/* @__PURE__ */ jsx(TitleSpan, {}),
|
|
228
|
+
/* @__PURE__ */ jsx(DescParagraph, {})
|
|
229
|
+
] })
|
|
213
230
|
]
|
|
214
231
|
},
|
|
215
232
|
`list-item-${/* istanbul ignore next */
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
flex-wrap: wrap;
|
|
133
133
|
align-items: center;
|
|
134
134
|
width: 100%;
|
|
135
|
-
margin:
|
|
136
|
-
color: var(--color-
|
|
135
|
+
margin: var(--pk-space-xs) 0;
|
|
136
|
+
color: var(--pk-color-muted);
|
|
137
137
|
font-weight: 500;
|
|
138
138
|
font-size: 1.125rem;
|
|
139
139
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -163,12 +163,12 @@
|
|
|
163
163
|
flex-wrap: nowrap;
|
|
164
164
|
}
|
|
165
165
|
.prokodo-List__item__card {
|
|
166
|
-
margin:
|
|
166
|
+
margin: var(--pk-space-md) 0;
|
|
167
167
|
}
|
|
168
168
|
.prokodo-List__item__card__content {
|
|
169
169
|
display: flex;
|
|
170
170
|
align-items: center;
|
|
171
|
-
padding:
|
|
171
|
+
padding: var(--pk-space-md);
|
|
172
172
|
}
|
|
173
173
|
.prokodo-List__item__inner {
|
|
174
174
|
width: 100%;
|
|
@@ -206,22 +206,22 @@
|
|
|
206
206
|
align-self: flex-start;
|
|
207
207
|
min-width: 2.5rem;
|
|
208
208
|
height: 2.5rem;
|
|
209
|
-
margin-top:
|
|
210
|
-
margin-right:
|
|
209
|
+
margin-top: var(--pk-space-xs);
|
|
210
|
+
margin-right: var(--pk-space-xs);
|
|
211
211
|
border-radius: 1000rem;
|
|
212
|
-
background-color: var(--color-
|
|
212
|
+
background-color: var(--pk-color-surface-raised);
|
|
213
213
|
}
|
|
214
214
|
html[data-theme=dark] .prokodo-List__item__icon {
|
|
215
|
-
background-color: var(--
|
|
215
|
+
background-color: var(--pk-palette-grey-400);
|
|
216
216
|
}
|
|
217
217
|
.prokodo-List__item__icon__wrapper {
|
|
218
218
|
display: flex;
|
|
219
219
|
align-items: center;
|
|
220
|
-
padding-right:
|
|
220
|
+
padding-right: var(--pk-space-sm);
|
|
221
221
|
}
|
|
222
222
|
.prokodo-List__item__title--card {
|
|
223
223
|
display: block;
|
|
224
|
-
padding:
|
|
224
|
+
padding: var(--pk-space-md) 0 var(--pk-space-xs) var(--pk-space-sm);
|
|
225
225
|
font-weight: 500;
|
|
226
226
|
font-size: 1.125rem;
|
|
227
227
|
font-family: var(--font-secondary), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -248,19 +248,19 @@ html[data-theme=dark] .prokodo-List__item__icon {
|
|
|
248
248
|
font-weight: 500;
|
|
249
249
|
}
|
|
250
250
|
.prokodo-List__item__content {
|
|
251
|
-
width: calc(100% -
|
|
251
|
+
width: calc(100% - var(--pk-space-2xl));
|
|
252
252
|
}
|
|
253
253
|
.prokodo-List__item__desc {
|
|
254
|
-
color: var(--color-
|
|
254
|
+
color: var(--pk-color-muted);
|
|
255
255
|
margin: 0;
|
|
256
|
-
padding:
|
|
256
|
+
padding: var(--pk-space-xs) 0;
|
|
257
257
|
display: block;
|
|
258
258
|
width: 100%;
|
|
259
259
|
-webkit-box-orient: vertical;
|
|
260
260
|
line-clamp: 3;
|
|
261
|
-
-webkit-line-clamp: 3;
|
|
261
|
+
-webkit-line-clamp: 3;
|
|
262
262
|
overflow: hidden;
|
|
263
|
-
text-overflow: ellipsis;
|
|
263
|
+
text-overflow: ellipsis;
|
|
264
264
|
word-wrap: break-word;
|
|
265
265
|
font-weight: 400;
|
|
266
266
|
font-size: 1.125rem;
|
|
@@ -284,11 +284,11 @@ html[data-theme=dark] .prokodo-List__item__icon {
|
|
|
284
284
|
}
|
|
285
285
|
.prokodo-List__item__desc--card {
|
|
286
286
|
padding-top: 0;
|
|
287
|
-
padding-left:
|
|
287
|
+
padding-left: var(--pk-space-sm);
|
|
288
288
|
}
|
|
289
289
|
.prokodo-List__item--is-clickable {
|
|
290
290
|
cursor: pointer;
|
|
291
|
-
color: var(--color-
|
|
291
|
+
color: var(--pk-color-muted);
|
|
292
292
|
}
|
|
293
293
|
.prokodo-List__item--is-clickable a {
|
|
294
294
|
font-weight: 500;
|
|
@@ -316,44 +316,83 @@ html[data-theme=dark] .prokodo-List__item__icon {
|
|
|
316
316
|
.prokodo-List__item--is-clickable a {
|
|
317
317
|
font-weight: 500;
|
|
318
318
|
}
|
|
319
|
-
.prokodo-List__item--is-clickable:hover
|
|
320
|
-
color: var(--color-
|
|
319
|
+
.prokodo-List__item--is-clickable--inherit:hover {
|
|
320
|
+
color: var(--pk-color-brand);
|
|
321
321
|
}
|
|
322
|
-
.prokodo-List__item--is-clickable:hover .list-title {
|
|
322
|
+
.prokodo-List__item--is-clickable--inherit:hover .list-title {
|
|
323
323
|
background-image: var(--gradient-text-primary);
|
|
324
324
|
-webkit-background-clip: text;
|
|
325
325
|
background-clip: text;
|
|
326
326
|
-webkit-text-fill-color: transparent;
|
|
327
327
|
}
|
|
328
|
-
.prokodo-List__item--is-clickable--inherit:hover {
|
|
329
|
-
color: var(--color-primary-500);
|
|
330
|
-
}
|
|
331
328
|
.prokodo-List__item--is-clickable--primary {
|
|
332
|
-
color: var(--color-
|
|
329
|
+
color: var(--pk-color-brand);
|
|
330
|
+
}
|
|
331
|
+
.prokodo-List__item--is-clickable--primary:hover .list-title {
|
|
332
|
+
background-image: var(--gradient-text-primary);
|
|
333
|
+
-webkit-background-clip: text;
|
|
334
|
+
background-clip: text;
|
|
335
|
+
-webkit-text-fill-color: transparent;
|
|
336
|
+
}
|
|
337
|
+
.prokodo-List__item--is-clickable--primary:hover span[role=presentation] {
|
|
338
|
+
color: var(--pk-color-brand);
|
|
333
339
|
}
|
|
334
340
|
.prokodo-List__item--is-clickable--secondary {
|
|
335
|
-
color: var(--color-
|
|
341
|
+
color: var(--pk-color-accent);
|
|
342
|
+
}
|
|
343
|
+
.prokodo-List__item--is-clickable--secondary:hover span[role=presentation] {
|
|
344
|
+
color: var(--pk-color-accent);
|
|
336
345
|
}
|
|
337
346
|
.prokodo-List__item--is-clickable--info {
|
|
338
|
-
color: var(--color-
|
|
347
|
+
color: var(--pk-color-muted);
|
|
348
|
+
}
|
|
349
|
+
.prokodo-List__item--is-clickable--info:hover span[role=presentation] {
|
|
350
|
+
color: var(--pk-color-muted);
|
|
339
351
|
}
|
|
340
352
|
.prokodo-List__item--is-clickable--success {
|
|
341
|
-
color: var(--color-success);
|
|
353
|
+
color: var(--pk-color-success);
|
|
354
|
+
}
|
|
355
|
+
.prokodo-List__item--is-clickable--success:hover .list-title {
|
|
356
|
+
background-image: var(--gradient-text-success);
|
|
357
|
+
-webkit-background-clip: text;
|
|
358
|
+
background-clip: text;
|
|
359
|
+
-webkit-text-fill-color: transparent;
|
|
360
|
+
}
|
|
361
|
+
.prokodo-List__item--is-clickable--success:hover span[role=presentation] {
|
|
362
|
+
color: var(--pk-color-success);
|
|
342
363
|
}
|
|
343
364
|
.prokodo-List__item--is-clickable--warning {
|
|
344
|
-
color: var(--color-warning);
|
|
365
|
+
color: var(--pk-color-warning);
|
|
366
|
+
}
|
|
367
|
+
.prokodo-List__item--is-clickable--warning:hover .list-title {
|
|
368
|
+
background-image: var(--gradient-text-warning);
|
|
369
|
+
-webkit-background-clip: text;
|
|
370
|
+
background-clip: text;
|
|
371
|
+
-webkit-text-fill-color: transparent;
|
|
372
|
+
}
|
|
373
|
+
.prokodo-List__item--is-clickable--warning:hover span[role=presentation] {
|
|
374
|
+
color: var(--pk-color-warning);
|
|
345
375
|
}
|
|
346
376
|
.prokodo-List__item--is-clickable--error {
|
|
347
|
-
color: var(--color-error);
|
|
377
|
+
color: var(--pk-color-error);
|
|
378
|
+
}
|
|
379
|
+
.prokodo-List__item--is-clickable--error:hover .list-title {
|
|
380
|
+
background-image: var(--gradient-text-error);
|
|
381
|
+
-webkit-background-clip: text;
|
|
382
|
+
background-clip: text;
|
|
383
|
+
-webkit-text-fill-color: transparent;
|
|
384
|
+
}
|
|
385
|
+
.prokodo-List__item--is-clickable--error:hover span[role=presentation] {
|
|
386
|
+
color: var(--pk-color-error);
|
|
348
387
|
}
|
|
349
388
|
.prokodo-List__item--is-clickable--white {
|
|
350
|
-
color: var(--
|
|
389
|
+
color: var(--pk-palette-white);
|
|
351
390
|
}
|
|
352
391
|
.prokodo-List__item--is-clickable--white:hover {
|
|
353
|
-
color: var(--
|
|
392
|
+
color: var(--pk-palette-white);
|
|
354
393
|
}
|
|
355
394
|
.prokodo-List__item--is-clickable--primary:hover, .prokodo-List__item--is-clickable--secondary:hover, .prokodo-List__item--is-clickable--success:hover, .prokodo-List__item--is-clickable--error:hover, .prokodo-List__item--is-clickable--info:hover, .prokodo-List__item--is-clickable--warning:hover {
|
|
356
|
-
color: var(--color-
|
|
395
|
+
color: var(--pk-color-muted);
|
|
357
396
|
}
|
|
358
397
|
.prokodo-List__item--card {
|
|
359
398
|
display: block;
|
|
@@ -14,8 +14,8 @@ const styles = {
|
|
|
14
14
|
"prokodo-List__item__desc": "prokodo-List__item__desc",
|
|
15
15
|
"prokodo-List__item__desc--card": "prokodo-List__item__desc--card",
|
|
16
16
|
"prokodo-List__item--is-clickable": "prokodo-List__item--is-clickable",
|
|
17
|
-
"list-title": "list-title",
|
|
18
17
|
"prokodo-List__item--is-clickable--inherit": "prokodo-List__item--is-clickable--inherit",
|
|
18
|
+
"list-title": "list-title",
|
|
19
19
|
"prokodo-List__item--is-clickable--primary": "prokodo-List__item--is-clickable--primary",
|
|
20
20
|
"prokodo-List__item--is-clickable--secondary": "prokodo-List__item--is-clickable--secondary",
|
|
21
21
|
"prokodo-List__item--is-clickable--info": "prokodo-List__item--is-clickable--info",
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
const colorToCSS = {
|
|
5
|
+
// "inherit" explicitly targets the adaptive foreground token so the spinner
|
|
6
|
+
// stays visible regardless of light/dark mode instead of blindly inheriting
|
|
7
|
+
// a parent color that may match the background.
|
|
8
|
+
inherit: "var(--pk-color-fg)",
|
|
9
|
+
primary: "var(--pk-color-brand)",
|
|
10
|
+
secondary: "var(--pk-color-accent)",
|
|
11
|
+
success: "var(--pk-color-success)",
|
|
12
|
+
error: "var(--pk-color-error)",
|
|
13
|
+
info: "var(--pk-color-fg)",
|
|
14
|
+
warning: "var(--pk-color-warning)",
|
|
15
|
+
white: "var(--pk-palette-white)"
|
|
16
|
+
};
|
|
4
17
|
const PX = {
|
|
5
18
|
xs: 16,
|
|
6
19
|
sm: 24,
|
|
@@ -21,7 +34,8 @@ const SpinnerView = /* @__PURE__ */ __name(({
|
|
|
21
34
|
/* istanbul ignore next */
|
|
22
35
|
"Loading"
|
|
23
36
|
),
|
|
24
|
-
reducedMotion
|
|
37
|
+
reducedMotion,
|
|
38
|
+
color
|
|
25
39
|
}) => {
|
|
26
40
|
const s = PX[size];
|
|
27
41
|
const r = s / 2;
|
|
@@ -39,6 +53,10 @@ const SpinnerView = /* @__PURE__ */ __name(({
|
|
|
39
53
|
width: s,
|
|
40
54
|
style: {
|
|
41
55
|
display: "inline-block",
|
|
56
|
+
...color ? {
|
|
57
|
+
"--pk-loading-color": colorToCSS[color],
|
|
58
|
+
color: colorToCSS[color]
|
|
59
|
+
} : void 0,
|
|
42
60
|
...style
|
|
43
61
|
},
|
|
44
62
|
children: [
|
|
@@ -115,7 +133,8 @@ const OverlayView = /* @__PURE__ */ __name(({
|
|
|
115
133
|
blur = 0,
|
|
116
134
|
zIndex = 9999,
|
|
117
135
|
reducedMotion,
|
|
118
|
-
resolvedBackdrop
|
|
136
|
+
resolvedBackdrop,
|
|
137
|
+
color
|
|
119
138
|
}) => {
|
|
120
139
|
if (!show) return null;
|
|
121
140
|
const bg = resolvedBackdrop === "dark" ? "rgba(0,0,0,0.5)" : "rgba(255,255,255,0.5)";
|
|
@@ -142,6 +161,7 @@ const OverlayView = /* @__PURE__ */ __name(({
|
|
|
142
161
|
SpinnerView,
|
|
143
162
|
{
|
|
144
163
|
ariaLabel,
|
|
164
|
+
color,
|
|
145
165
|
reducedMotion,
|
|
146
166
|
size
|
|
147
167
|
}
|
|
@@ -126,4 +126,20 @@
|
|
|
126
126
|
*/
|
|
127
127
|
.prokodo-Lottie__container {
|
|
128
128
|
position: relative;
|
|
129
|
+
width: 100%;
|
|
130
|
+
}
|
|
131
|
+
.prokodo-Lottie__placeholder {
|
|
132
|
+
width: 100%;
|
|
133
|
+
aspect-ratio: 1/1;
|
|
134
|
+
border-radius: var(--pk-radius-md);
|
|
135
|
+
background-color: var(--pk-color-surface-subtle);
|
|
136
|
+
animation: pulse var(--pk-timing-slow) ease-in-out infinite alternate;
|
|
137
|
+
}
|
|
138
|
+
@keyframes pulse {
|
|
139
|
+
from {
|
|
140
|
+
opacity: 1;
|
|
141
|
+
}
|
|
142
|
+
to {
|
|
143
|
+
opacity: 0.4;
|
|
144
|
+
}
|
|
129
145
|
}
|